@aivenio/aquarium 1.4.1 → 1.5.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/_variables.scss +1 -1
- package/dist/_variables_timescale.scss +1 -1
- package/dist/atoms.cjs +380 -142
- package/dist/atoms.mjs +379 -142
- package/dist/src/common/Card/Card.d.ts +35 -0
- package/dist/src/common/Card/Card.js +50 -0
- package/dist/src/common/Select/Select.js +4 -4
- package/dist/src/common/index.d.ts +1 -0
- package/dist/src/common/index.js +2 -1
- package/dist/src/components/Avatar/Avatar.js +2 -2
- package/dist/src/components/Banner/Banner.js +2 -2
- package/dist/src/components/Card/Card.d.ts +8 -47
- package/dist/src/components/Card/Card.js +15 -27
- package/dist/src/components/Card/Compact.d.ts +36 -0
- package/dist/src/components/Card/Compact.js +33 -0
- package/dist/src/components/Card/types.d.ts +44 -0
- package/dist/src/components/Card/types.js +2 -0
- package/dist/src/components/Carousel/Carousel.js +4 -2
- package/dist/src/components/Chip/Chip.d.ts +1 -1
- package/dist/src/components/Chip/Chip.js +2 -2
- package/dist/src/components/Combobox/Combobox.js +4 -6
- package/dist/src/components/MultiSelect/MultiSelect.d.ts +1 -1
- package/dist/src/components/MultiSelect/MultiSelect.js +13 -8
- package/dist/src/components/Select/Select.js +2 -2
- package/dist/src/components/Tabs/Tabs.js +54 -18
- package/dist/src/components/Timeline/Timeline.js +2 -2
- package/dist/styles.css +39 -23
- package/dist/styles_timescaledb.css +39 -23
- package/dist/system.cjs +908 -742
- package/dist/system.mjs +875 -709
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/tailwindGenerated.d.ts +1 -1
- package/package.json +1 -1
package/dist/atoms.mjs
CHANGED
@@ -2776,19 +2776,255 @@ Alert.Dismiss = (_a) => {
|
|
2776
2776
|
})));
|
2777
2777
|
};
|
2778
2778
|
|
2779
|
-
// src/common/
|
2779
|
+
// src/common/Card/Card.tsx
|
2780
|
+
import React12 from "react";
|
2781
|
+
|
2782
|
+
// src/components/Box/Box.tsx
|
2783
|
+
import React11 from "react";
|
2784
|
+
import isUndefined6 from "lodash/isUndefined";
|
2785
|
+
|
2786
|
+
// src/components/Element/Element.tsx
|
2780
2787
|
import React9 from "react";
|
2788
|
+
var Element = (_a) => {
|
2789
|
+
var _b = _a, { component } = _b, rest = __objRest(_b, ["component"]);
|
2790
|
+
const Component = component || "div";
|
2791
|
+
return React9.createElement(Component, rest);
|
2792
|
+
};
|
2793
|
+
|
2794
|
+
// src/utils/createComponent.tsx
|
2795
|
+
import React10 from "react";
|
2796
|
+
var hasClassName = (val) => {
|
2797
|
+
return val.className !== void 0;
|
2798
|
+
};
|
2799
|
+
var createSimpleComponent = (Component, defaultProps, displayName) => {
|
2800
|
+
const defaultClassName = hasClassName(defaultProps) ? defaultProps.className : "";
|
2801
|
+
const Curried = (props) => {
|
2802
|
+
const propsClassName = hasClassName(props) ? props.className : "";
|
2803
|
+
const className = defaultClassName || propsClassName ? classNames(defaultClassName, propsClassName) : void 0;
|
2804
|
+
return /* @__PURE__ */ React10.createElement(Component, __spreadProps(__spreadValues(__spreadValues({}, defaultProps), props), {
|
2805
|
+
className
|
2806
|
+
}));
|
2807
|
+
};
|
2808
|
+
Curried.displayName = displayName;
|
2809
|
+
return Curried;
|
2810
|
+
};
|
2811
|
+
|
2812
|
+
// src/components/Box/Box.tsx
|
2813
|
+
var Box = (_a) => {
|
2814
|
+
var _b = _a, {
|
2815
|
+
style,
|
2816
|
+
color,
|
2817
|
+
borderColor,
|
2818
|
+
borderRadius,
|
2819
|
+
borderWidth,
|
2820
|
+
justifyContent,
|
2821
|
+
alignContent,
|
2822
|
+
alignItems,
|
2823
|
+
alignSelf,
|
2824
|
+
flexDirection,
|
2825
|
+
flexWrap,
|
2826
|
+
flex,
|
2827
|
+
grow,
|
2828
|
+
shrink,
|
2829
|
+
display,
|
2830
|
+
padding,
|
2831
|
+
paddingX,
|
2832
|
+
paddingY,
|
2833
|
+
paddingTop,
|
2834
|
+
paddingRight,
|
2835
|
+
paddingBottom,
|
2836
|
+
paddingLeft,
|
2837
|
+
margin,
|
2838
|
+
marginX,
|
2839
|
+
marginY,
|
2840
|
+
marginTop,
|
2841
|
+
marginRight,
|
2842
|
+
marginBottom,
|
2843
|
+
marginLeft,
|
2844
|
+
backgroundColor,
|
2845
|
+
width,
|
2846
|
+
height,
|
2847
|
+
maxWidth,
|
2848
|
+
maxHeight,
|
2849
|
+
minWidth,
|
2850
|
+
minHeight,
|
2851
|
+
gap,
|
2852
|
+
colGap,
|
2853
|
+
rowGap
|
2854
|
+
} = _b, rest = __objRest(_b, [
|
2855
|
+
"style",
|
2856
|
+
"color",
|
2857
|
+
"borderColor",
|
2858
|
+
"borderRadius",
|
2859
|
+
"borderWidth",
|
2860
|
+
"justifyContent",
|
2861
|
+
"alignContent",
|
2862
|
+
"alignItems",
|
2863
|
+
"alignSelf",
|
2864
|
+
"flexDirection",
|
2865
|
+
"flexWrap",
|
2866
|
+
"flex",
|
2867
|
+
"grow",
|
2868
|
+
"shrink",
|
2869
|
+
"display",
|
2870
|
+
"padding",
|
2871
|
+
"paddingX",
|
2872
|
+
"paddingY",
|
2873
|
+
"paddingTop",
|
2874
|
+
"paddingRight",
|
2875
|
+
"paddingBottom",
|
2876
|
+
"paddingLeft",
|
2877
|
+
"margin",
|
2878
|
+
"marginX",
|
2879
|
+
"marginY",
|
2880
|
+
"marginTop",
|
2881
|
+
"marginRight",
|
2882
|
+
"marginBottom",
|
2883
|
+
"marginLeft",
|
2884
|
+
"backgroundColor",
|
2885
|
+
"width",
|
2886
|
+
"height",
|
2887
|
+
"maxWidth",
|
2888
|
+
"maxHeight",
|
2889
|
+
"minWidth",
|
2890
|
+
"minHeight",
|
2891
|
+
"gap",
|
2892
|
+
"colGap",
|
2893
|
+
"rowGap"
|
2894
|
+
]);
|
2895
|
+
const styles = useStyle({
|
2896
|
+
padding,
|
2897
|
+
display,
|
2898
|
+
color,
|
2899
|
+
borderColor: borderColor ? tailwind_theme_default.backgroundColor[borderColor] : "",
|
2900
|
+
borderRadius,
|
2901
|
+
borderWidth,
|
2902
|
+
justifyContent,
|
2903
|
+
alignContent,
|
2904
|
+
alignItems,
|
2905
|
+
alignSelf,
|
2906
|
+
flexDirection,
|
2907
|
+
flexWrap,
|
2908
|
+
paddingTop: isUndefined6(paddingY) ? paddingTop : paddingY,
|
2909
|
+
paddingRight: isUndefined6(paddingX) ? paddingRight : paddingX,
|
2910
|
+
paddingBottom: isUndefined6(paddingY) ? paddingBottom : paddingY,
|
2911
|
+
paddingLeft: isUndefined6(paddingX) ? paddingLeft : paddingX,
|
2912
|
+
margin,
|
2913
|
+
marginTop: isUndefined6(marginY) ? marginTop : marginY,
|
2914
|
+
marginRight: isUndefined6(marginX) ? marginRight : marginX,
|
2915
|
+
marginBottom: isUndefined6(marginY) ? marginBottom : marginY,
|
2916
|
+
marginLeft: isUndefined6(marginX) ? marginLeft : marginX,
|
2917
|
+
backgroundColor,
|
2918
|
+
width,
|
2919
|
+
height,
|
2920
|
+
maxWidth,
|
2921
|
+
maxHeight,
|
2922
|
+
minWidth,
|
2923
|
+
minHeight,
|
2924
|
+
flexGrow: grow,
|
2925
|
+
flexShrink: shrink,
|
2926
|
+
flex,
|
2927
|
+
gap,
|
2928
|
+
columnGap: colGap,
|
2929
|
+
rowGap
|
2930
|
+
});
|
2931
|
+
return /* @__PURE__ */ React11.createElement(Element, __spreadValues({
|
2932
|
+
style: __spreadValues(__spreadValues({}, styles), style)
|
2933
|
+
}, rest));
|
2934
|
+
};
|
2935
|
+
var BorderBox = createSimpleComponent(
|
2936
|
+
Box,
|
2937
|
+
{ className: "rounded border", borderColor: "grey-10" },
|
2938
|
+
"BorderBox"
|
2939
|
+
);
|
2940
|
+
|
2941
|
+
// src/common/Card/Card.tsx
|
2942
|
+
var Card = (_a) => {
|
2943
|
+
var _b = _a, {
|
2944
|
+
disabled,
|
2945
|
+
fullWidth,
|
2946
|
+
clickable,
|
2947
|
+
className,
|
2948
|
+
children
|
2949
|
+
} = _b, rest = __objRest(_b, [
|
2950
|
+
"disabled",
|
2951
|
+
"fullWidth",
|
2952
|
+
"clickable",
|
2953
|
+
"className",
|
2954
|
+
"children"
|
2955
|
+
]);
|
2956
|
+
return /* @__PURE__ */ React12.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
2957
|
+
className: classNames(
|
2958
|
+
tw("border-grey-5 border-[1px] rounded-[2px] relative p-5 flex flex-col gap-5", {
|
2959
|
+
"w-[280px]": !fullWidth,
|
2960
|
+
"w-full min-w-[280px]": Boolean(fullWidth),
|
2961
|
+
"active:bg-grey-5 cursor-pointer hover:border-grey-50 focus:border-info-70": Boolean(clickable && !disabled),
|
2962
|
+
"bg-grey-0 cursor-not-allowed focus:border-transparent": Boolean(disabled)
|
2963
|
+
}),
|
2964
|
+
className
|
2965
|
+
)
|
2966
|
+
}), children);
|
2967
|
+
};
|
2968
|
+
var ColorHighlight = (_a) => {
|
2969
|
+
var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
|
2970
|
+
return /* @__PURE__ */ React12.createElement(Box, __spreadProps(__spreadValues({}, rest), {
|
2971
|
+
backgroundColor: color,
|
2972
|
+
className: classNames(tw("h-1 w-full absolute top-0 left-0 right-0"), className)
|
2973
|
+
}));
|
2974
|
+
};
|
2975
|
+
var ImageContainer = (_a) => {
|
2976
|
+
var _b = _a, { className, fullSize } = _b, rest = __objRest(_b, ["className", "fullSize"]);
|
2977
|
+
return /* @__PURE__ */ React12.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
2978
|
+
className: classNames(
|
2979
|
+
tw("-mx-4", {
|
2980
|
+
"-mt-4": Boolean(fullSize)
|
2981
|
+
}),
|
2982
|
+
className
|
2983
|
+
)
|
2984
|
+
}));
|
2985
|
+
};
|
2986
|
+
var Image = ({
|
2987
|
+
image,
|
2988
|
+
imageAlt,
|
2989
|
+
fullSize
|
2990
|
+
}) => /* @__PURE__ */ React12.createElement("img", {
|
2991
|
+
src: image,
|
2992
|
+
alt: imageAlt,
|
2993
|
+
className: tw("w-full bg-cover object-cover h-[174px]", {
|
2994
|
+
"h-[225px]": Boolean(fullSize)
|
2995
|
+
})
|
2996
|
+
});
|
2997
|
+
var Content = (_a) => {
|
2998
|
+
var _b = _a, { className, dense } = _b, rest = __objRest(_b, ["className", "dense"]);
|
2999
|
+
return /* @__PURE__ */ React12.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3000
|
+
className: classNames(tw("flex flex-col", { "gap-4": !dense }), className)
|
3001
|
+
}));
|
3002
|
+
};
|
3003
|
+
var Actions = (_a) => {
|
3004
|
+
var _b = _a, { className, dense } = _b, rest = __objRest(_b, ["className", "dense"]);
|
3005
|
+
return /* @__PURE__ */ React12.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3006
|
+
className: classNames(tw("flex gap-3 items-center", { "pt-3 ": !dense }), className)
|
3007
|
+
}));
|
3008
|
+
};
|
3009
|
+
Card.Content = Content;
|
3010
|
+
Card.Actions = Actions;
|
3011
|
+
Card.ImageContainer = ImageContainer;
|
3012
|
+
Card.Image = Image;
|
3013
|
+
Card.ColorHiglight = ColorHighlight;
|
3014
|
+
|
3015
|
+
// src/common/Checkbox/Checkbox.tsx
|
3016
|
+
import React13 from "react";
|
2781
3017
|
var import_minus = __toESM(require_minus());
|
2782
3018
|
var import_tick = __toESM(require_tick());
|
2783
|
-
var Checkbox =
|
3019
|
+
var Checkbox = React13.forwardRef(
|
2784
3020
|
(_a, ref) => {
|
2785
3021
|
var _b = _a, { id, children, name, disabled = false, readOnly = false, indeterminate = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly", "indeterminate"]);
|
2786
|
-
return /* @__PURE__ */
|
3022
|
+
return /* @__PURE__ */ React13.createElement("span", {
|
2787
3023
|
className: classNames(tw("inline-flex justify-center items-center self-center relative"), {
|
2788
3024
|
"hover:border-grey-50 peer-checked:border-navyBlue-100": !disabled,
|
2789
3025
|
"border-grey-5": disabled
|
2790
3026
|
})
|
2791
|
-
}, /* @__PURE__ */
|
3027
|
+
}, /* @__PURE__ */ React13.createElement("input", __spreadProps(__spreadValues({
|
2792
3028
|
id,
|
2793
3029
|
ref,
|
2794
3030
|
type: "checkbox",
|
@@ -2802,7 +3038,7 @@ var Checkbox = React9.forwardRef(
|
|
2802
3038
|
),
|
2803
3039
|
readOnly,
|
2804
3040
|
disabled
|
2805
|
-
})), /* @__PURE__ */
|
3041
|
+
})), /* @__PURE__ */ React13.createElement(Icon, {
|
2806
3042
|
icon: indeterminate ? import_minus.default : import_tick.default,
|
2807
3043
|
className: classNames(
|
2808
3044
|
tw(
|
@@ -2821,11 +3057,11 @@ var Checkbox = React9.forwardRef(
|
|
2821
3057
|
);
|
2822
3058
|
|
2823
3059
|
// src/common/Chip/Chip.tsx
|
2824
|
-
import
|
2825
|
-
var Container =
|
3060
|
+
import React14 from "react";
|
3061
|
+
var Container = React14.forwardRef(
|
2826
3062
|
(_a, ref) => {
|
2827
3063
|
var _b = _a, { dense = false, className, children } = _b, rest = __objRest(_b, ["dense", "className", "children"]);
|
2828
|
-
return /* @__PURE__ */
|
3064
|
+
return /* @__PURE__ */ React14.createElement("span", __spreadValues({
|
2829
3065
|
ref,
|
2830
3066
|
className: classNames(
|
2831
3067
|
tw("inline-flex items-center rounded-sm transition whitespace-nowrap", {
|
@@ -2861,119 +3097,119 @@ var DIALOG_ICONS_AND_COLORS = {
|
|
2861
3097
|
};
|
2862
3098
|
|
2863
3099
|
// src/common/DropdownMenu/DropdownMenu.tsx
|
2864
|
-
import
|
3100
|
+
import React16 from "react";
|
2865
3101
|
|
2866
3102
|
// src/components/Typography/Typography.tsx
|
2867
|
-
import
|
2868
|
-
var Typography2 = (props) => /* @__PURE__ */
|
3103
|
+
import React15 from "react";
|
3104
|
+
var Typography2 = (props) => /* @__PURE__ */ React15.createElement(Typography, __spreadValues({}, props));
|
2869
3105
|
Typography2.LargeHeading = (_a) => {
|
2870
3106
|
var _b = _a, { htmlTag = "h1" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2871
|
-
return /* @__PURE__ */
|
3107
|
+
return /* @__PURE__ */ React15.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2872
3108
|
htmlTag,
|
2873
3109
|
variant: "large-heading"
|
2874
3110
|
}));
|
2875
3111
|
};
|
2876
3112
|
Typography2.Heading = (_a) => {
|
2877
3113
|
var _b = _a, { htmlTag = "h1", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
|
2878
|
-
return /* @__PURE__ */
|
3114
|
+
return /* @__PURE__ */ React15.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2879
3115
|
htmlTag,
|
2880
3116
|
variant: "heading"
|
2881
3117
|
}));
|
2882
3118
|
};
|
2883
3119
|
Typography2.Subheading = (_a) => {
|
2884
3120
|
var _b = _a, { htmlTag = "h2", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
|
2885
|
-
return /* @__PURE__ */
|
3121
|
+
return /* @__PURE__ */ React15.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2886
3122
|
htmlTag,
|
2887
3123
|
variant: "subheading"
|
2888
3124
|
}));
|
2889
3125
|
};
|
2890
3126
|
Typography2.LargeStrong = (_a) => {
|
2891
3127
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2892
|
-
return /* @__PURE__ */
|
3128
|
+
return /* @__PURE__ */ React15.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2893
3129
|
htmlTag,
|
2894
3130
|
variant: "large-strong"
|
2895
3131
|
}));
|
2896
3132
|
};
|
2897
3133
|
Typography2.Large = (_a) => {
|
2898
3134
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2899
|
-
return /* @__PURE__ */
|
3135
|
+
return /* @__PURE__ */ React15.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2900
3136
|
htmlTag,
|
2901
3137
|
variant: "large"
|
2902
3138
|
}));
|
2903
3139
|
};
|
2904
3140
|
Typography2.DefaultStrong = (_a) => {
|
2905
3141
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2906
|
-
return /* @__PURE__ */
|
3142
|
+
return /* @__PURE__ */ React15.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2907
3143
|
htmlTag,
|
2908
3144
|
variant: "default-strong"
|
2909
3145
|
}));
|
2910
3146
|
};
|
2911
3147
|
Typography2.Default = (_a) => {
|
2912
3148
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2913
|
-
return /* @__PURE__ */
|
3149
|
+
return /* @__PURE__ */ React15.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2914
3150
|
htmlTag,
|
2915
3151
|
variant: "default"
|
2916
3152
|
}));
|
2917
3153
|
};
|
2918
3154
|
Typography2.Paragraph = (_a) => {
|
2919
3155
|
var _b = _a, { htmlTag = "p", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
|
2920
|
-
return /* @__PURE__ */
|
3156
|
+
return /* @__PURE__ */ React15.createElement(Typography2.Default, __spreadProps(__spreadValues({}, props), {
|
2921
3157
|
htmlTag
|
2922
3158
|
}));
|
2923
3159
|
};
|
2924
3160
|
Typography2.P = Typography2.Paragraph;
|
2925
3161
|
Typography2.SmallStrong = (_a) => {
|
2926
3162
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2927
|
-
return /* @__PURE__ */
|
3163
|
+
return /* @__PURE__ */ React15.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2928
3164
|
htmlTag,
|
2929
3165
|
variant: "small-strong"
|
2930
3166
|
}));
|
2931
3167
|
};
|
2932
3168
|
Typography2.Small = (_a) => {
|
2933
3169
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2934
|
-
return /* @__PURE__ */
|
3170
|
+
return /* @__PURE__ */ React15.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2935
3171
|
htmlTag,
|
2936
3172
|
variant: "small"
|
2937
3173
|
}));
|
2938
3174
|
};
|
2939
3175
|
Typography2.Caption = (_a) => {
|
2940
3176
|
var _b = _a, { htmlTag = "div", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
|
2941
|
-
return /* @__PURE__ */
|
3177
|
+
return /* @__PURE__ */ React15.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2942
3178
|
htmlTag,
|
2943
3179
|
variant: "caption"
|
2944
3180
|
}));
|
2945
3181
|
};
|
2946
3182
|
Typography2.LargeText = (_a) => {
|
2947
3183
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2948
|
-
return /* @__PURE__ */
|
3184
|
+
return /* @__PURE__ */ React15.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2949
3185
|
htmlTag,
|
2950
3186
|
variant: "large-strong"
|
2951
3187
|
}));
|
2952
3188
|
};
|
2953
3189
|
Typography2.MediumText = (_a) => {
|
2954
3190
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2955
|
-
return /* @__PURE__ */
|
3191
|
+
return /* @__PURE__ */ React15.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2956
3192
|
htmlTag,
|
2957
3193
|
variant: "default-strong"
|
2958
3194
|
}));
|
2959
3195
|
};
|
2960
3196
|
Typography2.Text = (_a) => {
|
2961
3197
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2962
|
-
return /* @__PURE__ */
|
3198
|
+
return /* @__PURE__ */ React15.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2963
3199
|
htmlTag,
|
2964
3200
|
variant: "default"
|
2965
3201
|
}));
|
2966
3202
|
};
|
2967
3203
|
Typography2.SmallText = (_a) => {
|
2968
3204
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2969
|
-
return /* @__PURE__ */
|
3205
|
+
return /* @__PURE__ */ React15.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2970
3206
|
htmlTag,
|
2971
3207
|
variant: "small"
|
2972
3208
|
}));
|
2973
3209
|
};
|
2974
3210
|
Typography2.SmallTextBold = (_a) => {
|
2975
3211
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
2976
|
-
return /* @__PURE__ */
|
3212
|
+
return /* @__PURE__ */ React15.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
2977
3213
|
htmlTag,
|
2978
3214
|
variant: "small-strong"
|
2979
3215
|
}));
|
@@ -2981,10 +3217,10 @@ Typography2.SmallTextBold = (_a) => {
|
|
2981
3217
|
|
2982
3218
|
// src/common/DropdownMenu/DropdownMenu.tsx
|
2983
3219
|
var import_tick2 = __toESM(require_tick());
|
2984
|
-
var DropdownMenu =
|
3220
|
+
var DropdownMenu = React16.forwardRef(
|
2985
3221
|
(_a, ref) => {
|
2986
3222
|
var _b = _a, { maxHeight = "450px", minWidth = "125px", maxWidth, className, children } = _b, props = __objRest(_b, ["maxHeight", "minWidth", "maxWidth", "className", "children"]);
|
2987
|
-
return /* @__PURE__ */
|
3223
|
+
return /* @__PURE__ */ React16.createElement("div", __spreadValues({
|
2988
3224
|
ref,
|
2989
3225
|
style: { maxHeight, minWidth, maxWidth },
|
2990
3226
|
className: classNames(
|
@@ -2994,25 +3230,25 @@ var DropdownMenu = React12.forwardRef(
|
|
2994
3230
|
}, props), children);
|
2995
3231
|
}
|
2996
3232
|
);
|
2997
|
-
var ContentContainer = ({ children }) => /* @__PURE__ */
|
3233
|
+
var ContentContainer = ({ children }) => /* @__PURE__ */ React16.createElement("div", {
|
2998
3234
|
className: tw("p-3")
|
2999
3235
|
}, children);
|
3000
3236
|
DropdownMenu.ContentContainer = ContentContainer;
|
3001
|
-
var List =
|
3237
|
+
var List = React16.forwardRef(
|
3002
3238
|
(_a, ref) => {
|
3003
3239
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
3004
|
-
return /* @__PURE__ */
|
3240
|
+
return /* @__PURE__ */ React16.createElement("ul", __spreadValues({
|
3005
3241
|
ref
|
3006
3242
|
}, props), children);
|
3007
3243
|
}
|
3008
3244
|
);
|
3009
3245
|
DropdownMenu.List = List;
|
3010
|
-
var Group =
|
3246
|
+
var Group = React16.forwardRef(
|
3011
3247
|
(_a, ref) => {
|
3012
3248
|
var _b = _a, { className, title, titleProps, children } = _b, props = __objRest(_b, ["className", "title", "titleProps", "children"]);
|
3013
|
-
return /* @__PURE__ */
|
3249
|
+
return /* @__PURE__ */ React16.createElement("li", __spreadValues({
|
3014
3250
|
ref
|
3015
|
-
}, props), title && /* @__PURE__ */
|
3251
|
+
}, props), title && /* @__PURE__ */ React16.createElement("div", __spreadValues({
|
3016
3252
|
className: classNames(className, "p-3 text-grey-40 uppercase cursor-default typography-caption", {
|
3017
3253
|
"text-grey-20": props.disabled
|
3018
3254
|
})
|
@@ -3020,10 +3256,10 @@ var Group = React12.forwardRef(
|
|
3020
3256
|
}
|
3021
3257
|
);
|
3022
3258
|
DropdownMenu.Group = Group;
|
3023
|
-
var Item =
|
3259
|
+
var Item = React16.forwardRef(
|
3024
3260
|
(_a, ref) => {
|
3025
3261
|
var _b = _a, { kind, highlighted, selected, className, icon, children } = _b, props = __objRest(_b, ["kind", "highlighted", "selected", "className", "icon", "children"]);
|
3026
|
-
return /* @__PURE__ */
|
3262
|
+
return /* @__PURE__ */ React16.createElement("li", __spreadValues({
|
3027
3263
|
ref,
|
3028
3264
|
className: classNames(className, "flex items-center gap-x-3 p-3 outline-none", {
|
3029
3265
|
"cursor-pointer hover:bg-grey-0": !props.disabled,
|
@@ -3031,40 +3267,40 @@ var Item = React12.forwardRef(
|
|
3031
3267
|
"text-primary-80": kind === "action",
|
3032
3268
|
"text-grey-20 cursor-not-allowed": props.disabled
|
3033
3269
|
})
|
3034
|
-
}, props), icon && /* @__PURE__ */
|
3270
|
+
}, props), icon && /* @__PURE__ */ React16.createElement(InlineIcon, {
|
3035
3271
|
icon
|
3036
|
-
}), /* @__PURE__ */
|
3272
|
+
}), /* @__PURE__ */ React16.createElement("span", {
|
3037
3273
|
className: tw("grow")
|
3038
|
-
}, children), selected && /* @__PURE__ */
|
3274
|
+
}, children), selected && /* @__PURE__ */ React16.createElement(InlineIcon, {
|
3039
3275
|
icon: import_tick2.default
|
3040
3276
|
}));
|
3041
3277
|
}
|
3042
3278
|
);
|
3043
3279
|
DropdownMenu.Item = Item;
|
3044
|
-
var Description = ({ disabled, children }) => /* @__PURE__ */
|
3280
|
+
var Description = ({ disabled, children }) => /* @__PURE__ */ React16.createElement(Typography2.Caption, {
|
3045
3281
|
color: disabled ? "grey-20" : "grey-40"
|
3046
3282
|
}, children);
|
3047
3283
|
DropdownMenu.Description = Description;
|
3048
3284
|
var Separator = (_a) => {
|
3049
3285
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
3050
|
-
return /* @__PURE__ */
|
3286
|
+
return /* @__PURE__ */ React16.createElement("li", __spreadProps(__spreadValues({}, props), {
|
3051
3287
|
className: classNames(className, tw("m-3 block bg-grey-5 h-[1px]"))
|
3052
3288
|
}));
|
3053
3289
|
};
|
3054
3290
|
DropdownMenu.Separator = Separator;
|
3055
3291
|
var EmptyStateContainer = (_a) => {
|
3056
3292
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
3057
|
-
return /* @__PURE__ */
|
3293
|
+
return /* @__PURE__ */ React16.createElement("div", __spreadValues({
|
3058
3294
|
className: classNames(tw("border border-dashed border-grey-10 p-3"), className)
|
3059
3295
|
}, props), children);
|
3060
3296
|
};
|
3061
3297
|
DropdownMenu.EmptyStateContainer = EmptyStateContainer;
|
3062
3298
|
|
3063
3299
|
// src/common/InputGroup/InputGroup.tsx
|
3064
|
-
import
|
3300
|
+
import React18 from "react";
|
3065
3301
|
|
3066
3302
|
// src/components/Grid/Grid.tsx
|
3067
|
-
import
|
3303
|
+
import React17 from "react";
|
3068
3304
|
var Grid = Tailwindify(
|
3069
3305
|
({
|
3070
3306
|
htmlTag = "div",
|
@@ -3117,7 +3353,7 @@ var Grid = Tailwindify(
|
|
3117
3353
|
gridRowEnd: rowEnd
|
3118
3354
|
});
|
3119
3355
|
const HtmlElement = htmlTag;
|
3120
|
-
return /* @__PURE__ */
|
3356
|
+
return /* @__PURE__ */ React17.createElement(HtmlElement, {
|
3121
3357
|
style: __spreadValues(__spreadValues({}, hookStyle), style),
|
3122
3358
|
className
|
3123
3359
|
}, children);
|
@@ -3133,7 +3369,7 @@ var gridColumnStyles = {
|
|
3133
3369
|
};
|
3134
3370
|
var InputGroup = (_a) => {
|
3135
3371
|
var _b = _a, { cols = "1", children } = _b, rest = __objRest(_b, ["cols", "children"]);
|
3136
|
-
return /* @__PURE__ */
|
3372
|
+
return /* @__PURE__ */ React18.createElement(Grid, __spreadProps(__spreadValues({}, rest), {
|
3137
3373
|
display: "inline-grid",
|
3138
3374
|
colGap: "l4",
|
3139
3375
|
rowGap: "3",
|
@@ -3143,10 +3379,10 @@ var InputGroup = (_a) => {
|
|
3143
3379
|
};
|
3144
3380
|
|
3145
3381
|
// src/common/Modal/Modal.tsx
|
3146
|
-
import
|
3382
|
+
import React19 from "react";
|
3147
3383
|
var Modal = (_a) => {
|
3148
3384
|
var _b = _a, { children, className, open } = _b, rest = __objRest(_b, ["children", "className", "open"]);
|
3149
|
-
return open ? /* @__PURE__ */
|
3385
|
+
return open ? /* @__PURE__ */ React19.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3150
3386
|
className: classNames(
|
3151
3387
|
tw("inset-0 overflow-y-auto z-modal flex justify-center items-center fixed py-7"),
|
3152
3388
|
className
|
@@ -3155,14 +3391,14 @@ var Modal = (_a) => {
|
|
3155
3391
|
};
|
3156
3392
|
Modal.BackDrop = (_a) => {
|
3157
3393
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
3158
|
-
return /* @__PURE__ */
|
3394
|
+
return /* @__PURE__ */ React19.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3159
3395
|
className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-navyBlue-100 opacity-70"), className)
|
3160
3396
|
}));
|
3161
3397
|
};
|
3162
|
-
Modal.Dialog =
|
3398
|
+
Modal.Dialog = React19.forwardRef(
|
3163
3399
|
(_a, ref) => {
|
3164
3400
|
var _b = _a, { children, className, size = "sm" } = _b, rest = __objRest(_b, ["children", "className", "size"]);
|
3165
|
-
return /* @__PURE__ */
|
3401
|
+
return /* @__PURE__ */ React19.createElement("div", __spreadProps(__spreadValues({
|
3166
3402
|
ref,
|
3167
3403
|
"aria-modal": "true"
|
3168
3404
|
}, rest), {
|
@@ -3180,31 +3416,31 @@ Modal.Dialog = React15.forwardRef(
|
|
3180
3416
|
);
|
3181
3417
|
Modal.Header = (_a) => {
|
3182
3418
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3183
|
-
return /* @__PURE__ */
|
3419
|
+
return /* @__PURE__ */ React19.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3184
3420
|
className: classNames(tw("px-7 py-6 gap-3 flex items-center"), className)
|
3185
3421
|
}), children);
|
3186
3422
|
};
|
3187
3423
|
Modal.HeaderImage = (_a) => {
|
3188
3424
|
var _b = _a, { backgroundImage, className } = _b, rest = __objRest(_b, ["backgroundImage", "className"]);
|
3189
3425
|
const common = tw("h-[120px] min-h-[120px] w-full ");
|
3190
|
-
return backgroundImage ? /* @__PURE__ */
|
3426
|
+
return backgroundImage ? /* @__PURE__ */ React19.createElement("img", __spreadProps(__spreadValues({
|
3191
3427
|
"aria-hidden": true,
|
3192
3428
|
src: backgroundImage != null ? backgroundImage : void 0
|
3193
3429
|
}, rest), {
|
3194
3430
|
className: classNames(common, tw("object-cover"), className)
|
3195
|
-
})) : /* @__PURE__ */
|
3431
|
+
})) : /* @__PURE__ */ React19.createElement("div", {
|
3196
3432
|
className: classNames(common, tw("bg-grey-5"), className)
|
3197
3433
|
});
|
3198
3434
|
};
|
3199
3435
|
Modal.CloseButtonContainer = (_a) => {
|
3200
3436
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
3201
|
-
return /* @__PURE__ */
|
3437
|
+
return /* @__PURE__ */ React19.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3202
3438
|
className: classNames(tw("absolute top-[20px] right-[28px]"), className)
|
3203
3439
|
}));
|
3204
3440
|
};
|
3205
3441
|
Modal.Title = (_a) => {
|
3206
3442
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3207
|
-
return /* @__PURE__ */
|
3443
|
+
return /* @__PURE__ */ React19.createElement(Typography, __spreadValues({
|
3208
3444
|
htmlTag: "h2",
|
3209
3445
|
variant: "subheading",
|
3210
3446
|
color: "grey-90",
|
@@ -3213,42 +3449,42 @@ Modal.Title = (_a) => {
|
|
3213
3449
|
};
|
3214
3450
|
Modal.Subtitle = (_a) => {
|
3215
3451
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
3216
|
-
return /* @__PURE__ */
|
3452
|
+
return /* @__PURE__ */ React19.createElement(Typography, __spreadValues({
|
3217
3453
|
variant: "small",
|
3218
3454
|
color: "grey-60"
|
3219
3455
|
}, rest), children);
|
3220
3456
|
};
|
3221
3457
|
Modal.TitleContainer = (_a) => {
|
3222
3458
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3223
|
-
return /* @__PURE__ */
|
3459
|
+
return /* @__PURE__ */ React19.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3224
3460
|
className: classNames(tw("flex flex-col grow gap-2"), className)
|
3225
3461
|
}), children);
|
3226
3462
|
};
|
3227
3463
|
Modal.Body = (_a) => {
|
3228
3464
|
var _b = _a, { children, className, noFooter = false, maxHeight, style } = _b, rest = __objRest(_b, ["children", "className", "noFooter", "maxHeight", "style"]);
|
3229
|
-
return /* @__PURE__ */
|
3465
|
+
return /* @__PURE__ */ React19.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3230
3466
|
className: classNames(tw("px-7 grow overflow-y-auto", { "pb-6": noFooter }), className),
|
3231
3467
|
style: __spreadValues({ maxHeight }, style)
|
3232
3468
|
}), children);
|
3233
3469
|
};
|
3234
3470
|
Modal.Footer = (_a) => {
|
3235
3471
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3236
|
-
return /* @__PURE__ */
|
3472
|
+
return /* @__PURE__ */ React19.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3237
3473
|
className: classNames(tw("px-7 py-6"), className)
|
3238
3474
|
}), children);
|
3239
3475
|
};
|
3240
3476
|
Modal.Actions = (_a) => {
|
3241
3477
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3242
|
-
return /* @__PURE__ */
|
3478
|
+
return /* @__PURE__ */ React19.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3243
3479
|
className: classNames(tw("flex gap-4 justify-end"), className)
|
3244
3480
|
}), children);
|
3245
3481
|
};
|
3246
3482
|
|
3247
3483
|
// src/common/Popover/Popover.tsx
|
3248
|
-
import
|
3249
|
-
var PopoverPanel =
|
3484
|
+
import React20 from "react";
|
3485
|
+
var PopoverPanel = React20.forwardRef((_a, ref) => {
|
3250
3486
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
3251
|
-
return /* @__PURE__ */
|
3487
|
+
return /* @__PURE__ */ React20.createElement("div", __spreadValues({
|
3252
3488
|
ref,
|
3253
3489
|
className: classNames(
|
3254
3490
|
className,
|
@@ -3263,23 +3499,23 @@ var Popover = {
|
|
3263
3499
|
};
|
3264
3500
|
|
3265
3501
|
// src/common/PopoverDialog/PopoverDialog.tsx
|
3266
|
-
import
|
3502
|
+
import React21 from "react";
|
3267
3503
|
var Header = (_a) => {
|
3268
3504
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3269
|
-
return /* @__PURE__ */
|
3505
|
+
return /* @__PURE__ */ React21.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3270
3506
|
className: classNames(tw("p-5 gap-3 flex items-center"), className)
|
3271
3507
|
}), children);
|
3272
3508
|
};
|
3273
3509
|
var Title = (_a) => {
|
3274
3510
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3275
|
-
return /* @__PURE__ */
|
3511
|
+
return /* @__PURE__ */ React21.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
3276
3512
|
htmlTag: "h1",
|
3277
3513
|
variant: "small-strong"
|
3278
3514
|
}), children);
|
3279
3515
|
};
|
3280
3516
|
var Body = (_a) => {
|
3281
3517
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3282
|
-
return /* @__PURE__ */
|
3518
|
+
return /* @__PURE__ */ React21.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
3283
3519
|
htmlTag: "div",
|
3284
3520
|
variant: "caption",
|
3285
3521
|
className: classNames(tw("px-5 overflow-y-auto"), className)
|
@@ -3287,13 +3523,13 @@ var Body = (_a) => {
|
|
3287
3523
|
};
|
3288
3524
|
var Footer = (_a) => {
|
3289
3525
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3290
|
-
return /* @__PURE__ */
|
3526
|
+
return /* @__PURE__ */ React21.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3291
3527
|
className: classNames(tw("p-5"), className)
|
3292
3528
|
}), children);
|
3293
3529
|
};
|
3294
|
-
var
|
3530
|
+
var Actions2 = (_a) => {
|
3295
3531
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3296
|
-
return /* @__PURE__ */
|
3532
|
+
return /* @__PURE__ */ React21.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3297
3533
|
className: classNames(tw("flex gap-4"), className)
|
3298
3534
|
}), children);
|
3299
3535
|
};
|
@@ -3302,15 +3538,15 @@ var PopoverDialog = {
|
|
3302
3538
|
Title,
|
3303
3539
|
Body,
|
3304
3540
|
Footer,
|
3305
|
-
Actions
|
3541
|
+
Actions: Actions2
|
3306
3542
|
};
|
3307
3543
|
|
3308
3544
|
// src/common/RadioButton/RadioButton.tsx
|
3309
|
-
import
|
3310
|
-
var RadioButton =
|
3545
|
+
import React22 from "react";
|
3546
|
+
var RadioButton = React22.forwardRef(
|
3311
3547
|
(_a, ref) => {
|
3312
3548
|
var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
|
3313
|
-
return /* @__PURE__ */
|
3549
|
+
return /* @__PURE__ */ React22.createElement("input", __spreadProps(__spreadValues({
|
3314
3550
|
id,
|
3315
3551
|
ref,
|
3316
3552
|
type: "radio",
|
@@ -3334,7 +3570,7 @@ var RadioButton = React18.forwardRef(
|
|
3334
3570
|
);
|
3335
3571
|
|
3336
3572
|
// src/common/Select/Select.tsx
|
3337
|
-
import
|
3573
|
+
import React23 from "react";
|
3338
3574
|
var import_chevronDown2 = __toESM(require_chevronDown());
|
3339
3575
|
var import_chevronUp = __toESM(require_chevronUp());
|
3340
3576
|
var import_search = __toESM(require_search());
|
@@ -3354,16 +3590,16 @@ function isOptionDisabledBuiltin(option) {
|
|
3354
3590
|
}
|
3355
3591
|
var getValues = (children) => {
|
3356
3592
|
var _a;
|
3357
|
-
const values =
|
3593
|
+
const values = React23.Children.map(children, (c) => {
|
3358
3594
|
var _a2;
|
3359
3595
|
return (_a2 = c == null ? void 0 : c.props) == null ? void 0 : _a2.value;
|
3360
3596
|
});
|
3361
3597
|
return (_a = values == null ? void 0 : values.filter((v) => v !== void 0 && v !== null)) != null ? _a : [];
|
3362
3598
|
};
|
3363
|
-
var InputContainer =
|
3599
|
+
var InputContainer = React23.forwardRef(
|
3364
3600
|
(_a, ref) => {
|
3365
3601
|
var _b = _a, { variant = "default", className } = _b, props = __objRest(_b, ["variant", "className"]);
|
3366
|
-
return /* @__PURE__ */
|
3602
|
+
return /* @__PURE__ */ React23.createElement("div", __spreadValues({
|
3367
3603
|
ref,
|
3368
3604
|
className: classNames(
|
3369
3605
|
className,
|
@@ -3382,9 +3618,9 @@ var InputContainer = React19.forwardRef(
|
|
3382
3618
|
}, props));
|
3383
3619
|
}
|
3384
3620
|
);
|
3385
|
-
var Input =
|
3621
|
+
var Input = React23.forwardRef((_a, ref) => {
|
3386
3622
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
3387
|
-
return /* @__PURE__ */
|
3623
|
+
return /* @__PURE__ */ React23.createElement("input", __spreadValues({
|
3388
3624
|
ref,
|
3389
3625
|
type: "text",
|
3390
3626
|
className: classNames(
|
@@ -3398,39 +3634,39 @@ var Input = React19.forwardRef((_a, ref) => {
|
|
3398
3634
|
)
|
3399
3635
|
}, props));
|
3400
3636
|
});
|
3401
|
-
var Menu =
|
3637
|
+
var Menu = React23.forwardRef(
|
3402
3638
|
(_a, ref) => {
|
3403
3639
|
var _b = _a, { maxHeight = "450px", className, children } = _b, props = __objRest(_b, ["maxHeight", "className", "children"]);
|
3404
|
-
return /* @__PURE__ */
|
3640
|
+
return /* @__PURE__ */ React23.createElement("ul", __spreadValues({
|
3405
3641
|
ref,
|
3406
3642
|
style: { maxHeight },
|
3407
|
-
className
|
3643
|
+
className
|
3408
3644
|
}, props), children);
|
3409
3645
|
}
|
3410
3646
|
);
|
3411
|
-
var NoResults =
|
3647
|
+
var NoResults = React23.forwardRef(
|
3412
3648
|
(_a, ref) => {
|
3413
3649
|
var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
|
3414
|
-
return /* @__PURE__ */
|
3650
|
+
return /* @__PURE__ */ React23.createElement("li", __spreadProps(__spreadValues({
|
3415
3651
|
ref
|
3416
3652
|
}, rest), {
|
3417
3653
|
className: classNames(tw("p-3 text-grey-40 italic"), className)
|
3418
3654
|
}), children);
|
3419
3655
|
}
|
3420
3656
|
);
|
3421
|
-
var EmptyStateContainer2 =
|
3657
|
+
var EmptyStateContainer2 = React23.forwardRef((_a, ref) => {
|
3422
3658
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
3423
|
-
return /* @__PURE__ */
|
3659
|
+
return /* @__PURE__ */ React23.createElement("li", __spreadValues({
|
3424
3660
|
ref,
|
3425
3661
|
className: tw("border border-dashed border-grey-10 m-4 p-6")
|
3426
3662
|
}, props), children);
|
3427
3663
|
});
|
3428
|
-
var Divider = (props) => /* @__PURE__ */
|
3664
|
+
var Divider = (props) => /* @__PURE__ */ React23.createElement("div", __spreadValues({
|
3429
3665
|
className: tw("border-b-[1px] border-grey-5 mx-3 my-4")
|
3430
3666
|
}, props));
|
3431
|
-
var Group2 =
|
3667
|
+
var Group2 = React23.forwardRef((_a, ref) => {
|
3432
3668
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
3433
|
-
return /* @__PURE__ */
|
3669
|
+
return /* @__PURE__ */ React23.createElement("li", __spreadValues({
|
3434
3670
|
ref,
|
3435
3671
|
className: classNames(
|
3436
3672
|
className,
|
@@ -3441,53 +3677,53 @@ var Group2 = React19.forwardRef((_a, ref) => {
|
|
3441
3677
|
)
|
3442
3678
|
}, props), children);
|
3443
3679
|
});
|
3444
|
-
var Item2 =
|
3680
|
+
var Item2 = React23.forwardRef(
|
3445
3681
|
(_a, ref) => {
|
3446
3682
|
var _b = _a, { highlighted, selected, className, children } = _b, props = __objRest(_b, ["highlighted", "selected", "className", "children"]);
|
3447
|
-
return /* @__PURE__ */
|
3683
|
+
return /* @__PURE__ */ React23.createElement("li", __spreadValues({
|
3448
3684
|
ref,
|
3449
|
-
className: classNames(className, "flex items-center gap-x-3 p-3", {
|
3685
|
+
className: classNames(className, "flex items-center gap-x-3 p-3 typography-small", {
|
3450
3686
|
"cursor-pointer": !props.disabled,
|
3451
3687
|
"bg-grey-0": highlighted,
|
3452
3688
|
"text-grey-20": props.disabled,
|
3453
3689
|
"hover:bg-grey-0": !props.disabled
|
3454
3690
|
})
|
3455
|
-
}, props), /* @__PURE__ */
|
3691
|
+
}, props), /* @__PURE__ */ React23.createElement("span", {
|
3456
3692
|
className: tw("grow flex gap-x-3")
|
3457
|
-
}, children), selected && /* @__PURE__ */
|
3693
|
+
}, children), selected && /* @__PURE__ */ React23.createElement(InlineIcon, {
|
3458
3694
|
icon: import_tick3.default
|
3459
3695
|
}));
|
3460
3696
|
}
|
3461
3697
|
);
|
3462
|
-
var ActionItem =
|
3698
|
+
var ActionItem = React23.forwardRef(
|
3463
3699
|
(_a, ref) => {
|
3464
3700
|
var _b = _a, { className, dense, icon, onClick, children } = _b, props = __objRest(_b, ["className", "dense", "icon", "onClick", "children"]);
|
3465
|
-
return /* @__PURE__ */
|
3701
|
+
return /* @__PURE__ */ React23.createElement("li", __spreadValues({
|
3466
3702
|
ref,
|
3467
3703
|
role: "button",
|
3468
3704
|
onClick: () => !props.disabled && (onClick == null ? void 0 : onClick()),
|
3469
|
-
className: classNames(className, "flex items-center gap-x-3 text-primary-80", {
|
3705
|
+
className: classNames(className, "flex items-center gap-x-3 typography-small text-primary-80", {
|
3470
3706
|
"p-3": !dense,
|
3471
3707
|
"px-3 py-2": dense,
|
3472
3708
|
"cursor-pointer": !props.disabled,
|
3473
3709
|
"text-grey-20": props.disabled,
|
3474
3710
|
"hover:text-primary-70": !props.disabled
|
3475
3711
|
})
|
3476
|
-
}, props), icon && /* @__PURE__ */
|
3712
|
+
}, props), icon && /* @__PURE__ */ React23.createElement(InlineIcon, {
|
3477
3713
|
icon
|
3478
3714
|
}), children);
|
3479
3715
|
}
|
3480
3716
|
);
|
3481
|
-
var Toggle =
|
3717
|
+
var Toggle = React23.forwardRef((_a, ref) => {
|
3482
3718
|
var _b = _a, { hasFocus, isOpen } = _b, props = __objRest(_b, ["hasFocus", "isOpen"]);
|
3483
3719
|
var _a2;
|
3484
|
-
return /* @__PURE__ */
|
3720
|
+
return /* @__PURE__ */ React23.createElement("button", __spreadProps(__spreadValues({
|
3485
3721
|
ref,
|
3486
3722
|
type: "button",
|
3487
3723
|
"aria-label": "Toggle"
|
3488
3724
|
}, props), {
|
3489
3725
|
className: tw("grow-0 leading-none", { "cursor-not-allowed": (_a2 = props.disabled) != null ? _a2 : false })
|
3490
|
-
}), /* @__PURE__ */
|
3726
|
+
}), /* @__PURE__ */ React23.createElement(InlineIcon, {
|
3491
3727
|
color: props.disabled ? "grey-40" : "grey-70",
|
3492
3728
|
icon: hasFocus ? import_search.default : isOpen ? import_chevronUp.default : import_chevronDown2.default
|
3493
3729
|
}));
|
@@ -3506,11 +3742,11 @@ var Select = {
|
|
3506
3742
|
};
|
3507
3743
|
|
3508
3744
|
// src/common/Stepper/Stepper.tsx
|
3509
|
-
import
|
3745
|
+
import React24 from "react";
|
3510
3746
|
var import_tick4 = __toESM(require_tick());
|
3511
3747
|
var Stepper = (_a) => {
|
3512
3748
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
3513
|
-
return /* @__PURE__ */
|
3749
|
+
return /* @__PURE__ */ React24.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3514
3750
|
className: classNames(className)
|
3515
3751
|
}));
|
3516
3752
|
};
|
@@ -3524,7 +3760,7 @@ var ConnectorContainer = (_a) => {
|
|
3524
3760
|
"completed",
|
3525
3761
|
"dense"
|
3526
3762
|
]);
|
3527
|
-
return /* @__PURE__ */
|
3763
|
+
return /* @__PURE__ */ React24.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3528
3764
|
className: classNames(
|
3529
3765
|
tw("absolute w-full -left-1/2", {
|
3530
3766
|
"top-[3px] px-[14px]": Boolean(dense),
|
@@ -3536,7 +3772,7 @@ var ConnectorContainer = (_a) => {
|
|
3536
3772
|
};
|
3537
3773
|
var Connector = (_a) => {
|
3538
3774
|
var _b = _a, { children, className, completed, dense } = _b, rest = __objRest(_b, ["children", "className", "completed", "dense"]);
|
3539
|
-
return /* @__PURE__ */
|
3775
|
+
return /* @__PURE__ */ React24.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3540
3776
|
className: classNames(
|
3541
3777
|
tw("w-full", {
|
3542
3778
|
"bg-grey-20": !completed,
|
@@ -3550,7 +3786,7 @@ var Connector = (_a) => {
|
|
3550
3786
|
};
|
3551
3787
|
var Step = (_a) => {
|
3552
3788
|
var _b = _a, { className, state } = _b, rest = __objRest(_b, ["className", "state"]);
|
3553
|
-
return /* @__PURE__ */
|
3789
|
+
return /* @__PURE__ */ React24.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3554
3790
|
className: classNames(
|
3555
3791
|
tw("flex flex-col items-center text-grey-90 relative text-center", {
|
3556
3792
|
"text-grey-20": state === "inactive"
|
@@ -3571,13 +3807,13 @@ var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
|
|
3571
3807
|
});
|
3572
3808
|
var Indicator = (_a) => {
|
3573
3809
|
var _b = _a, { children, className, state, dense } = _b, rest = __objRest(_b, ["children", "className", "state", "dense"]);
|
3574
|
-
return /* @__PURE__ */
|
3810
|
+
return /* @__PURE__ */ React24.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3575
3811
|
className: classNames(
|
3576
3812
|
tw("rounded-full flex justify-center items-center mx-2 mb-3"),
|
3577
3813
|
dense ? getDenseClassNames(state) : getClassNames(state),
|
3578
3814
|
className
|
3579
3815
|
)
|
3580
|
-
}), state === "completed" ? /* @__PURE__ */
|
3816
|
+
}), state === "completed" ? /* @__PURE__ */ React24.createElement(InlineIcon, {
|
3581
3817
|
icon: import_tick4.default
|
3582
3818
|
}) : dense ? null : children);
|
3583
3819
|
};
|
@@ -3587,13 +3823,13 @@ ConnectorContainer.Connector = Connector;
|
|
3587
3823
|
Stepper.ConnectorContainer = ConnectorContainer;
|
3588
3824
|
|
3589
3825
|
// src/common/Switch/Switch.tsx
|
3590
|
-
import
|
3591
|
-
var Switch =
|
3826
|
+
import React25 from "react";
|
3827
|
+
var Switch = React25.forwardRef(
|
3592
3828
|
(_a, ref) => {
|
3593
3829
|
var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
|
3594
|
-
return /* @__PURE__ */
|
3830
|
+
return /* @__PURE__ */ React25.createElement("span", {
|
3595
3831
|
className: tw("relative inline-flex justify-center items-center self-center group")
|
3596
|
-
}, /* @__PURE__ */
|
3832
|
+
}, /* @__PURE__ */ React25.createElement("input", __spreadProps(__spreadValues({
|
3597
3833
|
id,
|
3598
3834
|
ref,
|
3599
3835
|
type: "checkbox",
|
@@ -3612,7 +3848,7 @@ var Switch = React21.forwardRef(
|
|
3612
3848
|
),
|
3613
3849
|
readOnly,
|
3614
3850
|
disabled
|
3615
|
-
})), /* @__PURE__ */
|
3851
|
+
})), /* @__PURE__ */ React25.createElement("span", {
|
3616
3852
|
className: tw(
|
3617
3853
|
"pointer-events-none rounded-full absolute inline-block transition duration-300 h-4 w-4 transform peer-checked/switch:translate-x-5",
|
3618
3854
|
"bg-white peer-disabled/switch:bg-grey-0 left-2 peer-checked/switch:left-1",
|
@@ -3625,32 +3861,32 @@ var Switch = React21.forwardRef(
|
|
3625
3861
|
);
|
3626
3862
|
|
3627
3863
|
// src/common/Table/Table.tsx
|
3628
|
-
import
|
3864
|
+
import React26 from "react";
|
3629
3865
|
var import_chevronDown3 = __toESM(require_chevronDown());
|
3630
3866
|
var import_chevronUp2 = __toESM(require_chevronUp());
|
3631
|
-
var HeadContext =
|
3867
|
+
var HeadContext = React26.createContext(null);
|
3632
3868
|
var tableClassNames = tw("w-full relative typography-default border-spacing-0");
|
3633
3869
|
var Table = (_a) => {
|
3634
3870
|
var _b = _a, { children, ariaLabel, className } = _b, rest = __objRest(_b, ["children", "ariaLabel", "className"]);
|
3635
|
-
return /* @__PURE__ */
|
3871
|
+
return /* @__PURE__ */ React26.createElement("table", __spreadProps(__spreadValues({}, rest), {
|
3636
3872
|
className: classNames(tableClassNames, className),
|
3637
3873
|
"aria-label": ariaLabel
|
3638
3874
|
}), children);
|
3639
3875
|
};
|
3640
3876
|
var TableHead = (_a) => {
|
3641
3877
|
var _b = _a, { children, sticky } = _b, rest = __objRest(_b, ["children", "sticky"]);
|
3642
|
-
return /* @__PURE__ */
|
3878
|
+
return /* @__PURE__ */ React26.createElement("thead", __spreadValues({}, rest), /* @__PURE__ */ React26.createElement("tr", null, /* @__PURE__ */ React26.createElement(HeadContext.Provider, {
|
3643
3879
|
value: { children, sticky }
|
3644
3880
|
}, children)));
|
3645
3881
|
};
|
3646
3882
|
var TableBody = (_a) => {
|
3647
3883
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
3648
|
-
return /* @__PURE__ */
|
3884
|
+
return /* @__PURE__ */ React26.createElement("tbody", __spreadValues({}, rest), children);
|
3649
3885
|
};
|
3650
3886
|
var rowClassNames = tw("children:border-grey-10 children:last:border-b-0 hover:bg-grey-0");
|
3651
3887
|
var TableRow = (_a) => {
|
3652
3888
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3653
|
-
return /* @__PURE__ */
|
3889
|
+
return /* @__PURE__ */ React26.createElement("tr", __spreadProps(__spreadValues({}, rest), {
|
3654
3890
|
className: classNames(rowClassNames, className)
|
3655
3891
|
}), children);
|
3656
3892
|
};
|
@@ -3666,25 +3902,25 @@ var getHeadCellClassNames = (sticky = true) => {
|
|
3666
3902
|
};
|
3667
3903
|
var TableCell = (_a) => {
|
3668
3904
|
var _b = _a, { children, className, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "align"]);
|
3669
|
-
const headContext =
|
3670
|
-
return headContext ? /* @__PURE__ */
|
3905
|
+
const headContext = React26.useContext(HeadContext);
|
3906
|
+
return headContext ? /* @__PURE__ */ React26.createElement("th", __spreadProps(__spreadValues({}, rest), {
|
3671
3907
|
className: classNames(
|
3672
3908
|
cellClassNames,
|
3673
3909
|
getHeadCellClassNames(headContext.sticky),
|
3674
3910
|
getAlignClassNames(align),
|
3675
3911
|
className
|
3676
3912
|
)
|
3677
|
-
}), children) : /* @__PURE__ */
|
3913
|
+
}), children) : /* @__PURE__ */ React26.createElement("td", __spreadProps(__spreadValues({}, rest), {
|
3678
3914
|
className: classNames(cellClassNames, getBodyCellClassNames(), getAlignClassNames(align), className)
|
3679
3915
|
}), children);
|
3680
3916
|
};
|
3681
3917
|
var TableSelectCell = (_a) => {
|
3682
3918
|
var _b = _a, { ariaLabel } = _b, props = __objRest(_b, ["ariaLabel"]);
|
3683
|
-
return /* @__PURE__ */
|
3919
|
+
return /* @__PURE__ */ React26.createElement(Table.Cell, {
|
3684
3920
|
className: tw("leading-[0px]")
|
3685
|
-
}, props.type === "radio" ? /* @__PURE__ */
|
3921
|
+
}, props.type === "radio" ? /* @__PURE__ */ React26.createElement(RadioButton, __spreadValues({
|
3686
3922
|
"aria-label": ariaLabel
|
3687
|
-
}, props)) : /* @__PURE__ */
|
3923
|
+
}, props)) : /* @__PURE__ */ React26.createElement(Checkbox, __spreadValues({
|
3688
3924
|
"aria-label": ariaLabel
|
3689
3925
|
}, props)));
|
3690
3926
|
};
|
@@ -3694,41 +3930,42 @@ var getSortCellIconClassNames = (active) => {
|
|
3694
3930
|
};
|
3695
3931
|
var TableSortCell = (_a) => {
|
3696
3932
|
var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
|
3697
|
-
return /* @__PURE__ */
|
3933
|
+
return /* @__PURE__ */ React26.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
|
3698
3934
|
"aria-sort": direction
|
3699
|
-
}), /* @__PURE__ */
|
3935
|
+
}), /* @__PURE__ */ React26.createElement("span", {
|
3700
3936
|
className: getSortCellButtonClassNames(rest.align),
|
3701
3937
|
role: "button",
|
3702
3938
|
tabIndex: -1,
|
3703
3939
|
onClick
|
3704
|
-
}, children, /* @__PURE__ */
|
3940
|
+
}, children, /* @__PURE__ */ React26.createElement("div", {
|
3705
3941
|
"data-sort-icons": true,
|
3706
3942
|
className: tw("flex flex-col", {
|
3707
3943
|
"invisible group-hover:visible": direction === "none"
|
3708
3944
|
})
|
3709
|
-
}, /* @__PURE__ */
|
3945
|
+
}, /* @__PURE__ */ React26.createElement(InlineIcon, {
|
3710
3946
|
icon: import_chevronUp2.default,
|
3711
3947
|
className: getSortCellIconClassNames(direction === "descending")
|
3712
|
-
}), /* @__PURE__ */
|
3948
|
+
}), /* @__PURE__ */ React26.createElement(InlineIcon, {
|
3713
3949
|
icon: import_chevronDown3.default,
|
3714
3950
|
className: getSortCellIconClassNames(direction === "ascending")
|
3715
3951
|
}))));
|
3716
3952
|
};
|
3717
|
-
var Item3 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */
|
3953
|
+
var Item3 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React26.createElement("div", {
|
3718
3954
|
className: tw("flex gap-4 items-center")
|
3719
|
-
}, image && /* @__PURE__ */
|
3955
|
+
}, image && /* @__PURE__ */ React26.createElement("img", {
|
3720
3956
|
src: image,
|
3721
3957
|
alt: imageAlt,
|
3722
3958
|
style: { width: imageSize, height: imageSize }
|
3723
|
-
}), /* @__PURE__ */
|
3724
|
-
Table.Head =
|
3725
|
-
Table.Body =
|
3726
|
-
Table.Row =
|
3727
|
-
Table.Cell =
|
3728
|
-
Table.SortCell =
|
3729
|
-
Table.SelectCell =
|
3959
|
+
}), /* @__PURE__ */ React26.createElement("div", null, title, caption && /* @__PURE__ */ React26.createElement(Typography2.Caption, null, caption)));
|
3960
|
+
Table.Head = React26.memo(TableHead);
|
3961
|
+
Table.Body = React26.memo(TableBody);
|
3962
|
+
Table.Row = React26.memo(TableRow);
|
3963
|
+
Table.Cell = React26.memo(TableCell);
|
3964
|
+
Table.SortCell = React26.memo(TableSortCell);
|
3965
|
+
Table.SelectCell = React26.memo(TableSelectCell);
|
3730
3966
|
export {
|
3731
3967
|
Alert,
|
3968
|
+
Card,
|
3732
3969
|
Checkbox,
|
3733
3970
|
Chip,
|
3734
3971
|
DIALOG_ICONS_AND_COLORS,
|