@aivenio/aquarium 1.68.0-rc1 → 1.68.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 +76 -67
- package/dist/atoms.mjs +76 -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 +4 -1
- package/dist/src/molecules/Box/Box.js +4 -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/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 +831 -694
- package/dist/system.mjs +820 -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"));
|
@@ -6595,7 +6591,7 @@ var COLOR_CLASSNAMES = {
|
|
6595
6591
|
"ghost": ghostButtonStyle,
|
6596
6592
|
"text": linkStyle,
|
6597
6593
|
"secondary-ghost": tw(
|
6598
|
-
"text-
|
6594
|
+
"text-default active:text-muted focus-visible:text-intense hover:text-intense disabled:text-inactive"
|
6599
6595
|
)
|
6600
6596
|
};
|
6601
6597
|
var LoadingSpinner = ({ size = "20px" }) => {
|
@@ -6905,7 +6901,7 @@ Alert.Title = (_a) => {
|
|
6905
6901
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
6906
6902
|
return /* @__PURE__ */ import_react20.default.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
6907
6903
|
variant: "default-strong",
|
6908
|
-
color: "
|
6904
|
+
color: "intense",
|
6909
6905
|
className: classNames(tw("col-start-2"), className)
|
6910
6906
|
}), children);
|
6911
6907
|
};
|
@@ -6913,7 +6909,7 @@ Alert.Description = (_a) => {
|
|
6913
6909
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
6914
6910
|
return /* @__PURE__ */ import_react20.default.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
6915
6911
|
variant: "small",
|
6916
|
-
color: "
|
6912
|
+
color: "default",
|
6917
6913
|
className: classNames(tw("col-start-2"), className)
|
6918
6914
|
}), children);
|
6919
6915
|
};
|
@@ -7081,7 +7077,7 @@ Banner2.Title = (_a) => {
|
|
7081
7077
|
var _b = _a, { children, className, layout } = _b, rest = __objRest(_b, ["children", "className", "layout"]);
|
7082
7078
|
return /* @__PURE__ */ import_react21.default.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
7083
7079
|
variant: "subheading",
|
7084
|
-
color: "
|
7080
|
+
color: "intense",
|
7085
7081
|
className: classNames(
|
7086
7082
|
className,
|
7087
7083
|
tw({
|
@@ -7354,7 +7350,13 @@ var Label = (props) => {
|
|
7354
7350
|
}), children);
|
7355
7351
|
};
|
7356
7352
|
var ColorHighlight = (_a) => {
|
7357
|
-
var _b = _a, {
|
7353
|
+
var _b = _a, {
|
7354
|
+
color,
|
7355
|
+
className
|
7356
|
+
} = _b, rest = __objRest(_b, [
|
7357
|
+
"color",
|
7358
|
+
"className"
|
7359
|
+
]);
|
7358
7360
|
return /* @__PURE__ */ import_react24.default.createElement(Box, __spreadProps(__spreadValues({}, rest), {
|
7359
7361
|
backgroundColor: color,
|
7360
7362
|
className: classNames(tw("h-1 w-full absolute top-0 left-0 right-0"), className)
|
@@ -7404,7 +7406,7 @@ Card.Content = Content;
|
|
7404
7406
|
Card.Actions = Actions;
|
7405
7407
|
Card.ImageContainer = ImageContainer;
|
7406
7408
|
Card.Image = Image;
|
7407
|
-
Card.
|
7409
|
+
Card.ColorHighlight = ColorHighlight;
|
7408
7410
|
var isCardTitleComponent = (c) => {
|
7409
7411
|
return import_react24.default.isValidElement(c) && c.type === Card.Title;
|
7410
7412
|
};
|
@@ -7535,7 +7537,7 @@ var RadioButton = import_react27.default.forwardRef(
|
|
7535
7537
|
var import_chevronDown3 = __toESM(require_chevronDown());
|
7536
7538
|
var import_chevronUp2 = __toESM(require_chevronUp());
|
7537
7539
|
var HeadContext = import_react28.default.createContext(null);
|
7538
|
-
var tableClassNames = tw("w-full relative typography-default border-spacing-0");
|
7540
|
+
var tableClassNames = tw("w-full relative typography-default border-spacing-0 border-separate");
|
7539
7541
|
var Table = (_a) => {
|
7540
7542
|
var _b = _a, { children, ariaLabel, className } = _b, rest = __objRest(_b, ["children", "ariaLabel", "className"]);
|
7541
7543
|
return /* @__PURE__ */ import_react28.default.createElement("table", __spreadProps(__spreadValues({}, rest), {
|
@@ -7583,25 +7585,29 @@ var getHeadCellClassNames = (sticky = true, stickyColumn) => {
|
|
7583
7585
|
})
|
7584
7586
|
) : common;
|
7585
7587
|
};
|
7586
|
-
var TableCell = (
|
7587
|
-
|
7588
|
-
|
7589
|
-
|
7590
|
-
|
7591
|
-
|
7592
|
-
|
7593
|
-
|
7594
|
-
|
7595
|
-
|
7596
|
-
|
7597
|
-
|
7598
|
-
|
7599
|
-
|
7600
|
-
|
7601
|
-
|
7602
|
-
|
7603
|
-
|
7604
|
-
|
7588
|
+
var TableCell = import_react28.default.forwardRef(
|
7589
|
+
(_a, ref) => {
|
7590
|
+
var _b = _a, { children, className, stickyColumn, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "stickyColumn", "align"]);
|
7591
|
+
const headContext = import_react28.default.useContext(HeadContext);
|
7592
|
+
return headContext ? /* @__PURE__ */ import_react28.default.createElement("th", __spreadProps(__spreadValues({}, rest), {
|
7593
|
+
ref,
|
7594
|
+
className: classNames(
|
7595
|
+
cellClassNames,
|
7596
|
+
getHeadCellClassNames(headContext.sticky, stickyColumn),
|
7597
|
+
getAlignClassNames(align),
|
7598
|
+
className
|
7599
|
+
)
|
7600
|
+
}), children) : /* @__PURE__ */ import_react28.default.createElement("td", __spreadProps(__spreadValues({}, rest), {
|
7601
|
+
ref,
|
7602
|
+
className: classNames(
|
7603
|
+
cellClassNames,
|
7604
|
+
getBodyCellClassNames(true, stickyColumn),
|
7605
|
+
getAlignClassNames(align),
|
7606
|
+
className
|
7607
|
+
)
|
7608
|
+
}), children);
|
7609
|
+
}
|
7610
|
+
);
|
7605
7611
|
var TableSelectCell = (_a) => {
|
7606
7612
|
var _b = _a, { ariaLabel } = _b, props = __objRest(_b, ["ariaLabel"]);
|
7607
7613
|
return /* @__PURE__ */ import_react28.default.createElement(Table.Cell, {
|
@@ -7616,28 +7622,31 @@ var getSortCellButtonClassNames = (align) => tw("group flex items-center gap-x-4
|
|
7616
7622
|
var getSortCellIconClassNames = (active) => {
|
7617
7623
|
return tw("text-[9px]", active ? "text-default" : "text-inactive");
|
7618
7624
|
};
|
7619
|
-
var TableSortCell = (
|
7620
|
-
|
7621
|
-
|
7622
|
-
|
7623
|
-
|
7624
|
-
|
7625
|
-
|
7626
|
-
|
7627
|
-
|
7628
|
-
|
7629
|
-
|
7630
|
-
|
7631
|
-
"
|
7632
|
-
|
7633
|
-
|
7634
|
-
|
7635
|
-
|
7636
|
-
|
7637
|
-
|
7638
|
-
|
7639
|
-
|
7640
|
-
|
7625
|
+
var TableSortCell = import_react28.default.forwardRef(
|
7626
|
+
(_a, ref) => {
|
7627
|
+
var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
|
7628
|
+
return /* @__PURE__ */ import_react28.default.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
|
7629
|
+
"aria-sort": direction,
|
7630
|
+
ref
|
7631
|
+
}), /* @__PURE__ */ import_react28.default.createElement("span", {
|
7632
|
+
className: getSortCellButtonClassNames(rest.align),
|
7633
|
+
role: "button",
|
7634
|
+
tabIndex: -1,
|
7635
|
+
onClick
|
7636
|
+
}, children, /* @__PURE__ */ import_react28.default.createElement("div", {
|
7637
|
+
"data-sort-icons": true,
|
7638
|
+
className: tw("flex flex-col", {
|
7639
|
+
"invisible group-hover:visible": direction === "none"
|
7640
|
+
})
|
7641
|
+
}, /* @__PURE__ */ import_react28.default.createElement(InlineIcon, {
|
7642
|
+
icon: import_chevronUp2.default,
|
7643
|
+
className: getSortCellIconClassNames(direction === "ascending")
|
7644
|
+
}), /* @__PURE__ */ import_react28.default.createElement(InlineIcon, {
|
7645
|
+
icon: import_chevronDown3.default,
|
7646
|
+
className: getSortCellIconClassNames(direction === "descending")
|
7647
|
+
}))));
|
7648
|
+
}
|
7649
|
+
);
|
7641
7650
|
var Caption = ({ children }) => /* @__PURE__ */ import_react28.default.createElement(Typography2.Caption, {
|
7642
7651
|
htmlTag: "caption"
|
7643
7652
|
}, children);
|
@@ -8033,7 +8042,7 @@ var Item2 = import_react32.default.forwardRef(
|
|
8033
8042
|
);
|
8034
8043
|
DropdownMenu.Item = Item2;
|
8035
8044
|
var Description = ({ disabled, children }) => /* @__PURE__ */ import_react32.default.createElement(Typography2.Caption, {
|
8036
|
-
color: disabled ? "
|
8045
|
+
color: disabled ? "inactive" : "muted"
|
8037
8046
|
}, children);
|
8038
8047
|
DropdownMenu.Description = Description;
|
8039
8048
|
var Separator = (_a) => {
|
@@ -8285,7 +8294,7 @@ Modal.Title = (_a) => {
|
|
8285
8294
|
return /* @__PURE__ */ import_react36.default.createElement(Typography, __spreadValues({
|
8286
8295
|
htmlTag: "h2",
|
8287
8296
|
variant: "subheading",
|
8288
|
-
color: "
|
8297
|
+
color: "intense",
|
8289
8298
|
className: classNames(
|
8290
8299
|
tw({
|
8291
8300
|
"text-ellipsis overflow-x-hidden whitespace-nowrap": kind === "drawer"
|
@@ -8298,7 +8307,7 @@ Modal.Subtitle = (_a) => {
|
|
8298
8307
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
8299
8308
|
return /* @__PURE__ */ import_react36.default.createElement(Typography, __spreadValues({
|
8300
8309
|
variant: "small",
|
8301
|
-
color: "
|
8310
|
+
color: "default"
|
8302
8311
|
}, rest), children);
|
8303
8312
|
};
|
8304
8313
|
Modal.TitleContainer = (_a) => {
|
@@ -8380,7 +8389,7 @@ var Item3 = (_a) => {
|
|
8380
8389
|
role: "menuitem",
|
8381
8390
|
className: classNames(
|
8382
8391
|
tw("py-3 px-6 hover:bg-default cursor-pointer flex gap-4 items-center typography-small focusable", {
|
8383
|
-
"text-
|
8392
|
+
"text-default": !active,
|
8384
8393
|
"text-primary-intense": !!active
|
8385
8394
|
}),
|
8386
8395
|
className
|
@@ -8416,7 +8425,7 @@ PageHeader.TitleContainer = (_a) => {
|
|
8416
8425
|
PageHeader.Title = (_a) => {
|
8417
8426
|
var _b = _a, { isSubHeader = false, children } = _b, rest = __objRest(_b, ["isSubHeader", "children"]);
|
8418
8427
|
return /* @__PURE__ */ import_react38.default.createElement(Typography2, __spreadProps(__spreadValues({}, rest), {
|
8419
|
-
color: "
|
8428
|
+
color: "intense",
|
8420
8429
|
variant: isSubHeader ? "subheading" : "heading",
|
8421
8430
|
htmlTag: isSubHeader ? "h2" : "h1"
|
8422
8431
|
}), children);
|
@@ -8424,7 +8433,7 @@ PageHeader.Title = (_a) => {
|
|
8424
8433
|
PageHeader.Subtitle = (_a) => {
|
8425
8434
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
8426
8435
|
return /* @__PURE__ */ import_react38.default.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
|
8427
|
-
color: "
|
8436
|
+
color: "default"
|
8428
8437
|
}), children);
|
8429
8438
|
};
|
8430
8439
|
PageHeader.Chips = (_a) => {
|
@@ -8590,14 +8599,14 @@ Section2.Title = (_a) => {
|
|
8590
8599
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
8591
8600
|
return /* @__PURE__ */ import_react42.default.createElement(Typography2.Large, __spreadProps(__spreadValues({}, rest), {
|
8592
8601
|
htmlTag: "h2",
|
8593
|
-
color: "
|
8602
|
+
color: "intense",
|
8594
8603
|
className: "flex gap-3 items-center"
|
8595
8604
|
}), children);
|
8596
8605
|
};
|
8597
8606
|
Section2.Subtitle = (_a) => {
|
8598
8607
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
8599
8608
|
return /* @__PURE__ */ import_react42.default.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
|
8600
|
-
color: "
|
8609
|
+
color: "default"
|
8601
8610
|
}), children);
|
8602
8611
|
};
|
8603
8612
|
Section2.Actions = (_a) => {
|
@@ -8612,7 +8621,7 @@ Section2.Body = (_a) => {
|
|
8612
8621
|
className: classNames(tw("p-6"), className)
|
8613
8622
|
}), /* @__PURE__ */ import_react42.default.createElement(Typography, {
|
8614
8623
|
htmlTag: "div",
|
8615
|
-
color: "
|
8624
|
+
color: "default"
|
8616
8625
|
}, children));
|
8617
8626
|
};
|
8618
8627
|
|
@@ -8839,8 +8848,8 @@ var Step = (_a) => {
|
|
8839
8848
|
}));
|
8840
8849
|
};
|
8841
8850
|
var getClassNames = (state) => tw("h-[32px] w-[32px] border-2", {
|
8842
|
-
"border-
|
8843
|
-
"border-default
|
8851
|
+
"border-intense": state === "active",
|
8852
|
+
"border-default": state === "inactive",
|
8844
8853
|
"text-white bg-success-default border-success-intense": state === "completed"
|
8845
8854
|
});
|
8846
8855
|
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";
|
@@ -6548,7 +6544,7 @@ var COLOR_CLASSNAMES = {
|
|
6548
6544
|
"ghost": ghostButtonStyle,
|
6549
6545
|
"text": linkStyle,
|
6550
6546
|
"secondary-ghost": tw(
|
6551
|
-
"text-
|
6547
|
+
"text-default active:text-muted focus-visible:text-intense hover:text-intense disabled:text-inactive"
|
6552
6548
|
)
|
6553
6549
|
};
|
6554
6550
|
var LoadingSpinner = ({ size = "20px" }) => {
|
@@ -6858,7 +6854,7 @@ Alert.Title = (_a) => {
|
|
6858
6854
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
6859
6855
|
return /* @__PURE__ */ React16.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
6860
6856
|
variant: "default-strong",
|
6861
|
-
color: "
|
6857
|
+
color: "intense",
|
6862
6858
|
className: classNames(tw("col-start-2"), className)
|
6863
6859
|
}), children);
|
6864
6860
|
};
|
@@ -6866,7 +6862,7 @@ Alert.Description = (_a) => {
|
|
6866
6862
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
6867
6863
|
return /* @__PURE__ */ React16.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
6868
6864
|
variant: "small",
|
6869
|
-
color: "
|
6865
|
+
color: "default",
|
6870
6866
|
className: classNames(tw("col-start-2"), className)
|
6871
6867
|
}), children);
|
6872
6868
|
};
|
@@ -7034,7 +7030,7 @@ Banner2.Title = (_a) => {
|
|
7034
7030
|
var _b = _a, { children, className, layout } = _b, rest = __objRest(_b, ["children", "className", "layout"]);
|
7035
7031
|
return /* @__PURE__ */ React17.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
7036
7032
|
variant: "subheading",
|
7037
|
-
color: "
|
7033
|
+
color: "intense",
|
7038
7034
|
className: classNames(
|
7039
7035
|
className,
|
7040
7036
|
tw({
|
@@ -7307,7 +7303,13 @@ var Label = (props) => {
|
|
7307
7303
|
}), children);
|
7308
7304
|
};
|
7309
7305
|
var ColorHighlight = (_a) => {
|
7310
|
-
var _b = _a, {
|
7306
|
+
var _b = _a, {
|
7307
|
+
color,
|
7308
|
+
className
|
7309
|
+
} = _b, rest = __objRest(_b, [
|
7310
|
+
"color",
|
7311
|
+
"className"
|
7312
|
+
]);
|
7311
7313
|
return /* @__PURE__ */ React20.createElement(Box, __spreadProps(__spreadValues({}, rest), {
|
7312
7314
|
backgroundColor: color,
|
7313
7315
|
className: classNames(tw("h-1 w-full absolute top-0 left-0 right-0"), className)
|
@@ -7357,7 +7359,7 @@ Card.Content = Content;
|
|
7357
7359
|
Card.Actions = Actions;
|
7358
7360
|
Card.ImageContainer = ImageContainer;
|
7359
7361
|
Card.Image = Image;
|
7360
|
-
Card.
|
7362
|
+
Card.ColorHighlight = ColorHighlight;
|
7361
7363
|
var isCardTitleComponent = (c) => {
|
7362
7364
|
return React20.isValidElement(c) && c.type === Card.Title;
|
7363
7365
|
};
|
@@ -7488,7 +7490,7 @@ var RadioButton = React23.forwardRef(
|
|
7488
7490
|
var import_chevronDown3 = __toESM(require_chevronDown());
|
7489
7491
|
var import_chevronUp2 = __toESM(require_chevronUp());
|
7490
7492
|
var HeadContext = React24.createContext(null);
|
7491
|
-
var tableClassNames = tw("w-full relative typography-default border-spacing-0");
|
7493
|
+
var tableClassNames = tw("w-full relative typography-default border-spacing-0 border-separate");
|
7492
7494
|
var Table = (_a) => {
|
7493
7495
|
var _b = _a, { children, ariaLabel, className } = _b, rest = __objRest(_b, ["children", "ariaLabel", "className"]);
|
7494
7496
|
return /* @__PURE__ */ React24.createElement("table", __spreadProps(__spreadValues({}, rest), {
|
@@ -7536,25 +7538,29 @@ var getHeadCellClassNames = (sticky = true, stickyColumn) => {
|
|
7536
7538
|
})
|
7537
7539
|
) : common;
|
7538
7540
|
};
|
7539
|
-
var TableCell = (
|
7540
|
-
|
7541
|
-
|
7542
|
-
|
7543
|
-
|
7544
|
-
|
7545
|
-
|
7546
|
-
|
7547
|
-
|
7548
|
-
|
7549
|
-
|
7550
|
-
|
7551
|
-
|
7552
|
-
|
7553
|
-
|
7554
|
-
|
7555
|
-
|
7556
|
-
|
7557
|
-
|
7541
|
+
var TableCell = React24.forwardRef(
|
7542
|
+
(_a, ref) => {
|
7543
|
+
var _b = _a, { children, className, stickyColumn, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "stickyColumn", "align"]);
|
7544
|
+
const headContext = React24.useContext(HeadContext);
|
7545
|
+
return headContext ? /* @__PURE__ */ React24.createElement("th", __spreadProps(__spreadValues({}, rest), {
|
7546
|
+
ref,
|
7547
|
+
className: classNames(
|
7548
|
+
cellClassNames,
|
7549
|
+
getHeadCellClassNames(headContext.sticky, stickyColumn),
|
7550
|
+
getAlignClassNames(align),
|
7551
|
+
className
|
7552
|
+
)
|
7553
|
+
}), children) : /* @__PURE__ */ React24.createElement("td", __spreadProps(__spreadValues({}, rest), {
|
7554
|
+
ref,
|
7555
|
+
className: classNames(
|
7556
|
+
cellClassNames,
|
7557
|
+
getBodyCellClassNames(true, stickyColumn),
|
7558
|
+
getAlignClassNames(align),
|
7559
|
+
className
|
7560
|
+
)
|
7561
|
+
}), children);
|
7562
|
+
}
|
7563
|
+
);
|
7558
7564
|
var TableSelectCell = (_a) => {
|
7559
7565
|
var _b = _a, { ariaLabel } = _b, props = __objRest(_b, ["ariaLabel"]);
|
7560
7566
|
return /* @__PURE__ */ React24.createElement(Table.Cell, {
|
@@ -7569,28 +7575,31 @@ var getSortCellButtonClassNames = (align) => tw("group flex items-center gap-x-4
|
|
7569
7575
|
var getSortCellIconClassNames = (active) => {
|
7570
7576
|
return tw("text-[9px]", active ? "text-default" : "text-inactive");
|
7571
7577
|
};
|
7572
|
-
var TableSortCell = (
|
7573
|
-
|
7574
|
-
|
7575
|
-
|
7576
|
-
|
7577
|
-
|
7578
|
-
|
7579
|
-
|
7580
|
-
|
7581
|
-
|
7582
|
-
|
7583
|
-
|
7584
|
-
"
|
7585
|
-
|
7586
|
-
|
7587
|
-
|
7588
|
-
|
7589
|
-
|
7590
|
-
|
7591
|
-
|
7592
|
-
|
7593
|
-
|
7578
|
+
var TableSortCell = React24.forwardRef(
|
7579
|
+
(_a, ref) => {
|
7580
|
+
var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
|
7581
|
+
return /* @__PURE__ */ React24.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
|
7582
|
+
"aria-sort": direction,
|
7583
|
+
ref
|
7584
|
+
}), /* @__PURE__ */ React24.createElement("span", {
|
7585
|
+
className: getSortCellButtonClassNames(rest.align),
|
7586
|
+
role: "button",
|
7587
|
+
tabIndex: -1,
|
7588
|
+
onClick
|
7589
|
+
}, children, /* @__PURE__ */ React24.createElement("div", {
|
7590
|
+
"data-sort-icons": true,
|
7591
|
+
className: tw("flex flex-col", {
|
7592
|
+
"invisible group-hover:visible": direction === "none"
|
7593
|
+
})
|
7594
|
+
}, /* @__PURE__ */ React24.createElement(InlineIcon, {
|
7595
|
+
icon: import_chevronUp2.default,
|
7596
|
+
className: getSortCellIconClassNames(direction === "ascending")
|
7597
|
+
}), /* @__PURE__ */ React24.createElement(InlineIcon, {
|
7598
|
+
icon: import_chevronDown3.default,
|
7599
|
+
className: getSortCellIconClassNames(direction === "descending")
|
7600
|
+
}))));
|
7601
|
+
}
|
7602
|
+
);
|
7594
7603
|
var Caption = ({ children }) => /* @__PURE__ */ React24.createElement(Typography2.Caption, {
|
7595
7604
|
htmlTag: "caption"
|
7596
7605
|
}, children);
|
@@ -7986,7 +7995,7 @@ var Item2 = React28.forwardRef(
|
|
7986
7995
|
);
|
7987
7996
|
DropdownMenu.Item = Item2;
|
7988
7997
|
var Description = ({ disabled, children }) => /* @__PURE__ */ React28.createElement(Typography2.Caption, {
|
7989
|
-
color: disabled ? "
|
7998
|
+
color: disabled ? "inactive" : "muted"
|
7990
7999
|
}, children);
|
7991
8000
|
DropdownMenu.Description = Description;
|
7992
8001
|
var Separator = (_a) => {
|
@@ -8238,7 +8247,7 @@ Modal.Title = (_a) => {
|
|
8238
8247
|
return /* @__PURE__ */ React32.createElement(Typography, __spreadValues({
|
8239
8248
|
htmlTag: "h2",
|
8240
8249
|
variant: "subheading",
|
8241
|
-
color: "
|
8250
|
+
color: "intense",
|
8242
8251
|
className: classNames(
|
8243
8252
|
tw({
|
8244
8253
|
"text-ellipsis overflow-x-hidden whitespace-nowrap": kind === "drawer"
|
@@ -8251,7 +8260,7 @@ Modal.Subtitle = (_a) => {
|
|
8251
8260
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
8252
8261
|
return /* @__PURE__ */ React32.createElement(Typography, __spreadValues({
|
8253
8262
|
variant: "small",
|
8254
|
-
color: "
|
8263
|
+
color: "default"
|
8255
8264
|
}, rest), children);
|
8256
8265
|
};
|
8257
8266
|
Modal.TitleContainer = (_a) => {
|
@@ -8333,7 +8342,7 @@ var Item3 = (_a) => {
|
|
8333
8342
|
role: "menuitem",
|
8334
8343
|
className: classNames(
|
8335
8344
|
tw("py-3 px-6 hover:bg-default cursor-pointer flex gap-4 items-center typography-small focusable", {
|
8336
|
-
"text-
|
8345
|
+
"text-default": !active,
|
8337
8346
|
"text-primary-intense": !!active
|
8338
8347
|
}),
|
8339
8348
|
className
|
@@ -8369,7 +8378,7 @@ PageHeader.TitleContainer = (_a) => {
|
|
8369
8378
|
PageHeader.Title = (_a) => {
|
8370
8379
|
var _b = _a, { isSubHeader = false, children } = _b, rest = __objRest(_b, ["isSubHeader", "children"]);
|
8371
8380
|
return /* @__PURE__ */ React34.createElement(Typography2, __spreadProps(__spreadValues({}, rest), {
|
8372
|
-
color: "
|
8381
|
+
color: "intense",
|
8373
8382
|
variant: isSubHeader ? "subheading" : "heading",
|
8374
8383
|
htmlTag: isSubHeader ? "h2" : "h1"
|
8375
8384
|
}), children);
|
@@ -8377,7 +8386,7 @@ PageHeader.Title = (_a) => {
|
|
8377
8386
|
PageHeader.Subtitle = (_a) => {
|
8378
8387
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
8379
8388
|
return /* @__PURE__ */ React34.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
|
8380
|
-
color: "
|
8389
|
+
color: "default"
|
8381
8390
|
}), children);
|
8382
8391
|
};
|
8383
8392
|
PageHeader.Chips = (_a) => {
|
@@ -8543,14 +8552,14 @@ Section2.Title = (_a) => {
|
|
8543
8552
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
8544
8553
|
return /* @__PURE__ */ React38.createElement(Typography2.Large, __spreadProps(__spreadValues({}, rest), {
|
8545
8554
|
htmlTag: "h2",
|
8546
|
-
color: "
|
8555
|
+
color: "intense",
|
8547
8556
|
className: "flex gap-3 items-center"
|
8548
8557
|
}), children);
|
8549
8558
|
};
|
8550
8559
|
Section2.Subtitle = (_a) => {
|
8551
8560
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
8552
8561
|
return /* @__PURE__ */ React38.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
|
8553
|
-
color: "
|
8562
|
+
color: "default"
|
8554
8563
|
}), children);
|
8555
8564
|
};
|
8556
8565
|
Section2.Actions = (_a) => {
|
@@ -8565,7 +8574,7 @@ Section2.Body = (_a) => {
|
|
8565
8574
|
className: classNames(tw("p-6"), className)
|
8566
8575
|
}), /* @__PURE__ */ React38.createElement(Typography, {
|
8567
8576
|
htmlTag: "div",
|
8568
|
-
color: "
|
8577
|
+
color: "default"
|
8569
8578
|
}, children));
|
8570
8579
|
};
|
8571
8580
|
|
@@ -8792,8 +8801,8 @@ var Step = (_a) => {
|
|
8792
8801
|
}));
|
8793
8802
|
};
|
8794
8803
|
var getClassNames = (state) => tw("h-[32px] w-[32px] border-2", {
|
8795
|
-
"border-
|
8796
|
-
"border-default
|
8804
|
+
"border-intense": state === "active",
|
8805
|
+
"border-default": state === "inactive",
|
8797
8806
|
"text-white bg-success-default border-success-intense": state === "completed"
|
8798
8807
|
});
|
8799
8808
|
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
|
|
@@ -57,11 +57,11 @@ export const Alert = (_a) => {
|
|
57
57
|
};
|
58
58
|
Alert.Title = (_a) => {
|
59
59
|
var { children, className } = _a, rest = __rest(_a, ["children", "className"]);
|
60
|
-
return (React.createElement(Typography, Object.assign({}, rest, { variant: "default-strong", color: "
|
60
|
+
return (React.createElement(Typography, Object.assign({}, rest, { variant: "default-strong", color: "intense", className: classNames(tw('col-start-2'), className) }), children));
|
61
61
|
};
|
62
62
|
Alert.Description = (_a) => {
|
63
63
|
var { children, className } = _a, rest = __rest(_a, ["children", "className"]);
|
64
|
-
return (React.createElement(Typography, Object.assign({}, rest, { variant: "small", color: "
|
64
|
+
return (React.createElement(Typography, Object.assign({}, rest, { variant: "small", color: "default", className: classNames(tw('col-start-2'), className) }), children));
|
65
65
|
};
|
66
66
|
Alert.Actions = (_a) => {
|
67
67
|
var { children, className } = _a, rest = __rest(_a, ["children", "className"]);
|