@marigold/components 4.2.0 → 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 +380 -353
- package/dist/index.mjs +326 -303
- 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";
|
|
@@ -1296,7 +1313,8 @@ var MenuItem = ({ item, state, onAction, css }) => {
|
|
|
1296
1313
|
const stateProps = useStateProps4({
|
|
1297
1314
|
focus: isFocusVisible
|
|
1298
1315
|
});
|
|
1299
|
-
|
|
1316
|
+
const { onPointerUp, ...props } = menuItemProps;
|
|
1317
|
+
return /* @__PURE__ */ React35.createElement(Box19, {
|
|
1300
1318
|
as: "li",
|
|
1301
1319
|
ref,
|
|
1302
1320
|
__baseCSS: {
|
|
@@ -1305,7 +1323,7 @@ var MenuItem = ({ item, state, onAction, css }) => {
|
|
|
1305
1323
|
}
|
|
1306
1324
|
},
|
|
1307
1325
|
css,
|
|
1308
|
-
...mergeProps3(
|
|
1326
|
+
...mergeProps3(props, { onPointerDown: onPointerUp }, focusProps),
|
|
1309
1327
|
...stateProps
|
|
1310
1328
|
}, item.rendered);
|
|
1311
1329
|
};
|
|
@@ -1324,7 +1342,7 @@ var Menu = ({ variant, size, ...props }) => {
|
|
|
1324
1342
|
{ variant, size },
|
|
1325
1343
|
{ parts: ["container", "item"] }
|
|
1326
1344
|
);
|
|
1327
|
-
return /* @__PURE__ */
|
|
1345
|
+
return /* @__PURE__ */ React36.createElement(Box20, {
|
|
1328
1346
|
as: "ul",
|
|
1329
1347
|
ref,
|
|
1330
1348
|
__baseCSS: {
|
|
@@ -1334,7 +1352,7 @@ var Menu = ({ variant, size, ...props }) => {
|
|
|
1334
1352
|
},
|
|
1335
1353
|
css: styles.container,
|
|
1336
1354
|
...menuProps
|
|
1337
|
-
}, [...state.collection].map((item) => /* @__PURE__ */
|
|
1355
|
+
}, [...state.collection].map((item) => /* @__PURE__ */ React36.createElement(MenuItem, {
|
|
1338
1356
|
key: item.key,
|
|
1339
1357
|
item,
|
|
1340
1358
|
state,
|
|
@@ -1346,7 +1364,7 @@ Menu.Trigger = MenuTrigger;
|
|
|
1346
1364
|
Menu.Item = Item;
|
|
1347
1365
|
|
|
1348
1366
|
// src/Message/Message.tsx
|
|
1349
|
-
import
|
|
1367
|
+
import React37 from "react";
|
|
1350
1368
|
import { useComponentStyles as useComponentStyles20 } from "@marigold/system";
|
|
1351
1369
|
var Message = ({
|
|
1352
1370
|
messageTitle,
|
|
@@ -1363,43 +1381,43 @@ var Message = ({
|
|
|
1363
1381
|
},
|
|
1364
1382
|
{ parts: ["container", "icon", "title", "content"] }
|
|
1365
1383
|
);
|
|
1366
|
-
var icon = /* @__PURE__ */
|
|
1384
|
+
var icon = /* @__PURE__ */ React37.createElement("svg", {
|
|
1367
1385
|
viewBox: "0 0 24 24"
|
|
1368
|
-
}, /* @__PURE__ */
|
|
1386
|
+
}, /* @__PURE__ */ React37.createElement("path", {
|
|
1369
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"
|
|
1370
1388
|
}));
|
|
1371
1389
|
if (variant === "warning") {
|
|
1372
|
-
icon = /* @__PURE__ */
|
|
1390
|
+
icon = /* @__PURE__ */ React37.createElement("svg", {
|
|
1373
1391
|
viewBox: "0 0 24 24"
|
|
1374
|
-
}, /* @__PURE__ */
|
|
1392
|
+
}, /* @__PURE__ */ React37.createElement("path", {
|
|
1375
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"
|
|
1376
1394
|
}));
|
|
1377
1395
|
}
|
|
1378
1396
|
if (variant === "error") {
|
|
1379
|
-
icon = /* @__PURE__ */
|
|
1397
|
+
icon = /* @__PURE__ */ React37.createElement("svg", {
|
|
1380
1398
|
viewBox: "0 0 24 24"
|
|
1381
|
-
}, /* @__PURE__ */
|
|
1399
|
+
}, /* @__PURE__ */ React37.createElement("path", {
|
|
1382
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"
|
|
1383
1401
|
}));
|
|
1384
1402
|
}
|
|
1385
|
-
return /* @__PURE__ */
|
|
1403
|
+
return /* @__PURE__ */ React37.createElement(Box, {
|
|
1386
1404
|
css: styles.container,
|
|
1387
1405
|
...props
|
|
1388
|
-
}, /* @__PURE__ */
|
|
1406
|
+
}, /* @__PURE__ */ React37.createElement(Box, {
|
|
1389
1407
|
__baseCSS: { display: "flex", alignItems: "top", gap: 4 }
|
|
1390
|
-
}, /* @__PURE__ */
|
|
1408
|
+
}, /* @__PURE__ */ React37.createElement(Box, {
|
|
1391
1409
|
role: "presentation",
|
|
1392
1410
|
__baseCSS: { flex: "0 0 16px" },
|
|
1393
1411
|
css: styles.icon
|
|
1394
|
-
}, icon), /* @__PURE__ */
|
|
1412
|
+
}, icon), /* @__PURE__ */ React37.createElement(Box, {
|
|
1395
1413
|
css: styles.title
|
|
1396
|
-
}, messageTitle)), /* @__PURE__ */
|
|
1414
|
+
}, messageTitle)), /* @__PURE__ */ React37.createElement(Box, {
|
|
1397
1415
|
css: styles.content
|
|
1398
1416
|
}, children));
|
|
1399
1417
|
};
|
|
1400
1418
|
|
|
1401
1419
|
// src/NumberField/NumberField.tsx
|
|
1402
|
-
import
|
|
1420
|
+
import React39, { forwardRef as forwardRef8 } from "react";
|
|
1403
1421
|
import { useFocusRing as useFocusRing4 } from "@react-aria/focus";
|
|
1404
1422
|
import { useHover as useHover4 } from "@react-aria/interactions";
|
|
1405
1423
|
import { useLocale } from "@react-aria/i18n";
|
|
@@ -1413,27 +1431,27 @@ import {
|
|
|
1413
1431
|
} from "@marigold/system";
|
|
1414
1432
|
|
|
1415
1433
|
// src/NumberField/StepButton.tsx
|
|
1416
|
-
import
|
|
1434
|
+
import React38, { useRef as useRef7 } from "react";
|
|
1417
1435
|
import { useButton as useButton3 } from "@react-aria/button";
|
|
1418
1436
|
import { useHover as useHover3 } from "@react-aria/interactions";
|
|
1419
1437
|
import { mergeProps as mergeProps4 } from "@react-aria/utils";
|
|
1420
1438
|
import { Box as Box21, useStateProps as useStateProps5 } from "@marigold/system";
|
|
1421
|
-
var Plus = () => /* @__PURE__ */
|
|
1439
|
+
var Plus = () => /* @__PURE__ */ React38.createElement(Box21, {
|
|
1422
1440
|
as: "svg",
|
|
1423
1441
|
__baseCSS: { width: 16, height: 16 },
|
|
1424
1442
|
viewBox: "0 0 20 20",
|
|
1425
1443
|
fill: "currentColor"
|
|
1426
|
-
}, /* @__PURE__ */
|
|
1444
|
+
}, /* @__PURE__ */ React38.createElement("path", {
|
|
1427
1445
|
fillRule: "evenodd",
|
|
1428
1446
|
clipRule: "evenodd",
|
|
1429
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"
|
|
1430
1448
|
}));
|
|
1431
|
-
var Minus = () => /* @__PURE__ */
|
|
1449
|
+
var Minus = () => /* @__PURE__ */ React38.createElement(Box21, {
|
|
1432
1450
|
as: "svg",
|
|
1433
1451
|
__baseCSS: { width: 16, height: 16 },
|
|
1434
1452
|
viewBox: "0 0 20 20",
|
|
1435
1453
|
fill: "currentColor"
|
|
1436
|
-
}, /* @__PURE__ */
|
|
1454
|
+
}, /* @__PURE__ */ React38.createElement("path", {
|
|
1437
1455
|
fillRule: "evenodd",
|
|
1438
1456
|
clipRule: "evenodd",
|
|
1439
1457
|
d: "M3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
|
|
@@ -1451,7 +1469,7 @@ var StepButton = ({ direction, css, ...props }) => {
|
|
|
1451
1469
|
disabled: props.isDisabled
|
|
1452
1470
|
});
|
|
1453
1471
|
const Icon3 = direction === "up" ? Plus : Minus;
|
|
1454
|
-
return /* @__PURE__ */
|
|
1472
|
+
return /* @__PURE__ */ React38.createElement(Box21, {
|
|
1455
1473
|
__baseCSS: {
|
|
1456
1474
|
display: "flex",
|
|
1457
1475
|
alignItems: "center",
|
|
@@ -1461,7 +1479,7 @@ var StepButton = ({ direction, css, ...props }) => {
|
|
|
1461
1479
|
css,
|
|
1462
1480
|
...mergeProps4(buttonProps, hoverProps),
|
|
1463
1481
|
...stateProps
|
|
1464
|
-
}, /* @__PURE__ */
|
|
1482
|
+
}, /* @__PURE__ */ React38.createElement(Icon3, null));
|
|
1465
1483
|
};
|
|
1466
1484
|
|
|
1467
1485
|
// src/NumberField/NumberField.tsx
|
|
@@ -1515,7 +1533,7 @@ var NumberField = forwardRef8(
|
|
|
1515
1533
|
readOnly,
|
|
1516
1534
|
error
|
|
1517
1535
|
});
|
|
1518
|
-
return /* @__PURE__ */
|
|
1536
|
+
return /* @__PURE__ */ React39.createElement(FieldBase, {
|
|
1519
1537
|
label: props.label,
|
|
1520
1538
|
labelProps,
|
|
1521
1539
|
required,
|
|
@@ -1528,7 +1546,7 @@ var NumberField = forwardRef8(
|
|
|
1528
1546
|
variant,
|
|
1529
1547
|
size,
|
|
1530
1548
|
width
|
|
1531
|
-
}, /* @__PURE__ */
|
|
1549
|
+
}, /* @__PURE__ */ React39.createElement(Box22, {
|
|
1532
1550
|
"data-group": true,
|
|
1533
1551
|
__baseCSS: {
|
|
1534
1552
|
display: "flex",
|
|
@@ -1541,17 +1559,17 @@ var NumberField = forwardRef8(
|
|
|
1541
1559
|
css: styles.group,
|
|
1542
1560
|
...mergeProps5(groupProps, focusProps, hoverProps),
|
|
1543
1561
|
...stateProps
|
|
1544
|
-
}, showStepper && /* @__PURE__ */
|
|
1562
|
+
}, showStepper && /* @__PURE__ */ React39.createElement(StepButton, {
|
|
1545
1563
|
direction: "down",
|
|
1546
1564
|
css: styles.stepper,
|
|
1547
1565
|
...decrementButtonProps
|
|
1548
|
-
}), /* @__PURE__ */
|
|
1566
|
+
}), /* @__PURE__ */ React39.createElement(Input, {
|
|
1549
1567
|
ref: inputRef,
|
|
1550
1568
|
variant,
|
|
1551
1569
|
size,
|
|
1552
1570
|
...inputProps,
|
|
1553
1571
|
...stateProps
|
|
1554
|
-
}), showStepper && /* @__PURE__ */
|
|
1572
|
+
}), showStepper && /* @__PURE__ */ React39.createElement(StepButton, {
|
|
1555
1573
|
direction: "up",
|
|
1556
1574
|
css: styles.stepper,
|
|
1557
1575
|
...incrementButtonProps
|
|
@@ -1564,7 +1582,7 @@ import { useTheme as useTheme2, ThemeProvider as ThemeProvider2 } from "@marigol
|
|
|
1564
1582
|
import { SSRProvider } from "@react-aria/ssr";
|
|
1565
1583
|
|
|
1566
1584
|
// src/Provider/MarigoldProvider.tsx
|
|
1567
|
-
import
|
|
1585
|
+
import React40 from "react";
|
|
1568
1586
|
import { OverlayProvider } from "@react-aria/overlays";
|
|
1569
1587
|
import {
|
|
1570
1588
|
Global,
|
|
@@ -1587,16 +1605,16 @@ function MarigoldProvider({
|
|
|
1587
1605
|
Nested themes with a "root" property must specify a "selector" to prevent accidentally overriding global CSS`
|
|
1588
1606
|
);
|
|
1589
1607
|
}
|
|
1590
|
-
return /* @__PURE__ */
|
|
1608
|
+
return /* @__PURE__ */ React40.createElement(ThemeProvider, {
|
|
1591
1609
|
theme
|
|
1592
|
-
}, /* @__PURE__ */
|
|
1610
|
+
}, /* @__PURE__ */ React40.createElement(Global, {
|
|
1593
1611
|
normalizeDocument: isTopLevel && normalizeDocument,
|
|
1594
1612
|
selector
|
|
1595
|
-
}), isTopLevel ? /* @__PURE__ */
|
|
1613
|
+
}), isTopLevel ? /* @__PURE__ */ React40.createElement(OverlayProvider, null, children) : children);
|
|
1596
1614
|
}
|
|
1597
1615
|
|
|
1598
1616
|
// src/Radio/Radio.tsx
|
|
1599
|
-
import
|
|
1617
|
+
import React42, {
|
|
1600
1618
|
forwardRef as forwardRef9
|
|
1601
1619
|
} from "react";
|
|
1602
1620
|
import { useHover as useHover5 } from "@react-aria/interactions";
|
|
@@ -1610,14 +1628,14 @@ import {
|
|
|
1610
1628
|
} from "@marigold/system";
|
|
1611
1629
|
|
|
1612
1630
|
// src/Radio/Context.ts
|
|
1613
|
-
import { createContext as
|
|
1614
|
-
var RadioGroupContext =
|
|
1631
|
+
import { createContext as createContext6, useContext as useContext6 } from "react";
|
|
1632
|
+
var RadioGroupContext = createContext6(
|
|
1615
1633
|
null
|
|
1616
1634
|
);
|
|
1617
|
-
var useRadioGroupContext = () =>
|
|
1635
|
+
var useRadioGroupContext = () => useContext6(RadioGroupContext);
|
|
1618
1636
|
|
|
1619
1637
|
// src/Radio/RadioGroup.tsx
|
|
1620
|
-
import
|
|
1638
|
+
import React41 from "react";
|
|
1621
1639
|
import { useRadioGroup } from "@react-aria/radio";
|
|
1622
1640
|
import { useRadioGroupState } from "@react-stately/radio";
|
|
1623
1641
|
import { Box as Box23, useStateProps as useStateProps7 } from "@marigold/system";
|
|
@@ -1645,7 +1663,7 @@ var RadioGroup = ({
|
|
|
1645
1663
|
readOnly,
|
|
1646
1664
|
error
|
|
1647
1665
|
});
|
|
1648
|
-
return /* @__PURE__ */
|
|
1666
|
+
return /* @__PURE__ */ React41.createElement(FieldBase, {
|
|
1649
1667
|
width,
|
|
1650
1668
|
label: props.label,
|
|
1651
1669
|
labelProps: { as: "span", ...labelProps },
|
|
@@ -1658,7 +1676,7 @@ var RadioGroup = ({
|
|
|
1658
1676
|
stateProps,
|
|
1659
1677
|
required,
|
|
1660
1678
|
...radioGroupProps
|
|
1661
|
-
}, /* @__PURE__ */
|
|
1679
|
+
}, /* @__PURE__ */ React41.createElement(Box23, {
|
|
1662
1680
|
role: "presentation",
|
|
1663
1681
|
"data-orientation": orientation,
|
|
1664
1682
|
__baseCSS: {
|
|
@@ -1667,21 +1685,21 @@ var RadioGroup = ({
|
|
|
1667
1685
|
alignItems: "start",
|
|
1668
1686
|
gap: orientation === "vertical" ? "0.5ch" : "1.5ch"
|
|
1669
1687
|
}
|
|
1670
|
-
}, /* @__PURE__ */
|
|
1688
|
+
}, /* @__PURE__ */ React41.createElement(RadioGroupContext.Provider, {
|
|
1671
1689
|
value: { width, error, state }
|
|
1672
1690
|
}, children)));
|
|
1673
1691
|
};
|
|
1674
1692
|
|
|
1675
1693
|
// src/Radio/Radio.tsx
|
|
1676
|
-
var Dot = () => /* @__PURE__ */
|
|
1694
|
+
var Dot = () => /* @__PURE__ */ React42.createElement("svg", {
|
|
1677
1695
|
viewBox: "0 0 6 6"
|
|
1678
|
-
}, /* @__PURE__ */
|
|
1696
|
+
}, /* @__PURE__ */ React42.createElement("circle", {
|
|
1679
1697
|
fill: "currentColor",
|
|
1680
1698
|
cx: "3",
|
|
1681
1699
|
cy: "3",
|
|
1682
1700
|
r: "3"
|
|
1683
1701
|
}));
|
|
1684
|
-
var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */
|
|
1702
|
+
var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */ React42.createElement(Box24, {
|
|
1685
1703
|
"aria-hidden": "true",
|
|
1686
1704
|
__baseCSS: {
|
|
1687
1705
|
width: 16,
|
|
@@ -1696,7 +1714,7 @@ var Icon2 = ({ checked, css, ...props }) => /* @__PURE__ */ React41.createElemen
|
|
|
1696
1714
|
},
|
|
1697
1715
|
css,
|
|
1698
1716
|
...props
|
|
1699
|
-
}, checked ? /* @__PURE__ */
|
|
1717
|
+
}, checked ? /* @__PURE__ */ React42.createElement(Dot, null) : null);
|
|
1700
1718
|
var Radio = forwardRef9(
|
|
1701
1719
|
({ width, disabled, ...props }, ref) => {
|
|
1702
1720
|
const {
|
|
@@ -1727,7 +1745,7 @@ var Radio = forwardRef9(
|
|
|
1727
1745
|
readOnly: props.readOnly,
|
|
1728
1746
|
error
|
|
1729
1747
|
});
|
|
1730
|
-
return /* @__PURE__ */
|
|
1748
|
+
return /* @__PURE__ */ React42.createElement(Box24, {
|
|
1731
1749
|
as: "label",
|
|
1732
1750
|
__baseCSS: {
|
|
1733
1751
|
display: "flex",
|
|
@@ -1738,7 +1756,7 @@ var Radio = forwardRef9(
|
|
|
1738
1756
|
},
|
|
1739
1757
|
css: styles.container,
|
|
1740
1758
|
...mergeProps6(hoverProps, stateProps)
|
|
1741
|
-
}, /* @__PURE__ */
|
|
1759
|
+
}, /* @__PURE__ */ React42.createElement(Box24, {
|
|
1742
1760
|
as: "input",
|
|
1743
1761
|
ref: inputRef,
|
|
1744
1762
|
css: {
|
|
@@ -1752,11 +1770,11 @@ var Radio = forwardRef9(
|
|
|
1752
1770
|
cursor: inputProps.disabled ? "not-allowed" : "pointer"
|
|
1753
1771
|
},
|
|
1754
1772
|
...mergeProps6(inputProps, focusProps)
|
|
1755
|
-
}), /* @__PURE__ */
|
|
1773
|
+
}), /* @__PURE__ */ React42.createElement(Icon2, {
|
|
1756
1774
|
checked: inputProps.checked,
|
|
1757
1775
|
css: styles.radio,
|
|
1758
1776
|
...stateProps
|
|
1759
|
-
}), /* @__PURE__ */
|
|
1777
|
+
}), /* @__PURE__ */ React42.createElement(Box24, {
|
|
1760
1778
|
css: styles.label,
|
|
1761
1779
|
...stateProps
|
|
1762
1780
|
}, props.children));
|
|
@@ -1765,7 +1783,7 @@ var Radio = forwardRef9(
|
|
|
1765
1783
|
Radio.Group = RadioGroup;
|
|
1766
1784
|
|
|
1767
1785
|
// src/Select/Select.tsx
|
|
1768
|
-
import
|
|
1786
|
+
import React46, {
|
|
1769
1787
|
forwardRef as forwardRef11,
|
|
1770
1788
|
useRef as useRef9
|
|
1771
1789
|
} from "react";
|
|
@@ -1775,7 +1793,7 @@ import { useLocalizedStringFormatter } from "@react-aria/i18n";
|
|
|
1775
1793
|
import { HiddenSelect, useSelect } from "@react-aria/select";
|
|
1776
1794
|
import { useSelectState } from "@react-stately/select";
|
|
1777
1795
|
import { Item as Item2, Section } from "@react-stately/collections";
|
|
1778
|
-
import { mergeProps as
|
|
1796
|
+
import { mergeProps as mergeProps8, useObjectRef as useObjectRef11 } from "@react-aria/utils";
|
|
1779
1797
|
import {
|
|
1780
1798
|
Box as Box28,
|
|
1781
1799
|
useComponentStyles as useComponentStyles24,
|
|
@@ -1784,7 +1802,7 @@ import {
|
|
|
1784
1802
|
} from "@marigold/system";
|
|
1785
1803
|
|
|
1786
1804
|
// src/ListBox/ListBox.tsx
|
|
1787
|
-
import
|
|
1805
|
+
import React45, { forwardRef as forwardRef10 } from "react";
|
|
1788
1806
|
import { useObjectRef as useObjectRef10 } from "@react-aria/utils";
|
|
1789
1807
|
import {
|
|
1790
1808
|
Box as Box27,
|
|
@@ -1793,18 +1811,19 @@ import {
|
|
|
1793
1811
|
import { useListBox } from "@react-aria/listbox";
|
|
1794
1812
|
|
|
1795
1813
|
// src/ListBox/Context.ts
|
|
1796
|
-
import { createContext as
|
|
1797
|
-
var ListBoxContext =
|
|
1798
|
-
var useListBoxContext = () =>
|
|
1814
|
+
import { createContext as createContext7, useContext as useContext7 } from "react";
|
|
1815
|
+
var ListBoxContext = createContext7({});
|
|
1816
|
+
var useListBoxContext = () => useContext7(ListBoxContext);
|
|
1799
1817
|
|
|
1800
1818
|
// src/ListBox/ListBoxSection.tsx
|
|
1801
|
-
import
|
|
1819
|
+
import React44 from "react";
|
|
1802
1820
|
import { useListBoxSection } from "@react-aria/listbox";
|
|
1803
1821
|
import { Box as Box26 } from "@marigold/system";
|
|
1804
1822
|
|
|
1805
1823
|
// src/ListBox/ListBoxOption.tsx
|
|
1806
|
-
import
|
|
1824
|
+
import React43, { useRef as useRef8 } from "react";
|
|
1807
1825
|
import { useOption } from "@react-aria/listbox";
|
|
1826
|
+
import { mergeProps as mergeProps7 } from "@react-aria/utils";
|
|
1808
1827
|
import { Box as Box25, useStateProps as useStateProps9 } from "@marigold/system";
|
|
1809
1828
|
var ListBoxOption = ({ item, state }) => {
|
|
1810
1829
|
const ref = useRef8(null);
|
|
@@ -1815,18 +1834,18 @@ var ListBoxOption = ({ item, state }) => {
|
|
|
1815
1834
|
state,
|
|
1816
1835
|
ref
|
|
1817
1836
|
);
|
|
1837
|
+
const { onPointerUp, ...props } = optionProps;
|
|
1818
1838
|
const { styles } = useListBoxContext();
|
|
1819
1839
|
const stateProps = useStateProps9({
|
|
1820
1840
|
selected: isSelected,
|
|
1821
1841
|
disabled: isDisabled,
|
|
1822
1842
|
focusVisible: isFocused
|
|
1823
1843
|
});
|
|
1824
|
-
return /* @__PURE__ */
|
|
1844
|
+
return /* @__PURE__ */ React43.createElement(Box25, {
|
|
1825
1845
|
as: "li",
|
|
1826
1846
|
ref,
|
|
1827
1847
|
css: styles.option,
|
|
1828
|
-
...
|
|
1829
|
-
...stateProps
|
|
1848
|
+
...mergeProps7(props, { onPointerDown: onPointerUp }, { ...stateProps })
|
|
1830
1849
|
}, item.rendered);
|
|
1831
1850
|
};
|
|
1832
1851
|
|
|
@@ -1837,19 +1856,19 @@ var ListBoxSection = ({ section, state }) => {
|
|
|
1837
1856
|
"aria-label": section["aria-label"]
|
|
1838
1857
|
});
|
|
1839
1858
|
const { styles } = useListBoxContext();
|
|
1840
|
-
return /* @__PURE__ */
|
|
1859
|
+
return /* @__PURE__ */ React44.createElement(Box26, {
|
|
1841
1860
|
as: "li",
|
|
1842
1861
|
css: styles.section,
|
|
1843
1862
|
...itemProps
|
|
1844
|
-
}, section.rendered && /* @__PURE__ */
|
|
1863
|
+
}, section.rendered && /* @__PURE__ */ React44.createElement(Box26, {
|
|
1845
1864
|
css: styles.sectionTitle,
|
|
1846
1865
|
...headingProps
|
|
1847
|
-
}, section.rendered), /* @__PURE__ */
|
|
1866
|
+
}, section.rendered), /* @__PURE__ */ React44.createElement(Box26, {
|
|
1848
1867
|
as: "ul",
|
|
1849
1868
|
__baseCSS: { listStyle: "none", p: 0 },
|
|
1850
1869
|
css: styles.list,
|
|
1851
1870
|
...groupProps
|
|
1852
|
-
}, [...section.childNodes].map((node) => /* @__PURE__ */
|
|
1871
|
+
}, [...section.childNodes].map((node) => /* @__PURE__ */ React44.createElement(ListBoxOption, {
|
|
1853
1872
|
key: node.key,
|
|
1854
1873
|
item: node,
|
|
1855
1874
|
state
|
|
@@ -1866,22 +1885,22 @@ var ListBox = forwardRef10(
|
|
|
1866
1885
|
{ variant, size },
|
|
1867
1886
|
{ parts: ["container", "list", "option", "section", "sectionTitle"] }
|
|
1868
1887
|
);
|
|
1869
|
-
return /* @__PURE__ */
|
|
1888
|
+
return /* @__PURE__ */ React45.createElement(ListBoxContext.Provider, {
|
|
1870
1889
|
value: { styles }
|
|
1871
|
-
}, /* @__PURE__ */
|
|
1890
|
+
}, /* @__PURE__ */ React45.createElement(Box27, {
|
|
1872
1891
|
css: styles.container
|
|
1873
|
-
}, /* @__PURE__ */
|
|
1892
|
+
}, /* @__PURE__ */ React45.createElement(Box27, {
|
|
1874
1893
|
as: "ul",
|
|
1875
1894
|
ref: innerRef,
|
|
1876
1895
|
__baseCSS: { listStyle: "none", p: 0 },
|
|
1877
1896
|
css: styles.list,
|
|
1878
1897
|
...listBoxProps
|
|
1879
1898
|
}, [...state.collection].map(
|
|
1880
|
-
(item) => item.type === "section" ? /* @__PURE__ */
|
|
1899
|
+
(item) => item.type === "section" ? /* @__PURE__ */ React45.createElement(ListBoxSection, {
|
|
1881
1900
|
key: item.key,
|
|
1882
1901
|
section: item,
|
|
1883
1902
|
state
|
|
1884
|
-
}) : /* @__PURE__ */
|
|
1903
|
+
}) : /* @__PURE__ */ React45.createElement(ListBoxOption, {
|
|
1885
1904
|
key: item.key,
|
|
1886
1905
|
item,
|
|
1887
1906
|
state
|
|
@@ -1901,14 +1920,14 @@ var messages = {
|
|
|
1901
1920
|
};
|
|
1902
1921
|
|
|
1903
1922
|
// src/Select/Select.tsx
|
|
1904
|
-
var Chevron = ({ css }) => /* @__PURE__ */
|
|
1923
|
+
var Chevron = ({ css }) => /* @__PURE__ */ React46.createElement(Box28, {
|
|
1905
1924
|
as: "svg",
|
|
1906
1925
|
__baseCSS: { width: 16, height: 16, fill: "none" },
|
|
1907
1926
|
css,
|
|
1908
1927
|
viewBox: "0 0 24 24",
|
|
1909
1928
|
stroke: "currentColor",
|
|
1910
1929
|
strokeWidth: 2
|
|
1911
|
-
}, /* @__PURE__ */
|
|
1930
|
+
}, /* @__PURE__ */ React46.createElement("path", {
|
|
1912
1931
|
strokeLinecap: "round",
|
|
1913
1932
|
strokeLinejoin: "round",
|
|
1914
1933
|
d: "M19 9l-7 7-7-7"
|
|
@@ -1952,7 +1971,7 @@ var Select = forwardRef11(
|
|
|
1952
1971
|
focusVisible: isFocusVisible,
|
|
1953
1972
|
expanded: state.isOpen
|
|
1954
1973
|
});
|
|
1955
|
-
return /* @__PURE__ */
|
|
1974
|
+
return /* @__PURE__ */ React46.createElement(FieldBase, {
|
|
1956
1975
|
variant,
|
|
1957
1976
|
size,
|
|
1958
1977
|
width,
|
|
@@ -1966,13 +1985,13 @@ var Select = forwardRef11(
|
|
|
1966
1985
|
stateProps,
|
|
1967
1986
|
disabled,
|
|
1968
1987
|
required
|
|
1969
|
-
}, /* @__PURE__ */
|
|
1988
|
+
}, /* @__PURE__ */ React46.createElement(HiddenSelect, {
|
|
1970
1989
|
state,
|
|
1971
1990
|
triggerRef: buttonRef,
|
|
1972
1991
|
label: props.label,
|
|
1973
1992
|
name: props.name,
|
|
1974
1993
|
isDisabled: disabled
|
|
1975
|
-
}), /* @__PURE__ */
|
|
1994
|
+
}), /* @__PURE__ */ React46.createElement(Box28, {
|
|
1976
1995
|
as: "button",
|
|
1977
1996
|
__baseCSS: {
|
|
1978
1997
|
display: "flex",
|
|
@@ -1983,29 +2002,29 @@ var Select = forwardRef11(
|
|
|
1983
2002
|
},
|
|
1984
2003
|
css: styles.button,
|
|
1985
2004
|
ref: buttonRef,
|
|
1986
|
-
...
|
|
2005
|
+
...mergeProps8(buttonProps, focusProps),
|
|
1987
2006
|
...stateProps
|
|
1988
|
-
}, /* @__PURE__ */
|
|
2007
|
+
}, /* @__PURE__ */ React46.createElement(Box28, {
|
|
1989
2008
|
css: {
|
|
1990
2009
|
overflow: "hidden",
|
|
1991
2010
|
whiteSpace: "nowrap"
|
|
1992
2011
|
},
|
|
1993
2012
|
...valueProps
|
|
1994
|
-
}, state.selectedItem ? state.selectedItem.rendered : props.placeholder), /* @__PURE__ */
|
|
2013
|
+
}, state.selectedItem ? state.selectedItem.rendered : props.placeholder), /* @__PURE__ */ React46.createElement(Chevron, {
|
|
1995
2014
|
css: styles.icon
|
|
1996
|
-
})), isSmallScreen ? /* @__PURE__ */
|
|
2015
|
+
})), isSmallScreen ? /* @__PURE__ */ React46.createElement(Tray, {
|
|
1997
2016
|
state
|
|
1998
|
-
}, /* @__PURE__ */
|
|
2017
|
+
}, /* @__PURE__ */ React46.createElement(ListBox, {
|
|
1999
2018
|
ref: listboxRef,
|
|
2000
2019
|
state,
|
|
2001
2020
|
variant,
|
|
2002
2021
|
size,
|
|
2003
2022
|
...menuProps
|
|
2004
|
-
})) : /* @__PURE__ */
|
|
2023
|
+
})) : /* @__PURE__ */ React46.createElement(Popover, {
|
|
2005
2024
|
state,
|
|
2006
2025
|
triggerRef: buttonRef,
|
|
2007
2026
|
scrollRef: listboxRef
|
|
2008
|
-
}, /* @__PURE__ */
|
|
2027
|
+
}, /* @__PURE__ */ React46.createElement(ListBox, {
|
|
2009
2028
|
ref: listboxRef,
|
|
2010
2029
|
state,
|
|
2011
2030
|
variant,
|
|
@@ -2018,7 +2037,7 @@ Select.Option = Item2;
|
|
|
2018
2037
|
Select.Section = Section;
|
|
2019
2038
|
|
|
2020
2039
|
// src/Slider/Slider.tsx
|
|
2021
|
-
import
|
|
2040
|
+
import React48, { forwardRef as forwardRef12 } from "react";
|
|
2022
2041
|
import { useSlider } from "@react-aria/slider";
|
|
2023
2042
|
import { useSliderState } from "@react-stately/slider";
|
|
2024
2043
|
import { useNumberFormatter } from "@react-aria/i18n";
|
|
@@ -2026,9 +2045,9 @@ import { useObjectRef as useObjectRef12 } from "@react-aria/utils";
|
|
|
2026
2045
|
import { useComponentStyles as useComponentStyles25 } from "@marigold/system";
|
|
2027
2046
|
|
|
2028
2047
|
// src/Slider/Thumb.tsx
|
|
2029
|
-
import
|
|
2048
|
+
import React47, { useEffect } from "react";
|
|
2030
2049
|
import { useSliderThumb } from "@react-aria/slider";
|
|
2031
|
-
import { mergeProps as
|
|
2050
|
+
import { mergeProps as mergeProps9 } from "@react-aria/utils";
|
|
2032
2051
|
import { useStateProps as useStateProps11 } from "@marigold/system";
|
|
2033
2052
|
|
|
2034
2053
|
// src/VisuallyHidden/VisuallyHidden.tsx
|
|
@@ -2038,7 +2057,7 @@ import { VisuallyHidden } from "@react-aria/visually-hidden";
|
|
|
2038
2057
|
import { useFocusRing as useFocusRing7 } from "@react-aria/focus";
|
|
2039
2058
|
var Thumb = ({ state, trackRef, styles, ...props }) => {
|
|
2040
2059
|
const { disabled } = props;
|
|
2041
|
-
const inputRef =
|
|
2060
|
+
const inputRef = React47.useRef(null);
|
|
2042
2061
|
const { isFocusVisible, focusProps, isFocused } = useFocusRing7();
|
|
2043
2062
|
const focused = isFocused || isFocusVisible || state.isThumbDragging(0);
|
|
2044
2063
|
const stateProps = useStateProps11({
|
|
@@ -2057,16 +2076,16 @@ var Thumb = ({ state, trackRef, styles, ...props }) => {
|
|
|
2057
2076
|
useEffect(() => {
|
|
2058
2077
|
state.setThumbEditable(0, !disabled);
|
|
2059
2078
|
}, [disabled, state]);
|
|
2060
|
-
return /* @__PURE__ */
|
|
2079
|
+
return /* @__PURE__ */ React47.createElement(Box, {
|
|
2061
2080
|
__baseCSS: { top: "50%" },
|
|
2062
2081
|
css: styles,
|
|
2063
2082
|
...thumbProps,
|
|
2064
2083
|
...stateProps
|
|
2065
|
-
}, /* @__PURE__ */
|
|
2084
|
+
}, /* @__PURE__ */ React47.createElement(VisuallyHidden, null, /* @__PURE__ */ React47.createElement(Box, {
|
|
2066
2085
|
as: "input",
|
|
2067
2086
|
type: "range",
|
|
2068
2087
|
ref: inputRef,
|
|
2069
|
-
...
|
|
2088
|
+
...mergeProps9(inputProps, focusProps)
|
|
2070
2089
|
})));
|
|
2071
2090
|
};
|
|
2072
2091
|
|
|
@@ -2090,7 +2109,7 @@ var Slider = forwardRef12(
|
|
|
2090
2109
|
{ variant, size },
|
|
2091
2110
|
{ parts: ["track", "thumb", "label", "output"] }
|
|
2092
2111
|
);
|
|
2093
|
-
return /* @__PURE__ */
|
|
2112
|
+
return /* @__PURE__ */ React48.createElement(Box, {
|
|
2094
2113
|
__baseCSS: {
|
|
2095
2114
|
display: "flex",
|
|
2096
2115
|
flexDirection: "column",
|
|
@@ -2098,18 +2117,18 @@ var Slider = forwardRef12(
|
|
|
2098
2117
|
width
|
|
2099
2118
|
},
|
|
2100
2119
|
...groupProps
|
|
2101
|
-
}, /* @__PURE__ */
|
|
2120
|
+
}, /* @__PURE__ */ React48.createElement(Box, {
|
|
2102
2121
|
__baseCSS: { display: "flex", alignSelf: "stretch" }
|
|
2103
|
-
}, props.children && /* @__PURE__ */
|
|
2122
|
+
}, props.children && /* @__PURE__ */ React48.createElement(Box, {
|
|
2104
2123
|
as: "label",
|
|
2105
2124
|
__baseCSS: styles.label,
|
|
2106
2125
|
...labelProps
|
|
2107
|
-
}, props.children), /* @__PURE__ */
|
|
2126
|
+
}, props.children), /* @__PURE__ */ React48.createElement(Box, {
|
|
2108
2127
|
as: "output",
|
|
2109
2128
|
...outputProps,
|
|
2110
2129
|
__baseCSS: { flex: "1 0 auto", textAlign: "end" },
|
|
2111
2130
|
css: styles.output
|
|
2112
|
-
}, state.getThumbValueLabel(0))), /* @__PURE__ */
|
|
2131
|
+
}, state.getThumbValueLabel(0))), /* @__PURE__ */ React48.createElement(Box, {
|
|
2113
2132
|
...trackProps,
|
|
2114
2133
|
ref: trackRef,
|
|
2115
2134
|
__baseCSS: {
|
|
@@ -2117,13 +2136,13 @@ var Slider = forwardRef12(
|
|
|
2117
2136
|
width: "100%",
|
|
2118
2137
|
cursor: props.disabled ? "not-allowed" : "pointer"
|
|
2119
2138
|
}
|
|
2120
|
-
}, /* @__PURE__ */
|
|
2139
|
+
}, /* @__PURE__ */ React48.createElement(Box, {
|
|
2121
2140
|
__baseCSS: {
|
|
2122
2141
|
top: "50%",
|
|
2123
2142
|
transform: "translateY(-50%)"
|
|
2124
2143
|
},
|
|
2125
2144
|
css: styles.track
|
|
2126
|
-
}), /* @__PURE__ */
|
|
2145
|
+
}), /* @__PURE__ */ React48.createElement(Thumb, {
|
|
2127
2146
|
state,
|
|
2128
2147
|
trackRef,
|
|
2129
2148
|
disabled: props.disabled,
|
|
@@ -2133,16 +2152,16 @@ var Slider = forwardRef12(
|
|
|
2133
2152
|
);
|
|
2134
2153
|
|
|
2135
2154
|
// src/Split/Split.tsx
|
|
2136
|
-
import
|
|
2155
|
+
import React49 from "react";
|
|
2137
2156
|
import { Box as Box29 } from "@marigold/system";
|
|
2138
|
-
var Split = (props) => /* @__PURE__ */
|
|
2157
|
+
var Split = (props) => /* @__PURE__ */ React49.createElement(Box29, {
|
|
2139
2158
|
...props,
|
|
2140
2159
|
role: "separator",
|
|
2141
2160
|
css: { flexGrow: 1 }
|
|
2142
2161
|
});
|
|
2143
2162
|
|
|
2144
2163
|
// src/Stack/Stack.tsx
|
|
2145
|
-
import
|
|
2164
|
+
import React50 from "react";
|
|
2146
2165
|
var ALIGNMENT_X2 = {
|
|
2147
2166
|
none: "initial",
|
|
2148
2167
|
left: "flex-start",
|
|
@@ -2162,7 +2181,7 @@ var Stack = ({
|
|
|
2162
2181
|
alignY = "none",
|
|
2163
2182
|
stretch = false,
|
|
2164
2183
|
...props
|
|
2165
|
-
}) => /* @__PURE__ */
|
|
2184
|
+
}) => /* @__PURE__ */ React50.createElement(Box, {
|
|
2166
2185
|
css: {
|
|
2167
2186
|
display: "flex",
|
|
2168
2187
|
flexDirection: "column",
|
|
@@ -2176,7 +2195,7 @@ var Stack = ({
|
|
|
2176
2195
|
}, children);
|
|
2177
2196
|
|
|
2178
2197
|
// src/Switch/Switch.tsx
|
|
2179
|
-
import
|
|
2198
|
+
import React51, { forwardRef as forwardRef13 } from "react";
|
|
2180
2199
|
import { useFocusRing as useFocusRing8 } from "@react-aria/focus";
|
|
2181
2200
|
import { useSwitch } from "@react-aria/switch";
|
|
2182
2201
|
import { useObjectRef as useObjectRef13 } from "@react-aria/utils";
|
|
@@ -2218,7 +2237,7 @@ var Switch = forwardRef13(
|
|
|
2218
2237
|
{ variant, size },
|
|
2219
2238
|
{ parts: ["container", "label", "track", "thumb"] }
|
|
2220
2239
|
);
|
|
2221
|
-
return /* @__PURE__ */
|
|
2240
|
+
return /* @__PURE__ */ React51.createElement(Box, {
|
|
2222
2241
|
as: "label",
|
|
2223
2242
|
__baseCSS: {
|
|
2224
2243
|
display: "flex",
|
|
@@ -2229,7 +2248,7 @@ var Switch = forwardRef13(
|
|
|
2229
2248
|
width
|
|
2230
2249
|
},
|
|
2231
2250
|
css: styles.container
|
|
2232
|
-
}, /* @__PURE__ */
|
|
2251
|
+
}, /* @__PURE__ */ React51.createElement(Box, {
|
|
2233
2252
|
as: "input",
|
|
2234
2253
|
ref: inputRef,
|
|
2235
2254
|
css: {
|
|
@@ -2244,9 +2263,9 @@ var Switch = forwardRef13(
|
|
|
2244
2263
|
},
|
|
2245
2264
|
...inputProps,
|
|
2246
2265
|
...focusProps
|
|
2247
|
-
}), props.children && /* @__PURE__ */
|
|
2266
|
+
}), props.children && /* @__PURE__ */ React51.createElement(Box, {
|
|
2248
2267
|
css: styles.label
|
|
2249
|
-
}, props.children), /* @__PURE__ */
|
|
2268
|
+
}, props.children), /* @__PURE__ */ React51.createElement(Box, {
|
|
2250
2269
|
__baseCSS: {
|
|
2251
2270
|
position: "relative",
|
|
2252
2271
|
width: 48,
|
|
@@ -2257,7 +2276,7 @@ var Switch = forwardRef13(
|
|
|
2257
2276
|
},
|
|
2258
2277
|
css: styles.track,
|
|
2259
2278
|
...stateProps
|
|
2260
|
-
}, /* @__PURE__ */
|
|
2279
|
+
}, /* @__PURE__ */ React51.createElement(Box, {
|
|
2261
2280
|
__baseCSS: {
|
|
2262
2281
|
display: "block",
|
|
2263
2282
|
position: "absolute",
|
|
@@ -2281,7 +2300,7 @@ var Switch = forwardRef13(
|
|
|
2281
2300
|
);
|
|
2282
2301
|
|
|
2283
2302
|
// src/Table/Table.tsx
|
|
2284
|
-
import
|
|
2303
|
+
import React60, { useRef as useRef16 } from "react";
|
|
2285
2304
|
import { useTable } from "@react-aria/table";
|
|
2286
2305
|
import {
|
|
2287
2306
|
Cell,
|
|
@@ -2297,25 +2316,25 @@ import {
|
|
|
2297
2316
|
} from "@marigold/system";
|
|
2298
2317
|
|
|
2299
2318
|
// src/Table/Context.tsx
|
|
2300
|
-
import { createContext as
|
|
2301
|
-
var TableContext =
|
|
2302
|
-
var useTableContext = () =>
|
|
2319
|
+
import { createContext as createContext8, useContext as useContext8 } from "react";
|
|
2320
|
+
var TableContext = createContext8({});
|
|
2321
|
+
var useTableContext = () => useContext8(TableContext);
|
|
2303
2322
|
|
|
2304
2323
|
// src/Table/TableBody.tsx
|
|
2305
|
-
import
|
|
2324
|
+
import React52 from "react";
|
|
2306
2325
|
import { useTableRowGroup } from "@react-aria/table";
|
|
2307
2326
|
var TableBody = ({ children }) => {
|
|
2308
2327
|
const { rowGroupProps } = useTableRowGroup();
|
|
2309
|
-
return /* @__PURE__ */
|
|
2328
|
+
return /* @__PURE__ */ React52.createElement("tbody", {
|
|
2310
2329
|
...rowGroupProps
|
|
2311
2330
|
}, children);
|
|
2312
2331
|
};
|
|
2313
2332
|
|
|
2314
2333
|
// src/Table/TableCell.tsx
|
|
2315
|
-
import
|
|
2334
|
+
import React53, { useRef as useRef10 } from "react";
|
|
2316
2335
|
import { useTableCell } from "@react-aria/table";
|
|
2317
2336
|
import { useFocusRing as useFocusRing9 } from "@react-aria/focus";
|
|
2318
|
-
import { mergeProps as
|
|
2337
|
+
import { mergeProps as mergeProps10 } from "@react-aria/utils";
|
|
2319
2338
|
import { Box as Box30, useStateProps as useStateProps13 } from "@marigold/system";
|
|
2320
2339
|
var TableCell = ({ cell }) => {
|
|
2321
2340
|
const ref = useRef10(null);
|
|
@@ -2335,20 +2354,20 @@ var TableCell = ({ cell }) => {
|
|
|
2335
2354
|
};
|
|
2336
2355
|
const { focusProps, isFocusVisible } = useFocusRing9();
|
|
2337
2356
|
const stateProps = useStateProps13({ disabled, focusVisible: isFocusVisible });
|
|
2338
|
-
return /* @__PURE__ */
|
|
2357
|
+
return /* @__PURE__ */ React53.createElement(Box30, {
|
|
2339
2358
|
as: "td",
|
|
2340
2359
|
ref,
|
|
2341
2360
|
css: styles.cell,
|
|
2342
|
-
...
|
|
2361
|
+
...mergeProps10(cellProps, focusProps),
|
|
2343
2362
|
...stateProps
|
|
2344
2363
|
}, cell.rendered);
|
|
2345
2364
|
};
|
|
2346
2365
|
|
|
2347
2366
|
// src/Table/TableCheckboxCell.tsx
|
|
2348
|
-
import
|
|
2367
|
+
import React54, { useRef as useRef11 } from "react";
|
|
2349
2368
|
import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
|
|
2350
2369
|
import { useFocusRing as useFocusRing10 } from "@react-aria/focus";
|
|
2351
|
-
import { mergeProps as
|
|
2370
|
+
import { mergeProps as mergeProps11 } from "@react-aria/utils";
|
|
2352
2371
|
import { Box as Box31, useStateProps as useStateProps14 } from "@marigold/system";
|
|
2353
2372
|
|
|
2354
2373
|
// src/Table/utils.ts
|
|
@@ -2388,7 +2407,7 @@ var TableCheckboxCell = ({ cell }) => {
|
|
|
2388
2407
|
);
|
|
2389
2408
|
const { focusProps, isFocusVisible } = useFocusRing10();
|
|
2390
2409
|
const stateProps = useStateProps14({ disabled, focusVisible: isFocusVisible });
|
|
2391
|
-
return /* @__PURE__ */
|
|
2410
|
+
return /* @__PURE__ */ React54.createElement(Box31, {
|
|
2392
2411
|
as: "td",
|
|
2393
2412
|
ref,
|
|
2394
2413
|
__baseCSS: {
|
|
@@ -2397,24 +2416,24 @@ var TableCheckboxCell = ({ cell }) => {
|
|
|
2397
2416
|
lineHeight: 1
|
|
2398
2417
|
},
|
|
2399
2418
|
css: styles.cell,
|
|
2400
|
-
...
|
|
2419
|
+
...mergeProps11(gridCellProps, focusProps),
|
|
2401
2420
|
...stateProps
|
|
2402
|
-
}, /* @__PURE__ */
|
|
2421
|
+
}, /* @__PURE__ */ React54.createElement(Checkbox, {
|
|
2403
2422
|
...checkboxProps
|
|
2404
2423
|
}));
|
|
2405
2424
|
};
|
|
2406
2425
|
|
|
2407
2426
|
// src/Table/TableColumnHeader.tsx
|
|
2408
|
-
import
|
|
2427
|
+
import React55, { useRef as useRef12 } from "react";
|
|
2409
2428
|
import { useFocusRing as useFocusRing11 } from "@react-aria/focus";
|
|
2410
2429
|
import { useHover as useHover6 } from "@react-aria/interactions";
|
|
2411
2430
|
import { useTableColumnHeader } from "@react-aria/table";
|
|
2412
|
-
import { mergeProps as
|
|
2431
|
+
import { mergeProps as mergeProps12 } from "@react-aria/utils";
|
|
2413
2432
|
import { Box as Box32, useStateProps as useStateProps15 } from "@marigold/system";
|
|
2414
2433
|
var SortIndicator = ({
|
|
2415
2434
|
direction = "ascending",
|
|
2416
2435
|
visible
|
|
2417
|
-
}) => /* @__PURE__ */
|
|
2436
|
+
}) => /* @__PURE__ */ React55.createElement(Box32, {
|
|
2418
2437
|
as: "span",
|
|
2419
2438
|
role: "presentation",
|
|
2420
2439
|
"aria-hidden": "true",
|
|
@@ -2441,49 +2460,49 @@ var TableColumnHeader = ({ column }) => {
|
|
|
2441
2460
|
hover: isHovered,
|
|
2442
2461
|
focusVisible: isFocusVisible
|
|
2443
2462
|
});
|
|
2444
|
-
return /* @__PURE__ */
|
|
2463
|
+
return /* @__PURE__ */ React55.createElement(Box32, {
|
|
2445
2464
|
as: "th",
|
|
2446
2465
|
colSpan: column.colspan,
|
|
2447
2466
|
ref,
|
|
2448
2467
|
__baseCSS: { cursor: "default" },
|
|
2449
2468
|
css: styles.header,
|
|
2450
|
-
...
|
|
2469
|
+
...mergeProps12(columnHeaderProps, hoverProps, focusProps),
|
|
2451
2470
|
...stateProps
|
|
2452
|
-
}, column.rendered, column.props.allowsSorting && /* @__PURE__ */
|
|
2471
|
+
}, column.rendered, column.props.allowsSorting && /* @__PURE__ */ React55.createElement(SortIndicator, {
|
|
2453
2472
|
direction: (_a = state.sortDescriptor) == null ? void 0 : _a.direction,
|
|
2454
2473
|
visible: ((_b = state.sortDescriptor) == null ? void 0 : _b.column) === column.key
|
|
2455
2474
|
}));
|
|
2456
2475
|
};
|
|
2457
2476
|
|
|
2458
2477
|
// src/Table/TableHeader.tsx
|
|
2459
|
-
import
|
|
2478
|
+
import React56 from "react";
|
|
2460
2479
|
import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
|
|
2461
2480
|
var TableHeader = ({ children }) => {
|
|
2462
2481
|
const { rowGroupProps } = useTableRowGroup2();
|
|
2463
|
-
return /* @__PURE__ */
|
|
2482
|
+
return /* @__PURE__ */ React56.createElement("thead", {
|
|
2464
2483
|
...rowGroupProps
|
|
2465
2484
|
}, children);
|
|
2466
2485
|
};
|
|
2467
2486
|
|
|
2468
2487
|
// src/Table/TableHeaderRow.tsx
|
|
2469
|
-
import
|
|
2488
|
+
import React57, { useRef as useRef13 } from "react";
|
|
2470
2489
|
import { useTableHeaderRow } from "@react-aria/table";
|
|
2471
2490
|
var TableHeaderRow = ({ item, children }) => {
|
|
2472
2491
|
const { state } = useTableContext();
|
|
2473
2492
|
const ref = useRef13(null);
|
|
2474
2493
|
const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
|
|
2475
|
-
return /* @__PURE__ */
|
|
2494
|
+
return /* @__PURE__ */ React57.createElement("tr", {
|
|
2476
2495
|
...rowProps,
|
|
2477
2496
|
ref
|
|
2478
2497
|
}, children);
|
|
2479
2498
|
};
|
|
2480
2499
|
|
|
2481
2500
|
// src/Table/TableRow.tsx
|
|
2482
|
-
import
|
|
2501
|
+
import React58, { useRef as useRef14 } from "react";
|
|
2483
2502
|
import { useFocusRing as useFocusRing12 } from "@react-aria/focus";
|
|
2484
2503
|
import { useHover as useHover7 } from "@react-aria/interactions";
|
|
2485
2504
|
import { useTableRow } from "@react-aria/table";
|
|
2486
|
-
import { mergeProps as
|
|
2505
|
+
import { mergeProps as mergeProps13 } from "@react-aria/utils";
|
|
2487
2506
|
import { Box as Box33, useComponentStyles as useComponentStyles27, useStateProps as useStateProps16 } from "@marigold/system";
|
|
2488
2507
|
var TableRow = ({ children, row }) => {
|
|
2489
2508
|
const ref = useRef14(null);
|
|
@@ -2514,27 +2533,27 @@ var TableRow = ({ children, row }) => {
|
|
|
2514
2533
|
focusVisible: isFocusVisible,
|
|
2515
2534
|
active: isPressed
|
|
2516
2535
|
});
|
|
2517
|
-
return /* @__PURE__ */
|
|
2536
|
+
return /* @__PURE__ */ React58.createElement(Box33, {
|
|
2518
2537
|
as: "tr",
|
|
2519
2538
|
ref,
|
|
2520
2539
|
__baseCSS: {
|
|
2521
2540
|
cursor: !interactive ? "text" : disabled ? "default" : "pointer"
|
|
2522
2541
|
},
|
|
2523
2542
|
css: styles,
|
|
2524
|
-
...
|
|
2543
|
+
...mergeProps13(rowProps, focusProps, hoverProps),
|
|
2525
2544
|
...stateProps
|
|
2526
2545
|
}, children);
|
|
2527
2546
|
};
|
|
2528
2547
|
|
|
2529
2548
|
// src/Table/TableSelectAllCell.tsx
|
|
2530
|
-
import
|
|
2549
|
+
import React59, { useRef as useRef15 } from "react";
|
|
2531
2550
|
import { useFocusRing as useFocusRing13 } from "@react-aria/focus";
|
|
2532
2551
|
import { useHover as useHover8 } from "@react-aria/interactions";
|
|
2533
2552
|
import {
|
|
2534
2553
|
useTableColumnHeader as useTableColumnHeader2,
|
|
2535
2554
|
useTableSelectAllCheckbox
|
|
2536
2555
|
} from "@react-aria/table";
|
|
2537
|
-
import { mergeProps as
|
|
2556
|
+
import { mergeProps as mergeProps14 } from "@react-aria/utils";
|
|
2538
2557
|
import { Box as Box34, useStateProps as useStateProps17 } from "@marigold/system";
|
|
2539
2558
|
var TableSelectAllCell = ({ column }) => {
|
|
2540
2559
|
const ref = useRef15(null);
|
|
@@ -2553,7 +2572,7 @@ var TableSelectAllCell = ({ column }) => {
|
|
|
2553
2572
|
hover: isHovered,
|
|
2554
2573
|
focusVisible: isFocusVisible
|
|
2555
2574
|
});
|
|
2556
|
-
return /* @__PURE__ */
|
|
2575
|
+
return /* @__PURE__ */ React59.createElement(Box34, {
|
|
2557
2576
|
as: "th",
|
|
2558
2577
|
ref,
|
|
2559
2578
|
__baseCSS: {
|
|
@@ -2562,9 +2581,9 @@ var TableSelectAllCell = ({ column }) => {
|
|
|
2562
2581
|
lineHeight: 1
|
|
2563
2582
|
},
|
|
2564
2583
|
css: styles.header,
|
|
2565
|
-
...
|
|
2584
|
+
...mergeProps14(columnHeaderProps, hoverProps, focusProps),
|
|
2566
2585
|
...stateProps
|
|
2567
|
-
}, /* @__PURE__ */
|
|
2586
|
+
}, /* @__PURE__ */ React59.createElement(Checkbox, {
|
|
2568
2587
|
...checkboxProps
|
|
2569
2588
|
}));
|
|
2570
2589
|
};
|
|
@@ -2591,9 +2610,9 @@ var Table = ({
|
|
|
2591
2610
|
{ parts: ["table", "header", "row", "cell"] }
|
|
2592
2611
|
);
|
|
2593
2612
|
const { collection } = state;
|
|
2594
|
-
return /* @__PURE__ */
|
|
2613
|
+
return /* @__PURE__ */ React60.createElement(TableContext.Provider, {
|
|
2595
2614
|
value: { state, interactive, styles }
|
|
2596
|
-
}, /* @__PURE__ */
|
|
2615
|
+
}, /* @__PURE__ */ React60.createElement(Box35, {
|
|
2597
2616
|
as: "table",
|
|
2598
2617
|
ref: tableRef,
|
|
2599
2618
|
__baseCSS: {
|
|
@@ -2605,30 +2624,30 @@ var Table = ({
|
|
|
2605
2624
|
},
|
|
2606
2625
|
css: styles.table,
|
|
2607
2626
|
...gridProps
|
|
2608
|
-
}, /* @__PURE__ */
|
|
2627
|
+
}, /* @__PURE__ */ React60.createElement(TableHeader, null, collection.headerRows.map((headerRow) => /* @__PURE__ */ React60.createElement(TableHeaderRow, {
|
|
2609
2628
|
key: headerRow.key,
|
|
2610
2629
|
item: headerRow
|
|
2611
2630
|
}, [...headerRow.childNodes].map(
|
|
2612
2631
|
(column) => {
|
|
2613
2632
|
var _a;
|
|
2614
|
-
return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */
|
|
2633
|
+
return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React60.createElement(TableSelectAllCell, {
|
|
2615
2634
|
key: column.key,
|
|
2616
2635
|
column
|
|
2617
|
-
}) : /* @__PURE__ */
|
|
2636
|
+
}) : /* @__PURE__ */ React60.createElement(TableColumnHeader, {
|
|
2618
2637
|
key: column.key,
|
|
2619
2638
|
column
|
|
2620
2639
|
});
|
|
2621
2640
|
}
|
|
2622
|
-
)))), /* @__PURE__ */
|
|
2641
|
+
)))), /* @__PURE__ */ React60.createElement(TableBody, null, [...collection.body.childNodes].map((row) => /* @__PURE__ */ React60.createElement(TableRow, {
|
|
2623
2642
|
key: row.key,
|
|
2624
2643
|
row
|
|
2625
2644
|
}, [...row.childNodes].map(
|
|
2626
2645
|
(cell) => {
|
|
2627
2646
|
var _a;
|
|
2628
|
-
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */
|
|
2647
|
+
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ React60.createElement(TableCheckboxCell, {
|
|
2629
2648
|
key: cell.key,
|
|
2630
2649
|
cell
|
|
2631
|
-
}) : /* @__PURE__ */
|
|
2650
|
+
}) : /* @__PURE__ */ React60.createElement(TableCell, {
|
|
2632
2651
|
key: cell.key,
|
|
2633
2652
|
cell
|
|
2634
2653
|
});
|
|
@@ -2642,7 +2661,7 @@ Table.Header = Header2;
|
|
|
2642
2661
|
Table.Row = Row;
|
|
2643
2662
|
|
|
2644
2663
|
// src/Text/Text.tsx
|
|
2645
|
-
import
|
|
2664
|
+
import React61 from "react";
|
|
2646
2665
|
import {
|
|
2647
2666
|
useComponentStyles as useComponentStyles29
|
|
2648
2667
|
} from "@marigold/system";
|
|
@@ -2663,7 +2682,7 @@ var Text = ({
|
|
|
2663
2682
|
variant,
|
|
2664
2683
|
size
|
|
2665
2684
|
});
|
|
2666
|
-
return /* @__PURE__ */
|
|
2685
|
+
return /* @__PURE__ */ React61.createElement(Box36, {
|
|
2667
2686
|
as: "p",
|
|
2668
2687
|
...props,
|
|
2669
2688
|
css: [
|
|
@@ -2674,7 +2693,7 @@ var Text = ({
|
|
|
2674
2693
|
};
|
|
2675
2694
|
|
|
2676
2695
|
// src/TextArea/TextArea.tsx
|
|
2677
|
-
import
|
|
2696
|
+
import React62, { forwardRef as forwardRef14 } from "react";
|
|
2678
2697
|
import { useHover as useHover9 } from "@react-aria/interactions";
|
|
2679
2698
|
import { useFocusRing as useFocusRing14 } from "@react-aria/focus";
|
|
2680
2699
|
import { useTextField } from "@react-aria/textfield";
|
|
@@ -2719,7 +2738,7 @@ var TextArea = forwardRef14(
|
|
|
2719
2738
|
error
|
|
2720
2739
|
});
|
|
2721
2740
|
const styles = useComponentStyles30("TextArea", { variant, size });
|
|
2722
|
-
return /* @__PURE__ */
|
|
2741
|
+
return /* @__PURE__ */ React62.createElement(FieldBase, {
|
|
2723
2742
|
label,
|
|
2724
2743
|
labelProps,
|
|
2725
2744
|
required,
|
|
@@ -2732,7 +2751,7 @@ var TextArea = forwardRef14(
|
|
|
2732
2751
|
variant,
|
|
2733
2752
|
size,
|
|
2734
2753
|
width
|
|
2735
|
-
}, /* @__PURE__ */
|
|
2754
|
+
}, /* @__PURE__ */ React62.createElement(Box37, {
|
|
2736
2755
|
as: "textarea",
|
|
2737
2756
|
css: styles,
|
|
2738
2757
|
ref: textAreaRef,
|
|
@@ -2746,7 +2765,7 @@ var TextArea = forwardRef14(
|
|
|
2746
2765
|
);
|
|
2747
2766
|
|
|
2748
2767
|
// src/TextField/TextField.tsx
|
|
2749
|
-
import
|
|
2768
|
+
import React63, { forwardRef as forwardRef15 } from "react";
|
|
2750
2769
|
import { useHover as useHover10 } from "@react-aria/interactions";
|
|
2751
2770
|
import { useFocusRing as useFocusRing15 } from "@react-aria/focus";
|
|
2752
2771
|
import { useTextField as useTextField2 } from "@react-aria/textfield";
|
|
@@ -2778,7 +2797,7 @@ var TextField = forwardRef15(
|
|
|
2778
2797
|
readOnly,
|
|
2779
2798
|
error
|
|
2780
2799
|
});
|
|
2781
|
-
return /* @__PURE__ */
|
|
2800
|
+
return /* @__PURE__ */ React63.createElement(FieldBase, {
|
|
2782
2801
|
label,
|
|
2783
2802
|
labelProps,
|
|
2784
2803
|
required,
|
|
@@ -2791,7 +2810,7 @@ var TextField = forwardRef15(
|
|
|
2791
2810
|
variant,
|
|
2792
2811
|
size,
|
|
2793
2812
|
width
|
|
2794
|
-
}, /* @__PURE__ */
|
|
2813
|
+
}, /* @__PURE__ */ React63.createElement(Input, {
|
|
2795
2814
|
ref: inputRef,
|
|
2796
2815
|
variant,
|
|
2797
2816
|
size,
|
|
@@ -2804,7 +2823,7 @@ var TextField = forwardRef15(
|
|
|
2804
2823
|
);
|
|
2805
2824
|
|
|
2806
2825
|
// src/Tiles/Tiles.tsx
|
|
2807
|
-
import
|
|
2826
|
+
import React64 from "react";
|
|
2808
2827
|
import { useTheme as useTheme3 } from "@marigold/system";
|
|
2809
2828
|
var Tiles = ({
|
|
2810
2829
|
space = "none",
|
|
@@ -2820,7 +2839,7 @@ var Tiles = ({
|
|
|
2820
2839
|
if (stretch) {
|
|
2821
2840
|
column = `minmax(${column}, 1fr)`;
|
|
2822
2841
|
}
|
|
2823
|
-
return /* @__PURE__ */
|
|
2842
|
+
return /* @__PURE__ */ React64.createElement(Box, {
|
|
2824
2843
|
...props,
|
|
2825
2844
|
css: {
|
|
2826
2845
|
display: "grid",
|
|
@@ -2832,7 +2851,7 @@ var Tiles = ({
|
|
|
2832
2851
|
};
|
|
2833
2852
|
|
|
2834
2853
|
// src/Tooltip/Tooltip.tsx
|
|
2835
|
-
import
|
|
2854
|
+
import React66 from "react";
|
|
2836
2855
|
import { useTooltip } from "@react-aria/tooltip";
|
|
2837
2856
|
import {
|
|
2838
2857
|
Box as Box38,
|
|
@@ -2840,12 +2859,12 @@ import {
|
|
|
2840
2859
|
} from "@marigold/system";
|
|
2841
2860
|
|
|
2842
2861
|
// src/Tooltip/Context.ts
|
|
2843
|
-
import { createContext as
|
|
2844
|
-
var TooltipContext =
|
|
2845
|
-
var useTooltipContext = () =>
|
|
2862
|
+
import { createContext as createContext9, useContext as useContext9 } from "react";
|
|
2863
|
+
var TooltipContext = createContext9({});
|
|
2864
|
+
var useTooltipContext = () => useContext9(TooltipContext);
|
|
2846
2865
|
|
|
2847
2866
|
// src/Tooltip/TooltipTrigger.tsx
|
|
2848
|
-
import
|
|
2867
|
+
import React65, { useRef as useRef17 } from "react";
|
|
2849
2868
|
import { FocusableProvider } from "@react-aria/focus";
|
|
2850
2869
|
import { useOverlayPosition } from "@react-aria/overlays";
|
|
2851
2870
|
import { useTooltipTrigger } from "@react-aria/tooltip";
|
|
@@ -2858,7 +2877,7 @@ var TooltipTrigger = ({
|
|
|
2858
2877
|
children,
|
|
2859
2878
|
...rest
|
|
2860
2879
|
}) => {
|
|
2861
|
-
const [tooltipTrigger, tooltip] =
|
|
2880
|
+
const [tooltipTrigger, tooltip] = React65.Children.toArray(children);
|
|
2862
2881
|
const props = {
|
|
2863
2882
|
...rest,
|
|
2864
2883
|
isDisabled: disabled,
|
|
@@ -2886,10 +2905,10 @@ var TooltipTrigger = ({
|
|
|
2886
2905
|
isOpen: state.isOpen,
|
|
2887
2906
|
overlayRef
|
|
2888
2907
|
});
|
|
2889
|
-
return /* @__PURE__ */
|
|
2908
|
+
return /* @__PURE__ */ React65.createElement(FocusableProvider, {
|
|
2890
2909
|
ref: tooltipTriggerRef,
|
|
2891
2910
|
...triggerProps
|
|
2892
|
-
}, tooltipTrigger, /* @__PURE__ */
|
|
2911
|
+
}, tooltipTrigger, /* @__PURE__ */ React65.createElement(TooltipContext.Provider, {
|
|
2893
2912
|
value: {
|
|
2894
2913
|
state,
|
|
2895
2914
|
overlayRef,
|
|
@@ -2898,7 +2917,7 @@ var TooltipTrigger = ({
|
|
|
2898
2917
|
...tooltipProps,
|
|
2899
2918
|
...positionProps
|
|
2900
2919
|
}
|
|
2901
|
-
}, /* @__PURE__ */
|
|
2920
|
+
}, /* @__PURE__ */ React65.createElement(Overlay, {
|
|
2902
2921
|
open: state.isOpen
|
|
2903
2922
|
}, tooltip)));
|
|
2904
2923
|
};
|
|
@@ -2912,13 +2931,13 @@ var Tooltip = ({ children, variant, size }) => {
|
|
|
2912
2931
|
{ variant, size },
|
|
2913
2932
|
{ parts: ["container", "arrow"] }
|
|
2914
2933
|
);
|
|
2915
|
-
return /* @__PURE__ */
|
|
2934
|
+
return /* @__PURE__ */ React66.createElement(Box38, {
|
|
2916
2935
|
...tooltipProps,
|
|
2917
2936
|
...rest,
|
|
2918
2937
|
ref: overlayRef,
|
|
2919
2938
|
css: styles.container,
|
|
2920
2939
|
"data-placement": placement
|
|
2921
|
-
}, /* @__PURE__ */
|
|
2940
|
+
}, /* @__PURE__ */ React66.createElement("div", null, children), /* @__PURE__ */ React66.createElement(Box38, {
|
|
2922
2941
|
...arrowProps,
|
|
2923
2942
|
__baseCSS: {
|
|
2924
2943
|
position: "absolute",
|
|
@@ -2936,121 +2955,121 @@ Tooltip.Trigger = TooltipTrigger;
|
|
|
2936
2955
|
|
|
2937
2956
|
// src/XLoader/XLoader.tsx
|
|
2938
2957
|
import { SVG as SVG3 } from "@marigold/system";
|
|
2939
|
-
import
|
|
2940
|
-
var XLoader = forwardRef16((props, ref) => /* @__PURE__ */
|
|
2958
|
+
import React67, { forwardRef as forwardRef16 } from "react";
|
|
2959
|
+
var XLoader = forwardRef16((props, ref) => /* @__PURE__ */ React67.createElement(SVG3, {
|
|
2941
2960
|
id: "XLoader",
|
|
2942
2961
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2943
2962
|
size: 150,
|
|
2944
2963
|
viewBox: "0 0 150 150",
|
|
2945
2964
|
...props,
|
|
2946
2965
|
...ref
|
|
2947
|
-
}, /* @__PURE__ */
|
|
2966
|
+
}, /* @__PURE__ */ React67.createElement("path", {
|
|
2948
2967
|
id: "XMLID_1_",
|
|
2949
2968
|
d: "M35.3 27h26.5l54 74.1H88.7z"
|
|
2950
|
-
}), /* @__PURE__ */
|
|
2969
|
+
}), /* @__PURE__ */ React67.createElement("path", {
|
|
2951
2970
|
id: "XMLID_5_",
|
|
2952
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"
|
|
2953
|
-
}, /* @__PURE__ */
|
|
2972
|
+
}, /* @__PURE__ */ React67.createElement("animate", {
|
|
2954
2973
|
attributeName: "opacity",
|
|
2955
2974
|
attributeType: "XML",
|
|
2956
2975
|
values: "1; .01; 1; 1; 1;",
|
|
2957
2976
|
begin: "1.0s",
|
|
2958
2977
|
dur: "2.5s",
|
|
2959
2978
|
repeatCount: "indefinite"
|
|
2960
|
-
})), /* @__PURE__ */
|
|
2979
|
+
})), /* @__PURE__ */ React67.createElement("path", {
|
|
2961
2980
|
id: "XMLID_18_",
|
|
2962
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"
|
|
2963
|
-
}, /* @__PURE__ */
|
|
2982
|
+
}, /* @__PURE__ */ React67.createElement("animate", {
|
|
2964
2983
|
attributeName: "opacity",
|
|
2965
2984
|
attributeType: "XML",
|
|
2966
2985
|
values: "1; .01; 1; 1; 1;",
|
|
2967
2986
|
begin: "0.9s",
|
|
2968
2987
|
dur: "2.5s",
|
|
2969
2988
|
repeatCount: "indefinite"
|
|
2970
|
-
})), /* @__PURE__ */
|
|
2989
|
+
})), /* @__PURE__ */ React67.createElement("path", {
|
|
2971
2990
|
id: "XMLID_19_",
|
|
2972
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"
|
|
2973
|
-
}, /* @__PURE__ */
|
|
2992
|
+
}, /* @__PURE__ */ React67.createElement("animate", {
|
|
2974
2993
|
attributeName: "opacity",
|
|
2975
2994
|
attributeType: "XML",
|
|
2976
2995
|
values: "1; .01; 1; 1; 1;",
|
|
2977
2996
|
begin: "0.8s",
|
|
2978
2997
|
dur: "2.5s",
|
|
2979
2998
|
repeatCount: "indefinite"
|
|
2980
|
-
})), /* @__PURE__ */
|
|
2999
|
+
})), /* @__PURE__ */ React67.createElement("path", {
|
|
2981
3000
|
id: "XMLID_20_",
|
|
2982
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"
|
|
2983
|
-
}, /* @__PURE__ */
|
|
3002
|
+
}, /* @__PURE__ */ React67.createElement("animate", {
|
|
2984
3003
|
attributeName: "opacity",
|
|
2985
3004
|
attributeType: "XML",
|
|
2986
3005
|
values: "1; .01; 1; 1; 1;",
|
|
2987
3006
|
begin: "0.7s",
|
|
2988
3007
|
dur: "2.5s",
|
|
2989
3008
|
repeatCount: "indefinite"
|
|
2990
|
-
})), /* @__PURE__ */
|
|
3009
|
+
})), /* @__PURE__ */ React67.createElement("path", {
|
|
2991
3010
|
id: "XMLID_21_",
|
|
2992
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"
|
|
2993
|
-
}, /* @__PURE__ */
|
|
3012
|
+
}, /* @__PURE__ */ React67.createElement("animate", {
|
|
2994
3013
|
attributeName: "opacity",
|
|
2995
3014
|
attributeType: "XML",
|
|
2996
3015
|
values: "1; .01; 1; 1; 1;",
|
|
2997
3016
|
begin: "0.6s",
|
|
2998
3017
|
dur: "2.5s",
|
|
2999
3018
|
repeatCount: "indefinite"
|
|
3000
|
-
})), /* @__PURE__ */
|
|
3019
|
+
})), /* @__PURE__ */ React67.createElement("path", {
|
|
3001
3020
|
id: "XMLID_22_",
|
|
3002
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"
|
|
3003
|
-
}, /* @__PURE__ */
|
|
3022
|
+
}, /* @__PURE__ */ React67.createElement("animate", {
|
|
3004
3023
|
attributeName: "opacity",
|
|
3005
3024
|
attributeType: "XML",
|
|
3006
3025
|
values: "1; .01; 1; 1; 1;",
|
|
3007
3026
|
begin: "0.5s",
|
|
3008
3027
|
dur: "2.5s",
|
|
3009
3028
|
repeatCount: "indefinite"
|
|
3010
|
-
})), /* @__PURE__ */
|
|
3029
|
+
})), /* @__PURE__ */ React67.createElement("path", {
|
|
3011
3030
|
id: "XMLID_23_",
|
|
3012
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"
|
|
3013
|
-
}, /* @__PURE__ */
|
|
3032
|
+
}, /* @__PURE__ */ React67.createElement("animate", {
|
|
3014
3033
|
attributeName: "opacity",
|
|
3015
3034
|
attributeType: "XML",
|
|
3016
3035
|
values: "1; .01; 1; 1; 1;",
|
|
3017
3036
|
begin: "0.4s",
|
|
3018
3037
|
dur: "2.5s",
|
|
3019
3038
|
repeatCount: "indefinite"
|
|
3020
|
-
})), /* @__PURE__ */
|
|
3039
|
+
})), /* @__PURE__ */ React67.createElement("path", {
|
|
3021
3040
|
id: "XMLID_24_",
|
|
3022
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"
|
|
3023
|
-
}, /* @__PURE__ */
|
|
3042
|
+
}, /* @__PURE__ */ React67.createElement("animate", {
|
|
3024
3043
|
attributeName: "opacity",
|
|
3025
3044
|
attributeType: "XML",
|
|
3026
3045
|
values: "1; .01; 1; 1; 1;",
|
|
3027
3046
|
begin: "0.3s",
|
|
3028
3047
|
dur: "2.5s",
|
|
3029
3048
|
repeatCount: "indefinite"
|
|
3030
|
-
})), /* @__PURE__ */
|
|
3049
|
+
})), /* @__PURE__ */ React67.createElement("path", {
|
|
3031
3050
|
id: "XMLID_25_",
|
|
3032
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"
|
|
3033
|
-
}, /* @__PURE__ */
|
|
3052
|
+
}, /* @__PURE__ */ React67.createElement("animate", {
|
|
3034
3053
|
attributeName: "opacity",
|
|
3035
3054
|
attributeType: "XML",
|
|
3036
3055
|
values: "1; .01; 1; 1; 1;",
|
|
3037
3056
|
begin: "0.2s",
|
|
3038
3057
|
dur: "2.5s",
|
|
3039
3058
|
repeatCount: "indefinite"
|
|
3040
|
-
})), /* @__PURE__ */
|
|
3059
|
+
})), /* @__PURE__ */ React67.createElement("path", {
|
|
3041
3060
|
id: "XMLID_26_",
|
|
3042
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"
|
|
3043
|
-
}, /* @__PURE__ */
|
|
3062
|
+
}, /* @__PURE__ */ React67.createElement("animate", {
|
|
3044
3063
|
attributeName: "opacity",
|
|
3045
3064
|
attributeType: "XML",
|
|
3046
3065
|
values: "1; .01; 1; 1; 1;",
|
|
3047
3066
|
begin: "0.1s",
|
|
3048
3067
|
dur: "2.5s",
|
|
3049
3068
|
repeatCount: "indefinite"
|
|
3050
|
-
})), /* @__PURE__ */
|
|
3069
|
+
})), /* @__PURE__ */ React67.createElement("path", {
|
|
3051
3070
|
id: "XMLID_27_",
|
|
3052
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"
|
|
3053
|
-
}, /* @__PURE__ */
|
|
3072
|
+
}, /* @__PURE__ */ React67.createElement("animate", {
|
|
3054
3073
|
attributeName: "opacity",
|
|
3055
3074
|
attributeType: "XML",
|
|
3056
3075
|
values: "1; .01; 1; 1; 1;",
|
|
@@ -3075,6 +3094,9 @@ export {
|
|
|
3075
3094
|
Container,
|
|
3076
3095
|
Dialog,
|
|
3077
3096
|
Divider,
|
|
3097
|
+
FieldBase,
|
|
3098
|
+
FieldGroup,
|
|
3099
|
+
FieldGroupContext,
|
|
3078
3100
|
Footer,
|
|
3079
3101
|
Header,
|
|
3080
3102
|
Headline,
|
|
@@ -3113,6 +3135,7 @@ export {
|
|
|
3113
3135
|
extendTheme,
|
|
3114
3136
|
useAsyncList,
|
|
3115
3137
|
useCheckboxGroupContext,
|
|
3138
|
+
useFieldGroupContext,
|
|
3116
3139
|
useListData,
|
|
3117
3140
|
useTheme2 as useTheme
|
|
3118
3141
|
};
|