@marigold/components 7.5.4 → 7.7.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 +27 -12
- package/dist/index.d.ts +27 -12
- package/dist/index.js +276 -207
- package/dist/index.mjs +224 -154
- package/package.json +6 -6
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,26 +3195,27 @@ 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,
|
|
3151
3216
|
stretch,
|
|
3152
3217
|
selectionMode = "none",
|
|
3218
|
+
disableKeyboardNavigation = false,
|
|
3153
3219
|
stickyHeader,
|
|
3154
3220
|
...props
|
|
3155
3221
|
}) => {
|
|
@@ -3161,22 +3227,25 @@ var Table = ({
|
|
|
3161
3227
|
showSelectionCheckboxes: selectionMode === "multiple" && // TODO: It this necessary?
|
|
3162
3228
|
props.selectionBehavior !== "replace"
|
|
3163
3229
|
});
|
|
3230
|
+
if (disableKeyboardNavigation !== void 0) {
|
|
3231
|
+
state.isKeyboardNavigationDisabled = disableKeyboardNavigation;
|
|
3232
|
+
}
|
|
3164
3233
|
const { gridProps } = useTable(props, state, tableRef);
|
|
3165
|
-
const classNames2 =
|
|
3234
|
+
const classNames2 = useClassNames47({
|
|
3166
3235
|
component: "Table",
|
|
3167
3236
|
variant,
|
|
3168
3237
|
size
|
|
3169
3238
|
});
|
|
3170
3239
|
const { collection } = state;
|
|
3171
|
-
return /* @__PURE__ */
|
|
3240
|
+
return /* @__PURE__ */ jsx85(
|
|
3172
3241
|
TableContext.Provider,
|
|
3173
3242
|
{
|
|
3174
3243
|
value: { state, interactive, classNames: classNames2, variant, size },
|
|
3175
|
-
children: /* @__PURE__ */
|
|
3244
|
+
children: /* @__PURE__ */ jsxs34(
|
|
3176
3245
|
"table",
|
|
3177
3246
|
{
|
|
3178
3247
|
ref: tableRef,
|
|
3179
|
-
className:
|
|
3248
|
+
className: cn50(
|
|
3180
3249
|
"group/table",
|
|
3181
3250
|
"border-collapse whitespace-nowrap",
|
|
3182
3251
|
stretch ? "table w-full" : "block",
|
|
@@ -3184,10 +3253,10 @@ var Table = ({
|
|
|
3184
3253
|
),
|
|
3185
3254
|
...gridProps,
|
|
3186
3255
|
children: [
|
|
3187
|
-
/* @__PURE__ */
|
|
3256
|
+
/* @__PURE__ */ jsx85(TableHeader, { stickyHeader, children: collection.headerRows.map((headerRow) => /* @__PURE__ */ jsx85(TableHeaderRow, { item: headerRow, children: [...collection.getChildren(headerRow.key)].map(
|
|
3188
3257
|
(column) => {
|
|
3189
3258
|
var _a, _b, _c, _d, _e;
|
|
3190
|
-
return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */
|
|
3259
|
+
return ((_a = column.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx85(
|
|
3191
3260
|
TableSelectAllCell,
|
|
3192
3261
|
{
|
|
3193
3262
|
width: (_b = column.props) == null ? void 0 : _b.width,
|
|
@@ -3195,7 +3264,7 @@ var Table = ({
|
|
|
3195
3264
|
align: (_c = column.props) == null ? void 0 : _c.align
|
|
3196
3265
|
},
|
|
3197
3266
|
column.key
|
|
3198
|
-
) : /* @__PURE__ */
|
|
3267
|
+
) : /* @__PURE__ */ jsx85(
|
|
3199
3268
|
TableColumnHeader,
|
|
3200
3269
|
{
|
|
3201
3270
|
width: (_d = column.props) == null ? void 0 : _d.width,
|
|
@@ -3206,12 +3275,12 @@ var Table = ({
|
|
|
3206
3275
|
);
|
|
3207
3276
|
}
|
|
3208
3277
|
) }, headerRow.key)) }),
|
|
3209
|
-
/* @__PURE__ */
|
|
3278
|
+
/* @__PURE__ */ jsxs34(TableBody, { children: [
|
|
3210
3279
|
...collection.rows.map(
|
|
3211
|
-
(row) => row.type === "item" && /* @__PURE__ */
|
|
3280
|
+
(row) => row.type === "item" && /* @__PURE__ */ jsx85(TableRow, { row, children: [...collection.getChildren(row.key)].map((cell, index) => {
|
|
3212
3281
|
var _a, _b;
|
|
3213
3282
|
const currentColumn = collection.columns[index];
|
|
3214
|
-
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */
|
|
3283
|
+
return ((_a = cell.props) == null ? void 0 : _a.isSelectionCell) ? /* @__PURE__ */ jsx85(TableCheckboxCell, { cell }, cell.key) : /* @__PURE__ */ jsx85(
|
|
3215
3284
|
TableCell,
|
|
3216
3285
|
{
|
|
3217
3286
|
align: (_b = currentColumn.props) == null ? void 0 : _b.align,
|
|
@@ -3236,7 +3305,7 @@ Table.Row = Row;
|
|
|
3236
3305
|
|
|
3237
3306
|
// src/Text/Text.tsx
|
|
3238
3307
|
import {
|
|
3239
|
-
cn as
|
|
3308
|
+
cn as cn51,
|
|
3240
3309
|
createVar as createVar11,
|
|
3241
3310
|
cursorStyle,
|
|
3242
3311
|
fontWeight,
|
|
@@ -3244,10 +3313,10 @@ import {
|
|
|
3244
3313
|
textAlign as textAlign2,
|
|
3245
3314
|
textSize,
|
|
3246
3315
|
textStyle,
|
|
3247
|
-
useClassNames as
|
|
3316
|
+
useClassNames as useClassNames48,
|
|
3248
3317
|
useTheme as useTheme3
|
|
3249
3318
|
} from "@marigold/system";
|
|
3250
|
-
import { jsx as
|
|
3319
|
+
import { jsx as jsx86 } from "react/jsx-runtime";
|
|
3251
3320
|
var Text2 = ({
|
|
3252
3321
|
variant,
|
|
3253
3322
|
size,
|
|
@@ -3261,16 +3330,16 @@ var Text2 = ({
|
|
|
3261
3330
|
...props
|
|
3262
3331
|
}) => {
|
|
3263
3332
|
const theme = useTheme3();
|
|
3264
|
-
const classNames2 =
|
|
3333
|
+
const classNames2 = useClassNames48({
|
|
3265
3334
|
component: "Text",
|
|
3266
3335
|
variant,
|
|
3267
3336
|
size
|
|
3268
3337
|
});
|
|
3269
|
-
return /* @__PURE__ */
|
|
3338
|
+
return /* @__PURE__ */ jsx86(
|
|
3270
3339
|
"p",
|
|
3271
3340
|
{
|
|
3272
3341
|
...props,
|
|
3273
|
-
className:
|
|
3342
|
+
className: cn51(
|
|
3274
3343
|
"text-[--color] outline-[--outline]",
|
|
3275
3344
|
classNames2,
|
|
3276
3345
|
fontStyle && textStyle[fontStyle],
|
|
@@ -3293,11 +3362,11 @@ var Text2 = ({
|
|
|
3293
3362
|
};
|
|
3294
3363
|
|
|
3295
3364
|
// src/TextArea/TextArea.tsx
|
|
3296
|
-
import { forwardRef as
|
|
3365
|
+
import { forwardRef as forwardRef24 } from "react";
|
|
3297
3366
|
import { TextArea, TextField } from "react-aria-components";
|
|
3298
|
-
import { useClassNames as
|
|
3299
|
-
import { jsx as
|
|
3300
|
-
var _TextArea =
|
|
3367
|
+
import { useClassNames as useClassNames49 } from "@marigold/system";
|
|
3368
|
+
import { jsx as jsx87 } from "react/jsx-runtime";
|
|
3369
|
+
var _TextArea = forwardRef24(
|
|
3301
3370
|
({
|
|
3302
3371
|
variant,
|
|
3303
3372
|
size,
|
|
@@ -3308,7 +3377,7 @@ var _TextArea = forwardRef22(
|
|
|
3308
3377
|
rows,
|
|
3309
3378
|
...rest
|
|
3310
3379
|
}, ref) => {
|
|
3311
|
-
const classNames2 =
|
|
3380
|
+
const classNames2 = useClassNames49({ component: "TextArea", variant, size });
|
|
3312
3381
|
const props = {
|
|
3313
3382
|
isDisabled: disabled,
|
|
3314
3383
|
isReadOnly: readOnly,
|
|
@@ -3316,15 +3385,15 @@ var _TextArea = forwardRef22(
|
|
|
3316
3385
|
isRequired: required,
|
|
3317
3386
|
...rest
|
|
3318
3387
|
};
|
|
3319
|
-
return /* @__PURE__ */
|
|
3388
|
+
return /* @__PURE__ */ jsx87(FieldBase, { as: TextField, ...props, variant, size, children: /* @__PURE__ */ jsx87(TextArea, { className: classNames2, ref, rows }) });
|
|
3320
3389
|
}
|
|
3321
3390
|
);
|
|
3322
3391
|
|
|
3323
3392
|
// src/TextField/TextField.tsx
|
|
3324
|
-
import { forwardRef as
|
|
3393
|
+
import { forwardRef as forwardRef25 } from "react";
|
|
3325
3394
|
import { TextField as TextField2 } from "react-aria-components";
|
|
3326
|
-
import { jsx as
|
|
3327
|
-
var _TextField =
|
|
3395
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
3396
|
+
var _TextField = forwardRef25(
|
|
3328
3397
|
({
|
|
3329
3398
|
variant,
|
|
3330
3399
|
size,
|
|
@@ -3341,13 +3410,13 @@ var _TextField = forwardRef23(
|
|
|
3341
3410
|
isRequired: required,
|
|
3342
3411
|
...rest
|
|
3343
3412
|
};
|
|
3344
|
-
return /* @__PURE__ */
|
|
3413
|
+
return /* @__PURE__ */ jsx88(FieldBase, { as: TextField2, ...props, children: /* @__PURE__ */ jsx88(_Input, { ref }) });
|
|
3345
3414
|
}
|
|
3346
3415
|
);
|
|
3347
3416
|
|
|
3348
3417
|
// src/Tiles/Tiles.tsx
|
|
3349
|
-
import { cn as
|
|
3350
|
-
import { jsx as
|
|
3418
|
+
import { cn as cn52, createVar as createVar12, gapSpace as gapSpace7 } from "@marigold/system";
|
|
3419
|
+
import { jsx as jsx89 } from "react/jsx-runtime";
|
|
3351
3420
|
var Tiles = ({
|
|
3352
3421
|
space = 0,
|
|
3353
3422
|
stretch = false,
|
|
@@ -3360,11 +3429,11 @@ var Tiles = ({
|
|
|
3360
3429
|
if (stretch) {
|
|
3361
3430
|
column = `minmax(${column}, 1fr)`;
|
|
3362
3431
|
}
|
|
3363
|
-
return /* @__PURE__ */
|
|
3432
|
+
return /* @__PURE__ */ jsx89(
|
|
3364
3433
|
"div",
|
|
3365
3434
|
{
|
|
3366
3435
|
...props,
|
|
3367
|
-
className:
|
|
3436
|
+
className: cn52(
|
|
3368
3437
|
"grid",
|
|
3369
3438
|
gapSpace7[space],
|
|
3370
3439
|
"grid-cols-[repeat(auto-fit,var(--column))]",
|
|
@@ -3378,11 +3447,11 @@ var Tiles = ({
|
|
|
3378
3447
|
|
|
3379
3448
|
// src/Tooltip/Tooltip.tsx
|
|
3380
3449
|
import { OverlayArrow, Tooltip } from "react-aria-components";
|
|
3381
|
-
import { cn as
|
|
3450
|
+
import { cn as cn53, useClassNames as useClassNames50 } from "@marigold/system";
|
|
3382
3451
|
|
|
3383
3452
|
// src/Tooltip/TooltipTrigger.tsx
|
|
3384
3453
|
import { TooltipTrigger } from "react-aria-components";
|
|
3385
|
-
import { jsx as
|
|
3454
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
3386
3455
|
var _TooltipTrigger = ({
|
|
3387
3456
|
delay = 1e3,
|
|
3388
3457
|
children,
|
|
@@ -3396,26 +3465,26 @@ var _TooltipTrigger = ({
|
|
|
3396
3465
|
isOpen: open,
|
|
3397
3466
|
delay
|
|
3398
3467
|
};
|
|
3399
|
-
return /* @__PURE__ */
|
|
3468
|
+
return /* @__PURE__ */ jsx90(TooltipTrigger, { ...props, children });
|
|
3400
3469
|
};
|
|
3401
3470
|
|
|
3402
3471
|
// src/Tooltip/Tooltip.tsx
|
|
3403
|
-
import { jsx as
|
|
3472
|
+
import { jsx as jsx91, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
3404
3473
|
var _Tooltip = ({ children, variant, size, open, ...rest }) => {
|
|
3405
3474
|
const props = {
|
|
3406
3475
|
...rest,
|
|
3407
3476
|
isOpen: open
|
|
3408
3477
|
};
|
|
3409
|
-
const classNames2 =
|
|
3478
|
+
const classNames2 = useClassNames50({ component: "Tooltip", variant, size });
|
|
3410
3479
|
const portal = usePortalContainer();
|
|
3411
|
-
return /* @__PURE__ */
|
|
3480
|
+
return /* @__PURE__ */ jsxs35(
|
|
3412
3481
|
Tooltip,
|
|
3413
3482
|
{
|
|
3414
3483
|
...props,
|
|
3415
|
-
className:
|
|
3484
|
+
className: cn53("group/tooltip", classNames2.container),
|
|
3416
3485
|
UNSTABLE_portalContainer: portal,
|
|
3417
3486
|
children: [
|
|
3418
|
-
/* @__PURE__ */
|
|
3487
|
+
/* @__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
3488
|
children
|
|
3420
3489
|
]
|
|
3421
3490
|
}
|
|
@@ -3427,10 +3496,10 @@ _Tooltip.Trigger = _TooltipTrigger;
|
|
|
3427
3496
|
import { VisuallyHidden } from "@react-aria/visually-hidden";
|
|
3428
3497
|
|
|
3429
3498
|
// src/XLoader/XLoader.tsx
|
|
3430
|
-
import { forwardRef as
|
|
3499
|
+
import { forwardRef as forwardRef26 } from "react";
|
|
3431
3500
|
import { SVG as SVG5 } from "@marigold/system";
|
|
3432
|
-
import { jsx as
|
|
3433
|
-
var XLoader =
|
|
3501
|
+
import { jsx as jsx92, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
3502
|
+
var XLoader = forwardRef26((props, ref) => /* @__PURE__ */ jsxs36(
|
|
3434
3503
|
SVG5,
|
|
3435
3504
|
{
|
|
3436
3505
|
id: "XLoader",
|
|
@@ -3440,13 +3509,13 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3440
3509
|
...props,
|
|
3441
3510
|
...ref,
|
|
3442
3511
|
children: [
|
|
3443
|
-
/* @__PURE__ */
|
|
3444
|
-
/* @__PURE__ */
|
|
3512
|
+
/* @__PURE__ */ jsx92("path", { id: "XMLID_1_", d: "M35.3 27h26.5l54 74.1H88.7z" }),
|
|
3513
|
+
/* @__PURE__ */ jsx92(
|
|
3445
3514
|
"path",
|
|
3446
3515
|
{
|
|
3447
3516
|
id: "XMLID_5_",
|
|
3448
3517
|
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__ */
|
|
3518
|
+
children: /* @__PURE__ */ jsx92(
|
|
3450
3519
|
"animate",
|
|
3451
3520
|
{
|
|
3452
3521
|
attributeName: "opacity",
|
|
@@ -3459,12 +3528,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3459
3528
|
)
|
|
3460
3529
|
}
|
|
3461
3530
|
),
|
|
3462
|
-
/* @__PURE__ */
|
|
3531
|
+
/* @__PURE__ */ jsx92(
|
|
3463
3532
|
"path",
|
|
3464
3533
|
{
|
|
3465
3534
|
id: "XMLID_18_",
|
|
3466
3535
|
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__ */
|
|
3536
|
+
children: /* @__PURE__ */ jsx92(
|
|
3468
3537
|
"animate",
|
|
3469
3538
|
{
|
|
3470
3539
|
attributeName: "opacity",
|
|
@@ -3477,12 +3546,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3477
3546
|
)
|
|
3478
3547
|
}
|
|
3479
3548
|
),
|
|
3480
|
-
/* @__PURE__ */
|
|
3549
|
+
/* @__PURE__ */ jsx92(
|
|
3481
3550
|
"path",
|
|
3482
3551
|
{
|
|
3483
3552
|
id: "XMLID_19_",
|
|
3484
3553
|
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__ */
|
|
3554
|
+
children: /* @__PURE__ */ jsx92(
|
|
3486
3555
|
"animate",
|
|
3487
3556
|
{
|
|
3488
3557
|
attributeName: "opacity",
|
|
@@ -3495,12 +3564,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3495
3564
|
)
|
|
3496
3565
|
}
|
|
3497
3566
|
),
|
|
3498
|
-
/* @__PURE__ */
|
|
3567
|
+
/* @__PURE__ */ jsx92(
|
|
3499
3568
|
"path",
|
|
3500
3569
|
{
|
|
3501
3570
|
id: "XMLID_20_",
|
|
3502
3571
|
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__ */
|
|
3572
|
+
children: /* @__PURE__ */ jsx92(
|
|
3504
3573
|
"animate",
|
|
3505
3574
|
{
|
|
3506
3575
|
attributeName: "opacity",
|
|
@@ -3513,12 +3582,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3513
3582
|
)
|
|
3514
3583
|
}
|
|
3515
3584
|
),
|
|
3516
|
-
/* @__PURE__ */
|
|
3585
|
+
/* @__PURE__ */ jsx92(
|
|
3517
3586
|
"path",
|
|
3518
3587
|
{
|
|
3519
3588
|
id: "XMLID_21_",
|
|
3520
3589
|
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__ */
|
|
3590
|
+
children: /* @__PURE__ */ jsx92(
|
|
3522
3591
|
"animate",
|
|
3523
3592
|
{
|
|
3524
3593
|
attributeName: "opacity",
|
|
@@ -3531,12 +3600,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3531
3600
|
)
|
|
3532
3601
|
}
|
|
3533
3602
|
),
|
|
3534
|
-
/* @__PURE__ */
|
|
3603
|
+
/* @__PURE__ */ jsx92(
|
|
3535
3604
|
"path",
|
|
3536
3605
|
{
|
|
3537
3606
|
id: "XMLID_22_",
|
|
3538
3607
|
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__ */
|
|
3608
|
+
children: /* @__PURE__ */ jsx92(
|
|
3540
3609
|
"animate",
|
|
3541
3610
|
{
|
|
3542
3611
|
attributeName: "opacity",
|
|
@@ -3549,12 +3618,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3549
3618
|
)
|
|
3550
3619
|
}
|
|
3551
3620
|
),
|
|
3552
|
-
/* @__PURE__ */
|
|
3621
|
+
/* @__PURE__ */ jsx92(
|
|
3553
3622
|
"path",
|
|
3554
3623
|
{
|
|
3555
3624
|
id: "XMLID_23_",
|
|
3556
3625
|
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__ */
|
|
3626
|
+
children: /* @__PURE__ */ jsx92(
|
|
3558
3627
|
"animate",
|
|
3559
3628
|
{
|
|
3560
3629
|
attributeName: "opacity",
|
|
@@ -3567,12 +3636,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3567
3636
|
)
|
|
3568
3637
|
}
|
|
3569
3638
|
),
|
|
3570
|
-
/* @__PURE__ */
|
|
3639
|
+
/* @__PURE__ */ jsx92(
|
|
3571
3640
|
"path",
|
|
3572
3641
|
{
|
|
3573
3642
|
id: "XMLID_24_",
|
|
3574
3643
|
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__ */
|
|
3644
|
+
children: /* @__PURE__ */ jsx92(
|
|
3576
3645
|
"animate",
|
|
3577
3646
|
{
|
|
3578
3647
|
attributeName: "opacity",
|
|
@@ -3585,12 +3654,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3585
3654
|
)
|
|
3586
3655
|
}
|
|
3587
3656
|
),
|
|
3588
|
-
/* @__PURE__ */
|
|
3657
|
+
/* @__PURE__ */ jsx92(
|
|
3589
3658
|
"path",
|
|
3590
3659
|
{
|
|
3591
3660
|
id: "XMLID_25_",
|
|
3592
3661
|
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__ */
|
|
3662
|
+
children: /* @__PURE__ */ jsx92(
|
|
3594
3663
|
"animate",
|
|
3595
3664
|
{
|
|
3596
3665
|
attributeName: "opacity",
|
|
@@ -3603,12 +3672,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3603
3672
|
)
|
|
3604
3673
|
}
|
|
3605
3674
|
),
|
|
3606
|
-
/* @__PURE__ */
|
|
3675
|
+
/* @__PURE__ */ jsx92(
|
|
3607
3676
|
"path",
|
|
3608
3677
|
{
|
|
3609
3678
|
id: "XMLID_26_",
|
|
3610
3679
|
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__ */
|
|
3680
|
+
children: /* @__PURE__ */ jsx92(
|
|
3612
3681
|
"animate",
|
|
3613
3682
|
{
|
|
3614
3683
|
attributeName: "opacity",
|
|
@@ -3621,12 +3690,12 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3621
3690
|
)
|
|
3622
3691
|
}
|
|
3623
3692
|
),
|
|
3624
|
-
/* @__PURE__ */
|
|
3693
|
+
/* @__PURE__ */ jsx92(
|
|
3625
3694
|
"path",
|
|
3626
3695
|
{
|
|
3627
3696
|
id: "XMLID_27_",
|
|
3628
3697
|
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__ */
|
|
3698
|
+
children: /* @__PURE__ */ jsx92(
|
|
3630
3699
|
"animate",
|
|
3631
3700
|
{
|
|
3632
3701
|
attributeName: "opacity",
|
|
@@ -3645,24 +3714,24 @@ var XLoader = forwardRef24((props, ref) => /* @__PURE__ */ jsxs35(
|
|
|
3645
3714
|
|
|
3646
3715
|
// src/Tabs/Tabs.tsx
|
|
3647
3716
|
import { Tabs } from "react-aria-components";
|
|
3648
|
-
import { useClassNames as
|
|
3717
|
+
import { useClassNames as useClassNames51 } from "@marigold/system";
|
|
3649
3718
|
|
|
3650
3719
|
// src/Tabs/Context.ts
|
|
3651
|
-
import { createContext as
|
|
3652
|
-
var TabContext =
|
|
3653
|
-
var useTabContext = () =>
|
|
3720
|
+
import { createContext as createContext9, useContext as useContext15 } from "react";
|
|
3721
|
+
var TabContext = createContext9({});
|
|
3722
|
+
var useTabContext = () => useContext15(TabContext);
|
|
3654
3723
|
|
|
3655
3724
|
// src/Tabs/Tab.tsx
|
|
3656
3725
|
import { Tab } from "react-aria-components";
|
|
3657
|
-
import { cn as
|
|
3658
|
-
import { jsx as
|
|
3726
|
+
import { cn as cn54 } from "@marigold/system";
|
|
3727
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
3659
3728
|
var _Tab = (props) => {
|
|
3660
3729
|
const { classNames: classNames2 } = useTabContext();
|
|
3661
|
-
return /* @__PURE__ */
|
|
3730
|
+
return /* @__PURE__ */ jsx93(
|
|
3662
3731
|
Tab,
|
|
3663
3732
|
{
|
|
3664
3733
|
...props,
|
|
3665
|
-
className:
|
|
3734
|
+
className: cn54(
|
|
3666
3735
|
"flex cursor-pointer justify-center aria-disabled:cursor-not-allowed",
|
|
3667
3736
|
classNames2.tab
|
|
3668
3737
|
),
|
|
@@ -3673,15 +3742,15 @@ var _Tab = (props) => {
|
|
|
3673
3742
|
|
|
3674
3743
|
// src/Tabs/TabList.tsx
|
|
3675
3744
|
import { TabList } from "react-aria-components";
|
|
3676
|
-
import { cn as
|
|
3677
|
-
import { jsx as
|
|
3745
|
+
import { cn as cn55, gapSpace as gapSpace8 } from "@marigold/system";
|
|
3746
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
|
3678
3747
|
var _TabList = ({ space = 2, ...props }) => {
|
|
3679
3748
|
const { classNames: classNames2 } = useTabContext();
|
|
3680
|
-
return /* @__PURE__ */
|
|
3749
|
+
return /* @__PURE__ */ jsx94(
|
|
3681
3750
|
TabList,
|
|
3682
3751
|
{
|
|
3683
3752
|
...props,
|
|
3684
|
-
className:
|
|
3753
|
+
className: cn55("flex", gapSpace8[space], classNames2.tabsList),
|
|
3685
3754
|
children: props.children
|
|
3686
3755
|
}
|
|
3687
3756
|
);
|
|
@@ -3689,25 +3758,25 @@ var _TabList = ({ space = 2, ...props }) => {
|
|
|
3689
3758
|
|
|
3690
3759
|
// src/Tabs/TabPanel.tsx
|
|
3691
3760
|
import { TabPanel } from "react-aria-components";
|
|
3692
|
-
import { jsx as
|
|
3761
|
+
import { jsx as jsx95 } from "react/jsx-runtime";
|
|
3693
3762
|
var _TabPanel = (props) => {
|
|
3694
3763
|
const { classNames: classNames2 } = useTabContext();
|
|
3695
|
-
return /* @__PURE__ */
|
|
3764
|
+
return /* @__PURE__ */ jsx95(TabPanel, { ...props, className: classNames2.tabpanel, children: props.children });
|
|
3696
3765
|
};
|
|
3697
3766
|
|
|
3698
3767
|
// src/Tabs/Tabs.tsx
|
|
3699
|
-
import { jsx as
|
|
3768
|
+
import { jsx as jsx96 } from "react/jsx-runtime";
|
|
3700
3769
|
var _Tabs = ({ disabled, variant, size = "medium", ...rest }) => {
|
|
3701
3770
|
const props = {
|
|
3702
3771
|
isDisabled: disabled,
|
|
3703
3772
|
...rest
|
|
3704
3773
|
};
|
|
3705
|
-
const classNames2 =
|
|
3774
|
+
const classNames2 = useClassNames51({
|
|
3706
3775
|
component: "Tabs",
|
|
3707
3776
|
size,
|
|
3708
3777
|
variant
|
|
3709
3778
|
});
|
|
3710
|
-
return /* @__PURE__ */
|
|
3779
|
+
return /* @__PURE__ */ jsx96(TabContext.Provider, { value: { classNames: classNames2 }, children: /* @__PURE__ */ jsx96(Tabs, { ...props, className: classNames2.container, children: props.children }) });
|
|
3711
3780
|
};
|
|
3712
3781
|
_Tabs.List = _TabList;
|
|
3713
3782
|
_Tabs.TabPanel = _TabPanel;
|
|
@@ -3768,6 +3837,7 @@ export {
|
|
|
3768
3837
|
Scrollable,
|
|
3769
3838
|
_SearchField as SearchField,
|
|
3770
3839
|
_Select as Select,
|
|
3840
|
+
_SelectList as SelectList,
|
|
3771
3841
|
_Slider as Slider,
|
|
3772
3842
|
Split,
|
|
3773
3843
|
Stack,
|