@marigold/components 4.2.1 → 4.2.2
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 +21 -8
- package/dist/index.js +350 -325
- package/dist/index.mjs +307 -286
- package/package.json +43 -43
package/dist/index.mjs
CHANGED
|
@@ -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,7 +661,7 @@ var Container = ({
|
|
|
644
661
|
...props
|
|
645
662
|
}) => {
|
|
646
663
|
const maxWidth = tokenSize[contentType][size];
|
|
647
|
-
return /* @__PURE__ */
|
|
664
|
+
return /* @__PURE__ */ React16.createElement(Box, {
|
|
648
665
|
display: "grid",
|
|
649
666
|
css: {
|
|
650
667
|
gridTemplateColumns: ALIGN[align](maxWidth).gridTemplateColumns,
|
|
@@ -658,7 +675,7 @@ var Container = ({
|
|
|
658
675
|
};
|
|
659
676
|
|
|
660
677
|
// src/Dialog/Dialog.tsx
|
|
661
|
-
import
|
|
678
|
+
import React25, { 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,
|
|
@@ -966,9 +983,9 @@ var CloseButton = ({ css }) => {
|
|
|
966
983
|
},
|
|
967
984
|
ref
|
|
968
985
|
);
|
|
969
|
-
return /* @__PURE__ */
|
|
986
|
+
return /* @__PURE__ */ React25.createElement(Box13, {
|
|
970
987
|
css: { display: "flex", justifyContent: "flex-end" }
|
|
971
|
-
}, /* @__PURE__ */
|
|
988
|
+
}, /* @__PURE__ */ React25.createElement(Box13, {
|
|
972
989
|
as: "button",
|
|
973
990
|
__baseCSS: {
|
|
974
991
|
outline: "none",
|
|
@@ -982,19 +999,19 @@ var CloseButton = ({ css }) => {
|
|
|
982
999
|
css,
|
|
983
1000
|
ref,
|
|
984
1001
|
...buttonProps
|
|
985
|
-
}, /* @__PURE__ */
|
|
1002
|
+
}, /* @__PURE__ */ React25.createElement("svg", {
|
|
986
1003
|
viewBox: "0 0 20 20",
|
|
987
1004
|
fill: "currentColor"
|
|
988
|
-
}, /* @__PURE__ */
|
|
1005
|
+
}, /* @__PURE__ */ React25.createElement("path", {
|
|
989
1006
|
fillRule: "evenodd",
|
|
990
1007
|
clipRule: "evenodd",
|
|
991
1008
|
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
1009
|
}))));
|
|
993
1010
|
};
|
|
994
1011
|
var addTitleProps = (children, titleProps) => {
|
|
995
|
-
const childs =
|
|
1012
|
+
const childs = React25.Children.toArray(children);
|
|
996
1013
|
const titleIndex = childs.findIndex(
|
|
997
|
-
(child) =>
|
|
1014
|
+
(child) => React25.isValidElement(child) && (child.type === Header || child.type === Headline)
|
|
998
1015
|
);
|
|
999
1016
|
if (titleIndex < 0) {
|
|
1000
1017
|
console.warn(
|
|
@@ -1002,7 +1019,7 @@ var addTitleProps = (children, titleProps) => {
|
|
|
1002
1019
|
);
|
|
1003
1020
|
return children;
|
|
1004
1021
|
}
|
|
1005
|
-
const titleChild =
|
|
1022
|
+
const titleChild = React25.cloneElement(
|
|
1006
1023
|
childs[titleIndex],
|
|
1007
1024
|
titleProps
|
|
1008
1025
|
);
|
|
@@ -1024,24 +1041,24 @@ var Dialog = ({
|
|
|
1024
1041
|
{ variant, size },
|
|
1025
1042
|
{ parts: ["container", "closeButton"] }
|
|
1026
1043
|
);
|
|
1027
|
-
return /* @__PURE__ */
|
|
1044
|
+
return /* @__PURE__ */ React25.createElement(Box13, {
|
|
1028
1045
|
__baseCSS: { bg: "#fff" },
|
|
1029
1046
|
css: styles.container,
|
|
1030
1047
|
...dialogProps
|
|
1031
|
-
}, closeButton && /* @__PURE__ */
|
|
1048
|
+
}, closeButton && /* @__PURE__ */ React25.createElement(CloseButton, {
|
|
1032
1049
|
css: styles.closeButton
|
|
1033
1050
|
}), typeof children === "function" ? children({ close, titleProps }) : props["aria-labelledby"] ? children : addTitleProps(children, titleProps));
|
|
1034
1051
|
};
|
|
1035
1052
|
Dialog.Trigger = DialogTrigger;
|
|
1036
1053
|
|
|
1037
1054
|
// src/Divider/Divider.tsx
|
|
1038
|
-
import
|
|
1055
|
+
import React26 from "react";
|
|
1039
1056
|
import { useSeparator } from "@react-aria/separator";
|
|
1040
1057
|
import { Box as Box14, useComponentStyles as useComponentStyles13 } from "@marigold/system";
|
|
1041
1058
|
var Divider = ({ variant, ...props }) => {
|
|
1042
1059
|
const { separatorProps } = useSeparator(props);
|
|
1043
1060
|
const styles = useComponentStyles13("Divider", { variant });
|
|
1044
|
-
return /* @__PURE__ */
|
|
1061
|
+
return /* @__PURE__ */ React26.createElement(Box14, {
|
|
1045
1062
|
css: styles,
|
|
1046
1063
|
...props,
|
|
1047
1064
|
...separatorProps
|
|
@@ -1049,13 +1066,13 @@ var Divider = ({ variant, ...props }) => {
|
|
|
1049
1066
|
};
|
|
1050
1067
|
|
|
1051
1068
|
// src/Footer/Footer.tsx
|
|
1052
|
-
import
|
|
1069
|
+
import React27 from "react";
|
|
1053
1070
|
import {
|
|
1054
1071
|
useComponentStyles as useComponentStyles14
|
|
1055
1072
|
} from "@marigold/system";
|
|
1056
1073
|
var Footer = ({ children, variant, size, ...props }) => {
|
|
1057
1074
|
const styles = useComponentStyles14("Footer", { variant, size });
|
|
1058
|
-
return /* @__PURE__ */
|
|
1075
|
+
return /* @__PURE__ */ React27.createElement(Box, {
|
|
1059
1076
|
as: "footer",
|
|
1060
1077
|
...props,
|
|
1061
1078
|
css: styles
|
|
@@ -1063,7 +1080,7 @@ var Footer = ({ children, variant, size, ...props }) => {
|
|
|
1063
1080
|
};
|
|
1064
1081
|
|
|
1065
1082
|
// src/Image/Image.tsx
|
|
1066
|
-
import
|
|
1083
|
+
import React28 from "react";
|
|
1067
1084
|
import { Box as Box15 } from "@marigold/system";
|
|
1068
1085
|
import { useComponentStyles as useComponentStyles15 } from "@marigold/system";
|
|
1069
1086
|
var Image = ({
|
|
@@ -1079,7 +1096,7 @@ var Image = ({
|
|
|
1079
1096
|
objectFit: fit,
|
|
1080
1097
|
objectPosition: position
|
|
1081
1098
|
};
|
|
1082
|
-
return /* @__PURE__ */
|
|
1099
|
+
return /* @__PURE__ */ React28.createElement(Box15, {
|
|
1083
1100
|
...props,
|
|
1084
1101
|
as: "img",
|
|
1085
1102
|
__baseCSS: fit ? { width: " 100%", height: "100%" } : {},
|
|
@@ -1088,7 +1105,7 @@ var Image = ({
|
|
|
1088
1105
|
};
|
|
1089
1106
|
|
|
1090
1107
|
// src/Inline/Inline.tsx
|
|
1091
|
-
import
|
|
1108
|
+
import React29 from "react";
|
|
1092
1109
|
var ALIGNMENT_X = {
|
|
1093
1110
|
left: "flex-start",
|
|
1094
1111
|
center: "center",
|
|
@@ -1105,7 +1122,7 @@ var Inline = ({
|
|
|
1105
1122
|
alignY = "center",
|
|
1106
1123
|
children,
|
|
1107
1124
|
...props
|
|
1108
|
-
}) => /* @__PURE__ */
|
|
1125
|
+
}) => /* @__PURE__ */ React29.createElement(Box, {
|
|
1109
1126
|
css: {
|
|
1110
1127
|
display: "flex",
|
|
1111
1128
|
flexWrap: "wrap",
|
|
@@ -1117,12 +1134,12 @@ var Inline = ({
|
|
|
1117
1134
|
}, children);
|
|
1118
1135
|
|
|
1119
1136
|
// src/Input/Input.tsx
|
|
1120
|
-
import
|
|
1137
|
+
import React30, { forwardRef as forwardRef6 } from "react";
|
|
1121
1138
|
import { Box as Box16, useComponentStyles as useComponentStyles16 } from "@marigold/system";
|
|
1122
1139
|
var Input = forwardRef6(
|
|
1123
1140
|
({ variant, size, type = "text", ...props }, ref) => {
|
|
1124
1141
|
const styles = useComponentStyles16("Input", { variant, size });
|
|
1125
|
-
return /* @__PURE__ */
|
|
1142
|
+
return /* @__PURE__ */ React30.createElement(Box16, {
|
|
1126
1143
|
...props,
|
|
1127
1144
|
ref,
|
|
1128
1145
|
as: "input",
|
|
@@ -1133,7 +1150,7 @@ var Input = forwardRef6(
|
|
|
1133
1150
|
);
|
|
1134
1151
|
|
|
1135
1152
|
// src/Link/Link.tsx
|
|
1136
|
-
import
|
|
1153
|
+
import React31, { forwardRef as forwardRef7 } from "react";
|
|
1137
1154
|
import { useLink } from "@react-aria/link";
|
|
1138
1155
|
import { useComponentStyles as useComponentStyles17 } from "@marigold/system";
|
|
1139
1156
|
import { useObjectRef as useObjectRef6 } from "@react-aria/utils";
|
|
@@ -1158,7 +1175,7 @@ var Link = forwardRef7(
|
|
|
1158
1175
|
linkRef
|
|
1159
1176
|
);
|
|
1160
1177
|
const styles = useComponentStyles17("Link", { variant, size });
|
|
1161
|
-
return /* @__PURE__ */
|
|
1178
|
+
return /* @__PURE__ */ React31.createElement(React31.Fragment, null, " ", /* @__PURE__ */ React31.createElement(Box, {
|
|
1162
1179
|
as,
|
|
1163
1180
|
role: "link",
|
|
1164
1181
|
css: styles,
|
|
@@ -1170,23 +1187,23 @@ var Link = forwardRef7(
|
|
|
1170
1187
|
);
|
|
1171
1188
|
|
|
1172
1189
|
// src/List/List.tsx
|
|
1173
|
-
import
|
|
1190
|
+
import React33 from "react";
|
|
1174
1191
|
import {
|
|
1175
1192
|
Box as Box18,
|
|
1176
1193
|
useComponentStyles as useComponentStyles18
|
|
1177
1194
|
} from "@marigold/system";
|
|
1178
1195
|
|
|
1179
1196
|
// src/List/Context.ts
|
|
1180
|
-
import { createContext as
|
|
1181
|
-
var ListContext =
|
|
1182
|
-
var useListContext = () =>
|
|
1197
|
+
import { createContext as createContext4, useContext as useContext4 } from "react";
|
|
1198
|
+
var ListContext = createContext4({});
|
|
1199
|
+
var useListContext = () => useContext4(ListContext);
|
|
1183
1200
|
|
|
1184
1201
|
// src/List/ListItem.tsx
|
|
1185
|
-
import
|
|
1202
|
+
import React32 from "react";
|
|
1186
1203
|
import { Box as Box17 } from "@marigold/system";
|
|
1187
1204
|
var ListItem = ({ children, ...props }) => {
|
|
1188
1205
|
const { styles } = useListContext();
|
|
1189
|
-
return /* @__PURE__ */
|
|
1206
|
+
return /* @__PURE__ */ React32.createElement(Box17, {
|
|
1190
1207
|
...props,
|
|
1191
1208
|
as: "li",
|
|
1192
1209
|
css: styles
|
|
@@ -1206,18 +1223,18 @@ var List = ({
|
|
|
1206
1223
|
{ variant, size },
|
|
1207
1224
|
{ parts: ["ul", "ol", "item"] }
|
|
1208
1225
|
);
|
|
1209
|
-
return /* @__PURE__ */
|
|
1226
|
+
return /* @__PURE__ */ React33.createElement(Box18, {
|
|
1210
1227
|
...props,
|
|
1211
1228
|
as,
|
|
1212
1229
|
css: styles[as]
|
|
1213
|
-
}, /* @__PURE__ */
|
|
1230
|
+
}, /* @__PURE__ */ React33.createElement(ListContext.Provider, {
|
|
1214
1231
|
value: { styles: styles.item }
|
|
1215
1232
|
}, children));
|
|
1216
1233
|
};
|
|
1217
1234
|
List.Item = ListItem;
|
|
1218
1235
|
|
|
1219
1236
|
// src/Menu/Menu.tsx
|
|
1220
|
-
import
|
|
1237
|
+
import React36, { useRef as useRef6 } from "react";
|
|
1221
1238
|
import { useMenu } from "@react-aria/menu";
|
|
1222
1239
|
import { Item } from "@react-stately/collections";
|
|
1223
1240
|
import { useTreeState } from "@react-stately/tree";
|
|
@@ -1228,21 +1245,21 @@ import {
|
|
|
1228
1245
|
|
|
1229
1246
|
// src/Menu/Context.ts
|
|
1230
1247
|
import {
|
|
1231
|
-
createContext as
|
|
1232
|
-
useContext as
|
|
1248
|
+
createContext as createContext5,
|
|
1249
|
+
useContext as useContext5
|
|
1233
1250
|
} from "react";
|
|
1234
|
-
var MenuContext =
|
|
1235
|
-
var useMenuContext = () =>
|
|
1251
|
+
var MenuContext = createContext5({});
|
|
1252
|
+
var useMenuContext = () => useContext5(MenuContext);
|
|
1236
1253
|
|
|
1237
1254
|
// src/Menu/MenuTrigger.tsx
|
|
1238
|
-
import
|
|
1255
|
+
import React34, { useRef as useRef4 } from "react";
|
|
1239
1256
|
import { useMenuTriggerState } from "@react-stately/menu";
|
|
1240
1257
|
import { PressResponder as PressResponder2 } from "@react-aria/interactions";
|
|
1241
1258
|
import { useMenuTrigger } from "@react-aria/menu";
|
|
1242
1259
|
import { useObjectRef as useObjectRef7 } from "@react-aria/utils";
|
|
1243
1260
|
import { useResponsiveValue } from "@marigold/system";
|
|
1244
1261
|
var MenuTrigger = ({ disabled, children }) => {
|
|
1245
|
-
const [menuTrigger, menu] =
|
|
1262
|
+
const [menuTrigger, menu] = React34.Children.toArray(children);
|
|
1246
1263
|
const menuTriggerRef = useRef4(null);
|
|
1247
1264
|
const menuRef = useObjectRef7();
|
|
1248
1265
|
const state = useMenuTriggerState({});
|
|
@@ -1259,15 +1276,15 @@ var MenuTrigger = ({ disabled, children }) => {
|
|
|
1259
1276
|
autoFocus: state.focusStrategy
|
|
1260
1277
|
};
|
|
1261
1278
|
const isSmallScreen = useResponsiveValue([true, false, false], 2);
|
|
1262
|
-
return /* @__PURE__ */
|
|
1279
|
+
return /* @__PURE__ */ React34.createElement(MenuContext.Provider, {
|
|
1263
1280
|
value: menuContext
|
|
1264
|
-
}, /* @__PURE__ */
|
|
1281
|
+
}, /* @__PURE__ */ React34.createElement(PressResponder2, {
|
|
1265
1282
|
...menuTriggerProps,
|
|
1266
1283
|
ref: menuTriggerRef,
|
|
1267
1284
|
isPressed: state.isOpen
|
|
1268
|
-
}, menuTrigger), isSmallScreen ? /* @__PURE__ */
|
|
1285
|
+
}, menuTrigger), isSmallScreen ? /* @__PURE__ */ React34.createElement(Tray, {
|
|
1269
1286
|
state
|
|
1270
|
-
}, menu) : /* @__PURE__ */
|
|
1287
|
+
}, menu) : /* @__PURE__ */ React34.createElement(Popover, {
|
|
1271
1288
|
triggerRef: menuTriggerRef,
|
|
1272
1289
|
scrollRef: menuRef,
|
|
1273
1290
|
state
|
|
@@ -1275,7 +1292,7 @@ var MenuTrigger = ({ disabled, children }) => {
|
|
|
1275
1292
|
};
|
|
1276
1293
|
|
|
1277
1294
|
// src/Menu/MenuItem.tsx
|
|
1278
|
-
import
|
|
1295
|
+
import React35, { useRef as useRef5 } from "react";
|
|
1279
1296
|
import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
|
|
1280
1297
|
import { useMenuItem } from "@react-aria/menu";
|
|
1281
1298
|
import { mergeProps as mergeProps3 } from "@react-aria/utils";
|
|
@@ -1297,7 +1314,7 @@ var MenuItem = ({ item, state, onAction, css }) => {
|
|
|
1297
1314
|
focus: isFocusVisible
|
|
1298
1315
|
});
|
|
1299
1316
|
const { onPointerUp, ...props } = menuItemProps;
|
|
1300
|
-
return /* @__PURE__ */
|
|
1317
|
+
return /* @__PURE__ */ React35.createElement(Box19, {
|
|
1301
1318
|
as: "li",
|
|
1302
1319
|
ref,
|
|
1303
1320
|
__baseCSS: {
|
|
@@ -1325,7 +1342,7 @@ var Menu = ({ variant, size, ...props }) => {
|
|
|
1325
1342
|
{ variant, size },
|
|
1326
1343
|
{ parts: ["container", "item"] }
|
|
1327
1344
|
);
|
|
1328
|
-
return /* @__PURE__ */
|
|
1345
|
+
return /* @__PURE__ */ React36.createElement(Box20, {
|
|
1329
1346
|
as: "ul",
|
|
1330
1347
|
ref,
|
|
1331
1348
|
__baseCSS: {
|
|
@@ -1335,7 +1352,7 @@ var Menu = ({ variant, size, ...props }) => {
|
|
|
1335
1352
|
},
|
|
1336
1353
|
css: styles.container,
|
|
1337
1354
|
...menuProps
|
|
1338
|
-
}, [...state.collection].map((item) => /* @__PURE__ */
|
|
1355
|
+
}, [...state.collection].map((item) => /* @__PURE__ */ React36.createElement(MenuItem, {
|
|
1339
1356
|
key: item.key,
|
|
1340
1357
|
item,
|
|
1341
1358
|
state,
|
|
@@ -1347,7 +1364,7 @@ Menu.Trigger = MenuTrigger;
|
|
|
1347
1364
|
Menu.Item = Item;
|
|
1348
1365
|
|
|
1349
1366
|
// src/Message/Message.tsx
|
|
1350
|
-
import
|
|
1367
|
+
import React37 from "react";
|
|
1351
1368
|
import { useComponentStyles as useComponentStyles20 } from "@marigold/system";
|
|
1352
1369
|
var Message = ({
|
|
1353
1370
|
messageTitle,
|
|
@@ -1364,43 +1381,43 @@ var Message = ({
|
|
|
1364
1381
|
},
|
|
1365
1382
|
{ parts: ["container", "icon", "title", "content"] }
|
|
1366
1383
|
);
|
|
1367
|
-
var icon = /* @__PURE__ */
|
|
1384
|
+
var icon = /* @__PURE__ */ React37.createElement("svg", {
|
|
1368
1385
|
viewBox: "0 0 24 24"
|
|
1369
|
-
}, /* @__PURE__ */
|
|
1386
|
+
}, /* @__PURE__ */ React37.createElement("path", {
|
|
1370
1387
|
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
1388
|
}));
|
|
1372
1389
|
if (variant === "warning") {
|
|
1373
|
-
icon = /* @__PURE__ */
|
|
1390
|
+
icon = /* @__PURE__ */ React37.createElement("svg", {
|
|
1374
1391
|
viewBox: "0 0 24 24"
|
|
1375
|
-
}, /* @__PURE__ */
|
|
1392
|
+
}, /* @__PURE__ */ React37.createElement("path", {
|
|
1376
1393
|
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
1394
|
}));
|
|
1378
1395
|
}
|
|
1379
1396
|
if (variant === "error") {
|
|
1380
|
-
icon = /* @__PURE__ */
|
|
1397
|
+
icon = /* @__PURE__ */ React37.createElement("svg", {
|
|
1381
1398
|
viewBox: "0 0 24 24"
|
|
1382
|
-
}, /* @__PURE__ */
|
|
1399
|
+
}, /* @__PURE__ */ React37.createElement("path", {
|
|
1383
1400
|
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
1401
|
}));
|
|
1385
1402
|
}
|
|
1386
|
-
return /* @__PURE__ */
|
|
1403
|
+
return /* @__PURE__ */ React37.createElement(Box, {
|
|
1387
1404
|
css: styles.container,
|
|
1388
1405
|
...props
|
|
1389
|
-
}, /* @__PURE__ */
|
|
1406
|
+
}, /* @__PURE__ */ React37.createElement(Box, {
|
|
1390
1407
|
__baseCSS: { display: "flex", alignItems: "top", gap: 4 }
|
|
1391
|
-
}, /* @__PURE__ */
|
|
1408
|
+
}, /* @__PURE__ */ React37.createElement(Box, {
|
|
1392
1409
|
role: "presentation",
|
|
1393
1410
|
__baseCSS: { flex: "0 0 16px" },
|
|
1394
1411
|
css: styles.icon
|
|
1395
|
-
}, icon), /* @__PURE__ */
|
|
1412
|
+
}, icon), /* @__PURE__ */ React37.createElement(Box, {
|
|
1396
1413
|
css: styles.title
|
|
1397
|
-
}, messageTitle)), /* @__PURE__ */
|
|
1414
|
+
}, messageTitle)), /* @__PURE__ */ React37.createElement(Box, {
|
|
1398
1415
|
css: styles.content
|
|
1399
1416
|
}, children));
|
|
1400
1417
|
};
|
|
1401
1418
|
|
|
1402
1419
|
// src/NumberField/NumberField.tsx
|
|
1403
|
-
import
|
|
1420
|
+
import React39, { forwardRef as forwardRef8 } from "react";
|
|
1404
1421
|
import { useFocusRing as useFocusRing4 } from "@react-aria/focus";
|
|
1405
1422
|
import { useHover as useHover4 } from "@react-aria/interactions";
|
|
1406
1423
|
import { useLocale } from "@react-aria/i18n";
|
|
@@ -1414,27 +1431,27 @@ import {
|
|
|
1414
1431
|
} from "@marigold/system";
|
|
1415
1432
|
|
|
1416
1433
|
// src/NumberField/StepButton.tsx
|
|
1417
|
-
import
|
|
1434
|
+
import React38, { useRef as useRef7 } from "react";
|
|
1418
1435
|
import { useButton as useButton3 } from "@react-aria/button";
|
|
1419
1436
|
import { useHover as useHover3 } from "@react-aria/interactions";
|
|
1420
1437
|
import { mergeProps as mergeProps4 } from "@react-aria/utils";
|
|
1421
1438
|
import { Box as Box21, useStateProps as useStateProps5 } from "@marigold/system";
|
|
1422
|
-
var Plus = () => /* @__PURE__ */
|
|
1439
|
+
var Plus = () => /* @__PURE__ */ React38.createElement(Box21, {
|
|
1423
1440
|
as: "svg",
|
|
1424
1441
|
__baseCSS: { width: 16, height: 16 },
|
|
1425
1442
|
viewBox: "0 0 20 20",
|
|
1426
1443
|
fill: "currentColor"
|
|
1427
|
-
}, /* @__PURE__ */
|
|
1444
|
+
}, /* @__PURE__ */ React38.createElement("path", {
|
|
1428
1445
|
fillRule: "evenodd",
|
|
1429
1446
|
clipRule: "evenodd",
|
|
1430
1447
|
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
1448
|
}));
|
|
1432
|
-
var Minus = () => /* @__PURE__ */
|
|
1449
|
+
var Minus = () => /* @__PURE__ */ React38.createElement(Box21, {
|
|
1433
1450
|
as: "svg",
|
|
1434
1451
|
__baseCSS: { width: 16, height: 16 },
|
|
1435
1452
|
viewBox: "0 0 20 20",
|
|
1436
1453
|
fill: "currentColor"
|
|
1437
|
-
}, /* @__PURE__ */
|
|
1454
|
+
}, /* @__PURE__ */ React38.createElement("path", {
|
|
1438
1455
|
fillRule: "evenodd",
|
|
1439
1456
|
clipRule: "evenodd",
|
|
1440
1457
|
d: "M3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
|
|
@@ -1452,7 +1469,7 @@ var StepButton = ({ direction, css, ...props }) => {
|
|
|
1452
1469
|
disabled: props.isDisabled
|
|
1453
1470
|
});
|
|
1454
1471
|
const Icon3 = direction === "up" ? Plus : Minus;
|
|
1455
|
-
return /* @__PURE__ */
|
|
1472
|
+
return /* @__PURE__ */ React38.createElement(Box21, {
|
|
1456
1473
|
__baseCSS: {
|
|
1457
1474
|
display: "flex",
|
|
1458
1475
|
alignItems: "center",
|
|
@@ -1462,7 +1479,7 @@ var StepButton = ({ direction, css, ...props }) => {
|
|
|
1462
1479
|
css,
|
|
1463
1480
|
...mergeProps4(buttonProps, hoverProps),
|
|
1464
1481
|
...stateProps
|
|
1465
|
-
}, /* @__PURE__ */
|
|
1482
|
+
}, /* @__PURE__ */ React38.createElement(Icon3, null));
|
|
1466
1483
|
};
|
|
1467
1484
|
|
|
1468
1485
|
// src/NumberField/NumberField.tsx
|
|
@@ -1516,7 +1533,7 @@ var NumberField = forwardRef8(
|
|
|
1516
1533
|
readOnly,
|
|
1517
1534
|
error
|
|
1518
1535
|
});
|
|
1519
|
-
return /* @__PURE__ */
|
|
1536
|
+
return /* @__PURE__ */ React39.createElement(FieldBase, {
|
|
1520
1537
|
label: props.label,
|
|
1521
1538
|
labelProps,
|
|
1522
1539
|
required,
|
|
@@ -1529,7 +1546,7 @@ var NumberField = forwardRef8(
|
|
|
1529
1546
|
variant,
|
|
1530
1547
|
size,
|
|
1531
1548
|
width
|
|
1532
|
-
}, /* @__PURE__ */
|
|
1549
|
+
}, /* @__PURE__ */ React39.createElement(Box22, {
|
|
1533
1550
|
"data-group": true,
|
|
1534
1551
|
__baseCSS: {
|
|
1535
1552
|
display: "flex",
|
|
@@ -1542,17 +1559,17 @@ var NumberField = forwardRef8(
|
|
|
1542
1559
|
css: styles.group,
|
|
1543
1560
|
...mergeProps5(groupProps, focusProps, hoverProps),
|
|
1544
1561
|
...stateProps
|
|
1545
|
-
}, showStepper && /* @__PURE__ */
|
|
1562
|
+
}, showStepper && /* @__PURE__ */ React39.createElement(StepButton, {
|
|
1546
1563
|
direction: "down",
|
|
1547
1564
|
css: styles.stepper,
|
|
1548
1565
|
...decrementButtonProps
|
|
1549
|
-
}), /* @__PURE__ */
|
|
1566
|
+
}), /* @__PURE__ */ React39.createElement(Input, {
|
|
1550
1567
|
ref: inputRef,
|
|
1551
1568
|
variant,
|
|
1552
1569
|
size,
|
|
1553
1570
|
...inputProps,
|
|
1554
1571
|
...stateProps
|
|
1555
|
-
}), showStepper && /* @__PURE__ */
|
|
1572
|
+
}), showStepper && /* @__PURE__ */ React39.createElement(StepButton, {
|
|
1556
1573
|
direction: "up",
|
|
1557
1574
|
css: styles.stepper,
|
|
1558
1575
|
...incrementButtonProps
|
|
@@ -1565,7 +1582,7 @@ import { useTheme as useTheme2, ThemeProvider as ThemeProvider2 } from "@marigol
|
|
|
1565
1582
|
import { SSRProvider } from "@react-aria/ssr";
|
|
1566
1583
|
|
|
1567
1584
|
// src/Provider/MarigoldProvider.tsx
|
|
1568
|
-
import
|
|
1585
|
+
import React40 from "react";
|
|
1569
1586
|
import { OverlayProvider } from "@react-aria/overlays";
|
|
1570
1587
|
import {
|
|
1571
1588
|
Global,
|
|
@@ -1588,16 +1605,16 @@ function MarigoldProvider({
|
|
|
1588
1605
|
Nested themes with a "root" property must specify a "selector" to prevent accidentally overriding global CSS`
|
|
1589
1606
|
);
|
|
1590
1607
|
}
|
|
1591
|
-
return /* @__PURE__ */
|
|
1608
|
+
return /* @__PURE__ */ React40.createElement(ThemeProvider, {
|
|
1592
1609
|
theme
|
|
1593
|
-
}, /* @__PURE__ */
|
|
1610
|
+
}, /* @__PURE__ */ React40.createElement(Global, {
|
|
1594
1611
|
normalizeDocument: isTopLevel && normalizeDocument,
|
|
1595
1612
|
selector
|
|
1596
|
-
}), isTopLevel ? /* @__PURE__ */
|
|
1613
|
+
}), isTopLevel ? /* @__PURE__ */ React40.createElement(OverlayProvider, null, children) : children);
|
|
1597
1614
|
}
|
|
1598
1615
|
|
|
1599
1616
|
// src/Radio/Radio.tsx
|
|
1600
|
-
import
|
|
1617
|
+
import React42, {
|
|
1601
1618
|
forwardRef as forwardRef9
|
|
1602
1619
|
} from "react";
|
|
1603
1620
|
import { useHover as useHover5 } from "@react-aria/interactions";
|
|
@@ -1611,14 +1628,14 @@ import {
|
|
|
1611
1628
|
} from "@marigold/system";
|
|
1612
1629
|
|
|
1613
1630
|
// src/Radio/Context.ts
|
|
1614
|
-
import { createContext as
|
|
1615
|
-
var RadioGroupContext =
|
|
1631
|
+
import { createContext as createContext6, useContext as useContext6 } from "react";
|
|
1632
|
+
var RadioGroupContext = createContext6(
|
|
1616
1633
|
null
|
|
1617
1634
|
);
|
|
1618
|
-
var useRadioGroupContext = () =>
|
|
1635
|
+
var useRadioGroupContext = () => useContext6(RadioGroupContext);
|
|
1619
1636
|
|
|
1620
1637
|
// src/Radio/RadioGroup.tsx
|
|
1621
|
-
import
|
|
1638
|
+
import React41 from "react";
|
|
1622
1639
|
import { useRadioGroup } from "@react-aria/radio";
|
|
1623
1640
|
import { useRadioGroupState } from "@react-stately/radio";
|
|
1624
1641
|
import { Box as Box23, useStateProps as useStateProps7 } from "@marigold/system";
|
|
@@ -1646,7 +1663,7 @@ var RadioGroup = ({
|
|
|
1646
1663
|
readOnly,
|
|
1647
1664
|
error
|
|
1648
1665
|
});
|
|
1649
|
-
return /* @__PURE__ */
|
|
1666
|
+
return /* @__PURE__ */ React41.createElement(FieldBase, {
|
|
1650
1667
|
width,
|
|
1651
1668
|
label: props.label,
|
|
1652
1669
|
labelProps: { as: "span", ...labelProps },
|
|
@@ -1659,7 +1676,7 @@ var RadioGroup = ({
|
|
|
1659
1676
|
stateProps,
|
|
1660
1677
|
required,
|
|
1661
1678
|
...radioGroupProps
|
|
1662
|
-
}, /* @__PURE__ */
|
|
1679
|
+
}, /* @__PURE__ */ React41.createElement(Box23, {
|
|
1663
1680
|
role: "presentation",
|
|
1664
1681
|
"data-orientation": orientation,
|
|
1665
1682
|
__baseCSS: {
|
|
@@ -1668,21 +1685,21 @@ var RadioGroup = ({
|
|
|
1668
1685
|
alignItems: "start",
|
|
1669
1686
|
gap: orientation === "vertical" ? "0.5ch" : "1.5ch"
|
|
1670
1687
|
}
|
|
1671
|
-
}, /* @__PURE__ */
|
|
1688
|
+
}, /* @__PURE__ */ React41.createElement(RadioGroupContext.Provider, {
|
|
1672
1689
|
value: { width, error, state }
|
|
1673
1690
|
}, children)));
|
|
1674
1691
|
};
|
|
1675
1692
|
|
|
1676
1693
|
// src/Radio/Radio.tsx
|
|
1677
|
-
var Dot = () => /* @__PURE__ */
|
|
1694
|
+
var Dot = () => /* @__PURE__ */ React42.createElement("svg", {
|
|
1678
1695
|
viewBox: "0 0 6 6"
|
|
1679
|
-
}, /* @__PURE__ */
|
|
1696
|
+
}, /* @__PURE__ */ React42.createElement("circle", {
|
|
1680
1697
|
fill: "currentColor",
|
|
1681
1698
|
cx: "3",
|
|
1682
1699
|
cy: "3",
|
|
1683
1700
|
r: "3"
|
|
1684
1701
|
}));
|
|
1685
|
-
var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */
|
|
1702
|
+
var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */ React42.createElement(Box24, {
|
|
1686
1703
|
"aria-hidden": "true",
|
|
1687
1704
|
__baseCSS: {
|
|
1688
1705
|
width: 16,
|
|
@@ -1697,7 +1714,7 @@ var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */ React41.createElemen
|
|
|
1697
1714
|
},
|
|
1698
1715
|
css,
|
|
1699
1716
|
...props
|
|
1700
|
-
}, checked ? /* @__PURE__ */
|
|
1717
|
+
}, checked ? /* @__PURE__ */ React42.createElement(Dot, null) : null);
|
|
1701
1718
|
var Radio = forwardRef9(
|
|
1702
1719
|
({ width, disabled, ...props }, ref) => {
|
|
1703
1720
|
const {
|
|
@@ -1728,7 +1745,7 @@ var Radio = forwardRef9(
|
|
|
1728
1745
|
readOnly: props.readOnly,
|
|
1729
1746
|
error
|
|
1730
1747
|
});
|
|
1731
|
-
return /* @__PURE__ */
|
|
1748
|
+
return /* @__PURE__ */ React42.createElement(Box24, {
|
|
1732
1749
|
as: "label",
|
|
1733
1750
|
__baseCSS: {
|
|
1734
1751
|
display: "flex",
|
|
@@ -1739,7 +1756,7 @@ var Radio = forwardRef9(
|
|
|
1739
1756
|
},
|
|
1740
1757
|
css: styles.container,
|
|
1741
1758
|
...mergeProps6(hoverProps, stateProps)
|
|
1742
|
-
}, /* @__PURE__ */
|
|
1759
|
+
}, /* @__PURE__ */ React42.createElement(Box24, {
|
|
1743
1760
|
as: "input",
|
|
1744
1761
|
ref: inputRef,
|
|
1745
1762
|
css: {
|
|
@@ -1753,11 +1770,11 @@ var Radio = forwardRef9(
|
|
|
1753
1770
|
cursor: inputProps.disabled ? "not-allowed" : "pointer"
|
|
1754
1771
|
},
|
|
1755
1772
|
...mergeProps6(inputProps, focusProps)
|
|
1756
|
-
}), /* @__PURE__ */
|
|
1773
|
+
}), /* @__PURE__ */ React42.createElement(Icon2, {
|
|
1757
1774
|
checked: inputProps.checked,
|
|
1758
1775
|
css: styles.radio,
|
|
1759
1776
|
...stateProps
|
|
1760
|
-
}), /* @__PURE__ */
|
|
1777
|
+
}), /* @__PURE__ */ React42.createElement(Box24, {
|
|
1761
1778
|
css: styles.label,
|
|
1762
1779
|
...stateProps
|
|
1763
1780
|
}, props.children));
|
|
@@ -1766,7 +1783,7 @@ var Radio = forwardRef9(
|
|
|
1766
1783
|
Radio.Group = RadioGroup;
|
|
1767
1784
|
|
|
1768
1785
|
// src/Select/Select.tsx
|
|
1769
|
-
import
|
|
1786
|
+
import React46, {
|
|
1770
1787
|
forwardRef as forwardRef11,
|
|
1771
1788
|
useRef as useRef9
|
|
1772
1789
|
} from "react";
|
|
@@ -1785,7 +1802,7 @@ import {
|
|
|
1785
1802
|
} from "@marigold/system";
|
|
1786
1803
|
|
|
1787
1804
|
// src/ListBox/ListBox.tsx
|
|
1788
|
-
import
|
|
1805
|
+
import React45, { forwardRef as forwardRef10 } from "react";
|
|
1789
1806
|
import { useObjectRef as useObjectRef10 } from "@react-aria/utils";
|
|
1790
1807
|
import {
|
|
1791
1808
|
Box as Box27,
|
|
@@ -1794,17 +1811,17 @@ import {
|
|
|
1794
1811
|
import { useListBox } from "@react-aria/listbox";
|
|
1795
1812
|
|
|
1796
1813
|
// src/ListBox/Context.ts
|
|
1797
|
-
import { createContext as
|
|
1798
|
-
var ListBoxContext =
|
|
1799
|
-
var useListBoxContext = () =>
|
|
1814
|
+
import { createContext as createContext7, useContext as useContext7 } from "react";
|
|
1815
|
+
var ListBoxContext = createContext7({});
|
|
1816
|
+
var useListBoxContext = () => useContext7(ListBoxContext);
|
|
1800
1817
|
|
|
1801
1818
|
// src/ListBox/ListBoxSection.tsx
|
|
1802
|
-
import
|
|
1819
|
+
import React44 from "react";
|
|
1803
1820
|
import { useListBoxSection } from "@react-aria/listbox";
|
|
1804
1821
|
import { Box as Box26 } from "@marigold/system";
|
|
1805
1822
|
|
|
1806
1823
|
// src/ListBox/ListBoxOption.tsx
|
|
1807
|
-
import
|
|
1824
|
+
import React43, { useRef as useRef8 } from "react";
|
|
1808
1825
|
import { useOption } from "@react-aria/listbox";
|
|
1809
1826
|
import { mergeProps as mergeProps7 } from "@react-aria/utils";
|
|
1810
1827
|
import { Box as Box25, useStateProps as useStateProps9 } from "@marigold/system";
|
|
@@ -1824,7 +1841,7 @@ var ListBoxOption = ({ item, state }) => {
|
|
|
1824
1841
|
disabled: isDisabled,
|
|
1825
1842
|
focusVisible: isFocused
|
|
1826
1843
|
});
|
|
1827
|
-
return /* @__PURE__ */
|
|
1844
|
+
return /* @__PURE__ */ React43.createElement(Box25, {
|
|
1828
1845
|
as: "li",
|
|
1829
1846
|
ref,
|
|
1830
1847
|
css: styles.option,
|
|
@@ -1839,19 +1856,19 @@ var ListBoxSection = ({ section, state }) => {
|
|
|
1839
1856
|
"aria-label": section["aria-label"]
|
|
1840
1857
|
});
|
|
1841
1858
|
const { styles } = useListBoxContext();
|
|
1842
|
-
return /* @__PURE__ */
|
|
1859
|
+
return /* @__PURE__ */ React44.createElement(Box26, {
|
|
1843
1860
|
as: "li",
|
|
1844
1861
|
css: styles.section,
|
|
1845
1862
|
...itemProps
|
|
1846
|
-
}, section.rendered && /* @__PURE__ */
|
|
1863
|
+
}, section.rendered && /* @__PURE__ */ React44.createElement(Box26, {
|
|
1847
1864
|
css: styles.sectionTitle,
|
|
1848
1865
|
...headingProps
|
|
1849
|
-
}, section.rendered), /* @__PURE__ */
|
|
1866
|
+
}, section.rendered), /* @__PURE__ */ React44.createElement(Box26, {
|
|
1850
1867
|
as: "ul",
|
|
1851
1868
|
__baseCSS: { listStyle: "none", p: 0 },
|
|
1852
1869
|
css: styles.list,
|
|
1853
1870
|
...groupProps
|
|
1854
|
-
}, [...section.childNodes].map((node) => /* @__PURE__ */
|
|
1871
|
+
}, [...section.childNodes].map((node) => /* @__PURE__ */ React44.createElement(ListBoxOption, {
|
|
1855
1872
|
key: node.key,
|
|
1856
1873
|
item: node,
|
|
1857
1874
|
state
|
|
@@ -1868,22 +1885,22 @@ var ListBox = forwardRef10(
|
|
|
1868
1885
|
{ variant, size },
|
|
1869
1886
|
{ parts: ["container", "list", "option", "section", "sectionTitle"] }
|
|
1870
1887
|
);
|
|
1871
|
-
return /* @__PURE__ */
|
|
1888
|
+
return /* @__PURE__ */ React45.createElement(ListBoxContext.Provider, {
|
|
1872
1889
|
value: { styles }
|
|
1873
|
-
}, /* @__PURE__ */
|
|
1890
|
+
}, /* @__PURE__ */ React45.createElement(Box27, {
|
|
1874
1891
|
css: styles.container
|
|
1875
|
-
}, /* @__PURE__ */
|
|
1892
|
+
}, /* @__PURE__ */ React45.createElement(Box27, {
|
|
1876
1893
|
as: "ul",
|
|
1877
1894
|
ref: innerRef,
|
|
1878
1895
|
__baseCSS: { listStyle: "none", p: 0 },
|
|
1879
1896
|
css: styles.list,
|
|
1880
1897
|
...listBoxProps
|
|
1881
1898
|
}, [...state.collection].map(
|
|
1882
|
-
(item) => item.type === "section" ? /* @__PURE__ */
|
|
1899
|
+
(item) => item.type === "section" ? /* @__PURE__ */ React45.createElement(ListBoxSection, {
|
|
1883
1900
|
key: item.key,
|
|
1884
1901
|
section: item,
|
|
1885
1902
|
state
|
|
1886
|
-
}) : /* @__PURE__ */
|
|
1903
|
+
}) : /* @__PURE__ */ React45.createElement(ListBoxOption, {
|
|
1887
1904
|
key: item.key,
|
|
1888
1905
|
item,
|
|
1889
1906
|
state
|
|
@@ -1903,14 +1920,14 @@ var messages = {
|
|
|
1903
1920
|
};
|
|
1904
1921
|
|
|
1905
1922
|
// src/Select/Select.tsx
|
|
1906
|
-
var Chevron = ({ css }) => /* @__PURE__ */
|
|
1923
|
+
var Chevron = ({ css }) => /* @__PURE__ */ React46.createElement(Box28, {
|
|
1907
1924
|
as: "svg",
|
|
1908
1925
|
__baseCSS: { width: 16, height: 16, fill: "none" },
|
|
1909
1926
|
css,
|
|
1910
1927
|
viewBox: "0 0 24 24",
|
|
1911
1928
|
stroke: "currentColor",
|
|
1912
1929
|
strokeWidth: 2
|
|
1913
|
-
}, /* @__PURE__ */
|
|
1930
|
+
}, /* @__PURE__ */ React46.createElement("path", {
|
|
1914
1931
|
strokeLinecap: "round",
|
|
1915
1932
|
strokeLinejoin: "round",
|
|
1916
1933
|
d: "M19 9l-7 7-7-7"
|
|
@@ -1954,7 +1971,7 @@ var Select = forwardRef11(
|
|
|
1954
1971
|
focusVisible: isFocusVisible,
|
|
1955
1972
|
expanded: state.isOpen
|
|
1956
1973
|
});
|
|
1957
|
-
return /* @__PURE__ */
|
|
1974
|
+
return /* @__PURE__ */ React46.createElement(FieldBase, {
|
|
1958
1975
|
variant,
|
|
1959
1976
|
size,
|
|
1960
1977
|
width,
|
|
@@ -1968,13 +1985,13 @@ var Select = forwardRef11(
|
|
|
1968
1985
|
stateProps,
|
|
1969
1986
|
disabled,
|
|
1970
1987
|
required
|
|
1971
|
-
}, /* @__PURE__ */
|
|
1988
|
+
}, /* @__PURE__ */ React46.createElement(HiddenSelect, {
|
|
1972
1989
|
state,
|
|
1973
1990
|
triggerRef: buttonRef,
|
|
1974
1991
|
label: props.label,
|
|
1975
1992
|
name: props.name,
|
|
1976
1993
|
isDisabled: disabled
|
|
1977
|
-
}), /* @__PURE__ */
|
|
1994
|
+
}), /* @__PURE__ */ React46.createElement(Box28, {
|
|
1978
1995
|
as: "button",
|
|
1979
1996
|
__baseCSS: {
|
|
1980
1997
|
display: "flex",
|
|
@@ -1987,27 +2004,27 @@ var Select = forwardRef11(
|
|
|
1987
2004
|
ref: buttonRef,
|
|
1988
2005
|
...mergeProps8(buttonProps, focusProps),
|
|
1989
2006
|
...stateProps
|
|
1990
|
-
}, /* @__PURE__ */
|
|
2007
|
+
}, /* @__PURE__ */ React46.createElement(Box28, {
|
|
1991
2008
|
css: {
|
|
1992
2009
|
overflow: "hidden",
|
|
1993
2010
|
whiteSpace: "nowrap"
|
|
1994
2011
|
},
|
|
1995
2012
|
...valueProps
|
|
1996
|
-
}, state.selectedItem ? state.selectedItem.rendered : props.placeholder), /* @__PURE__ */
|
|
2013
|
+
}, state.selectedItem ? state.selectedItem.rendered : props.placeholder), /* @__PURE__ */ React46.createElement(Chevron, {
|
|
1997
2014
|
css: styles.icon
|
|
1998
|
-
})), isSmallScreen ? /* @__PURE__ */
|
|
2015
|
+
})), isSmallScreen ? /* @__PURE__ */ React46.createElement(Tray, {
|
|
1999
2016
|
state
|
|
2000
|
-
}, /* @__PURE__ */
|
|
2017
|
+
}, /* @__PURE__ */ React46.createElement(ListBox, {
|
|
2001
2018
|
ref: listboxRef,
|
|
2002
2019
|
state,
|
|
2003
2020
|
variant,
|
|
2004
2021
|
size,
|
|
2005
2022
|
...menuProps
|
|
2006
|
-
})) : /* @__PURE__ */
|
|
2023
|
+
})) : /* @__PURE__ */ React46.createElement(Popover, {
|
|
2007
2024
|
state,
|
|
2008
2025
|
triggerRef: buttonRef,
|
|
2009
2026
|
scrollRef: listboxRef
|
|
2010
|
-
}, /* @__PURE__ */
|
|
2027
|
+
}, /* @__PURE__ */ React46.createElement(ListBox, {
|
|
2011
2028
|
ref: listboxRef,
|
|
2012
2029
|
state,
|
|
2013
2030
|
variant,
|
|
@@ -2020,7 +2037,7 @@ Select.Option = Item2;
|
|
|
2020
2037
|
Select.Section = Section;
|
|
2021
2038
|
|
|
2022
2039
|
// src/Slider/Slider.tsx
|
|
2023
|
-
import
|
|
2040
|
+
import React48, { forwardRef as forwardRef12 } from "react";
|
|
2024
2041
|
import { useSlider } from "@react-aria/slider";
|
|
2025
2042
|
import { useSliderState } from "@react-stately/slider";
|
|
2026
2043
|
import { useNumberFormatter } from "@react-aria/i18n";
|
|
@@ -2028,7 +2045,7 @@ import { useObjectRef as useObjectRef12 } from "@react-aria/utils";
|
|
|
2028
2045
|
import { useComponentStyles as useComponentStyles25 } from "@marigold/system";
|
|
2029
2046
|
|
|
2030
2047
|
// src/Slider/Thumb.tsx
|
|
2031
|
-
import
|
|
2048
|
+
import React47, { useEffect } from "react";
|
|
2032
2049
|
import { useSliderThumb } from "@react-aria/slider";
|
|
2033
2050
|
import { mergeProps as mergeProps9 } from "@react-aria/utils";
|
|
2034
2051
|
import { useStateProps as useStateProps11 } from "@marigold/system";
|
|
@@ -2040,7 +2057,7 @@ import { VisuallyHidden } from "@react-aria/visually-hidden";
|
|
|
2040
2057
|
import { useFocusRing as useFocusRing7 } from "@react-aria/focus";
|
|
2041
2058
|
var Thumb = ({ state, trackRef, styles, ...props }) => {
|
|
2042
2059
|
const { disabled } = props;
|
|
2043
|
-
const inputRef =
|
|
2060
|
+
const inputRef = React47.useRef(null);
|
|
2044
2061
|
const { isFocusVisible, focusProps, isFocused } = useFocusRing7();
|
|
2045
2062
|
const focused = isFocused || isFocusVisible || state.isThumbDragging(0);
|
|
2046
2063
|
const stateProps = useStateProps11({
|
|
@@ -2059,12 +2076,12 @@ var Thumb = ({ state, trackRef, styles, ...props }) => {
|
|
|
2059
2076
|
useEffect(() => {
|
|
2060
2077
|
state.setThumbEditable(0, !disabled);
|
|
2061
2078
|
}, [disabled, state]);
|
|
2062
|
-
return /* @__PURE__ */
|
|
2079
|
+
return /* @__PURE__ */ React47.createElement(Box, {
|
|
2063
2080
|
__baseCSS: { top: "50%" },
|
|
2064
2081
|
css: styles,
|
|
2065
2082
|
...thumbProps,
|
|
2066
2083
|
...stateProps
|
|
2067
|
-
}, /* @__PURE__ */
|
|
2084
|
+
}, /* @__PURE__ */ React47.createElement(VisuallyHidden, null, /* @__PURE__ */ React47.createElement(Box, {
|
|
2068
2085
|
as: "input",
|
|
2069
2086
|
type: "range",
|
|
2070
2087
|
ref: inputRef,
|
|
@@ -2092,7 +2109,7 @@ var Slider = forwardRef12(
|
|
|
2092
2109
|
{ variant, size },
|
|
2093
2110
|
{ parts: ["track", "thumb", "label", "output"] }
|
|
2094
2111
|
);
|
|
2095
|
-
return /* @__PURE__ */
|
|
2112
|
+
return /* @__PURE__ */ React48.createElement(Box, {
|
|
2096
2113
|
__baseCSS: {
|
|
2097
2114
|
display: "flex",
|
|
2098
2115
|
flexDirection: "column",
|
|
@@ -2100,18 +2117,18 @@ var Slider = forwardRef12(
|
|
|
2100
2117
|
width
|
|
2101
2118
|
},
|
|
2102
2119
|
...groupProps
|
|
2103
|
-
}, /* @__PURE__ */
|
|
2120
|
+
}, /* @__PURE__ */ React48.createElement(Box, {
|
|
2104
2121
|
__baseCSS: { display: "flex", alignSelf: "stretch" }
|
|
2105
|
-
}, props.children && /* @__PURE__ */
|
|
2122
|
+
}, props.children && /* @__PURE__ */ React48.createElement(Box, {
|
|
2106
2123
|
as: "label",
|
|
2107
2124
|
__baseCSS: styles.label,
|
|
2108
2125
|
...labelProps
|
|
2109
|
-
}, props.children), /* @__PURE__ */
|
|
2126
|
+
}, props.children), /* @__PURE__ */ React48.createElement(Box, {
|
|
2110
2127
|
as: "output",
|
|
2111
2128
|
...outputProps,
|
|
2112
2129
|
__baseCSS: { flex: "1 0 auto", textAlign: "end" },
|
|
2113
2130
|
css: styles.output
|
|
2114
|
-
}, state.getThumbValueLabel(0))), /* @__PURE__ */
|
|
2131
|
+
}, state.getThumbValueLabel(0))), /* @__PURE__ */ React48.createElement(Box, {
|
|
2115
2132
|
...trackProps,
|
|
2116
2133
|
ref: trackRef,
|
|
2117
2134
|
__baseCSS: {
|
|
@@ -2119,13 +2136,13 @@ var Slider = forwardRef12(
|
|
|
2119
2136
|
width: "100%",
|
|
2120
2137
|
cursor: props.disabled ? "not-allowed" : "pointer"
|
|
2121
2138
|
}
|
|
2122
|
-
}, /* @__PURE__ */
|
|
2139
|
+
}, /* @__PURE__ */ React48.createElement(Box, {
|
|
2123
2140
|
__baseCSS: {
|
|
2124
2141
|
top: "50%",
|
|
2125
2142
|
transform: "translateY(-50%)"
|
|
2126
2143
|
},
|
|
2127
2144
|
css: styles.track
|
|
2128
|
-
}), /* @__PURE__ */
|
|
2145
|
+
}), /* @__PURE__ */ React48.createElement(Thumb, {
|
|
2129
2146
|
state,
|
|
2130
2147
|
trackRef,
|
|
2131
2148
|
disabled: props.disabled,
|
|
@@ -2135,16 +2152,16 @@ var Slider = forwardRef12(
|
|
|
2135
2152
|
);
|
|
2136
2153
|
|
|
2137
2154
|
// src/Split/Split.tsx
|
|
2138
|
-
import
|
|
2155
|
+
import React49 from "react";
|
|
2139
2156
|
import { Box as Box29 } from "@marigold/system";
|
|
2140
|
-
var Split = (props) => /* @__PURE__ */
|
|
2157
|
+
var Split = (props) => /* @__PURE__ */ React49.createElement(Box29, {
|
|
2141
2158
|
...props,
|
|
2142
2159
|
role: "separator",
|
|
2143
2160
|
css: { flexGrow: 1 }
|
|
2144
2161
|
});
|
|
2145
2162
|
|
|
2146
2163
|
// src/Stack/Stack.tsx
|
|
2147
|
-
import
|
|
2164
|
+
import React50 from "react";
|
|
2148
2165
|
var ALIGNMENT_X2 = {
|
|
2149
2166
|
none: "initial",
|
|
2150
2167
|
left: "flex-start",
|
|
@@ -2164,7 +2181,7 @@ var Stack = ({
|
|
|
2164
2181
|
alignY = "none",
|
|
2165
2182
|
stretch = false,
|
|
2166
2183
|
...props
|
|
2167
|
-
}) => /* @__PURE__ */
|
|
2184
|
+
}) => /* @__PURE__ */ React50.createElement(Box, {
|
|
2168
2185
|
css: {
|
|
2169
2186
|
display: "flex",
|
|
2170
2187
|
flexDirection: "column",
|
|
@@ -2178,7 +2195,7 @@ var Stack = ({
|
|
|
2178
2195
|
}, children);
|
|
2179
2196
|
|
|
2180
2197
|
// src/Switch/Switch.tsx
|
|
2181
|
-
import
|
|
2198
|
+
import React51, { forwardRef as forwardRef13 } from "react";
|
|
2182
2199
|
import { useFocusRing as useFocusRing8 } from "@react-aria/focus";
|
|
2183
2200
|
import { useSwitch } from "@react-aria/switch";
|
|
2184
2201
|
import { useObjectRef as useObjectRef13 } from "@react-aria/utils";
|
|
@@ -2220,7 +2237,7 @@ var Switch = forwardRef13(
|
|
|
2220
2237
|
{ variant, size },
|
|
2221
2238
|
{ parts: ["container", "label", "track", "thumb"] }
|
|
2222
2239
|
);
|
|
2223
|
-
return /* @__PURE__ */
|
|
2240
|
+
return /* @__PURE__ */ React51.createElement(Box, {
|
|
2224
2241
|
as: "label",
|
|
2225
2242
|
__baseCSS: {
|
|
2226
2243
|
display: "flex",
|
|
@@ -2231,7 +2248,7 @@ var Switch = forwardRef13(
|
|
|
2231
2248
|
width
|
|
2232
2249
|
},
|
|
2233
2250
|
css: styles.container
|
|
2234
|
-
}, /* @__PURE__ */
|
|
2251
|
+
}, /* @__PURE__ */ React51.createElement(Box, {
|
|
2235
2252
|
as: "input",
|
|
2236
2253
|
ref: inputRef,
|
|
2237
2254
|
css: {
|
|
@@ -2246,9 +2263,9 @@ var Switch = forwardRef13(
|
|
|
2246
2263
|
},
|
|
2247
2264
|
...inputProps,
|
|
2248
2265
|
...focusProps
|
|
2249
|
-
}), props.children && /* @__PURE__ */
|
|
2266
|
+
}), props.children && /* @__PURE__ */ React51.createElement(Box, {
|
|
2250
2267
|
css: styles.label
|
|
2251
|
-
}, props.children), /* @__PURE__ */
|
|
2268
|
+
}, props.children), /* @__PURE__ */ React51.createElement(Box, {
|
|
2252
2269
|
__baseCSS: {
|
|
2253
2270
|
position: "relative",
|
|
2254
2271
|
width: 48,
|
|
@@ -2259,7 +2276,7 @@ var Switch = forwardRef13(
|
|
|
2259
2276
|
},
|
|
2260
2277
|
css: styles.track,
|
|
2261
2278
|
...stateProps
|
|
2262
|
-
}, /* @__PURE__ */
|
|
2279
|
+
}, /* @__PURE__ */ React51.createElement(Box, {
|
|
2263
2280
|
__baseCSS: {
|
|
2264
2281
|
display: "block",
|
|
2265
2282
|
position: "absolute",
|
|
@@ -2283,7 +2300,7 @@ var Switch = forwardRef13(
|
|
|
2283
2300
|
);
|
|
2284
2301
|
|
|
2285
2302
|
// src/Table/Table.tsx
|
|
2286
|
-
import
|
|
2303
|
+
import React60, { useRef as useRef16 } from "react";
|
|
2287
2304
|
import { useTable } from "@react-aria/table";
|
|
2288
2305
|
import {
|
|
2289
2306
|
Cell,
|
|
@@ -2299,22 +2316,22 @@ import {
|
|
|
2299
2316
|
} from "@marigold/system";
|
|
2300
2317
|
|
|
2301
2318
|
// src/Table/Context.tsx
|
|
2302
|
-
import { createContext as
|
|
2303
|
-
var TableContext =
|
|
2304
|
-
var useTableContext = () =>
|
|
2319
|
+
import { createContext as createContext8, useContext as useContext8 } from "react";
|
|
2320
|
+
var TableContext = createContext8({});
|
|
2321
|
+
var useTableContext = () => useContext8(TableContext);
|
|
2305
2322
|
|
|
2306
2323
|
// src/Table/TableBody.tsx
|
|
2307
|
-
import
|
|
2324
|
+
import React52 from "react";
|
|
2308
2325
|
import { useTableRowGroup } from "@react-aria/table";
|
|
2309
2326
|
var TableBody = ({ children }) => {
|
|
2310
2327
|
const { rowGroupProps } = useTableRowGroup();
|
|
2311
|
-
return /* @__PURE__ */
|
|
2328
|
+
return /* @__PURE__ */ React52.createElement("tbody", {
|
|
2312
2329
|
...rowGroupProps
|
|
2313
2330
|
}, children);
|
|
2314
2331
|
};
|
|
2315
2332
|
|
|
2316
2333
|
// src/Table/TableCell.tsx
|
|
2317
|
-
import
|
|
2334
|
+
import React53, { useRef as useRef10 } from "react";
|
|
2318
2335
|
import { useTableCell } from "@react-aria/table";
|
|
2319
2336
|
import { useFocusRing as useFocusRing9 } from "@react-aria/focus";
|
|
2320
2337
|
import { mergeProps as mergeProps10 } from "@react-aria/utils";
|
|
@@ -2337,7 +2354,7 @@ var TableCell = ({ cell }) => {
|
|
|
2337
2354
|
};
|
|
2338
2355
|
const { focusProps, isFocusVisible } = useFocusRing9();
|
|
2339
2356
|
const stateProps = useStateProps13({ disabled, focusVisible: isFocusVisible });
|
|
2340
|
-
return /* @__PURE__ */
|
|
2357
|
+
return /* @__PURE__ */ React53.createElement(Box30, {
|
|
2341
2358
|
as: "td",
|
|
2342
2359
|
ref,
|
|
2343
2360
|
css: styles.cell,
|
|
@@ -2347,7 +2364,7 @@ var TableCell = ({ cell }) => {
|
|
|
2347
2364
|
};
|
|
2348
2365
|
|
|
2349
2366
|
// src/Table/TableCheckboxCell.tsx
|
|
2350
|
-
import
|
|
2367
|
+
import React54, { useRef as useRef11 } from "react";
|
|
2351
2368
|
import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
|
|
2352
2369
|
import { useFocusRing as useFocusRing10 } from "@react-aria/focus";
|
|
2353
2370
|
import { mergeProps as mergeProps11 } from "@react-aria/utils";
|
|
@@ -2390,7 +2407,7 @@ var TableCheckboxCell = ({ cell }) => {
|
|
|
2390
2407
|
);
|
|
2391
2408
|
const { focusProps, isFocusVisible } = useFocusRing10();
|
|
2392
2409
|
const stateProps = useStateProps14({ disabled, focusVisible: isFocusVisible });
|
|
2393
|
-
return /* @__PURE__ */
|
|
2410
|
+
return /* @__PURE__ */ React54.createElement(Box31, {
|
|
2394
2411
|
as: "td",
|
|
2395
2412
|
ref,
|
|
2396
2413
|
__baseCSS: {
|
|
@@ -2401,13 +2418,13 @@ var TableCheckboxCell = ({ cell }) => {
|
|
|
2401
2418
|
css: styles.cell,
|
|
2402
2419
|
...mergeProps11(gridCellProps, focusProps),
|
|
2403
2420
|
...stateProps
|
|
2404
|
-
}, /* @__PURE__ */
|
|
2421
|
+
}, /* @__PURE__ */ React54.createElement(Checkbox, {
|
|
2405
2422
|
...checkboxProps
|
|
2406
2423
|
}));
|
|
2407
2424
|
};
|
|
2408
2425
|
|
|
2409
2426
|
// src/Table/TableColumnHeader.tsx
|
|
2410
|
-
import
|
|
2427
|
+
import React55, { useRef as useRef12 } from "react";
|
|
2411
2428
|
import { useFocusRing as useFocusRing11 } from "@react-aria/focus";
|
|
2412
2429
|
import { useHover as useHover6 } from "@react-aria/interactions";
|
|
2413
2430
|
import { useTableColumnHeader } from "@react-aria/table";
|
|
@@ -2416,7 +2433,7 @@ import { Box as Box32, useStateProps as useStateProps15 } from "@marigold/system
|
|
|
2416
2433
|
var SortIndicator = ({
|
|
2417
2434
|
direction = "ascending",
|
|
2418
2435
|
visible
|
|
2419
|
-
}) => /* @__PURE__ */
|
|
2436
|
+
}) => /* @__PURE__ */ React55.createElement(Box32, {
|
|
2420
2437
|
as: "span",
|
|
2421
2438
|
role: "presentation",
|
|
2422
2439
|
"aria-hidden": "true",
|
|
@@ -2443,7 +2460,7 @@ var TableColumnHeader = ({ column }) => {
|
|
|
2443
2460
|
hover: isHovered,
|
|
2444
2461
|
focusVisible: isFocusVisible
|
|
2445
2462
|
});
|
|
2446
|
-
return /* @__PURE__ */
|
|
2463
|
+
return /* @__PURE__ */ React55.createElement(Box32, {
|
|
2447
2464
|
as: "th",
|
|
2448
2465
|
colSpan: column.colspan,
|
|
2449
2466
|
ref,
|
|
@@ -2451,37 +2468,37 @@ var TableColumnHeader = ({ column }) => {
|
|
|
2451
2468
|
css: styles.header,
|
|
2452
2469
|
...mergeProps12(columnHeaderProps, hoverProps, focusProps),
|
|
2453
2470
|
...stateProps
|
|
2454
|
-
}, column.rendered, column.props.allowsSorting && /* @__PURE__ */
|
|
2471
|
+
}, column.rendered, column.props.allowsSorting && /* @__PURE__ */ React55.createElement(SortIndicator, {
|
|
2455
2472
|
direction: (_a = state.sortDescriptor) == null ? void 0 : _a.direction,
|
|
2456
2473
|
visible: ((_b = state.sortDescriptor) == null ? void 0 : _b.column) === column.key
|
|
2457
2474
|
}));
|
|
2458
2475
|
};
|
|
2459
2476
|
|
|
2460
2477
|
// src/Table/TableHeader.tsx
|
|
2461
|
-
import
|
|
2478
|
+
import React56 from "react";
|
|
2462
2479
|
import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
|
|
2463
2480
|
var TableHeader = ({ children }) => {
|
|
2464
2481
|
const { rowGroupProps } = useTableRowGroup2();
|
|
2465
|
-
return /* @__PURE__ */
|
|
2482
|
+
return /* @__PURE__ */ React56.createElement("thead", {
|
|
2466
2483
|
...rowGroupProps
|
|
2467
2484
|
}, children);
|
|
2468
2485
|
};
|
|
2469
2486
|
|
|
2470
2487
|
// src/Table/TableHeaderRow.tsx
|
|
2471
|
-
import
|
|
2488
|
+
import React57, { useRef as useRef13 } from "react";
|
|
2472
2489
|
import { useTableHeaderRow } from "@react-aria/table";
|
|
2473
2490
|
var TableHeaderRow = ({ item, children }) => {
|
|
2474
2491
|
const { state } = useTableContext();
|
|
2475
2492
|
const ref = useRef13(null);
|
|
2476
2493
|
const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
|
|
2477
|
-
return /* @__PURE__ */
|
|
2494
|
+
return /* @__PURE__ */ React57.createElement("tr", {
|
|
2478
2495
|
...rowProps,
|
|
2479
2496
|
ref
|
|
2480
2497
|
}, children);
|
|
2481
2498
|
};
|
|
2482
2499
|
|
|
2483
2500
|
// src/Table/TableRow.tsx
|
|
2484
|
-
import
|
|
2501
|
+
import React58, { useRef as useRef14 } from "react";
|
|
2485
2502
|
import { useFocusRing as useFocusRing12 } from "@react-aria/focus";
|
|
2486
2503
|
import { useHover as useHover7 } from "@react-aria/interactions";
|
|
2487
2504
|
import { useTableRow } from "@react-aria/table";
|
|
@@ -2516,7 +2533,7 @@ var TableRow = ({ children, row }) => {
|
|
|
2516
2533
|
focusVisible: isFocusVisible,
|
|
2517
2534
|
active: isPressed
|
|
2518
2535
|
});
|
|
2519
|
-
return /* @__PURE__ */
|
|
2536
|
+
return /* @__PURE__ */ React58.createElement(Box33, {
|
|
2520
2537
|
as: "tr",
|
|
2521
2538
|
ref,
|
|
2522
2539
|
__baseCSS: {
|
|
@@ -2529,7 +2546,7 @@ var TableRow = ({ children, row }) => {
|
|
|
2529
2546
|
};
|
|
2530
2547
|
|
|
2531
2548
|
// src/Table/TableSelectAllCell.tsx
|
|
2532
|
-
import
|
|
2549
|
+
import React59, { useRef as useRef15 } from "react";
|
|
2533
2550
|
import { useFocusRing as useFocusRing13 } from "@react-aria/focus";
|
|
2534
2551
|
import { useHover as useHover8 } from "@react-aria/interactions";
|
|
2535
2552
|
import {
|
|
@@ -2555,7 +2572,7 @@ var TableSelectAllCell = ({ column }) => {
|
|
|
2555
2572
|
hover: isHovered,
|
|
2556
2573
|
focusVisible: isFocusVisible
|
|
2557
2574
|
});
|
|
2558
|
-
return /* @__PURE__ */
|
|
2575
|
+
return /* @__PURE__ */ React59.createElement(Box34, {
|
|
2559
2576
|
as: "th",
|
|
2560
2577
|
ref,
|
|
2561
2578
|
__baseCSS: {
|
|
@@ -2566,7 +2583,7 @@ var TableSelectAllCell = ({ column }) => {
|
|
|
2566
2583
|
css: styles.header,
|
|
2567
2584
|
...mergeProps14(columnHeaderProps, hoverProps, focusProps),
|
|
2568
2585
|
...stateProps
|
|
2569
|
-
}, /* @__PURE__ */
|
|
2586
|
+
}, /* @__PURE__ */ React59.createElement(Checkbox, {
|
|
2570
2587
|
...checkboxProps
|
|
2571
2588
|
}));
|
|
2572
2589
|
};
|
|
@@ -2593,9 +2610,9 @@ var Table = ({
|
|
|
2593
2610
|
{ parts: ["table", "header", "row", "cell"] }
|
|
2594
2611
|
);
|
|
2595
2612
|
const { collection } = state;
|
|
2596
|
-
return /* @__PURE__ */
|
|
2613
|
+
return /* @__PURE__ */ React60.createElement(TableContext.Provider, {
|
|
2597
2614
|
value: { state, interactive, styles }
|
|
2598
|
-
}, /* @__PURE__ */
|
|
2615
|
+
}, /* @__PURE__ */ React60.createElement(Box35, {
|
|
2599
2616
|
as: "table",
|
|
2600
2617
|
ref: tableRef,
|
|
2601
2618
|
__baseCSS: {
|
|
@@ -2607,30 +2624,30 @@ var Table = ({
|
|
|
2607
2624
|
},
|
|
2608
2625
|
css: styles.table,
|
|
2609
2626
|
...gridProps
|
|
2610
|
-
}, /* @__PURE__ */
|
|
2627
|
+
}, /* @__PURE__ */ React60.createElement(TableHeader, null, collection.headerRows.map((headerRow) => /* @__PURE__ */ React60.createElement(TableHeaderRow, {
|
|
2611
2628
|
key: headerRow.key,
|
|
2612
2629
|
item: headerRow
|
|
2613
2630
|
}, [...headerRow.childNodes].map(
|
|
2614
2631
|
(column) => {
|
|
2615
2632
|
var _a;
|
|
2616
|
-
return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */
|
|
2633
|
+
return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React60.createElement(TableSelectAllCell, {
|
|
2617
2634
|
key: column.key,
|
|
2618
2635
|
column
|
|
2619
|
-
}) : /* @__PURE__ */
|
|
2636
|
+
}) : /* @__PURE__ */ React60.createElement(TableColumnHeader, {
|
|
2620
2637
|
key: column.key,
|
|
2621
2638
|
column
|
|
2622
2639
|
});
|
|
2623
2640
|
}
|
|
2624
|
-
)))), /* @__PURE__ */
|
|
2641
|
+
)))), /* @__PURE__ */ React60.createElement(TableBody, null, [...collection.body.childNodes].map((row) => /* @__PURE__ */ React60.createElement(TableRow, {
|
|
2625
2642
|
key: row.key,
|
|
2626
2643
|
row
|
|
2627
2644
|
}, [...row.childNodes].map(
|
|
2628
2645
|
(cell) => {
|
|
2629
2646
|
var _a;
|
|
2630
|
-
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */
|
|
2647
|
+
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React60.createElement(TableCheckboxCell, {
|
|
2631
2648
|
key: cell.key,
|
|
2632
2649
|
cell
|
|
2633
|
-
}) : /* @__PURE__ */
|
|
2650
|
+
}) : /* @__PURE__ */ React60.createElement(TableCell, {
|
|
2634
2651
|
key: cell.key,
|
|
2635
2652
|
cell
|
|
2636
2653
|
});
|
|
@@ -2644,7 +2661,7 @@ Table.Header = Header2;
|
|
|
2644
2661
|
Table.Row = Row;
|
|
2645
2662
|
|
|
2646
2663
|
// src/Text/Text.tsx
|
|
2647
|
-
import
|
|
2664
|
+
import React61 from "react";
|
|
2648
2665
|
import {
|
|
2649
2666
|
useComponentStyles as useComponentStyles29
|
|
2650
2667
|
} from "@marigold/system";
|
|
@@ -2665,7 +2682,7 @@ var Text = ({
|
|
|
2665
2682
|
variant,
|
|
2666
2683
|
size
|
|
2667
2684
|
});
|
|
2668
|
-
return /* @__PURE__ */
|
|
2685
|
+
return /* @__PURE__ */ React61.createElement(Box36, {
|
|
2669
2686
|
as: "p",
|
|
2670
2687
|
...props,
|
|
2671
2688
|
css: [
|
|
@@ -2676,7 +2693,7 @@ var Text = ({
|
|
|
2676
2693
|
};
|
|
2677
2694
|
|
|
2678
2695
|
// src/TextArea/TextArea.tsx
|
|
2679
|
-
import
|
|
2696
|
+
import React62, { forwardRef as forwardRef14 } from "react";
|
|
2680
2697
|
import { useHover as useHover9 } from "@react-aria/interactions";
|
|
2681
2698
|
import { useFocusRing as useFocusRing14 } from "@react-aria/focus";
|
|
2682
2699
|
import { useTextField } from "@react-aria/textfield";
|
|
@@ -2721,7 +2738,7 @@ var TextArea = forwardRef14(
|
|
|
2721
2738
|
error
|
|
2722
2739
|
});
|
|
2723
2740
|
const styles = useComponentStyles30("TextArea", { variant, size });
|
|
2724
|
-
return /* @__PURE__ */
|
|
2741
|
+
return /* @__PURE__ */ React62.createElement(FieldBase, {
|
|
2725
2742
|
label,
|
|
2726
2743
|
labelProps,
|
|
2727
2744
|
required,
|
|
@@ -2734,7 +2751,7 @@ var TextArea = forwardRef14(
|
|
|
2734
2751
|
variant,
|
|
2735
2752
|
size,
|
|
2736
2753
|
width
|
|
2737
|
-
}, /* @__PURE__ */
|
|
2754
|
+
}, /* @__PURE__ */ React62.createElement(Box37, {
|
|
2738
2755
|
as: "textarea",
|
|
2739
2756
|
css: styles,
|
|
2740
2757
|
ref: textAreaRef,
|
|
@@ -2748,7 +2765,7 @@ var TextArea = forwardRef14(
|
|
|
2748
2765
|
);
|
|
2749
2766
|
|
|
2750
2767
|
// src/TextField/TextField.tsx
|
|
2751
|
-
import
|
|
2768
|
+
import React63, { forwardRef as forwardRef15 } from "react";
|
|
2752
2769
|
import { useHover as useHover10 } from "@react-aria/interactions";
|
|
2753
2770
|
import { useFocusRing as useFocusRing15 } from "@react-aria/focus";
|
|
2754
2771
|
import { useTextField as useTextField2 } from "@react-aria/textfield";
|
|
@@ -2780,7 +2797,7 @@ var TextField = forwardRef15(
|
|
|
2780
2797
|
readOnly,
|
|
2781
2798
|
error
|
|
2782
2799
|
});
|
|
2783
|
-
return /* @__PURE__ */
|
|
2800
|
+
return /* @__PURE__ */ React63.createElement(FieldBase, {
|
|
2784
2801
|
label,
|
|
2785
2802
|
labelProps,
|
|
2786
2803
|
required,
|
|
@@ -2793,7 +2810,7 @@ var TextField = forwardRef15(
|
|
|
2793
2810
|
variant,
|
|
2794
2811
|
size,
|
|
2795
2812
|
width
|
|
2796
|
-
}, /* @__PURE__ */
|
|
2813
|
+
}, /* @__PURE__ */ React63.createElement(Input, {
|
|
2797
2814
|
ref: inputRef,
|
|
2798
2815
|
variant,
|
|
2799
2816
|
size,
|
|
@@ -2806,7 +2823,7 @@ var TextField = forwardRef15(
|
|
|
2806
2823
|
);
|
|
2807
2824
|
|
|
2808
2825
|
// src/Tiles/Tiles.tsx
|
|
2809
|
-
import
|
|
2826
|
+
import React64 from "react";
|
|
2810
2827
|
import { useTheme as useTheme3 } from "@marigold/system";
|
|
2811
2828
|
var Tiles = ({
|
|
2812
2829
|
space = "none",
|
|
@@ -2822,7 +2839,7 @@ var Tiles = ({
|
|
|
2822
2839
|
if (stretch) {
|
|
2823
2840
|
column = `minmax(${column}, 1fr)`;
|
|
2824
2841
|
}
|
|
2825
|
-
return /* @__PURE__ */
|
|
2842
|
+
return /* @__PURE__ */ React64.createElement(Box, {
|
|
2826
2843
|
...props,
|
|
2827
2844
|
css: {
|
|
2828
2845
|
display: "grid",
|
|
@@ -2834,7 +2851,7 @@ var Tiles = ({
|
|
|
2834
2851
|
};
|
|
2835
2852
|
|
|
2836
2853
|
// src/Tooltip/Tooltip.tsx
|
|
2837
|
-
import
|
|
2854
|
+
import React66 from "react";
|
|
2838
2855
|
import { useTooltip } from "@react-aria/tooltip";
|
|
2839
2856
|
import {
|
|
2840
2857
|
Box as Box38,
|
|
@@ -2842,12 +2859,12 @@ import {
|
|
|
2842
2859
|
} from "@marigold/system";
|
|
2843
2860
|
|
|
2844
2861
|
// src/Tooltip/Context.ts
|
|
2845
|
-
import { createContext as
|
|
2846
|
-
var TooltipContext =
|
|
2847
|
-
var useTooltipContext = () =>
|
|
2862
|
+
import { createContext as createContext9, useContext as useContext9 } from "react";
|
|
2863
|
+
var TooltipContext = createContext9({});
|
|
2864
|
+
var useTooltipContext = () => useContext9(TooltipContext);
|
|
2848
2865
|
|
|
2849
2866
|
// src/Tooltip/TooltipTrigger.tsx
|
|
2850
|
-
import
|
|
2867
|
+
import React65, { useRef as useRef17 } from "react";
|
|
2851
2868
|
import { FocusableProvider } from "@react-aria/focus";
|
|
2852
2869
|
import { useOverlayPosition } from "@react-aria/overlays";
|
|
2853
2870
|
import { useTooltipTrigger } from "@react-aria/tooltip";
|
|
@@ -2860,7 +2877,7 @@ var TooltipTrigger = ({
|
|
|
2860
2877
|
children,
|
|
2861
2878
|
...rest
|
|
2862
2879
|
}) => {
|
|
2863
|
-
const [tooltipTrigger, tooltip] =
|
|
2880
|
+
const [tooltipTrigger, tooltip] = React65.Children.toArray(children);
|
|
2864
2881
|
const props = {
|
|
2865
2882
|
...rest,
|
|
2866
2883
|
isDisabled: disabled,
|
|
@@ -2888,10 +2905,10 @@ var TooltipTrigger = ({
|
|
|
2888
2905
|
isOpen: state.isOpen,
|
|
2889
2906
|
overlayRef
|
|
2890
2907
|
});
|
|
2891
|
-
return /* @__PURE__ */
|
|
2908
|
+
return /* @__PURE__ */ React65.createElement(FocusableProvider, {
|
|
2892
2909
|
ref: tooltipTriggerRef,
|
|
2893
2910
|
...triggerProps
|
|
2894
|
-
}, tooltipTrigger, /* @__PURE__ */
|
|
2911
|
+
}, tooltipTrigger, /* @__PURE__ */ React65.createElement(TooltipContext.Provider, {
|
|
2895
2912
|
value: {
|
|
2896
2913
|
state,
|
|
2897
2914
|
overlayRef,
|
|
@@ -2900,7 +2917,7 @@ var TooltipTrigger = ({
|
|
|
2900
2917
|
...tooltipProps,
|
|
2901
2918
|
...positionProps
|
|
2902
2919
|
}
|
|
2903
|
-
}, /* @__PURE__ */
|
|
2920
|
+
}, /* @__PURE__ */ React65.createElement(Overlay, {
|
|
2904
2921
|
open: state.isOpen
|
|
2905
2922
|
}, tooltip)));
|
|
2906
2923
|
};
|
|
@@ -2914,13 +2931,13 @@ var Tooltip = ({ children, variant, size }) => {
|
|
|
2914
2931
|
{ variant, size },
|
|
2915
2932
|
{ parts: ["container", "arrow"] }
|
|
2916
2933
|
);
|
|
2917
|
-
return /* @__PURE__ */
|
|
2934
|
+
return /* @__PURE__ */ React66.createElement(Box38, {
|
|
2918
2935
|
...tooltipProps,
|
|
2919
2936
|
...rest,
|
|
2920
2937
|
ref: overlayRef,
|
|
2921
2938
|
css: styles.container,
|
|
2922
2939
|
"data-placement": placement
|
|
2923
|
-
}, /* @__PURE__ */
|
|
2940
|
+
}, /* @__PURE__ */ React66.createElement("div", null, children), /* @__PURE__ */ React66.createElement(Box38, {
|
|
2924
2941
|
...arrowProps,
|
|
2925
2942
|
__baseCSS: {
|
|
2926
2943
|
position: "absolute",
|
|
@@ -2938,121 +2955,121 @@ Tooltip.Trigger = TooltipTrigger;
|
|
|
2938
2955
|
|
|
2939
2956
|
// src/XLoader/XLoader.tsx
|
|
2940
2957
|
import { SVG as SVG3 } from "@marigold/system";
|
|
2941
|
-
import
|
|
2942
|
-
var XLoader = forwardRef16((props, ref) => /* @__PURE__ */
|
|
2958
|
+
import React67, { forwardRef as forwardRef16 } from "react";
|
|
2959
|
+
var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React67.createElement(SVG3, {
|
|
2943
2960
|
id: "XLoader",
|
|
2944
2961
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2945
2962
|
size: 150,
|
|
2946
2963
|
viewBox: "0 0 150 150",
|
|
2947
2964
|
...props,
|
|
2948
2965
|
...ref
|
|
2949
|
-
}, /* @__PURE__ */
|
|
2966
|
+
}, /* @__PURE__ */ React67.createElement("path", {
|
|
2950
2967
|
id: "XMLID_1_",
|
|
2951
2968
|
d: "M35.3 27h26.5l54 74.1H88.7z"
|
|
2952
|
-
}), /* @__PURE__ */
|
|
2969
|
+
}), /* @__PURE__ */ React67.createElement("path", {
|
|
2953
2970
|
id: "XMLID_5_",
|
|
2954
2971
|
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__ */
|
|
2972
|
+
}, /* @__PURE__ */ React67.createElement("animate", {
|
|
2956
2973
|
attributeName: "opacity",
|
|
2957
2974
|
attributeType: "XML",
|
|
2958
2975
|
values: "1; .01; 1; 1; 1;",
|
|
2959
2976
|
begin: "1.0s",
|
|
2960
2977
|
dur: "2.5s",
|
|
2961
2978
|
repeatCount: "indefinite"
|
|
2962
|
-
})), /* @__PURE__ */
|
|
2979
|
+
})), /* @__PURE__ */ React67.createElement("path", {
|
|
2963
2980
|
id: "XMLID_18_",
|
|
2964
2981
|
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__ */
|
|
2982
|
+
}, /* @__PURE__ */ React67.createElement("animate", {
|
|
2966
2983
|
attributeName: "opacity",
|
|
2967
2984
|
attributeType: "XML",
|
|
2968
2985
|
values: "1; .01; 1; 1; 1;",
|
|
2969
2986
|
begin: "0.9s",
|
|
2970
2987
|
dur: "2.5s",
|
|
2971
2988
|
repeatCount: "indefinite"
|
|
2972
|
-
})), /* @__PURE__ */
|
|
2989
|
+
})), /* @__PURE__ */ React67.createElement("path", {
|
|
2973
2990
|
id: "XMLID_19_",
|
|
2974
2991
|
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__ */
|
|
2992
|
+
}, /* @__PURE__ */ React67.createElement("animate", {
|
|
2976
2993
|
attributeName: "opacity",
|
|
2977
2994
|
attributeType: "XML",
|
|
2978
2995
|
values: "1; .01; 1; 1; 1;",
|
|
2979
2996
|
begin: "0.8s",
|
|
2980
2997
|
dur: "2.5s",
|
|
2981
2998
|
repeatCount: "indefinite"
|
|
2982
|
-
})), /* @__PURE__ */
|
|
2999
|
+
})), /* @__PURE__ */ React67.createElement("path", {
|
|
2983
3000
|
id: "XMLID_20_",
|
|
2984
3001
|
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__ */
|
|
3002
|
+
}, /* @__PURE__ */ React67.createElement("animate", {
|
|
2986
3003
|
attributeName: "opacity",
|
|
2987
3004
|
attributeType: "XML",
|
|
2988
3005
|
values: "1; .01; 1; 1; 1;",
|
|
2989
3006
|
begin: "0.7s",
|
|
2990
3007
|
dur: "2.5s",
|
|
2991
3008
|
repeatCount: "indefinite"
|
|
2992
|
-
})), /* @__PURE__ */
|
|
3009
|
+
})), /* @__PURE__ */ React67.createElement("path", {
|
|
2993
3010
|
id: "XMLID_21_",
|
|
2994
3011
|
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__ */
|
|
3012
|
+
}, /* @__PURE__ */ React67.createElement("animate", {
|
|
2996
3013
|
attributeName: "opacity",
|
|
2997
3014
|
attributeType: "XML",
|
|
2998
3015
|
values: "1; .01; 1; 1; 1;",
|
|
2999
3016
|
begin: "0.6s",
|
|
3000
3017
|
dur: "2.5s",
|
|
3001
3018
|
repeatCount: "indefinite"
|
|
3002
|
-
})), /* @__PURE__ */
|
|
3019
|
+
})), /* @__PURE__ */ React67.createElement("path", {
|
|
3003
3020
|
id: "XMLID_22_",
|
|
3004
3021
|
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__ */
|
|
3022
|
+
}, /* @__PURE__ */ React67.createElement("animate", {
|
|
3006
3023
|
attributeName: "opacity",
|
|
3007
3024
|
attributeType: "XML",
|
|
3008
3025
|
values: "1; .01; 1; 1; 1;",
|
|
3009
3026
|
begin: "0.5s",
|
|
3010
3027
|
dur: "2.5s",
|
|
3011
3028
|
repeatCount: "indefinite"
|
|
3012
|
-
})), /* @__PURE__ */
|
|
3029
|
+
})), /* @__PURE__ */ React67.createElement("path", {
|
|
3013
3030
|
id: "XMLID_23_",
|
|
3014
3031
|
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__ */
|
|
3032
|
+
}, /* @__PURE__ */ React67.createElement("animate", {
|
|
3016
3033
|
attributeName: "opacity",
|
|
3017
3034
|
attributeType: "XML",
|
|
3018
3035
|
values: "1; .01; 1; 1; 1;",
|
|
3019
3036
|
begin: "0.4s",
|
|
3020
3037
|
dur: "2.5s",
|
|
3021
3038
|
repeatCount: "indefinite"
|
|
3022
|
-
})), /* @__PURE__ */
|
|
3039
|
+
})), /* @__PURE__ */ React67.createElement("path", {
|
|
3023
3040
|
id: "XMLID_24_",
|
|
3024
3041
|
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__ */
|
|
3042
|
+
}, /* @__PURE__ */ React67.createElement("animate", {
|
|
3026
3043
|
attributeName: "opacity",
|
|
3027
3044
|
attributeType: "XML",
|
|
3028
3045
|
values: "1; .01; 1; 1; 1;",
|
|
3029
3046
|
begin: "0.3s",
|
|
3030
3047
|
dur: "2.5s",
|
|
3031
3048
|
repeatCount: "indefinite"
|
|
3032
|
-
})), /* @__PURE__ */
|
|
3049
|
+
})), /* @__PURE__ */ React67.createElement("path", {
|
|
3033
3050
|
id: "XMLID_25_",
|
|
3034
3051
|
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__ */
|
|
3052
|
+
}, /* @__PURE__ */ React67.createElement("animate", {
|
|
3036
3053
|
attributeName: "opacity",
|
|
3037
3054
|
attributeType: "XML",
|
|
3038
3055
|
values: "1; .01; 1; 1; 1;",
|
|
3039
3056
|
begin: "0.2s",
|
|
3040
3057
|
dur: "2.5s",
|
|
3041
3058
|
repeatCount: "indefinite"
|
|
3042
|
-
})), /* @__PURE__ */
|
|
3059
|
+
})), /* @__PURE__ */ React67.createElement("path", {
|
|
3043
3060
|
id: "XMLID_26_",
|
|
3044
3061
|
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__ */
|
|
3062
|
+
}, /* @__PURE__ */ React67.createElement("animate", {
|
|
3046
3063
|
attributeName: "opacity",
|
|
3047
3064
|
attributeType: "XML",
|
|
3048
3065
|
values: "1; .01; 1; 1; 1;",
|
|
3049
3066
|
begin: "0.1s",
|
|
3050
3067
|
dur: "2.5s",
|
|
3051
3068
|
repeatCount: "indefinite"
|
|
3052
|
-
})), /* @__PURE__ */
|
|
3069
|
+
})), /* @__PURE__ */ React67.createElement("path", {
|
|
3053
3070
|
id: "XMLID_27_",
|
|
3054
3071
|
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__ */
|
|
3072
|
+
}, /* @__PURE__ */ React67.createElement("animate", {
|
|
3056
3073
|
attributeName: "opacity",
|
|
3057
3074
|
attributeType: "XML",
|
|
3058
3075
|
values: "1; .01; 1; 1; 1;",
|
|
@@ -3077,6 +3094,9 @@ export {
|
|
|
3077
3094
|
Container,
|
|
3078
3095
|
Dialog,
|
|
3079
3096
|
Divider,
|
|
3097
|
+
FieldBase,
|
|
3098
|
+
FieldGroup,
|
|
3099
|
+
FieldGroupContext,
|
|
3080
3100
|
Footer,
|
|
3081
3101
|
Header,
|
|
3082
3102
|
Headline,
|
|
@@ -3115,6 +3135,7 @@ export {
|
|
|
3115
3135
|
extendTheme,
|
|
3116
3136
|
useAsyncList,
|
|
3117
3137
|
useCheckboxGroupContext,
|
|
3138
|
+
useFieldGroupContext,
|
|
3118
3139
|
useListData,
|
|
3119
3140
|
useTheme2 as useTheme
|
|
3120
3141
|
};
|