@aivenio/aquarium 1.68.0-rc1 → 1.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_variables.scss +1 -1
- package/dist/atoms.cjs +77 -67
- package/dist/atoms.mjs +77 -67
- package/dist/charts.cjs +2 -2
- package/dist/charts.mjs +2 -2
- package/dist/src/atoms/Alert/Alert.js +2 -2
- package/dist/src/atoms/Banner/Banner.js +2 -2
- package/dist/src/atoms/Card/Card.d.ts +3 -3
- package/dist/src/atoms/Card/Card.js +2 -2
- package/dist/src/atoms/Checkbox/Checkbox.d.ts +1 -1
- package/dist/src/atoms/Checkbox/Checkbox.js +2 -2
- package/dist/src/atoms/DropdownMenu/DropdownMenu.js +2 -2
- package/dist/src/atoms/Modal/Modal.js +2 -2
- package/dist/src/atoms/Navigation/Navigation.js +1 -1
- package/dist/src/atoms/PageHeader/PageHeader.js +3 -3
- package/dist/src/atoms/RadioButton/RadioButton.d.ts +1 -1
- package/dist/src/atoms/Section/Section.js +4 -4
- package/dist/src/atoms/Stepper/Stepper.js +3 -3
- package/dist/src/atoms/Switch/Switch.d.ts +1 -1
- package/dist/src/atoms/Table/Table.d.ts +2 -2
- package/dist/src/atoms/Table/Table.js +8 -8
- package/dist/src/charts/PieChart/ChartValue.js +1 -1
- package/dist/src/charts/Tooltip/Tooltip.js +2 -2
- package/dist/src/icons/warningSign.js +2 -2
- package/dist/src/molecules/Accordion/Accordion.js +2 -2
- package/dist/src/molecules/Banner/Banner.d.ts +1 -1
- package/dist/src/molecules/Box/Box.d.ts +7 -1
- package/dist/src/molecules/Box/Box.js +7 -4
- package/dist/src/molecules/Button/Button.d.ts +9 -9
- package/dist/src/molecules/Button/Button.js +1 -1
- package/dist/src/molecules/Card/Card.js +3 -3
- package/dist/src/molecules/Card/Compact.js +3 -3
- package/dist/src/molecules/Card/types.d.ts +3 -2
- package/dist/src/molecules/Chip/Chip.js +2 -2
- package/dist/src/molecules/ChoiceChip/ChoiceChip.js +3 -3
- package/dist/src/molecules/ControlLabel/ControlLabel.js +2 -2
- package/dist/src/molecules/DataList/DataList.js +65 -55
- package/dist/src/molecules/DataList/DataListComponents.d.ts +3 -1
- package/dist/src/molecules/DataList/DataListComponents.js +12 -4
- package/dist/src/molecules/DataTable/DataTable.js +42 -25
- package/dist/src/molecules/DropdownMenu/DropdownMenu.d.ts +3 -3
- package/dist/src/molecules/DropdownMenu/DropdownMenu.js +1 -1
- package/dist/src/molecules/EmptyState/EmptyState.js +2 -2
- package/dist/src/molecules/List/List.js +1 -1
- package/dist/src/molecules/ListItem/ListItem.js +1 -1
- package/dist/src/molecules/MultiInput/InputChip.js +2 -2
- package/dist/src/molecules/Pagination/Pagination.js +4 -4
- package/dist/src/molecules/Tabs/Tabs.js +5 -3
- package/dist/src/molecules/Timeline/Timeline.js +2 -2
- package/dist/src/molecules/Tooltip/useTooltipTriggerState.js +2 -1
- package/dist/src/utils/ContrastRatio.js +7 -7
- package/dist/src/utils/stickyStyles.d.ts +64 -0
- package/dist/src/utils/stickyStyles.js +74 -0
- package/dist/styles.css +13 -15
- package/dist/system.cjs +832 -694
- package/dist/system.mjs +821 -683
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/designTokens.d.ts +2 -0
- package/dist/types/tailwindGenerated.d.ts +1 -1
- package/package.json +4 -4
- package/dist/tailwind/tailwind.backgroundColor.d.ts +0 -43
- package/dist/tailwind/tailwind.backgroundColor.js +0 -44
- package/dist/tailwind/tailwind.borderColor.d.ts +0 -44
- package/dist/tailwind/tailwind.borderColor.js +0 -32
- package/dist/tailwind/tailwind.borderRadius.d.ts +0 -1
- package/dist/tailwind/tailwind.borderRadius.js +0 -5
- package/dist/tailwind/tailwind.colors.d.ts +0 -102
- package/dist/tailwind/tailwind.colors.js +0 -106
- package/dist/tailwind/tailwind.elevations.d.ts +0 -8
- package/dist/tailwind/tailwind.elevations.js +0 -9
- package/dist/tailwind/tailwind.margin.d.ts +0 -22
- package/dist/tailwind/tailwind.margin.js +0 -23
- package/dist/tailwind/tailwind.spacing.d.ts +0 -21
- package/dist/tailwind/tailwind.spacing.js +0 -22
- package/dist/tailwind/tailwind.textColor.d.ts +0 -56
- package/dist/tailwind/tailwind.textColor.js +0 -39
- package/dist/tailwind/tailwind.typography.d.ts +0 -14
- package/dist/tailwind/tailwind.typography.js +0 -15
- package/dist/tailwind/textColor.d.ts +0 -219
- package/dist/tailwind/textColor.js +0 -651
- package/dist/tailwind/typography.d.ts +0 -219
- package/dist/tailwind/typography.js +0 -651
package/dist/_variables.scss
CHANGED
package/dist/atoms.cjs
CHANGED
@@ -4108,7 +4108,7 @@ var require_warningSign = __commonJS({
|
|
4108
4108
|
"src/icons/warningSign.js"(exports) {
|
4109
4109
|
"use strict";
|
4110
4110
|
var data = {
|
4111
|
-
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11 8.25v3.
|
4111
|
+
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11 8.25v3.667M11 16l.009-1.5M9.73 3.567 2.191 16.59c-.418.723-.627 1.084-.596 1.38a.917.917 0 00.372.646c.241.176.659.176 1.493.176h15.08c.834 0 1.251 0 1.492-.176a.917.917 0 00.373-.646c.03-.296-.178-.657-.596-1.38l-7.54-13.023c-.417-.72-.625-1.08-.897-1.2a.917.917 0 00-.745 0c-.272.12-.48.48-.897 1.2Z"/>',
|
4112
4112
|
"left": 0,
|
4113
4113
|
"top": 0,
|
4114
4114
|
"width": 22,
|
@@ -5750,8 +5750,8 @@ var Box = (_a) => {
|
|
5750
5750
|
const styles = useStyle({
|
5751
5751
|
padding,
|
5752
5752
|
display,
|
5753
|
-
color,
|
5754
|
-
borderColor: borderColor ? tailwind_theme_default.
|
5753
|
+
color: color ? tailwind_theme_default.textColor[color] : "",
|
5754
|
+
borderColor: borderColor ? tailwind_theme_default.borderColor[borderColor] : "",
|
5755
5755
|
borderRadius,
|
5756
5756
|
borderWidth,
|
5757
5757
|
justifyContent,
|
@@ -5793,11 +5793,7 @@ var FlexBox = (props) => /* @__PURE__ */ import_react4.default.createElement(Box
|
|
5793
5793
|
}, props));
|
5794
5794
|
FlexBox.displayName = "Box.Flex";
|
5795
5795
|
Box.Flex = FlexBox;
|
5796
|
-
var BorderBox = createSimpleComponent(
|
5797
|
-
Box,
|
5798
|
-
{ className: "rounded border", borderColor: "grey-10" },
|
5799
|
-
"BorderBox"
|
5800
|
-
);
|
5796
|
+
var BorderBox = createSimpleComponent(Box, { className: "rounded border", borderColor: "muted" }, "BorderBox");
|
5801
5797
|
|
5802
5798
|
// src/molecules/Transition/Transition.tsx
|
5803
5799
|
var import_react6 = __toESM(require("react"));
|
@@ -6419,6 +6415,7 @@ function useTooltipTriggerState(props = {}) {
|
|
6419
6415
|
}
|
6420
6416
|
};
|
6421
6417
|
(0, import_react16.useEffect)(() => {
|
6418
|
+
isUnmounted.current = false;
|
6422
6419
|
return () => {
|
6423
6420
|
isUnmounted.current = true;
|
6424
6421
|
if (closeTimeout.current) {
|
@@ -6595,7 +6592,7 @@ var COLOR_CLASSNAMES = {
|
|
6595
6592
|
"ghost": ghostButtonStyle,
|
6596
6593
|
"text": linkStyle,
|
6597
6594
|
"secondary-ghost": tw(
|
6598
|
-
"text-
|
6595
|
+
"text-default active:text-muted focus-visible:text-intense hover:text-intense disabled:text-inactive"
|
6599
6596
|
)
|
6600
6597
|
};
|
6601
6598
|
var LoadingSpinner = ({ size = "20px" }) => {
|
@@ -6905,7 +6902,7 @@ Alert.Title = (_a) => {
|
|
6905
6902
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
6906
6903
|
return /* @__PURE__ */ import_react20.default.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
6907
6904
|
variant: "default-strong",
|
6908
|
-
color: "
|
6905
|
+
color: "intense",
|
6909
6906
|
className: classNames(tw("col-start-2"), className)
|
6910
6907
|
}), children);
|
6911
6908
|
};
|
@@ -6913,7 +6910,7 @@ Alert.Description = (_a) => {
|
|
6913
6910
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
6914
6911
|
return /* @__PURE__ */ import_react20.default.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
6915
6912
|
variant: "small",
|
6916
|
-
color: "
|
6913
|
+
color: "default",
|
6917
6914
|
className: classNames(tw("col-start-2"), className)
|
6918
6915
|
}), children);
|
6919
6916
|
};
|
@@ -7081,7 +7078,7 @@ Banner2.Title = (_a) => {
|
|
7081
7078
|
var _b = _a, { children, className, layout } = _b, rest = __objRest(_b, ["children", "className", "layout"]);
|
7082
7079
|
return /* @__PURE__ */ import_react21.default.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
7083
7080
|
variant: "subheading",
|
7084
|
-
color: "
|
7081
|
+
color: "intense",
|
7085
7082
|
className: classNames(
|
7086
7083
|
className,
|
7087
7084
|
tw({
|
@@ -7354,7 +7351,13 @@ var Label = (props) => {
|
|
7354
7351
|
}), children);
|
7355
7352
|
};
|
7356
7353
|
var ColorHighlight = (_a) => {
|
7357
|
-
var _b = _a, {
|
7354
|
+
var _b = _a, {
|
7355
|
+
color,
|
7356
|
+
className
|
7357
|
+
} = _b, rest = __objRest(_b, [
|
7358
|
+
"color",
|
7359
|
+
"className"
|
7360
|
+
]);
|
7358
7361
|
return /* @__PURE__ */ import_react24.default.createElement(Box, __spreadProps(__spreadValues({}, rest), {
|
7359
7362
|
backgroundColor: color,
|
7360
7363
|
className: classNames(tw("h-1 w-full absolute top-0 left-0 right-0"), className)
|
@@ -7404,7 +7407,7 @@ Card.Content = Content;
|
|
7404
7407
|
Card.Actions = Actions;
|
7405
7408
|
Card.ImageContainer = ImageContainer;
|
7406
7409
|
Card.Image = Image;
|
7407
|
-
Card.
|
7410
|
+
Card.ColorHighlight = ColorHighlight;
|
7408
7411
|
var isCardTitleComponent = (c) => {
|
7409
7412
|
return import_react24.default.isValidElement(c) && c.type === Card.Title;
|
7410
7413
|
};
|
@@ -7535,7 +7538,7 @@ var RadioButton = import_react27.default.forwardRef(
|
|
7535
7538
|
var import_chevronDown3 = __toESM(require_chevronDown());
|
7536
7539
|
var import_chevronUp2 = __toESM(require_chevronUp());
|
7537
7540
|
var HeadContext = import_react28.default.createContext(null);
|
7538
|
-
var tableClassNames = tw("w-full relative typography-default border-spacing-0");
|
7541
|
+
var tableClassNames = tw("w-full relative typography-default border-spacing-0 border-separate");
|
7539
7542
|
var Table = (_a) => {
|
7540
7543
|
var _b = _a, { children, ariaLabel, className } = _b, rest = __objRest(_b, ["children", "ariaLabel", "className"]);
|
7541
7544
|
return /* @__PURE__ */ import_react28.default.createElement("table", __spreadProps(__spreadValues({}, rest), {
|
@@ -7583,25 +7586,29 @@ var getHeadCellClassNames = (sticky = true, stickyColumn) => {
|
|
7583
7586
|
})
|
7584
7587
|
) : common;
|
7585
7588
|
};
|
7586
|
-
var TableCell = (
|
7587
|
-
|
7588
|
-
|
7589
|
-
|
7590
|
-
|
7591
|
-
|
7592
|
-
|
7593
|
-
|
7594
|
-
|
7595
|
-
|
7596
|
-
|
7597
|
-
|
7598
|
-
|
7599
|
-
|
7600
|
-
|
7601
|
-
|
7602
|
-
|
7603
|
-
|
7604
|
-
|
7589
|
+
var TableCell = import_react28.default.forwardRef(
|
7590
|
+
(_a, ref) => {
|
7591
|
+
var _b = _a, { children, className, stickyColumn, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "stickyColumn", "align"]);
|
7592
|
+
const headContext = import_react28.default.useContext(HeadContext);
|
7593
|
+
return headContext ? /* @__PURE__ */ import_react28.default.createElement("th", __spreadProps(__spreadValues({}, rest), {
|
7594
|
+
ref,
|
7595
|
+
className: classNames(
|
7596
|
+
cellClassNames,
|
7597
|
+
getHeadCellClassNames(headContext.sticky, stickyColumn),
|
7598
|
+
getAlignClassNames(align),
|
7599
|
+
className
|
7600
|
+
)
|
7601
|
+
}), children) : /* @__PURE__ */ import_react28.default.createElement("td", __spreadProps(__spreadValues({}, rest), {
|
7602
|
+
ref,
|
7603
|
+
className: classNames(
|
7604
|
+
cellClassNames,
|
7605
|
+
getBodyCellClassNames(true, stickyColumn),
|
7606
|
+
getAlignClassNames(align),
|
7607
|
+
className
|
7608
|
+
)
|
7609
|
+
}), children);
|
7610
|
+
}
|
7611
|
+
);
|
7605
7612
|
var TableSelectCell = (_a) => {
|
7606
7613
|
var _b = _a, { ariaLabel } = _b, props = __objRest(_b, ["ariaLabel"]);
|
7607
7614
|
return /* @__PURE__ */ import_react28.default.createElement(Table.Cell, {
|
@@ -7616,28 +7623,31 @@ var getSortCellButtonClassNames = (align) => tw("group flex items-center gap-x-4
|
|
7616
7623
|
var getSortCellIconClassNames = (active) => {
|
7617
7624
|
return tw("text-[9px]", active ? "text-default" : "text-inactive");
|
7618
7625
|
};
|
7619
|
-
var TableSortCell = (
|
7620
|
-
|
7621
|
-
|
7622
|
-
|
7623
|
-
|
7624
|
-
|
7625
|
-
|
7626
|
-
|
7627
|
-
|
7628
|
-
|
7629
|
-
|
7630
|
-
|
7631
|
-
"
|
7632
|
-
|
7633
|
-
|
7634
|
-
|
7635
|
-
|
7636
|
-
|
7637
|
-
|
7638
|
-
|
7639
|
-
|
7640
|
-
|
7626
|
+
var TableSortCell = import_react28.default.forwardRef(
|
7627
|
+
(_a, ref) => {
|
7628
|
+
var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
|
7629
|
+
return /* @__PURE__ */ import_react28.default.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
|
7630
|
+
"aria-sort": direction,
|
7631
|
+
ref
|
7632
|
+
}), /* @__PURE__ */ import_react28.default.createElement("span", {
|
7633
|
+
className: getSortCellButtonClassNames(rest.align),
|
7634
|
+
role: "button",
|
7635
|
+
tabIndex: -1,
|
7636
|
+
onClick
|
7637
|
+
}, children, /* @__PURE__ */ import_react28.default.createElement("div", {
|
7638
|
+
"data-sort-icons": true,
|
7639
|
+
className: tw("flex flex-col", {
|
7640
|
+
"invisible group-hover:visible": direction === "none"
|
7641
|
+
})
|
7642
|
+
}, /* @__PURE__ */ import_react28.default.createElement(InlineIcon, {
|
7643
|
+
icon: import_chevronUp2.default,
|
7644
|
+
className: getSortCellIconClassNames(direction === "ascending")
|
7645
|
+
}), /* @__PURE__ */ import_react28.default.createElement(InlineIcon, {
|
7646
|
+
icon: import_chevronDown3.default,
|
7647
|
+
className: getSortCellIconClassNames(direction === "descending")
|
7648
|
+
}))));
|
7649
|
+
}
|
7650
|
+
);
|
7641
7651
|
var Caption = ({ children }) => /* @__PURE__ */ import_react28.default.createElement(Typography2.Caption, {
|
7642
7652
|
htmlTag: "caption"
|
7643
7653
|
}, children);
|
@@ -8033,7 +8043,7 @@ var Item2 = import_react32.default.forwardRef(
|
|
8033
8043
|
);
|
8034
8044
|
DropdownMenu.Item = Item2;
|
8035
8045
|
var Description = ({ disabled, children }) => /* @__PURE__ */ import_react32.default.createElement(Typography2.Caption, {
|
8036
|
-
color: disabled ? "
|
8046
|
+
color: disabled ? "inactive" : "muted"
|
8037
8047
|
}, children);
|
8038
8048
|
DropdownMenu.Description = Description;
|
8039
8049
|
var Separator = (_a) => {
|
@@ -8285,7 +8295,7 @@ Modal.Title = (_a) => {
|
|
8285
8295
|
return /* @__PURE__ */ import_react36.default.createElement(Typography, __spreadValues({
|
8286
8296
|
htmlTag: "h2",
|
8287
8297
|
variant: "subheading",
|
8288
|
-
color: "
|
8298
|
+
color: "intense",
|
8289
8299
|
className: classNames(
|
8290
8300
|
tw({
|
8291
8301
|
"text-ellipsis overflow-x-hidden whitespace-nowrap": kind === "drawer"
|
@@ -8298,7 +8308,7 @@ Modal.Subtitle = (_a) => {
|
|
8298
8308
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
8299
8309
|
return /* @__PURE__ */ import_react36.default.createElement(Typography, __spreadValues({
|
8300
8310
|
variant: "small",
|
8301
|
-
color: "
|
8311
|
+
color: "default"
|
8302
8312
|
}, rest), children);
|
8303
8313
|
};
|
8304
8314
|
Modal.TitleContainer = (_a) => {
|
@@ -8380,7 +8390,7 @@ var Item3 = (_a) => {
|
|
8380
8390
|
role: "menuitem",
|
8381
8391
|
className: classNames(
|
8382
8392
|
tw("py-3 px-6 hover:bg-default cursor-pointer flex gap-4 items-center typography-small focusable", {
|
8383
|
-
"text-
|
8393
|
+
"text-default": !active,
|
8384
8394
|
"text-primary-intense": !!active
|
8385
8395
|
}),
|
8386
8396
|
className
|
@@ -8416,7 +8426,7 @@ PageHeader.TitleContainer = (_a) => {
|
|
8416
8426
|
PageHeader.Title = (_a) => {
|
8417
8427
|
var _b = _a, { isSubHeader = false, children } = _b, rest = __objRest(_b, ["isSubHeader", "children"]);
|
8418
8428
|
return /* @__PURE__ */ import_react38.default.createElement(Typography2, __spreadProps(__spreadValues({}, rest), {
|
8419
|
-
color: "
|
8429
|
+
color: "intense",
|
8420
8430
|
variant: isSubHeader ? "subheading" : "heading",
|
8421
8431
|
htmlTag: isSubHeader ? "h2" : "h1"
|
8422
8432
|
}), children);
|
@@ -8424,7 +8434,7 @@ PageHeader.Title = (_a) => {
|
|
8424
8434
|
PageHeader.Subtitle = (_a) => {
|
8425
8435
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
8426
8436
|
return /* @__PURE__ */ import_react38.default.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
|
8427
|
-
color: "
|
8437
|
+
color: "default"
|
8428
8438
|
}), children);
|
8429
8439
|
};
|
8430
8440
|
PageHeader.Chips = (_a) => {
|
@@ -8590,14 +8600,14 @@ Section2.Title = (_a) => {
|
|
8590
8600
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
8591
8601
|
return /* @__PURE__ */ import_react42.default.createElement(Typography2.Large, __spreadProps(__spreadValues({}, rest), {
|
8592
8602
|
htmlTag: "h2",
|
8593
|
-
color: "
|
8603
|
+
color: "intense",
|
8594
8604
|
className: "flex gap-3 items-center"
|
8595
8605
|
}), children);
|
8596
8606
|
};
|
8597
8607
|
Section2.Subtitle = (_a) => {
|
8598
8608
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
8599
8609
|
return /* @__PURE__ */ import_react42.default.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
|
8600
|
-
color: "
|
8610
|
+
color: "default"
|
8601
8611
|
}), children);
|
8602
8612
|
};
|
8603
8613
|
Section2.Actions = (_a) => {
|
@@ -8612,7 +8622,7 @@ Section2.Body = (_a) => {
|
|
8612
8622
|
className: classNames(tw("p-6"), className)
|
8613
8623
|
}), /* @__PURE__ */ import_react42.default.createElement(Typography, {
|
8614
8624
|
htmlTag: "div",
|
8615
|
-
color: "
|
8625
|
+
color: "default"
|
8616
8626
|
}, children));
|
8617
8627
|
};
|
8618
8628
|
|
@@ -8839,8 +8849,8 @@ var Step = (_a) => {
|
|
8839
8849
|
}));
|
8840
8850
|
};
|
8841
8851
|
var getClassNames = (state) => tw("h-[32px] w-[32px] border-2", {
|
8842
|
-
"border-
|
8843
|
-
"border-default
|
8852
|
+
"border-intense": state === "active",
|
8853
|
+
"border-default": state === "inactive",
|
8844
8854
|
"text-white bg-success-default border-success-intense": state === "completed"
|
8845
8855
|
});
|
8846
8856
|
var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
|
package/dist/atoms.mjs
CHANGED
@@ -4102,7 +4102,7 @@ var require_warningSign = __commonJS({
|
|
4102
4102
|
"src/icons/warningSign.js"(exports) {
|
4103
4103
|
"use strict";
|
4104
4104
|
var data = {
|
4105
|
-
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11 8.25v3.
|
4105
|
+
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11 8.25v3.667M11 16l.009-1.5M9.73 3.567 2.191 16.59c-.418.723-.627 1.084-.596 1.38a.917.917 0 00.372.646c.241.176.659.176 1.493.176h15.08c.834 0 1.251 0 1.492-.176a.917.917 0 00.373-.646c.03-.296-.178-.657-.596-1.38l-7.54-13.023c-.417-.72-.625-1.08-.897-1.2a.917.917 0 00-.745 0c-.272.12-.48.48-.897 1.2Z"/>',
|
4106
4106
|
"left": 0,
|
4107
4107
|
"top": 0,
|
4108
4108
|
"width": 22,
|
@@ -5700,8 +5700,8 @@ var Box = (_a) => {
|
|
5700
5700
|
const styles = useStyle({
|
5701
5701
|
padding,
|
5702
5702
|
display,
|
5703
|
-
color,
|
5704
|
-
borderColor: borderColor ? tailwind_theme_default.
|
5703
|
+
color: color ? tailwind_theme_default.textColor[color] : "",
|
5704
|
+
borderColor: borderColor ? tailwind_theme_default.borderColor[borderColor] : "",
|
5705
5705
|
borderRadius,
|
5706
5706
|
borderWidth,
|
5707
5707
|
justifyContent,
|
@@ -5743,11 +5743,7 @@ var FlexBox = (props) => /* @__PURE__ */ React3.createElement(Box, __spreadValue
|
|
5743
5743
|
}, props));
|
5744
5744
|
FlexBox.displayName = "Box.Flex";
|
5745
5745
|
Box.Flex = FlexBox;
|
5746
|
-
var BorderBox = createSimpleComponent(
|
5747
|
-
Box,
|
5748
|
-
{ className: "rounded border", borderColor: "grey-10" },
|
5749
|
-
"BorderBox"
|
5750
|
-
);
|
5746
|
+
var BorderBox = createSimpleComponent(Box, { className: "rounded border", borderColor: "muted" }, "BorderBox");
|
5751
5747
|
|
5752
5748
|
// src/molecules/Transition/Transition.tsx
|
5753
5749
|
import React5, { useMemo } from "react";
|
@@ -6372,6 +6368,7 @@ function useTooltipTriggerState(props = {}) {
|
|
6372
6368
|
}
|
6373
6369
|
};
|
6374
6370
|
useEffect3(() => {
|
6371
|
+
isUnmounted.current = false;
|
6375
6372
|
return () => {
|
6376
6373
|
isUnmounted.current = true;
|
6377
6374
|
if (closeTimeout.current) {
|
@@ -6548,7 +6545,7 @@ var COLOR_CLASSNAMES = {
|
|
6548
6545
|
"ghost": ghostButtonStyle,
|
6549
6546
|
"text": linkStyle,
|
6550
6547
|
"secondary-ghost": tw(
|
6551
|
-
"text-
|
6548
|
+
"text-default active:text-muted focus-visible:text-intense hover:text-intense disabled:text-inactive"
|
6552
6549
|
)
|
6553
6550
|
};
|
6554
6551
|
var LoadingSpinner = ({ size = "20px" }) => {
|
@@ -6858,7 +6855,7 @@ Alert.Title = (_a) => {
|
|
6858
6855
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
6859
6856
|
return /* @__PURE__ */ React16.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
6860
6857
|
variant: "default-strong",
|
6861
|
-
color: "
|
6858
|
+
color: "intense",
|
6862
6859
|
className: classNames(tw("col-start-2"), className)
|
6863
6860
|
}), children);
|
6864
6861
|
};
|
@@ -6866,7 +6863,7 @@ Alert.Description = (_a) => {
|
|
6866
6863
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
6867
6864
|
return /* @__PURE__ */ React16.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
6868
6865
|
variant: "small",
|
6869
|
-
color: "
|
6866
|
+
color: "default",
|
6870
6867
|
className: classNames(tw("col-start-2"), className)
|
6871
6868
|
}), children);
|
6872
6869
|
};
|
@@ -7034,7 +7031,7 @@ Banner2.Title = (_a) => {
|
|
7034
7031
|
var _b = _a, { children, className, layout } = _b, rest = __objRest(_b, ["children", "className", "layout"]);
|
7035
7032
|
return /* @__PURE__ */ React17.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
7036
7033
|
variant: "subheading",
|
7037
|
-
color: "
|
7034
|
+
color: "intense",
|
7038
7035
|
className: classNames(
|
7039
7036
|
className,
|
7040
7037
|
tw({
|
@@ -7307,7 +7304,13 @@ var Label = (props) => {
|
|
7307
7304
|
}), children);
|
7308
7305
|
};
|
7309
7306
|
var ColorHighlight = (_a) => {
|
7310
|
-
var _b = _a, {
|
7307
|
+
var _b = _a, {
|
7308
|
+
color,
|
7309
|
+
className
|
7310
|
+
} = _b, rest = __objRest(_b, [
|
7311
|
+
"color",
|
7312
|
+
"className"
|
7313
|
+
]);
|
7311
7314
|
return /* @__PURE__ */ React20.createElement(Box, __spreadProps(__spreadValues({}, rest), {
|
7312
7315
|
backgroundColor: color,
|
7313
7316
|
className: classNames(tw("h-1 w-full absolute top-0 left-0 right-0"), className)
|
@@ -7357,7 +7360,7 @@ Card.Content = Content;
|
|
7357
7360
|
Card.Actions = Actions;
|
7358
7361
|
Card.ImageContainer = ImageContainer;
|
7359
7362
|
Card.Image = Image;
|
7360
|
-
Card.
|
7363
|
+
Card.ColorHighlight = ColorHighlight;
|
7361
7364
|
var isCardTitleComponent = (c) => {
|
7362
7365
|
return React20.isValidElement(c) && c.type === Card.Title;
|
7363
7366
|
};
|
@@ -7488,7 +7491,7 @@ var RadioButton = React23.forwardRef(
|
|
7488
7491
|
var import_chevronDown3 = __toESM(require_chevronDown());
|
7489
7492
|
var import_chevronUp2 = __toESM(require_chevronUp());
|
7490
7493
|
var HeadContext = React24.createContext(null);
|
7491
|
-
var tableClassNames = tw("w-full relative typography-default border-spacing-0");
|
7494
|
+
var tableClassNames = tw("w-full relative typography-default border-spacing-0 border-separate");
|
7492
7495
|
var Table = (_a) => {
|
7493
7496
|
var _b = _a, { children, ariaLabel, className } = _b, rest = __objRest(_b, ["children", "ariaLabel", "className"]);
|
7494
7497
|
return /* @__PURE__ */ React24.createElement("table", __spreadProps(__spreadValues({}, rest), {
|
@@ -7536,25 +7539,29 @@ var getHeadCellClassNames = (sticky = true, stickyColumn) => {
|
|
7536
7539
|
})
|
7537
7540
|
) : common;
|
7538
7541
|
};
|
7539
|
-
var TableCell = (
|
7540
|
-
|
7541
|
-
|
7542
|
-
|
7543
|
-
|
7544
|
-
|
7545
|
-
|
7546
|
-
|
7547
|
-
|
7548
|
-
|
7549
|
-
|
7550
|
-
|
7551
|
-
|
7552
|
-
|
7553
|
-
|
7554
|
-
|
7555
|
-
|
7556
|
-
|
7557
|
-
|
7542
|
+
var TableCell = React24.forwardRef(
|
7543
|
+
(_a, ref) => {
|
7544
|
+
var _b = _a, { children, className, stickyColumn, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "stickyColumn", "align"]);
|
7545
|
+
const headContext = React24.useContext(HeadContext);
|
7546
|
+
return headContext ? /* @__PURE__ */ React24.createElement("th", __spreadProps(__spreadValues({}, rest), {
|
7547
|
+
ref,
|
7548
|
+
className: classNames(
|
7549
|
+
cellClassNames,
|
7550
|
+
getHeadCellClassNames(headContext.sticky, stickyColumn),
|
7551
|
+
getAlignClassNames(align),
|
7552
|
+
className
|
7553
|
+
)
|
7554
|
+
}), children) : /* @__PURE__ */ React24.createElement("td", __spreadProps(__spreadValues({}, rest), {
|
7555
|
+
ref,
|
7556
|
+
className: classNames(
|
7557
|
+
cellClassNames,
|
7558
|
+
getBodyCellClassNames(true, stickyColumn),
|
7559
|
+
getAlignClassNames(align),
|
7560
|
+
className
|
7561
|
+
)
|
7562
|
+
}), children);
|
7563
|
+
}
|
7564
|
+
);
|
7558
7565
|
var TableSelectCell = (_a) => {
|
7559
7566
|
var _b = _a, { ariaLabel } = _b, props = __objRest(_b, ["ariaLabel"]);
|
7560
7567
|
return /* @__PURE__ */ React24.createElement(Table.Cell, {
|
@@ -7569,28 +7576,31 @@ var getSortCellButtonClassNames = (align) => tw("group flex items-center gap-x-4
|
|
7569
7576
|
var getSortCellIconClassNames = (active) => {
|
7570
7577
|
return tw("text-[9px]", active ? "text-default" : "text-inactive");
|
7571
7578
|
};
|
7572
|
-
var TableSortCell = (
|
7573
|
-
|
7574
|
-
|
7575
|
-
|
7576
|
-
|
7577
|
-
|
7578
|
-
|
7579
|
-
|
7580
|
-
|
7581
|
-
|
7582
|
-
|
7583
|
-
|
7584
|
-
"
|
7585
|
-
|
7586
|
-
|
7587
|
-
|
7588
|
-
|
7589
|
-
|
7590
|
-
|
7591
|
-
|
7592
|
-
|
7593
|
-
|
7579
|
+
var TableSortCell = React24.forwardRef(
|
7580
|
+
(_a, ref) => {
|
7581
|
+
var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
|
7582
|
+
return /* @__PURE__ */ React24.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
|
7583
|
+
"aria-sort": direction,
|
7584
|
+
ref
|
7585
|
+
}), /* @__PURE__ */ React24.createElement("span", {
|
7586
|
+
className: getSortCellButtonClassNames(rest.align),
|
7587
|
+
role: "button",
|
7588
|
+
tabIndex: -1,
|
7589
|
+
onClick
|
7590
|
+
}, children, /* @__PURE__ */ React24.createElement("div", {
|
7591
|
+
"data-sort-icons": true,
|
7592
|
+
className: tw("flex flex-col", {
|
7593
|
+
"invisible group-hover:visible": direction === "none"
|
7594
|
+
})
|
7595
|
+
}, /* @__PURE__ */ React24.createElement(InlineIcon, {
|
7596
|
+
icon: import_chevronUp2.default,
|
7597
|
+
className: getSortCellIconClassNames(direction === "ascending")
|
7598
|
+
}), /* @__PURE__ */ React24.createElement(InlineIcon, {
|
7599
|
+
icon: import_chevronDown3.default,
|
7600
|
+
className: getSortCellIconClassNames(direction === "descending")
|
7601
|
+
}))));
|
7602
|
+
}
|
7603
|
+
);
|
7594
7604
|
var Caption = ({ children }) => /* @__PURE__ */ React24.createElement(Typography2.Caption, {
|
7595
7605
|
htmlTag: "caption"
|
7596
7606
|
}, children);
|
@@ -7986,7 +7996,7 @@ var Item2 = React28.forwardRef(
|
|
7986
7996
|
);
|
7987
7997
|
DropdownMenu.Item = Item2;
|
7988
7998
|
var Description = ({ disabled, children }) => /* @__PURE__ */ React28.createElement(Typography2.Caption, {
|
7989
|
-
color: disabled ? "
|
7999
|
+
color: disabled ? "inactive" : "muted"
|
7990
8000
|
}, children);
|
7991
8001
|
DropdownMenu.Description = Description;
|
7992
8002
|
var Separator = (_a) => {
|
@@ -8238,7 +8248,7 @@ Modal.Title = (_a) => {
|
|
8238
8248
|
return /* @__PURE__ */ React32.createElement(Typography, __spreadValues({
|
8239
8249
|
htmlTag: "h2",
|
8240
8250
|
variant: "subheading",
|
8241
|
-
color: "
|
8251
|
+
color: "intense",
|
8242
8252
|
className: classNames(
|
8243
8253
|
tw({
|
8244
8254
|
"text-ellipsis overflow-x-hidden whitespace-nowrap": kind === "drawer"
|
@@ -8251,7 +8261,7 @@ Modal.Subtitle = (_a) => {
|
|
8251
8261
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
8252
8262
|
return /* @__PURE__ */ React32.createElement(Typography, __spreadValues({
|
8253
8263
|
variant: "small",
|
8254
|
-
color: "
|
8264
|
+
color: "default"
|
8255
8265
|
}, rest), children);
|
8256
8266
|
};
|
8257
8267
|
Modal.TitleContainer = (_a) => {
|
@@ -8333,7 +8343,7 @@ var Item3 = (_a) => {
|
|
8333
8343
|
role: "menuitem",
|
8334
8344
|
className: classNames(
|
8335
8345
|
tw("py-3 px-6 hover:bg-default cursor-pointer flex gap-4 items-center typography-small focusable", {
|
8336
|
-
"text-
|
8346
|
+
"text-default": !active,
|
8337
8347
|
"text-primary-intense": !!active
|
8338
8348
|
}),
|
8339
8349
|
className
|
@@ -8369,7 +8379,7 @@ PageHeader.TitleContainer = (_a) => {
|
|
8369
8379
|
PageHeader.Title = (_a) => {
|
8370
8380
|
var _b = _a, { isSubHeader = false, children } = _b, rest = __objRest(_b, ["isSubHeader", "children"]);
|
8371
8381
|
return /* @__PURE__ */ React34.createElement(Typography2, __spreadProps(__spreadValues({}, rest), {
|
8372
|
-
color: "
|
8382
|
+
color: "intense",
|
8373
8383
|
variant: isSubHeader ? "subheading" : "heading",
|
8374
8384
|
htmlTag: isSubHeader ? "h2" : "h1"
|
8375
8385
|
}), children);
|
@@ -8377,7 +8387,7 @@ PageHeader.Title = (_a) => {
|
|
8377
8387
|
PageHeader.Subtitle = (_a) => {
|
8378
8388
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
8379
8389
|
return /* @__PURE__ */ React34.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
|
8380
|
-
color: "
|
8390
|
+
color: "default"
|
8381
8391
|
}), children);
|
8382
8392
|
};
|
8383
8393
|
PageHeader.Chips = (_a) => {
|
@@ -8543,14 +8553,14 @@ Section2.Title = (_a) => {
|
|
8543
8553
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
8544
8554
|
return /* @__PURE__ */ React38.createElement(Typography2.Large, __spreadProps(__spreadValues({}, rest), {
|
8545
8555
|
htmlTag: "h2",
|
8546
|
-
color: "
|
8556
|
+
color: "intense",
|
8547
8557
|
className: "flex gap-3 items-center"
|
8548
8558
|
}), children);
|
8549
8559
|
};
|
8550
8560
|
Section2.Subtitle = (_a) => {
|
8551
8561
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
8552
8562
|
return /* @__PURE__ */ React38.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
|
8553
|
-
color: "
|
8563
|
+
color: "default"
|
8554
8564
|
}), children);
|
8555
8565
|
};
|
8556
8566
|
Section2.Actions = (_a) => {
|
@@ -8565,7 +8575,7 @@ Section2.Body = (_a) => {
|
|
8565
8575
|
className: classNames(tw("p-6"), className)
|
8566
8576
|
}), /* @__PURE__ */ React38.createElement(Typography, {
|
8567
8577
|
htmlTag: "div",
|
8568
|
-
color: "
|
8578
|
+
color: "default"
|
8569
8579
|
}, children));
|
8570
8580
|
};
|
8571
8581
|
|
@@ -8792,8 +8802,8 @@ var Step = (_a) => {
|
|
8792
8802
|
}));
|
8793
8803
|
};
|
8794
8804
|
var getClassNames = (state) => tw("h-[32px] w-[32px] border-2", {
|
8795
|
-
"border-
|
8796
|
-
"border-default
|
8805
|
+
"border-intense": state === "active",
|
8806
|
+
"border-default": state === "inactive",
|
8797
8807
|
"text-white bg-success-default border-success-intense": state === "completed"
|
8798
8808
|
});
|
8799
8809
|
var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
|
package/dist/charts.cjs
CHANGED
@@ -2169,7 +2169,7 @@ Tooltip.defaultProps = Object.assign({}, import_recharts4.Tooltip.defaultProps,
|
|
2169
2169
|
isAnimationActive: false,
|
2170
2170
|
contentStyle,
|
2171
2171
|
itemStyle,
|
2172
|
-
cursor: { stroke: "var(--aquarium-
|
2172
|
+
cursor: { stroke: "var(--aquarium-border-color-intense)", strokeDasharray: "5" }
|
2173
2173
|
});
|
2174
2174
|
|
2175
2175
|
// src/charts/AreaChart/AreaChart.tsx
|
@@ -2425,7 +2425,7 @@ var ChartValue = (props) => {
|
|
2425
2425
|
"typography-large-heading text-intense text-center leading-tight absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2"
|
2426
2426
|
)
|
2427
2427
|
}, value, unit2, caption && /* @__PURE__ */ import_react9.default.createElement("span", {
|
2428
|
-
className: tw("block", "typography-small text-
|
2428
|
+
className: tw("block", "typography-small text-default")
|
2429
2429
|
}, caption));
|
2430
2430
|
};
|
2431
2431
|
|
package/dist/charts.mjs
CHANGED
@@ -2045,7 +2045,7 @@ Tooltip.defaultProps = Object.assign({}, _Tooltip.defaultProps, {
|
|
2045
2045
|
isAnimationActive: false,
|
2046
2046
|
contentStyle,
|
2047
2047
|
itemStyle,
|
2048
|
-
cursor: { stroke: "var(--aquarium-
|
2048
|
+
cursor: { stroke: "var(--aquarium-border-color-intense)", strokeDasharray: "5" }
|
2049
2049
|
});
|
2050
2050
|
|
2051
2051
|
// src/charts/AreaChart/AreaChart.tsx
|
@@ -2301,7 +2301,7 @@ var ChartValue = (props) => {
|
|
2301
2301
|
"typography-large-heading text-intense text-center leading-tight absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2"
|
2302
2302
|
)
|
2303
2303
|
}, value, unit2, caption && /* @__PURE__ */ React9.createElement("span", {
|
2304
|
-
className: tw("block", "typography-small text-
|
2304
|
+
className: tw("block", "typography-small text-default")
|
2305
2305
|
}, caption));
|
2306
2306
|
};
|
2307
2307
|
|