@aivenio/aquarium 1.7.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_variables.scss +1 -1
- package/dist/_variables_timescale.scss +1 -1
- package/dist/atoms.cjs +139 -132
- package/dist/atoms.mjs +138 -132
- package/dist/src/common/Card/Card.d.ts +8 -2
- package/dist/src/common/Card/Card.js +10 -7
- package/dist/src/common/Link/Link.d.ts +3 -0
- package/dist/src/common/Link/Link.js +19 -0
- package/dist/src/common/Popover/Popover.js +2 -2
- package/dist/src/common/index.d.ts +1 -0
- package/dist/src/common/index.js +2 -1
- package/dist/src/components/Avatar/Avatar.js +2 -1
- package/dist/src/components/Badge/Badge.js +2 -1
- package/dist/src/components/Button/Button.js +3 -2
- package/dist/src/components/Card/Card.d.ts +1 -1
- package/dist/src/components/Card/Card.js +24 -17
- package/dist/src/components/Card/Compact.js +18 -13
- package/dist/src/components/Card/types.d.ts +5 -0
- package/dist/src/components/Checkbox/Checkbox.js +3 -1
- package/dist/src/components/CheckboxGroup/CheckboxGroup.js +2 -1
- package/dist/src/components/Chip/Chip.js +2 -1
- package/dist/src/components/Combobox/Combobox.d.ts +1 -1
- package/dist/src/components/Combobox/Combobox.js +6 -4
- package/dist/src/components/DataTable/DataTable.js +2 -2
- package/dist/src/components/DropdownMenu/DropdownMenu.js +5 -1
- package/dist/src/components/Link/Link.d.ts +5 -0
- package/dist/src/components/Link/Link.js +4 -0
- package/dist/src/components/MultiSelect/MultiSelect.js +14 -4
- package/dist/src/components/NativeSelect/NativeSelect.js +3 -1
- package/dist/src/components/ProgressBar/ProgressBar.js +4 -2
- package/dist/src/components/RadioButton/RadioButton.js +3 -1
- package/dist/src/components/RadioButtonGroup/RadioButtonGroup.js +2 -1
- package/dist/src/components/Select/Select.js +2 -1
- package/dist/src/components/Skeleton/Skeleton.d.ts +3 -3
- package/dist/src/components/Skeleton/Skeleton.js +1 -1
- package/dist/src/components/Stepper/Stepper.js +2 -1
- package/dist/src/components/Switch/Switch.js +3 -1
- package/dist/src/components/SwitchGroup/SwitchGroup.js +2 -1
- package/dist/src/components/Textarea/Textarea.js +3 -1
- package/dist/src/components/Timeline/Timeline.js +2 -1
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/components/index.js +2 -1
- package/dist/src/utils/constants.d.ts +2 -0
- package/dist/src/utils/constants.js +4 -2
- package/dist/src/utils/form/HelperText/HelperText.js +2 -1
- package/dist/src/utils/table/types.d.ts +2 -0
- package/dist/src/utils/table/types.js +2 -2
- package/dist/styles.css +19 -16
- package/dist/styles_timescaledb.css +19 -16
- package/dist/system.cjs +520 -441
- package/dist/system.mjs +515 -437
- package/dist/tailwind.config.js +1 -1
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/DimensionProps.d.ts +3 -0
- package/dist/types/DimensionProps.js +2 -0
- package/dist/types/tailwindGenerated.d.ts +1 -1
- package/package.json +1 -1
package/dist/atoms.mjs
CHANGED
@@ -2201,20 +2201,20 @@ var classNames = (...args) => {
|
|
2201
2201
|
// src/components/Icon/Icon.tsx
|
2202
2202
|
var Icon = React4.forwardRef((_a, ref) => {
|
2203
2203
|
var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
|
2204
|
-
const
|
2204
|
+
const classes2 = classNames(className, color && `text-${color}`);
|
2205
2205
|
return /* @__PURE__ */ React4.createElement(IconifyIconComponent, __spreadValues({
|
2206
2206
|
ref: ref != null ? ref : void 0,
|
2207
|
-
className:
|
2207
|
+
className: classes2 !== "" ? classes2 : void 0
|
2208
2208
|
}, rest));
|
2209
2209
|
});
|
2210
2210
|
var InlineIcon = React4.forwardRef((_a, ref) => {
|
2211
2211
|
var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
|
2212
|
-
const
|
2212
|
+
const classes2 = classNames(color && `text-${color}`);
|
2213
2213
|
return /* @__PURE__ */ React4.createElement("span", {
|
2214
2214
|
className: classNames(tw("children:inline-block inline-flex justify-center items-center"), className)
|
2215
2215
|
}, /* @__PURE__ */ React4.createElement(IconifyInlineIconComponent, __spreadValues({
|
2216
2216
|
ref: ref != null ? ref : void 0,
|
2217
|
-
className:
|
2217
|
+
className: classes2 !== "" ? classes2 : void 0
|
2218
2218
|
}, rest)));
|
2219
2219
|
});
|
2220
2220
|
|
@@ -2451,6 +2451,12 @@ var Arrow = (props) => {
|
|
2451
2451
|
}, props));
|
2452
2452
|
};
|
2453
2453
|
|
2454
|
+
// src/utils/constants.ts
|
2455
|
+
var ghostButtonStyle = tw(
|
2456
|
+
"text-primary-80 active:text-primary-70 focus-visible:text-grey-90 hover:text-primary-70 disabled:text-primary-40"
|
2457
|
+
);
|
2458
|
+
var linkStyle = classNames(ghostButtonStyle, tw("visited:text-primary-80"));
|
2459
|
+
|
2454
2460
|
// src/components/Button/Button.tsx
|
2455
2461
|
var import_chevronDown = __toESM(require_chevronDown());
|
2456
2462
|
var import_loading = __toESM(require_loading());
|
@@ -2463,9 +2469,7 @@ var COLOR_CLASSNAMES = {
|
|
2463
2469
|
"focus-visible:ring-2 focus-visible:ring-grey-50 focus-visible:text-grey-80",
|
2464
2470
|
"hover:ring-grey-50 hover:text-grey-80 disabled:text-grey-30 disabled:bg-grey-0 disabled:ring-grey-20"
|
2465
2471
|
),
|
2466
|
-
"ghost":
|
2467
|
-
"text-primary-80 active:text-primary-70 focus-visible:text-grey-90 hover:text-primary-70 disabled:text-primary-40"
|
2468
|
-
),
|
2472
|
+
"ghost": ghostButtonStyle,
|
2469
2473
|
"secondary-ghost": tw(
|
2470
2474
|
"text-grey-60 active:text-grey-50 focus-visible:text-grey-80 hover:text-grey-80 disabled:text-grey-30"
|
2471
2475
|
)
|
@@ -2778,6 +2782,7 @@ Alert.Dismiss = (_a) => {
|
|
2778
2782
|
|
2779
2783
|
// src/common/Card/Card.tsx
|
2780
2784
|
import React12 from "react";
|
2785
|
+
import isNumber from "lodash/isNumber";
|
2781
2786
|
|
2782
2787
|
// src/components/Box/Box.tsx
|
2783
2788
|
import React11 from "react";
|
@@ -2939,32 +2944,24 @@ var BorderBox = createSimpleComponent(
|
|
2939
2944
|
);
|
2940
2945
|
|
2941
2946
|
// src/common/Card/Card.tsx
|
2942
|
-
var Card = (
|
2943
|
-
|
2944
|
-
disabled,
|
2945
|
-
|
2946
|
-
|
2947
|
-
|
2948
|
-
|
2949
|
-
|
2950
|
-
|
2951
|
-
|
2952
|
-
|
2953
|
-
|
2954
|
-
|
2955
|
-
|
2956
|
-
|
2957
|
-
|
2958
|
-
|
2959
|
-
|
2960
|
-
"w-full min-w-[280px]": Boolean(fullWidth),
|
2961
|
-
"active:bg-grey-5 cursor-pointer hover:border-grey-50 focus:border-info-70": Boolean(clickable && !disabled),
|
2962
|
-
"bg-grey-0 cursor-not-allowed focus:border-transparent": Boolean(disabled)
|
2963
|
-
}),
|
2964
|
-
className
|
2965
|
-
)
|
2966
|
-
}), children);
|
2967
|
-
};
|
2947
|
+
var Card = React12.forwardRef(
|
2948
|
+
(_a, ref) => {
|
2949
|
+
var _b = _a, { disabled, fullWidth, clickable, className, children } = _b, rest = __objRest(_b, ["disabled", "fullWidth", "clickable", "className", "children"]);
|
2950
|
+
return /* @__PURE__ */ React12.createElement("div", __spreadProps(__spreadValues({
|
2951
|
+
ref
|
2952
|
+
}, rest), {
|
2953
|
+
className: classNames(
|
2954
|
+
tw("border-grey-5 border-[1px] rounded-[2px] relative p-5 flex flex-col gap-5", {
|
2955
|
+
"w-[280px]": !fullWidth,
|
2956
|
+
"w-full min-w-[280px]": Boolean(fullWidth),
|
2957
|
+
"active:bg-grey-5 cursor-pointer hover:border-grey-50 focus:border-info-70": Boolean(clickable && !disabled),
|
2958
|
+
"bg-grey-0 cursor-not-allowed focus:border-transparent": Boolean(disabled)
|
2959
|
+
}),
|
2960
|
+
className
|
2961
|
+
)
|
2962
|
+
}), children);
|
2963
|
+
}
|
2964
|
+
);
|
2968
2965
|
var ColorHighlight = (_a) => {
|
2969
2966
|
var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
|
2970
2967
|
return /* @__PURE__ */ React12.createElement(Box, __spreadProps(__spreadValues({}, rest), {
|
@@ -2983,16 +2980,15 @@ var ImageContainer = (_a) => {
|
|
2983
2980
|
)
|
2984
2981
|
}));
|
2985
2982
|
};
|
2986
|
-
var
|
2987
|
-
|
2988
|
-
imageAlt,
|
2989
|
-
fullSize
|
2990
|
-
}) => /* @__PURE__ */ React12.createElement("img", {
|
2983
|
+
var classes = "w-full bg-cover object-cover";
|
2984
|
+
var Image = ({ image, imageAlt, fullSize = false, imageHeight }) => /* @__PURE__ */ React12.createElement("img", {
|
2991
2985
|
src: image,
|
2992
2986
|
alt: imageAlt,
|
2993
|
-
className: tw(
|
2994
|
-
"h-[
|
2995
|
-
|
2987
|
+
className: tw(classes, {
|
2988
|
+
"h-[174px]": !imageHeight && !fullSize,
|
2989
|
+
"h-[225px]": !imageHeight && fullSize
|
2990
|
+
}),
|
2991
|
+
style: { height: isNumber(imageHeight) ? `${imageHeight}px` : imageHeight }
|
2996
2992
|
});
|
2997
2993
|
var Content = (_a) => {
|
2998
2994
|
var _b = _a, { className, dense } = _b, rest = __objRest(_b, ["className", "dense"]);
|
@@ -3378,11 +3374,20 @@ var InputGroup = (_a) => {
|
|
3378
3374
|
}), children);
|
3379
3375
|
};
|
3380
3376
|
|
3381
|
-
// src/common/
|
3377
|
+
// src/common/Link/Link.tsx
|
3382
3378
|
import React19 from "react";
|
3379
|
+
var Link = (_a) => {
|
3380
|
+
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
3381
|
+
return /* @__PURE__ */ React19.createElement("a", __spreadValues({
|
3382
|
+
className: classNames(className, linkStyle)
|
3383
|
+
}, props), children);
|
3384
|
+
};
|
3385
|
+
|
3386
|
+
// src/common/Modal/Modal.tsx
|
3387
|
+
import React20 from "react";
|
3383
3388
|
var Modal = (_a) => {
|
3384
3389
|
var _b = _a, { children, className, open } = _b, rest = __objRest(_b, ["children", "className", "open"]);
|
3385
|
-
return open ? /* @__PURE__ */
|
3390
|
+
return open ? /* @__PURE__ */ React20.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3386
3391
|
className: classNames(
|
3387
3392
|
tw("inset-0 overflow-y-auto z-modal flex justify-center items-center fixed py-7"),
|
3388
3393
|
className
|
@@ -3391,14 +3396,14 @@ var Modal = (_a) => {
|
|
3391
3396
|
};
|
3392
3397
|
Modal.BackDrop = (_a) => {
|
3393
3398
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
3394
|
-
return /* @__PURE__ */
|
3399
|
+
return /* @__PURE__ */ React20.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3395
3400
|
className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-navyBlue-100 opacity-70"), className)
|
3396
3401
|
}));
|
3397
3402
|
};
|
3398
|
-
Modal.Dialog =
|
3403
|
+
Modal.Dialog = React20.forwardRef(
|
3399
3404
|
(_a, ref) => {
|
3400
3405
|
var _b = _a, { children, className, size = "sm" } = _b, rest = __objRest(_b, ["children", "className", "size"]);
|
3401
|
-
return /* @__PURE__ */
|
3406
|
+
return /* @__PURE__ */ React20.createElement("div", __spreadProps(__spreadValues({
|
3402
3407
|
ref,
|
3403
3408
|
"aria-modal": "true"
|
3404
3409
|
}, rest), {
|
@@ -3416,31 +3421,31 @@ Modal.Dialog = React19.forwardRef(
|
|
3416
3421
|
);
|
3417
3422
|
Modal.Header = (_a) => {
|
3418
3423
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3419
|
-
return /* @__PURE__ */
|
3424
|
+
return /* @__PURE__ */ React20.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3420
3425
|
className: classNames(tw("px-7 py-6 gap-3 flex items-center"), className)
|
3421
3426
|
}), children);
|
3422
3427
|
};
|
3423
3428
|
Modal.HeaderImage = (_a) => {
|
3424
3429
|
var _b = _a, { backgroundImage, className } = _b, rest = __objRest(_b, ["backgroundImage", "className"]);
|
3425
3430
|
const common = tw("h-[120px] min-h-[120px] w-full ");
|
3426
|
-
return backgroundImage ? /* @__PURE__ */
|
3431
|
+
return backgroundImage ? /* @__PURE__ */ React20.createElement("img", __spreadProps(__spreadValues({
|
3427
3432
|
"aria-hidden": true,
|
3428
3433
|
src: backgroundImage != null ? backgroundImage : void 0
|
3429
3434
|
}, rest), {
|
3430
3435
|
className: classNames(common, tw("object-cover"), className)
|
3431
|
-
})) : /* @__PURE__ */
|
3436
|
+
})) : /* @__PURE__ */ React20.createElement("div", {
|
3432
3437
|
className: classNames(common, tw("bg-grey-5"), className)
|
3433
3438
|
});
|
3434
3439
|
};
|
3435
3440
|
Modal.CloseButtonContainer = (_a) => {
|
3436
3441
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
3437
|
-
return /* @__PURE__ */
|
3442
|
+
return /* @__PURE__ */ React20.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3438
3443
|
className: classNames(tw("absolute top-[20px] right-[28px]"), className)
|
3439
3444
|
}));
|
3440
3445
|
};
|
3441
3446
|
Modal.Title = (_a) => {
|
3442
3447
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3443
|
-
return /* @__PURE__ */
|
3448
|
+
return /* @__PURE__ */ React20.createElement(Typography, __spreadValues({
|
3444
3449
|
htmlTag: "h2",
|
3445
3450
|
variant: "subheading",
|
3446
3451
|
color: "grey-90",
|
@@ -3449,47 +3454,47 @@ Modal.Title = (_a) => {
|
|
3449
3454
|
};
|
3450
3455
|
Modal.Subtitle = (_a) => {
|
3451
3456
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
3452
|
-
return /* @__PURE__ */
|
3457
|
+
return /* @__PURE__ */ React20.createElement(Typography, __spreadValues({
|
3453
3458
|
variant: "small",
|
3454
3459
|
color: "grey-60"
|
3455
3460
|
}, rest), children);
|
3456
3461
|
};
|
3457
3462
|
Modal.TitleContainer = (_a) => {
|
3458
3463
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3459
|
-
return /* @__PURE__ */
|
3464
|
+
return /* @__PURE__ */ React20.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3460
3465
|
className: classNames(tw("flex flex-col grow gap-2"), className)
|
3461
3466
|
}), children);
|
3462
3467
|
};
|
3463
3468
|
Modal.Body = (_a) => {
|
3464
3469
|
var _b = _a, { children, className, noFooter = false, maxHeight, style } = _b, rest = __objRest(_b, ["children", "className", "noFooter", "maxHeight", "style"]);
|
3465
|
-
return /* @__PURE__ */
|
3470
|
+
return /* @__PURE__ */ React20.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3466
3471
|
className: classNames(tw("px-7 grow overflow-y-auto", { "pb-6": noFooter }), className),
|
3467
3472
|
style: __spreadValues({ maxHeight }, style)
|
3468
3473
|
}), children);
|
3469
3474
|
};
|
3470
3475
|
Modal.Footer = (_a) => {
|
3471
3476
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3472
|
-
return /* @__PURE__ */
|
3477
|
+
return /* @__PURE__ */ React20.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3473
3478
|
className: classNames(tw("px-7 py-6"), className)
|
3474
3479
|
}), children);
|
3475
3480
|
};
|
3476
3481
|
Modal.Actions = (_a) => {
|
3477
3482
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3478
|
-
return /* @__PURE__ */
|
3483
|
+
return /* @__PURE__ */ React20.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3479
3484
|
className: classNames(tw("flex gap-4 justify-end"), className)
|
3480
3485
|
}), children);
|
3481
3486
|
};
|
3482
3487
|
|
3483
3488
|
// src/common/Popover/Popover.tsx
|
3484
|
-
import
|
3485
|
-
var PopoverPanel =
|
3489
|
+
import React21 from "react";
|
3490
|
+
var PopoverPanel = React21.forwardRef((_a, ref) => {
|
3486
3491
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
3487
|
-
return /* @__PURE__ */
|
3492
|
+
return /* @__PURE__ */ React21.createElement("div", __spreadValues({
|
3488
3493
|
ref,
|
3489
3494
|
className: classNames(
|
3490
3495
|
className,
|
3491
3496
|
tw(
|
3492
|
-
"rounded-sm shadow-16dp bg-white mt-1 focus-visible:outline-0 focus-visible:border-info-70 border border-grey-20
|
3497
|
+
"rounded-sm shadow-16dp bg-white mt-1 focus-visible:outline-0 focus-visible:border-info-70 border border-grey-20"
|
3493
3498
|
)
|
3494
3499
|
)
|
3495
3500
|
}, props), children);
|
@@ -3499,23 +3504,23 @@ var Popover = {
|
|
3499
3504
|
};
|
3500
3505
|
|
3501
3506
|
// src/common/PopoverDialog/PopoverDialog.tsx
|
3502
|
-
import
|
3507
|
+
import React22 from "react";
|
3503
3508
|
var Header = (_a) => {
|
3504
3509
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3505
|
-
return /* @__PURE__ */
|
3510
|
+
return /* @__PURE__ */ React22.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3506
3511
|
className: classNames(tw("p-5 gap-3 flex items-center"), className)
|
3507
3512
|
}), children);
|
3508
3513
|
};
|
3509
3514
|
var Title = (_a) => {
|
3510
3515
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3511
|
-
return /* @__PURE__ */
|
3516
|
+
return /* @__PURE__ */ React22.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
3512
3517
|
htmlTag: "h1",
|
3513
3518
|
variant: "small-strong"
|
3514
3519
|
}), children);
|
3515
3520
|
};
|
3516
3521
|
var Body = (_a) => {
|
3517
3522
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3518
|
-
return /* @__PURE__ */
|
3523
|
+
return /* @__PURE__ */ React22.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
3519
3524
|
htmlTag: "div",
|
3520
3525
|
variant: "caption",
|
3521
3526
|
className: classNames(tw("px-5 overflow-y-auto"), className)
|
@@ -3523,13 +3528,13 @@ var Body = (_a) => {
|
|
3523
3528
|
};
|
3524
3529
|
var Footer = (_a) => {
|
3525
3530
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3526
|
-
return /* @__PURE__ */
|
3531
|
+
return /* @__PURE__ */ React22.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3527
3532
|
className: classNames(tw("p-5"), className)
|
3528
3533
|
}), children);
|
3529
3534
|
};
|
3530
3535
|
var Actions2 = (_a) => {
|
3531
3536
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3532
|
-
return /* @__PURE__ */
|
3537
|
+
return /* @__PURE__ */ React22.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3533
3538
|
className: classNames(tw("flex gap-4"), className)
|
3534
3539
|
}), children);
|
3535
3540
|
};
|
@@ -3542,11 +3547,11 @@ var PopoverDialog = {
|
|
3542
3547
|
};
|
3543
3548
|
|
3544
3549
|
// src/common/RadioButton/RadioButton.tsx
|
3545
|
-
import
|
3546
|
-
var RadioButton =
|
3550
|
+
import React23 from "react";
|
3551
|
+
var RadioButton = React23.forwardRef(
|
3547
3552
|
(_a, ref) => {
|
3548
3553
|
var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
|
3549
|
-
return /* @__PURE__ */
|
3554
|
+
return /* @__PURE__ */ React23.createElement("input", __spreadProps(__spreadValues({
|
3550
3555
|
id,
|
3551
3556
|
ref,
|
3552
3557
|
type: "radio",
|
@@ -3570,7 +3575,7 @@ var RadioButton = React22.forwardRef(
|
|
3570
3575
|
);
|
3571
3576
|
|
3572
3577
|
// src/common/Select/Select.tsx
|
3573
|
-
import
|
3578
|
+
import React24 from "react";
|
3574
3579
|
var import_chevronDown2 = __toESM(require_chevronDown());
|
3575
3580
|
var import_chevronUp = __toESM(require_chevronUp());
|
3576
3581
|
var import_search = __toESM(require_search());
|
@@ -3590,16 +3595,16 @@ function isOptionDisabledBuiltin(option) {
|
|
3590
3595
|
}
|
3591
3596
|
var getValues = (children) => {
|
3592
3597
|
var _a;
|
3593
|
-
const values =
|
3598
|
+
const values = React24.Children.map(children, (c) => {
|
3594
3599
|
var _a2;
|
3595
3600
|
return (_a2 = c == null ? void 0 : c.props) == null ? void 0 : _a2.value;
|
3596
3601
|
});
|
3597
3602
|
return (_a = values == null ? void 0 : values.filter((v) => v !== void 0 && v !== null)) != null ? _a : [];
|
3598
3603
|
};
|
3599
|
-
var InputContainer =
|
3604
|
+
var InputContainer = React24.forwardRef(
|
3600
3605
|
(_a, ref) => {
|
3601
3606
|
var _b = _a, { variant = "default", className } = _b, props = __objRest(_b, ["variant", "className"]);
|
3602
|
-
return /* @__PURE__ */
|
3607
|
+
return /* @__PURE__ */ React24.createElement("div", __spreadValues({
|
3603
3608
|
ref,
|
3604
3609
|
className: classNames(
|
3605
3610
|
className,
|
@@ -3618,9 +3623,9 @@ var InputContainer = React23.forwardRef(
|
|
3618
3623
|
}, props));
|
3619
3624
|
}
|
3620
3625
|
);
|
3621
|
-
var Input =
|
3626
|
+
var Input = React24.forwardRef((_a, ref) => {
|
3622
3627
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
3623
|
-
return /* @__PURE__ */
|
3628
|
+
return /* @__PURE__ */ React24.createElement("input", __spreadValues({
|
3624
3629
|
ref,
|
3625
3630
|
type: "text",
|
3626
3631
|
className: classNames(
|
@@ -3634,39 +3639,39 @@ var Input = React23.forwardRef((_a, ref) => {
|
|
3634
3639
|
)
|
3635
3640
|
}, props));
|
3636
3641
|
});
|
3637
|
-
var Menu =
|
3642
|
+
var Menu = React24.forwardRef(
|
3638
3643
|
(_a, ref) => {
|
3639
3644
|
var _b = _a, { maxHeight = "450px", className, children } = _b, props = __objRest(_b, ["maxHeight", "className", "children"]);
|
3640
|
-
return /* @__PURE__ */
|
3645
|
+
return /* @__PURE__ */ React24.createElement("ul", __spreadValues({
|
3641
3646
|
ref,
|
3642
3647
|
style: { maxHeight },
|
3643
3648
|
className
|
3644
3649
|
}, props), children);
|
3645
3650
|
}
|
3646
3651
|
);
|
3647
|
-
var NoResults =
|
3652
|
+
var NoResults = React24.forwardRef(
|
3648
3653
|
(_a, ref) => {
|
3649
3654
|
var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
|
3650
|
-
return /* @__PURE__ */
|
3655
|
+
return /* @__PURE__ */ React24.createElement("li", __spreadProps(__spreadValues({
|
3651
3656
|
ref
|
3652
3657
|
}, rest), {
|
3653
3658
|
className: classNames(tw("p-3 text-grey-40 italic"), className)
|
3654
3659
|
}), children);
|
3655
3660
|
}
|
3656
3661
|
);
|
3657
|
-
var EmptyStateContainer2 =
|
3662
|
+
var EmptyStateContainer2 = React24.forwardRef((_a, ref) => {
|
3658
3663
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
3659
|
-
return /* @__PURE__ */
|
3664
|
+
return /* @__PURE__ */ React24.createElement("li", __spreadValues({
|
3660
3665
|
ref,
|
3661
3666
|
className: tw("border border-dashed border-grey-10 m-4 p-6")
|
3662
3667
|
}, props), children);
|
3663
3668
|
});
|
3664
|
-
var Divider = (props) => /* @__PURE__ */
|
3669
|
+
var Divider = (props) => /* @__PURE__ */ React24.createElement("div", __spreadValues({
|
3665
3670
|
className: tw("border-b-[1px] border-grey-5 mx-3 my-4")
|
3666
3671
|
}, props));
|
3667
|
-
var Group2 =
|
3672
|
+
var Group2 = React24.forwardRef((_a, ref) => {
|
3668
3673
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
3669
|
-
return /* @__PURE__ */
|
3674
|
+
return /* @__PURE__ */ React24.createElement("li", __spreadValues({
|
3670
3675
|
ref,
|
3671
3676
|
className: classNames(
|
3672
3677
|
className,
|
@@ -3677,10 +3682,10 @@ var Group2 = React23.forwardRef((_a, ref) => {
|
|
3677
3682
|
)
|
3678
3683
|
}, props), children);
|
3679
3684
|
});
|
3680
|
-
var Item2 =
|
3685
|
+
var Item2 = React24.forwardRef(
|
3681
3686
|
(_a, ref) => {
|
3682
3687
|
var _b = _a, { highlighted, selected, className, children } = _b, props = __objRest(_b, ["highlighted", "selected", "className", "children"]);
|
3683
|
-
return /* @__PURE__ */
|
3688
|
+
return /* @__PURE__ */ React24.createElement("li", __spreadValues({
|
3684
3689
|
ref,
|
3685
3690
|
className: classNames(className, "flex items-center gap-x-3 p-3 typography-small", {
|
3686
3691
|
"cursor-pointer": !props.disabled,
|
@@ -3688,17 +3693,17 @@ var Item2 = React23.forwardRef(
|
|
3688
3693
|
"text-grey-20": props.disabled,
|
3689
3694
|
"hover:bg-grey-0": !props.disabled
|
3690
3695
|
})
|
3691
|
-
}, props), /* @__PURE__ */
|
3696
|
+
}, props), /* @__PURE__ */ React24.createElement("span", {
|
3692
3697
|
className: tw("grow flex gap-x-3")
|
3693
|
-
}, children), selected && /* @__PURE__ */
|
3698
|
+
}, children), selected && /* @__PURE__ */ React24.createElement(InlineIcon, {
|
3694
3699
|
icon: import_tick3.default
|
3695
3700
|
}));
|
3696
3701
|
}
|
3697
3702
|
);
|
3698
|
-
var ActionItem =
|
3703
|
+
var ActionItem = React24.forwardRef(
|
3699
3704
|
(_a, ref) => {
|
3700
3705
|
var _b = _a, { className, dense, icon, onClick, children } = _b, props = __objRest(_b, ["className", "dense", "icon", "onClick", "children"]);
|
3701
|
-
return /* @__PURE__ */
|
3706
|
+
return /* @__PURE__ */ React24.createElement("li", __spreadValues({
|
3702
3707
|
ref,
|
3703
3708
|
role: "button",
|
3704
3709
|
onClick: () => !props.disabled && (onClick == null ? void 0 : onClick()),
|
@@ -3709,21 +3714,21 @@ var ActionItem = React23.forwardRef(
|
|
3709
3714
|
"text-grey-20": props.disabled,
|
3710
3715
|
"hover:text-primary-70": !props.disabled
|
3711
3716
|
})
|
3712
|
-
}, props), icon && /* @__PURE__ */
|
3717
|
+
}, props), icon && /* @__PURE__ */ React24.createElement(InlineIcon, {
|
3713
3718
|
icon
|
3714
3719
|
}), children);
|
3715
3720
|
}
|
3716
3721
|
);
|
3717
|
-
var Toggle =
|
3722
|
+
var Toggle = React24.forwardRef((_a, ref) => {
|
3718
3723
|
var _b = _a, { hasFocus, isOpen } = _b, props = __objRest(_b, ["hasFocus", "isOpen"]);
|
3719
3724
|
var _a2;
|
3720
|
-
return /* @__PURE__ */
|
3725
|
+
return /* @__PURE__ */ React24.createElement("button", __spreadProps(__spreadValues({
|
3721
3726
|
ref,
|
3722
3727
|
type: "button",
|
3723
3728
|
"aria-label": "Toggle"
|
3724
3729
|
}, props), {
|
3725
3730
|
className: tw("grow-0 leading-none", { "cursor-not-allowed": (_a2 = props.disabled) != null ? _a2 : false })
|
3726
|
-
}), /* @__PURE__ */
|
3731
|
+
}), /* @__PURE__ */ React24.createElement(InlineIcon, {
|
3727
3732
|
color: props.disabled ? "grey-40" : "grey-70",
|
3728
3733
|
icon: hasFocus ? import_search.default : isOpen ? import_chevronUp.default : import_chevronDown2.default
|
3729
3734
|
}));
|
@@ -3742,11 +3747,11 @@ var Select = {
|
|
3742
3747
|
};
|
3743
3748
|
|
3744
3749
|
// src/common/Stepper/Stepper.tsx
|
3745
|
-
import
|
3750
|
+
import React25 from "react";
|
3746
3751
|
var import_tick4 = __toESM(require_tick());
|
3747
3752
|
var Stepper = (_a) => {
|
3748
3753
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
3749
|
-
return /* @__PURE__ */
|
3754
|
+
return /* @__PURE__ */ React25.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3750
3755
|
className: classNames(className)
|
3751
3756
|
}));
|
3752
3757
|
};
|
@@ -3760,7 +3765,7 @@ var ConnectorContainer = (_a) => {
|
|
3760
3765
|
"completed",
|
3761
3766
|
"dense"
|
3762
3767
|
]);
|
3763
|
-
return /* @__PURE__ */
|
3768
|
+
return /* @__PURE__ */ React25.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3764
3769
|
className: classNames(
|
3765
3770
|
tw("absolute w-full -left-1/2", {
|
3766
3771
|
"top-[3px] px-[14px]": Boolean(dense),
|
@@ -3772,7 +3777,7 @@ var ConnectorContainer = (_a) => {
|
|
3772
3777
|
};
|
3773
3778
|
var Connector = (_a) => {
|
3774
3779
|
var _b = _a, { children, className, completed, dense } = _b, rest = __objRest(_b, ["children", "className", "completed", "dense"]);
|
3775
|
-
return /* @__PURE__ */
|
3780
|
+
return /* @__PURE__ */ React25.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3776
3781
|
className: classNames(
|
3777
3782
|
tw("w-full", {
|
3778
3783
|
"bg-grey-20": !completed,
|
@@ -3786,7 +3791,7 @@ var Connector = (_a) => {
|
|
3786
3791
|
};
|
3787
3792
|
var Step = (_a) => {
|
3788
3793
|
var _b = _a, { className, state } = _b, rest = __objRest(_b, ["className", "state"]);
|
3789
|
-
return /* @__PURE__ */
|
3794
|
+
return /* @__PURE__ */ React25.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3790
3795
|
className: classNames(
|
3791
3796
|
tw("flex flex-col items-center text-grey-90 relative text-center", {
|
3792
3797
|
"text-grey-20": state === "inactive"
|
@@ -3807,13 +3812,13 @@ var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
|
|
3807
3812
|
});
|
3808
3813
|
var Indicator = (_a) => {
|
3809
3814
|
var _b = _a, { children, className, state, dense } = _b, rest = __objRest(_b, ["children", "className", "state", "dense"]);
|
3810
|
-
return /* @__PURE__ */
|
3815
|
+
return /* @__PURE__ */ React25.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3811
3816
|
className: classNames(
|
3812
3817
|
tw("rounded-full flex justify-center items-center mx-2 mb-3"),
|
3813
3818
|
dense ? getDenseClassNames(state) : getClassNames(state),
|
3814
3819
|
className
|
3815
3820
|
)
|
3816
|
-
}), state === "completed" ? /* @__PURE__ */
|
3821
|
+
}), state === "completed" ? /* @__PURE__ */ React25.createElement(InlineIcon, {
|
3817
3822
|
icon: import_tick4.default
|
3818
3823
|
}) : dense ? null : children);
|
3819
3824
|
};
|
@@ -3823,13 +3828,13 @@ ConnectorContainer.Connector = Connector;
|
|
3823
3828
|
Stepper.ConnectorContainer = ConnectorContainer;
|
3824
3829
|
|
3825
3830
|
// src/common/Switch/Switch.tsx
|
3826
|
-
import
|
3827
|
-
var Switch =
|
3831
|
+
import React26 from "react";
|
3832
|
+
var Switch = React26.forwardRef(
|
3828
3833
|
(_a, ref) => {
|
3829
3834
|
var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
|
3830
|
-
return /* @__PURE__ */
|
3835
|
+
return /* @__PURE__ */ React26.createElement("span", {
|
3831
3836
|
className: tw("relative inline-flex justify-center items-center self-center group")
|
3832
|
-
}, /* @__PURE__ */
|
3837
|
+
}, /* @__PURE__ */ React26.createElement("input", __spreadProps(__spreadValues({
|
3833
3838
|
id,
|
3834
3839
|
ref,
|
3835
3840
|
type: "checkbox",
|
@@ -3848,7 +3853,7 @@ var Switch = React25.forwardRef(
|
|
3848
3853
|
),
|
3849
3854
|
readOnly,
|
3850
3855
|
disabled
|
3851
|
-
})), /* @__PURE__ */
|
3856
|
+
})), /* @__PURE__ */ React26.createElement("span", {
|
3852
3857
|
className: tw(
|
3853
3858
|
"pointer-events-none rounded-full absolute inline-block transition duration-300 h-4 w-4 transform peer-checked/switch:translate-x-5",
|
3854
3859
|
"bg-white peer-disabled/switch:bg-grey-0 left-2 peer-checked/switch:left-1",
|
@@ -3861,32 +3866,32 @@ var Switch = React25.forwardRef(
|
|
3861
3866
|
);
|
3862
3867
|
|
3863
3868
|
// src/common/Table/Table.tsx
|
3864
|
-
import
|
3869
|
+
import React27 from "react";
|
3865
3870
|
var import_chevronDown3 = __toESM(require_chevronDown());
|
3866
3871
|
var import_chevronUp2 = __toESM(require_chevronUp());
|
3867
|
-
var HeadContext =
|
3872
|
+
var HeadContext = React27.createContext(null);
|
3868
3873
|
var tableClassNames = tw("w-full relative typography-default border-spacing-0");
|
3869
3874
|
var Table = (_a) => {
|
3870
3875
|
var _b = _a, { children, ariaLabel, className } = _b, rest = __objRest(_b, ["children", "ariaLabel", "className"]);
|
3871
|
-
return /* @__PURE__ */
|
3876
|
+
return /* @__PURE__ */ React27.createElement("table", __spreadProps(__spreadValues({}, rest), {
|
3872
3877
|
className: classNames(tableClassNames, className),
|
3873
3878
|
"aria-label": ariaLabel
|
3874
3879
|
}), children);
|
3875
3880
|
};
|
3876
3881
|
var TableHead = (_a) => {
|
3877
3882
|
var _b = _a, { children, sticky } = _b, rest = __objRest(_b, ["children", "sticky"]);
|
3878
|
-
return /* @__PURE__ */
|
3883
|
+
return /* @__PURE__ */ React27.createElement("thead", __spreadValues({}, rest), /* @__PURE__ */ React27.createElement("tr", null, /* @__PURE__ */ React27.createElement(HeadContext.Provider, {
|
3879
3884
|
value: { children, sticky }
|
3880
3885
|
}, children)));
|
3881
3886
|
};
|
3882
3887
|
var TableBody = (_a) => {
|
3883
3888
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
3884
|
-
return /* @__PURE__ */
|
3889
|
+
return /* @__PURE__ */ React27.createElement("tbody", __spreadValues({}, rest), children);
|
3885
3890
|
};
|
3886
3891
|
var rowClassNames = tw("children:border-grey-10 children:last:border-b-0 hover:bg-grey-0");
|
3887
3892
|
var TableRow = (_a) => {
|
3888
3893
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3889
|
-
return /* @__PURE__ */
|
3894
|
+
return /* @__PURE__ */ React27.createElement("tr", __spreadProps(__spreadValues({}, rest), {
|
3890
3895
|
className: classNames(rowClassNames, className)
|
3891
3896
|
}), children);
|
3892
3897
|
};
|
@@ -3902,25 +3907,25 @@ var getHeadCellClassNames = (sticky = true) => {
|
|
3902
3907
|
};
|
3903
3908
|
var TableCell = (_a) => {
|
3904
3909
|
var _b = _a, { children, className, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "align"]);
|
3905
|
-
const headContext =
|
3906
|
-
return headContext ? /* @__PURE__ */
|
3910
|
+
const headContext = React27.useContext(HeadContext);
|
3911
|
+
return headContext ? /* @__PURE__ */ React27.createElement("th", __spreadProps(__spreadValues({}, rest), {
|
3907
3912
|
className: classNames(
|
3908
3913
|
cellClassNames,
|
3909
3914
|
getHeadCellClassNames(headContext.sticky),
|
3910
3915
|
getAlignClassNames(align),
|
3911
3916
|
className
|
3912
3917
|
)
|
3913
|
-
}), children) : /* @__PURE__ */
|
3918
|
+
}), children) : /* @__PURE__ */ React27.createElement("td", __spreadProps(__spreadValues({}, rest), {
|
3914
3919
|
className: classNames(cellClassNames, getBodyCellClassNames(), getAlignClassNames(align), className)
|
3915
3920
|
}), children);
|
3916
3921
|
};
|
3917
3922
|
var TableSelectCell = (_a) => {
|
3918
3923
|
var _b = _a, { ariaLabel } = _b, props = __objRest(_b, ["ariaLabel"]);
|
3919
|
-
return /* @__PURE__ */
|
3924
|
+
return /* @__PURE__ */ React27.createElement(Table.Cell, {
|
3920
3925
|
className: tw("leading-[0px]")
|
3921
|
-
}, props.type === "radio" ? /* @__PURE__ */
|
3926
|
+
}, props.type === "radio" ? /* @__PURE__ */ React27.createElement(RadioButton, __spreadValues({
|
3922
3927
|
"aria-label": ariaLabel
|
3923
|
-
}, props)) : /* @__PURE__ */
|
3928
|
+
}, props)) : /* @__PURE__ */ React27.createElement(Checkbox, __spreadValues({
|
3924
3929
|
"aria-label": ariaLabel
|
3925
3930
|
}, props)));
|
3926
3931
|
};
|
@@ -3930,39 +3935,39 @@ var getSortCellIconClassNames = (active) => {
|
|
3930
3935
|
};
|
3931
3936
|
var TableSortCell = (_a) => {
|
3932
3937
|
var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
|
3933
|
-
return /* @__PURE__ */
|
3938
|
+
return /* @__PURE__ */ React27.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
|
3934
3939
|
"aria-sort": direction
|
3935
|
-
}), /* @__PURE__ */
|
3940
|
+
}), /* @__PURE__ */ React27.createElement("span", {
|
3936
3941
|
className: getSortCellButtonClassNames(rest.align),
|
3937
3942
|
role: "button",
|
3938
3943
|
tabIndex: -1,
|
3939
3944
|
onClick
|
3940
|
-
}, children, /* @__PURE__ */
|
3945
|
+
}, children, /* @__PURE__ */ React27.createElement("div", {
|
3941
3946
|
"data-sort-icons": true,
|
3942
3947
|
className: tw("flex flex-col", {
|
3943
3948
|
"invisible group-hover:visible": direction === "none"
|
3944
3949
|
})
|
3945
|
-
}, /* @__PURE__ */
|
3950
|
+
}, /* @__PURE__ */ React27.createElement(InlineIcon, {
|
3946
3951
|
icon: import_chevronUp2.default,
|
3947
3952
|
className: getSortCellIconClassNames(direction === "descending")
|
3948
|
-
}), /* @__PURE__ */
|
3953
|
+
}), /* @__PURE__ */ React27.createElement(InlineIcon, {
|
3949
3954
|
icon: import_chevronDown3.default,
|
3950
3955
|
className: getSortCellIconClassNames(direction === "ascending")
|
3951
3956
|
}))));
|
3952
3957
|
};
|
3953
|
-
var Item3 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */
|
3958
|
+
var Item3 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React27.createElement("div", {
|
3954
3959
|
className: tw("flex gap-4 items-center")
|
3955
|
-
}, image && /* @__PURE__ */
|
3960
|
+
}, image && /* @__PURE__ */ React27.createElement("img", {
|
3956
3961
|
src: image,
|
3957
3962
|
alt: imageAlt,
|
3958
3963
|
style: { width: imageSize, height: imageSize }
|
3959
|
-
}), /* @__PURE__ */
|
3960
|
-
Table.Head =
|
3961
|
-
Table.Body =
|
3962
|
-
Table.Row =
|
3963
|
-
Table.Cell =
|
3964
|
-
Table.SortCell =
|
3965
|
-
Table.SelectCell =
|
3964
|
+
}), /* @__PURE__ */ React27.createElement("div", null, title, caption && /* @__PURE__ */ React27.createElement(Typography2.Caption, null, caption)));
|
3965
|
+
Table.Head = React27.memo(TableHead);
|
3966
|
+
Table.Body = React27.memo(TableBody);
|
3967
|
+
Table.Row = React27.memo(TableRow);
|
3968
|
+
Table.Cell = React27.memo(TableCell);
|
3969
|
+
Table.SortCell = React27.memo(TableSortCell);
|
3970
|
+
Table.SelectCell = React27.memo(TableSelectCell);
|
3966
3971
|
export {
|
3967
3972
|
Alert,
|
3968
3973
|
Card,
|
@@ -3972,6 +3977,7 @@ export {
|
|
3972
3977
|
DropdownMenu,
|
3973
3978
|
InputGroup,
|
3974
3979
|
Item3 as Item,
|
3980
|
+
Link,
|
3975
3981
|
Modal,
|
3976
3982
|
Popover,
|
3977
3983
|
PopoverDialog,
|