@aivenio/aquarium 1.22.0 → 1.24.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 +2 -2
- package/dist/_variables_timescale.scss +2 -2
- package/dist/atoms.cjs +251 -150
- package/dist/atoms.mjs +251 -150
- package/dist/src/atoms/DropdownMenu/DropdownMenu.d.ts +1 -0
- package/dist/src/atoms/DropdownMenu/DropdownMenu.js +6 -3
- package/dist/src/icons/loading.js +3 -3
- package/dist/src/molecules/Alert/Alert.js +2 -2
- package/dist/src/molecules/Badge/Badge.d.ts +5 -0
- package/dist/src/molecules/Badge/Badge.js +8 -1
- package/dist/src/molecules/Banner/Banner.d.ts +3 -3
- package/dist/src/molecules/Banner/Banner.js +4 -2
- package/dist/src/molecules/DataList/DataList.d.ts +8 -2
- package/dist/src/molecules/DataList/DataList.js +5 -3
- package/dist/src/molecules/DataList/DataListSkeleton.d.ts +8 -0
- package/dist/src/molecules/DataList/DataListSkeleton.js +15 -0
- package/dist/src/molecules/DataTable/DataTable.d.ts +8 -2
- package/dist/src/molecules/DataTable/DataTable.js +5 -3
- package/dist/src/molecules/DropdownMenu/DropdownMenu.d.ts +4 -0
- package/dist/src/molecules/DropdownMenu/DropdownMenu.js +3 -3
- package/dist/src/molecules/EmptyState/EmptyState.d.ts +5 -3
- package/dist/src/molecules/EmptyState/EmptyState.js +8 -3
- package/dist/src/molecules/ListItem/ListItem.js +3 -3
- package/dist/src/molecules/Navigation/Navigation.d.ts +6 -2
- package/dist/src/molecules/Navigation/Navigation.js +6 -3
- package/dist/src/molecules/PageHeader/PageHeader.d.ts +5 -3
- package/dist/src/molecules/PageHeader/PageHeader.js +6 -17
- package/dist/src/molecules/Section/Section.d.ts +3 -2
- package/dist/src/molecules/Section/Section.js +4 -16
- package/dist/src/molecules/Toast/Toast.d.ts +7 -1
- package/dist/src/molecules/Toast/Toast.js +2 -2
- package/dist/src/utils/ContrastRatio.d.ts +11 -0
- package/dist/src/utils/ContrastRatio.js +54 -0
- package/dist/src/utils/link.d.ts +2 -0
- package/dist/src/utils/link.js +2 -0
- package/dist/src/utils/table/types.d.ts +4 -0
- package/dist/styles.css +17 -13
- package/dist/styles_timescaledb.css +17 -13
- package/dist/system.cjs +575 -487
- package/dist/system.mjs +534 -447
- package/dist/tailwind.config.js +0 -3
- package/dist/tailwind.theme.json +2 -2
- package/dist/tokens.json +4 -2
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/ActionType.d.ts +1 -0
- package/dist/types/tailwindGenerated.d.ts +1 -1
- package/package.json +1 -1
package/dist/atoms.mjs
CHANGED
@@ -2358,11 +2358,11 @@ var require_loading = __commonJS({
|
|
2358
2358
|
"src/icons/loading.js"(exports) {
|
2359
2359
|
"use strict";
|
2360
2360
|
var data = {
|
2361
|
-
"body": '<g fill="none" fill-rule="evenodd" stroke="currentColor" stroke-width="
|
2361
|
+
"body": '<g fill="none" fill-rule="evenodd" stroke="currentColor" stroke-width="2" transform="translate(1 1)"><circle cx="18" cy="18" r="18" stroke-opacity=".5"/><path d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" dur="1s" from="0 18 18" repeatCount="indefinite" to="360 18 18" type="rotate"/></path></g>',
|
2362
2362
|
"left": 0,
|
2363
2363
|
"top": 0,
|
2364
|
-
"width":
|
2365
|
-
"height":
|
2364
|
+
"width": 38,
|
2365
|
+
"height": 38
|
2366
2366
|
};
|
2367
2367
|
exports.__esModule = true;
|
2368
2368
|
exports.default = data;
|
@@ -3867,7 +3867,8 @@ var require_tokens = __commonJS({
|
|
3867
3867
|
"primary-20": "#b4e5fb",
|
3868
3868
|
"primary-10": "#e0f5fe",
|
3869
3869
|
"primary-5": "#effaff",
|
3870
|
-
"primary-0": "#f9fdff"
|
3870
|
+
"primary-0": "#f9fdff",
|
3871
|
+
"navyBlue-100": "#30375e"
|
3871
3872
|
},
|
3872
3873
|
typography: {
|
3873
3874
|
sizes: [
|
@@ -4427,7 +4428,8 @@ var require_tokens = __commonJS({
|
|
4427
4428
|
"primary-10": "#ffdeef",
|
4428
4429
|
"primary-5": "#ffe8f4",
|
4429
4430
|
"primary-0": "#fff9fc",
|
4430
|
-
"grey-20": "#d2d2d6"
|
4431
|
+
"grey-20": "#d2d2d6",
|
4432
|
+
"navyBlue-100": "#30375e"
|
4431
4433
|
},
|
4432
4434
|
typography: {
|
4433
4435
|
sizes: [
|
@@ -5301,11 +5303,11 @@ var tailwind_theme_default = {
|
|
5301
5303
|
"primary-5": "var(--aquarium-colors-primary-5, #ffe8f4)",
|
5302
5304
|
"primary-0": "var(--aquarium-colors-primary-0, #fff9fc)",
|
5303
5305
|
"grey-20": "var(--aquarium-colors-grey-20, #d2d2d6)",
|
5306
|
+
"navyBlue-100": "var(--aquarium-colors-navyBlue-100, #30375e)",
|
5304
5307
|
transparent: "var(--aquarium-colors-transparent, transparent)",
|
5305
5308
|
white: "var(--aquarium-colors-white, white)",
|
5306
5309
|
black: "var(--aquarium-colors-black, black)",
|
5307
|
-
current: "var(--aquarium-colors-current, currentColor)"
|
5308
|
-
"navyBlue-100": "#30375E"
|
5310
|
+
current: "var(--aquarium-colors-current, currentColor)"
|
5309
5311
|
},
|
5310
5312
|
gap: {
|
5311
5313
|
"0": "0",
|
@@ -6985,119 +6987,216 @@ var DIALOG_ICONS_AND_COLORS = {
|
|
6985
6987
|
};
|
6986
6988
|
|
6987
6989
|
// src/atoms/DropdownMenu/DropdownMenu.tsx
|
6990
|
+
import React23 from "react";
|
6991
|
+
|
6992
|
+
// src/molecules/Badge/Badge.tsx
|
6988
6993
|
import React21 from "react";
|
6994
|
+
import omit from "lodash/omit";
|
6989
6995
|
|
6990
|
-
// src/molecules/
|
6996
|
+
// src/molecules/Skeleton/Skeleton.tsx
|
6991
6997
|
import React20 from "react";
|
6992
|
-
|
6998
|
+
import isNumber2 from "lodash/isNumber";
|
6999
|
+
import isUndefined7 from "lodash/isUndefined";
|
7000
|
+
var Skeleton = ({
|
7001
|
+
width,
|
7002
|
+
height,
|
7003
|
+
display = "block",
|
7004
|
+
className,
|
7005
|
+
animate = true,
|
7006
|
+
rounded = false
|
7007
|
+
}) => {
|
7008
|
+
const styles = {
|
7009
|
+
width: isNumber2(width) ? `${width}px` : width,
|
7010
|
+
height: isNumber2(height) ? `${height}px` : height
|
7011
|
+
};
|
7012
|
+
return /* @__PURE__ */ React20.createElement("div", {
|
7013
|
+
style: styles,
|
7014
|
+
className: classNames(
|
7015
|
+
"Aquarium-Skeleton",
|
7016
|
+
tw("bg-grey-5", {
|
7017
|
+
"h-auto before:content-['_'] whitespace-pre origin-[0%_45%] scale-[0.55]": isUndefined7(height),
|
7018
|
+
"rounded-full": rounded,
|
7019
|
+
"block": display === "block",
|
7020
|
+
"inline-block": display === "inline-block",
|
7021
|
+
"animate-pulse": animate
|
7022
|
+
}),
|
7023
|
+
className
|
7024
|
+
)
|
7025
|
+
});
|
7026
|
+
};
|
7027
|
+
|
7028
|
+
// src/molecules/Badge/Badge.tsx
|
7029
|
+
var isChipBadgeProps = (props) => "dense" in props;
|
7030
|
+
var createBadge = (type, displayName) => {
|
7031
|
+
const Component = (props) => {
|
7032
|
+
var _b;
|
7033
|
+
const _a = props, { kind = "filled", value, textClassname } = _a, rest = __objRest(_a, ["kind", "value", "textClassname"]);
|
7034
|
+
const valueStr = value.toString();
|
7035
|
+
const dense = isChipBadgeProps(props) ? (_b = props.dense) != null ? _b : false : false;
|
7036
|
+
return /* @__PURE__ */ React21.createElement("span", __spreadProps(__spreadValues({}, omit(rest, "dense")), {
|
7037
|
+
className: classNames(
|
7038
|
+
tw("inline-block text-center", {
|
7039
|
+
"rounded-full": type === "default" || type === "chip",
|
7040
|
+
"rounded": type === "tab",
|
7041
|
+
"border border-current": kind === "outlined",
|
7042
|
+
"bg-current": kind === "filled" && type !== "chip",
|
7043
|
+
"bg-white": type === "chip",
|
7044
|
+
"typography-caption-small leading-none py-1 px-2": !dense,
|
7045
|
+
"text-[8px]": dense,
|
7046
|
+
"px-1": dense && valueStr.length > 1,
|
7047
|
+
"px-[4px]": dense && valueStr.length === 1
|
7048
|
+
}),
|
7049
|
+
"Aquarium-Badge"
|
7050
|
+
)
|
7051
|
+
}), /* @__PURE__ */ React21.createElement("span", {
|
7052
|
+
className: classNames(
|
7053
|
+
textClassname,
|
7054
|
+
tw("inline-block", {
|
7055
|
+
"text-white": !textClassname && kind === "filled",
|
7056
|
+
"m-[1px]": kind === "filled"
|
7057
|
+
})
|
7058
|
+
)
|
7059
|
+
}, valueStr));
|
7060
|
+
};
|
7061
|
+
Component.displayName = displayName;
|
7062
|
+
Component.Skeleton = () => /* @__PURE__ */ React21.createElement(Skeleton, {
|
7063
|
+
height: 16,
|
7064
|
+
width: 16,
|
7065
|
+
display: "inline-block",
|
7066
|
+
className: tw(type === "tab" ? "rounded" : "rounded-full")
|
7067
|
+
});
|
7068
|
+
Component.Skeleton.displayName = `${displayName}.Skeleton`;
|
7069
|
+
return Component;
|
7070
|
+
};
|
7071
|
+
var NotificationBadge = ({
|
7072
|
+
children,
|
7073
|
+
top = "-2px",
|
7074
|
+
right = "-2px"
|
7075
|
+
}) => {
|
7076
|
+
return /* @__PURE__ */ React21.createElement("div", {
|
7077
|
+
className: tw("relative inline-flex")
|
7078
|
+
}, children, /* @__PURE__ */ React21.createElement("span", {
|
7079
|
+
style: { top, right },
|
7080
|
+
className: tw("absolute rounded-full w-[6px] h-[6px] bg-error-70")
|
7081
|
+
}));
|
7082
|
+
};
|
7083
|
+
var Badge = createBadge("default", "Badge");
|
7084
|
+
Badge.Notification = NotificationBadge;
|
7085
|
+
Badge.Notification.displayName = "Badge.Notification";
|
7086
|
+
var TabBadge = createBadge("tab", "TabBadge");
|
7087
|
+
var ChipBadge = createBadge("chip", "ChipBadge");
|
7088
|
+
|
7089
|
+
// src/molecules/Typography/Typography.tsx
|
7090
|
+
import React22 from "react";
|
7091
|
+
var Typography2 = (props) => /* @__PURE__ */ React22.createElement(Typography, __spreadValues({}, props));
|
6993
7092
|
Typography2.LargeHeading = (_a) => {
|
6994
7093
|
var _b = _a, { htmlTag = "h1" } = _b, props = __objRest(_b, ["htmlTag"]);
|
6995
|
-
return /* @__PURE__ */
|
7094
|
+
return /* @__PURE__ */ React22.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
6996
7095
|
htmlTag,
|
6997
7096
|
variant: "large-heading"
|
6998
7097
|
}));
|
6999
7098
|
};
|
7000
7099
|
Typography2.Heading = (_a) => {
|
7001
7100
|
var _b = _a, { htmlTag = "h1", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
|
7002
|
-
return /* @__PURE__ */
|
7101
|
+
return /* @__PURE__ */ React22.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
7003
7102
|
htmlTag,
|
7004
7103
|
variant: "heading"
|
7005
7104
|
}));
|
7006
7105
|
};
|
7007
7106
|
Typography2.Subheading = (_a) => {
|
7008
7107
|
var _b = _a, { htmlTag = "h2", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
|
7009
|
-
return /* @__PURE__ */
|
7108
|
+
return /* @__PURE__ */ React22.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
7010
7109
|
htmlTag,
|
7011
7110
|
variant: "subheading"
|
7012
7111
|
}));
|
7013
7112
|
};
|
7014
7113
|
Typography2.LargeStrong = (_a) => {
|
7015
7114
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7016
|
-
return /* @__PURE__ */
|
7115
|
+
return /* @__PURE__ */ React22.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
7017
7116
|
htmlTag,
|
7018
7117
|
variant: "large-strong"
|
7019
7118
|
}));
|
7020
7119
|
};
|
7021
7120
|
Typography2.Large = (_a) => {
|
7022
7121
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7023
|
-
return /* @__PURE__ */
|
7122
|
+
return /* @__PURE__ */ React22.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
7024
7123
|
htmlTag,
|
7025
7124
|
variant: "large"
|
7026
7125
|
}));
|
7027
7126
|
};
|
7028
7127
|
Typography2.DefaultStrong = (_a) => {
|
7029
7128
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7030
|
-
return /* @__PURE__ */
|
7129
|
+
return /* @__PURE__ */ React22.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
7031
7130
|
htmlTag,
|
7032
7131
|
variant: "default-strong"
|
7033
7132
|
}));
|
7034
7133
|
};
|
7035
7134
|
Typography2.Default = (_a) => {
|
7036
7135
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7037
|
-
return /* @__PURE__ */
|
7136
|
+
return /* @__PURE__ */ React22.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
7038
7137
|
htmlTag,
|
7039
7138
|
variant: "default"
|
7040
7139
|
}));
|
7041
7140
|
};
|
7042
7141
|
Typography2.Paragraph = (_a) => {
|
7043
7142
|
var _b = _a, { htmlTag = "p", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
|
7044
|
-
return /* @__PURE__ */
|
7143
|
+
return /* @__PURE__ */ React22.createElement(Typography2.Default, __spreadProps(__spreadValues({}, props), {
|
7045
7144
|
htmlTag
|
7046
7145
|
}));
|
7047
7146
|
};
|
7048
7147
|
Typography2.P = Typography2.Paragraph;
|
7049
7148
|
Typography2.SmallStrong = (_a) => {
|
7050
7149
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7051
|
-
return /* @__PURE__ */
|
7150
|
+
return /* @__PURE__ */ React22.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
7052
7151
|
htmlTag,
|
7053
7152
|
variant: "small-strong"
|
7054
7153
|
}));
|
7055
7154
|
};
|
7056
7155
|
Typography2.Small = (_a) => {
|
7057
7156
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7058
|
-
return /* @__PURE__ */
|
7157
|
+
return /* @__PURE__ */ React22.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
7059
7158
|
htmlTag,
|
7060
7159
|
variant: "small"
|
7061
7160
|
}));
|
7062
7161
|
};
|
7063
7162
|
Typography2.Caption = (_a) => {
|
7064
7163
|
var _b = _a, { htmlTag = "div", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
|
7065
|
-
return /* @__PURE__ */
|
7164
|
+
return /* @__PURE__ */ React22.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
7066
7165
|
htmlTag,
|
7067
7166
|
variant: "caption"
|
7068
7167
|
}));
|
7069
7168
|
};
|
7070
7169
|
Typography2.LargeText = (_a) => {
|
7071
7170
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7072
|
-
return /* @__PURE__ */
|
7171
|
+
return /* @__PURE__ */ React22.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
7073
7172
|
htmlTag,
|
7074
7173
|
variant: "large-strong"
|
7075
7174
|
}));
|
7076
7175
|
};
|
7077
7176
|
Typography2.MediumText = (_a) => {
|
7078
7177
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7079
|
-
return /* @__PURE__ */
|
7178
|
+
return /* @__PURE__ */ React22.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
7080
7179
|
htmlTag,
|
7081
7180
|
variant: "default-strong"
|
7082
7181
|
}));
|
7083
7182
|
};
|
7084
7183
|
Typography2.Text = (_a) => {
|
7085
7184
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7086
|
-
return /* @__PURE__ */
|
7185
|
+
return /* @__PURE__ */ React22.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
7087
7186
|
htmlTag,
|
7088
7187
|
variant: "default"
|
7089
7188
|
}));
|
7090
7189
|
};
|
7091
7190
|
Typography2.SmallText = (_a) => {
|
7092
7191
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7093
|
-
return /* @__PURE__ */
|
7192
|
+
return /* @__PURE__ */ React22.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
7094
7193
|
htmlTag,
|
7095
7194
|
variant: "small"
|
7096
7195
|
}));
|
7097
7196
|
};
|
7098
7197
|
Typography2.SmallTextBold = (_a) => {
|
7099
7198
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
7100
|
-
return /* @__PURE__ */
|
7199
|
+
return /* @__PURE__ */ React22.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
7101
7200
|
htmlTag,
|
7102
7201
|
variant: "small-strong"
|
7103
7202
|
}));
|
@@ -7105,36 +7204,36 @@ Typography2.SmallTextBold = (_a) => {
|
|
7105
7204
|
|
7106
7205
|
// src/atoms/DropdownMenu/DropdownMenu.tsx
|
7107
7206
|
var import_tick3 = __toESM(require_tick());
|
7108
|
-
var DropdownMenu =
|
7207
|
+
var DropdownMenu = React23.forwardRef(
|
7109
7208
|
(_a, ref) => {
|
7110
7209
|
var _b = _a, { maxHeight = "450px", minWidth = "125px", maxWidth, className, children } = _b, props = __objRest(_b, ["maxHeight", "minWidth", "maxWidth", "className", "children"]);
|
7111
|
-
return /* @__PURE__ */
|
7210
|
+
return /* @__PURE__ */ React23.createElement("div", __spreadValues({
|
7112
7211
|
ref,
|
7113
7212
|
style: { maxHeight, minWidth, maxWidth },
|
7114
7213
|
className: classNames(className, "bg-white w-full flex flex-col overflow-x-hidden typography-small text-grey-70")
|
7115
7214
|
}, props), children);
|
7116
7215
|
}
|
7117
7216
|
);
|
7118
|
-
var ContentContainer = ({ children }) => /* @__PURE__ */
|
7217
|
+
var ContentContainer = ({ children }) => /* @__PURE__ */ React23.createElement("div", {
|
7119
7218
|
className: tw("p-3 overflow-y-auto overflow-x-hidden")
|
7120
7219
|
}, children);
|
7121
7220
|
DropdownMenu.ContentContainer = ContentContainer;
|
7122
|
-
var List =
|
7221
|
+
var List = React23.forwardRef(
|
7123
7222
|
(_a, ref) => {
|
7124
7223
|
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
7125
|
-
return /* @__PURE__ */
|
7224
|
+
return /* @__PURE__ */ React23.createElement("ul", __spreadValues({
|
7126
7225
|
ref,
|
7127
7226
|
className: classNames(className, "outline-none ring-0")
|
7128
7227
|
}, props), children);
|
7129
7228
|
}
|
7130
7229
|
);
|
7131
7230
|
DropdownMenu.List = List;
|
7132
|
-
var Group =
|
7231
|
+
var Group = React23.forwardRef(
|
7133
7232
|
(_a, ref) => {
|
7134
7233
|
var _b = _a, { className, title, titleProps, children } = _b, props = __objRest(_b, ["className", "title", "titleProps", "children"]);
|
7135
|
-
return /* @__PURE__ */
|
7234
|
+
return /* @__PURE__ */ React23.createElement("li", __spreadValues({
|
7136
7235
|
ref
|
7137
|
-
}, props), title && /* @__PURE__ */
|
7236
|
+
}, props), title && /* @__PURE__ */ React23.createElement("div", __spreadValues({
|
7138
7237
|
className: classNames(className, "p-3 text-grey-40 uppercase cursor-default typography-caption", {
|
7139
7238
|
"text-grey-20": props.disabled
|
7140
7239
|
})
|
@@ -7142,10 +7241,10 @@ var Group = React21.forwardRef(
|
|
7142
7241
|
}
|
7143
7242
|
);
|
7144
7243
|
DropdownMenu.Group = Group;
|
7145
|
-
var Item =
|
7244
|
+
var Item = React23.forwardRef(
|
7146
7245
|
(_a, ref) => {
|
7147
|
-
var _b = _a, { kind, highlighted, selected, className, icon, children } = _b, props = __objRest(_b, ["kind", "highlighted", "selected", "className", "icon", "children"]);
|
7148
|
-
return /* @__PURE__ */
|
7246
|
+
var _b = _a, { kind, highlighted, selected, className, icon, showNotification = false, children } = _b, props = __objRest(_b, ["kind", "highlighted", "selected", "className", "icon", "showNotification", "children"]);
|
7247
|
+
return /* @__PURE__ */ React23.createElement("li", __spreadValues({
|
7149
7248
|
ref,
|
7150
7249
|
className: classNames(className, "flex items-center gap-x-3 p-3 outline-none", {
|
7151
7250
|
"cursor-pointer hover:bg-grey-0": !props.disabled,
|
@@ -7153,40 +7252,42 @@ var Item = React21.forwardRef(
|
|
7153
7252
|
"text-primary-80": kind === "action",
|
7154
7253
|
"text-grey-20 cursor-not-allowed": props.disabled
|
7155
7254
|
})
|
7156
|
-
}, props), icon && /* @__PURE__ */
|
7255
|
+
}, props), icon && showNotification && /* @__PURE__ */ React23.createElement(Badge.Notification, null, /* @__PURE__ */ React23.createElement(InlineIcon, {
|
7157
7256
|
icon
|
7158
|
-
}), /* @__PURE__ */
|
7257
|
+
})), icon && !showNotification && /* @__PURE__ */ React23.createElement(InlineIcon, {
|
7258
|
+
icon
|
7259
|
+
}), /* @__PURE__ */ React23.createElement("span", {
|
7159
7260
|
className: tw("grow")
|
7160
|
-
}, children), selected && /* @__PURE__ */
|
7261
|
+
}, children), selected && /* @__PURE__ */ React23.createElement(InlineIcon, {
|
7161
7262
|
icon: import_tick3.default
|
7162
7263
|
}));
|
7163
7264
|
}
|
7164
7265
|
);
|
7165
7266
|
DropdownMenu.Item = Item;
|
7166
|
-
var Description = ({ disabled, children }) => /* @__PURE__ */
|
7267
|
+
var Description = ({ disabled, children }) => /* @__PURE__ */ React23.createElement(Typography2.Caption, {
|
7167
7268
|
color: disabled ? "grey-20" : "grey-40"
|
7168
7269
|
}, children);
|
7169
7270
|
DropdownMenu.Description = Description;
|
7170
7271
|
var Separator = (_a) => {
|
7171
7272
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
7172
|
-
return /* @__PURE__ */
|
7273
|
+
return /* @__PURE__ */ React23.createElement("li", __spreadProps(__spreadValues({}, props), {
|
7173
7274
|
className: classNames(className, tw("m-3 block bg-grey-5 h-[1px]"))
|
7174
7275
|
}));
|
7175
7276
|
};
|
7176
7277
|
DropdownMenu.Separator = Separator;
|
7177
7278
|
var EmptyStateContainer = (_a) => {
|
7178
7279
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
7179
|
-
return /* @__PURE__ */
|
7280
|
+
return /* @__PURE__ */ React23.createElement("div", __spreadValues({
|
7180
7281
|
className: classNames(tw("border border-dashed border-grey-10 p-3"), className)
|
7181
7282
|
}, props), children);
|
7182
7283
|
};
|
7183
7284
|
DropdownMenu.EmptyStateContainer = EmptyStateContainer;
|
7184
7285
|
|
7185
7286
|
// src/atoms/InputGroup/InputGroup.tsx
|
7186
|
-
import
|
7287
|
+
import React25 from "react";
|
7187
7288
|
|
7188
7289
|
// src/molecules/Grid/Grid.tsx
|
7189
|
-
import
|
7290
|
+
import React24 from "react";
|
7190
7291
|
var Grid = Tailwindify(
|
7191
7292
|
({
|
7192
7293
|
htmlTag = "div",
|
@@ -7239,7 +7340,7 @@ var Grid = Tailwindify(
|
|
7239
7340
|
gridRowEnd: rowEnd
|
7240
7341
|
});
|
7241
7342
|
const HtmlElement = htmlTag;
|
7242
|
-
return /* @__PURE__ */
|
7343
|
+
return /* @__PURE__ */ React24.createElement(HtmlElement, {
|
7243
7344
|
style: __spreadValues(__spreadValues({}, hookStyle), style),
|
7244
7345
|
className
|
7245
7346
|
}, children);
|
@@ -7255,7 +7356,7 @@ var gridColumnStyles = {
|
|
7255
7356
|
};
|
7256
7357
|
var InputGroup = (_a) => {
|
7257
7358
|
var _b = _a, { cols = "1", children } = _b, rest = __objRest(_b, ["cols", "children"]);
|
7258
|
-
return /* @__PURE__ */
|
7359
|
+
return /* @__PURE__ */ React25.createElement(Grid, __spreadProps(__spreadValues({}, rest), {
|
7259
7360
|
display: "inline-grid",
|
7260
7361
|
colGap: "l4",
|
7261
7362
|
rowGap: "3",
|
@@ -7265,19 +7366,19 @@ var InputGroup = (_a) => {
|
|
7265
7366
|
};
|
7266
7367
|
|
7267
7368
|
// src/atoms/Link/Link.tsx
|
7268
|
-
import
|
7369
|
+
import React26 from "react";
|
7269
7370
|
var Link = (_a) => {
|
7270
7371
|
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
7271
|
-
return /* @__PURE__ */
|
7372
|
+
return /* @__PURE__ */ React26.createElement("a", __spreadValues({
|
7272
7373
|
className: classNames(className, linkStyle)
|
7273
7374
|
}, props), children);
|
7274
7375
|
};
|
7275
7376
|
|
7276
7377
|
// src/atoms/Modal/Modal.tsx
|
7277
|
-
import
|
7378
|
+
import React27 from "react";
|
7278
7379
|
var Modal = (_a) => {
|
7279
7380
|
var _b = _a, { children, className, open } = _b, rest = __objRest(_b, ["children", "className", "open"]);
|
7280
|
-
return open ? /* @__PURE__ */
|
7381
|
+
return open ? /* @__PURE__ */ React27.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7281
7382
|
className: classNames(
|
7282
7383
|
tw("inset-0 overflow-y-auto z-modal flex justify-center items-center fixed py-7"),
|
7283
7384
|
className
|
@@ -7286,14 +7387,14 @@ var Modal = (_a) => {
|
|
7286
7387
|
};
|
7287
7388
|
Modal.BackDrop = (_a) => {
|
7288
7389
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7289
|
-
return /* @__PURE__ */
|
7390
|
+
return /* @__PURE__ */ React27.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7290
7391
|
className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-navyBlue-100 opacity-70"), className)
|
7291
7392
|
}));
|
7292
7393
|
};
|
7293
|
-
Modal.Dialog =
|
7394
|
+
Modal.Dialog = React27.forwardRef(
|
7294
7395
|
(_a, ref) => {
|
7295
7396
|
var _b = _a, { children, className, size = "sm" } = _b, rest = __objRest(_b, ["children", "className", "size"]);
|
7296
|
-
return /* @__PURE__ */
|
7397
|
+
return /* @__PURE__ */ React27.createElement("div", __spreadProps(__spreadValues({
|
7297
7398
|
ref,
|
7298
7399
|
"aria-modal": "true"
|
7299
7400
|
}, rest), {
|
@@ -7311,31 +7412,31 @@ Modal.Dialog = React25.forwardRef(
|
|
7311
7412
|
);
|
7312
7413
|
Modal.Header = (_a) => {
|
7313
7414
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7314
|
-
return /* @__PURE__ */
|
7415
|
+
return /* @__PURE__ */ React27.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7315
7416
|
className: classNames(tw("px-7 py-6 gap-3 flex items-center"), className)
|
7316
7417
|
}), children);
|
7317
7418
|
};
|
7318
7419
|
Modal.HeaderImage = (_a) => {
|
7319
7420
|
var _b = _a, { backgroundImage, className } = _b, rest = __objRest(_b, ["backgroundImage", "className"]);
|
7320
7421
|
const common = tw("h-[120px] min-h-[120px] w-full ");
|
7321
|
-
return backgroundImage ? /* @__PURE__ */
|
7422
|
+
return backgroundImage ? /* @__PURE__ */ React27.createElement("img", __spreadProps(__spreadValues({
|
7322
7423
|
"aria-hidden": true,
|
7323
7424
|
src: backgroundImage != null ? backgroundImage : void 0
|
7324
7425
|
}, rest), {
|
7325
7426
|
className: classNames(common, tw("object-cover"), className)
|
7326
|
-
})) : /* @__PURE__ */
|
7427
|
+
})) : /* @__PURE__ */ React27.createElement("div", {
|
7327
7428
|
className: classNames(common, tw("bg-grey-5"), className)
|
7328
7429
|
});
|
7329
7430
|
};
|
7330
7431
|
Modal.CloseButtonContainer = (_a) => {
|
7331
7432
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7332
|
-
return /* @__PURE__ */
|
7433
|
+
return /* @__PURE__ */ React27.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7333
7434
|
className: classNames(tw("absolute top-[20px] right-[28px]"), className)
|
7334
7435
|
}));
|
7335
7436
|
};
|
7336
7437
|
Modal.Title = (_a) => {
|
7337
7438
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7338
|
-
return /* @__PURE__ */
|
7439
|
+
return /* @__PURE__ */ React27.createElement(Typography, __spreadValues({
|
7339
7440
|
htmlTag: "h2",
|
7340
7441
|
variant: "subheading",
|
7341
7442
|
color: "grey-90",
|
@@ -7344,77 +7445,77 @@ Modal.Title = (_a) => {
|
|
7344
7445
|
};
|
7345
7446
|
Modal.Subtitle = (_a) => {
|
7346
7447
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
7347
|
-
return /* @__PURE__ */
|
7448
|
+
return /* @__PURE__ */ React27.createElement(Typography, __spreadValues({
|
7348
7449
|
variant: "small",
|
7349
7450
|
color: "grey-60"
|
7350
7451
|
}, rest), children);
|
7351
7452
|
};
|
7352
7453
|
Modal.TitleContainer = (_a) => {
|
7353
7454
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7354
|
-
return /* @__PURE__ */
|
7455
|
+
return /* @__PURE__ */ React27.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7355
7456
|
className: classNames(tw("flex flex-col grow gap-2"), className)
|
7356
7457
|
}), children);
|
7357
7458
|
};
|
7358
7459
|
Modal.Body = (_a) => {
|
7359
7460
|
var _b = _a, { children, className, noFooter = false, maxHeight, style } = _b, rest = __objRest(_b, ["children", "className", "noFooter", "maxHeight", "style"]);
|
7360
|
-
return /* @__PURE__ */
|
7461
|
+
return /* @__PURE__ */ React27.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7361
7462
|
className: classNames(tw("px-7 grow overflow-y-auto", { "pb-6": noFooter }), className),
|
7362
7463
|
style: __spreadValues({ maxHeight }, style)
|
7363
7464
|
}), children);
|
7364
7465
|
};
|
7365
7466
|
Modal.Footer = (_a) => {
|
7366
7467
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7367
|
-
return /* @__PURE__ */
|
7468
|
+
return /* @__PURE__ */ React27.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7368
7469
|
className: classNames(tw("px-7 py-6"), className)
|
7369
7470
|
}), children);
|
7370
7471
|
};
|
7371
7472
|
Modal.Actions = (_a) => {
|
7372
7473
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7373
|
-
return /* @__PURE__ */
|
7474
|
+
return /* @__PURE__ */ React27.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7374
7475
|
className: classNames(tw("flex gap-4 justify-end"), className)
|
7375
7476
|
}), children);
|
7376
7477
|
};
|
7377
7478
|
|
7378
7479
|
// src/atoms/Navigation/Navigation.tsx
|
7379
|
-
import
|
7480
|
+
import React28 from "react";
|
7380
7481
|
var Navigation = (_a) => {
|
7381
7482
|
var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
|
7382
|
-
return /* @__PURE__ */
|
7483
|
+
return /* @__PURE__ */ React28.createElement("nav", {
|
7383
7484
|
className: classNames(tw("bg-grey-0 h-full"))
|
7384
|
-
}, /* @__PURE__ */
|
7485
|
+
}, /* @__PURE__ */ React28.createElement("ul", __spreadProps(__spreadValues({}, rest), {
|
7385
7486
|
className: classNames(tw("flex flex-col h-full"), className),
|
7386
7487
|
role: "menu"
|
7387
7488
|
}), children));
|
7388
7489
|
};
|
7389
7490
|
var Header = (_a) => {
|
7390
7491
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7391
|
-
return /* @__PURE__ */
|
7492
|
+
return /* @__PURE__ */ React28.createElement("li", __spreadProps(__spreadValues({}, rest), {
|
7392
7493
|
role: "presentation",
|
7393
7494
|
className: classNames(tw("px-6 py-5"), className)
|
7394
7495
|
}));
|
7395
7496
|
};
|
7396
7497
|
var Footer = (_a) => {
|
7397
7498
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7398
|
-
return /* @__PURE__ */
|
7499
|
+
return /* @__PURE__ */ React28.createElement("li", __spreadProps(__spreadValues({}, rest), {
|
7399
7500
|
role: "presentation",
|
7400
7501
|
className: classNames(tw("px-6 py-5 mt-auto"), className)
|
7401
7502
|
}));
|
7402
7503
|
};
|
7403
7504
|
var Section = (_a) => {
|
7404
7505
|
var _b = _a, { title, className } = _b, rest = __objRest(_b, ["title", "className"]);
|
7405
|
-
return /* @__PURE__ */
|
7506
|
+
return /* @__PURE__ */ React28.createElement("li", {
|
7406
7507
|
role: "presentation",
|
7407
7508
|
className: tw("py-5")
|
7408
|
-
}, title && /* @__PURE__ */
|
7509
|
+
}, title && /* @__PURE__ */ React28.createElement("div", {
|
7409
7510
|
className: classNames(className, "py-2 px-6 text-grey-40 uppercase cursor-default typography-caption")
|
7410
|
-
}, title), /* @__PURE__ */
|
7511
|
+
}, title), /* @__PURE__ */ React28.createElement("ul", __spreadProps(__spreadValues({}, rest), {
|
7411
7512
|
role: "group",
|
7412
7513
|
className: classNames(tw("flex flex-col"), className)
|
7413
7514
|
})));
|
7414
7515
|
};
|
7415
7516
|
var Divider = (_a) => {
|
7416
7517
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7417
|
-
return /* @__PURE__ */
|
7518
|
+
return /* @__PURE__ */ React28.createElement("li", __spreadProps(__spreadValues({
|
7418
7519
|
role: "separator"
|
7419
7520
|
}, rest), {
|
7420
7521
|
className: classNames(tw("border-t-2 border-grey-5"), className)
|
@@ -7422,9 +7523,9 @@ var Divider = (_a) => {
|
|
7422
7523
|
};
|
7423
7524
|
var Item2 = (_a) => {
|
7424
7525
|
var _b = _a, { className, active } = _b, rest = __objRest(_b, ["className", "active"]);
|
7425
|
-
return /* @__PURE__ */
|
7526
|
+
return /* @__PURE__ */ React28.createElement("li", {
|
7426
7527
|
role: "presentation"
|
7427
|
-
}, /* @__PURE__ */
|
7528
|
+
}, /* @__PURE__ */ React28.createElement("a", __spreadProps(__spreadValues({}, rest), {
|
7428
7529
|
role: "menuitem",
|
7429
7530
|
className: classNames(
|
7430
7531
|
tw("py-3 px-6 hover:bg-grey-5 cursor-pointer flex gap-4 items-center typography-small focusable", {
|
@@ -7442,10 +7543,10 @@ Navigation.Item = Item2;
|
|
7442
7543
|
Navigation.Divider = Divider;
|
7443
7544
|
|
7444
7545
|
// src/atoms/Popover/Popover.tsx
|
7445
|
-
import
|
7446
|
-
var PopoverPanel =
|
7546
|
+
import React29 from "react";
|
7547
|
+
var PopoverPanel = React29.forwardRef((_a, ref) => {
|
7447
7548
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
7448
|
-
return /* @__PURE__ */
|
7549
|
+
return /* @__PURE__ */ React29.createElement("div", __spreadValues({
|
7449
7550
|
ref,
|
7450
7551
|
className: classNames(
|
7451
7552
|
className,
|
@@ -7454,7 +7555,7 @@ var PopoverPanel = React27.forwardRef((_a, ref) => {
|
|
7454
7555
|
}, props), children);
|
7455
7556
|
});
|
7456
7557
|
PopoverPanel.displayName = "Popover.Panel";
|
7457
|
-
var PopoverUnderlay =
|
7558
|
+
var PopoverUnderlay = React29.forwardRef((props, ref) => /* @__PURE__ */ React29.createElement("div", __spreadProps(__spreadValues({
|
7458
7559
|
ref
|
7459
7560
|
}, props), {
|
7460
7561
|
className: tw("fixed inset-0")
|
@@ -7466,23 +7567,23 @@ var Popover = {
|
|
7466
7567
|
};
|
7467
7568
|
|
7468
7569
|
// src/atoms/PopoverDialog/PopoverDialog.tsx
|
7469
|
-
import
|
7570
|
+
import React30 from "react";
|
7470
7571
|
var Header2 = (_a) => {
|
7471
7572
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7472
|
-
return /* @__PURE__ */
|
7573
|
+
return /* @__PURE__ */ React30.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7473
7574
|
className: classNames(tw("p-5 gap-3 flex items-center"), className)
|
7474
7575
|
}), children);
|
7475
7576
|
};
|
7476
7577
|
var Title = (_a) => {
|
7477
7578
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7478
|
-
return /* @__PURE__ */
|
7579
|
+
return /* @__PURE__ */ React30.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
7479
7580
|
htmlTag: "h1",
|
7480
7581
|
variant: "small-strong"
|
7481
7582
|
}), children);
|
7482
7583
|
};
|
7483
7584
|
var Body = (_a) => {
|
7484
7585
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7485
|
-
return /* @__PURE__ */
|
7586
|
+
return /* @__PURE__ */ React30.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
7486
7587
|
htmlTag: "div",
|
7487
7588
|
variant: "caption",
|
7488
7589
|
className: classNames(tw("px-5 overflow-y-auto"), className)
|
@@ -7490,13 +7591,13 @@ var Body = (_a) => {
|
|
7490
7591
|
};
|
7491
7592
|
var Footer2 = (_a) => {
|
7492
7593
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7493
|
-
return /* @__PURE__ */
|
7594
|
+
return /* @__PURE__ */ React30.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7494
7595
|
className: classNames(tw("p-5"), className)
|
7495
7596
|
}), children);
|
7496
7597
|
};
|
7497
7598
|
var Actions2 = (_a) => {
|
7498
7599
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7499
|
-
return /* @__PURE__ */
|
7600
|
+
return /* @__PURE__ */ React30.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7500
7601
|
className: classNames(tw("flex gap-4"), className)
|
7501
7602
|
}), children);
|
7502
7603
|
};
|
@@ -7509,11 +7610,11 @@ var PopoverDialog = {
|
|
7509
7610
|
};
|
7510
7611
|
|
7511
7612
|
// src/atoms/RadioButton/RadioButton.tsx
|
7512
|
-
import
|
7513
|
-
var RadioButton =
|
7613
|
+
import React31 from "react";
|
7614
|
+
var RadioButton = React31.forwardRef(
|
7514
7615
|
(_a, ref) => {
|
7515
7616
|
var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
|
7516
|
-
return /* @__PURE__ */
|
7617
|
+
return /* @__PURE__ */ React31.createElement("input", __spreadProps(__spreadValues({
|
7517
7618
|
id,
|
7518
7619
|
ref,
|
7519
7620
|
type: "radio",
|
@@ -7537,7 +7638,7 @@ var RadioButton = React29.forwardRef(
|
|
7537
7638
|
);
|
7538
7639
|
|
7539
7640
|
// src/atoms/Select/Select.tsx
|
7540
|
-
import
|
7641
|
+
import React32 from "react";
|
7541
7642
|
var import_chevronDown3 = __toESM(require_chevronDown());
|
7542
7643
|
var import_chevronUp2 = __toESM(require_chevronUp());
|
7543
7644
|
var import_search2 = __toESM(require_search());
|
@@ -7557,16 +7658,16 @@ function isOptionDisabledBuiltin(option) {
|
|
7557
7658
|
}
|
7558
7659
|
var getValues = (children) => {
|
7559
7660
|
var _a;
|
7560
|
-
const values =
|
7661
|
+
const values = React32.Children.map(children, (c) => {
|
7561
7662
|
var _a2;
|
7562
7663
|
return (_a2 = c == null ? void 0 : c.props) == null ? void 0 : _a2.value;
|
7563
7664
|
});
|
7564
7665
|
return (_a = values == null ? void 0 : values.filter((v) => v !== void 0 && v !== null)) != null ? _a : [];
|
7565
7666
|
};
|
7566
|
-
var InputContainer =
|
7667
|
+
var InputContainer = React32.forwardRef(
|
7567
7668
|
(_a, ref) => {
|
7568
7669
|
var _b = _a, { variant = "default", className } = _b, props = __objRest(_b, ["variant", "className"]);
|
7569
|
-
return /* @__PURE__ */
|
7670
|
+
return /* @__PURE__ */ React32.createElement("div", __spreadValues({
|
7570
7671
|
ref,
|
7571
7672
|
className: classNames(
|
7572
7673
|
className,
|
@@ -7585,9 +7686,9 @@ var InputContainer = React30.forwardRef(
|
|
7585
7686
|
}, props));
|
7586
7687
|
}
|
7587
7688
|
);
|
7588
|
-
var Input =
|
7689
|
+
var Input = React32.forwardRef((_a, ref) => {
|
7589
7690
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
7590
|
-
return /* @__PURE__ */
|
7691
|
+
return /* @__PURE__ */ React32.createElement("input", __spreadValues({
|
7591
7692
|
ref,
|
7592
7693
|
type: "text",
|
7593
7694
|
className: classNames(
|
@@ -7601,39 +7702,39 @@ var Input = React30.forwardRef((_a, ref) => {
|
|
7601
7702
|
)
|
7602
7703
|
}, props));
|
7603
7704
|
});
|
7604
|
-
var Menu =
|
7705
|
+
var Menu = React32.forwardRef(
|
7605
7706
|
(_a, ref) => {
|
7606
7707
|
var _b = _a, { maxHeight = "450px", className, children } = _b, props = __objRest(_b, ["maxHeight", "className", "children"]);
|
7607
|
-
return /* @__PURE__ */
|
7708
|
+
return /* @__PURE__ */ React32.createElement("ul", __spreadValues({
|
7608
7709
|
ref,
|
7609
7710
|
style: { maxHeight },
|
7610
7711
|
className
|
7611
7712
|
}, props), children);
|
7612
7713
|
}
|
7613
7714
|
);
|
7614
|
-
var NoResults =
|
7715
|
+
var NoResults = React32.forwardRef(
|
7615
7716
|
(_a, ref) => {
|
7616
7717
|
var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
|
7617
|
-
return /* @__PURE__ */
|
7718
|
+
return /* @__PURE__ */ React32.createElement("li", __spreadProps(__spreadValues({
|
7618
7719
|
ref
|
7619
7720
|
}, rest), {
|
7620
7721
|
className: classNames(tw("p-3 text-grey-40 italic"), className)
|
7621
7722
|
}), children);
|
7622
7723
|
}
|
7623
7724
|
);
|
7624
|
-
var EmptyStateContainer2 =
|
7725
|
+
var EmptyStateContainer2 = React32.forwardRef((_a, ref) => {
|
7625
7726
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
7626
|
-
return /* @__PURE__ */
|
7727
|
+
return /* @__PURE__ */ React32.createElement("li", __spreadValues({
|
7627
7728
|
ref,
|
7628
7729
|
className: tw("border border-dashed border-grey-10 m-4 p-6")
|
7629
7730
|
}, props), children);
|
7630
7731
|
});
|
7631
|
-
var Divider2 = (props) => /* @__PURE__ */
|
7732
|
+
var Divider2 = (props) => /* @__PURE__ */ React32.createElement("div", __spreadValues({
|
7632
7733
|
className: tw("border-b-[1px] border-grey-5 mx-3 my-4")
|
7633
7734
|
}, props));
|
7634
|
-
var Group2 =
|
7735
|
+
var Group2 = React32.forwardRef((_a, ref) => {
|
7635
7736
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
7636
|
-
return /* @__PURE__ */
|
7737
|
+
return /* @__PURE__ */ React32.createElement("li", __spreadValues({
|
7637
7738
|
ref,
|
7638
7739
|
className: classNames(
|
7639
7740
|
className,
|
@@ -7644,10 +7745,10 @@ var Group2 = React30.forwardRef((_a, ref) => {
|
|
7644
7745
|
)
|
7645
7746
|
}, props), children);
|
7646
7747
|
});
|
7647
|
-
var Item3 =
|
7748
|
+
var Item3 = React32.forwardRef(
|
7648
7749
|
(_a, ref) => {
|
7649
7750
|
var _b = _a, { highlighted, selected, className, children } = _b, props = __objRest(_b, ["highlighted", "selected", "className", "children"]);
|
7650
|
-
return /* @__PURE__ */
|
7751
|
+
return /* @__PURE__ */ React32.createElement("li", __spreadValues({
|
7651
7752
|
ref,
|
7652
7753
|
className: classNames(className, "flex items-center gap-x-3 p-3 typography-small", {
|
7653
7754
|
"cursor-pointer": !props.disabled,
|
@@ -7655,17 +7756,17 @@ var Item3 = React30.forwardRef(
|
|
7655
7756
|
"text-grey-20": props.disabled,
|
7656
7757
|
"hover:bg-grey-0": !props.disabled
|
7657
7758
|
})
|
7658
|
-
}, props), /* @__PURE__ */
|
7759
|
+
}, props), /* @__PURE__ */ React32.createElement("span", {
|
7659
7760
|
className: tw("grow flex gap-x-3")
|
7660
|
-
}, children), selected && /* @__PURE__ */
|
7761
|
+
}, children), selected && /* @__PURE__ */ React32.createElement(InlineIcon, {
|
7661
7762
|
icon: import_tick4.default
|
7662
7763
|
}));
|
7663
7764
|
}
|
7664
7765
|
);
|
7665
|
-
var ActionItem =
|
7766
|
+
var ActionItem = React32.forwardRef(
|
7666
7767
|
(_a, ref) => {
|
7667
7768
|
var _b = _a, { className, dense, icon, onClick, children } = _b, props = __objRest(_b, ["className", "dense", "icon", "onClick", "children"]);
|
7668
|
-
return /* @__PURE__ */
|
7769
|
+
return /* @__PURE__ */ React32.createElement("li", __spreadValues({
|
7669
7770
|
ref,
|
7670
7771
|
role: "button",
|
7671
7772
|
onClick: () => !props.disabled && (onClick == null ? void 0 : onClick()),
|
@@ -7676,21 +7777,21 @@ var ActionItem = React30.forwardRef(
|
|
7676
7777
|
"text-grey-20": props.disabled,
|
7677
7778
|
"hover:text-primary-70": !props.disabled
|
7678
7779
|
})
|
7679
|
-
}, props), icon && /* @__PURE__ */
|
7780
|
+
}, props), icon && /* @__PURE__ */ React32.createElement(InlineIcon, {
|
7680
7781
|
icon
|
7681
7782
|
}), children);
|
7682
7783
|
}
|
7683
7784
|
);
|
7684
|
-
var Toggle =
|
7785
|
+
var Toggle = React32.forwardRef((_a, ref) => {
|
7685
7786
|
var _b = _a, { hasFocus, isOpen } = _b, props = __objRest(_b, ["hasFocus", "isOpen"]);
|
7686
7787
|
var _a2;
|
7687
|
-
return /* @__PURE__ */
|
7788
|
+
return /* @__PURE__ */ React32.createElement("button", __spreadProps(__spreadValues({
|
7688
7789
|
ref,
|
7689
7790
|
type: "button",
|
7690
7791
|
"aria-label": "Toggle"
|
7691
7792
|
}, props), {
|
7692
7793
|
className: tw("grow-0 leading-none", { "cursor-not-allowed": (_a2 = props.disabled) != null ? _a2 : false })
|
7693
|
-
}), /* @__PURE__ */
|
7794
|
+
}), /* @__PURE__ */ React32.createElement(InlineIcon, {
|
7694
7795
|
color: props.disabled ? "grey-40" : "grey-70",
|
7695
7796
|
icon: hasFocus ? import_search2.default : isOpen ? import_chevronUp2.default : import_chevronDown3.default
|
7696
7797
|
}));
|
@@ -7709,11 +7810,11 @@ var Select = {
|
|
7709
7810
|
};
|
7710
7811
|
|
7711
7812
|
// src/atoms/Stepper/Stepper.tsx
|
7712
|
-
import
|
7813
|
+
import React33 from "react";
|
7713
7814
|
var import_tick5 = __toESM(require_tick());
|
7714
7815
|
var Stepper = (_a) => {
|
7715
7816
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7716
|
-
return /* @__PURE__ */
|
7817
|
+
return /* @__PURE__ */ React33.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7717
7818
|
className: classNames(className)
|
7718
7819
|
}));
|
7719
7820
|
};
|
@@ -7727,7 +7828,7 @@ var ConnectorContainer = (_a) => {
|
|
7727
7828
|
"completed",
|
7728
7829
|
"dense"
|
7729
7830
|
]);
|
7730
|
-
return /* @__PURE__ */
|
7831
|
+
return /* @__PURE__ */ React33.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7731
7832
|
className: classNames(
|
7732
7833
|
tw("absolute w-full -left-1/2", {
|
7733
7834
|
"top-[3px] px-[14px]": Boolean(dense),
|
@@ -7739,7 +7840,7 @@ var ConnectorContainer = (_a) => {
|
|
7739
7840
|
};
|
7740
7841
|
var Connector = (_a) => {
|
7741
7842
|
var _b = _a, { children, className, completed, dense } = _b, rest = __objRest(_b, ["children", "className", "completed", "dense"]);
|
7742
|
-
return /* @__PURE__ */
|
7843
|
+
return /* @__PURE__ */ React33.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7743
7844
|
className: classNames(
|
7744
7845
|
tw("w-full", {
|
7745
7846
|
"bg-grey-20": !completed,
|
@@ -7753,7 +7854,7 @@ var Connector = (_a) => {
|
|
7753
7854
|
};
|
7754
7855
|
var Step = (_a) => {
|
7755
7856
|
var _b = _a, { className, state } = _b, rest = __objRest(_b, ["className", "state"]);
|
7756
|
-
return /* @__PURE__ */
|
7857
|
+
return /* @__PURE__ */ React33.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7757
7858
|
className: classNames(
|
7758
7859
|
tw("flex flex-col items-center text-grey-90 relative text-center", {
|
7759
7860
|
"text-grey-20": state === "inactive"
|
@@ -7774,13 +7875,13 @@ var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
|
|
7774
7875
|
});
|
7775
7876
|
var Indicator = (_a) => {
|
7776
7877
|
var _b = _a, { children, className, state, dense } = _b, rest = __objRest(_b, ["children", "className", "state", "dense"]);
|
7777
|
-
return /* @__PURE__ */
|
7878
|
+
return /* @__PURE__ */ React33.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7778
7879
|
className: classNames(
|
7779
7880
|
tw("rounded-full flex justify-center items-center mx-2 mb-3"),
|
7780
7881
|
dense ? getDenseClassNames(state) : getClassNames(state),
|
7781
7882
|
className
|
7782
7883
|
)
|
7783
|
-
}), state === "completed" ? /* @__PURE__ */
|
7884
|
+
}), state === "completed" ? /* @__PURE__ */ React33.createElement(InlineIcon, {
|
7784
7885
|
icon: import_tick5.default
|
7785
7886
|
}) : dense ? null : children);
|
7786
7887
|
};
|
@@ -7790,13 +7891,13 @@ ConnectorContainer.Connector = Connector;
|
|
7790
7891
|
Stepper.ConnectorContainer = ConnectorContainer;
|
7791
7892
|
|
7792
7893
|
// src/atoms/Switch/Switch.tsx
|
7793
|
-
import
|
7794
|
-
var Switch =
|
7894
|
+
import React34 from "react";
|
7895
|
+
var Switch = React34.forwardRef(
|
7795
7896
|
(_a, ref) => {
|
7796
7897
|
var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
|
7797
|
-
return /* @__PURE__ */
|
7898
|
+
return /* @__PURE__ */ React34.createElement("span", {
|
7798
7899
|
className: tw("relative inline-flex justify-center items-center self-center group")
|
7799
|
-
}, /* @__PURE__ */
|
7900
|
+
}, /* @__PURE__ */ React34.createElement("input", __spreadProps(__spreadValues({
|
7800
7901
|
id,
|
7801
7902
|
ref,
|
7802
7903
|
type: "checkbox",
|
@@ -7815,7 +7916,7 @@ var Switch = React32.forwardRef(
|
|
7815
7916
|
),
|
7816
7917
|
readOnly,
|
7817
7918
|
disabled
|
7818
|
-
})), /* @__PURE__ */
|
7919
|
+
})), /* @__PURE__ */ React34.createElement("span", {
|
7819
7920
|
className: tw(
|
7820
7921
|
"pointer-events-none rounded-full absolute inline-block transition duration-300 h-4 w-4 transform peer-checked/switch:translate-x-5",
|
7821
7922
|
"bg-white peer-disabled/switch:bg-grey-0 left-2 peer-checked/switch:left-1",
|
@@ -7828,32 +7929,32 @@ var Switch = React32.forwardRef(
|
|
7828
7929
|
);
|
7829
7930
|
|
7830
7931
|
// src/atoms/Table/Table.tsx
|
7831
|
-
import
|
7932
|
+
import React35 from "react";
|
7832
7933
|
var import_chevronDown4 = __toESM(require_chevronDown());
|
7833
7934
|
var import_chevronUp3 = __toESM(require_chevronUp());
|
7834
|
-
var HeadContext =
|
7935
|
+
var HeadContext = React35.createContext(null);
|
7835
7936
|
var tableClassNames = tw("w-full relative typography-default border-spacing-0");
|
7836
7937
|
var Table = (_a) => {
|
7837
7938
|
var _b = _a, { children, ariaLabel, className } = _b, rest = __objRest(_b, ["children", "ariaLabel", "className"]);
|
7838
|
-
return /* @__PURE__ */
|
7939
|
+
return /* @__PURE__ */ React35.createElement("table", __spreadProps(__spreadValues({}, rest), {
|
7839
7940
|
className: classNames(tableClassNames, className),
|
7840
7941
|
"aria-label": ariaLabel
|
7841
7942
|
}), children);
|
7842
7943
|
};
|
7843
7944
|
var TableHead = (_a) => {
|
7844
7945
|
var _b = _a, { children, sticky } = _b, rest = __objRest(_b, ["children", "sticky"]);
|
7845
|
-
return /* @__PURE__ */
|
7946
|
+
return /* @__PURE__ */ React35.createElement("thead", __spreadValues({}, rest), /* @__PURE__ */ React35.createElement("tr", null, /* @__PURE__ */ React35.createElement(HeadContext.Provider, {
|
7846
7947
|
value: { children, sticky }
|
7847
7948
|
}, children)));
|
7848
7949
|
};
|
7849
7950
|
var TableBody = (_a) => {
|
7850
7951
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
7851
|
-
return /* @__PURE__ */
|
7952
|
+
return /* @__PURE__ */ React35.createElement("tbody", __spreadValues({}, rest), children);
|
7852
7953
|
};
|
7853
7954
|
var rowClassNames = tw("children:border-grey-10 group children:last:border-b-0 hover:bg-grey-0");
|
7854
7955
|
var TableRow = (_a) => {
|
7855
7956
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7856
|
-
return /* @__PURE__ */
|
7957
|
+
return /* @__PURE__ */ React35.createElement("tr", __spreadProps(__spreadValues({}, rest), {
|
7857
7958
|
className: classNames(rowClassNames, className)
|
7858
7959
|
}), children);
|
7859
7960
|
};
|
@@ -7880,15 +7981,15 @@ var getHeadCellClassNames = (sticky = true, stickyColumn) => {
|
|
7880
7981
|
};
|
7881
7982
|
var TableCell = (_a) => {
|
7882
7983
|
var _b = _a, { children, className, stickyColumn, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "stickyColumn", "align"]);
|
7883
|
-
const headContext =
|
7884
|
-
return headContext ? /* @__PURE__ */
|
7984
|
+
const headContext = React35.useContext(HeadContext);
|
7985
|
+
return headContext ? /* @__PURE__ */ React35.createElement("th", __spreadProps(__spreadValues({}, rest), {
|
7885
7986
|
className: classNames(
|
7886
7987
|
cellClassNames,
|
7887
7988
|
getHeadCellClassNames(headContext.sticky, stickyColumn),
|
7888
7989
|
getAlignClassNames(align),
|
7889
7990
|
className
|
7890
7991
|
)
|
7891
|
-
}), children) : /* @__PURE__ */
|
7992
|
+
}), children) : /* @__PURE__ */ React35.createElement("td", __spreadProps(__spreadValues({}, rest), {
|
7892
7993
|
className: classNames(
|
7893
7994
|
cellClassNames,
|
7894
7995
|
getBodyCellClassNames(true, stickyColumn),
|
@@ -7899,11 +8000,11 @@ var TableCell = (_a) => {
|
|
7899
8000
|
};
|
7900
8001
|
var TableSelectCell = (_a) => {
|
7901
8002
|
var _b = _a, { ariaLabel } = _b, props = __objRest(_b, ["ariaLabel"]);
|
7902
|
-
return /* @__PURE__ */
|
8003
|
+
return /* @__PURE__ */ React35.createElement(Table.Cell, {
|
7903
8004
|
className: tw("leading-[0px]")
|
7904
|
-
}, props.type === "radio" ? /* @__PURE__ */
|
8005
|
+
}, props.type === "radio" ? /* @__PURE__ */ React35.createElement(RadioButton, __spreadValues({
|
7905
8006
|
"aria-label": ariaLabel
|
7906
|
-
}, props)) : /* @__PURE__ */
|
8007
|
+
}, props)) : /* @__PURE__ */ React35.createElement(Checkbox, __spreadValues({
|
7907
8008
|
"aria-label": ariaLabel
|
7908
8009
|
}, props)));
|
7909
8010
|
};
|
@@ -7913,39 +8014,39 @@ var getSortCellIconClassNames = (active) => {
|
|
7913
8014
|
};
|
7914
8015
|
var TableSortCell = (_a) => {
|
7915
8016
|
var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
|
7916
|
-
return /* @__PURE__ */
|
8017
|
+
return /* @__PURE__ */ React35.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
|
7917
8018
|
"aria-sort": direction
|
7918
|
-
}), /* @__PURE__ */
|
8019
|
+
}), /* @__PURE__ */ React35.createElement("span", {
|
7919
8020
|
className: getSortCellButtonClassNames(rest.align),
|
7920
8021
|
role: "button",
|
7921
8022
|
tabIndex: -1,
|
7922
8023
|
onClick
|
7923
|
-
}, children, /* @__PURE__ */
|
8024
|
+
}, children, /* @__PURE__ */ React35.createElement("div", {
|
7924
8025
|
"data-sort-icons": true,
|
7925
8026
|
className: tw("flex flex-col", {
|
7926
8027
|
"invisible group-hover:visible": direction === "none"
|
7927
8028
|
})
|
7928
|
-
}, /* @__PURE__ */
|
8029
|
+
}, /* @__PURE__ */ React35.createElement(InlineIcon, {
|
7929
8030
|
icon: import_chevronUp3.default,
|
7930
8031
|
className: getSortCellIconClassNames(direction === "descending")
|
7931
|
-
}), /* @__PURE__ */
|
8032
|
+
}), /* @__PURE__ */ React35.createElement(InlineIcon, {
|
7932
8033
|
icon: import_chevronDown4.default,
|
7933
8034
|
className: getSortCellIconClassNames(direction === "ascending")
|
7934
8035
|
}))));
|
7935
8036
|
};
|
7936
|
-
var Item4 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */
|
8037
|
+
var Item4 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React35.createElement("div", {
|
7937
8038
|
className: tw("flex gap-4 items-center")
|
7938
|
-
}, image && /* @__PURE__ */
|
8039
|
+
}, image && /* @__PURE__ */ React35.createElement("img", {
|
7939
8040
|
src: image,
|
7940
8041
|
alt: imageAlt,
|
7941
8042
|
style: { width: imageSize, height: imageSize }
|
7942
|
-
}), /* @__PURE__ */
|
7943
|
-
Table.Head =
|
7944
|
-
Table.Body =
|
7945
|
-
Table.Row =
|
7946
|
-
Table.Cell =
|
7947
|
-
Table.SortCell =
|
7948
|
-
Table.SelectCell =
|
8043
|
+
}), /* @__PURE__ */ React35.createElement("div", null, title, caption && /* @__PURE__ */ React35.createElement(Typography2.Caption, null, caption)));
|
8044
|
+
Table.Head = React35.memo(TableHead);
|
8045
|
+
Table.Body = React35.memo(TableBody);
|
8046
|
+
Table.Row = React35.memo(TableRow);
|
8047
|
+
Table.Cell = React35.memo(TableCell);
|
8048
|
+
Table.SortCell = React35.memo(TableSortCell);
|
8049
|
+
Table.SelectCell = React35.memo(TableSelectCell);
|
7949
8050
|
export {
|
7950
8051
|
Alert,
|
7951
8052
|
Card,
|