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