@aivenio/aquarium 1.59.0 → 1.60.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_variables.scss +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/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/Select/Select.js +5 -5
- 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/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/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/package.json +3 -3
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",
|