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