@aivenio/aquarium 1.60.1 → 1.62.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 +4 -1
- package/dist/atoms.cjs +548 -292
- package/dist/atoms.mjs +547 -292
- package/dist/charts.cjs +56 -28
- package/dist/charts.mjs +52 -28
- package/dist/src/atoms/Alert/Alert.d.ts +5 -4
- package/dist/src/atoms/Alert/Alert.js +7 -1
- package/dist/src/atoms/Banner/Banner.js +2 -2
- package/dist/src/atoms/Card/Card.js +2 -2
- package/dist/src/atoms/Checkbox/Checkbox.js +6 -6
- package/dist/src/atoms/DataList/DataList.d.ts +14 -0
- package/dist/src/atoms/DataList/DataList.js +31 -3
- package/dist/src/atoms/DropdownMenu/DropdownMenu.js +1 -1
- package/dist/src/atoms/Navigation/Navigation.js +2 -2
- package/dist/src/atoms/Popover/Popover.js +1 -1
- package/dist/src/atoms/RadioButton/RadioButton.js +4 -4
- package/dist/src/atoms/Select/Select.js +6 -6
- package/dist/src/atoms/Stepper/Stepper.js +1 -1
- package/dist/src/atoms/Table/Table.js +2 -2
- 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/charts/AreaChart/AreaChart.js +5 -10
- package/dist/src/charts/BarChart/BarChart.js +3 -14
- package/dist/src/charts/Label/Label.js +4 -3
- package/dist/src/charts/LineChart/LineChart.js +5 -10
- package/dist/src/charts/lib/utils.d.ts +9 -0
- package/dist/src/charts/lib/utils.js +15 -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/grid.d.ts +9 -0
- package/dist/src/icons/grid.js +11 -0
- package/dist/src/icons/index.d.ts +4 -0
- package/dist/src/icons/index.js +5 -1
- package/dist/src/icons/table.d.ts +9 -0
- package/dist/src/icons/table.js +11 -0
- package/dist/src/molecules/Alert/Alert.d.ts +4 -2
- package/dist/src/molecules/Alert/Alert.js +1 -1
- package/dist/src/molecules/Button/Button.d.ts +12 -0
- package/dist/src/molecules/Button/Button.js +9 -6
- package/dist/src/molecules/ChoiceChip/ChoiceChip.js +1 -1
- package/dist/src/molecules/Combobox/Combobox.d.ts +2 -1
- package/dist/src/molecules/Combobox/Combobox.js +6 -3
- package/dist/src/molecules/DataList/DataList.d.ts +39 -4
- package/dist/src/molecules/DataList/DataList.js +76 -27
- 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/DataListToolbar.d.ts +25 -0
- package/dist/src/molecules/DataList/DataListToolbar.js +32 -0
- package/dist/src/molecules/DataTable/DataTable.js +3 -2
- package/dist/src/molecules/DropdownMenu/DropdownMenu.js +2 -2
- package/dist/src/molecules/MultiSelect/MultiSelect.d.ts +1 -1
- package/dist/src/molecules/MultiSelect/MultiSelect.js +1 -1
- package/dist/src/molecules/NativeSelect/NativeSelect.js +2 -2
- package/dist/src/molecules/PageHeader/PageHeader.js +3 -2
- package/dist/src/molecules/Section/Section.js +3 -2
- package/dist/src/molecules/SegmentedControl/SegmentedControl.js +1 -1
- package/dist/src/molecules/Tabs/Tabs.js +5 -5
- package/dist/src/utils/constants.js +2 -2
- package/dist/src/utils/table/types.d.ts +2 -1
- package/dist/src/utils/table/types.js +1 -1
- package/dist/styles.css +40 -27
- package/dist/system.cjs +846 -595
- package/dist/system.mjs +761 -510
- package/dist/tailwind.config.js +5 -0
- 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) {
|
@@ -2033,6 +2065,22 @@ var require_googleLogo = __commonJS({
|
|
2033
2065
|
}
|
2034
2066
|
});
|
2035
2067
|
|
2068
|
+
// src/icons/grid.js
|
2069
|
+
var require_grid = __commonJS({
|
2070
|
+
"src/icons/grid.js"(exports) {
|
2071
|
+
"use strict";
|
2072
|
+
var data = {
|
2073
|
+
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M7.7 2.75H4.217c-.514 0-.77 0-.966.1a.917.917 0 00-.401.4c-.1.197-.1.453-.1.967V7.7c0 .513 0 .77.1.966a.917.917 0 00.4.4c.197.1.453.1.967.1H7.7c.513 0 .77 0 .966-.1a.917.917 0 00.4-.4c.1-.196.1-.453.1-.966V4.217c0-.514 0-.77-.1-.966a.917.917 0 00-.4-.401c-.196-.1-.453-.1-.966-.1Zm10.083 0H14.3c-.513 0-.77 0-.966.1a.917.917 0 00-.4.4c-.1.197-.1.453-.1.967V7.7c0 .513 0 .77.1.966a.917.917 0 00.4.4c.196.1.453.1.966.1h3.483c.514 0 .77 0 .966-.1a.917.917 0 00.401-.4c.1-.196.1-.453.1-.966V4.217c0-.514 0-.77-.1-.966a.917.917 0 00-.4-.401c-.197-.1-.453-.1-.967-.1Zm0 10.083H14.3c-.513 0-.77 0-.966.1a.918.918 0 00-.4.4c-.1.197-.1.454-.1.967v3.483c0 .514 0 .77.1.966a.917.917 0 00.4.401c.196.1.453.1.966.1h3.483c.514 0 .77 0 .966-.1a.917.917 0 00.401-.4c.1-.197.1-.453.1-.967V14.3c0-.513 0-.77-.1-.966a.917.917 0 00-.4-.4c-.197-.1-.453-.1-.967-.1Zm-10.083 0H4.217c-.514 0-.77 0-.966.1a.917.917 0 00-.401.4c-.1.197-.1.454-.1.967v3.483c0 .514 0 .77.1.966a.917.917 0 00.4.401c.197.1.453.1.967.1H7.7c.513 0 .77 0 .966-.1a.917.917 0 00.4-.4c.1-.197.1-.453.1-.967V14.3c0-.513 0-.77-.1-.966a.917.917 0 00-.4-.4c-.196-.1-.453-.1-.966-.1Z"/>',
|
2074
|
+
"left": 0,
|
2075
|
+
"top": 0,
|
2076
|
+
"width": 22,
|
2077
|
+
"height": 22
|
2078
|
+
};
|
2079
|
+
exports.__esModule = true;
|
2080
|
+
exports.default = data;
|
2081
|
+
}
|
2082
|
+
});
|
2083
|
+
|
2036
2084
|
// src/icons/groupedBarChart.js
|
2037
2085
|
var require_groupedBarChart = __commonJS({
|
2038
2086
|
"src/icons/groupedBarChart.js"(exports) {
|
@@ -3729,6 +3777,22 @@ var require_swapVertical = __commonJS({
|
|
3729
3777
|
}
|
3730
3778
|
});
|
3731
3779
|
|
3780
|
+
// src/icons/table.js
|
3781
|
+
var require_table = __commonJS({
|
3782
|
+
"src/icons/table.js"(exports) {
|
3783
|
+
"use strict";
|
3784
|
+
var data = {
|
3785
|
+
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M2.75 8.25h16.5m-11-5.5v16.5m-1.1-16.5h7.7c1.54 0 2.31 0 2.899.3a2.75 2.75 0 011.201 1.202c.3.588.3 1.358.3 2.898v7.7c0 1.54 0 2.31-.3 2.899a2.751 2.751 0 01-1.201 1.201c-.589.3-1.359.3-2.899.3h-7.7c-1.54 0-2.31 0-2.898-.3a2.75 2.75 0 01-1.202-1.2c-.3-.589-.3-1.359-.3-2.899v-7.7c0-1.54 0-2.31.3-2.898A2.75 2.75 0 014.252 3.05c.588-.3 1.358-.3 2.898-.3Z"/>',
|
3786
|
+
"left": 0,
|
3787
|
+
"top": 0,
|
3788
|
+
"width": 22,
|
3789
|
+
"height": 22
|
3790
|
+
};
|
3791
|
+
exports.__esModule = true;
|
3792
|
+
exports.default = data;
|
3793
|
+
}
|
3794
|
+
});
|
3795
|
+
|
3732
3796
|
// src/icons/tag.js
|
3733
3797
|
var require_tag = __commonJS({
|
3734
3798
|
"src/icons/tag.js"(exports) {
|
@@ -5585,6 +5649,8 @@ var import_expandAll = __toESM(require_expandAll());
|
|
5585
5649
|
var import_export = __toESM(require_export());
|
5586
5650
|
var import_eyeOff = __toESM(require_eyeOff());
|
5587
5651
|
var import_eyeOpen = __toESM(require_eyeOpen());
|
5652
|
+
var import_faceHappy = __toESM(require_faceHappy());
|
5653
|
+
var import_faceSad = __toESM(require_faceSad());
|
5588
5654
|
var import_filter = __toESM(require_filter());
|
5589
5655
|
var import_flag = __toESM(require_flag());
|
5590
5656
|
var import_floppyDisk = __toESM(require_floppyDisk());
|
@@ -5603,6 +5669,7 @@ var import_githubLogo = __toESM(require_githubLogo());
|
|
5603
5669
|
var import_globeNetwork = __toESM(require_globeNetwork());
|
5604
5670
|
var import_globe = __toESM(require_globe());
|
5605
5671
|
var import_googleLogo = __toESM(require_googleLogo());
|
5672
|
+
var import_grid = __toESM(require_grid());
|
5606
5673
|
var import_groupedBarChart = __toESM(require_groupedBarChart());
|
5607
5674
|
var import_heart = __toESM(require_heart());
|
5608
5675
|
var import_help = __toESM(require_help());
|
@@ -5709,6 +5776,7 @@ var import_stopwatch = __toESM(require_stopwatch());
|
|
5709
5776
|
var import_superadmin = __toESM(require_superadmin());
|
5710
5777
|
var import_swapHorizontal = __toESM(require_swapHorizontal());
|
5711
5778
|
var import_swapVertical = __toESM(require_swapVertical());
|
5779
|
+
var import_table = __toESM(require_table());
|
5712
5780
|
var import_tag = __toESM(require_tag());
|
5713
5781
|
var import_terraform = __toESM(require_terraform());
|
5714
5782
|
var import_thumbsDown = __toESM(require_thumbsDown());
|
@@ -6284,8 +6352,8 @@ var asButton = (Component, isDropdownButton) => {
|
|
6284
6352
|
'Please provide an accessible name as a string only for an icon only button via "aria-label" or "tooltip" prop.'
|
6285
6353
|
);
|
6286
6354
|
}
|
6287
|
-
if (!!isDropdownButton &&
|
6288
|
-
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.');
|
6289
6357
|
}
|
6290
6358
|
if (!!isDropdownButton && !!icon) {
|
6291
6359
|
throw new Error("Dropdown button doesn't support any icon prop.");
|
@@ -6294,9 +6362,9 @@ var asButton = (Component, isDropdownButton) => {
|
|
6294
6362
|
throw new Error('Loading button is only supported for "primary" and "secondary" kinds.');
|
6295
6363
|
}
|
6296
6364
|
const buttonContent = () => {
|
6297
|
-
if (!!isDropdownButton && (kind === "primary" || kind === "secondary")) {
|
6365
|
+
if (!!isDropdownButton && (kind === "primary" || kind === "secondary" || kind === "ghost")) {
|
6298
6366
|
return /* @__PURE__ */ React14.createElement(Flexbox, {
|
6299
|
-
gap: "4",
|
6367
|
+
gap: dense ? "2" : "4",
|
6300
6368
|
alignItems: "center",
|
6301
6369
|
justifyContent: "center"
|
6302
6370
|
}, hasChildren && /* @__PURE__ */ React14.createElement("div", null, children), /* @__PURE__ */ React14.createElement(InlineIcon, {
|
@@ -6306,7 +6374,7 @@ var asButton = (Component, isDropdownButton) => {
|
|
6306
6374
|
}));
|
6307
6375
|
} else if (icon) {
|
6308
6376
|
return /* @__PURE__ */ React14.createElement(Flexbox, {
|
6309
|
-
gap: "3",
|
6377
|
+
gap: dense ? "2" : "3",
|
6310
6378
|
alignItems: "center",
|
6311
6379
|
justifyContent: "center",
|
6312
6380
|
direction: iconPlacement === "right" ? "row-reverse" : "row"
|
@@ -6440,6 +6508,13 @@ var SecondaryDropdownButton = React14.forwardRef((props, ref) => /* @__PURE__ */
|
|
6440
6508
|
})));
|
6441
6509
|
SecondaryDropdownButton.displayName = "Button.SecondaryDropdown";
|
6442
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;
|
6443
6518
|
|
6444
6519
|
// src/atoms/Typography/Typography.tsx
|
6445
6520
|
var import_resolveTheme = __toESM(require_resolveTheme());
|
@@ -6466,7 +6541,7 @@ var Typography = (_a) => {
|
|
6466
6541
|
"fontWeight"
|
6467
6542
|
]);
|
6468
6543
|
const HtmlElement = htmlTag;
|
6469
|
-
const resolvedColorName = isUndefined6(color) || color === "current" ? "
|
6544
|
+
const resolvedColorName = isUndefined6(color) || color === "current" ? "default" : color;
|
6470
6545
|
const style = useStyle({ fontWeight });
|
6471
6546
|
return /* @__PURE__ */ React15.createElement(HtmlElement, __spreadValues({
|
6472
6547
|
className: classNames(typographies[variant], `text-${resolvedColorName}`, className),
|
@@ -6475,12 +6550,17 @@ var Typography = (_a) => {
|
|
6475
6550
|
};
|
6476
6551
|
|
6477
6552
|
// src/atoms/Alert/Alert.tsx
|
6553
|
+
var import_announcement2 = __toESM(require_announcement());
|
6478
6554
|
var import_cross2 = __toESM(require_cross());
|
6479
6555
|
var import_error2 = __toESM(require_error());
|
6480
6556
|
var import_infoSign2 = __toESM(require_infoSign());
|
6481
6557
|
var import_tickCircle2 = __toESM(require_tickCircle());
|
6482
6558
|
var import_warningSign2 = __toESM(require_warningSign());
|
6483
6559
|
var alertTypes = {
|
6560
|
+
announcement: {
|
6561
|
+
icon: import_announcement2.default,
|
6562
|
+
color: "primary-80"
|
6563
|
+
},
|
6484
6564
|
information: {
|
6485
6565
|
icon: import_infoSign2.default,
|
6486
6566
|
color: "info-70"
|
@@ -6518,6 +6598,7 @@ var Alert = (_a) => {
|
|
6518
6598
|
"bg-info-10": type === "information",
|
6519
6599
|
"bg-success-5": type === "success",
|
6520
6600
|
"bg-warning-5": type === "warning",
|
6601
|
+
"bg-primary-10": type === "announcement",
|
6521
6602
|
"p-4": Boolean(dense),
|
6522
6603
|
"p-5": !dense
|
6523
6604
|
}),
|
@@ -6836,7 +6917,7 @@ var getCommonCardStyles = ({
|
|
6836
6917
|
fullWidth = false,
|
6837
6918
|
enableMinWidth = true,
|
6838
6919
|
disabled = false
|
6839
|
-
}) => tw("border-[2px] border-
|
6920
|
+
}) => tw("border-[2px] border-muted rounded-[2px] relative p-5 flex flex-col gap-5 bg-white outline-none transition-all", {
|
6840
6921
|
"w-[280px]": !fullWidth,
|
6841
6922
|
"w-full": fullWidth,
|
6842
6923
|
"min-w-[280px]": fullWidth && enableMinWidth,
|
@@ -6978,8 +7059,8 @@ var Checkbox = React20.forwardRef(
|
|
6978
7059
|
var _b = _a, { id, children, name, disabled = false, readOnly = false, indeterminate = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly", "indeterminate"]);
|
6979
7060
|
return /* @__PURE__ */ React20.createElement("span", {
|
6980
7061
|
className: classNames(tw("inline-flex justify-center items-center self-center relative"), {
|
6981
|
-
"hover:border-
|
6982
|
-
"border-
|
7062
|
+
"hover:border-intense peer-checked:border-primary-80": !disabled,
|
7063
|
+
"border-muted": disabled
|
6983
7064
|
})
|
6984
7065
|
}, /* @__PURE__ */ React20.createElement("input", __spreadProps(__spreadValues({
|
6985
7066
|
id,
|
@@ -7003,11 +7084,11 @@ var Checkbox = React20.forwardRef(
|
|
7003
7084
|
"absolute top-0 right-0",
|
7004
7085
|
"pointer-events-none p-[2px] w-5 h-5",
|
7005
7086
|
"text-transparent [&>path]:stroke-transparent [&>path]:stroke-2",
|
7006
|
-
"rounded-sm border border-
|
7087
|
+
"rounded-sm border border-default peer-focus:border-info-70"
|
7007
7088
|
),
|
7008
7089
|
{
|
7009
|
-
"peer-hover:border-
|
7010
|
-
"border-
|
7090
|
+
"peer-hover:border-intense peer-checked:text-white peer-checked:[&>path]:stroke-white peer-checked:border-primary-80": !disabled,
|
7091
|
+
"border-muted peer-checked:text-primary-10 peer-checked:[&>path]:stroke-primary-10 peer-checked:border-primary-40": disabled
|
7011
7092
|
}
|
7012
7093
|
)
|
7013
7094
|
}));
|
@@ -7035,6 +7116,333 @@ var Chip = {
|
|
7035
7116
|
Container
|
7036
7117
|
};
|
7037
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
|
+
|
7038
7446
|
// src/atoms/Dialog/Dialog.tsx
|
7039
7447
|
var import_confirm2 = __toESM(require_confirm());
|
7040
7448
|
var import_error3 = __toESM(require_error());
|
@@ -7055,13 +7463,13 @@ var DIALOG_ICONS_AND_COLORS = {
|
|
7055
7463
|
};
|
7056
7464
|
|
7057
7465
|
// src/atoms/DropdownMenu/DropdownMenu.tsx
|
7058
|
-
import
|
7466
|
+
import React27 from "react";
|
7059
7467
|
|
7060
7468
|
// src/molecules/Badge/Badge.tsx
|
7061
|
-
import
|
7469
|
+
import React26 from "react";
|
7062
7470
|
|
7063
7471
|
// src/molecules/Skeleton/Skeleton.tsx
|
7064
|
-
import
|
7472
|
+
import React25 from "react";
|
7065
7473
|
import isNumber2 from "lodash/isNumber";
|
7066
7474
|
import isUndefined7 from "lodash/isUndefined";
|
7067
7475
|
var Skeleton = (_a) => {
|
@@ -7086,7 +7494,7 @@ var Skeleton = (_a) => {
|
|
7086
7494
|
width: isNumber2(width) ? `${width}px` : width,
|
7087
7495
|
height: isNumber2(height) ? `${height}px` : height
|
7088
7496
|
};
|
7089
|
-
return /* @__PURE__ */
|
7497
|
+
return /* @__PURE__ */ React25.createElement("div", __spreadProps(__spreadValues({
|
7090
7498
|
"aria-label": "Loading..."
|
7091
7499
|
}, rest), {
|
7092
7500
|
style: __spreadValues(__spreadValues({}, styles), style),
|
@@ -7110,7 +7518,7 @@ var createBadge = (type, displayName) => {
|
|
7110
7518
|
const Component = (props) => {
|
7111
7519
|
const _a = props, { kind = "filled", value, textClassname, dense = false } = _a, rest = __objRest(_a, ["kind", "value", "textClassname", "dense"]);
|
7112
7520
|
const valueStr = value.toString();
|
7113
|
-
return /* @__PURE__ */
|
7521
|
+
return /* @__PURE__ */ React26.createElement("span", __spreadProps(__spreadValues({}, rest), {
|
7114
7522
|
className: classNames(
|
7115
7523
|
tw("inline-block text-center", {
|
7116
7524
|
"rounded-full": type === "default" || type === "chip",
|
@@ -7125,7 +7533,7 @@ var createBadge = (type, displayName) => {
|
|
7125
7533
|
}),
|
7126
7534
|
"Aquarium-Badge"
|
7127
7535
|
)
|
7128
|
-
}), /* @__PURE__ */
|
7536
|
+
}), /* @__PURE__ */ React26.createElement("span", {
|
7129
7537
|
className: classNames(
|
7130
7538
|
textClassname,
|
7131
7539
|
tw("inline-block", {
|
@@ -7136,7 +7544,7 @@ var createBadge = (type, displayName) => {
|
|
7136
7544
|
}, valueStr));
|
7137
7545
|
};
|
7138
7546
|
Component.displayName = displayName;
|
7139
|
-
Component.Skeleton = () => /* @__PURE__ */
|
7547
|
+
Component.Skeleton = () => /* @__PURE__ */ React26.createElement(Skeleton, {
|
7140
7548
|
height: 16,
|
7141
7549
|
width: 16,
|
7142
7550
|
display: "inline-block",
|
@@ -7147,16 +7555,16 @@ var createBadge = (type, displayName) => {
|
|
7147
7555
|
};
|
7148
7556
|
var NotificationBadge = (_a) => {
|
7149
7557
|
var _b = _a, { children, top = "-2px", right = "-2px" } = _b, props = __objRest(_b, ["children", "top", "right"]);
|
7150
|
-
return /* @__PURE__ */
|
7558
|
+
return /* @__PURE__ */ React26.createElement("div", __spreadProps(__spreadValues({}, props), {
|
7151
7559
|
className: classNames("Aquarium-Badge.Notification", tw("relative inline-flex"))
|
7152
|
-
}), children, /* @__PURE__ */
|
7560
|
+
}), children, /* @__PURE__ */ React26.createElement("span", {
|
7153
7561
|
style: { top, right },
|
7154
7562
|
className: tw("absolute rounded-full w-[6px] h-[6px] bg-error-70")
|
7155
7563
|
}));
|
7156
7564
|
};
|
7157
7565
|
var DotBadge = (_a) => {
|
7158
7566
|
var _b = _a, { dense = false } = _b, props = __objRest(_b, ["dense"]);
|
7159
|
-
return /* @__PURE__ */
|
7567
|
+
return /* @__PURE__ */ React26.createElement("span", __spreadProps(__spreadValues({}, props), {
|
7160
7568
|
className: classNames(
|
7161
7569
|
"Aquarium-Badge.Dot",
|
7162
7570
|
tw("rounded-full bg-current", {
|
@@ -7176,36 +7584,36 @@ var ChipBadge = createBadge("chip", "ChipBadge");
|
|
7176
7584
|
|
7177
7585
|
// src/atoms/DropdownMenu/DropdownMenu.tsx
|
7178
7586
|
var import_tick3 = __toESM(require_tick());
|
7179
|
-
var DropdownMenu =
|
7587
|
+
var DropdownMenu = React27.forwardRef(
|
7180
7588
|
(_a, ref) => {
|
7181
7589
|
var _b = _a, { minHeight, maxHeight = "100%", minWidth = "125px", maxWidth, className, children } = _b, props = __objRest(_b, ["minHeight", "maxHeight", "minWidth", "maxWidth", "className", "children"]);
|
7182
|
-
return /* @__PURE__ */
|
7590
|
+
return /* @__PURE__ */ React27.createElement("div", __spreadValues({
|
7183
7591
|
ref,
|
7184
7592
|
style: { minHeight, maxHeight, minWidth, maxWidth },
|
7185
7593
|
className: classNames(className, "bg-white w-full flex flex-col overflow-x-hidden typography-small text-default")
|
7186
7594
|
}, props), children);
|
7187
7595
|
}
|
7188
7596
|
);
|
7189
|
-
var ContentContainer = ({ children }) => /* @__PURE__ */
|
7597
|
+
var ContentContainer = ({ children }) => /* @__PURE__ */ React27.createElement("div", {
|
7190
7598
|
className: tw("p-3 overflow-y-auto overflow-x-hidden")
|
7191
7599
|
}, children);
|
7192
7600
|
DropdownMenu.ContentContainer = ContentContainer;
|
7193
|
-
var List =
|
7601
|
+
var List = React27.forwardRef(
|
7194
7602
|
(_a, ref) => {
|
7195
7603
|
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
7196
|
-
return /* @__PURE__ */
|
7604
|
+
return /* @__PURE__ */ React27.createElement("ul", __spreadValues({
|
7197
7605
|
ref,
|
7198
7606
|
className: classNames(className, "outline-none ring-0")
|
7199
7607
|
}, props), children);
|
7200
7608
|
}
|
7201
7609
|
);
|
7202
7610
|
DropdownMenu.List = List;
|
7203
|
-
var Group =
|
7611
|
+
var Group = React27.forwardRef(
|
7204
7612
|
(_a, ref) => {
|
7205
7613
|
var _b = _a, { className, title, titleProps, children } = _b, props = __objRest(_b, ["className", "title", "titleProps", "children"]);
|
7206
|
-
return /* @__PURE__ */
|
7614
|
+
return /* @__PURE__ */ React27.createElement("li", __spreadValues({
|
7207
7615
|
ref
|
7208
|
-
}, props), title && /* @__PURE__ */
|
7616
|
+
}, props), title && /* @__PURE__ */ React27.createElement("div", __spreadValues({
|
7209
7617
|
className: classNames(className, "p-3 text-muted uppercase cursor-default typography-caption", {
|
7210
7618
|
"text-grey-20": props.disabled
|
7211
7619
|
})
|
@@ -7213,10 +7621,10 @@ var Group = React24.forwardRef(
|
|
7213
7621
|
}
|
7214
7622
|
);
|
7215
7623
|
DropdownMenu.Group = Group;
|
7216
|
-
var
|
7624
|
+
var Item2 = React27.forwardRef(
|
7217
7625
|
(_a, ref) => {
|
7218
7626
|
var _b = _a, { kind, highlighted, selected, className, icon, showNotification = false, children } = _b, props = __objRest(_b, ["kind", "highlighted", "selected", "className", "icon", "showNotification", "children"]);
|
7219
|
-
return /* @__PURE__ */
|
7627
|
+
return /* @__PURE__ */ React27.createElement("li", __spreadValues({
|
7220
7628
|
ref,
|
7221
7629
|
className: classNames(className, "flex items-center gap-x-3 p-3 outline-none", {
|
7222
7630
|
"cursor-pointer hover:bg-grey-0": !props.disabled,
|
@@ -7224,42 +7632,42 @@ var Item = React24.forwardRef(
|
|
7224
7632
|
"text-primary-80": kind === "action",
|
7225
7633
|
"text-grey-20 cursor-not-allowed": props.disabled
|
7226
7634
|
})
|
7227
|
-
}, props), icon && showNotification && /* @__PURE__ */
|
7635
|
+
}, props), icon && showNotification && /* @__PURE__ */ React27.createElement(Badge.Notification, null, /* @__PURE__ */ React27.createElement(InlineIcon, {
|
7228
7636
|
icon
|
7229
|
-
})), icon && !showNotification && /* @__PURE__ */
|
7637
|
+
})), icon && !showNotification && /* @__PURE__ */ React27.createElement(InlineIcon, {
|
7230
7638
|
icon
|
7231
|
-
}), /* @__PURE__ */
|
7639
|
+
}), /* @__PURE__ */ React27.createElement("span", {
|
7232
7640
|
className: tw("grow")
|
7233
|
-
}, children), selected && /* @__PURE__ */
|
7641
|
+
}, children), selected && /* @__PURE__ */ React27.createElement(InlineIcon, {
|
7234
7642
|
icon: import_tick3.default
|
7235
7643
|
}));
|
7236
7644
|
}
|
7237
7645
|
);
|
7238
|
-
DropdownMenu.Item =
|
7239
|
-
var Description = ({ disabled, children }) => /* @__PURE__ */
|
7646
|
+
DropdownMenu.Item = Item2;
|
7647
|
+
var Description = ({ disabled, children }) => /* @__PURE__ */ React27.createElement(Typography2.Caption, {
|
7240
7648
|
color: disabled ? "grey-20" : "grey-40"
|
7241
7649
|
}, children);
|
7242
7650
|
DropdownMenu.Description = Description;
|
7243
7651
|
var Separator = (_a) => {
|
7244
7652
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
7245
|
-
return /* @__PURE__ */
|
7653
|
+
return /* @__PURE__ */ React27.createElement("li", __spreadProps(__spreadValues({}, props), {
|
7246
7654
|
className: classNames(className, tw("m-3 block bg-grey-5 h-[1px]"))
|
7247
7655
|
}));
|
7248
7656
|
};
|
7249
7657
|
DropdownMenu.Separator = Separator;
|
7250
7658
|
var EmptyStateContainer = (_a) => {
|
7251
7659
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
7252
|
-
return /* @__PURE__ */
|
7253
|
-
className: classNames(tw("border border-dashed border-
|
7660
|
+
return /* @__PURE__ */ React27.createElement("div", __spreadValues({
|
7661
|
+
className: classNames(tw("border border-dashed border-default p-3"), className)
|
7254
7662
|
}, props), children);
|
7255
7663
|
};
|
7256
7664
|
DropdownMenu.EmptyStateContainer = EmptyStateContainer;
|
7257
7665
|
|
7258
7666
|
// src/atoms/InputGroup/InputGroup.tsx
|
7259
|
-
import
|
7667
|
+
import React29 from "react";
|
7260
7668
|
|
7261
7669
|
// src/molecules/Grid/Grid.tsx
|
7262
|
-
import
|
7670
|
+
import React28 from "react";
|
7263
7671
|
import isEmpty from "lodash/isEmpty";
|
7264
7672
|
import mapValues from "lodash/mapValues";
|
7265
7673
|
import pick from "lodash/pick";
|
@@ -7310,14 +7718,14 @@ var GridItem = Tailwindify(
|
|
7310
7718
|
gridRowEnd: rowEnd
|
7311
7719
|
});
|
7312
7720
|
const HtmlElement = htmlTag;
|
7313
|
-
return /* @__PURE__ */
|
7721
|
+
return /* @__PURE__ */ React28.createElement(HtmlElement, {
|
7314
7722
|
style: __spreadValues(__spreadValues({}, hookStyle), style),
|
7315
7723
|
className
|
7316
7724
|
}, children);
|
7317
7725
|
}
|
7318
7726
|
);
|
7319
7727
|
var Grid = (props) => {
|
7320
|
-
return /* @__PURE__ */
|
7728
|
+
return /* @__PURE__ */ React28.createElement(GridComponent, __spreadValues({}, props));
|
7321
7729
|
};
|
7322
7730
|
var GridComponent = Tailwindify(
|
7323
7731
|
({
|
@@ -7371,7 +7779,7 @@ var GridComponent = Tailwindify(
|
|
7371
7779
|
gridRowEnd: rowEnd
|
7372
7780
|
});
|
7373
7781
|
const HtmlElement = htmlTag;
|
7374
|
-
return /* @__PURE__ */
|
7782
|
+
return /* @__PURE__ */ React28.createElement(HtmlElement, {
|
7375
7783
|
style: __spreadValues(__spreadValues({}, hookStyle), style),
|
7376
7784
|
className
|
7377
7785
|
}, children);
|
@@ -7390,7 +7798,7 @@ var gridColumnStyles = {
|
|
7390
7798
|
};
|
7391
7799
|
var InputGroup = (_a) => {
|
7392
7800
|
var _b = _a, { cols = "1", children } = _b, rest = __objRest(_b, ["cols", "children"]);
|
7393
|
-
return /* @__PURE__ */
|
7801
|
+
return /* @__PURE__ */ React29.createElement(Grid, __spreadProps(__spreadValues({}, rest), {
|
7394
7802
|
display: "inline-grid",
|
7395
7803
|
colGap: "l4",
|
7396
7804
|
rowGap: "3",
|
@@ -7400,16 +7808,16 @@ var InputGroup = (_a) => {
|
|
7400
7808
|
};
|
7401
7809
|
|
7402
7810
|
// src/atoms/Link/Link.tsx
|
7403
|
-
import
|
7811
|
+
import React30 from "react";
|
7404
7812
|
var Link = (_a) => {
|
7405
7813
|
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
7406
|
-
return /* @__PURE__ */
|
7814
|
+
return /* @__PURE__ */ React30.createElement("a", __spreadValues({
|
7407
7815
|
className: classNames(className, linkStyle)
|
7408
7816
|
}, props), children);
|
7409
7817
|
};
|
7410
7818
|
|
7411
7819
|
// src/atoms/Modal/Modal.tsx
|
7412
|
-
import
|
7820
|
+
import React31 from "react";
|
7413
7821
|
var Modal = (_a) => {
|
7414
7822
|
var _b = _a, {
|
7415
7823
|
children,
|
@@ -7422,7 +7830,7 @@ var Modal = (_a) => {
|
|
7422
7830
|
"className",
|
7423
7831
|
"open"
|
7424
7832
|
]);
|
7425
|
-
return open ? /* @__PURE__ */
|
7833
|
+
return open ? /* @__PURE__ */ React31.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7426
7834
|
className: classNames(
|
7427
7835
|
tw("inset-0 overflow-y-auto z-modal fixed"),
|
7428
7836
|
{
|
@@ -7434,11 +7842,11 @@ var Modal = (_a) => {
|
|
7434
7842
|
};
|
7435
7843
|
Modal.BackDrop = (_a) => {
|
7436
7844
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7437
|
-
return /* @__PURE__ */
|
7845
|
+
return /* @__PURE__ */ React31.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7438
7846
|
className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-primary-100 opacity-60"), className)
|
7439
7847
|
}));
|
7440
7848
|
};
|
7441
|
-
Modal.Dialog =
|
7849
|
+
Modal.Dialog = React31.forwardRef(
|
7442
7850
|
(_a, ref) => {
|
7443
7851
|
var _b = _a, { kind = "dialog", children, className, size = "sm" } = _b, rest = __objRest(_b, ["kind", "children", "className", "size"]);
|
7444
7852
|
const commonClasses = tw("bg-white max-h-full flex flex-col");
|
@@ -7452,7 +7860,7 @@ Modal.Dialog = React28.forwardRef(
|
|
7452
7860
|
"w-[560px]": size === "md",
|
7453
7861
|
"w-[1080px]": size === "full"
|
7454
7862
|
});
|
7455
|
-
return /* @__PURE__ */
|
7863
|
+
return /* @__PURE__ */ React31.createElement("div", __spreadProps(__spreadValues({
|
7456
7864
|
ref,
|
7457
7865
|
"aria-modal": "true"
|
7458
7866
|
}, rest), {
|
@@ -7462,31 +7870,31 @@ Modal.Dialog = React28.forwardRef(
|
|
7462
7870
|
);
|
7463
7871
|
Modal.Header = (_a) => {
|
7464
7872
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7465
|
-
return /* @__PURE__ */
|
7873
|
+
return /* @__PURE__ */ React31.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7466
7874
|
className: classNames(tw("pl-7 pr-[64px] py-6 gap-3 flex items-center"), className)
|
7467
7875
|
}), children);
|
7468
7876
|
};
|
7469
7877
|
Modal.HeaderImage = (_a) => {
|
7470
7878
|
var _b = _a, { backgroundImage, className } = _b, rest = __objRest(_b, ["backgroundImage", "className"]);
|
7471
7879
|
const common = tw("h-[120px] min-h-[120px] w-full ");
|
7472
|
-
return backgroundImage ? /* @__PURE__ */
|
7880
|
+
return backgroundImage ? /* @__PURE__ */ React31.createElement("img", __spreadProps(__spreadValues({
|
7473
7881
|
"aria-hidden": true,
|
7474
7882
|
src: backgroundImage != null ? backgroundImage : void 0
|
7475
7883
|
}, rest), {
|
7476
7884
|
className: classNames(common, tw("object-cover"), className)
|
7477
|
-
})) : /* @__PURE__ */
|
7885
|
+
})) : /* @__PURE__ */ React31.createElement("div", {
|
7478
7886
|
className: classNames(common, tw("bg-grey-5"), className)
|
7479
7887
|
});
|
7480
7888
|
};
|
7481
7889
|
Modal.CloseButtonContainer = (_a) => {
|
7482
7890
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7483
|
-
return /* @__PURE__ */
|
7891
|
+
return /* @__PURE__ */ React31.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7484
7892
|
className: classNames(tw("absolute top-[24px] right-[28px]"), className)
|
7485
7893
|
}));
|
7486
7894
|
};
|
7487
7895
|
Modal.Title = (_a) => {
|
7488
7896
|
var _b = _a, { kind = "dialog", children, className } = _b, rest = __objRest(_b, ["kind", "children", "className"]);
|
7489
|
-
return /* @__PURE__ */
|
7897
|
+
return /* @__PURE__ */ React31.createElement(Typography, __spreadValues({
|
7490
7898
|
htmlTag: "h2",
|
7491
7899
|
variant: "subheading",
|
7492
7900
|
color: "grey-90",
|
@@ -7500,87 +7908,87 @@ Modal.Title = (_a) => {
|
|
7500
7908
|
};
|
7501
7909
|
Modal.Subtitle = (_a) => {
|
7502
7910
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
7503
|
-
return /* @__PURE__ */
|
7911
|
+
return /* @__PURE__ */ React31.createElement(Typography, __spreadValues({
|
7504
7912
|
variant: "small",
|
7505
7913
|
color: "grey-60"
|
7506
7914
|
}, rest), children);
|
7507
7915
|
};
|
7508
7916
|
Modal.TitleContainer = (_a) => {
|
7509
7917
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7510
|
-
return /* @__PURE__ */
|
7918
|
+
return /* @__PURE__ */ React31.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7511
7919
|
className: classNames(tw("flex flex-col grow"), className)
|
7512
7920
|
}), children);
|
7513
7921
|
};
|
7514
7922
|
Modal.Body = (_a) => {
|
7515
7923
|
var _b = _a, { children, className, noFooter = false, maxHeight, style } = _b, rest = __objRest(_b, ["children", "className", "noFooter", "maxHeight", "style"]);
|
7516
|
-
return /* @__PURE__ */
|
7924
|
+
return /* @__PURE__ */ React31.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7517
7925
|
className: classNames(tw("px-7 grow overflow-y-auto", { "pb-6": noFooter }), className),
|
7518
7926
|
style: __spreadValues({ maxHeight }, style)
|
7519
7927
|
}), children);
|
7520
7928
|
};
|
7521
7929
|
Modal.Footer = (_a) => {
|
7522
7930
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7523
|
-
return /* @__PURE__ */
|
7931
|
+
return /* @__PURE__ */ React31.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7524
7932
|
className: classNames(tw("px-7 py-6"), className)
|
7525
7933
|
}), children);
|
7526
7934
|
};
|
7527
7935
|
Modal.Actions = (_a) => {
|
7528
7936
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7529
|
-
return /* @__PURE__ */
|
7937
|
+
return /* @__PURE__ */ React31.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7530
7938
|
className: classNames(tw("flex gap-4 justify-end"), className)
|
7531
7939
|
}), children);
|
7532
7940
|
};
|
7533
7941
|
|
7534
7942
|
// src/atoms/Navigation/Navigation.tsx
|
7535
|
-
import
|
7943
|
+
import React32 from "react";
|
7536
7944
|
var Navigation = (_a) => {
|
7537
7945
|
var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
|
7538
|
-
return /* @__PURE__ */
|
7946
|
+
return /* @__PURE__ */ React32.createElement("nav", {
|
7539
7947
|
className: classNames(tw("bg-grey-0 h-full"))
|
7540
|
-
}, /* @__PURE__ */
|
7948
|
+
}, /* @__PURE__ */ React32.createElement("ul", __spreadProps(__spreadValues({}, rest), {
|
7541
7949
|
className: classNames(tw("flex flex-col h-full"), className),
|
7542
7950
|
role: "menubar"
|
7543
7951
|
}), children));
|
7544
7952
|
};
|
7545
7953
|
var Header = (_a) => {
|
7546
7954
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7547
|
-
return /* @__PURE__ */
|
7955
|
+
return /* @__PURE__ */ React32.createElement("li", __spreadProps(__spreadValues({}, rest), {
|
7548
7956
|
role: "presentation",
|
7549
7957
|
className: classNames(tw("px-6 py-5"), className)
|
7550
7958
|
}));
|
7551
7959
|
};
|
7552
7960
|
var Footer = (_a) => {
|
7553
7961
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7554
|
-
return /* @__PURE__ */
|
7962
|
+
return /* @__PURE__ */ React32.createElement("li", __spreadProps(__spreadValues({}, rest), {
|
7555
7963
|
role: "presentation",
|
7556
7964
|
className: classNames(tw("px-6 py-5 mt-auto"), className)
|
7557
7965
|
}));
|
7558
7966
|
};
|
7559
7967
|
var Section = (_a) => {
|
7560
7968
|
var _b = _a, { title, className } = _b, rest = __objRest(_b, ["title", "className"]);
|
7561
|
-
return /* @__PURE__ */
|
7969
|
+
return /* @__PURE__ */ React32.createElement("li", {
|
7562
7970
|
role: "presentation",
|
7563
7971
|
className: tw("py-5")
|
7564
|
-
}, title && /* @__PURE__ */
|
7972
|
+
}, title && /* @__PURE__ */ React32.createElement("div", {
|
7565
7973
|
className: classNames(className, "py-2 px-6 text-muted uppercase cursor-default typography-caption")
|
7566
|
-
}, title), /* @__PURE__ */
|
7974
|
+
}, title), /* @__PURE__ */ React32.createElement("ul", __spreadProps(__spreadValues({}, rest), {
|
7567
7975
|
role: "group",
|
7568
7976
|
className: classNames(tw("flex flex-col"), className)
|
7569
7977
|
})));
|
7570
7978
|
};
|
7571
7979
|
var Divider = (_a) => {
|
7572
7980
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7573
|
-
return /* @__PURE__ */
|
7981
|
+
return /* @__PURE__ */ React32.createElement("li", __spreadProps(__spreadValues({
|
7574
7982
|
role: "separator"
|
7575
7983
|
}, rest), {
|
7576
|
-
className: classNames(tw("border-t-2 border-
|
7984
|
+
className: classNames(tw("border-t-2 border-muted"), className)
|
7577
7985
|
}));
|
7578
7986
|
};
|
7579
|
-
var
|
7987
|
+
var Item3 = (_a) => {
|
7580
7988
|
var _b = _a, { className, active } = _b, rest = __objRest(_b, ["className", "active"]);
|
7581
|
-
return /* @__PURE__ */
|
7989
|
+
return /* @__PURE__ */ React32.createElement("li", {
|
7582
7990
|
role: "presentation"
|
7583
|
-
}, /* @__PURE__ */
|
7991
|
+
}, /* @__PURE__ */ React32.createElement("a", __spreadProps(__spreadValues({}, rest), {
|
7584
7992
|
role: "menuitem",
|
7585
7993
|
className: classNames(
|
7586
7994
|
tw("py-3 px-6 hover:bg-grey-5 cursor-pointer flex gap-4 items-center typography-small focusable", {
|
@@ -7594,23 +8002,23 @@ var Item2 = (_a) => {
|
|
7594
8002
|
Navigation.Header = Header;
|
7595
8003
|
Navigation.Footer = Footer;
|
7596
8004
|
Navigation.Section = Section;
|
7597
|
-
Navigation.Item =
|
8005
|
+
Navigation.Item = Item3;
|
7598
8006
|
Navigation.Divider = Divider;
|
7599
8007
|
|
7600
8008
|
// src/atoms/Popover/Popover.tsx
|
7601
|
-
import
|
7602
|
-
var PopoverPanel =
|
8009
|
+
import React33 from "react";
|
8010
|
+
var PopoverPanel = React33.forwardRef((_a, ref) => {
|
7603
8011
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
7604
|
-
return /* @__PURE__ */
|
8012
|
+
return /* @__PURE__ */ React33.createElement("div", __spreadValues({
|
7605
8013
|
ref,
|
7606
8014
|
className: classNames(
|
7607
8015
|
className,
|
7608
|
-
tw("rounded-sm shadow-16dp bg-white mt-1 overflow-y-auto flex flex-col border border-
|
8016
|
+
tw("rounded-sm shadow-16dp bg-white mt-1 overflow-y-auto flex flex-col border border-default outline-none")
|
7609
8017
|
)
|
7610
8018
|
}, props), children);
|
7611
8019
|
});
|
7612
8020
|
PopoverPanel.displayName = "Popover.Panel";
|
7613
|
-
var PopoverUnderlay =
|
8021
|
+
var PopoverUnderlay = React33.forwardRef((props, ref) => /* @__PURE__ */ React33.createElement("div", __spreadProps(__spreadValues({
|
7614
8022
|
ref
|
7615
8023
|
}, props), {
|
7616
8024
|
className: tw("fixed inset-0")
|
@@ -7622,23 +8030,23 @@ var Popover = {
|
|
7622
8030
|
};
|
7623
8031
|
|
7624
8032
|
// src/atoms/PopoverDialog/PopoverDialog.tsx
|
7625
|
-
import
|
8033
|
+
import React34 from "react";
|
7626
8034
|
var Header2 = (_a) => {
|
7627
8035
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7628
|
-
return /* @__PURE__ */
|
8036
|
+
return /* @__PURE__ */ React34.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7629
8037
|
className: classNames(tw("p-5 gap-3 flex items-center"), className)
|
7630
8038
|
}), children);
|
7631
8039
|
};
|
7632
8040
|
var Title2 = (_a) => {
|
7633
8041
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7634
|
-
return /* @__PURE__ */
|
8042
|
+
return /* @__PURE__ */ React34.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
7635
8043
|
htmlTag: "h1",
|
7636
8044
|
variant: "small-strong"
|
7637
8045
|
}), children);
|
7638
8046
|
};
|
7639
8047
|
var Body = (_a) => {
|
7640
8048
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7641
|
-
return /* @__PURE__ */
|
8049
|
+
return /* @__PURE__ */ React34.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
7642
8050
|
htmlTag: "div",
|
7643
8051
|
variant: "caption",
|
7644
8052
|
className: classNames(tw("px-5 overflow-y-auto"), className)
|
@@ -7646,13 +8054,13 @@ var Body = (_a) => {
|
|
7646
8054
|
};
|
7647
8055
|
var Footer2 = (_a) => {
|
7648
8056
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7649
|
-
return /* @__PURE__ */
|
8057
|
+
return /* @__PURE__ */ React34.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7650
8058
|
className: classNames(tw("p-5"), className)
|
7651
8059
|
}), children);
|
7652
8060
|
};
|
7653
8061
|
var Actions2 = (_a) => {
|
7654
8062
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7655
|
-
return /* @__PURE__ */
|
8063
|
+
return /* @__PURE__ */ React34.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7656
8064
|
className: classNames(tw("flex gap-4"), className)
|
7657
8065
|
}), children);
|
7658
8066
|
};
|
@@ -7664,38 +8072,10 @@ var PopoverDialog = {
|
|
7664
8072
|
Actions: Actions2
|
7665
8073
|
};
|
7666
8074
|
|
7667
|
-
// src/atoms/RadioButton/RadioButton.tsx
|
7668
|
-
import React32 from "react";
|
7669
|
-
var RadioButton = React32.forwardRef(
|
7670
|
-
(_a, ref) => {
|
7671
|
-
var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
|
7672
|
-
return /* @__PURE__ */ React32.createElement("input", __spreadProps(__spreadValues({
|
7673
|
-
id,
|
7674
|
-
ref,
|
7675
|
-
type: "radio",
|
7676
|
-
name
|
7677
|
-
}, props), {
|
7678
|
-
className: classNames(
|
7679
|
-
tw(
|
7680
|
-
"inline-flex justify-center items-center self-center appearance-none",
|
7681
|
-
"w-5 h-5 p-[3px] rounded-full cursor-pointer border border-grey-20",
|
7682
|
-
"outline-none focus:border-info-70 checked:bg-primary-80 checked:shadow-whiteInset",
|
7683
|
-
{
|
7684
|
-
"hover:border-grey-50 checked:border-primary-80": !disabled,
|
7685
|
-
"cursor-not-allowed border-grey-5 bg-grey-0 checked:bg-opacity-40 checked:bg-primary-40 checked:border-primary-40": disabled
|
7686
|
-
}
|
7687
|
-
)
|
7688
|
-
),
|
7689
|
-
readOnly,
|
7690
|
-
disabled
|
7691
|
-
}));
|
7692
|
-
}
|
7693
|
-
);
|
7694
|
-
|
7695
8075
|
// src/atoms/Select/Select.tsx
|
7696
|
-
import
|
7697
|
-
var
|
7698
|
-
var
|
8076
|
+
import React35 from "react";
|
8077
|
+
var import_chevronDown5 = __toESM(require_chevronDown());
|
8078
|
+
var import_chevronUp4 = __toESM(require_chevronUp());
|
7699
8079
|
var import_search2 = __toESM(require_search());
|
7700
8080
|
var import_tick4 = __toESM(require_tick());
|
7701
8081
|
function getOptionLabelBuiltin(option) {
|
@@ -7713,16 +8093,16 @@ function isOptionDisabledBuiltin(option) {
|
|
7713
8093
|
}
|
7714
8094
|
var getValues = (children) => {
|
7715
8095
|
var _a;
|
7716
|
-
const values =
|
8096
|
+
const values = React35.Children.map(children, (c) => {
|
7717
8097
|
var _a2;
|
7718
8098
|
return (_a2 = c == null ? void 0 : c.props) == null ? void 0 : _a2.value;
|
7719
8099
|
});
|
7720
8100
|
return (_a = values == null ? void 0 : values.filter((v) => v !== void 0 && v !== null)) != null ? _a : [];
|
7721
8101
|
};
|
7722
|
-
var InputContainer =
|
8102
|
+
var InputContainer = React35.forwardRef(
|
7723
8103
|
(_a, ref) => {
|
7724
8104
|
var _b = _a, { variant = "default", className } = _b, props = __objRest(_b, ["variant", "className"]);
|
7725
|
-
return /* @__PURE__ */
|
8105
|
+
return /* @__PURE__ */ React35.createElement("div", __spreadValues({
|
7726
8106
|
ref,
|
7727
8107
|
className: classNames(
|
7728
8108
|
className,
|
@@ -7730,20 +8110,20 @@ var InputContainer = React33.forwardRef(
|
|
7730
8110
|
{
|
7731
8111
|
"border px-3 py-[6px]": variant !== "readOnly",
|
7732
8112
|
"cursor-default": variant === "readOnly",
|
7733
|
-
"border-
|
8113
|
+
"border-default": variant !== "error" && variant !== "readOnly",
|
7734
8114
|
"border-error-50": variant === "error",
|
7735
|
-
"hover:border-
|
8115
|
+
"hover:border-intense": variant !== "error" && variant !== "disabled" && variant !== "focused",
|
7736
8116
|
"border-info-70": variant === "focused",
|
7737
8117
|
"bg-white": variant !== "disabled",
|
7738
|
-
"cursor-not-allowed border-
|
8118
|
+
"cursor-not-allowed border-default bg-grey-5": variant === "disabled"
|
7739
8119
|
}
|
7740
8120
|
)
|
7741
8121
|
}, props));
|
7742
8122
|
}
|
7743
8123
|
);
|
7744
|
-
var Input =
|
8124
|
+
var Input = React35.forwardRef((_a, ref) => {
|
7745
8125
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
7746
|
-
return /* @__PURE__ */
|
8126
|
+
return /* @__PURE__ */ React35.createElement("input", __spreadValues({
|
7747
8127
|
ref,
|
7748
8128
|
type: "text",
|
7749
8129
|
className: classNames(
|
@@ -7757,39 +8137,39 @@ var Input = React33.forwardRef((_a, ref) => {
|
|
7757
8137
|
)
|
7758
8138
|
}, props));
|
7759
8139
|
});
|
7760
|
-
var Menu =
|
8140
|
+
var Menu = React35.forwardRef(
|
7761
8141
|
(_a, ref) => {
|
7762
8142
|
var _b = _a, { maxHeight = "450px", className, children } = _b, props = __objRest(_b, ["maxHeight", "className", "children"]);
|
7763
|
-
return /* @__PURE__ */
|
8143
|
+
return /* @__PURE__ */ React35.createElement("ul", __spreadValues({
|
7764
8144
|
ref,
|
7765
8145
|
style: { maxHeight },
|
7766
8146
|
className
|
7767
8147
|
}, props), children);
|
7768
8148
|
}
|
7769
8149
|
);
|
7770
|
-
var NoResults =
|
8150
|
+
var NoResults = React35.forwardRef(
|
7771
8151
|
(_a, ref) => {
|
7772
8152
|
var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
|
7773
|
-
return /* @__PURE__ */
|
8153
|
+
return /* @__PURE__ */ React35.createElement("li", __spreadProps(__spreadValues({
|
7774
8154
|
ref
|
7775
8155
|
}, rest), {
|
7776
8156
|
className: classNames(tw("p-3 text-muted italic typography-small"), className)
|
7777
8157
|
}), children);
|
7778
8158
|
}
|
7779
8159
|
);
|
7780
|
-
var EmptyStateContainer2 =
|
8160
|
+
var EmptyStateContainer2 = React35.forwardRef((_a, ref) => {
|
7781
8161
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
7782
|
-
return /* @__PURE__ */
|
8162
|
+
return /* @__PURE__ */ React35.createElement("li", __spreadValues({
|
7783
8163
|
ref,
|
7784
|
-
className: tw("border border-dashed border-
|
8164
|
+
className: tw("border border-dashed border-default m-4 p-6")
|
7785
8165
|
}, props), children);
|
7786
8166
|
});
|
7787
|
-
var Divider2 = (props) => /* @__PURE__ */
|
7788
|
-
className: tw("border-b-[1px] border-
|
8167
|
+
var Divider2 = (props) => /* @__PURE__ */ React35.createElement("div", __spreadValues({
|
8168
|
+
className: tw("border-b-[1px] border-muted mx-3 my-4")
|
7789
8169
|
}, props));
|
7790
|
-
var Group2 =
|
8170
|
+
var Group2 = React35.forwardRef((_a, ref) => {
|
7791
8171
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
7792
|
-
return /* @__PURE__ */
|
8172
|
+
return /* @__PURE__ */ React35.createElement("li", __spreadValues({
|
7793
8173
|
ref,
|
7794
8174
|
className: classNames(
|
7795
8175
|
className,
|
@@ -7800,27 +8180,27 @@ var Group2 = React33.forwardRef((_a, ref) => {
|
|
7800
8180
|
)
|
7801
8181
|
}, props), children);
|
7802
8182
|
});
|
7803
|
-
var
|
8183
|
+
var Item4 = React35.forwardRef(
|
7804
8184
|
(_a, ref) => {
|
7805
8185
|
var _b = _a, { highlighted, selected, className, children } = _b, props = __objRest(_b, ["highlighted", "selected", "className", "children"]);
|
7806
|
-
return /* @__PURE__ */
|
8186
|
+
return /* @__PURE__ */ React35.createElement("li", __spreadValues({
|
7807
8187
|
ref,
|
7808
8188
|
className: classNames(className, "flex items-center gap-x-3 p-3 typography-small", {
|
7809
8189
|
"cursor-pointer hover:bg-grey-0": !props["aria-disabled"],
|
7810
8190
|
"cursor-not-allowed opacity-40 grayscale": props["aria-disabled"],
|
7811
8191
|
"bg-grey-0": highlighted
|
7812
8192
|
})
|
7813
|
-
}, props), /* @__PURE__ */
|
8193
|
+
}, props), /* @__PURE__ */ React35.createElement("span", {
|
7814
8194
|
className: tw("grow flex gap-x-3")
|
7815
|
-
}, children), selected && /* @__PURE__ */
|
8195
|
+
}, children), selected && /* @__PURE__ */ React35.createElement(InlineIcon, {
|
7816
8196
|
icon: import_tick4.default
|
7817
8197
|
}));
|
7818
8198
|
}
|
7819
8199
|
);
|
7820
|
-
var ActionItem =
|
8200
|
+
var ActionItem = React35.forwardRef(
|
7821
8201
|
(_a, ref) => {
|
7822
8202
|
var _b = _a, { className, dense, icon, onClick, children } = _b, props = __objRest(_b, ["className", "dense", "icon", "onClick", "children"]);
|
7823
|
-
return /* @__PURE__ */
|
8203
|
+
return /* @__PURE__ */ React35.createElement("li", __spreadValues({
|
7824
8204
|
ref,
|
7825
8205
|
role: "button",
|
7826
8206
|
onClick: () => !props.disabled && (onClick == null ? void 0 : onClick()),
|
@@ -7831,23 +8211,23 @@ var ActionItem = React33.forwardRef(
|
|
7831
8211
|
"text-grey-20": props.disabled,
|
7832
8212
|
"hover:text-primary-70": !props.disabled
|
7833
8213
|
})
|
7834
|
-
}, props), icon && /* @__PURE__ */
|
8214
|
+
}, props), icon && /* @__PURE__ */ React35.createElement(InlineIcon, {
|
7835
8215
|
icon
|
7836
8216
|
}), children);
|
7837
8217
|
}
|
7838
8218
|
);
|
7839
|
-
var Toggle =
|
8219
|
+
var Toggle = React35.forwardRef((_a, ref) => {
|
7840
8220
|
var _b = _a, { hasFocus, isOpen } = _b, props = __objRest(_b, ["hasFocus", "isOpen"]);
|
7841
8221
|
var _a2;
|
7842
|
-
return /* @__PURE__ */
|
8222
|
+
return /* @__PURE__ */ React35.createElement("button", __spreadProps(__spreadValues({
|
7843
8223
|
ref,
|
7844
8224
|
type: "button",
|
7845
8225
|
"aria-label": "Toggle"
|
7846
8226
|
}, props), {
|
7847
8227
|
className: tw("grow-0 leading-none", { "cursor-not-allowed": (_a2 = props.disabled) != null ? _a2 : false })
|
7848
|
-
}), /* @__PURE__ */
|
8228
|
+
}), /* @__PURE__ */ React35.createElement(InlineIcon, {
|
7849
8229
|
color: props.disabled ? "grey-40" : "grey-70",
|
7850
|
-
icon: hasFocus ? import_search2.default : isOpen ?
|
8230
|
+
icon: hasFocus ? import_search2.default : isOpen ? import_chevronUp4.default : import_chevronDown5.default
|
7851
8231
|
}));
|
7852
8232
|
});
|
7853
8233
|
var Select = {
|
@@ -7858,17 +8238,17 @@ var Select = {
|
|
7858
8238
|
NoResults,
|
7859
8239
|
Divider: Divider2,
|
7860
8240
|
Group: Group2,
|
7861
|
-
Item:
|
8241
|
+
Item: Item4,
|
7862
8242
|
ActionItem,
|
7863
8243
|
Toggle
|
7864
8244
|
};
|
7865
8245
|
|
7866
8246
|
// src/atoms/Stepper/Stepper.tsx
|
7867
|
-
import
|
8247
|
+
import React36 from "react";
|
7868
8248
|
var import_tick5 = __toESM(require_tick());
|
7869
8249
|
var Stepper = (_a) => {
|
7870
8250
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7871
|
-
return /* @__PURE__ */
|
8251
|
+
return /* @__PURE__ */ React36.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7872
8252
|
className: classNames(className)
|
7873
8253
|
}));
|
7874
8254
|
};
|
@@ -7882,7 +8262,7 @@ var ConnectorContainer = (_a) => {
|
|
7882
8262
|
"completed",
|
7883
8263
|
"dense"
|
7884
8264
|
]);
|
7885
|
-
return /* @__PURE__ */
|
8265
|
+
return /* @__PURE__ */ React36.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7886
8266
|
className: classNames(
|
7887
8267
|
tw("absolute w-full -left-1/2", {
|
7888
8268
|
"top-[3px] px-[14px]": Boolean(dense),
|
@@ -7894,7 +8274,7 @@ var ConnectorContainer = (_a) => {
|
|
7894
8274
|
};
|
7895
8275
|
var Connector = (_a) => {
|
7896
8276
|
var _b = _a, { children, className, completed, dense } = _b, rest = __objRest(_b, ["children", "className", "completed", "dense"]);
|
7897
|
-
return /* @__PURE__ */
|
8277
|
+
return /* @__PURE__ */ React36.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7898
8278
|
className: classNames(
|
7899
8279
|
tw("w-full", {
|
7900
8280
|
"bg-grey-20": !completed,
|
@@ -7908,7 +8288,7 @@ var Connector = (_a) => {
|
|
7908
8288
|
};
|
7909
8289
|
var Step = (_a) => {
|
7910
8290
|
var _b = _a, { className, state } = _b, rest = __objRest(_b, ["className", "state"]);
|
7911
|
-
return /* @__PURE__ */
|
8291
|
+
return /* @__PURE__ */ React36.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7912
8292
|
className: classNames(
|
7913
8293
|
tw("flex flex-col items-center text-grey-90 relative text-center", {
|
7914
8294
|
"text-grey-20": state === "inactive"
|
@@ -7919,7 +8299,7 @@ var Step = (_a) => {
|
|
7919
8299
|
};
|
7920
8300
|
var getClassNames = (state) => tw("h-[32px] w-[32px] border-2", {
|
7921
8301
|
"border-grey-90 bg-white": state === "active",
|
7922
|
-
"border-
|
8302
|
+
"border-default bg-white": state === "inactive",
|
7923
8303
|
"text-white bg-success-70 border-success-70": state === "completed"
|
7924
8304
|
});
|
7925
8305
|
var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
|
@@ -7929,13 +8309,13 @@ var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
|
|
7929
8309
|
});
|
7930
8310
|
var Indicator = (_a) => {
|
7931
8311
|
var _b = _a, { children, className, state, dense } = _b, rest = __objRest(_b, ["children", "className", "state", "dense"]);
|
7932
|
-
return /* @__PURE__ */
|
8312
|
+
return /* @__PURE__ */ React36.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7933
8313
|
className: classNames(
|
7934
8314
|
tw("rounded-full flex justify-center items-center mx-2 mb-3"),
|
7935
8315
|
dense ? getDenseClassNames(state) : getClassNames(state),
|
7936
8316
|
className
|
7937
8317
|
)
|
7938
|
-
}), state === "completed" ? /* @__PURE__ */
|
8318
|
+
}), state === "completed" ? /* @__PURE__ */ React36.createElement(InlineIcon, {
|
7939
8319
|
icon: import_tick5.default
|
7940
8320
|
}) : dense ? null : children);
|
7941
8321
|
};
|
@@ -7945,14 +8325,14 @@ ConnectorContainer.Connector = Connector;
|
|
7945
8325
|
Stepper.ConnectorContainer = ConnectorContainer;
|
7946
8326
|
|
7947
8327
|
// src/atoms/Switch/Switch.tsx
|
7948
|
-
import
|
8328
|
+
import React37 from "react";
|
7949
8329
|
var import_ban2 = __toESM(require_ban());
|
7950
|
-
var Switch =
|
8330
|
+
var Switch = React37.forwardRef(
|
7951
8331
|
(_a, ref) => {
|
7952
8332
|
var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
|
7953
|
-
return /* @__PURE__ */
|
8333
|
+
return /* @__PURE__ */ React37.createElement("span", {
|
7954
8334
|
className: tw("relative inline-flex justify-center items-center self-center group")
|
7955
|
-
}, /* @__PURE__ */
|
8335
|
+
}, /* @__PURE__ */ React37.createElement("input", __spreadProps(__spreadValues({
|
7956
8336
|
id,
|
7957
8337
|
ref,
|
7958
8338
|
type: "checkbox",
|
@@ -7971,7 +8351,7 @@ var Switch = React35.forwardRef(
|
|
7971
8351
|
),
|
7972
8352
|
readOnly,
|
7973
8353
|
disabled
|
7974
|
-
})), /* @__PURE__ */
|
8354
|
+
})), /* @__PURE__ */ React37.createElement("span", {
|
7975
8355
|
className: tw(
|
7976
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",
|
7977
8357
|
"bg-white left-2 peer-checked/switch:left-1 text-grey-30 peer-checked/switch:text-primary-60",
|
@@ -7979,139 +8359,13 @@ var Switch = React35.forwardRef(
|
|
7979
8359
|
"shadow-4dp": !disabled
|
7980
8360
|
}
|
7981
8361
|
)
|
7982
|
-
}, disabled && /* @__PURE__ */
|
8362
|
+
}, disabled && /* @__PURE__ */ React37.createElement(Icon, {
|
7983
8363
|
icon: import_ban2.default,
|
7984
8364
|
width: "10px",
|
7985
8365
|
height: "10px"
|
7986
8366
|
})));
|
7987
8367
|
}
|
7988
8368
|
);
|
7989
|
-
|
7990
|
-
// src/atoms/Table/Table.tsx
|
7991
|
-
import React36 from "react";
|
7992
|
-
var import_chevronDown4 = __toESM(require_chevronDown());
|
7993
|
-
var import_chevronUp3 = __toESM(require_chevronUp());
|
7994
|
-
var HeadContext = React36.createContext(null);
|
7995
|
-
var tableClassNames = tw("w-full relative typography-default border-spacing-0");
|
7996
|
-
var Table = (_a) => {
|
7997
|
-
var _b = _a, { children, ariaLabel, className } = _b, rest = __objRest(_b, ["children", "ariaLabel", "className"]);
|
7998
|
-
return /* @__PURE__ */ React36.createElement("table", __spreadProps(__spreadValues({}, rest), {
|
7999
|
-
className: classNames(tableClassNames, className),
|
8000
|
-
"aria-label": ariaLabel
|
8001
|
-
}), children);
|
8002
|
-
};
|
8003
|
-
var TableHead = (_a) => {
|
8004
|
-
var _b = _a, { children, sticky } = _b, rest = __objRest(_b, ["children", "sticky"]);
|
8005
|
-
return /* @__PURE__ */ React36.createElement("thead", __spreadValues({}, rest), /* @__PURE__ */ React36.createElement("tr", null, /* @__PURE__ */ React36.createElement(HeadContext.Provider, {
|
8006
|
-
value: { children, sticky }
|
8007
|
-
}, children)));
|
8008
|
-
};
|
8009
|
-
var TableBody = (_a) => {
|
8010
|
-
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
8011
|
-
return /* @__PURE__ */ React36.createElement("tbody", __spreadValues({}, rest), children);
|
8012
|
-
};
|
8013
|
-
var rowClassNames = tw("children:border-grey-10 group children:last:border-b-0 hover:bg-grey-0");
|
8014
|
-
var TableRow = (_a) => {
|
8015
|
-
var _b = _a, { children, className, disabled } = _b, rest = __objRest(_b, ["children", "className", "disabled"]);
|
8016
|
-
return /* @__PURE__ */ React36.createElement("tr", __spreadProps(__spreadValues(__spreadValues({}, rest), { inert: disabled ? "" : void 0 }), {
|
8017
|
-
className: classNames(rowClassNames, className, {
|
8018
|
-
"opacity-70": disabled
|
8019
|
-
})
|
8020
|
-
}), children);
|
8021
|
-
};
|
8022
|
-
var cellClassNames = tw("px-4 border-b typography-small leading-[18px]");
|
8023
|
-
var getBodyCellClassNames = (table = true, stickyColumn) => tw("text-default py-3", {
|
8024
|
-
"h-[50px]": table,
|
8025
|
-
"min-h-[50px]": !table,
|
8026
|
-
"sticky z-10 bg-white group-hover:bg-grey-0": Boolean(stickyColumn),
|
8027
|
-
"left-0": stickyColumn === "left",
|
8028
|
-
"right-0": stickyColumn === "right"
|
8029
|
-
});
|
8030
|
-
var getAlignClassNames = (align) => tw({ "text-right": align === "right", "text-center": align === "center" });
|
8031
|
-
var getHeadCellClassNames = (sticky = true, stickyColumn) => {
|
8032
|
-
const common = tw("py-[14px] text-left bg-white border-grey-40 text-grey-50 font-semibold whitespace-nowrap");
|
8033
|
-
return sticky ? classNames(
|
8034
|
-
common,
|
8035
|
-
tw("sticky top-0", {
|
8036
|
-
"z-10": !stickyColumn,
|
8037
|
-
"z-20": Boolean(stickyColumn),
|
8038
|
-
"left-0": stickyColumn === "left",
|
8039
|
-
"right-0": stickyColumn === "right"
|
8040
|
-
})
|
8041
|
-
) : common;
|
8042
|
-
};
|
8043
|
-
var TableCell = (_a) => {
|
8044
|
-
var _b = _a, { children, className, stickyColumn, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "stickyColumn", "align"]);
|
8045
|
-
const headContext = React36.useContext(HeadContext);
|
8046
|
-
return headContext ? /* @__PURE__ */ React36.createElement("th", __spreadProps(__spreadValues({}, rest), {
|
8047
|
-
className: classNames(
|
8048
|
-
cellClassNames,
|
8049
|
-
getHeadCellClassNames(headContext.sticky, stickyColumn),
|
8050
|
-
getAlignClassNames(align),
|
8051
|
-
className
|
8052
|
-
)
|
8053
|
-
}), children) : /* @__PURE__ */ React36.createElement("td", __spreadProps(__spreadValues({}, rest), {
|
8054
|
-
className: classNames(
|
8055
|
-
cellClassNames,
|
8056
|
-
getBodyCellClassNames(true, stickyColumn),
|
8057
|
-
getAlignClassNames(align),
|
8058
|
-
className
|
8059
|
-
)
|
8060
|
-
}), children);
|
8061
|
-
};
|
8062
|
-
var TableSelectCell = (_a) => {
|
8063
|
-
var _b = _a, { ariaLabel } = _b, props = __objRest(_b, ["ariaLabel"]);
|
8064
|
-
return /* @__PURE__ */ React36.createElement(Table.Cell, {
|
8065
|
-
className: tw("leading-[0px]")
|
8066
|
-
}, props.type === "radio" ? /* @__PURE__ */ React36.createElement(RadioButton, __spreadValues({
|
8067
|
-
"aria-label": ariaLabel
|
8068
|
-
}, props)) : /* @__PURE__ */ React36.createElement(Checkbox, __spreadValues({
|
8069
|
-
"aria-label": ariaLabel
|
8070
|
-
}, props)));
|
8071
|
-
};
|
8072
|
-
var getSortCellButtonClassNames = (align) => tw("group flex items-center gap-x-4 text-grey-50", { "flex-row-reverse": align === "right" });
|
8073
|
-
var getSortCellIconClassNames = (active) => {
|
8074
|
-
return tw("text-[9px]", active ? "text-default" : "text-muted");
|
8075
|
-
};
|
8076
|
-
var TableSortCell = (_a) => {
|
8077
|
-
var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
|
8078
|
-
return /* @__PURE__ */ React36.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
|
8079
|
-
"aria-sort": direction
|
8080
|
-
}), /* @__PURE__ */ React36.createElement("span", {
|
8081
|
-
className: getSortCellButtonClassNames(rest.align),
|
8082
|
-
role: "button",
|
8083
|
-
tabIndex: -1,
|
8084
|
-
onClick
|
8085
|
-
}, children, /* @__PURE__ */ React36.createElement("div", {
|
8086
|
-
"data-sort-icons": true,
|
8087
|
-
className: tw("flex flex-col", {
|
8088
|
-
"invisible group-hover:visible": direction === "none"
|
8089
|
-
})
|
8090
|
-
}, /* @__PURE__ */ React36.createElement(InlineIcon, {
|
8091
|
-
icon: import_chevronUp3.default,
|
8092
|
-
className: getSortCellIconClassNames(direction === "ascending")
|
8093
|
-
}), /* @__PURE__ */ React36.createElement(InlineIcon, {
|
8094
|
-
icon: import_chevronDown4.default,
|
8095
|
-
className: getSortCellIconClassNames(direction === "descending")
|
8096
|
-
}))));
|
8097
|
-
};
|
8098
|
-
var Caption = ({ children }) => /* @__PURE__ */ React36.createElement(Typography2.Caption, {
|
8099
|
-
htmlTag: "caption"
|
8100
|
-
}, children);
|
8101
|
-
var Item4 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React36.createElement("div", {
|
8102
|
-
className: tw("flex gap-4 items-center")
|
8103
|
-
}, image && /* @__PURE__ */ React36.createElement("img", {
|
8104
|
-
src: image,
|
8105
|
-
alt: imageAlt != null ? imageAlt : "",
|
8106
|
-
style: { width: imageSize, height: imageSize }
|
8107
|
-
}), /* @__PURE__ */ React36.createElement("div", null, title, caption && /* @__PURE__ */ React36.createElement(Typography2.Caption, null, caption)));
|
8108
|
-
Table.Head = React36.memo(TableHead);
|
8109
|
-
Table.Body = React36.memo(TableBody);
|
8110
|
-
Table.Row = React36.memo(TableRow);
|
8111
|
-
Table.Cell = React36.memo(TableCell);
|
8112
|
-
Table.SortCell = React36.memo(TableSortCell);
|
8113
|
-
Table.SelectCell = React36.memo(TableSelectCell);
|
8114
|
-
Table.Caption = Caption;
|
8115
8369
|
export {
|
8116
8370
|
Alert,
|
8117
8371
|
Caption,
|
@@ -8119,9 +8373,10 @@ export {
|
|
8119
8373
|
Checkbox,
|
8120
8374
|
Chip,
|
8121
8375
|
DIALOG_ICONS_AND_COLORS,
|
8376
|
+
DataList,
|
8122
8377
|
DropdownMenu,
|
8123
8378
|
InputGroup,
|
8124
|
-
|
8379
|
+
Item,
|
8125
8380
|
LineClamp,
|
8126
8381
|
Link,
|
8127
8382
|
Modal,
|