@aivenio/aquarium 1.59.0 → 1.60.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 +5 -3
- package/dist/atoms.cjs +14 -12
- package/dist/atoms.mjs +13 -12
- package/dist/charts.cjs +3 -3
- package/dist/charts.mjs +3 -3
- package/dist/src/atoms/Checkbox/Checkbox.d.ts +1 -1
- package/dist/src/atoms/DropdownMenu/DropdownMenu.js +3 -3
- package/dist/src/atoms/Navigation/Navigation.js +2 -2
- package/dist/src/atoms/ProgressBar/ProgressBar.js +2 -2
- package/dist/src/atoms/RadioButton/RadioButton.d.ts +1 -1
- package/dist/src/atoms/Select/Select.js +5 -5
- package/dist/src/atoms/Switch/Switch.d.ts +1 -1
- package/dist/src/atoms/Table/Table.js +3 -3
- package/dist/src/atoms/index.d.ts +1 -0
- package/dist/src/atoms/index.js +2 -1
- package/dist/src/charts/Container/Container.js +4 -4
- package/dist/src/molecules/Box/Box.d.ts +3 -3
- package/dist/src/molecules/Button/Button.d.ts +1 -1
- package/dist/src/molecules/Button/Button.js +2 -2
- package/dist/src/molecules/Chip/Chip.js +4 -4
- package/dist/src/molecules/ControlLabel/ControlLabel.js +2 -2
- package/dist/src/molecules/Dropdown/Dropdown.js +3 -3
- package/dist/src/molecules/Element/Element.d.ts +1 -1
- package/dist/src/molecules/MultiInput/InputChip.js +1 -1
- package/dist/src/molecules/NativeSelect/NativeSelect.d.ts +1 -0
- package/dist/src/molecules/NativeSelect/NativeSelect.js +4 -4
- package/dist/src/utils/constants.js +2 -2
- package/dist/src/utils/form/InputAdornment/InputAdornment.js +2 -2
- package/dist/src/utils/form/Label/Label.js +4 -4
- package/dist/styles.css +40 -18
- package/dist/system.cjs +29 -29
- package/dist/system.mjs +29 -29
- package/dist/tailwind.config.js +16 -8
- package/dist/tailwind.theme.json +2 -2
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/tailwindGenerated.d.ts +1 -1
- package/dist/types/utils.d.ts +1 -1
- package/package.json +4 -4
package/dist/system.cjs
CHANGED
@@ -5040,9 +5040,9 @@ var Input = import_react3.default.forwardRef((_a, ref) => {
|
|
5040
5040
|
type: "text",
|
5041
5041
|
className: classNames(
|
5042
5042
|
className,
|
5043
|
-
"grow rounded border-0 focus:outline-none px-[1px] my-1 min-w-0 typography-small disabled:cursor-not-allowed disabled:bg-grey-5 placeholder:text-
|
5043
|
+
"grow rounded border-0 focus:outline-none px-[1px] my-1 min-w-0 typography-small disabled:cursor-not-allowed disabled:bg-grey-5 placeholder:text-muted",
|
5044
5044
|
{
|
5045
|
-
"text-
|
5045
|
+
"text-default": !props.disabled,
|
5046
5046
|
"text-grey-30": props.disabled,
|
5047
5047
|
"cursor-default": props.readOnly
|
5048
5048
|
}
|
@@ -5065,7 +5065,7 @@ var NoResults = import_react3.default.forwardRef(
|
|
5065
5065
|
return /* @__PURE__ */ import_react3.default.createElement("li", __spreadProps(__spreadValues({
|
5066
5066
|
ref
|
5067
5067
|
}, rest), {
|
5068
|
-
className: classNames(tw("p-3 text-
|
5068
|
+
className: classNames(tw("p-3 text-muted italic typography-small"), className)
|
5069
5069
|
}), children);
|
5070
5070
|
}
|
5071
5071
|
);
|
@@ -5085,7 +5085,7 @@ var Group = import_react3.default.forwardRef((_a, ref) => {
|
|
5085
5085
|
ref,
|
5086
5086
|
className: classNames(
|
5087
5087
|
className,
|
5088
|
-
"flex items-center gap-x-3 p-3 text-
|
5088
|
+
"flex items-center gap-x-3 p-3 text-muted uppercase cursor-default typography-caption mt-4 first:mt-0",
|
5089
5089
|
{
|
5090
5090
|
"text-grey-20": props.disabled
|
5091
5091
|
}
|
@@ -5536,9 +5536,9 @@ var tailwind_theme_default = {
|
|
5536
5536
|
"primary-5": "var(--aquarium-colors-primary-5, #f3f6ff)",
|
5537
5537
|
"primary-0": "var(--aquarium-colors-primary-0, #ffffff)",
|
5538
5538
|
transparent: "var(--aquarium-colors-transparent, transparent)",
|
5539
|
+
current: "var(--aquarium-colors-current, currentColor)",
|
5539
5540
|
white: "var(--aquarium-colors-white, white)",
|
5540
|
-
black: "var(--aquarium-colors-black, black)"
|
5541
|
-
current: "var(--aquarium-colors-current, currentColor)"
|
5541
|
+
black: "var(--aquarium-colors-black, black)"
|
5542
5542
|
},
|
5543
5543
|
gap: {
|
5544
5544
|
"0": "0",
|
@@ -6884,7 +6884,7 @@ var Arrow = (props) => {
|
|
6884
6884
|
|
6885
6885
|
// src/utils/constants.ts
|
6886
6886
|
var getCommonInputStyles = ({ readOnly, valid }) => tw(
|
6887
|
-
"block w-full rounded-sm disabled:cursor-not-allowed disabled:border-grey-20 disabled:bg-grey-5 typography-small text-
|
6887
|
+
"block w-full rounded-sm disabled:cursor-not-allowed disabled:border-grey-20 disabled:bg-grey-5 typography-small text-default disabled:text-muted placeholder:text-muted focus:outline-none",
|
6888
6888
|
{
|
6889
6889
|
"px-3 py-3": !readOnly,
|
6890
6890
|
"border-none resize-none cursor-default": readOnly,
|
@@ -7023,7 +7023,7 @@ var asButton = (Component, isDropdownButton) => {
|
|
7023
7023
|
tw(
|
7024
7024
|
"inline-block border-0 rounded-sm transition whitespace-nowrap focus:outline-none relative text-center",
|
7025
7025
|
{
|
7026
|
-
"text-
|
7026
|
+
"text-default p-2 active:text-default active:bg-transparent hover:text-grey-90 hover:bg-grey-0 focus-visible:text-grey-90 focus-visible:bg-grey-0 disabled:text-muted disabled:bg-transparent": isIconOnlyButton,
|
7027
7027
|
"typography-default-strong": !dense && !isIconOnlyButton && kind !== "text",
|
7028
7028
|
"typography-small-strong": dense && !isIconOnlyButton && kind !== "text",
|
7029
7029
|
"py-3 px-4": !dense && isButton,
|
@@ -7955,7 +7955,7 @@ var getStatusClassNames = (status = "neutral") => {
|
|
7955
7955
|
return tw("text-success-100 bg-success-5");
|
7956
7956
|
case "neutral":
|
7957
7957
|
default:
|
7958
|
-
return tw("text-
|
7958
|
+
return tw("text-default bg-grey-5");
|
7959
7959
|
}
|
7960
7960
|
};
|
7961
7961
|
var Chip2 = (_a) => {
|
@@ -7979,8 +7979,8 @@ var Chip2 = (_a) => {
|
|
7979
7979
|
className: (0, import_classnames5.default)(
|
7980
7980
|
"Aquarium-Chip",
|
7981
7981
|
tw({
|
7982
|
-
"bg-grey-0 text-
|
7983
|
-
"bg-grey-5 text-
|
7982
|
+
"bg-grey-0 text-default": !locked,
|
7983
|
+
"bg-grey-5 text-muted": locked
|
7984
7984
|
})
|
7985
7985
|
)
|
7986
7986
|
}, rest), icon && /* @__PURE__ */ import_react32.default.createElement(InlineIcon, {
|
@@ -8792,7 +8792,7 @@ var ControlLabel = (_a) => {
|
|
8792
8792
|
"style",
|
8793
8793
|
"className"
|
8794
8794
|
]);
|
8795
|
-
const textClass = disabled ? "text-
|
8795
|
+
const textClass = disabled ? "text-muted" : "text-default";
|
8796
8796
|
const rtl = labelPlacement === "left";
|
8797
8797
|
const labelEl = label && /* @__PURE__ */ import_react44.default.createElement("span", {
|
8798
8798
|
className: tw("typography-small self-center", { "text-right": rtl })
|
@@ -9114,9 +9114,9 @@ var LabelText = ({
|
|
9114
9114
|
className: tw("block mb-2")
|
9115
9115
|
}, /* @__PURE__ */ import_react51.default.createElement("span", {
|
9116
9116
|
className: tw("inline-flex items-center typography-small-strong", {
|
9117
|
-
"text-
|
9117
|
+
"text-default": variant === "default",
|
9118
9118
|
"text-error-50": variant === "error",
|
9119
|
-
"text-
|
9119
|
+
"text-muted": variant === "disabled"
|
9120
9120
|
})
|
9121
9121
|
}, labelText, required && /* @__PURE__ */ import_react51.default.createElement("span", {
|
9122
9122
|
className: tw("text-error-50")
|
@@ -9125,7 +9125,7 @@ var LabelText = ({
|
|
9125
9125
|
placement: helpTooltipPlacement
|
9126
9126
|
}, /* @__PURE__ */ import_react51.default.createElement("span", {
|
9127
9127
|
tabIndex: 0,
|
9128
|
-
className: tw("text-
|
9128
|
+
className: tw("text-muted flex items-center cursor-pointer ml-2")
|
9129
9129
|
}, /* @__PURE__ */ import_react51.default.createElement(InlineIcon, {
|
9130
9130
|
icon: import_questionMark2.default,
|
9131
9131
|
"data-testid": "icon-info"
|
@@ -9869,7 +9869,7 @@ var InputAdornment = ({
|
|
9869
9869
|
children
|
9870
9870
|
}) => {
|
9871
9871
|
return /* @__PURE__ */ import_react62.default.createElement("span", {
|
9872
|
-
className: classNames(className, "absolute inset-y-0 grow-0 text-
|
9872
|
+
className: classNames(className, "absolute inset-y-0 grow-0 text-muted flex items-center mx-3", {
|
9873
9873
|
"right-0": placement === "right",
|
9874
9874
|
"left-0": placement === "left",
|
9875
9875
|
"typography-small": dense,
|
@@ -10522,7 +10522,7 @@ var TableRow = (_a) => {
|
|
10522
10522
|
}), children);
|
10523
10523
|
};
|
10524
10524
|
var cellClassNames = tw("px-4 border-b typography-small leading-[18px]");
|
10525
|
-
var getBodyCellClassNames = (table = true, stickyColumn) => tw("text-
|
10525
|
+
var getBodyCellClassNames = (table = true, stickyColumn) => tw("text-default py-3", {
|
10526
10526
|
"h-[50px]": table,
|
10527
10527
|
"min-h-[50px]": !table,
|
10528
10528
|
"sticky z-10 bg-white group-hover:bg-grey-0": Boolean(stickyColumn),
|
@@ -10573,7 +10573,7 @@ var TableSelectCell = (_a) => {
|
|
10573
10573
|
};
|
10574
10574
|
var getSortCellButtonClassNames = (align) => tw("group flex items-center gap-x-4 text-grey-50", { "flex-row-reverse": align === "right" });
|
10575
10575
|
var getSortCellIconClassNames = (active) => {
|
10576
|
-
return tw("text-[9px]", active ? "text-
|
10576
|
+
return tw("text-[9px]", active ? "text-default" : "text-muted");
|
10577
10577
|
};
|
10578
10578
|
var TableSortCell = (_a) => {
|
10579
10579
|
var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
|
@@ -10844,7 +10844,7 @@ var DropdownMenu = import_react72.default.forwardRef(
|
|
10844
10844
|
return /* @__PURE__ */ import_react72.default.createElement("div", __spreadValues({
|
10845
10845
|
ref,
|
10846
10846
|
style: { minHeight, maxHeight, minWidth, maxWidth },
|
10847
|
-
className: classNames(className, "bg-white w-full flex flex-col overflow-x-hidden typography-small text-
|
10847
|
+
className: classNames(className, "bg-white w-full flex flex-col overflow-x-hidden typography-small text-default")
|
10848
10848
|
}, props), children);
|
10849
10849
|
}
|
10850
10850
|
);
|
@@ -10868,7 +10868,7 @@ var Group2 = import_react72.default.forwardRef(
|
|
10868
10868
|
return /* @__PURE__ */ import_react72.default.createElement("li", __spreadValues({
|
10869
10869
|
ref
|
10870
10870
|
}, props), title && /* @__PURE__ */ import_react72.default.createElement("div", __spreadValues({
|
10871
|
-
className: classNames(className, "p-3 text-
|
10871
|
+
className: classNames(className, "p-3 text-muted uppercase cursor-default typography-caption", {
|
10872
10872
|
"text-grey-20": props.disabled
|
10873
10873
|
})
|
10874
10874
|
}, titleProps), title), children);
|
@@ -12660,8 +12660,8 @@ var DropdownItem = (_a) => {
|
|
12660
12660
|
onKeyDown: handleKeyDown
|
12661
12661
|
}, props), {
|
12662
12662
|
className: tw("typography-small flex items-center focus:ring-0", {
|
12663
|
-
"text-
|
12664
|
-
"text-
|
12663
|
+
"text-default cursor-pointer hover:bg-grey-0": !disabled,
|
12664
|
+
"text-muted cursor-not-allowed": disabled,
|
12665
12665
|
"text-primary-70 hover:text-primary-80": color === "danger" && !disabled
|
12666
12666
|
})
|
12667
12667
|
}), tooltip ? /* @__PURE__ */ import_react88.default.createElement(Tooltip, {
|
@@ -13066,7 +13066,7 @@ var InputChip = import_react98.default.forwardRef(
|
|
13066
13066
|
icon: import_smallCross2.default,
|
13067
13067
|
className: tw({
|
13068
13068
|
"text-error-70": invalid,
|
13069
|
-
"text-
|
13069
|
+
"text-default": !invalid
|
13070
13070
|
})
|
13071
13071
|
})));
|
13072
13072
|
}
|
@@ -13583,7 +13583,7 @@ var NativeSelectBase = import_react101.default.forwardRef(
|
|
13583
13583
|
className: classNames("Aquarium-NativeSelectBase", tw("relative block"))
|
13584
13584
|
}, !readOnly && /* @__PURE__ */ import_react101.default.createElement("span", {
|
13585
13585
|
className: tw(
|
13586
|
-
"absolute right-0 inset-y-0 mr-4 text-
|
13586
|
+
"absolute right-0 inset-y-0 mr-4 text-muted flex ml-3 pointer-events-none typography-default-strong mt-4"
|
13587
13587
|
)
|
13588
13588
|
}, /* @__PURE__ */ import_react101.default.createElement(Icon, {
|
13589
13589
|
icon: import_caretDown2.default,
|
@@ -13597,9 +13597,9 @@ var NativeSelectBase = import_react101.default.forwardRef(
|
|
13597
13597
|
onBlur: handleBlur,
|
13598
13598
|
className: classNames(
|
13599
13599
|
tw(
|
13600
|
-
"block w-full rounded-sm appearance-none disabled:cursor-not-allowed typography-small text-
|
13600
|
+
"block w-full rounded-sm appearance-none disabled:cursor-not-allowed typography-small text-default placeholder:text-muted focus:outline-none",
|
13601
13601
|
{
|
13602
|
-
"px-3 py-3 disabled:border-grey-20 disabled:bg-grey-5 disabled:text-
|
13602
|
+
"px-3 py-3 disabled:border-grey-20 disabled:bg-grey-5 disabled:text-muted": !readOnly,
|
13603
13603
|
"px-0 py-3 border-none": readOnly,
|
13604
13604
|
"border border-error-50": !valid && !readOnly,
|
13605
13605
|
"border border-grey-20 hover:border-grey-50 focus:border-info-70": valid && !readOnly
|
@@ -13694,7 +13694,7 @@ var Section2 = (_a) => {
|
|
13694
13694
|
role: "presentation",
|
13695
13695
|
className: tw("py-5")
|
13696
13696
|
}, title && /* @__PURE__ */ import_react102.default.createElement("div", {
|
13697
|
-
className: classNames(className, "py-2 px-6 text-
|
13697
|
+
className: classNames(className, "py-2 px-6 text-muted uppercase cursor-default typography-caption")
|
13698
13698
|
}, title), /* @__PURE__ */ import_react102.default.createElement("ul", __spreadProps(__spreadValues({}, rest), {
|
13699
13699
|
role: "group",
|
13700
13700
|
className: classNames(tw("flex flex-col"), className)
|
@@ -13991,9 +13991,9 @@ ProgressBar.Labels = (_a) => {
|
|
13991
13991
|
return /* @__PURE__ */ import_react108.default.createElement("div", {
|
13992
13992
|
className: classNames(tw("flex flex-row"), className)
|
13993
13993
|
}, /* @__PURE__ */ import_react108.default.createElement("span", __spreadProps(__spreadValues({}, rest), {
|
13994
|
-
className: tw("grow text-
|
13994
|
+
className: tw("grow text-default typography-caption")
|
13995
13995
|
}), startLabel), /* @__PURE__ */ import_react108.default.createElement("span", __spreadProps(__spreadValues({}, rest), {
|
13996
|
-
className: tw("grow text-
|
13996
|
+
className: tw("grow text-default typography-caption text-right")
|
13997
13997
|
}), endLabel));
|
13998
13998
|
};
|
13999
13999
|
|
package/dist/system.mjs
CHANGED
@@ -4892,9 +4892,9 @@ var Input = React2.forwardRef((_a, ref) => {
|
|
4892
4892
|
type: "text",
|
4893
4893
|
className: classNames(
|
4894
4894
|
className,
|
4895
|
-
"grow rounded border-0 focus:outline-none px-[1px] my-1 min-w-0 typography-small disabled:cursor-not-allowed disabled:bg-grey-5 placeholder:text-
|
4895
|
+
"grow rounded border-0 focus:outline-none px-[1px] my-1 min-w-0 typography-small disabled:cursor-not-allowed disabled:bg-grey-5 placeholder:text-muted",
|
4896
4896
|
{
|
4897
|
-
"text-
|
4897
|
+
"text-default": !props.disabled,
|
4898
4898
|
"text-grey-30": props.disabled,
|
4899
4899
|
"cursor-default": props.readOnly
|
4900
4900
|
}
|
@@ -4917,7 +4917,7 @@ var NoResults = React2.forwardRef(
|
|
4917
4917
|
return /* @__PURE__ */ React2.createElement("li", __spreadProps(__spreadValues({
|
4918
4918
|
ref
|
4919
4919
|
}, rest), {
|
4920
|
-
className: classNames(tw("p-3 text-
|
4920
|
+
className: classNames(tw("p-3 text-muted italic typography-small"), className)
|
4921
4921
|
}), children);
|
4922
4922
|
}
|
4923
4923
|
);
|
@@ -4937,7 +4937,7 @@ var Group = React2.forwardRef((_a, ref) => {
|
|
4937
4937
|
ref,
|
4938
4938
|
className: classNames(
|
4939
4939
|
className,
|
4940
|
-
"flex items-center gap-x-3 p-3 text-
|
4940
|
+
"flex items-center gap-x-3 p-3 text-muted uppercase cursor-default typography-caption mt-4 first:mt-0",
|
4941
4941
|
{
|
4942
4942
|
"text-grey-20": props.disabled
|
4943
4943
|
}
|
@@ -5388,9 +5388,9 @@ var tailwind_theme_default = {
|
|
5388
5388
|
"primary-5": "var(--aquarium-colors-primary-5, #f3f6ff)",
|
5389
5389
|
"primary-0": "var(--aquarium-colors-primary-0, #ffffff)",
|
5390
5390
|
transparent: "var(--aquarium-colors-transparent, transparent)",
|
5391
|
+
current: "var(--aquarium-colors-current, currentColor)",
|
5391
5392
|
white: "var(--aquarium-colors-white, white)",
|
5392
|
-
black: "var(--aquarium-colors-black, black)"
|
5393
|
-
current: "var(--aquarium-colors-current, currentColor)"
|
5393
|
+
black: "var(--aquarium-colors-black, black)"
|
5394
5394
|
},
|
5395
5395
|
gap: {
|
5396
5396
|
"0": "0",
|
@@ -6736,7 +6736,7 @@ var Arrow = (props) => {
|
|
6736
6736
|
|
6737
6737
|
// src/utils/constants.ts
|
6738
6738
|
var getCommonInputStyles = ({ readOnly, valid }) => tw(
|
6739
|
-
"block w-full rounded-sm disabled:cursor-not-allowed disabled:border-grey-20 disabled:bg-grey-5 typography-small text-
|
6739
|
+
"block w-full rounded-sm disabled:cursor-not-allowed disabled:border-grey-20 disabled:bg-grey-5 typography-small text-default disabled:text-muted placeholder:text-muted focus:outline-none",
|
6740
6740
|
{
|
6741
6741
|
"px-3 py-3": !readOnly,
|
6742
6742
|
"border-none resize-none cursor-default": readOnly,
|
@@ -6875,7 +6875,7 @@ var asButton = (Component, isDropdownButton) => {
|
|
6875
6875
|
tw(
|
6876
6876
|
"inline-block border-0 rounded-sm transition whitespace-nowrap focus:outline-none relative text-center",
|
6877
6877
|
{
|
6878
|
-
"text-
|
6878
|
+
"text-default p-2 active:text-default active:bg-transparent hover:text-grey-90 hover:bg-grey-0 focus-visible:text-grey-90 focus-visible:bg-grey-0 disabled:text-muted disabled:bg-transparent": isIconOnlyButton,
|
6879
6879
|
"typography-default-strong": !dense && !isIconOnlyButton && kind !== "text",
|
6880
6880
|
"typography-small-strong": dense && !isIconOnlyButton && kind !== "text",
|
6881
6881
|
"py-3 px-4": !dense && isButton,
|
@@ -7807,7 +7807,7 @@ var getStatusClassNames = (status = "neutral") => {
|
|
7807
7807
|
return tw("text-success-100 bg-success-5");
|
7808
7808
|
case "neutral":
|
7809
7809
|
default:
|
7810
|
-
return tw("text-
|
7810
|
+
return tw("text-default bg-grey-5");
|
7811
7811
|
}
|
7812
7812
|
};
|
7813
7813
|
var Chip2 = (_a) => {
|
@@ -7831,8 +7831,8 @@ var Chip2 = (_a) => {
|
|
7831
7831
|
className: classNames5(
|
7832
7832
|
"Aquarium-Chip",
|
7833
7833
|
tw({
|
7834
|
-
"bg-grey-0 text-
|
7835
|
-
"bg-grey-5 text-
|
7834
|
+
"bg-grey-0 text-default": !locked,
|
7835
|
+
"bg-grey-5 text-muted": locked
|
7836
7836
|
})
|
7837
7837
|
)
|
7838
7838
|
}, rest), icon && /* @__PURE__ */ React27.createElement(InlineIcon, {
|
@@ -8644,7 +8644,7 @@ var ControlLabel = (_a) => {
|
|
8644
8644
|
"style",
|
8645
8645
|
"className"
|
8646
8646
|
]);
|
8647
|
-
const textClass = disabled ? "text-
|
8647
|
+
const textClass = disabled ? "text-muted" : "text-default";
|
8648
8648
|
const rtl = labelPlacement === "left";
|
8649
8649
|
const labelEl = label && /* @__PURE__ */ React39.createElement("span", {
|
8650
8650
|
className: tw("typography-small self-center", { "text-right": rtl })
|
@@ -8966,9 +8966,9 @@ var LabelText = ({
|
|
8966
8966
|
className: tw("block mb-2")
|
8967
8967
|
}, /* @__PURE__ */ React46.createElement("span", {
|
8968
8968
|
className: tw("inline-flex items-center typography-small-strong", {
|
8969
|
-
"text-
|
8969
|
+
"text-default": variant === "default",
|
8970
8970
|
"text-error-50": variant === "error",
|
8971
|
-
"text-
|
8971
|
+
"text-muted": variant === "disabled"
|
8972
8972
|
})
|
8973
8973
|
}, labelText, required && /* @__PURE__ */ React46.createElement("span", {
|
8974
8974
|
className: tw("text-error-50")
|
@@ -8977,7 +8977,7 @@ var LabelText = ({
|
|
8977
8977
|
placement: helpTooltipPlacement
|
8978
8978
|
}, /* @__PURE__ */ React46.createElement("span", {
|
8979
8979
|
tabIndex: 0,
|
8980
|
-
className: tw("text-
|
8980
|
+
className: tw("text-muted flex items-center cursor-pointer ml-2")
|
8981
8981
|
}, /* @__PURE__ */ React46.createElement(InlineIcon, {
|
8982
8982
|
icon: import_questionMark2.default,
|
8983
8983
|
"data-testid": "icon-info"
|
@@ -9721,7 +9721,7 @@ var InputAdornment = ({
|
|
9721
9721
|
children
|
9722
9722
|
}) => {
|
9723
9723
|
return /* @__PURE__ */ React56.createElement("span", {
|
9724
|
-
className: classNames(className, "absolute inset-y-0 grow-0 text-
|
9724
|
+
className: classNames(className, "absolute inset-y-0 grow-0 text-muted flex items-center mx-3", {
|
9725
9725
|
"right-0": placement === "right",
|
9726
9726
|
"left-0": placement === "left",
|
9727
9727
|
"typography-small": dense,
|
@@ -10374,7 +10374,7 @@ var TableRow = (_a) => {
|
|
10374
10374
|
}), children);
|
10375
10375
|
};
|
10376
10376
|
var cellClassNames = tw("px-4 border-b typography-small leading-[18px]");
|
10377
|
-
var getBodyCellClassNames = (table = true, stickyColumn) => tw("text-
|
10377
|
+
var getBodyCellClassNames = (table = true, stickyColumn) => tw("text-default py-3", {
|
10378
10378
|
"h-[50px]": table,
|
10379
10379
|
"min-h-[50px]": !table,
|
10380
10380
|
"sticky z-10 bg-white group-hover:bg-grey-0": Boolean(stickyColumn),
|
@@ -10425,7 +10425,7 @@ var TableSelectCell = (_a) => {
|
|
10425
10425
|
};
|
10426
10426
|
var getSortCellButtonClassNames = (align) => tw("group flex items-center gap-x-4 text-grey-50", { "flex-row-reverse": align === "right" });
|
10427
10427
|
var getSortCellIconClassNames = (active) => {
|
10428
|
-
return tw("text-[9px]", active ? "text-
|
10428
|
+
return tw("text-[9px]", active ? "text-default" : "text-muted");
|
10429
10429
|
};
|
10430
10430
|
var TableSortCell = (_a) => {
|
10431
10431
|
var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
|
@@ -10696,7 +10696,7 @@ var DropdownMenu = React65.forwardRef(
|
|
10696
10696
|
return /* @__PURE__ */ React65.createElement("div", __spreadValues({
|
10697
10697
|
ref,
|
10698
10698
|
style: { minHeight, maxHeight, minWidth, maxWidth },
|
10699
|
-
className: classNames(className, "bg-white w-full flex flex-col overflow-x-hidden typography-small text-
|
10699
|
+
className: classNames(className, "bg-white w-full flex flex-col overflow-x-hidden typography-small text-default")
|
10700
10700
|
}, props), children);
|
10701
10701
|
}
|
10702
10702
|
);
|
@@ -10720,7 +10720,7 @@ var Group2 = React65.forwardRef(
|
|
10720
10720
|
return /* @__PURE__ */ React65.createElement("li", __spreadValues({
|
10721
10721
|
ref
|
10722
10722
|
}, props), title && /* @__PURE__ */ React65.createElement("div", __spreadValues({
|
10723
|
-
className: classNames(className, "p-3 text-
|
10723
|
+
className: classNames(className, "p-3 text-muted uppercase cursor-default typography-caption", {
|
10724
10724
|
"text-grey-20": props.disabled
|
10725
10725
|
})
|
10726
10726
|
}, titleProps), title), children);
|
@@ -12512,8 +12512,8 @@ var DropdownItem = (_a) => {
|
|
12512
12512
|
onKeyDown: handleKeyDown
|
12513
12513
|
}, props), {
|
12514
12514
|
className: tw("typography-small flex items-center focus:ring-0", {
|
12515
|
-
"text-
|
12516
|
-
"text-
|
12515
|
+
"text-default cursor-pointer hover:bg-grey-0": !disabled,
|
12516
|
+
"text-muted cursor-not-allowed": disabled,
|
12517
12517
|
"text-primary-70 hover:text-primary-80": color === "danger" && !disabled
|
12518
12518
|
})
|
12519
12519
|
}), tooltip ? /* @__PURE__ */ React80.createElement(Tooltip, {
|
@@ -12918,7 +12918,7 @@ var InputChip = React90.forwardRef(
|
|
12918
12918
|
icon: import_smallCross2.default,
|
12919
12919
|
className: tw({
|
12920
12920
|
"text-error-70": invalid,
|
12921
|
-
"text-
|
12921
|
+
"text-default": !invalid
|
12922
12922
|
})
|
12923
12923
|
})));
|
12924
12924
|
}
|
@@ -13435,7 +13435,7 @@ var NativeSelectBase = React93.forwardRef(
|
|
13435
13435
|
className: classNames("Aquarium-NativeSelectBase", tw("relative block"))
|
13436
13436
|
}, !readOnly && /* @__PURE__ */ React93.createElement("span", {
|
13437
13437
|
className: tw(
|
13438
|
-
"absolute right-0 inset-y-0 mr-4 text-
|
13438
|
+
"absolute right-0 inset-y-0 mr-4 text-muted flex ml-3 pointer-events-none typography-default-strong mt-4"
|
13439
13439
|
)
|
13440
13440
|
}, /* @__PURE__ */ React93.createElement(Icon, {
|
13441
13441
|
icon: import_caretDown2.default,
|
@@ -13449,9 +13449,9 @@ var NativeSelectBase = React93.forwardRef(
|
|
13449
13449
|
onBlur: handleBlur,
|
13450
13450
|
className: classNames(
|
13451
13451
|
tw(
|
13452
|
-
"block w-full rounded-sm appearance-none disabled:cursor-not-allowed typography-small text-
|
13452
|
+
"block w-full rounded-sm appearance-none disabled:cursor-not-allowed typography-small text-default placeholder:text-muted focus:outline-none",
|
13453
13453
|
{
|
13454
|
-
"px-3 py-3 disabled:border-grey-20 disabled:bg-grey-5 disabled:text-
|
13454
|
+
"px-3 py-3 disabled:border-grey-20 disabled:bg-grey-5 disabled:text-muted": !readOnly,
|
13455
13455
|
"px-0 py-3 border-none": readOnly,
|
13456
13456
|
"border border-error-50": !valid && !readOnly,
|
13457
13457
|
"border border-grey-20 hover:border-grey-50 focus:border-info-70": valid && !readOnly
|
@@ -13546,7 +13546,7 @@ var Section2 = (_a) => {
|
|
13546
13546
|
role: "presentation",
|
13547
13547
|
className: tw("py-5")
|
13548
13548
|
}, title && /* @__PURE__ */ React94.createElement("div", {
|
13549
|
-
className: classNames(className, "py-2 px-6 text-
|
13549
|
+
className: classNames(className, "py-2 px-6 text-muted uppercase cursor-default typography-caption")
|
13550
13550
|
}, title), /* @__PURE__ */ React94.createElement("ul", __spreadProps(__spreadValues({}, rest), {
|
13551
13551
|
role: "group",
|
13552
13552
|
className: classNames(tw("flex flex-col"), className)
|
@@ -13843,9 +13843,9 @@ ProgressBar.Labels = (_a) => {
|
|
13843
13843
|
return /* @__PURE__ */ React100.createElement("div", {
|
13844
13844
|
className: classNames(tw("flex flex-row"), className)
|
13845
13845
|
}, /* @__PURE__ */ React100.createElement("span", __spreadProps(__spreadValues({}, rest), {
|
13846
|
-
className: tw("grow text-
|
13846
|
+
className: tw("grow text-default typography-caption")
|
13847
13847
|
}), startLabel), /* @__PURE__ */ React100.createElement("span", __spreadProps(__spreadValues({}, rest), {
|
13848
|
-
className: tw("grow text-
|
13848
|
+
className: tw("grow text-default typography-caption text-right")
|
13849
13849
|
}), endLabel));
|
13850
13850
|
};
|
13851
13851
|
|
package/dist/tailwind.config.js
CHANGED
@@ -21,12 +21,27 @@ const originalTheme = {
|
|
21
21
|
zIndex: {
|
22
22
|
modal: '100',
|
23
23
|
},
|
24
|
+
textColor: {
|
25
|
+
muted: 'var(--aquarium-colors-grey-40)',
|
26
|
+
default: 'var(--aquarium-colors-grey-70)',
|
27
|
+
},
|
28
|
+
ringWidth: {
|
29
|
+
DEFAULT: '2px',
|
30
|
+
1: '1px',
|
31
|
+
2: '2px',
|
32
|
+
},
|
24
33
|
},
|
25
34
|
borderRadius: {
|
26
35
|
...defaultTheme.borderRadius,
|
27
36
|
DEFAULT: '4px',
|
28
37
|
},
|
29
|
-
colors: {
|
38
|
+
colors: {
|
39
|
+
...theme.colors,
|
40
|
+
transparent: 'transparent',
|
41
|
+
current: 'currentColor',
|
42
|
+
white: 'white',
|
43
|
+
black: 'black',
|
44
|
+
},
|
30
45
|
spacing,
|
31
46
|
margin: {
|
32
47
|
...spacing,
|
@@ -78,13 +93,6 @@ module.exports = {
|
|
78
93
|
display: ['children'],
|
79
94
|
opacity: ['sibling-input-focus', 'focus'],
|
80
95
|
},
|
81
|
-
extend: {
|
82
|
-
ringWidth: {
|
83
|
-
DEFAULT: '2px',
|
84
|
-
1: '1px',
|
85
|
-
2: '2px',
|
86
|
-
},
|
87
|
-
},
|
88
96
|
content: ['./src/**/*.tsx', './src/**/*.ts'],
|
89
97
|
safelist: [
|
90
98
|
...theme.typography.sizes.map((s) => s.className),
|
package/dist/tailwind.theme.json
CHANGED
@@ -355,9 +355,9 @@
|
|
355
355
|
"primary-5": "var(--aquarium-colors-primary-5, #f3f6ff)",
|
356
356
|
"primary-0": "var(--aquarium-colors-primary-0, #ffffff)",
|
357
357
|
"transparent": "var(--aquarium-colors-transparent, transparent)",
|
358
|
+
"current": "var(--aquarium-colors-current, currentColor)",
|
358
359
|
"white": "var(--aquarium-colors-white, white)",
|
359
|
-
"black": "var(--aquarium-colors-black, black)"
|
360
|
-
"current": "var(--aquarium-colors-current, currentColor)"
|
360
|
+
"black": "var(--aquarium-colors-black, black)"
|
361
361
|
},
|
362
362
|
"gap": {
|
363
363
|
"0": "0",
|