@aivenio/aquarium 6.0.0 → 6.0.2
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 +3 -3
- package/dist/atoms.cjs +16 -14
- package/dist/atoms.mjs +16 -14
- package/dist/charts.cjs +4 -4
- package/dist/charts.mjs +4 -4
- package/dist/src/atoms/Alert/Alert.js +1 -1
- package/dist/src/atoms/Button/Button.d.ts +1 -1
- package/dist/src/atoms/ChoiceChip/ChoiceChip.d.ts +11 -7
- package/dist/src/atoms/ChoiceChip/ChoiceChip.js +3 -3
- package/dist/src/atoms/Modal/Modal.js +2 -2
- package/dist/src/atoms/Section/Section.js +3 -3
- package/dist/src/atoms/Switch/Switch.js +4 -3
- package/dist/src/molecules/Alert/Alert.js +6 -6
- package/dist/src/molecules/Breadcrumbs/Breadcrumbs.js +3 -2
- package/dist/src/molecules/EmptyState/EmptyState.d.ts +2 -2
- package/dist/src/molecules/EmptyState/EmptyState.js +3 -3
- package/dist/src/molecules/Modal/Modal.js +2 -2
- package/dist/src/tokens/tokens.json +4 -4
- package/dist/src/utils/constants.d.ts +3 -3
- package/dist/src/utils/constants.js +4 -4
- package/dist/styles.css +117 -20
- package/dist/system.cjs +23 -21
- package/dist/system.mjs +23 -21
- package/dist/tokens.json +4 -4
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/package.json +1 -2
package/dist/system.mjs
CHANGED
|
@@ -1709,8 +1709,8 @@ var tokens_default = {
|
|
|
1709
1709
|
}
|
|
1710
1710
|
},
|
|
1711
1711
|
borderColor: {
|
|
1712
|
-
muted: "rgba(
|
|
1713
|
-
default: "rgba(
|
|
1712
|
+
muted: "rgba(225,225,225,1)",
|
|
1713
|
+
default: "rgba(181,181,183,1)",
|
|
1714
1714
|
intense: "rgba(45,46,48,1)",
|
|
1715
1715
|
primary: {
|
|
1716
1716
|
muted: "rgba(183,242,241,1)",
|
|
@@ -1723,7 +1723,7 @@ var tokens_default = {
|
|
|
1723
1723
|
default: "rgba(0,128,124,1)",
|
|
1724
1724
|
active: "rgba(46,208,205,1)",
|
|
1725
1725
|
hover: "rgba(27,178,176,1)",
|
|
1726
|
-
disabled: "rgba(
|
|
1726
|
+
disabled: "rgba(225,225,225,1)"
|
|
1727
1727
|
}
|
|
1728
1728
|
},
|
|
1729
1729
|
info: {
|
|
@@ -1884,7 +1884,7 @@ var tokens_default = {
|
|
|
1884
1884
|
"0": "rgba(250,250,250,1)",
|
|
1885
1885
|
"5": "rgba(244,244,244,1)",
|
|
1886
1886
|
"10": "rgba(235,235,235,1)",
|
|
1887
|
-
"20": "rgba(
|
|
1887
|
+
"20": "rgba(225,225,225,1)",
|
|
1888
1888
|
"30": "rgba(181,181,183,1)",
|
|
1889
1889
|
"40": "rgba(145,146,148,1)",
|
|
1890
1890
|
"50": "rgba(104,105,107,1)",
|
|
@@ -2533,11 +2533,11 @@ import { tv as tv3 } from "tailwind-variants";
|
|
|
2533
2533
|
// src/utils/constants.ts
|
|
2534
2534
|
import { tv as tv2 } from "tailwind-variants";
|
|
2535
2535
|
var inputStyles = tv2({
|
|
2536
|
-
base: "block w-full rounded
|
|
2536
|
+
base: "block w-full rounded typography-default text-default disabled:cursor-not-allowed disabled:border-default disabled:bg-medium disabled:text-inactive placeholder:text-inactive focus:outline-none",
|
|
2537
2537
|
variants: {
|
|
2538
2538
|
readOnly: {
|
|
2539
2539
|
true: "border-none resize-none cursor-default bg-transparent",
|
|
2540
|
-
false: "px-3 py-3 bg-
|
|
2540
|
+
false: "px-3 py-3 bg-layer"
|
|
2541
2541
|
},
|
|
2542
2542
|
valid: {
|
|
2543
2543
|
true: "",
|
|
@@ -2554,7 +2554,7 @@ var inputStyles = tv2({
|
|
|
2554
2554
|
}
|
|
2555
2555
|
});
|
|
2556
2556
|
var focusRingStyle = tv2({
|
|
2557
|
-
base: "focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-action-focus focus-visible:ring-offset-body rounded
|
|
2557
|
+
base: "focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-action-focus focus-visible:ring-offset-body rounded"
|
|
2558
2558
|
});
|
|
2559
2559
|
var interactiveTextStyles = tv2({
|
|
2560
2560
|
base: "text-primary-default active:text-primary-active focus-visible:text-primary-active hover:text-primary-graphic disabled:text-inactive visited:text-primary-intense"
|
|
@@ -3465,7 +3465,7 @@ var alertStyles = tv6({
|
|
|
3465
3465
|
base: "pt-3 pb-2"
|
|
3466
3466
|
},
|
|
3467
3467
|
false: {
|
|
3468
|
-
base: "py-
|
|
3468
|
+
base: "py-4"
|
|
3469
3469
|
}
|
|
3470
3470
|
}
|
|
3471
3471
|
}
|
|
@@ -3546,7 +3546,7 @@ Banner.Dismiss = ({ type, ...rest }) => {
|
|
|
3546
3546
|
Banner.Dismiss.displayName = "Alert.Banner.Dismiss";
|
|
3547
3547
|
|
|
3548
3548
|
// src/molecules/Alert/Alert.tsx
|
|
3549
|
-
var renderActions = (action, dense = false) => action && /* @__PURE__ */ React24.createElement(Alert.Actions, null, !isLink(action) && /* @__PURE__ */ React24.createElement(Button2.Ghost, { dense, ...omit2(action, "text") }, action.text), isLink(action) && /* @__PURE__ */ React24.createElement(Link2.Button.Ghost, { dense, ...omit2(action, "text") }, action.text));
|
|
3549
|
+
var renderActions = (action, type, dense = false) => action && /* @__PURE__ */ React24.createElement(Alert.Actions, null, !isLink(action) && /* @__PURE__ */ React24.createElement(Button2.Ghost, { dense, ...omit2(action, "text"), UNSAFE_className: `alert-action-${type}` }, action.text), isLink(action) && /* @__PURE__ */ React24.createElement(Link2.Button.Ghost, { dense, ...omit2(action, "text"), className: `alert-action-${type}` }, action.text));
|
|
3550
3550
|
var Alert2 = ({
|
|
3551
3551
|
type,
|
|
3552
3552
|
title,
|
|
@@ -3569,7 +3569,7 @@ var Alert2 = ({
|
|
|
3569
3569
|
/* @__PURE__ */ React24.createElement(Alert.Icon, { type, dense: Boolean(title) }),
|
|
3570
3570
|
title && /* @__PURE__ */ React24.createElement(Alert.Title, { id: titleID }, title),
|
|
3571
3571
|
/* @__PURE__ */ React24.createElement(Alert.Description, { id: descriptionID }, children),
|
|
3572
|
-
renderActions(action, true),
|
|
3572
|
+
renderActions(action, type, true),
|
|
3573
3573
|
onDismiss && /* @__PURE__ */ React24.createElement(Alert.Dismiss, { onClick: onDismiss })
|
|
3574
3574
|
);
|
|
3575
3575
|
};
|
|
@@ -3584,7 +3584,7 @@ var Banner2 = ({ type, title, children, action, onDismiss }) => {
|
|
|
3584
3584
|
"aria-describedby": descriptionID,
|
|
3585
3585
|
"aria-labelledby": title ? titleID : void 0
|
|
3586
3586
|
},
|
|
3587
|
-
/* @__PURE__ */ React24.createElement(Alert.Banner.Content, null, /* @__PURE__ */ React24.createElement(Typography2.Default, null, /* @__PURE__ */ React24.createElement(Typography2.DefaultStrong, { htmlTag: "span" }, title), children && " ", children), renderActions(action)),
|
|
3587
|
+
/* @__PURE__ */ React24.createElement(Alert.Banner.Content, null, /* @__PURE__ */ React24.createElement(Typography2.Default, null, /* @__PURE__ */ React24.createElement(Typography2.DefaultStrong, { htmlTag: "span" }, title), children && " ", children), renderActions(action, type)),
|
|
3588
3588
|
onDismiss && /* @__PURE__ */ React24.createElement(Alert.Banner.Dismiss, { onClick: onDismiss })
|
|
3589
3589
|
);
|
|
3590
3590
|
};
|
|
@@ -3832,7 +3832,7 @@ var Breadcrumbs = (props) => {
|
|
|
3832
3832
|
})));
|
|
3833
3833
|
};
|
|
3834
3834
|
var asCrumb = (Component, displayName, options = { isActive: false }) => {
|
|
3835
|
-
const Crumb2 = React30.forwardRef(({ icon, children, ...rest }, ref) => /* @__PURE__ */ React30.createElement(Component, { ref, ...rest, role: "link" }, /* @__PURE__ */ React30.createElement(
|
|
3835
|
+
const Crumb2 = React30.forwardRef(({ icon, children, ...rest }, ref) => /* @__PURE__ */ React30.createElement(Component, { ref, ...rest, role: "link", className: focusRingStyle() }, /* @__PURE__ */ React30.createElement(
|
|
3836
3836
|
"span",
|
|
3837
3837
|
{
|
|
3838
3838
|
className: clsx10("flex flex-row flex-nowrap items-center gap-x-3 whitespace-nowrap", {
|
|
@@ -5307,6 +5307,7 @@ var ChoiceChip = ({
|
|
|
5307
5307
|
name,
|
|
5308
5308
|
value,
|
|
5309
5309
|
disabled,
|
|
5310
|
+
"aria-label": ariaLabel,
|
|
5310
5311
|
...rest
|
|
5311
5312
|
}) => {
|
|
5312
5313
|
const [selected, setSelected] = useControlledState(checked, defaultChecked, onChange);
|
|
@@ -5314,7 +5315,7 @@ var ChoiceChip = ({
|
|
|
5314
5315
|
const handleChange = () => {
|
|
5315
5316
|
setSelected(!selected);
|
|
5316
5317
|
};
|
|
5317
|
-
return /* @__PURE__ */ React53.createElement("label", { className: label(), ...rest }, /* @__PURE__ */ React53.createElement(
|
|
5318
|
+
return /* @__PURE__ */ React53.createElement("label", { className: label(), "aria-label": ariaLabel, ...rest }, /* @__PURE__ */ React53.createElement(
|
|
5318
5319
|
"input",
|
|
5319
5320
|
{
|
|
5320
5321
|
type: selectionMode,
|
|
@@ -11053,7 +11054,7 @@ var modalStyles = tv24({
|
|
|
11053
11054
|
subtitle: "max-w-[700px]",
|
|
11054
11055
|
closeButtonContainer: "absolute top-[24px] right-[28px]",
|
|
11055
11056
|
body: [
|
|
11056
|
-
"grow overflow-y-auto text-default flex flex-col",
|
|
11057
|
+
"grow overflow-y-auto text-default flex flex-col outline-none",
|
|
11057
11058
|
bodyMaskClasses({ position: "before" }),
|
|
11058
11059
|
bodyMaskClasses({ position: "after" })
|
|
11059
11060
|
],
|
|
@@ -11757,7 +11758,7 @@ var EmptyStateLayout = /* @__PURE__ */ ((EmptyStateLayout2) => {
|
|
|
11757
11758
|
})(EmptyStateLayout || {});
|
|
11758
11759
|
var isVerticalLayout = (layout) => layout === "vertical" /* Vertical */;
|
|
11759
11760
|
var emptyStateClasses = tv25({
|
|
11760
|
-
base: "Aquarium-EmptyState rounded flex bg-transparent border-default py-l6
|
|
11761
|
+
base: "Aquarium-EmptyState rounded flex bg-transparent border-default py-l6 w-full",
|
|
11761
11762
|
variants: {
|
|
11762
11763
|
layout: {
|
|
11763
11764
|
vertical: "flex-col justify-center items-center gap-7 text-center px-9",
|
|
@@ -11770,7 +11771,7 @@ var emptyStateClasses = tv25({
|
|
|
11770
11771
|
},
|
|
11771
11772
|
fullHeight: {
|
|
11772
11773
|
true: "h-full",
|
|
11773
|
-
false: ""
|
|
11774
|
+
false: "max-h-[800px]"
|
|
11774
11775
|
}
|
|
11775
11776
|
},
|
|
11776
11777
|
defaultVariants: {
|
|
@@ -12066,7 +12067,7 @@ var Modal2 = ({
|
|
|
12066
12067
|
className: styles.overlay({ className: "Aquarium-Modal" })
|
|
12067
12068
|
},
|
|
12068
12069
|
size !== "screen" && /* @__PURE__ */ React102.createElement(Modal.BackDrop, { className: styles.backdrop() }),
|
|
12069
|
-
/* @__PURE__ */ React102.createElement(AriaModal2, { className: styles.dialog() }, /* @__PURE__ */ React102.createElement(AriaDialog3, { className: "flex flex-col grow overflow-y-auto" }, ({ close }) => /* @__PURE__ */ React102.createElement(React102.Fragment, null, /* @__PURE__ */ React102.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React102.createElement(Button2.Icon, { "aria-label": "Close", icon: cross_default, onClick: close })), headerImage !== void 0 && /* @__PURE__ */ React102.createElement(Modal.HeaderImage, { backgroundImage: headerImage }), /* @__PURE__ */ React102.createElement(
|
|
12070
|
+
/* @__PURE__ */ React102.createElement(AriaModal2, { className: styles.dialog() }, /* @__PURE__ */ React102.createElement(AriaDialog3, { className: "flex flex-col grow overflow-y-auto outline-none" }, ({ close }) => /* @__PURE__ */ React102.createElement(React102.Fragment, null, /* @__PURE__ */ React102.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React102.createElement(Button2.Icon, { "aria-label": "Close", icon: cross_default, onClick: close })), headerImage !== void 0 && /* @__PURE__ */ React102.createElement(Modal.HeaderImage, { backgroundImage: headerImage }), /* @__PURE__ */ React102.createElement(
|
|
12070
12071
|
Modal.Header,
|
|
12071
12072
|
{
|
|
12072
12073
|
kind: "dialog",
|
|
@@ -13107,10 +13108,11 @@ var switchStyles = tv30({
|
|
|
13107
13108
|
variants: {
|
|
13108
13109
|
disabled: {
|
|
13109
13110
|
true: {
|
|
13110
|
-
input: "bg-medium checked:opacity-50 checked:bg-
|
|
13111
|
+
input: "bg-medium checked:opacity-50 checked:bg-intense",
|
|
13112
|
+
thumb: "peer-checked/switch:text-inactive"
|
|
13111
13113
|
},
|
|
13112
13114
|
false: {
|
|
13113
|
-
input: "bg-
|
|
13115
|
+
input: "bg-medium hover:bg-intense checked:bg-primary-graphic hover:checked:bg-primary-inverse",
|
|
13114
13116
|
thumb: "shadow-4dp"
|
|
13115
13117
|
}
|
|
13116
13118
|
}
|
|
@@ -13181,8 +13183,8 @@ import { tv as tv31 } from "tailwind-variants";
|
|
|
13181
13183
|
var sectionStyles = tv31({
|
|
13182
13184
|
slots: {
|
|
13183
13185
|
base: "border border-muted rounded-lg",
|
|
13184
|
-
header: "px-5 py-
|
|
13185
|
-
titleContainer: "grow grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 items-center",
|
|
13186
|
+
header: "px-5 py-3 flex gap-5 justify-between items-center rounded-t-lg",
|
|
13187
|
+
titleContainer: "grow grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 items-center min-h-[38px]",
|
|
13186
13188
|
actions: "flex gap-4 justify-end",
|
|
13187
13189
|
body: "p-5 rounded-lg"
|
|
13188
13190
|
},
|
package/dist/tokens.json
CHANGED
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
87
|
"borderColor": {
|
|
88
|
-
"muted": "rgba(
|
|
89
|
-
"default": "rgba(
|
|
88
|
+
"muted": "rgba(225,225,225,1)",
|
|
89
|
+
"default": "rgba(181,181,183,1)",
|
|
90
90
|
"intense": "rgba(45,46,48,1)",
|
|
91
91
|
"primary": {
|
|
92
92
|
"muted": "rgba(183,242,241,1)",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"default": "rgba(0,128,124,1)",
|
|
100
100
|
"active": "rgba(46,208,205,1)",
|
|
101
101
|
"hover": "rgba(27,178,176,1)",
|
|
102
|
-
"disabled": "rgba(
|
|
102
|
+
"disabled": "rgba(225,225,225,1)"
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
105
|
"info": {
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
"0": "rgba(250,250,250,1)",
|
|
261
261
|
"5": "rgba(244,244,244,1)",
|
|
262
262
|
"10": "rgba(235,235,235,1)",
|
|
263
|
-
"20": "rgba(
|
|
263
|
+
"20": "rgba(225,225,225,1)",
|
|
264
264
|
"30": "rgba(181,181,183,1)",
|
|
265
265
|
"40": "rgba(145,146,148,1)",
|
|
266
266
|
"50": "rgba(104,105,107,1)",
|