@marigold/components 7.5.4 → 7.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +26 -12
- package/dist/index.d.ts +26 -12
- package/dist/index.js +272 -207
- package/dist/index.mjs +220 -154
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -2096,12 +2096,13 @@ var _Menu = ({
|
|
|
2096
2096
|
size,
|
|
2097
2097
|
disabled,
|
|
2098
2098
|
open,
|
|
2099
|
+
placement,
|
|
2099
2100
|
...props
|
|
2100
2101
|
}) => {
|
|
2101
2102
|
const classNames2 = useClassNames34({ component: "Menu", variant, size });
|
|
2102
2103
|
return /* @__PURE__ */ jsxs22(MenuTrigger, { ...props, children: [
|
|
2103
2104
|
/* @__PURE__ */ jsx58(_Button, { variant: "menu", disabled, children: label }),
|
|
2104
|
-
/* @__PURE__ */ jsx58(_Popover, { open, children: /* @__PURE__ */ jsx58(Menu, { ...props, className: classNames2.container, children }) })
|
|
2105
|
+
/* @__PURE__ */ jsx58(_Popover, { open, placement, children: /* @__PURE__ */ jsx58(Menu, { ...props, className: classNames2.container, children }) })
|
|
2105
2106
|
] });
|
|
2106
2107
|
};
|
|
2107
2108
|
_Menu.Item = _MenuItem;
|
|
@@ -2652,26 +2653,90 @@ var _Select = forwardRef19(
|
|
|
2652
2653
|
_Select.Option = _ListBox.Item;
|
|
2653
2654
|
_Select.Section = _ListBox.Section;
|
|
2654
2655
|
|
|
2656
|
+
// src/SelectList/SelectList.tsx
|
|
2657
|
+
import {
|
|
2658
|
+
forwardRef as forwardRef21
|
|
2659
|
+
} from "react";
|
|
2660
|
+
import { GridList as SelectList } from "react-aria-components";
|
|
2661
|
+
import { cn as cn40, useClassNames as useClassNames43 } from "@marigold/system";
|
|
2662
|
+
|
|
2663
|
+
// src/SelectList/Context.ts
|
|
2664
|
+
import { createContext as createContext7, useContext as useContext13 } from "react";
|
|
2665
|
+
var SelectListContext = createContext7(
|
|
2666
|
+
{}
|
|
2667
|
+
);
|
|
2668
|
+
var useSelectListContext = () => useContext13(SelectListContext);
|
|
2669
|
+
|
|
2670
|
+
// src/SelectList/SelectListItem.tsx
|
|
2671
|
+
import { forwardRef as forwardRef20 } from "react";
|
|
2672
|
+
import { GridListItem as SelectListItem } from "react-aria-components";
|
|
2673
|
+
import { cn as cn39 } from "@marigold/system";
|
|
2674
|
+
import { Fragment as Fragment8, jsx as jsx70, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
2675
|
+
var _SelectListItem = forwardRef20(
|
|
2676
|
+
({ children, ...props }, ref) => {
|
|
2677
|
+
let textValue = typeof children === "string" ? children : void 0;
|
|
2678
|
+
const { classNames: classNames2 } = useSelectListContext();
|
|
2679
|
+
return /* @__PURE__ */ jsx70(
|
|
2680
|
+
SelectListItem,
|
|
2681
|
+
{
|
|
2682
|
+
textValue,
|
|
2683
|
+
...props,
|
|
2684
|
+
className: cn39("flex items-center", classNames2 == null ? void 0 : classNames2.option),
|
|
2685
|
+
ref,
|
|
2686
|
+
children: ({ selectionMode }) => /* @__PURE__ */ jsxs30(Fragment8, { children: [
|
|
2687
|
+
selectionMode === "multiple" && /* @__PURE__ */ jsx70(FieldGroup, { children: /* @__PURE__ */ jsx70(_Checkbox, { slot: "selection" }) }),
|
|
2688
|
+
children
|
|
2689
|
+
] })
|
|
2690
|
+
}
|
|
2691
|
+
);
|
|
2692
|
+
}
|
|
2693
|
+
);
|
|
2694
|
+
|
|
2695
|
+
// src/SelectList/SelectList.tsx
|
|
2696
|
+
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
2697
|
+
var _SelectList = forwardRef21(
|
|
2698
|
+
({ onChange, ...rest }, ref) => {
|
|
2699
|
+
const classNames2 = useClassNames43({ component: "ListBox" });
|
|
2700
|
+
const props = {
|
|
2701
|
+
onSelectionChange: onChange,
|
|
2702
|
+
...rest
|
|
2703
|
+
};
|
|
2704
|
+
return /* @__PURE__ */ jsx71(SelectListContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx71("div", { className: classNames2.container, children: /* @__PURE__ */ jsx71(
|
|
2705
|
+
SelectList,
|
|
2706
|
+
{
|
|
2707
|
+
...props,
|
|
2708
|
+
ref,
|
|
2709
|
+
className: cn40(
|
|
2710
|
+
"overflow-y-auto sm:max-h-[75vh] lg:max-h-[45vh]",
|
|
2711
|
+
classNames2.list
|
|
2712
|
+
),
|
|
2713
|
+
children: props.children
|
|
2714
|
+
}
|
|
2715
|
+
) }) });
|
|
2716
|
+
}
|
|
2717
|
+
);
|
|
2718
|
+
_SelectList.Item = _SelectListItem;
|
|
2719
|
+
|
|
2655
2720
|
// src/Scrollable/Scrollable.tsx
|
|
2656
|
-
import { cn as
|
|
2657
|
-
import { jsx as
|
|
2721
|
+
import { cn as cn41, createVar as createVar10, width as twWidth2 } from "@marigold/system";
|
|
2722
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
2658
2723
|
var Scrollable = ({
|
|
2659
2724
|
children,
|
|
2660
2725
|
width = "full",
|
|
2661
2726
|
height,
|
|
2662
2727
|
...props
|
|
2663
|
-
}) => /* @__PURE__ */
|
|
2728
|
+
}) => /* @__PURE__ */ jsx72(
|
|
2664
2729
|
"div",
|
|
2665
2730
|
{
|
|
2666
2731
|
...props,
|
|
2667
|
-
className:
|
|
2732
|
+
className: cn41(["sticky h-[--height] overflow-auto", twWidth2[width]]),
|
|
2668
2733
|
style: createVar10({ height }),
|
|
2669
2734
|
children
|
|
2670
2735
|
}
|
|
2671
2736
|
);
|
|
2672
2737
|
|
|
2673
2738
|
// src/Slider/Slider.tsx
|
|
2674
|
-
import { forwardRef as
|
|
2739
|
+
import { forwardRef as forwardRef22 } from "react";
|
|
2675
2740
|
import {
|
|
2676
2741
|
Slider,
|
|
2677
2742
|
SliderOutput,
|
|
@@ -2679,12 +2744,12 @@ import {
|
|
|
2679
2744
|
SliderTrack
|
|
2680
2745
|
} from "react-aria-components";
|
|
2681
2746
|
import {
|
|
2682
|
-
cn as
|
|
2747
|
+
cn as cn42,
|
|
2683
2748
|
width as twWidth3,
|
|
2684
|
-
useClassNames as
|
|
2749
|
+
useClassNames as useClassNames44
|
|
2685
2750
|
} from "@marigold/system";
|
|
2686
|
-
import { jsx as
|
|
2687
|
-
var _Slider =
|
|
2751
|
+
import { jsx as jsx73, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
2752
|
+
var _Slider = forwardRef22(
|
|
2688
2753
|
({
|
|
2689
2754
|
thumbLabels,
|
|
2690
2755
|
variant,
|
|
@@ -2693,7 +2758,7 @@ var _Slider = forwardRef20(
|
|
|
2693
2758
|
disabled,
|
|
2694
2759
|
...rest
|
|
2695
2760
|
}, ref) => {
|
|
2696
|
-
const classNames2 =
|
|
2761
|
+
const classNames2 = useClassNames44({
|
|
2697
2762
|
component: "Slider",
|
|
2698
2763
|
variant,
|
|
2699
2764
|
size
|
|
@@ -2702,10 +2767,10 @@ var _Slider = forwardRef20(
|
|
|
2702
2767
|
isDisabled: disabled,
|
|
2703
2768
|
...rest
|
|
2704
2769
|
};
|
|
2705
|
-
return /* @__PURE__ */
|
|
2770
|
+
return /* @__PURE__ */ jsxs31(
|
|
2706
2771
|
Slider,
|
|
2707
2772
|
{
|
|
2708
|
-
className:
|
|
2773
|
+
className: cn42(
|
|
2709
2774
|
"grid grid-cols-[auto_1fr] gap-y-1",
|
|
2710
2775
|
classNames2.container,
|
|
2711
2776
|
twWidth3[width]
|
|
@@ -2713,16 +2778,16 @@ var _Slider = forwardRef20(
|
|
|
2713
2778
|
ref,
|
|
2714
2779
|
...props,
|
|
2715
2780
|
children: [
|
|
2716
|
-
/* @__PURE__ */
|
|
2717
|
-
/* @__PURE__ */
|
|
2718
|
-
/* @__PURE__ */
|
|
2781
|
+
/* @__PURE__ */ jsx73(_Label, { children: props.children }),
|
|
2782
|
+
/* @__PURE__ */ jsx73(SliderOutput, { className: cn42("flex justify-end", classNames2.output), children: ({ state }) => state.values.map((_, i) => state.getThumbValueLabel(i)).join(" \u2013 ") }),
|
|
2783
|
+
/* @__PURE__ */ jsx73(
|
|
2719
2784
|
SliderTrack,
|
|
2720
2785
|
{
|
|
2721
|
-
className:
|
|
2722
|
-
children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */
|
|
2786
|
+
className: cn42("relative col-span-2 h-2 w-full", classNames2.track),
|
|
2787
|
+
children: ({ state }) => state.values.map((_, i) => /* @__PURE__ */ jsx73(
|
|
2723
2788
|
SliderThumb,
|
|
2724
2789
|
{
|
|
2725
|
-
className:
|
|
2790
|
+
className: cn42("top-1/2 cursor-pointer", classNames2.thumb),
|
|
2726
2791
|
index: i,
|
|
2727
2792
|
"aria-label": thumbLabels == null ? void 0 : thumbLabels[i]
|
|
2728
2793
|
},
|
|
@@ -2737,16 +2802,16 @@ var _Slider = forwardRef20(
|
|
|
2737
2802
|
);
|
|
2738
2803
|
|
|
2739
2804
|
// src/Split/Split.tsx
|
|
2740
|
-
import { jsx as
|
|
2741
|
-
var Split = (props) => /* @__PURE__ */
|
|
2805
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
|
2806
|
+
var Split = (props) => /* @__PURE__ */ jsx74("div", { ...props, role: "separator", className: "grow" });
|
|
2742
2807
|
|
|
2743
2808
|
// src/Stack/Stack.tsx
|
|
2744
2809
|
import {
|
|
2745
2810
|
alignment as alignment3,
|
|
2746
|
-
cn as
|
|
2811
|
+
cn as cn43,
|
|
2747
2812
|
gapSpace as gapSpace6
|
|
2748
2813
|
} from "@marigold/system";
|
|
2749
|
-
import { jsx as
|
|
2814
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
2750
2815
|
var Stack = ({
|
|
2751
2816
|
children,
|
|
2752
2817
|
space = 0,
|
|
@@ -2757,10 +2822,10 @@ var Stack = ({
|
|
|
2757
2822
|
...props
|
|
2758
2823
|
}) => {
|
|
2759
2824
|
var _a, _b, _c, _d;
|
|
2760
|
-
return /* @__PURE__ */
|
|
2825
|
+
return /* @__PURE__ */ jsx75(
|
|
2761
2826
|
"div",
|
|
2762
2827
|
{
|
|
2763
|
-
className:
|
|
2828
|
+
className: cn43(
|
|
2764
2829
|
"flex flex-col",
|
|
2765
2830
|
gapSpace6[space],
|
|
2766
2831
|
alignX && ((_b = (_a = alignment3) == null ? void 0 : _a.vertical) == null ? void 0 : _b.alignmentX[alignX]),
|
|
@@ -2774,15 +2839,15 @@ var Stack = ({
|
|
|
2774
2839
|
};
|
|
2775
2840
|
|
|
2776
2841
|
// src/Switch/Switch.tsx
|
|
2777
|
-
import { forwardRef as
|
|
2842
|
+
import { forwardRef as forwardRef23 } from "react";
|
|
2778
2843
|
import { Switch } from "react-aria-components";
|
|
2779
2844
|
import {
|
|
2780
|
-
cn as
|
|
2845
|
+
cn as cn44,
|
|
2781
2846
|
width as twWidth4,
|
|
2782
|
-
useClassNames as
|
|
2847
|
+
useClassNames as useClassNames45
|
|
2783
2848
|
} from "@marigold/system";
|
|
2784
|
-
import { jsx as
|
|
2785
|
-
var _Switch =
|
|
2849
|
+
import { jsx as jsx76, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
2850
|
+
var _Switch = forwardRef23(
|
|
2786
2851
|
({
|
|
2787
2852
|
variant,
|
|
2788
2853
|
size,
|
|
@@ -2793,37 +2858,37 @@ var _Switch = forwardRef21(
|
|
|
2793
2858
|
readOnly,
|
|
2794
2859
|
...rest
|
|
2795
2860
|
}, ref) => {
|
|
2796
|
-
const classNames2 =
|
|
2861
|
+
const classNames2 = useClassNames45({ component: "Switch", size, variant });
|
|
2797
2862
|
const props = {
|
|
2798
2863
|
isDisabled: disabled,
|
|
2799
2864
|
isReadOnly: readOnly,
|
|
2800
2865
|
isSelected: selected,
|
|
2801
2866
|
...rest
|
|
2802
2867
|
};
|
|
2803
|
-
return /* @__PURE__ */
|
|
2868
|
+
return /* @__PURE__ */ jsxs32(
|
|
2804
2869
|
Switch,
|
|
2805
2870
|
{
|
|
2806
2871
|
...props,
|
|
2807
2872
|
ref,
|
|
2808
|
-
className:
|
|
2873
|
+
className: cn44(
|
|
2809
2874
|
twWidth4[width],
|
|
2810
2875
|
"group/switch",
|
|
2811
2876
|
"flex items-center gap-[1ch]",
|
|
2812
2877
|
classNames2.container
|
|
2813
2878
|
),
|
|
2814
2879
|
children: [
|
|
2815
|
-
/* @__PURE__ */
|
|
2816
|
-
/* @__PURE__ */
|
|
2880
|
+
/* @__PURE__ */ jsx76(_Label, { elementType: "span", children }),
|
|
2881
|
+
/* @__PURE__ */ jsx76("div", { className: "relative", children: /* @__PURE__ */ jsx76(
|
|
2817
2882
|
"div",
|
|
2818
2883
|
{
|
|
2819
|
-
className:
|
|
2884
|
+
className: cn44(
|
|
2820
2885
|
"h-6 w-12 basis-12 rounded-3xl group-disabled/switch:cursor-not-allowed ",
|
|
2821
2886
|
classNames2.track
|
|
2822
2887
|
),
|
|
2823
|
-
children: /* @__PURE__ */
|
|
2888
|
+
children: /* @__PURE__ */ jsx76(
|
|
2824
2889
|
"div",
|
|
2825
2890
|
{
|
|
2826
|
-
className:
|
|
2891
|
+
className: cn44(
|
|
2827
2892
|
"h-[22px] w-[22px]",
|
|
2828
2893
|
"cubic-bezier(.7,0,.3,1)",
|
|
2829
2894
|
"absolute left-0 top-px",
|
|
@@ -2852,19 +2917,19 @@ import {
|
|
|
2852
2917
|
Row,
|
|
2853
2918
|
useTableState
|
|
2854
2919
|
} from "@react-stately/table";
|
|
2855
|
-
import { cn as
|
|
2920
|
+
import { cn as cn50, useClassNames as useClassNames47 } from "@marigold/system";
|
|
2856
2921
|
|
|
2857
2922
|
// src/Table/Context.tsx
|
|
2858
|
-
import { createContext as
|
|
2859
|
-
var TableContext =
|
|
2860
|
-
var useTableContext = () =>
|
|
2923
|
+
import { createContext as createContext8, useContext as useContext14 } from "react";
|
|
2924
|
+
var TableContext = createContext8({});
|
|
2925
|
+
var useTableContext = () => useContext14(TableContext);
|
|
2861
2926
|
|
|
2862
2927
|
// src/Table/TableBody.tsx
|
|
2863
2928
|
import { useTableRowGroup } from "@react-aria/table";
|
|
2864
|
-
import { jsx as
|
|
2929
|
+
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
2865
2930
|
var TableBody = ({ children }) => {
|
|
2866
2931
|
const { rowGroupProps } = useTableRowGroup();
|
|
2867
|
-
return /* @__PURE__ */
|
|
2932
|
+
return /* @__PURE__ */ jsx77("tbody", { ...rowGroupProps, children });
|
|
2868
2933
|
};
|
|
2869
2934
|
|
|
2870
2935
|
// src/Table/TableCell.tsx
|
|
@@ -2872,8 +2937,8 @@ import { useRef as useRef4 } from "react";
|
|
|
2872
2937
|
import { useFocusRing as useFocusRing2 } from "@react-aria/focus";
|
|
2873
2938
|
import { useTableCell } from "@react-aria/table";
|
|
2874
2939
|
import { mergeProps as mergeProps3 } from "@react-aria/utils";
|
|
2875
|
-
import { cn as
|
|
2876
|
-
import { jsx as
|
|
2940
|
+
import { cn as cn45, useStateProps as useStateProps2 } from "@marigold/system";
|
|
2941
|
+
import { jsx as jsx78 } from "react/jsx-runtime";
|
|
2877
2942
|
var TableCell = ({ cell, align = "left" }) => {
|
|
2878
2943
|
const ref = useRef4(null);
|
|
2879
2944
|
const { interactive, state, classNames: classNames2 } = useTableContext();
|
|
@@ -2896,11 +2961,11 @@ var TableCell = ({ cell, align = "left" }) => {
|
|
|
2896
2961
|
};
|
|
2897
2962
|
const { focusProps, isFocusVisible } = useFocusRing2();
|
|
2898
2963
|
const stateProps = useStateProps2({ disabled, focusVisible: isFocusVisible });
|
|
2899
|
-
return /* @__PURE__ */
|
|
2964
|
+
return /* @__PURE__ */ jsx78(
|
|
2900
2965
|
"td",
|
|
2901
2966
|
{
|
|
2902
2967
|
ref,
|
|
2903
|
-
className:
|
|
2968
|
+
className: cn45(classNames2 == null ? void 0 : classNames2.cell),
|
|
2904
2969
|
...mergeProps3(cellProps, focusProps),
|
|
2905
2970
|
...stateProps,
|
|
2906
2971
|
align,
|
|
@@ -2914,7 +2979,7 @@ import { useRef as useRef5 } from "react";
|
|
|
2914
2979
|
import { useFocusRing as useFocusRing3 } from "@react-aria/focus";
|
|
2915
2980
|
import { useTableCell as useTableCell2, useTableSelectionCheckbox } from "@react-aria/table";
|
|
2916
2981
|
import { mergeProps as mergeProps4 } from "@react-aria/utils";
|
|
2917
|
-
import { cn as
|
|
2982
|
+
import { cn as cn46, useStateProps as useStateProps3 } from "@marigold/system";
|
|
2918
2983
|
|
|
2919
2984
|
// src/Table/utils.ts
|
|
2920
2985
|
var mapCheckboxProps = ({
|
|
@@ -2937,7 +3002,7 @@ var mapCheckboxProps = ({
|
|
|
2937
3002
|
};
|
|
2938
3003
|
|
|
2939
3004
|
// src/Table/TableCheckboxCell.tsx
|
|
2940
|
-
import { jsx as
|
|
3005
|
+
import { jsx as jsx79 } from "react/jsx-runtime";
|
|
2941
3006
|
var TableCheckboxCell = ({ cell }) => {
|
|
2942
3007
|
const ref = useRef5(null);
|
|
2943
3008
|
const { state, classNames: classNames2 } = useTableContext();
|
|
@@ -2954,14 +3019,14 @@ var TableCheckboxCell = ({ cell }) => {
|
|
|
2954
3019
|
);
|
|
2955
3020
|
const { focusProps, isFocusVisible } = useFocusRing3();
|
|
2956
3021
|
const stateProps = useStateProps3({ disabled, focusVisible: isFocusVisible });
|
|
2957
|
-
return /* @__PURE__ */
|
|
3022
|
+
return /* @__PURE__ */ jsx79(
|
|
2958
3023
|
"td",
|
|
2959
3024
|
{
|
|
2960
3025
|
ref,
|
|
2961
|
-
className:
|
|
3026
|
+
className: cn46("text-center align-middle leading-none", classNames2 == null ? void 0 : classNames2.cell),
|
|
2962
3027
|
...mergeProps4(gridCellProps, focusProps),
|
|
2963
3028
|
...stateProps,
|
|
2964
|
-
children: /* @__PURE__ */
|
|
3029
|
+
children: /* @__PURE__ */ jsx79(_Checkbox, { ...checkboxProps })
|
|
2965
3030
|
}
|
|
2966
3031
|
);
|
|
2967
3032
|
};
|
|
@@ -2973,9 +3038,9 @@ import { useHover } from "@react-aria/interactions";
|
|
|
2973
3038
|
import { useTableColumnHeader } from "@react-aria/table";
|
|
2974
3039
|
import { mergeProps as mergeProps5 } from "@react-aria/utils";
|
|
2975
3040
|
import { SortDown, SortUp } from "@marigold/icons";
|
|
2976
|
-
import { cn as
|
|
3041
|
+
import { cn as cn47, useStateProps as useStateProps4 } from "@marigold/system";
|
|
2977
3042
|
import { width as twWidth5 } from "@marigold/system";
|
|
2978
|
-
import { jsx as
|
|
3043
|
+
import { jsx as jsx80, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
2979
3044
|
var TableColumnHeader = ({
|
|
2980
3045
|
column,
|
|
2981
3046
|
width = "auto",
|
|
@@ -2997,18 +3062,18 @@ var TableColumnHeader = ({
|
|
|
2997
3062
|
hover: isHovered,
|
|
2998
3063
|
focusVisible: isFocusVisible
|
|
2999
3064
|
});
|
|
3000
|
-
return /* @__PURE__ */
|
|
3065
|
+
return /* @__PURE__ */ jsxs33(
|
|
3001
3066
|
"th",
|
|
3002
3067
|
{
|
|
3003
3068
|
colSpan: column.colspan,
|
|
3004
3069
|
ref,
|
|
3005
|
-
className:
|
|
3070
|
+
className: cn47("cursor-default", twWidth5[width], classNames2 == null ? void 0 : classNames2.header),
|
|
3006
3071
|
...mergeProps5(columnHeaderProps, hoverProps, focusProps),
|
|
3007
3072
|
...stateProps,
|
|
3008
3073
|
align,
|
|
3009
3074
|
children: [
|
|
3010
3075
|
column.rendered,
|
|
3011
|
-
column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */
|
|
3076
|
+
column.props.allowsSorting && (((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? ((_b = state.sortDescriptor) == null ? void 0 : _b.direction) === "ascending" ? /* @__PURE__ */ jsx80(SortUp, { className: "inline-block" }) : /* @__PURE__ */ jsx80(SortDown, { className: "inline-block" }) : /* @__PURE__ */ jsx80(SortDown, { className: "inline-block" }))
|
|
3012
3077
|
]
|
|
3013
3078
|
}
|
|
3014
3079
|
);
|
|
@@ -3016,10 +3081,10 @@ var TableColumnHeader = ({
|
|
|
3016
3081
|
|
|
3017
3082
|
// src/Table/TableHeader.tsx
|
|
3018
3083
|
import { useTableRowGroup as useTableRowGroup2 } from "@react-aria/table";
|
|
3019
|
-
import { jsx as
|
|
3084
|
+
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
3020
3085
|
var TableHeader = ({ stickyHeader, children }) => {
|
|
3021
3086
|
const { rowGroupProps } = useTableRowGroup2();
|
|
3022
|
-
return /* @__PURE__ */
|
|
3087
|
+
return /* @__PURE__ */ jsx81(
|
|
3023
3088
|
"thead",
|
|
3024
3089
|
{
|
|
3025
3090
|
...rowGroupProps,
|
|
@@ -3032,12 +3097,12 @@ var TableHeader = ({ stickyHeader, children }) => {
|
|
|
3032
3097
|
// src/Table/TableHeaderRow.tsx
|
|
3033
3098
|
import { useRef as useRef7 } from "react";
|
|
3034
3099
|
import { useTableHeaderRow } from "@react-aria/table";
|
|
3035
|
-
import { jsx as
|
|
3100
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
3036
3101
|
var TableHeaderRow = ({ item, children }) => {
|
|
3037
3102
|
const { state } = useTableContext();
|
|
3038
3103
|
const ref = useRef7(null);
|
|
3039
3104
|
const { rowProps } = useTableHeaderRow({ node: item }, state, ref);
|
|
3040
|
-
return /* @__PURE__ */
|
|
3105
|
+
return /* @__PURE__ */ jsx82("tr", { ...rowProps, ref, children });
|
|
3041
3106
|
};
|
|
3042
3107
|
|
|
3043
3108
|
// src/Table/TableRow.tsx
|
|
@@ -3046,13 +3111,13 @@ import { useFocusRing as useFocusRing5 } from "@react-aria/focus";
|
|
|
3046
3111
|
import { useHover as useHover2 } from "@react-aria/interactions";
|
|
3047
3112
|
import { useTableRow } from "@react-aria/table";
|
|
3048
3113
|
import { mergeProps as mergeProps6 } from "@react-aria/utils";
|
|
3049
|
-
import { cn as
|
|
3050
|
-
import { jsx as
|
|
3114
|
+
import { cn as cn48, useClassNames as useClassNames46, useStateProps as useStateProps5 } from "@marigold/system";
|
|
3115
|
+
import { jsx as jsx83 } from "react/jsx-runtime";
|
|
3051
3116
|
var TableRow = ({ children, row }) => {
|
|
3052
3117
|
const ref = useRef8(null);
|
|
3053
3118
|
const { interactive, state, ...ctx } = useTableContext();
|
|
3054
3119
|
const { variant, size } = row.props;
|
|
3055
|
-
const classNames2 =
|
|
3120
|
+
const classNames2 = useClassNames46({
|
|
3056
3121
|
component: "Table",
|
|
3057
3122
|
variant: variant || ctx.variant,
|
|
3058
3123
|
size: size || ctx.size
|
|
@@ -3077,11 +3142,11 @@ var TableRow = ({ children, row }) => {
|
|
|
3077
3142
|
focusVisible: isFocusVisible,
|
|
3078
3143
|
active: isPressed
|
|
3079
3144
|
});
|
|
3080
|
-
return /* @__PURE__ */
|
|
3145
|
+
return /* @__PURE__ */ jsx83(
|
|
3081
3146
|
"tr",
|
|
3082
3147
|
{
|
|
3083
3148
|
ref,
|
|
3084
|
-
className:
|
|
3149
|
+
className: cn48(
|
|
3085
3150
|
[
|
|
3086
3151
|
!interactive ? "cursor-text" : disabled ? "cursor-default" : "cursor-pointer"
|
|
3087
3152
|
],
|
|
@@ -3104,11 +3169,11 @@ import {
|
|
|
3104
3169
|
} from "@react-aria/table";
|
|
3105
3170
|
import { mergeProps as mergeProps7 } from "@react-aria/utils";
|
|
3106
3171
|
import {
|
|
3107
|
-
cn as
|
|
3172
|
+
cn as cn49,
|
|
3108
3173
|
width as twWidth6,
|
|
3109
3174
|
useStateProps as useStateProps6
|
|
3110
3175
|
} from "@marigold/system";
|
|
3111
|
-
import { jsx as
|
|
3176
|
+
import { jsx as jsx84 } from "react/jsx-runtime";
|
|
3112
3177
|
var TableSelectAllCell = ({
|
|
3113
3178
|
column,
|
|
3114
3179
|
width = "auto",
|
|
@@ -3130,21 +3195,21 @@ var TableSelectAllCell = ({
|
|
|
3130
3195
|
hover: isHovered,
|
|
3131
3196
|
focusVisible: isFocusVisible
|
|
3132
3197
|
});
|
|
3133
|
-
return /* @__PURE__ */
|
|
3198
|
+
return /* @__PURE__ */ jsx84(
|
|
3134
3199
|
"th",
|
|
3135
3200
|
{
|
|
3136
3201
|
ref,
|
|
3137
|
-
className:
|
|
3202
|
+
className: cn49(twWidth6[width], [" leading-none"], classNames2 == null ? void 0 : classNames2.header),
|
|
3138
3203
|
...mergeProps7(columnHeaderProps, hoverProps, focusProps),
|
|
3139
3204
|
...stateProps,
|
|
3140
3205
|
align,
|
|
3141
|
-
children: /* @__PURE__ */
|
|
3206
|
+
children: /* @__PURE__ */ jsx84(_Checkbox, { ...checkboxProps })
|
|
3142
3207
|
}
|
|
3143
3208
|
);
|
|
3144
3209
|
};
|
|
3145
3210
|
|
|
3146
3211
|
// src/Table/Table.tsx
|
|
3147
|
-
import { jsx as
|
|
3212
|
+
import { jsx as jsx85, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
3148
3213
|
var Table = ({
|
|
3149
3214
|
variant,
|
|
3150
3215
|
size,
|
|
@@ -3162,21 +3227,21 @@ var Table = ({
|
|
|
3162
3227
|
props.selectionBehavior !== "replace"
|
|
3163
3228
|
});
|
|
3164
3229
|
const { gridProps } = useTable(props, state, tableRef);
|
|
3165
|
-
const classNames2 =
|
|
3230
|
+
const classNames2 = useClassNames47({
|
|
3166
3231
|
component: "Table",
|
|
3167
3232
|
variant,
|
|
3168
3233
|
size
|
|
3169
3234
|
});
|
|
3170
3235
|
const { collection } = state;
|
|
3171
|
-
return /* @__PURE__ */
|
|
3236
|
+
return /* @__PURE__ */ jsx85(
|
|
3172
3237
|
TableContext.Provider,
|
|
3173
3238
|
{
|
|
3174
3239
|
value: { state, interactive, classNames: classNames2, variant, size },
|
|
3175
|
-
children: /* @__PURE__ */
|
|
3240
|
+
children: /* @__PURE__ */ jsxs34(
|
|
3176
3241
|
"table",
|
|
3177
3242
|
{
|
|
3178
3243
|
ref: tableRef,
|
|
3179
|
-
className:
|
|
3244
|
+
className: cn50(
|
|
3180
3245
|
"group/table",
|
|
3181
3246
|
"border-collapse whitespace-nowrap",
|
|
3182
3247
|
stretch ? "table w-full" : "block",
|
|
@@ -3184,10 +3249,10 @@ var Table = ({
|
|
|
3184
3249
|
),
|
|
3185
3250
|
...gridProps,
|
|
3186
3251
|
children: [
|
|
3187
|
-
/* @__PURE__ */
|
|
3252
|
+
/* @__PURE__ */ jsx85(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx85(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
|
|
3188
3253
|
(column) => {
|
|
3189
3254
|
var _a, _b, _c, _d, _e;
|
|
3190
|
-
return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */
|
|
3255
|
+
return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx85(
|
|
3191
3256
|
TableSelectAllCell,
|
|
3192
3257
|
{
|
|
3193
3258
|
width: (_b = column.props) == null ? void 0 : _b.width,
|
|
@@ -3195,7 +3260,7 @@ var Table = ({
|
|
|
3195
3260
|
align: (_c = column.props) == null ? void 0 : _c.align
|
|
3196
3261
|
},
|
|
3197
3262
|
column.key
|
|
3198
|
-
) : /* @__PURE__ */
|
|
3263
|
+
) : /* @__PURE__ */ jsx85(
|
|
3199
3264
|
TableColumnHeader,
|
|
3200
3265
|
{
|
|
3201
3266
|
width: (_d = column.props) == null ? void 0 : _d.width,
|
|
@@ -3206,12 +3271,12 @@ var Table = ({
|
|
|
3206
3271
|
);
|
|
3207
3272
|
}
|
|
3208
3273
|
) }, headerRow.key)) }),
|
|
3209
|
-
/* @__PURE__ */
|
|
3274
|
+
/* @__PURE__ */ jsxs34(TableBody, { children: [
|
|
3210
3275
|
...collection.rows.map(
|
|
3211
|
-
(row) => row.type === "item" && /* @__PURE__ */
|
|
3276
|
+
(row) => row.type === "item" && /* @__PURE__ */ jsx85(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index) => {
|
|
3212
3277
|
var _a, _b;
|
|
3213
3278
|
const currentColumn = collection.columns[index];
|
|
3214
|
-
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */
|
|
3279
|
+
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx85(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ jsx85(
|
|
3215
3280
|
TableCell,
|
|
3216
3281
|
{
|
|
3217
3282
|
align: (_b = currentColumn.props) == null ? void 0 : _b.align,
|
|
@@ -3236,7 +3301,7 @@ Table.Row = Row;
|
|
|
3236
3301
|
|
|
3237
3302
|
// src/Text/Text.tsx
|
|
3238
3303
|
import {
|
|
3239
|
-
cn as
|
|
3304
|
+
cn as cn51,
|
|
3240
3305
|
createVar as createVar11,
|
|
3241
3306
|
cursorStyle,
|
|
3242
3307
|
fontWeight,
|
|
@@ -3244,10 +3309,10 @@ import {
|
|
|
3244
3309
|
textAlign as textAlign2,
|
|
3245
3310
|
textSize,
|
|
3246
3311
|
textStyle,
|
|
3247
|
-
useClassNames as
|
|
3312
|
+
useClassNames as useClassNames48,
|
|
3248
3313
|
useTheme as useTheme3
|
|
3249
3314
|
} from "@marigold/system";
|
|
3250
|
-
import { jsx as
|
|
3315
|
+
import { jsx as jsx86 } from "react/jsx-runtime";
|
|
3251
3316
|
var Text2 = ({
|
|
3252
3317
|
variant,
|
|
3253
3318
|
size,
|
|
@@ -3261,16 +3326,16 @@ var Text2 = ({
|
|
|
3261
3326
|
...props
|
|
3262
3327
|
}) => {
|
|
3263
3328
|
const theme = useTheme3();
|
|
3264
|
-
const classNames2 =
|
|
3329
|
+
const classNames2 = useClassNames48({
|
|
3265
3330
|
component: "Text",
|
|
3266
3331
|
variant,
|
|
3267
3332
|
size
|
|
3268
3333
|
});
|
|
3269
|
-
return /* @__PURE__ */
|
|
3334
|
+
return /* @__PURE__ */ jsx86(
|
|
3270
3335
|
"p",
|
|
3271
3336
|
{
|
|
3272
3337
|
...props,
|
|
3273
|
-
className:
|
|
3338
|
+
className: cn51(
|
|
3274
3339
|
"text-[--color] outline-[--outline]",
|
|
3275
3340
|
classNames2,
|
|
3276
3341
|
fontStyle && textStyle[fontStyle],
|
|
@@ -3293,11 +3358,11 @@ var Text2 = ({
|
|
|
3293
3358
|
};
|
|
3294
3359
|
|
|
3295
3360
|
// src/TextArea/TextArea.tsx
|
|
3296
|
-
import { forwardRef as
|
|
3361
|
+
import { forwardRef as forwardRef24 } from "react";
|
|
3297
3362
|
import { TextArea, TextField } from "react-aria-components";
|
|
3298
|
-
import { useClassNames as
|
|
3299
|
-
import { jsx as
|
|
3300
|
-
var _TextArea =
|
|
3363
|
+
import { useClassNames as useClassNames49 } from "@marigold/system";
|
|
3364
|
+
import { jsx as jsx87 } from "react/jsx-runtime";
|
|
3365
|
+
var _TextArea = forwardRef24(
|
|
3301
3366
|
({
|
|
3302
3367
|
variant,
|
|
3303
3368
|
size,
|
|
@@ -3308,7 +3373,7 @@ var _TextArea = forwardRef22(
|
|
|
3308
3373
|
rows,
|
|
3309
3374
|
...rest
|
|
3310
3375
|
}, ref) => {
|
|
3311
|
-
const classNames2 =
|
|
3376
|
+
const classNames2 = useClassNames49({ component: "TextArea", variant, size });
|
|
3312
3377
|
const props = {
|
|
3313
3378
|
isDisabled: disabled,
|
|
3314
3379
|
isReadOnly: readOnly,
|
|
@@ -3316,15 +3381,15 @@ var _TextArea = forwardRef22(
|
|
|
3316
3381
|
isRequired: required,
|
|
3317
3382
|
...rest
|
|
3318
3383
|
};
|
|
3319
|
-
return /* @__PURE__ */
|
|
3384
|
+
return /* @__PURE__ */ jsx87(FieldBase, { as: TextField, ...props, variant, size, children: /* @__PURE__ */ jsx87(TextArea, { className: classNames2, ref, rows }) });
|
|
3320
3385
|
}
|
|
3321
3386
|
);
|
|
3322
3387
|
|
|
3323
3388
|
// src/TextField/TextField.tsx
|
|
3324
|
-
import { forwardRef as
|
|
3389
|
+
import { forwardRef as forwardRef25 } from "react";
|
|
3325
3390
|
import { TextField as TextField2 } from "react-aria-components";
|
|
3326
|
-
import { jsx as
|
|
3327
|
-
var _TextField =
|
|
3391
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
3392
|
+
var _TextField = forwardRef25(
|
|
3328
3393
|
({
|
|
3329
3394
|
variant,
|
|
3330
3395
|
size,
|
|
@@ -3341,13 +3406,13 @@ var _TextField = forwardRef23(
|
|
|
3341
3406
|
isRequired: required,
|
|
3342
3407
|
...rest
|
|
3343
3408
|
};
|
|
3344
|
-
return /* @__PURE__ */
|
|
3409
|
+
return /* @__PURE__ */ jsx88(FieldBase, { as: TextField2, ...props, children: /* @__PURE__ */ jsx88(_Input, { ref }) });
|
|
3345
3410
|
}
|
|
3346
3411
|
);
|
|
3347
3412
|
|
|
3348
3413
|
// src/Tiles/Tiles.tsx
|
|
3349
|
-
import { cn as
|
|
3350
|
-
import { jsx as
|
|
3414
|
+
import { cn as cn52, createVar as createVar12, gapSpace as gapSpace7 } from "@marigold/system";
|
|
3415
|
+
import { jsx as jsx89 } from "react/jsx-runtime";
|
|
3351
3416
|
var Tiles = ({
|
|
3352
3417
|
space = 0,
|
|
3353
3418
|
stretch = false,
|
|
@@ -3360,11 +3425,11 @@ var Tiles = ({
|
|
|
3360
3425
|
if (stretch) {
|
|
3361
3426
|
column = `minmax(${column}, 1fr)`;
|
|
3362
3427
|
}
|
|
3363
|
-
return /* @__PURE__ */
|
|
3428
|
+
return /* @__PURE__ */ jsx89(
|
|
3364
3429
|
"div",
|
|
3365
3430
|
{
|
|
3366
3431
|
...props,
|
|
3367
|
-
className:
|
|
3432
|
+
className: cn52(
|
|
3368
3433
|
"grid",
|
|
3369
3434
|
gapSpace7[space],
|
|
3370
3435
|
"grid-cols-[repeat(auto-fit,var(--column))]",
|
|
@@ -3378,11 +3443,11 @@ var Tiles = ({
|
|
|
3378
3443
|
|
|
3379
3444
|
// src/Tooltip/Tooltip.tsx
|
|
3380
3445
|
import { OverlayArrow, Tooltip } from "react-aria-components";
|
|
3381
|
-
import { cn as
|
|
3446
|
+
import { cn as cn53, useClassNames as useClassNames50 } from "@marigold/system";
|
|
3382
3447
|
|
|
3383
3448
|
// src/Tooltip/TooltipTrigger.tsx
|
|
3384
3449
|
import { TooltipTrigger } from "react-aria-components";
|
|
3385
|
-
import { jsx as
|
|
3450
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
3386
3451
|
var _TooltipTrigger = ({
|
|
3387
3452
|
delay = 1e3,
|
|
3388
3453
|
children,
|
|
@@ -3396,26 +3461,26 @@ var _TooltipTrigger = ({
|
|
|
3396
3461
|
isOpen: open,
|
|
3397
3462
|
delay
|
|
3398
3463
|
};
|
|
3399
|
-
return /* @__PURE__ */
|
|
3464
|
+
return /* @__PURE__ */ jsx90(TooltipTrigger, { ...props, children });
|
|
3400
3465
|
};
|
|
3401
3466
|
|
|
3402
3467
|
// src/Tooltip/Tooltip.tsx
|
|
3403
|
-
import { jsx as
|
|
3468
|
+
import { jsx as jsx91, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
3404
3469
|
var _Tooltip = ({ children, variant, size, open, ...rest }) => {
|
|
3405
3470
|
const props = {
|
|
3406
3471
|
...rest,
|
|
3407
3472
|
isOpen: open
|
|
3408
3473
|
};
|
|
3409
|
-
const classNames2 =
|
|
3474
|
+
const classNames2 = useClassNames50({ component: "Tooltip", variant, size });
|
|
3410
3475
|
const portal = usePortalContainer();
|
|
3411
|
-
return /* @__PURE__ */
|
|
3476
|
+
return /* @__PURE__ */ jsxs35(
|
|
3412
3477
|
Tooltip,
|
|
3413
3478
|
{
|
|
3414
3479
|
...props,
|
|
3415
|
-
className:
|
|
3480
|
+
className: cn53("group/tooltip", classNames2.container),
|
|
3416
3481
|
UNSTABLE_portalContainer: portal,
|
|
3417
3482
|
children: [
|
|
3418
|
-
/* @__PURE__ */
|
|
3483
|
+
/* @__PURE__ */ jsx91(OverlayArrow, { className: classNames2.arrow, children: /* @__PURE__ */ jsx91("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ jsx91("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
3419
3484
|
children
|
|
3420
3485
|
]
|
|
3421
3486
|
}
|
|
@@ -3427,10 +3492,10 @@ _Tooltip.Trigger = _TooltipTrigger;
|
|
|
3427
3492
|
import { VisuallyHidden } from "@react-aria/visually-hidden";
|
|
3428
3493
|
|
|
3429
3494
|
// src/XLoader/XLoader.tsx
|
|
3430
|
-
import { forwardRef as
|
|
3495
|
+
import { forwardRef as forwardRef26 } from "react";
|
|
3431
3496
|
import { SVG as SVG5 } from "@marigold/system";
|
|
3432
|
-
import { jsx as
|
|
3433
|
-
var XLoader =
|
|
3497
|
+
import { jsx as jsx92, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
3498
|
+
var XLoader = forwardRef26((props, ref) => /* @__PURE__ */ jsxs36(
|
|
3434
3499
|
SVG5,
|
|
3435
3500
|
{
|
|
3436
3501
|
id: "XLoader",
|
|
@@ -3440,13 +3505,13 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3440
3505
|
...props,
|
|
3441
3506
|
...ref,
|
|
3442
3507
|
children: [
|
|
3443
|
-
/* @__PURE__ */
|
|
3444
|
-
/* @__PURE__ */
|
|
3508
|
+
/* @__PURE__ */ jsx92("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
|
|
3509
|
+
/* @__PURE__ */ jsx92(
|
|
3445
3510
|
"path",
|
|
3446
3511
|
{
|
|
3447
3512
|
id: "XMLID_5_",
|
|
3448
3513
|
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",
|
|
3449
|
-
children: /* @__PURE__ */
|
|
3514
|
+
children: /* @__PURE__ */ jsx92(
|
|
3450
3515
|
"animate",
|
|
3451
3516
|
{
|
|
3452
3517
|
attributeName: "opacity",
|
|
@@ -3459,12 +3524,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3459
3524
|
)
|
|
3460
3525
|
}
|
|
3461
3526
|
),
|
|
3462
|
-
/* @__PURE__ */
|
|
3527
|
+
/* @__PURE__ */ jsx92(
|
|
3463
3528
|
"path",
|
|
3464
3529
|
{
|
|
3465
3530
|
id: "XMLID_18_",
|
|
3466
3531
|
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",
|
|
3467
|
-
children: /* @__PURE__ */
|
|
3532
|
+
children: /* @__PURE__ */ jsx92(
|
|
3468
3533
|
"animate",
|
|
3469
3534
|
{
|
|
3470
3535
|
attributeName: "opacity",
|
|
@@ -3477,12 +3542,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3477
3542
|
)
|
|
3478
3543
|
}
|
|
3479
3544
|
),
|
|
3480
|
-
/* @__PURE__ */
|
|
3545
|
+
/* @__PURE__ */ jsx92(
|
|
3481
3546
|
"path",
|
|
3482
3547
|
{
|
|
3483
3548
|
id: "XMLID_19_",
|
|
3484
3549
|
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",
|
|
3485
|
-
children: /* @__PURE__ */
|
|
3550
|
+
children: /* @__PURE__ */ jsx92(
|
|
3486
3551
|
"animate",
|
|
3487
3552
|
{
|
|
3488
3553
|
attributeName: "opacity",
|
|
@@ -3495,12 +3560,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3495
3560
|
)
|
|
3496
3561
|
}
|
|
3497
3562
|
),
|
|
3498
|
-
/* @__PURE__ */
|
|
3563
|
+
/* @__PURE__ */ jsx92(
|
|
3499
3564
|
"path",
|
|
3500
3565
|
{
|
|
3501
3566
|
id: "XMLID_20_",
|
|
3502
3567
|
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",
|
|
3503
|
-
children: /* @__PURE__ */
|
|
3568
|
+
children: /* @__PURE__ */ jsx92(
|
|
3504
3569
|
"animate",
|
|
3505
3570
|
{
|
|
3506
3571
|
attributeName: "opacity",
|
|
@@ -3513,12 +3578,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3513
3578
|
)
|
|
3514
3579
|
}
|
|
3515
3580
|
),
|
|
3516
|
-
/* @__PURE__ */
|
|
3581
|
+
/* @__PURE__ */ jsx92(
|
|
3517
3582
|
"path",
|
|
3518
3583
|
{
|
|
3519
3584
|
id: "XMLID_21_",
|
|
3520
3585
|
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",
|
|
3521
|
-
children: /* @__PURE__ */
|
|
3586
|
+
children: /* @__PURE__ */ jsx92(
|
|
3522
3587
|
"animate",
|
|
3523
3588
|
{
|
|
3524
3589
|
attributeName: "opacity",
|
|
@@ -3531,12 +3596,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3531
3596
|
)
|
|
3532
3597
|
}
|
|
3533
3598
|
),
|
|
3534
|
-
/* @__PURE__ */
|
|
3599
|
+
/* @__PURE__ */ jsx92(
|
|
3535
3600
|
"path",
|
|
3536
3601
|
{
|
|
3537
3602
|
id: "XMLID_22_",
|
|
3538
3603
|
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",
|
|
3539
|
-
children: /* @__PURE__ */
|
|
3604
|
+
children: /* @__PURE__ */ jsx92(
|
|
3540
3605
|
"animate",
|
|
3541
3606
|
{
|
|
3542
3607
|
attributeName: "opacity",
|
|
@@ -3549,12 +3614,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3549
3614
|
)
|
|
3550
3615
|
}
|
|
3551
3616
|
),
|
|
3552
|
-
/* @__PURE__ */
|
|
3617
|
+
/* @__PURE__ */ jsx92(
|
|
3553
3618
|
"path",
|
|
3554
3619
|
{
|
|
3555
3620
|
id: "XMLID_23_",
|
|
3556
3621
|
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",
|
|
3557
|
-
children: /* @__PURE__ */
|
|
3622
|
+
children: /* @__PURE__ */ jsx92(
|
|
3558
3623
|
"animate",
|
|
3559
3624
|
{
|
|
3560
3625
|
attributeName: "opacity",
|
|
@@ -3567,12 +3632,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3567
3632
|
)
|
|
3568
3633
|
}
|
|
3569
3634
|
),
|
|
3570
|
-
/* @__PURE__ */
|
|
3635
|
+
/* @__PURE__ */ jsx92(
|
|
3571
3636
|
"path",
|
|
3572
3637
|
{
|
|
3573
3638
|
id: "XMLID_24_",
|
|
3574
3639
|
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",
|
|
3575
|
-
children: /* @__PURE__ */
|
|
3640
|
+
children: /* @__PURE__ */ jsx92(
|
|
3576
3641
|
"animate",
|
|
3577
3642
|
{
|
|
3578
3643
|
attributeName: "opacity",
|
|
@@ -3585,12 +3650,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3585
3650
|
)
|
|
3586
3651
|
}
|
|
3587
3652
|
),
|
|
3588
|
-
/* @__PURE__ */
|
|
3653
|
+
/* @__PURE__ */ jsx92(
|
|
3589
3654
|
"path",
|
|
3590
3655
|
{
|
|
3591
3656
|
id: "XMLID_25_",
|
|
3592
3657
|
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",
|
|
3593
|
-
children: /* @__PURE__ */
|
|
3658
|
+
children: /* @__PURE__ */ jsx92(
|
|
3594
3659
|
"animate",
|
|
3595
3660
|
{
|
|
3596
3661
|
attributeName: "opacity",
|
|
@@ -3603,12 +3668,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3603
3668
|
)
|
|
3604
3669
|
}
|
|
3605
3670
|
),
|
|
3606
|
-
/* @__PURE__ */
|
|
3671
|
+
/* @__PURE__ */ jsx92(
|
|
3607
3672
|
"path",
|
|
3608
3673
|
{
|
|
3609
3674
|
id: "XMLID_26_",
|
|
3610
3675
|
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",
|
|
3611
|
-
children: /* @__PURE__ */
|
|
3676
|
+
children: /* @__PURE__ */ jsx92(
|
|
3612
3677
|
"animate",
|
|
3613
3678
|
{
|
|
3614
3679
|
attributeName: "opacity",
|
|
@@ -3621,12 +3686,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3621
3686
|
)
|
|
3622
3687
|
}
|
|
3623
3688
|
),
|
|
3624
|
-
/* @__PURE__ */
|
|
3689
|
+
/* @__PURE__ */ jsx92(
|
|
3625
3690
|
"path",
|
|
3626
3691
|
{
|
|
3627
3692
|
id: "XMLID_27_",
|
|
3628
3693
|
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",
|
|
3629
|
-
children: /* @__PURE__ */
|
|
3694
|
+
children: /* @__PURE__ */ jsx92(
|
|
3630
3695
|
"animate",
|
|
3631
3696
|
{
|
|
3632
3697
|
attributeName: "opacity",
|
|
@@ -3645,24 +3710,24 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3645
3710
|
|
|
3646
3711
|
// src/Tabs/Tabs.tsx
|
|
3647
3712
|
import { Tabs } from "react-aria-components";
|
|
3648
|
-
import { useClassNames as
|
|
3713
|
+
import { useClassNames as useClassNames51 } from "@marigold/system";
|
|
3649
3714
|
|
|
3650
3715
|
// src/Tabs/Context.ts
|
|
3651
|
-
import { createContext as
|
|
3652
|
-
var TabContext =
|
|
3653
|
-
var useTabContext = () =>
|
|
3716
|
+
import { createContext as createContext9, useContext as useContext15 } from "react";
|
|
3717
|
+
var TabContext = createContext9({});
|
|
3718
|
+
var useTabContext = () => useContext15(TabContext);
|
|
3654
3719
|
|
|
3655
3720
|
// src/Tabs/Tab.tsx
|
|
3656
3721
|
import { Tab } from "react-aria-components";
|
|
3657
|
-
import { cn as
|
|
3658
|
-
import { jsx as
|
|
3722
|
+
import { cn as cn54 } from "@marigold/system";
|
|
3723
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
3659
3724
|
var _Tab = (props) => {
|
|
3660
3725
|
const { classNames: classNames2 } = useTabContext();
|
|
3661
|
-
return /* @__PURE__ */
|
|
3726
|
+
return /* @__PURE__ */ jsx93(
|
|
3662
3727
|
Tab,
|
|
3663
3728
|
{
|
|
3664
3729
|
...props,
|
|
3665
|
-
className:
|
|
3730
|
+
className: cn54(
|
|
3666
3731
|
"flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
|
|
3667
3732
|
classNames2.tab
|
|
3668
3733
|
),
|
|
@@ -3673,15 +3738,15 @@ var _Tab = (props) => {
|
|
|
3673
3738
|
|
|
3674
3739
|
// src/Tabs/TabList.tsx
|
|
3675
3740
|
import { TabList } from "react-aria-components";
|
|
3676
|
-
import { cn as
|
|
3677
|
-
import { jsx as
|
|
3741
|
+
import { cn as cn55, gapSpace as gapSpace8 } from "@marigold/system";
|
|
3742
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
|
3678
3743
|
var _TabList = ({ space = 2, ...props }) => {
|
|
3679
3744
|
const { classNames: classNames2 } = useTabContext();
|
|
3680
|
-
return /* @__PURE__ */
|
|
3745
|
+
return /* @__PURE__ */ jsx94(
|
|
3681
3746
|
TabList,
|
|
3682
3747
|
{
|
|
3683
3748
|
...props,
|
|
3684
|
-
className:
|
|
3749
|
+
className: cn55("flex", gapSpace8[space], classNames2.tabsList),
|
|
3685
3750
|
children: props.children
|
|
3686
3751
|
}
|
|
3687
3752
|
);
|
|
@@ -3689,25 +3754,25 @@ var _TabList = ({ space = 2, ...props }) => {
|
|
|
3689
3754
|
|
|
3690
3755
|
// src/Tabs/TabPanel.tsx
|
|
3691
3756
|
import { TabPanel } from "react-aria-components";
|
|
3692
|
-
import { jsx as
|
|
3757
|
+
import { jsx as jsx95 } from "react/jsx-runtime";
|
|
3693
3758
|
var _TabPanel = (props) => {
|
|
3694
3759
|
const { classNames: classNames2 } = useTabContext();
|
|
3695
|
-
return /* @__PURE__ */
|
|
3760
|
+
return /* @__PURE__ */ jsx95(TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
|
|
3696
3761
|
};
|
|
3697
3762
|
|
|
3698
3763
|
// src/Tabs/Tabs.tsx
|
|
3699
|
-
import { jsx as
|
|
3764
|
+
import { jsx as jsx96 } from "react/jsx-runtime";
|
|
3700
3765
|
var _Tabs = ({ disabled, variant, size = "medium", ...rest }) => {
|
|
3701
3766
|
const props = {
|
|
3702
3767
|
isDisabled: disabled,
|
|
3703
3768
|
...rest
|
|
3704
3769
|
};
|
|
3705
|
-
const classNames2 =
|
|
3770
|
+
const classNames2 = useClassNames51({
|
|
3706
3771
|
component: "Tabs",
|
|
3707
3772
|
size,
|
|
3708
3773
|
variant
|
|
3709
3774
|
});
|
|
3710
|
-
return /* @__PURE__ */
|
|
3775
|
+
return /* @__PURE__ */ jsx96(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx96(Tabs, { ...props, className: classNames2.container, children: props.children }) });
|
|
3711
3776
|
};
|
|
3712
3777
|
_Tabs.List = _TabList;
|
|
3713
3778
|
_Tabs.TabPanel = _TabPanel;
|
|
@@ -3768,6 +3833,7 @@ export {
|
|
|
3768
3833
|
Scrollable,
|
|
3769
3834
|
_SearchField as SearchField,
|
|
3770
3835
|
_Select as Select,
|
|
3836
|
+
_SelectList as SelectList,
|
|
3771
3837
|
_Slider as Slider,
|
|
3772
3838
|
Split,
|
|
3773
3839
|
Stack,
|