@aivenio/aquarium 1.61.0 → 1.63.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/atoms.cjs +493 -277
- package/dist/atoms.mjs +492 -277
- package/dist/src/atoms/DataList/DataList.d.ts +14 -0
- package/dist/src/atoms/DataList/DataList.js +29 -1
- package/dist/src/atoms/Typography/Typography.d.ts +1 -1
- package/dist/src/atoms/Typography/Typography.js +1 -1
- package/dist/src/atoms/index.d.ts +1 -0
- package/dist/src/atoms/index.js +2 -1
- package/dist/src/icons/faceHappy.d.ts +9 -0
- package/dist/src/icons/faceHappy.js +11 -0
- package/dist/src/icons/faceSad.d.ts +9 -0
- package/dist/src/icons/faceSad.js +11 -0
- package/dist/src/icons/index.d.ts +2 -0
- package/dist/src/icons/index.js +3 -1
- package/dist/src/molecules/Button/Button.d.ts +12 -0
- package/dist/src/molecules/Button/Button.js +9 -6
- package/dist/src/molecules/Combobox/Combobox.d.ts +3 -1
- package/dist/src/molecules/Combobox/Combobox.js +10 -4
- package/dist/src/molecules/DataList/DataList.d.ts +49 -4
- package/dist/src/molecules/DataList/DataList.js +80 -28
- package/dist/src/molecules/DataList/DataListComponents.d.ts +2 -1
- package/dist/src/molecules/DataList/DataListComponents.js +5 -4
- package/dist/src/molecules/DataList/DataListContext.d.ts +8 -0
- package/dist/src/molecules/DataList/DataListContext.js +13 -0
- package/dist/src/molecules/DataList/DataListGroup.d.ts +7 -3
- package/dist/src/molecules/DataList/DataListGroup.js +31 -9
- package/dist/src/molecules/DataList/DataListToolbar.d.ts +25 -0
- package/dist/src/molecules/DataList/DataListToolbar.js +30 -0
- package/dist/src/molecules/DataList/utils.d.ts +2 -0
- package/dist/src/molecules/DataList/utils.js +3 -0
- package/dist/src/molecules/DataTable/DataTable.js +3 -2
- package/dist/src/molecules/Dialog/Dialog.d.ts +4 -0
- package/dist/src/molecules/Dialog/Dialog.js +9 -4
- package/dist/src/molecules/MultiSelect/MultiSelect.d.ts +1 -1
- package/dist/src/molecules/MultiSelect/MultiSelect.js +1 -1
- package/dist/src/molecules/PageHeader/PageHeader.js +3 -2
- package/dist/src/molecules/Section/Section.js +3 -2
- package/dist/src/utils/table/types.d.ts +2 -1
- package/dist/src/utils/table/types.js +1 -1
- package/dist/styles.css +18 -0
- package/dist/system.cjs +850 -575
- package/dist/system.mjs +767 -492
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/ContextualMenu.d.ts +2 -0
- package/dist/types/ContextualMenu.js +2 -2
- package/dist/types/tailwindGenerated.d.ts +1 -1
- package/package.json +1 -1
package/dist/atoms.mjs
CHANGED
@@ -1745,6 +1745,38 @@ var require_eyeOpen = __commonJS({
|
|
1745
1745
|
}
|
1746
1746
|
});
|
1747
1747
|
|
1748
|
+
// src/icons/faceHappy.js
|
1749
|
+
var require_faceHappy = __commonJS({
|
1750
|
+
"src/icons/faceHappy.js"(exports) {
|
1751
|
+
"use strict";
|
1752
|
+
var data = {
|
1753
|
+
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M7.5 13s1.375 1.833 3.667 1.833c2.291 0 3.666-1.833 3.666-1.833m-.916-4.583h.009m-5.51 0h.01m11.907 2.75a9.167 9.167 0 11-18.333 0 9.167 9.167 0 0118.333 0Zm-5.958-2.75a.458.458 0 11-.917 0 .458.458 0 01.917 0Zm-5.5 0a.458.458 0 11-.917 0 .458.458 0 01.917 0Z"/>',
|
1754
|
+
"left": 0,
|
1755
|
+
"top": 0,
|
1756
|
+
"width": 22,
|
1757
|
+
"height": 22
|
1758
|
+
};
|
1759
|
+
exports.__esModule = true;
|
1760
|
+
exports.default = data;
|
1761
|
+
}
|
1762
|
+
});
|
1763
|
+
|
1764
|
+
// src/icons/faceSad.js
|
1765
|
+
var require_faceSad = __commonJS({
|
1766
|
+
"src/icons/faceSad.js"(exports) {
|
1767
|
+
"use strict";
|
1768
|
+
var data = {
|
1769
|
+
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M14.833 14.833S13.458 13 11.167 13C8.875 13 7.5 14.833 7.5 14.833m8.25-6.196c-.362.444-.857.696-1.375.696s-1-.252-1.375-.696m-3.667 0c-.362.444-.857.696-1.375.696s-.999-.252-1.375-.696m13.75 2.53a9.167 9.167 0 11-18.333 0 9.167 9.167 0 0118.333 0Z"/>',
|
1770
|
+
"left": 0,
|
1771
|
+
"top": 0,
|
1772
|
+
"width": 22,
|
1773
|
+
"height": 22
|
1774
|
+
};
|
1775
|
+
exports.__esModule = true;
|
1776
|
+
exports.default = data;
|
1777
|
+
}
|
1778
|
+
});
|
1779
|
+
|
1748
1780
|
// src/icons/filter.js
|
1749
1781
|
var require_filter = __commonJS({
|
1750
1782
|
"src/icons/filter.js"(exports) {
|
@@ -5617,6 +5649,8 @@ var import_expandAll = __toESM(require_expandAll());
|
|
5617
5649
|
var import_export = __toESM(require_export());
|
5618
5650
|
var import_eyeOff = __toESM(require_eyeOff());
|
5619
5651
|
var import_eyeOpen = __toESM(require_eyeOpen());
|
5652
|
+
var import_faceHappy = __toESM(require_faceHappy());
|
5653
|
+
var import_faceSad = __toESM(require_faceSad());
|
5620
5654
|
var import_filter = __toESM(require_filter());
|
5621
5655
|
var import_flag = __toESM(require_flag());
|
5622
5656
|
var import_floppyDisk = __toESM(require_floppyDisk());
|
@@ -6318,8 +6352,8 @@ var asButton = (Component, isDropdownButton) => {
|
|
6318
6352
|
'Please provide an accessible name as a string only for an icon only button via "aria-label" or "tooltip" prop.'
|
6319
6353
|
);
|
6320
6354
|
}
|
6321
|
-
if (!!isDropdownButton &&
|
6322
|
-
throw new Error('Dropdown button is available only for "primary" and "
|
6355
|
+
if (!!isDropdownButton && !["primary", "secondary", "ghost"].includes(kind)) {
|
6356
|
+
throw new Error('Dropdown button is available only for "primary", "secondary" and "ghost" kinds.');
|
6323
6357
|
}
|
6324
6358
|
if (!!isDropdownButton && !!icon) {
|
6325
6359
|
throw new Error("Dropdown button doesn't support any icon prop.");
|
@@ -6328,9 +6362,9 @@ var asButton = (Component, isDropdownButton) => {
|
|
6328
6362
|
throw new Error('Loading button is only supported for "primary" and "secondary" kinds.');
|
6329
6363
|
}
|
6330
6364
|
const buttonContent = () => {
|
6331
|
-
if (!!isDropdownButton && (kind === "primary" || kind === "secondary")) {
|
6365
|
+
if (!!isDropdownButton && (kind === "primary" || kind === "secondary" || kind === "ghost")) {
|
6332
6366
|
return /* @__PURE__ */ React14.createElement(Flexbox, {
|
6333
|
-
gap: "4",
|
6367
|
+
gap: dense ? "2" : "4",
|
6334
6368
|
alignItems: "center",
|
6335
6369
|
justifyContent: "center"
|
6336
6370
|
}, hasChildren && /* @__PURE__ */ React14.createElement("div", null, children), /* @__PURE__ */ React14.createElement(InlineIcon, {
|
@@ -6340,7 +6374,7 @@ var asButton = (Component, isDropdownButton) => {
|
|
6340
6374
|
}));
|
6341
6375
|
} else if (icon) {
|
6342
6376
|
return /* @__PURE__ */ React14.createElement(Flexbox, {
|
6343
|
-
gap: "3",
|
6377
|
+
gap: dense ? "2" : "3",
|
6344
6378
|
alignItems: "center",
|
6345
6379
|
justifyContent: "center",
|
6346
6380
|
direction: iconPlacement === "right" ? "row-reverse" : "row"
|
@@ -6474,6 +6508,13 @@ var SecondaryDropdownButton = React14.forwardRef((props, ref) => /* @__PURE__ */
|
|
6474
6508
|
})));
|
6475
6509
|
SecondaryDropdownButton.displayName = "Button.SecondaryDropdown";
|
6476
6510
|
Button.SecondaryDropdown = SecondaryDropdownButton;
|
6511
|
+
var GhostDropdownButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(DropdownButton, __spreadProps(__spreadValues({
|
6512
|
+
ref
|
6513
|
+
}, props), {
|
6514
|
+
kind: "ghost"
|
6515
|
+
})));
|
6516
|
+
GhostDropdownButton.displayName = "Button.GhostDropdownButton";
|
6517
|
+
Button.GhostDropdown = GhostDropdownButton;
|
6477
6518
|
|
6478
6519
|
// src/atoms/Typography/Typography.tsx
|
6479
6520
|
var import_resolveTheme = __toESM(require_resolveTheme());
|
@@ -6500,7 +6541,7 @@ var Typography = (_a) => {
|
|
6500
6541
|
"fontWeight"
|
6501
6542
|
]);
|
6502
6543
|
const HtmlElement = htmlTag;
|
6503
|
-
const resolvedColorName = isUndefined6(color) || color === "current" ? "
|
6544
|
+
const resolvedColorName = isUndefined6(color) || color === "current" ? "default" : color;
|
6504
6545
|
const style = useStyle({ fontWeight });
|
6505
6546
|
return /* @__PURE__ */ React15.createElement(HtmlElement, __spreadValues({
|
6506
6547
|
className: classNames(typographies[variant], `text-${resolvedColorName}`, className),
|
@@ -7075,6 +7116,333 @@ var Chip = {
|
|
7075
7116
|
Container
|
7076
7117
|
};
|
7077
7118
|
|
7119
|
+
// src/atoms/DataList/DataList.tsx
|
7120
|
+
import React24 from "react";
|
7121
|
+
|
7122
|
+
// src/atoms/Table/Table.tsx
|
7123
|
+
import React23 from "react";
|
7124
|
+
|
7125
|
+
// src/atoms/RadioButton/RadioButton.tsx
|
7126
|
+
import React22 from "react";
|
7127
|
+
var RadioButton = React22.forwardRef(
|
7128
|
+
(_a, ref) => {
|
7129
|
+
var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
|
7130
|
+
return /* @__PURE__ */ React22.createElement("input", __spreadProps(__spreadValues({
|
7131
|
+
id,
|
7132
|
+
ref,
|
7133
|
+
type: "radio",
|
7134
|
+
name
|
7135
|
+
}, props), {
|
7136
|
+
className: classNames(
|
7137
|
+
tw(
|
7138
|
+
"inline-flex justify-center items-center self-center appearance-none",
|
7139
|
+
"w-5 h-5 p-[3px] rounded-full cursor-pointer border border-default",
|
7140
|
+
"outline-none focus:border-info-70 checked:bg-primary-80 checked:shadow-whiteInset",
|
7141
|
+
{
|
7142
|
+
"hover:border-intense checked:border-primary-80": !disabled,
|
7143
|
+
"cursor-not-allowed border-muted bg-grey-0 checked:bg-opacity-40 checked:bg-primary-40 checked:border-primary-40": disabled
|
7144
|
+
}
|
7145
|
+
)
|
7146
|
+
),
|
7147
|
+
readOnly,
|
7148
|
+
disabled
|
7149
|
+
}));
|
7150
|
+
}
|
7151
|
+
);
|
7152
|
+
|
7153
|
+
// src/atoms/Table/Table.tsx
|
7154
|
+
var import_chevronDown3 = __toESM(require_chevronDown());
|
7155
|
+
var import_chevronUp2 = __toESM(require_chevronUp());
|
7156
|
+
var HeadContext = React23.createContext(null);
|
7157
|
+
var tableClassNames = tw("w-full relative typography-default border-spacing-0");
|
7158
|
+
var Table = (_a) => {
|
7159
|
+
var _b = _a, { children, ariaLabel, className } = _b, rest = __objRest(_b, ["children", "ariaLabel", "className"]);
|
7160
|
+
return /* @__PURE__ */ React23.createElement("table", __spreadProps(__spreadValues({}, rest), {
|
7161
|
+
className: classNames(tableClassNames, className),
|
7162
|
+
"aria-label": ariaLabel
|
7163
|
+
}), children);
|
7164
|
+
};
|
7165
|
+
var TableHead = (_a) => {
|
7166
|
+
var _b = _a, { children, sticky } = _b, rest = __objRest(_b, ["children", "sticky"]);
|
7167
|
+
return /* @__PURE__ */ React23.createElement("thead", __spreadValues({}, rest), /* @__PURE__ */ React23.createElement("tr", null, /* @__PURE__ */ React23.createElement(HeadContext.Provider, {
|
7168
|
+
value: { children, sticky }
|
7169
|
+
}, children)));
|
7170
|
+
};
|
7171
|
+
var TableBody = (_a) => {
|
7172
|
+
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
7173
|
+
return /* @__PURE__ */ React23.createElement("tbody", __spreadValues({}, rest), children);
|
7174
|
+
};
|
7175
|
+
var rowClassNames = tw("children:border-default group children:last:border-b-0 hover:bg-grey-0");
|
7176
|
+
var TableRow = (_a) => {
|
7177
|
+
var _b = _a, { children, className, disabled } = _b, rest = __objRest(_b, ["children", "className", "disabled"]);
|
7178
|
+
return /* @__PURE__ */ React23.createElement("tr", __spreadProps(__spreadValues(__spreadValues({}, rest), { inert: disabled ? "" : void 0 }), {
|
7179
|
+
className: classNames(rowClassNames, className, {
|
7180
|
+
"opacity-70": disabled
|
7181
|
+
})
|
7182
|
+
}), children);
|
7183
|
+
};
|
7184
|
+
var cellClassNames = tw("px-4 border-b typography-small leading-[18px]");
|
7185
|
+
var getBodyCellClassNames = (table = true, stickyColumn) => tw("text-default py-3", {
|
7186
|
+
"h-[50px]": table,
|
7187
|
+
"min-h-[50px]": !table,
|
7188
|
+
"sticky z-10 bg-white group-hover:bg-grey-0": Boolean(stickyColumn),
|
7189
|
+
"left-0": stickyColumn === "left",
|
7190
|
+
"right-0": stickyColumn === "right"
|
7191
|
+
});
|
7192
|
+
var getAlignClassNames = (align) => tw({ "text-right": align === "right", "text-center": align === "center" });
|
7193
|
+
var getHeadCellClassNames = (sticky = true, stickyColumn) => {
|
7194
|
+
const common = tw("py-[14px] text-left bg-white border-intense text-grey-50 font-semibold whitespace-nowrap");
|
7195
|
+
return sticky ? classNames(
|
7196
|
+
common,
|
7197
|
+
tw("sticky top-0", {
|
7198
|
+
"z-10": !stickyColumn,
|
7199
|
+
"z-20": Boolean(stickyColumn),
|
7200
|
+
"left-0": stickyColumn === "left",
|
7201
|
+
"right-0": stickyColumn === "right"
|
7202
|
+
})
|
7203
|
+
) : common;
|
7204
|
+
};
|
7205
|
+
var TableCell = (_a) => {
|
7206
|
+
var _b = _a, { children, className, stickyColumn, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "stickyColumn", "align"]);
|
7207
|
+
const headContext = React23.useContext(HeadContext);
|
7208
|
+
return headContext ? /* @__PURE__ */ React23.createElement("th", __spreadProps(__spreadValues({}, rest), {
|
7209
|
+
className: classNames(
|
7210
|
+
cellClassNames,
|
7211
|
+
getHeadCellClassNames(headContext.sticky, stickyColumn),
|
7212
|
+
getAlignClassNames(align),
|
7213
|
+
className
|
7214
|
+
)
|
7215
|
+
}), children) : /* @__PURE__ */ React23.createElement("td", __spreadProps(__spreadValues({}, rest), {
|
7216
|
+
className: classNames(
|
7217
|
+
cellClassNames,
|
7218
|
+
getBodyCellClassNames(true, stickyColumn),
|
7219
|
+
getAlignClassNames(align),
|
7220
|
+
className
|
7221
|
+
)
|
7222
|
+
}), children);
|
7223
|
+
};
|
7224
|
+
var TableSelectCell = (_a) => {
|
7225
|
+
var _b = _a, { ariaLabel } = _b, props = __objRest(_b, ["ariaLabel"]);
|
7226
|
+
return /* @__PURE__ */ React23.createElement(Table.Cell, {
|
7227
|
+
className: tw("leading-[0px]")
|
7228
|
+
}, props.type === "radio" ? /* @__PURE__ */ React23.createElement(RadioButton, __spreadValues({
|
7229
|
+
"aria-label": ariaLabel
|
7230
|
+
}, props)) : /* @__PURE__ */ React23.createElement(Checkbox, __spreadValues({
|
7231
|
+
"aria-label": ariaLabel
|
7232
|
+
}, props)));
|
7233
|
+
};
|
7234
|
+
var getSortCellButtonClassNames = (align) => tw("group flex items-center gap-x-4 text-grey-50", { "flex-row-reverse": align === "right" });
|
7235
|
+
var getSortCellIconClassNames = (active) => {
|
7236
|
+
return tw("text-[9px]", active ? "text-default" : "text-muted");
|
7237
|
+
};
|
7238
|
+
var TableSortCell = (_a) => {
|
7239
|
+
var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
|
7240
|
+
return /* @__PURE__ */ React23.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
|
7241
|
+
"aria-sort": direction
|
7242
|
+
}), /* @__PURE__ */ React23.createElement("span", {
|
7243
|
+
className: getSortCellButtonClassNames(rest.align),
|
7244
|
+
role: "button",
|
7245
|
+
tabIndex: -1,
|
7246
|
+
onClick
|
7247
|
+
}, children, /* @__PURE__ */ React23.createElement("div", {
|
7248
|
+
"data-sort-icons": true,
|
7249
|
+
className: tw("flex flex-col", {
|
7250
|
+
"invisible group-hover:visible": direction === "none"
|
7251
|
+
})
|
7252
|
+
}, /* @__PURE__ */ React23.createElement(InlineIcon, {
|
7253
|
+
icon: import_chevronUp2.default,
|
7254
|
+
className: getSortCellIconClassNames(direction === "ascending")
|
7255
|
+
}), /* @__PURE__ */ React23.createElement(InlineIcon, {
|
7256
|
+
icon: import_chevronDown3.default,
|
7257
|
+
className: getSortCellIconClassNames(direction === "descending")
|
7258
|
+
}))));
|
7259
|
+
};
|
7260
|
+
var Caption = ({ children }) => /* @__PURE__ */ React23.createElement(Typography2.Caption, {
|
7261
|
+
htmlTag: "caption"
|
7262
|
+
}, children);
|
7263
|
+
var Item = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React23.createElement("div", {
|
7264
|
+
className: tw("flex gap-4 items-center")
|
7265
|
+
}, image && /* @__PURE__ */ React23.createElement("img", {
|
7266
|
+
src: image,
|
7267
|
+
alt: imageAlt != null ? imageAlt : "",
|
7268
|
+
style: { width: imageSize, height: imageSize }
|
7269
|
+
}), /* @__PURE__ */ React23.createElement("div", null, title, caption && /* @__PURE__ */ React23.createElement(Typography2.Caption, null, caption)));
|
7270
|
+
Table.Head = React23.memo(TableHead);
|
7271
|
+
Table.Body = React23.memo(TableBody);
|
7272
|
+
Table.Row = React23.memo(TableRow);
|
7273
|
+
Table.Cell = React23.memo(TableCell);
|
7274
|
+
Table.SortCell = React23.memo(TableSortCell);
|
7275
|
+
Table.SelectCell = React23.memo(TableSelectCell);
|
7276
|
+
Table.Caption = Caption;
|
7277
|
+
|
7278
|
+
// src/atoms/DataList/DataList.tsx
|
7279
|
+
var import_chevronDown4 = __toESM(require_chevronDown());
|
7280
|
+
var import_chevronUp3 = __toESM(require_chevronUp());
|
7281
|
+
var getAlignClassNames2 = (align) => tw("flex items-center", {
|
7282
|
+
"justify-end": align === "right",
|
7283
|
+
"justify-center": align === "center",
|
7284
|
+
"justify-start": align === "left" || align === void 0
|
7285
|
+
});
|
7286
|
+
var DataList = (_a) => {
|
7287
|
+
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7288
|
+
return /* @__PURE__ */ React24.createElement("div", __spreadValues({}, rest));
|
7289
|
+
};
|
7290
|
+
var HeadCell = (_a) => {
|
7291
|
+
var _b = _a, {
|
7292
|
+
className,
|
7293
|
+
sticky,
|
7294
|
+
align,
|
7295
|
+
stickyColumn
|
7296
|
+
} = _b, rest = __objRest(_b, [
|
7297
|
+
"className",
|
7298
|
+
"sticky",
|
7299
|
+
"align",
|
7300
|
+
"stickyColumn"
|
7301
|
+
]);
|
7302
|
+
return /* @__PURE__ */ React24.createElement("div", __spreadProps(__spreadValues({
|
7303
|
+
role: "columnheader"
|
7304
|
+
}, rest), {
|
7305
|
+
className: classNames(
|
7306
|
+
cellClassNames,
|
7307
|
+
getHeadCellClassNames(sticky, stickyColumn),
|
7308
|
+
getAlignClassNames2(align),
|
7309
|
+
className
|
7310
|
+
)
|
7311
|
+
}));
|
7312
|
+
};
|
7313
|
+
var Cell = (_a) => {
|
7314
|
+
var _b = _a, {
|
7315
|
+
className,
|
7316
|
+
align,
|
7317
|
+
stickyColumn
|
7318
|
+
} = _b, rest = __objRest(_b, [
|
7319
|
+
"className",
|
7320
|
+
"align",
|
7321
|
+
"stickyColumn"
|
7322
|
+
]);
|
7323
|
+
return /* @__PURE__ */ React24.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7324
|
+
role: "cell",
|
7325
|
+
className: classNames(
|
7326
|
+
cellClassNames,
|
7327
|
+
getBodyCellClassNames(false, stickyColumn),
|
7328
|
+
getAlignClassNames2(align),
|
7329
|
+
tw("border-default group-last-of-type:border-b-0"),
|
7330
|
+
className
|
7331
|
+
)
|
7332
|
+
}));
|
7333
|
+
};
|
7334
|
+
var Row = (_a) => {
|
7335
|
+
var _b = _a, {
|
7336
|
+
className,
|
7337
|
+
disabled,
|
7338
|
+
header,
|
7339
|
+
subgroup,
|
7340
|
+
active
|
7341
|
+
} = _b, rest = __objRest(_b, [
|
7342
|
+
"className",
|
7343
|
+
"disabled",
|
7344
|
+
"header",
|
7345
|
+
"subgroup",
|
7346
|
+
"active"
|
7347
|
+
]);
|
7348
|
+
return /* @__PURE__ */ React24.createElement("div", __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, rest), {
|
7349
|
+
role: subgroup ? "rowgroup" : "row"
|
7350
|
+
}), { inert: disabled ? "" : void 0 }), {
|
7351
|
+
className: classNames(tw("contents"), className, {
|
7352
|
+
"children:opacity-70": disabled,
|
7353
|
+
"[&>*]:bg-primary-5": active,
|
7354
|
+
"[&>*]:hover:bg-grey-0": !disabled && !header
|
7355
|
+
})
|
7356
|
+
}));
|
7357
|
+
};
|
7358
|
+
var SubGroupSpacing = (_a) => {
|
7359
|
+
var _b = _a, { className, divider } = _b, rest = __objRest(_b, ["className", "divider"]);
|
7360
|
+
return /* @__PURE__ */ React24.createElement("span", __spreadProps(__spreadValues({}, rest), {
|
7361
|
+
"aria-hidden": true,
|
7362
|
+
className: classNames(
|
7363
|
+
tw("col-span-full h-6 bg-grey-0 border-default", { "border-b": Boolean(divider) }),
|
7364
|
+
className
|
7365
|
+
)
|
7366
|
+
}));
|
7367
|
+
};
|
7368
|
+
var SortCell = (_a) => {
|
7369
|
+
var _b = _a, { children, direction = "none", onClick, sticky } = _b, rest = __objRest(_b, ["children", "direction", "onClick", "sticky"]);
|
7370
|
+
return /* @__PURE__ */ React24.createElement(HeadCell, __spreadProps(__spreadValues({}, rest), {
|
7371
|
+
"aria-sort": direction,
|
7372
|
+
role: "columnheader",
|
7373
|
+
sticky
|
7374
|
+
}), /* @__PURE__ */ React24.createElement("span", {
|
7375
|
+
className: getSortCellButtonClassNames(rest.align),
|
7376
|
+
role: "button",
|
7377
|
+
tabIndex: -1,
|
7378
|
+
onClick
|
7379
|
+
}, children, /* @__PURE__ */ React24.createElement("div", {
|
7380
|
+
"data-sort-icons": true,
|
7381
|
+
className: tw("flex flex-col", {
|
7382
|
+
"invisible group-hover:visible": direction === "none"
|
7383
|
+
})
|
7384
|
+
}, /* @__PURE__ */ React24.createElement(InlineIcon, {
|
7385
|
+
icon: import_chevronUp3.default,
|
7386
|
+
className: getSortCellIconClassNames(direction === "ascending")
|
7387
|
+
}), /* @__PURE__ */ React24.createElement(InlineIcon, {
|
7388
|
+
icon: import_chevronDown4.default,
|
7389
|
+
className: getSortCellIconClassNames(direction === "descending")
|
7390
|
+
}))));
|
7391
|
+
};
|
7392
|
+
DataList.HeadCell = HeadCell;
|
7393
|
+
DataList.HeadCell.displayName = "DataList.HeadCell";
|
7394
|
+
DataList.SortCell = SortCell;
|
7395
|
+
DataList.SortCell.displayName = "DataList.SortCell";
|
7396
|
+
DataList.Cell = Cell;
|
7397
|
+
DataList.Cell.displayName = "DataList.Cell";
|
7398
|
+
DataList.SubGroupSpacing = SubGroupSpacing;
|
7399
|
+
DataList.SubGroupSpacing.displayName = "DataList.SubGroupSpacing";
|
7400
|
+
DataList.Row = Row;
|
7401
|
+
DataList.Row.displayName = "DataList.Row";
|
7402
|
+
var ToolbarContainer = (_a) => {
|
7403
|
+
var _b = _a, { className, sticky = true } = _b, rest = __objRest(_b, ["className", "sticky"]);
|
7404
|
+
return /* @__PURE__ */ React24.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7405
|
+
role: "row",
|
7406
|
+
className: classNames(
|
7407
|
+
tw("col-span-full flex items-stretch py-4 px-l2 border-b border-default", {
|
7408
|
+
"sticky top-[47px] bg-white z-10": sticky
|
7409
|
+
}),
|
7410
|
+
className
|
7411
|
+
)
|
7412
|
+
}));
|
7413
|
+
};
|
7414
|
+
ToolbarContainer.displayName = "DataList.Toolbar.Container";
|
7415
|
+
var ToolbarGroup = (_a) => {
|
7416
|
+
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7417
|
+
return /* @__PURE__ */ React24.createElement("div", __spreadProps(__spreadValues({
|
7418
|
+
role: "cell"
|
7419
|
+
}, rest), {
|
7420
|
+
className: classNames(tw("flex items-center px-l2 border-r-[1px] border-muted last:border-r-0"), className)
|
7421
|
+
}));
|
7422
|
+
};
|
7423
|
+
ToolbarGroup.displayName = "DataList.Toolbar.Group";
|
7424
|
+
var ToolbarSelectionCount = (_a) => {
|
7425
|
+
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7426
|
+
return /* @__PURE__ */ React24.createElement(Typography, __spreadValues({
|
7427
|
+
variant: "small",
|
7428
|
+
color: "muted",
|
7429
|
+
className: classNames(tw("whitespace-nowrap"), className)
|
7430
|
+
}, rest));
|
7431
|
+
};
|
7432
|
+
var ToolbarActions = (_a) => {
|
7433
|
+
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7434
|
+
return /* @__PURE__ */ React24.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7435
|
+
className: classNames(tw("flex items-center gap-x-5"), className)
|
7436
|
+
}));
|
7437
|
+
};
|
7438
|
+
ToolbarActions.displayName = "DataList.Toolbar.Actions";
|
7439
|
+
DataList.Toolbar = {
|
7440
|
+
Container: ToolbarContainer,
|
7441
|
+
Group: ToolbarGroup,
|
7442
|
+
Actions: ToolbarActions,
|
7443
|
+
SelectionCount: ToolbarSelectionCount
|
7444
|
+
};
|
7445
|
+
|
7078
7446
|
// src/atoms/Dialog/Dialog.tsx
|
7079
7447
|
var import_confirm2 = __toESM(require_confirm());
|
7080
7448
|
var import_error3 = __toESM(require_error());
|
@@ -7095,13 +7463,13 @@ var DIALOG_ICONS_AND_COLORS = {
|
|
7095
7463
|
};
|
7096
7464
|
|
7097
7465
|
// src/atoms/DropdownMenu/DropdownMenu.tsx
|
7098
|
-
import
|
7466
|
+
import React27 from "react";
|
7099
7467
|
|
7100
7468
|
// src/molecules/Badge/Badge.tsx
|
7101
|
-
import
|
7469
|
+
import React26 from "react";
|
7102
7470
|
|
7103
7471
|
// src/molecules/Skeleton/Skeleton.tsx
|
7104
|
-
import
|
7472
|
+
import React25 from "react";
|
7105
7473
|
import isNumber2 from "lodash/isNumber";
|
7106
7474
|
import isUndefined7 from "lodash/isUndefined";
|
7107
7475
|
var Skeleton = (_a) => {
|
@@ -7126,7 +7494,7 @@ var Skeleton = (_a) => {
|
|
7126
7494
|
width: isNumber2(width) ? `${width}px` : width,
|
7127
7495
|
height: isNumber2(height) ? `${height}px` : height
|
7128
7496
|
};
|
7129
|
-
return /* @__PURE__ */
|
7497
|
+
return /* @__PURE__ */ React25.createElement("div", __spreadProps(__spreadValues({
|
7130
7498
|
"aria-label": "Loading..."
|
7131
7499
|
}, rest), {
|
7132
7500
|
style: __spreadValues(__spreadValues({}, styles), style),
|
@@ -7150,7 +7518,7 @@ var createBadge = (type, displayName) => {
|
|
7150
7518
|
const Component = (props) => {
|
7151
7519
|
const _a = props, { kind = "filled", value, textClassname, dense = false } = _a, rest = __objRest(_a, ["kind", "value", "textClassname", "dense"]);
|
7152
7520
|
const valueStr = value.toString();
|
7153
|
-
return /* @__PURE__ */
|
7521
|
+
return /* @__PURE__ */ React26.createElement("span", __spreadProps(__spreadValues({}, rest), {
|
7154
7522
|
className: classNames(
|
7155
7523
|
tw("inline-block text-center", {
|
7156
7524
|
"rounded-full": type === "default" || type === "chip",
|
@@ -7165,7 +7533,7 @@ var createBadge = (type, displayName) => {
|
|
7165
7533
|
}),
|
7166
7534
|
"Aquarium-Badge"
|
7167
7535
|
)
|
7168
|
-
}), /* @__PURE__ */
|
7536
|
+
}), /* @__PURE__ */ React26.createElement("span", {
|
7169
7537
|
className: classNames(
|
7170
7538
|
textClassname,
|
7171
7539
|
tw("inline-block", {
|
@@ -7176,7 +7544,7 @@ var createBadge = (type, displayName) => {
|
|
7176
7544
|
}, valueStr));
|
7177
7545
|
};
|
7178
7546
|
Component.displayName = displayName;
|
7179
|
-
Component.Skeleton = () => /* @__PURE__ */
|
7547
|
+
Component.Skeleton = () => /* @__PURE__ */ React26.createElement(Skeleton, {
|
7180
7548
|
height: 16,
|
7181
7549
|
width: 16,
|
7182
7550
|
display: "inline-block",
|
@@ -7187,16 +7555,16 @@ var createBadge = (type, displayName) => {
|
|
7187
7555
|
};
|
7188
7556
|
var NotificationBadge = (_a) => {
|
7189
7557
|
var _b = _a, { children, top = "-2px", right = "-2px" } = _b, props = __objRest(_b, ["children", "top", "right"]);
|
7190
|
-
return /* @__PURE__ */
|
7558
|
+
return /* @__PURE__ */ React26.createElement("div", __spreadProps(__spreadValues({}, props), {
|
7191
7559
|
className: classNames("Aquarium-Badge.Notification", tw("relative inline-flex"))
|
7192
|
-
}), children, /* @__PURE__ */
|
7560
|
+
}), children, /* @__PURE__ */ React26.createElement("span", {
|
7193
7561
|
style: { top, right },
|
7194
7562
|
className: tw("absolute rounded-full w-[6px] h-[6px] bg-error-70")
|
7195
7563
|
}));
|
7196
7564
|
};
|
7197
7565
|
var DotBadge = (_a) => {
|
7198
7566
|
var _b = _a, { dense = false } = _b, props = __objRest(_b, ["dense"]);
|
7199
|
-
return /* @__PURE__ */
|
7567
|
+
return /* @__PURE__ */ React26.createElement("span", __spreadProps(__spreadValues({}, props), {
|
7200
7568
|
className: classNames(
|
7201
7569
|
"Aquarium-Badge.Dot",
|
7202
7570
|
tw("rounded-full bg-current", {
|
@@ -7216,36 +7584,36 @@ var ChipBadge = createBadge("chip", "ChipBadge");
|
|
7216
7584
|
|
7217
7585
|
// src/atoms/DropdownMenu/DropdownMenu.tsx
|
7218
7586
|
var import_tick3 = __toESM(require_tick());
|
7219
|
-
var DropdownMenu =
|
7587
|
+
var DropdownMenu = React27.forwardRef(
|
7220
7588
|
(_a, ref) => {
|
7221
7589
|
var _b = _a, { minHeight, maxHeight = "100%", minWidth = "125px", maxWidth, className, children } = _b, props = __objRest(_b, ["minHeight", "maxHeight", "minWidth", "maxWidth", "className", "children"]);
|
7222
|
-
return /* @__PURE__ */
|
7590
|
+
return /* @__PURE__ */ React27.createElement("div", __spreadValues({
|
7223
7591
|
ref,
|
7224
7592
|
style: { minHeight, maxHeight, minWidth, maxWidth },
|
7225
7593
|
className: classNames(className, "bg-white w-full flex flex-col overflow-x-hidden typography-small text-default")
|
7226
7594
|
}, props), children);
|
7227
7595
|
}
|
7228
7596
|
);
|
7229
|
-
var ContentContainer = ({ children }) => /* @__PURE__ */
|
7597
|
+
var ContentContainer = ({ children }) => /* @__PURE__ */ React27.createElement("div", {
|
7230
7598
|
className: tw("p-3 overflow-y-auto overflow-x-hidden")
|
7231
7599
|
}, children);
|
7232
7600
|
DropdownMenu.ContentContainer = ContentContainer;
|
7233
|
-
var List =
|
7601
|
+
var List = React27.forwardRef(
|
7234
7602
|
(_a, ref) => {
|
7235
7603
|
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
7236
|
-
return /* @__PURE__ */
|
7604
|
+
return /* @__PURE__ */ React27.createElement("ul", __spreadValues({
|
7237
7605
|
ref,
|
7238
7606
|
className: classNames(className, "outline-none ring-0")
|
7239
7607
|
}, props), children);
|
7240
7608
|
}
|
7241
7609
|
);
|
7242
7610
|
DropdownMenu.List = List;
|
7243
|
-
var Group =
|
7611
|
+
var Group = React27.forwardRef(
|
7244
7612
|
(_a, ref) => {
|
7245
7613
|
var _b = _a, { className, title, titleProps, children } = _b, props = __objRest(_b, ["className", "title", "titleProps", "children"]);
|
7246
|
-
return /* @__PURE__ */
|
7614
|
+
return /* @__PURE__ */ React27.createElement("li", __spreadValues({
|
7247
7615
|
ref
|
7248
|
-
}, props), title && /* @__PURE__ */
|
7616
|
+
}, props), title && /* @__PURE__ */ React27.createElement("div", __spreadValues({
|
7249
7617
|
className: classNames(className, "p-3 text-muted uppercase cursor-default typography-caption", {
|
7250
7618
|
"text-grey-20": props.disabled
|
7251
7619
|
})
|
@@ -7253,10 +7621,10 @@ var Group = React24.forwardRef(
|
|
7253
7621
|
}
|
7254
7622
|
);
|
7255
7623
|
DropdownMenu.Group = Group;
|
7256
|
-
var
|
7624
|
+
var Item2 = React27.forwardRef(
|
7257
7625
|
(_a, ref) => {
|
7258
7626
|
var _b = _a, { kind, highlighted, selected, className, icon, showNotification = false, children } = _b, props = __objRest(_b, ["kind", "highlighted", "selected", "className", "icon", "showNotification", "children"]);
|
7259
|
-
return /* @__PURE__ */
|
7627
|
+
return /* @__PURE__ */ React27.createElement("li", __spreadValues({
|
7260
7628
|
ref,
|
7261
7629
|
className: classNames(className, "flex items-center gap-x-3 p-3 outline-none", {
|
7262
7630
|
"cursor-pointer hover:bg-grey-0": !props.disabled,
|
@@ -7264,42 +7632,42 @@ var Item = React24.forwardRef(
|
|
7264
7632
|
"text-primary-80": kind === "action",
|
7265
7633
|
"text-grey-20 cursor-not-allowed": props.disabled
|
7266
7634
|
})
|
7267
|
-
}, props), icon && showNotification && /* @__PURE__ */
|
7635
|
+
}, props), icon && showNotification && /* @__PURE__ */ React27.createElement(Badge.Notification, null, /* @__PURE__ */ React27.createElement(InlineIcon, {
|
7268
7636
|
icon
|
7269
|
-
})), icon && !showNotification && /* @__PURE__ */
|
7637
|
+
})), icon && !showNotification && /* @__PURE__ */ React27.createElement(InlineIcon, {
|
7270
7638
|
icon
|
7271
|
-
}), /* @__PURE__ */
|
7639
|
+
}), /* @__PURE__ */ React27.createElement("span", {
|
7272
7640
|
className: tw("grow")
|
7273
|
-
}, children), selected && /* @__PURE__ */
|
7641
|
+
}, children), selected && /* @__PURE__ */ React27.createElement(InlineIcon, {
|
7274
7642
|
icon: import_tick3.default
|
7275
7643
|
}));
|
7276
7644
|
}
|
7277
7645
|
);
|
7278
|
-
DropdownMenu.Item =
|
7279
|
-
var Description = ({ disabled, children }) => /* @__PURE__ */
|
7646
|
+
DropdownMenu.Item = Item2;
|
7647
|
+
var Description = ({ disabled, children }) => /* @__PURE__ */ React27.createElement(Typography2.Caption, {
|
7280
7648
|
color: disabled ? "grey-20" : "grey-40"
|
7281
7649
|
}, children);
|
7282
7650
|
DropdownMenu.Description = Description;
|
7283
7651
|
var Separator = (_a) => {
|
7284
7652
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
7285
|
-
return /* @__PURE__ */
|
7653
|
+
return /* @__PURE__ */ React27.createElement("li", __spreadProps(__spreadValues({}, props), {
|
7286
7654
|
className: classNames(className, tw("m-3 block bg-grey-5 h-[1px]"))
|
7287
7655
|
}));
|
7288
7656
|
};
|
7289
7657
|
DropdownMenu.Separator = Separator;
|
7290
7658
|
var EmptyStateContainer = (_a) => {
|
7291
7659
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
7292
|
-
return /* @__PURE__ */
|
7660
|
+
return /* @__PURE__ */ React27.createElement("div", __spreadValues({
|
7293
7661
|
className: classNames(tw("border border-dashed border-default p-3"), className)
|
7294
7662
|
}, props), children);
|
7295
7663
|
};
|
7296
7664
|
DropdownMenu.EmptyStateContainer = EmptyStateContainer;
|
7297
7665
|
|
7298
7666
|
// src/atoms/InputGroup/InputGroup.tsx
|
7299
|
-
import
|
7667
|
+
import React29 from "react";
|
7300
7668
|
|
7301
7669
|
// src/molecules/Grid/Grid.tsx
|
7302
|
-
import
|
7670
|
+
import React28 from "react";
|
7303
7671
|
import isEmpty from "lodash/isEmpty";
|
7304
7672
|
import mapValues from "lodash/mapValues";
|
7305
7673
|
import pick from "lodash/pick";
|
@@ -7350,14 +7718,14 @@ var GridItem = Tailwindify(
|
|
7350
7718
|
gridRowEnd: rowEnd
|
7351
7719
|
});
|
7352
7720
|
const HtmlElement = htmlTag;
|
7353
|
-
return /* @__PURE__ */
|
7721
|
+
return /* @__PURE__ */ React28.createElement(HtmlElement, {
|
7354
7722
|
style: __spreadValues(__spreadValues({}, hookStyle), style),
|
7355
7723
|
className
|
7356
7724
|
}, children);
|
7357
7725
|
}
|
7358
7726
|
);
|
7359
7727
|
var Grid = (props) => {
|
7360
|
-
return /* @__PURE__ */
|
7728
|
+
return /* @__PURE__ */ React28.createElement(GridComponent, __spreadValues({}, props));
|
7361
7729
|
};
|
7362
7730
|
var GridComponent = Tailwindify(
|
7363
7731
|
({
|
@@ -7411,7 +7779,7 @@ var GridComponent = Tailwindify(
|
|
7411
7779
|
gridRowEnd: rowEnd
|
7412
7780
|
});
|
7413
7781
|
const HtmlElement = htmlTag;
|
7414
|
-
return /* @__PURE__ */
|
7782
|
+
return /* @__PURE__ */ React28.createElement(HtmlElement, {
|
7415
7783
|
style: __spreadValues(__spreadValues({}, hookStyle), style),
|
7416
7784
|
className
|
7417
7785
|
}, children);
|
@@ -7430,7 +7798,7 @@ var gridColumnStyles = {
|
|
7430
7798
|
};
|
7431
7799
|
var InputGroup = (_a) => {
|
7432
7800
|
var _b = _a, { cols = "1", children } = _b, rest = __objRest(_b, ["cols", "children"]);
|
7433
|
-
return /* @__PURE__ */
|
7801
|
+
return /* @__PURE__ */ React29.createElement(Grid, __spreadProps(__spreadValues({}, rest), {
|
7434
7802
|
display: "inline-grid",
|
7435
7803
|
colGap: "l4",
|
7436
7804
|
rowGap: "3",
|
@@ -7440,16 +7808,16 @@ var InputGroup = (_a) => {
|
|
7440
7808
|
};
|
7441
7809
|
|
7442
7810
|
// src/atoms/Link/Link.tsx
|
7443
|
-
import
|
7811
|
+
import React30 from "react";
|
7444
7812
|
var Link = (_a) => {
|
7445
7813
|
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
7446
|
-
return /* @__PURE__ */
|
7814
|
+
return /* @__PURE__ */ React30.createElement("a", __spreadValues({
|
7447
7815
|
className: classNames(className, linkStyle)
|
7448
7816
|
}, props), children);
|
7449
7817
|
};
|
7450
7818
|
|
7451
7819
|
// src/atoms/Modal/Modal.tsx
|
7452
|
-
import
|
7820
|
+
import React31 from "react";
|
7453
7821
|
var Modal = (_a) => {
|
7454
7822
|
var _b = _a, {
|
7455
7823
|
children,
|
@@ -7462,7 +7830,7 @@ var Modal = (_a) => {
|
|
7462
7830
|
"className",
|
7463
7831
|
"open"
|
7464
7832
|
]);
|
7465
|
-
return open ? /* @__PURE__ */
|
7833
|
+
return open ? /* @__PURE__ */ React31.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7466
7834
|
className: classNames(
|
7467
7835
|
tw("inset-0 overflow-y-auto z-modal fixed"),
|
7468
7836
|
{
|
@@ -7474,11 +7842,11 @@ var Modal = (_a) => {
|
|
7474
7842
|
};
|
7475
7843
|
Modal.BackDrop = (_a) => {
|
7476
7844
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7477
|
-
return /* @__PURE__ */
|
7845
|
+
return /* @__PURE__ */ React31.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7478
7846
|
className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-primary-100 opacity-60"), className)
|
7479
7847
|
}));
|
7480
7848
|
};
|
7481
|
-
Modal.Dialog =
|
7849
|
+
Modal.Dialog = React31.forwardRef(
|
7482
7850
|
(_a, ref) => {
|
7483
7851
|
var _b = _a, { kind = "dialog", children, className, size = "sm" } = _b, rest = __objRest(_b, ["kind", "children", "className", "size"]);
|
7484
7852
|
const commonClasses = tw("bg-white max-h-full flex flex-col");
|
@@ -7492,7 +7860,7 @@ Modal.Dialog = React28.forwardRef(
|
|
7492
7860
|
"w-[560px]": size === "md",
|
7493
7861
|
"w-[1080px]": size === "full"
|
7494
7862
|
});
|
7495
|
-
return /* @__PURE__ */
|
7863
|
+
return /* @__PURE__ */ React31.createElement("div", __spreadProps(__spreadValues({
|
7496
7864
|
ref,
|
7497
7865
|
"aria-modal": "true"
|
7498
7866
|
}, rest), {
|
@@ -7502,31 +7870,31 @@ Modal.Dialog = React28.forwardRef(
|
|
7502
7870
|
);
|
7503
7871
|
Modal.Header = (_a) => {
|
7504
7872
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7505
|
-
return /* @__PURE__ */
|
7873
|
+
return /* @__PURE__ */ React31.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7506
7874
|
className: classNames(tw("pl-7 pr-[64px] py-6 gap-3 flex items-center"), className)
|
7507
7875
|
}), children);
|
7508
7876
|
};
|
7509
7877
|
Modal.HeaderImage = (_a) => {
|
7510
7878
|
var _b = _a, { backgroundImage, className } = _b, rest = __objRest(_b, ["backgroundImage", "className"]);
|
7511
7879
|
const common = tw("h-[120px] min-h-[120px] w-full ");
|
7512
|
-
return backgroundImage ? /* @__PURE__ */
|
7880
|
+
return backgroundImage ? /* @__PURE__ */ React31.createElement("img", __spreadProps(__spreadValues({
|
7513
7881
|
"aria-hidden": true,
|
7514
7882
|
src: backgroundImage != null ? backgroundImage : void 0
|
7515
7883
|
}, rest), {
|
7516
7884
|
className: classNames(common, tw("object-cover"), className)
|
7517
|
-
})) : /* @__PURE__ */
|
7885
|
+
})) : /* @__PURE__ */ React31.createElement("div", {
|
7518
7886
|
className: classNames(common, tw("bg-grey-5"), className)
|
7519
7887
|
});
|
7520
7888
|
};
|
7521
7889
|
Modal.CloseButtonContainer = (_a) => {
|
7522
7890
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7523
|
-
return /* @__PURE__ */
|
7891
|
+
return /* @__PURE__ */ React31.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7524
7892
|
className: classNames(tw("absolute top-[24px] right-[28px]"), className)
|
7525
7893
|
}));
|
7526
7894
|
};
|
7527
7895
|
Modal.Title = (_a) => {
|
7528
7896
|
var _b = _a, { kind = "dialog", children, className } = _b, rest = __objRest(_b, ["kind", "children", "className"]);
|
7529
|
-
return /* @__PURE__ */
|
7897
|
+
return /* @__PURE__ */ React31.createElement(Typography, __spreadValues({
|
7530
7898
|
htmlTag: "h2",
|
7531
7899
|
variant: "subheading",
|
7532
7900
|
color: "grey-90",
|
@@ -7540,87 +7908,87 @@ Modal.Title = (_a) => {
|
|
7540
7908
|
};
|
7541
7909
|
Modal.Subtitle = (_a) => {
|
7542
7910
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
7543
|
-
return /* @__PURE__ */
|
7911
|
+
return /* @__PURE__ */ React31.createElement(Typography, __spreadValues({
|
7544
7912
|
variant: "small",
|
7545
7913
|
color: "grey-60"
|
7546
7914
|
}, rest), children);
|
7547
7915
|
};
|
7548
7916
|
Modal.TitleContainer = (_a) => {
|
7549
7917
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7550
|
-
return /* @__PURE__ */
|
7918
|
+
return /* @__PURE__ */ React31.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7551
7919
|
className: classNames(tw("flex flex-col grow"), className)
|
7552
7920
|
}), children);
|
7553
7921
|
};
|
7554
7922
|
Modal.Body = (_a) => {
|
7555
7923
|
var _b = _a, { children, className, noFooter = false, maxHeight, style } = _b, rest = __objRest(_b, ["children", "className", "noFooter", "maxHeight", "style"]);
|
7556
|
-
return /* @__PURE__ */
|
7924
|
+
return /* @__PURE__ */ React31.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7557
7925
|
className: classNames(tw("px-7 grow overflow-y-auto", { "pb-6": noFooter }), className),
|
7558
7926
|
style: __spreadValues({ maxHeight }, style)
|
7559
7927
|
}), children);
|
7560
7928
|
};
|
7561
7929
|
Modal.Footer = (_a) => {
|
7562
7930
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7563
|
-
return /* @__PURE__ */
|
7931
|
+
return /* @__PURE__ */ React31.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7564
7932
|
className: classNames(tw("px-7 py-6"), className)
|
7565
7933
|
}), children);
|
7566
7934
|
};
|
7567
7935
|
Modal.Actions = (_a) => {
|
7568
7936
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7569
|
-
return /* @__PURE__ */
|
7937
|
+
return /* @__PURE__ */ React31.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7570
7938
|
className: classNames(tw("flex gap-4 justify-end"), className)
|
7571
7939
|
}), children);
|
7572
7940
|
};
|
7573
7941
|
|
7574
7942
|
// src/atoms/Navigation/Navigation.tsx
|
7575
|
-
import
|
7943
|
+
import React32 from "react";
|
7576
7944
|
var Navigation = (_a) => {
|
7577
7945
|
var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
|
7578
|
-
return /* @__PURE__ */
|
7946
|
+
return /* @__PURE__ */ React32.createElement("nav", {
|
7579
7947
|
className: classNames(tw("bg-grey-0 h-full"))
|
7580
|
-
}, /* @__PURE__ */
|
7948
|
+
}, /* @__PURE__ */ React32.createElement("ul", __spreadProps(__spreadValues({}, rest), {
|
7581
7949
|
className: classNames(tw("flex flex-col h-full"), className),
|
7582
7950
|
role: "menubar"
|
7583
7951
|
}), children));
|
7584
7952
|
};
|
7585
7953
|
var Header = (_a) => {
|
7586
7954
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7587
|
-
return /* @__PURE__ */
|
7955
|
+
return /* @__PURE__ */ React32.createElement("li", __spreadProps(__spreadValues({}, rest), {
|
7588
7956
|
role: "presentation",
|
7589
7957
|
className: classNames(tw("px-6 py-5"), className)
|
7590
7958
|
}));
|
7591
7959
|
};
|
7592
7960
|
var Footer = (_a) => {
|
7593
7961
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7594
|
-
return /* @__PURE__ */
|
7962
|
+
return /* @__PURE__ */ React32.createElement("li", __spreadProps(__spreadValues({}, rest), {
|
7595
7963
|
role: "presentation",
|
7596
7964
|
className: classNames(tw("px-6 py-5 mt-auto"), className)
|
7597
7965
|
}));
|
7598
7966
|
};
|
7599
7967
|
var Section = (_a) => {
|
7600
7968
|
var _b = _a, { title, className } = _b, rest = __objRest(_b, ["title", "className"]);
|
7601
|
-
return /* @__PURE__ */
|
7969
|
+
return /* @__PURE__ */ React32.createElement("li", {
|
7602
7970
|
role: "presentation",
|
7603
7971
|
className: tw("py-5")
|
7604
|
-
}, title && /* @__PURE__ */
|
7972
|
+
}, title && /* @__PURE__ */ React32.createElement("div", {
|
7605
7973
|
className: classNames(className, "py-2 px-6 text-muted uppercase cursor-default typography-caption")
|
7606
|
-
}, title), /* @__PURE__ */
|
7974
|
+
}, title), /* @__PURE__ */ React32.createElement("ul", __spreadProps(__spreadValues({}, rest), {
|
7607
7975
|
role: "group",
|
7608
7976
|
className: classNames(tw("flex flex-col"), className)
|
7609
7977
|
})));
|
7610
7978
|
};
|
7611
7979
|
var Divider = (_a) => {
|
7612
7980
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7613
|
-
return /* @__PURE__ */
|
7981
|
+
return /* @__PURE__ */ React32.createElement("li", __spreadProps(__spreadValues({
|
7614
7982
|
role: "separator"
|
7615
7983
|
}, rest), {
|
7616
7984
|
className: classNames(tw("border-t-2 border-muted"), className)
|
7617
7985
|
}));
|
7618
7986
|
};
|
7619
|
-
var
|
7987
|
+
var Item3 = (_a) => {
|
7620
7988
|
var _b = _a, { className, active } = _b, rest = __objRest(_b, ["className", "active"]);
|
7621
|
-
return /* @__PURE__ */
|
7989
|
+
return /* @__PURE__ */ React32.createElement("li", {
|
7622
7990
|
role: "presentation"
|
7623
|
-
}, /* @__PURE__ */
|
7991
|
+
}, /* @__PURE__ */ React32.createElement("a", __spreadProps(__spreadValues({}, rest), {
|
7624
7992
|
role: "menuitem",
|
7625
7993
|
className: classNames(
|
7626
7994
|
tw("py-3 px-6 hover:bg-grey-5 cursor-pointer flex gap-4 items-center typography-small focusable", {
|
@@ -7634,14 +8002,14 @@ var Item2 = (_a) => {
|
|
7634
8002
|
Navigation.Header = Header;
|
7635
8003
|
Navigation.Footer = Footer;
|
7636
8004
|
Navigation.Section = Section;
|
7637
|
-
Navigation.Item =
|
8005
|
+
Navigation.Item = Item3;
|
7638
8006
|
Navigation.Divider = Divider;
|
7639
8007
|
|
7640
8008
|
// src/atoms/Popover/Popover.tsx
|
7641
|
-
import
|
7642
|
-
var PopoverPanel =
|
8009
|
+
import React33 from "react";
|
8010
|
+
var PopoverPanel = React33.forwardRef((_a, ref) => {
|
7643
8011
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
7644
|
-
return /* @__PURE__ */
|
8012
|
+
return /* @__PURE__ */ React33.createElement("div", __spreadValues({
|
7645
8013
|
ref,
|
7646
8014
|
className: classNames(
|
7647
8015
|
className,
|
@@ -7650,7 +8018,7 @@ var PopoverPanel = React30.forwardRef((_a, ref) => {
|
|
7650
8018
|
}, props), children);
|
7651
8019
|
});
|
7652
8020
|
PopoverPanel.displayName = "Popover.Panel";
|
7653
|
-
var PopoverUnderlay =
|
8021
|
+
var PopoverUnderlay = React33.forwardRef((props, ref) => /* @__PURE__ */ React33.createElement("div", __spreadProps(__spreadValues({
|
7654
8022
|
ref
|
7655
8023
|
}, props), {
|
7656
8024
|
className: tw("fixed inset-0")
|
@@ -7662,23 +8030,23 @@ var Popover = {
|
|
7662
8030
|
};
|
7663
8031
|
|
7664
8032
|
// src/atoms/PopoverDialog/PopoverDialog.tsx
|
7665
|
-
import
|
8033
|
+
import React34 from "react";
|
7666
8034
|
var Header2 = (_a) => {
|
7667
8035
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7668
|
-
return /* @__PURE__ */
|
8036
|
+
return /* @__PURE__ */ React34.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7669
8037
|
className: classNames(tw("p-5 gap-3 flex items-center"), className)
|
7670
8038
|
}), children);
|
7671
8039
|
};
|
7672
8040
|
var Title2 = (_a) => {
|
7673
8041
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7674
|
-
return /* @__PURE__ */
|
8042
|
+
return /* @__PURE__ */ React34.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
7675
8043
|
htmlTag: "h1",
|
7676
8044
|
variant: "small-strong"
|
7677
8045
|
}), children);
|
7678
8046
|
};
|
7679
8047
|
var Body = (_a) => {
|
7680
8048
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7681
|
-
return /* @__PURE__ */
|
8049
|
+
return /* @__PURE__ */ React34.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
7682
8050
|
htmlTag: "div",
|
7683
8051
|
variant: "caption",
|
7684
8052
|
className: classNames(tw("px-5 overflow-y-auto"), className)
|
@@ -7686,13 +8054,13 @@ var Body = (_a) => {
|
|
7686
8054
|
};
|
7687
8055
|
var Footer2 = (_a) => {
|
7688
8056
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7689
|
-
return /* @__PURE__ */
|
8057
|
+
return /* @__PURE__ */ React34.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7690
8058
|
className: classNames(tw("p-5"), className)
|
7691
8059
|
}), children);
|
7692
8060
|
};
|
7693
8061
|
var Actions2 = (_a) => {
|
7694
8062
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7695
|
-
return /* @__PURE__ */
|
8063
|
+
return /* @__PURE__ */ React34.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7696
8064
|
className: classNames(tw("flex gap-4"), className)
|
7697
8065
|
}), children);
|
7698
8066
|
};
|
@@ -7704,38 +8072,10 @@ var PopoverDialog = {
|
|
7704
8072
|
Actions: Actions2
|
7705
8073
|
};
|
7706
8074
|
|
7707
|
-
// src/atoms/RadioButton/RadioButton.tsx
|
7708
|
-
import React32 from "react";
|
7709
|
-
var RadioButton = React32.forwardRef(
|
7710
|
-
(_a, ref) => {
|
7711
|
-
var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
|
7712
|
-
return /* @__PURE__ */ React32.createElement("input", __spreadProps(__spreadValues({
|
7713
|
-
id,
|
7714
|
-
ref,
|
7715
|
-
type: "radio",
|
7716
|
-
name
|
7717
|
-
}, props), {
|
7718
|
-
className: classNames(
|
7719
|
-
tw(
|
7720
|
-
"inline-flex justify-center items-center self-center appearance-none",
|
7721
|
-
"w-5 h-5 p-[3px] rounded-full cursor-pointer border border-default",
|
7722
|
-
"outline-none focus:border-info-70 checked:bg-primary-80 checked:shadow-whiteInset",
|
7723
|
-
{
|
7724
|
-
"hover:border-intense checked:border-primary-80": !disabled,
|
7725
|
-
"cursor-not-allowed border-muted bg-grey-0 checked:bg-opacity-40 checked:bg-primary-40 checked:border-primary-40": disabled
|
7726
|
-
}
|
7727
|
-
)
|
7728
|
-
),
|
7729
|
-
readOnly,
|
7730
|
-
disabled
|
7731
|
-
}));
|
7732
|
-
}
|
7733
|
-
);
|
7734
|
-
|
7735
8075
|
// src/atoms/Select/Select.tsx
|
7736
|
-
import
|
7737
|
-
var
|
7738
|
-
var
|
8076
|
+
import React35 from "react";
|
8077
|
+
var import_chevronDown5 = __toESM(require_chevronDown());
|
8078
|
+
var import_chevronUp4 = __toESM(require_chevronUp());
|
7739
8079
|
var import_search2 = __toESM(require_search());
|
7740
8080
|
var import_tick4 = __toESM(require_tick());
|
7741
8081
|
function getOptionLabelBuiltin(option) {
|
@@ -7753,16 +8093,16 @@ function isOptionDisabledBuiltin(option) {
|
|
7753
8093
|
}
|
7754
8094
|
var getValues = (children) => {
|
7755
8095
|
var _a;
|
7756
|
-
const values =
|
8096
|
+
const values = React35.Children.map(children, (c) => {
|
7757
8097
|
var _a2;
|
7758
8098
|
return (_a2 = c == null ? void 0 : c.props) == null ? void 0 : _a2.value;
|
7759
8099
|
});
|
7760
8100
|
return (_a = values == null ? void 0 : values.filter((v) => v !== void 0 && v !== null)) != null ? _a : [];
|
7761
8101
|
};
|
7762
|
-
var InputContainer =
|
8102
|
+
var InputContainer = React35.forwardRef(
|
7763
8103
|
(_a, ref) => {
|
7764
8104
|
var _b = _a, { variant = "default", className } = _b, props = __objRest(_b, ["variant", "className"]);
|
7765
|
-
return /* @__PURE__ */
|
8105
|
+
return /* @__PURE__ */ React35.createElement("div", __spreadValues({
|
7766
8106
|
ref,
|
7767
8107
|
className: classNames(
|
7768
8108
|
className,
|
@@ -7781,9 +8121,9 @@ var InputContainer = React33.forwardRef(
|
|
7781
8121
|
}, props));
|
7782
8122
|
}
|
7783
8123
|
);
|
7784
|
-
var Input =
|
8124
|
+
var Input = React35.forwardRef((_a, ref) => {
|
7785
8125
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
7786
|
-
return /* @__PURE__ */
|
8126
|
+
return /* @__PURE__ */ React35.createElement("input", __spreadValues({
|
7787
8127
|
ref,
|
7788
8128
|
type: "text",
|
7789
8129
|
className: classNames(
|
@@ -7797,39 +8137,39 @@ var Input = React33.forwardRef((_a, ref) => {
|
|
7797
8137
|
)
|
7798
8138
|
}, props));
|
7799
8139
|
});
|
7800
|
-
var Menu =
|
8140
|
+
var Menu = React35.forwardRef(
|
7801
8141
|
(_a, ref) => {
|
7802
8142
|
var _b = _a, { maxHeight = "450px", className, children } = _b, props = __objRest(_b, ["maxHeight", "className", "children"]);
|
7803
|
-
return /* @__PURE__ */
|
8143
|
+
return /* @__PURE__ */ React35.createElement("ul", __spreadValues({
|
7804
8144
|
ref,
|
7805
8145
|
style: { maxHeight },
|
7806
8146
|
className
|
7807
8147
|
}, props), children);
|
7808
8148
|
}
|
7809
8149
|
);
|
7810
|
-
var NoResults =
|
8150
|
+
var NoResults = React35.forwardRef(
|
7811
8151
|
(_a, ref) => {
|
7812
8152
|
var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
|
7813
|
-
return /* @__PURE__ */
|
8153
|
+
return /* @__PURE__ */ React35.createElement("li", __spreadProps(__spreadValues({
|
7814
8154
|
ref
|
7815
8155
|
}, rest), {
|
7816
8156
|
className: classNames(tw("p-3 text-muted italic typography-small"), className)
|
7817
8157
|
}), children);
|
7818
8158
|
}
|
7819
8159
|
);
|
7820
|
-
var EmptyStateContainer2 =
|
8160
|
+
var EmptyStateContainer2 = React35.forwardRef((_a, ref) => {
|
7821
8161
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
7822
|
-
return /* @__PURE__ */
|
8162
|
+
return /* @__PURE__ */ React35.createElement("li", __spreadValues({
|
7823
8163
|
ref,
|
7824
8164
|
className: tw("border border-dashed border-default m-4 p-6")
|
7825
8165
|
}, props), children);
|
7826
8166
|
});
|
7827
|
-
var Divider2 = (props) => /* @__PURE__ */
|
8167
|
+
var Divider2 = (props) => /* @__PURE__ */ React35.createElement("div", __spreadValues({
|
7828
8168
|
className: tw("border-b-[1px] border-muted mx-3 my-4")
|
7829
8169
|
}, props));
|
7830
|
-
var Group2 =
|
8170
|
+
var Group2 = React35.forwardRef((_a, ref) => {
|
7831
8171
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
7832
|
-
return /* @__PURE__ */
|
8172
|
+
return /* @__PURE__ */ React35.createElement("li", __spreadValues({
|
7833
8173
|
ref,
|
7834
8174
|
className: classNames(
|
7835
8175
|
className,
|
@@ -7840,27 +8180,27 @@ var Group2 = React33.forwardRef((_a, ref) => {
|
|
7840
8180
|
)
|
7841
8181
|
}, props), children);
|
7842
8182
|
});
|
7843
|
-
var
|
8183
|
+
var Item4 = React35.forwardRef(
|
7844
8184
|
(_a, ref) => {
|
7845
8185
|
var _b = _a, { highlighted, selected, className, children } = _b, props = __objRest(_b, ["highlighted", "selected", "className", "children"]);
|
7846
|
-
return /* @__PURE__ */
|
8186
|
+
return /* @__PURE__ */ React35.createElement("li", __spreadValues({
|
7847
8187
|
ref,
|
7848
8188
|
className: classNames(className, "flex items-center gap-x-3 p-3 typography-small", {
|
7849
8189
|
"cursor-pointer hover:bg-grey-0": !props["aria-disabled"],
|
7850
8190
|
"cursor-not-allowed opacity-40 grayscale": props["aria-disabled"],
|
7851
8191
|
"bg-grey-0": highlighted
|
7852
8192
|
})
|
7853
|
-
}, props), /* @__PURE__ */
|
8193
|
+
}, props), /* @__PURE__ */ React35.createElement("span", {
|
7854
8194
|
className: tw("grow flex gap-x-3")
|
7855
|
-
}, children), selected && /* @__PURE__ */
|
8195
|
+
}, children), selected && /* @__PURE__ */ React35.createElement(InlineIcon, {
|
7856
8196
|
icon: import_tick4.default
|
7857
8197
|
}));
|
7858
8198
|
}
|
7859
8199
|
);
|
7860
|
-
var ActionItem =
|
8200
|
+
var ActionItem = React35.forwardRef(
|
7861
8201
|
(_a, ref) => {
|
7862
8202
|
var _b = _a, { className, dense, icon, onClick, children } = _b, props = __objRest(_b, ["className", "dense", "icon", "onClick", "children"]);
|
7863
|
-
return /* @__PURE__ */
|
8203
|
+
return /* @__PURE__ */ React35.createElement("li", __spreadValues({
|
7864
8204
|
ref,
|
7865
8205
|
role: "button",
|
7866
8206
|
onClick: () => !props.disabled && (onClick == null ? void 0 : onClick()),
|
@@ -7871,23 +8211,23 @@ var ActionItem = React33.forwardRef(
|
|
7871
8211
|
"text-grey-20": props.disabled,
|
7872
8212
|
"hover:text-primary-70": !props.disabled
|
7873
8213
|
})
|
7874
|
-
}, props), icon && /* @__PURE__ */
|
8214
|
+
}, props), icon && /* @__PURE__ */ React35.createElement(InlineIcon, {
|
7875
8215
|
icon
|
7876
8216
|
}), children);
|
7877
8217
|
}
|
7878
8218
|
);
|
7879
|
-
var Toggle =
|
8219
|
+
var Toggle = React35.forwardRef((_a, ref) => {
|
7880
8220
|
var _b = _a, { hasFocus, isOpen } = _b, props = __objRest(_b, ["hasFocus", "isOpen"]);
|
7881
8221
|
var _a2;
|
7882
|
-
return /* @__PURE__ */
|
8222
|
+
return /* @__PURE__ */ React35.createElement("button", __spreadProps(__spreadValues({
|
7883
8223
|
ref,
|
7884
8224
|
type: "button",
|
7885
8225
|
"aria-label": "Toggle"
|
7886
8226
|
}, props), {
|
7887
8227
|
className: tw("grow-0 leading-none", { "cursor-not-allowed": (_a2 = props.disabled) != null ? _a2 : false })
|
7888
|
-
}), /* @__PURE__ */
|
8228
|
+
}), /* @__PURE__ */ React35.createElement(InlineIcon, {
|
7889
8229
|
color: props.disabled ? "grey-40" : "grey-70",
|
7890
|
-
icon: hasFocus ? import_search2.default : isOpen ?
|
8230
|
+
icon: hasFocus ? import_search2.default : isOpen ? import_chevronUp4.default : import_chevronDown5.default
|
7891
8231
|
}));
|
7892
8232
|
});
|
7893
8233
|
var Select = {
|
@@ -7898,17 +8238,17 @@ var Select = {
|
|
7898
8238
|
NoResults,
|
7899
8239
|
Divider: Divider2,
|
7900
8240
|
Group: Group2,
|
7901
|
-
Item:
|
8241
|
+
Item: Item4,
|
7902
8242
|
ActionItem,
|
7903
8243
|
Toggle
|
7904
8244
|
};
|
7905
8245
|
|
7906
8246
|
// src/atoms/Stepper/Stepper.tsx
|
7907
|
-
import
|
8247
|
+
import React36 from "react";
|
7908
8248
|
var import_tick5 = __toESM(require_tick());
|
7909
8249
|
var Stepper = (_a) => {
|
7910
8250
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7911
|
-
return /* @__PURE__ */
|
8251
|
+
return /* @__PURE__ */ React36.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7912
8252
|
className: classNames(className)
|
7913
8253
|
}));
|
7914
8254
|
};
|
@@ -7922,7 +8262,7 @@ var ConnectorContainer = (_a) => {
|
|
7922
8262
|
"completed",
|
7923
8263
|
"dense"
|
7924
8264
|
]);
|
7925
|
-
return /* @__PURE__ */
|
8265
|
+
return /* @__PURE__ */ React36.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7926
8266
|
className: classNames(
|
7927
8267
|
tw("absolute w-full -left-1/2", {
|
7928
8268
|
"top-[3px] px-[14px]": Boolean(dense),
|
@@ -7934,7 +8274,7 @@ var ConnectorContainer = (_a) => {
|
|
7934
8274
|
};
|
7935
8275
|
var Connector = (_a) => {
|
7936
8276
|
var _b = _a, { children, className, completed, dense } = _b, rest = __objRest(_b, ["children", "className", "completed", "dense"]);
|
7937
|
-
return /* @__PURE__ */
|
8277
|
+
return /* @__PURE__ */ React36.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7938
8278
|
className: classNames(
|
7939
8279
|
tw("w-full", {
|
7940
8280
|
"bg-grey-20": !completed,
|
@@ -7948,7 +8288,7 @@ var Connector = (_a) => {
|
|
7948
8288
|
};
|
7949
8289
|
var Step = (_a) => {
|
7950
8290
|
var _b = _a, { className, state } = _b, rest = __objRest(_b, ["className", "state"]);
|
7951
|
-
return /* @__PURE__ */
|
8291
|
+
return /* @__PURE__ */ React36.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7952
8292
|
className: classNames(
|
7953
8293
|
tw("flex flex-col items-center text-grey-90 relative text-center", {
|
7954
8294
|
"text-grey-20": state === "inactive"
|
@@ -7969,13 +8309,13 @@ var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
|
|
7969
8309
|
});
|
7970
8310
|
var Indicator = (_a) => {
|
7971
8311
|
var _b = _a, { children, className, state, dense } = _b, rest = __objRest(_b, ["children", "className", "state", "dense"]);
|
7972
|
-
return /* @__PURE__ */
|
8312
|
+
return /* @__PURE__ */ React36.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7973
8313
|
className: classNames(
|
7974
8314
|
tw("rounded-full flex justify-center items-center mx-2 mb-3"),
|
7975
8315
|
dense ? getDenseClassNames(state) : getClassNames(state),
|
7976
8316
|
className
|
7977
8317
|
)
|
7978
|
-
}), state === "completed" ? /* @__PURE__ */
|
8318
|
+
}), state === "completed" ? /* @__PURE__ */ React36.createElement(InlineIcon, {
|
7979
8319
|
icon: import_tick5.default
|
7980
8320
|
}) : dense ? null : children);
|
7981
8321
|
};
|
@@ -7985,14 +8325,14 @@ ConnectorContainer.Connector = Connector;
|
|
7985
8325
|
Stepper.ConnectorContainer = ConnectorContainer;
|
7986
8326
|
|
7987
8327
|
// src/atoms/Switch/Switch.tsx
|
7988
|
-
import
|
8328
|
+
import React37 from "react";
|
7989
8329
|
var import_ban2 = __toESM(require_ban());
|
7990
|
-
var Switch =
|
8330
|
+
var Switch = React37.forwardRef(
|
7991
8331
|
(_a, ref) => {
|
7992
8332
|
var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
|
7993
|
-
return /* @__PURE__ */
|
8333
|
+
return /* @__PURE__ */ React37.createElement("span", {
|
7994
8334
|
className: tw("relative inline-flex justify-center items-center self-center group")
|
7995
|
-
}, /* @__PURE__ */
|
8335
|
+
}, /* @__PURE__ */ React37.createElement("input", __spreadProps(__spreadValues({
|
7996
8336
|
id,
|
7997
8337
|
ref,
|
7998
8338
|
type: "checkbox",
|
@@ -8011,7 +8351,7 @@ var Switch = React35.forwardRef(
|
|
8011
8351
|
),
|
8012
8352
|
readOnly,
|
8013
8353
|
disabled
|
8014
|
-
})), /* @__PURE__ */
|
8354
|
+
})), /* @__PURE__ */ React37.createElement("span", {
|
8015
8355
|
className: tw(
|
8016
8356
|
"pointer-events-none rounded-full absolute inline-flex justify-center items-center transition duration-300 h-4 w-4 transform peer-checked/switch:translate-x-5",
|
8017
8357
|
"bg-white left-2 peer-checked/switch:left-1 text-grey-30 peer-checked/switch:text-primary-60",
|
@@ -8019,139 +8359,13 @@ var Switch = React35.forwardRef(
|
|
8019
8359
|
"shadow-4dp": !disabled
|
8020
8360
|
}
|
8021
8361
|
)
|
8022
|
-
}, disabled && /* @__PURE__ */
|
8362
|
+
}, disabled && /* @__PURE__ */ React37.createElement(Icon, {
|
8023
8363
|
icon: import_ban2.default,
|
8024
8364
|
width: "10px",
|
8025
8365
|
height: "10px"
|
8026
8366
|
})));
|
8027
8367
|
}
|
8028
8368
|
);
|
8029
|
-
|
8030
|
-
// src/atoms/Table/Table.tsx
|
8031
|
-
import React36 from "react";
|
8032
|
-
var import_chevronDown4 = __toESM(require_chevronDown());
|
8033
|
-
var import_chevronUp3 = __toESM(require_chevronUp());
|
8034
|
-
var HeadContext = React36.createContext(null);
|
8035
|
-
var tableClassNames = tw("w-full relative typography-default border-spacing-0");
|
8036
|
-
var Table = (_a) => {
|
8037
|
-
var _b = _a, { children, ariaLabel, className } = _b, rest = __objRest(_b, ["children", "ariaLabel", "className"]);
|
8038
|
-
return /* @__PURE__ */ React36.createElement("table", __spreadProps(__spreadValues({}, rest), {
|
8039
|
-
className: classNames(tableClassNames, className),
|
8040
|
-
"aria-label": ariaLabel
|
8041
|
-
}), children);
|
8042
|
-
};
|
8043
|
-
var TableHead = (_a) => {
|
8044
|
-
var _b = _a, { children, sticky } = _b, rest = __objRest(_b, ["children", "sticky"]);
|
8045
|
-
return /* @__PURE__ */ React36.createElement("thead", __spreadValues({}, rest), /* @__PURE__ */ React36.createElement("tr", null, /* @__PURE__ */ React36.createElement(HeadContext.Provider, {
|
8046
|
-
value: { children, sticky }
|
8047
|
-
}, children)));
|
8048
|
-
};
|
8049
|
-
var TableBody = (_a) => {
|
8050
|
-
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
8051
|
-
return /* @__PURE__ */ React36.createElement("tbody", __spreadValues({}, rest), children);
|
8052
|
-
};
|
8053
|
-
var rowClassNames = tw("children:border-default group children:last:border-b-0 hover:bg-grey-0");
|
8054
|
-
var TableRow = (_a) => {
|
8055
|
-
var _b = _a, { children, className, disabled } = _b, rest = __objRest(_b, ["children", "className", "disabled"]);
|
8056
|
-
return /* @__PURE__ */ React36.createElement("tr", __spreadProps(__spreadValues(__spreadValues({}, rest), { inert: disabled ? "" : void 0 }), {
|
8057
|
-
className: classNames(rowClassNames, className, {
|
8058
|
-
"opacity-70": disabled
|
8059
|
-
})
|
8060
|
-
}), children);
|
8061
|
-
};
|
8062
|
-
var cellClassNames = tw("px-4 border-b typography-small leading-[18px]");
|
8063
|
-
var getBodyCellClassNames = (table = true, stickyColumn) => tw("text-default py-3", {
|
8064
|
-
"h-[50px]": table,
|
8065
|
-
"min-h-[50px]": !table,
|
8066
|
-
"sticky z-10 bg-white group-hover:bg-grey-0": Boolean(stickyColumn),
|
8067
|
-
"left-0": stickyColumn === "left",
|
8068
|
-
"right-0": stickyColumn === "right"
|
8069
|
-
});
|
8070
|
-
var getAlignClassNames = (align) => tw({ "text-right": align === "right", "text-center": align === "center" });
|
8071
|
-
var getHeadCellClassNames = (sticky = true, stickyColumn) => {
|
8072
|
-
const common = tw("py-[14px] text-left bg-white border-intense text-grey-50 font-semibold whitespace-nowrap");
|
8073
|
-
return sticky ? classNames(
|
8074
|
-
common,
|
8075
|
-
tw("sticky top-0", {
|
8076
|
-
"z-10": !stickyColumn,
|
8077
|
-
"z-20": Boolean(stickyColumn),
|
8078
|
-
"left-0": stickyColumn === "left",
|
8079
|
-
"right-0": stickyColumn === "right"
|
8080
|
-
})
|
8081
|
-
) : common;
|
8082
|
-
};
|
8083
|
-
var TableCell = (_a) => {
|
8084
|
-
var _b = _a, { children, className, stickyColumn, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "stickyColumn", "align"]);
|
8085
|
-
const headContext = React36.useContext(HeadContext);
|
8086
|
-
return headContext ? /* @__PURE__ */ React36.createElement("th", __spreadProps(__spreadValues({}, rest), {
|
8087
|
-
className: classNames(
|
8088
|
-
cellClassNames,
|
8089
|
-
getHeadCellClassNames(headContext.sticky, stickyColumn),
|
8090
|
-
getAlignClassNames(align),
|
8091
|
-
className
|
8092
|
-
)
|
8093
|
-
}), children) : /* @__PURE__ */ React36.createElement("td", __spreadProps(__spreadValues({}, rest), {
|
8094
|
-
className: classNames(
|
8095
|
-
cellClassNames,
|
8096
|
-
getBodyCellClassNames(true, stickyColumn),
|
8097
|
-
getAlignClassNames(align),
|
8098
|
-
className
|
8099
|
-
)
|
8100
|
-
}), children);
|
8101
|
-
};
|
8102
|
-
var TableSelectCell = (_a) => {
|
8103
|
-
var _b = _a, { ariaLabel } = _b, props = __objRest(_b, ["ariaLabel"]);
|
8104
|
-
return /* @__PURE__ */ React36.createElement(Table.Cell, {
|
8105
|
-
className: tw("leading-[0px]")
|
8106
|
-
}, props.type === "radio" ? /* @__PURE__ */ React36.createElement(RadioButton, __spreadValues({
|
8107
|
-
"aria-label": ariaLabel
|
8108
|
-
}, props)) : /* @__PURE__ */ React36.createElement(Checkbox, __spreadValues({
|
8109
|
-
"aria-label": ariaLabel
|
8110
|
-
}, props)));
|
8111
|
-
};
|
8112
|
-
var getSortCellButtonClassNames = (align) => tw("group flex items-center gap-x-4 text-grey-50", { "flex-row-reverse": align === "right" });
|
8113
|
-
var getSortCellIconClassNames = (active) => {
|
8114
|
-
return tw("text-[9px]", active ? "text-default" : "text-muted");
|
8115
|
-
};
|
8116
|
-
var TableSortCell = (_a) => {
|
8117
|
-
var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
|
8118
|
-
return /* @__PURE__ */ React36.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
|
8119
|
-
"aria-sort": direction
|
8120
|
-
}), /* @__PURE__ */ React36.createElement("span", {
|
8121
|
-
className: getSortCellButtonClassNames(rest.align),
|
8122
|
-
role: "button",
|
8123
|
-
tabIndex: -1,
|
8124
|
-
onClick
|
8125
|
-
}, children, /* @__PURE__ */ React36.createElement("div", {
|
8126
|
-
"data-sort-icons": true,
|
8127
|
-
className: tw("flex flex-col", {
|
8128
|
-
"invisible group-hover:visible": direction === "none"
|
8129
|
-
})
|
8130
|
-
}, /* @__PURE__ */ React36.createElement(InlineIcon, {
|
8131
|
-
icon: import_chevronUp3.default,
|
8132
|
-
className: getSortCellIconClassNames(direction === "ascending")
|
8133
|
-
}), /* @__PURE__ */ React36.createElement(InlineIcon, {
|
8134
|
-
icon: import_chevronDown4.default,
|
8135
|
-
className: getSortCellIconClassNames(direction === "descending")
|
8136
|
-
}))));
|
8137
|
-
};
|
8138
|
-
var Caption = ({ children }) => /* @__PURE__ */ React36.createElement(Typography2.Caption, {
|
8139
|
-
htmlTag: "caption"
|
8140
|
-
}, children);
|
8141
|
-
var Item4 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React36.createElement("div", {
|
8142
|
-
className: tw("flex gap-4 items-center")
|
8143
|
-
}, image && /* @__PURE__ */ React36.createElement("img", {
|
8144
|
-
src: image,
|
8145
|
-
alt: imageAlt != null ? imageAlt : "",
|
8146
|
-
style: { width: imageSize, height: imageSize }
|
8147
|
-
}), /* @__PURE__ */ React36.createElement("div", null, title, caption && /* @__PURE__ */ React36.createElement(Typography2.Caption, null, caption)));
|
8148
|
-
Table.Head = React36.memo(TableHead);
|
8149
|
-
Table.Body = React36.memo(TableBody);
|
8150
|
-
Table.Row = React36.memo(TableRow);
|
8151
|
-
Table.Cell = React36.memo(TableCell);
|
8152
|
-
Table.SortCell = React36.memo(TableSortCell);
|
8153
|
-
Table.SelectCell = React36.memo(TableSelectCell);
|
8154
|
-
Table.Caption = Caption;
|
8155
8369
|
export {
|
8156
8370
|
Alert,
|
8157
8371
|
Caption,
|
@@ -8159,9 +8373,10 @@ export {
|
|
8159
8373
|
Checkbox,
|
8160
8374
|
Chip,
|
8161
8375
|
DIALOG_ICONS_AND_COLORS,
|
8376
|
+
DataList,
|
8162
8377
|
DropdownMenu,
|
8163
8378
|
InputGroup,
|
8164
|
-
|
8379
|
+
Item,
|
8165
8380
|
LineClamp,
|
8166
8381
|
Link,
|
8167
8382
|
Modal,
|