@aivenio/aquarium 1.22.0-rc1 → 1.22.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 +13 -13
- package/dist/_variables_timescale.scss +1 -1
- package/dist/atoms.cjs +48 -47
- package/dist/atoms.mjs +48 -47
- package/dist/src/atoms/Alert/Alert.js +2 -2
- package/dist/src/atoms/Banner/Banner.js +3 -3
- package/dist/src/atoms/Checkbox/Checkbox.js +6 -6
- package/dist/src/atoms/RadioButton/RadioButton.js +4 -4
- package/dist/src/atoms/Switch/Switch.js +3 -3
- package/dist/src/molecules/Banner/Banner.js +2 -2
- package/dist/src/molecules/Breadcrumbs/Breadcrumbs.js +2 -2
- package/dist/src/molecules/Button/Button.js +6 -7
- package/dist/src/molecules/Link/Link.js +1 -1
- package/dist/src/molecules/Navigation/Navigation.js +2 -2
- package/dist/src/molecules/Tabs/Tabs.js +3 -3
- package/dist/src/utils/constants.js +3 -3
- package/dist/styles.css +128 -155
- package/dist/styles_timescaledb.css +107 -134
- package/dist/system.cjs +58 -54
- package/dist/system.mjs +58 -54
- package/dist/tailwind.theme.json +12 -12
- package/dist/tokens.json +12 -12
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/tailwindGenerated.d.ts +1 -1
- package/package.json +4 -4
package/dist/system.cjs
CHANGED
@@ -714,18 +714,18 @@ var require_tokens = __commonJS({
|
|
714
714
|
"secondary-10": "#fee8d0",
|
715
715
|
"secondary-5": "#fff3e8",
|
716
716
|
"secondary-0": "#fffbf8",
|
717
|
-
"primary-100": "
|
718
|
-
"primary-90": "#
|
719
|
-
"primary-80": "#
|
720
|
-
"primary-70": "#
|
721
|
-
"primary-60": "#
|
722
|
-
"primary-50": "#
|
723
|
-
"primary-40": "#
|
724
|
-
"primary-30": "#
|
725
|
-
"primary-20": "#
|
726
|
-
"primary-10": "#
|
727
|
-
"primary-5": "#
|
728
|
-
"primary-0": "#
|
717
|
+
"primary-100": "#a70045",
|
718
|
+
"primary-90": "#c60443",
|
719
|
+
"primary-80": "#e41a4a",
|
720
|
+
"primary-70": "#ff3554",
|
721
|
+
"primary-60": "#ff5275",
|
722
|
+
"primary-50": "#ff6f94",
|
723
|
+
"primary-40": "#ff8db0",
|
724
|
+
"primary-30": "#ffa9c9",
|
725
|
+
"primary-20": "#ffc4de",
|
726
|
+
"primary-10": "#ffdeef",
|
727
|
+
"primary-5": "#ffe8f4",
|
728
|
+
"primary-0": "#fff9fc",
|
729
729
|
"grey-20": "#d2d2d6"
|
730
730
|
},
|
731
731
|
typography: {
|
@@ -5798,18 +5798,18 @@ var tailwind_theme_default = {
|
|
5798
5798
|
"secondary-10": "var(--aquarium-colors-secondary-10, #fee8d0)",
|
5799
5799
|
"secondary-5": "var(--aquarium-colors-secondary-5, #fff3e8)",
|
5800
5800
|
"secondary-0": "var(--aquarium-colors-secondary-0, #fffbf8)",
|
5801
|
-
"primary-100": "var(--aquarium-colors-primary-100,
|
5802
|
-
"primary-90": "var(--aquarium-colors-primary-90, #
|
5803
|
-
"primary-80": "var(--aquarium-colors-primary-80, #
|
5804
|
-
"primary-70": "var(--aquarium-colors-primary-70, #
|
5805
|
-
"primary-60": "var(--aquarium-colors-primary-60, #
|
5806
|
-
"primary-50": "var(--aquarium-colors-primary-50, #
|
5807
|
-
"primary-40": "var(--aquarium-colors-primary-40, #
|
5808
|
-
"primary-30": "var(--aquarium-colors-primary-30, #
|
5809
|
-
"primary-20": "var(--aquarium-colors-primary-20, #
|
5810
|
-
"primary-10": "var(--aquarium-colors-primary-10, #
|
5811
|
-
"primary-5": "var(--aquarium-colors-primary-5, #
|
5812
|
-
"primary-0": "var(--aquarium-colors-primary-0, #
|
5801
|
+
"primary-100": "var(--aquarium-colors-primary-100, #a70045)",
|
5802
|
+
"primary-90": "var(--aquarium-colors-primary-90, #c60443)",
|
5803
|
+
"primary-80": "var(--aquarium-colors-primary-80, #e41a4a)",
|
5804
|
+
"primary-70": "var(--aquarium-colors-primary-70, #ff3554)",
|
5805
|
+
"primary-60": "var(--aquarium-colors-primary-60, #ff5275)",
|
5806
|
+
"primary-50": "var(--aquarium-colors-primary-50, #ff6f94)",
|
5807
|
+
"primary-40": "var(--aquarium-colors-primary-40, #ff8db0)",
|
5808
|
+
"primary-30": "var(--aquarium-colors-primary-30, #ffa9c9)",
|
5809
|
+
"primary-20": "var(--aquarium-colors-primary-20, #ffc4de)",
|
5810
|
+
"primary-10": "var(--aquarium-colors-primary-10, #ffdeef)",
|
5811
|
+
"primary-5": "var(--aquarium-colors-primary-5, #ffe8f4)",
|
5812
|
+
"primary-0": "var(--aquarium-colors-primary-0, #fff9fc)",
|
5813
5813
|
"grey-20": "var(--aquarium-colors-grey-20, #d2d2d6)",
|
5814
5814
|
transparent: "var(--aquarium-colors-transparent, transparent)",
|
5815
5815
|
white: "var(--aquarium-colors-white, white)",
|
@@ -7132,12 +7132,9 @@ var getCommonInputStyles = ({ readOnly, valid }) => tw(
|
|
7132
7132
|
}
|
7133
7133
|
);
|
7134
7134
|
var ghostButtonStyle = tw(
|
7135
|
-
"text-primary-80 active:text-primary-70 focus-visible:text-
|
7136
|
-
);
|
7137
|
-
var linkStyle = classNames(
|
7138
|
-
ghostButtonStyle,
|
7139
|
-
tw("visited:text-primary-80 underline hover:no-underline focusable")
|
7135
|
+
"text-primary-80 active:text-primary-70 focus-visible:text-grey-90 hover:text-primary-70 disabled:text-primary-40"
|
7140
7136
|
);
|
7137
|
+
var linkStyle = classNames(ghostButtonStyle, tw("visited:text-primary-80 focusable"));
|
7141
7138
|
|
7142
7139
|
// src/utils/string.ts
|
7143
7140
|
var capitalize = (a) => a.charAt(0).toUpperCase() + a.slice(1);
|
@@ -7147,12 +7144,12 @@ var import_chevronDown3 = __toESM(require_chevronDown());
|
|
7147
7144
|
var import_loading2 = __toESM(require_loading());
|
7148
7145
|
var COLOR_CLASSNAMES = {
|
7149
7146
|
"primary": tw(
|
7150
|
-
"text-white bg-primary-80 active:bg-primary-90 active:ring-0 focus-visible:ring-2 focus-visible:ring-primary-
|
7147
|
+
"text-white bg-primary-80 active:bg-primary-90 active:ring-0 focus-visible:ring-2 focus-visible:ring-primary-100 focus-visible:ring-inset hover:bg-primary-70 disabled:bg-primary-5"
|
7151
7148
|
),
|
7152
7149
|
"secondary": tw(
|
7153
|
-
"text-
|
7154
|
-
"focus-visible:ring-2 focus-visible:ring-
|
7155
|
-
"hover:ring-
|
7150
|
+
"text-grey-60 bg-white ring-1 ring-grey-30 ring-inset active:bg-grey-5 active:ring-grey-50 active:text-grey-80",
|
7151
|
+
"focus-visible:ring-2 focus-visible:ring-grey-50 focus-visible:text-grey-80",
|
7152
|
+
"hover:ring-grey-50 hover:text-grey-80 disabled:text-grey-30 disabled:bg-grey-0 disabled:ring-grey-20"
|
7156
7153
|
),
|
7157
7154
|
"ghost": ghostButtonStyle,
|
7158
7155
|
"text": ghostButtonStyle,
|
@@ -7160,12 +7157,15 @@ var COLOR_CLASSNAMES = {
|
|
7160
7157
|
"text-grey-60 active:text-grey-50 focus-visible:text-grey-80 hover:text-grey-80 disabled:text-grey-30"
|
7161
7158
|
)
|
7162
7159
|
};
|
7163
|
-
var LoadingSpinner = ({
|
7160
|
+
var LoadingSpinner = ({
|
7161
|
+
size = "20px",
|
7162
|
+
kind = "primary"
|
7163
|
+
}) => {
|
7164
7164
|
return /* @__PURE__ */ import_react19.default.createElement(InlineIcon, {
|
7165
7165
|
icon: import_loading2.default,
|
7166
7166
|
width: size,
|
7167
7167
|
height: size,
|
7168
|
-
color: "primary-
|
7168
|
+
color: kind === "primary" ? "primary-60" : "grey-60",
|
7169
7169
|
"data-testid": "loading-button"
|
7170
7170
|
});
|
7171
7171
|
};
|
@@ -7263,7 +7263,6 @@ var asButton = (Component, isDropdownButton) => {
|
|
7263
7263
|
"text-grey-70 p-2 active:text-grey-70 active:bg-transparent hover:text-grey-90 hover:bg-grey-0 focus-visible:text-grey-90 focus-visible:bg-grey-0 disabled:text-grey-20 disabled:bg-transparent": isIconOnlyButton,
|
7264
7264
|
"typography-default-strong": !dense && !isIconOnlyButton && kind !== "text",
|
7265
7265
|
"typography-small-strong": dense && !isIconOnlyButton && kind !== "text",
|
7266
|
-
"underline hover:no-underline": kind === "text",
|
7267
7266
|
"py-3 px-4": !dense && isButton,
|
7268
7267
|
"py-2 px-3": dense && isButton,
|
7269
7268
|
"py-3": !dense && isGhost,
|
@@ -7280,7 +7279,8 @@ var asButton = (Component, isDropdownButton) => {
|
|
7280
7279
|
className: tw("absolute left-1/2 top-0 bottom-0 flex"),
|
7281
7280
|
style: { transform: "translate(-50%)" }
|
7282
7281
|
}, /* @__PURE__ */ import_react19.default.createElement(LoadingSpinner, {
|
7283
|
-
size: iconSize
|
7282
|
+
size: iconSize,
|
7283
|
+
kind: kind === "primary" ? "primary" : "secondary"
|
7284
7284
|
})), /* @__PURE__ */ import_react19.default.createElement("div", {
|
7285
7285
|
className: tw({ invisible: loading2 })
|
7286
7286
|
}, buttonContent())) : buttonContent());
|
@@ -7440,6 +7440,7 @@ var Alert = (_a) => {
|
|
7440
7440
|
"dense"
|
7441
7441
|
]);
|
7442
7442
|
return /* @__PURE__ */ import_react21.default.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7443
|
+
role: type === "error" || type === "warning" ? "alert" : "status",
|
7443
7444
|
className: classNames(
|
7444
7445
|
tw("rounded grid grid-cols-[auto_1fr_auto] items-center gap-x-3 gap-y-2", {
|
7445
7446
|
"bg-error-5": type === "error",
|
@@ -7656,10 +7657,10 @@ var Banner = (_a) => {
|
|
7656
7657
|
}), children);
|
7657
7658
|
};
|
7658
7659
|
Banner.Title = (_a) => {
|
7659
|
-
var _b = _a, { children, className, layout } = _b, rest = __objRest(_b, ["children", "className", "layout"]);
|
7660
|
+
var _b = _a, { children, className, layout, titleVariant = "primary" } = _b, rest = __objRest(_b, ["children", "className", "layout", "titleVariant"]);
|
7660
7661
|
return /* @__PURE__ */ import_react26.default.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
7661
7662
|
variant: "subheading",
|
7662
|
-
color: "grey-100",
|
7663
|
+
color: titleVariant === "secondary" ? "primary-80" : "grey-100",
|
7663
7664
|
className: classNames(
|
7664
7665
|
className,
|
7665
7666
|
tw("whitespace-nowrap", {
|
@@ -7731,7 +7732,8 @@ var createBanner = (displayName, opts = {}) => {
|
|
7731
7732
|
}, /* @__PURE__ */ import_react27.default.createElement(Banner.ContentContainer, {
|
7732
7733
|
layout
|
7733
7734
|
}, /* @__PURE__ */ import_react27.default.createElement(Banner.Title, {
|
7734
|
-
layout
|
7735
|
+
layout,
|
7736
|
+
titleVariant: opts.isOneLineBanner ? "secondary" : "primary"
|
7735
7737
|
}, title), /* @__PURE__ */ import_react27.default.createElement(Banner.Description, {
|
7736
7738
|
flexGrow: isDismissable ? false : true
|
7737
7739
|
}, children || description), action && /* @__PURE__ */ import_react27.default.createElement(Banner.Actions, {
|
@@ -7801,7 +7803,7 @@ var asCrumb = (Component, displayName, options = { isActive: false }) => {
|
|
7801
7803
|
}), /* @__PURE__ */ import_react28.default.createElement("span", {
|
7802
7804
|
className: (0, import_classnames3.default)(
|
7803
7805
|
tw("flex flex-row flex-nowrap items-center gap-x-3 ", {
|
7804
|
-
"text-primary-80 hover:text-primary-70
|
7806
|
+
"text-primary-80 hover:text-primary-70": !options.isActive,
|
7805
7807
|
"text-grey-90": options.isActive
|
7806
7808
|
})
|
7807
7809
|
)
|
@@ -8505,7 +8507,7 @@ var Checkbox = import_react39.default.forwardRef(
|
|
8505
8507
|
var _b = _a, { id, children, name, disabled = false, readOnly = false, indeterminate = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly", "indeterminate"]);
|
8506
8508
|
return /* @__PURE__ */ import_react39.default.createElement("span", {
|
8507
8509
|
className: classNames(tw("inline-flex justify-center items-center self-center relative"), {
|
8508
|
-
"hover:border-grey-50 peer-checked:border-
|
8510
|
+
"hover:border-grey-50 peer-checked:border-navyBlue-100": !disabled,
|
8509
8511
|
"border-grey-5": disabled
|
8510
8512
|
})
|
8511
8513
|
}, /* @__PURE__ */ import_react39.default.createElement("input", __spreadProps(__spreadValues({
|
@@ -8516,8 +8518,8 @@ var Checkbox = import_react39.default.forwardRef(
|
|
8516
8518
|
}, props), {
|
8517
8519
|
className: classNames(
|
8518
8520
|
tw("peer appearance-none outline-none w-5 h-5", "rounded-sm border border-transparent", {
|
8519
|
-
"cursor-pointer checked:bg-
|
8520
|
-
"cursor-not-allowed bg-grey-0
|
8521
|
+
"cursor-pointer checked:bg-navyBlue-100": !disabled,
|
8522
|
+
"cursor-not-allowed bg-grey-0": disabled
|
8521
8523
|
})
|
8522
8524
|
),
|
8523
8525
|
readOnly,
|
@@ -8532,8 +8534,8 @@ var Checkbox = import_react39.default.forwardRef(
|
|
8532
8534
|
"rounded-sm border border-grey-20 peer-focus:border-info-70"
|
8533
8535
|
),
|
8534
8536
|
{
|
8535
|
-
"peer-hover:border-grey-50 peer-checked:text-white peer-checked:[&>path]:stroke-white peer-checked:border-
|
8536
|
-
"border-grey-5 peer-checked:text-
|
8537
|
+
"peer-hover:border-grey-50 peer-checked:text-white peer-checked:[&>path]:stroke-white peer-checked:border-navyBlue-100": !disabled,
|
8538
|
+
"border-grey-5 peer-checked:text-grey-30 peer-checked:[&>path]:stroke-grey-30": disabled
|
8537
8539
|
}
|
8538
8540
|
)
|
8539
8541
|
}));
|
@@ -9783,10 +9785,10 @@ var RadioButton = import_react59.default.forwardRef(
|
|
9783
9785
|
tw(
|
9784
9786
|
"inline-flex justify-center items-center self-center appearance-none",
|
9785
9787
|
"w-5 h-5 p-[3px] rounded-full cursor-pointer border border-grey-20",
|
9786
|
-
"outline-none focus:border-info-70 checked:bg-
|
9788
|
+
"outline-none focus:border-info-70 checked:bg-navyBlue-100 checked:shadow-whiteInset",
|
9787
9789
|
{
|
9788
|
-
"hover:border-grey-50 checked:border-
|
9789
|
-
"cursor-not-allowed border-grey-5 bg-grey-0 checked:bg-opacity-40
|
9790
|
+
"hover:border-grey-50 checked:border-navyBlue-100": !disabled,
|
9791
|
+
"cursor-not-allowed border-grey-5 bg-grey-0 checked:bg-opacity-40": disabled
|
9790
9792
|
}
|
9791
9793
|
)
|
9792
9794
|
),
|
@@ -10991,12 +10993,12 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
|
|
10991
10993
|
if (status === "warning") {
|
10992
10994
|
statusIcon = /* @__PURE__ */ import_react81.default.createElement(InlineIcon, {
|
10993
10995
|
icon: import_warningSign4.default,
|
10994
|
-
color:
|
10996
|
+
color: "warning-80"
|
10995
10997
|
});
|
10996
10998
|
} else if (status === "error") {
|
10997
10999
|
statusIcon = /* @__PURE__ */ import_react81.default.createElement(InlineIcon, {
|
10998
11000
|
icon: import_warningSign4.default,
|
10999
|
-
color:
|
11001
|
+
color: "error-50"
|
11000
11002
|
});
|
11001
11003
|
}
|
11002
11004
|
const tab = /* @__PURE__ */ import_react81.default.createElement(Component, __spreadValues({
|
@@ -11982,7 +11984,9 @@ var Navigation2 = (_a) => {
|
|
11982
11984
|
var Item6 = (_a) => {
|
11983
11985
|
var _b = _a, { children, icon } = _b, rest = __objRest(_b, ["children", "icon"]);
|
11984
11986
|
return /* @__PURE__ */ import_react88.default.createElement(Navigation.Item, __spreadValues({}, rest), icon && /* @__PURE__ */ import_react88.default.createElement(InlineIcon, {
|
11985
|
-
icon
|
11987
|
+
icon,
|
11988
|
+
width: "20px",
|
11989
|
+
height: "20px"
|
11986
11990
|
}), children);
|
11987
11991
|
};
|
11988
11992
|
Navigation2.Item = Item6;
|
@@ -12989,8 +12993,8 @@ var Switch = import_react104.default.forwardRef(
|
|
12989
12993
|
"outline-none focus:border border-info-70 bg-grey-20",
|
12990
12994
|
"cursor-pointer disabled:cursor-not-allowed",
|
12991
12995
|
{
|
12992
|
-
"hover:bg-grey-30 checked:bg-
|
12993
|
-
"bg-grey-5 checked:opacity-40
|
12996
|
+
"hover:bg-grey-30 checked:bg-navyBlue-100 hover:checked:bg-navyBlue-100": !disabled,
|
12997
|
+
"bg-grey-5 checked:opacity-40": disabled
|
12994
12998
|
}
|
12995
12999
|
)
|
12996
13000
|
),
|
package/dist/system.mjs
CHANGED
@@ -712,18 +712,18 @@ var require_tokens = __commonJS({
|
|
712
712
|
"secondary-10": "#fee8d0",
|
713
713
|
"secondary-5": "#fff3e8",
|
714
714
|
"secondary-0": "#fffbf8",
|
715
|
-
"primary-100": "
|
716
|
-
"primary-90": "#
|
717
|
-
"primary-80": "#
|
718
|
-
"primary-70": "#
|
719
|
-
"primary-60": "#
|
720
|
-
"primary-50": "#
|
721
|
-
"primary-40": "#
|
722
|
-
"primary-30": "#
|
723
|
-
"primary-20": "#
|
724
|
-
"primary-10": "#
|
725
|
-
"primary-5": "#
|
726
|
-
"primary-0": "#
|
715
|
+
"primary-100": "#a70045",
|
716
|
+
"primary-90": "#c60443",
|
717
|
+
"primary-80": "#e41a4a",
|
718
|
+
"primary-70": "#ff3554",
|
719
|
+
"primary-60": "#ff5275",
|
720
|
+
"primary-50": "#ff6f94",
|
721
|
+
"primary-40": "#ff8db0",
|
722
|
+
"primary-30": "#ffa9c9",
|
723
|
+
"primary-20": "#ffc4de",
|
724
|
+
"primary-10": "#ffdeef",
|
725
|
+
"primary-5": "#ffe8f4",
|
726
|
+
"primary-0": "#fff9fc",
|
727
727
|
"grey-20": "#d2d2d6"
|
728
728
|
},
|
729
729
|
typography: {
|
@@ -5656,18 +5656,18 @@ var tailwind_theme_default = {
|
|
5656
5656
|
"secondary-10": "var(--aquarium-colors-secondary-10, #fee8d0)",
|
5657
5657
|
"secondary-5": "var(--aquarium-colors-secondary-5, #fff3e8)",
|
5658
5658
|
"secondary-0": "var(--aquarium-colors-secondary-0, #fffbf8)",
|
5659
|
-
"primary-100": "var(--aquarium-colors-primary-100,
|
5660
|
-
"primary-90": "var(--aquarium-colors-primary-90, #
|
5661
|
-
"primary-80": "var(--aquarium-colors-primary-80, #
|
5662
|
-
"primary-70": "var(--aquarium-colors-primary-70, #
|
5663
|
-
"primary-60": "var(--aquarium-colors-primary-60, #
|
5664
|
-
"primary-50": "var(--aquarium-colors-primary-50, #
|
5665
|
-
"primary-40": "var(--aquarium-colors-primary-40, #
|
5666
|
-
"primary-30": "var(--aquarium-colors-primary-30, #
|
5667
|
-
"primary-20": "var(--aquarium-colors-primary-20, #
|
5668
|
-
"primary-10": "var(--aquarium-colors-primary-10, #
|
5669
|
-
"primary-5": "var(--aquarium-colors-primary-5, #
|
5670
|
-
"primary-0": "var(--aquarium-colors-primary-0, #
|
5659
|
+
"primary-100": "var(--aquarium-colors-primary-100, #a70045)",
|
5660
|
+
"primary-90": "var(--aquarium-colors-primary-90, #c60443)",
|
5661
|
+
"primary-80": "var(--aquarium-colors-primary-80, #e41a4a)",
|
5662
|
+
"primary-70": "var(--aquarium-colors-primary-70, #ff3554)",
|
5663
|
+
"primary-60": "var(--aquarium-colors-primary-60, #ff5275)",
|
5664
|
+
"primary-50": "var(--aquarium-colors-primary-50, #ff6f94)",
|
5665
|
+
"primary-40": "var(--aquarium-colors-primary-40, #ff8db0)",
|
5666
|
+
"primary-30": "var(--aquarium-colors-primary-30, #ffa9c9)",
|
5667
|
+
"primary-20": "var(--aquarium-colors-primary-20, #ffc4de)",
|
5668
|
+
"primary-10": "var(--aquarium-colors-primary-10, #ffdeef)",
|
5669
|
+
"primary-5": "var(--aquarium-colors-primary-5, #ffe8f4)",
|
5670
|
+
"primary-0": "var(--aquarium-colors-primary-0, #fff9fc)",
|
5671
5671
|
"grey-20": "var(--aquarium-colors-grey-20, #d2d2d6)",
|
5672
5672
|
transparent: "var(--aquarium-colors-transparent, transparent)",
|
5673
5673
|
white: "var(--aquarium-colors-white, white)",
|
@@ -6990,12 +6990,9 @@ var getCommonInputStyles = ({ readOnly, valid }) => tw(
|
|
6990
6990
|
}
|
6991
6991
|
);
|
6992
6992
|
var ghostButtonStyle = tw(
|
6993
|
-
"text-primary-80 active:text-primary-70 focus-visible:text-
|
6994
|
-
);
|
6995
|
-
var linkStyle = classNames(
|
6996
|
-
ghostButtonStyle,
|
6997
|
-
tw("visited:text-primary-80 underline hover:no-underline focusable")
|
6993
|
+
"text-primary-80 active:text-primary-70 focus-visible:text-grey-90 hover:text-primary-70 disabled:text-primary-40"
|
6998
6994
|
);
|
6995
|
+
var linkStyle = classNames(ghostButtonStyle, tw("visited:text-primary-80 focusable"));
|
6999
6996
|
|
7000
6997
|
// src/utils/string.ts
|
7001
6998
|
var capitalize = (a) => a.charAt(0).toUpperCase() + a.slice(1);
|
@@ -7005,12 +7002,12 @@ var import_chevronDown3 = __toESM(require_chevronDown());
|
|
7005
7002
|
var import_loading2 = __toESM(require_loading());
|
7006
7003
|
var COLOR_CLASSNAMES = {
|
7007
7004
|
"primary": tw(
|
7008
|
-
"text-white bg-primary-80 active:bg-primary-90 active:ring-0 focus-visible:ring-2 focus-visible:ring-primary-
|
7005
|
+
"text-white bg-primary-80 active:bg-primary-90 active:ring-0 focus-visible:ring-2 focus-visible:ring-primary-100 focus-visible:ring-inset hover:bg-primary-70 disabled:bg-primary-5"
|
7009
7006
|
),
|
7010
7007
|
"secondary": tw(
|
7011
|
-
"text-
|
7012
|
-
"focus-visible:ring-2 focus-visible:ring-
|
7013
|
-
"hover:ring-
|
7008
|
+
"text-grey-60 bg-white ring-1 ring-grey-30 ring-inset active:bg-grey-5 active:ring-grey-50 active:text-grey-80",
|
7009
|
+
"focus-visible:ring-2 focus-visible:ring-grey-50 focus-visible:text-grey-80",
|
7010
|
+
"hover:ring-grey-50 hover:text-grey-80 disabled:text-grey-30 disabled:bg-grey-0 disabled:ring-grey-20"
|
7014
7011
|
),
|
7015
7012
|
"ghost": ghostButtonStyle,
|
7016
7013
|
"text": ghostButtonStyle,
|
@@ -7018,12 +7015,15 @@ var COLOR_CLASSNAMES = {
|
|
7018
7015
|
"text-grey-60 active:text-grey-50 focus-visible:text-grey-80 hover:text-grey-80 disabled:text-grey-30"
|
7019
7016
|
)
|
7020
7017
|
};
|
7021
|
-
var LoadingSpinner = ({
|
7018
|
+
var LoadingSpinner = ({
|
7019
|
+
size = "20px",
|
7020
|
+
kind = "primary"
|
7021
|
+
}) => {
|
7022
7022
|
return /* @__PURE__ */ React15.createElement(InlineIcon, {
|
7023
7023
|
icon: import_loading2.default,
|
7024
7024
|
width: size,
|
7025
7025
|
height: size,
|
7026
|
-
color: "primary-
|
7026
|
+
color: kind === "primary" ? "primary-60" : "grey-60",
|
7027
7027
|
"data-testid": "loading-button"
|
7028
7028
|
});
|
7029
7029
|
};
|
@@ -7121,7 +7121,6 @@ var asButton = (Component, isDropdownButton) => {
|
|
7121
7121
|
"text-grey-70 p-2 active:text-grey-70 active:bg-transparent hover:text-grey-90 hover:bg-grey-0 focus-visible:text-grey-90 focus-visible:bg-grey-0 disabled:text-grey-20 disabled:bg-transparent": isIconOnlyButton,
|
7122
7122
|
"typography-default-strong": !dense && !isIconOnlyButton && kind !== "text",
|
7123
7123
|
"typography-small-strong": dense && !isIconOnlyButton && kind !== "text",
|
7124
|
-
"underline hover:no-underline": kind === "text",
|
7125
7124
|
"py-3 px-4": !dense && isButton,
|
7126
7125
|
"py-2 px-3": dense && isButton,
|
7127
7126
|
"py-3": !dense && isGhost,
|
@@ -7138,7 +7137,8 @@ var asButton = (Component, isDropdownButton) => {
|
|
7138
7137
|
className: tw("absolute left-1/2 top-0 bottom-0 flex"),
|
7139
7138
|
style: { transform: "translate(-50%)" }
|
7140
7139
|
}, /* @__PURE__ */ React15.createElement(LoadingSpinner, {
|
7141
|
-
size: iconSize
|
7140
|
+
size: iconSize,
|
7141
|
+
kind: kind === "primary" ? "primary" : "secondary"
|
7142
7142
|
})), /* @__PURE__ */ React15.createElement("div", {
|
7143
7143
|
className: tw({ invisible: loading2 })
|
7144
7144
|
}, buttonContent())) : buttonContent());
|
@@ -7298,6 +7298,7 @@ var Alert = (_a) => {
|
|
7298
7298
|
"dense"
|
7299
7299
|
]);
|
7300
7300
|
return /* @__PURE__ */ React17.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7301
|
+
role: type === "error" || type === "warning" ? "alert" : "status",
|
7301
7302
|
className: classNames(
|
7302
7303
|
tw("rounded grid grid-cols-[auto_1fr_auto] items-center gap-x-3 gap-y-2", {
|
7303
7304
|
"bg-error-5": type === "error",
|
@@ -7514,10 +7515,10 @@ var Banner = (_a) => {
|
|
7514
7515
|
}), children);
|
7515
7516
|
};
|
7516
7517
|
Banner.Title = (_a) => {
|
7517
|
-
var _b = _a, { children, className, layout } = _b, rest = __objRest(_b, ["children", "className", "layout"]);
|
7518
|
+
var _b = _a, { children, className, layout, titleVariant = "primary" } = _b, rest = __objRest(_b, ["children", "className", "layout", "titleVariant"]);
|
7518
7519
|
return /* @__PURE__ */ React22.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
7519
7520
|
variant: "subheading",
|
7520
|
-
color: "grey-100",
|
7521
|
+
color: titleVariant === "secondary" ? "primary-80" : "grey-100",
|
7521
7522
|
className: classNames(
|
7522
7523
|
className,
|
7523
7524
|
tw("whitespace-nowrap", {
|
@@ -7589,7 +7590,8 @@ var createBanner = (displayName, opts = {}) => {
|
|
7589
7590
|
}, /* @__PURE__ */ React23.createElement(Banner.ContentContainer, {
|
7590
7591
|
layout
|
7591
7592
|
}, /* @__PURE__ */ React23.createElement(Banner.Title, {
|
7592
|
-
layout
|
7593
|
+
layout,
|
7594
|
+
titleVariant: opts.isOneLineBanner ? "secondary" : "primary"
|
7593
7595
|
}, title), /* @__PURE__ */ React23.createElement(Banner.Description, {
|
7594
7596
|
flexGrow: isDismissable ? false : true
|
7595
7597
|
}, children || description), action && /* @__PURE__ */ React23.createElement(Banner.Actions, {
|
@@ -7659,7 +7661,7 @@ var asCrumb = (Component, displayName, options = { isActive: false }) => {
|
|
7659
7661
|
}), /* @__PURE__ */ React24.createElement("span", {
|
7660
7662
|
className: classNames3(
|
7661
7663
|
tw("flex flex-row flex-nowrap items-center gap-x-3 ", {
|
7662
|
-
"text-primary-80 hover:text-primary-70
|
7664
|
+
"text-primary-80 hover:text-primary-70": !options.isActive,
|
7663
7665
|
"text-grey-90": options.isActive
|
7664
7666
|
})
|
7665
7667
|
)
|
@@ -8363,7 +8365,7 @@ var Checkbox = React34.forwardRef(
|
|
8363
8365
|
var _b = _a, { id, children, name, disabled = false, readOnly = false, indeterminate = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly", "indeterminate"]);
|
8364
8366
|
return /* @__PURE__ */ React34.createElement("span", {
|
8365
8367
|
className: classNames(tw("inline-flex justify-center items-center self-center relative"), {
|
8366
|
-
"hover:border-grey-50 peer-checked:border-
|
8368
|
+
"hover:border-grey-50 peer-checked:border-navyBlue-100": !disabled,
|
8367
8369
|
"border-grey-5": disabled
|
8368
8370
|
})
|
8369
8371
|
}, /* @__PURE__ */ React34.createElement("input", __spreadProps(__spreadValues({
|
@@ -8374,8 +8376,8 @@ var Checkbox = React34.forwardRef(
|
|
8374
8376
|
}, props), {
|
8375
8377
|
className: classNames(
|
8376
8378
|
tw("peer appearance-none outline-none w-5 h-5", "rounded-sm border border-transparent", {
|
8377
|
-
"cursor-pointer checked:bg-
|
8378
|
-
"cursor-not-allowed bg-grey-0
|
8379
|
+
"cursor-pointer checked:bg-navyBlue-100": !disabled,
|
8380
|
+
"cursor-not-allowed bg-grey-0": disabled
|
8379
8381
|
})
|
8380
8382
|
),
|
8381
8383
|
readOnly,
|
@@ -8390,8 +8392,8 @@ var Checkbox = React34.forwardRef(
|
|
8390
8392
|
"rounded-sm border border-grey-20 peer-focus:border-info-70"
|
8391
8393
|
),
|
8392
8394
|
{
|
8393
|
-
"peer-hover:border-grey-50 peer-checked:text-white peer-checked:[&>path]:stroke-white peer-checked:border-
|
8394
|
-
"border-grey-5 peer-checked:text-
|
8395
|
+
"peer-hover:border-grey-50 peer-checked:text-white peer-checked:[&>path]:stroke-white peer-checked:border-navyBlue-100": !disabled,
|
8396
|
+
"border-grey-5 peer-checked:text-grey-30 peer-checked:[&>path]:stroke-grey-30": disabled
|
8395
8397
|
}
|
8396
8398
|
)
|
8397
8399
|
}));
|
@@ -9641,10 +9643,10 @@ var RadioButton = React54.forwardRef(
|
|
9641
9643
|
tw(
|
9642
9644
|
"inline-flex justify-center items-center self-center appearance-none",
|
9643
9645
|
"w-5 h-5 p-[3px] rounded-full cursor-pointer border border-grey-20",
|
9644
|
-
"outline-none focus:border-info-70 checked:bg-
|
9646
|
+
"outline-none focus:border-info-70 checked:bg-navyBlue-100 checked:shadow-whiteInset",
|
9645
9647
|
{
|
9646
|
-
"hover:border-grey-50 checked:border-
|
9647
|
-
"cursor-not-allowed border-grey-5 bg-grey-0 checked:bg-opacity-40
|
9648
|
+
"hover:border-grey-50 checked:border-navyBlue-100": !disabled,
|
9649
|
+
"cursor-not-allowed border-grey-5 bg-grey-0 checked:bg-opacity-40": disabled
|
9648
9650
|
}
|
9649
9651
|
)
|
9650
9652
|
),
|
@@ -10849,12 +10851,12 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
|
|
10849
10851
|
if (status === "warning") {
|
10850
10852
|
statusIcon = /* @__PURE__ */ React75.createElement(InlineIcon, {
|
10851
10853
|
icon: import_warningSign4.default,
|
10852
|
-
color:
|
10854
|
+
color: "warning-80"
|
10853
10855
|
});
|
10854
10856
|
} else if (status === "error") {
|
10855
10857
|
statusIcon = /* @__PURE__ */ React75.createElement(InlineIcon, {
|
10856
10858
|
icon: import_warningSign4.default,
|
10857
|
-
color:
|
10859
|
+
color: "error-50"
|
10858
10860
|
});
|
10859
10861
|
}
|
10860
10862
|
const tab = /* @__PURE__ */ React75.createElement(Component, __spreadValues({
|
@@ -11840,7 +11842,9 @@ var Navigation2 = (_a) => {
|
|
11840
11842
|
var Item6 = (_a) => {
|
11841
11843
|
var _b = _a, { children, icon } = _b, rest = __objRest(_b, ["children", "icon"]);
|
11842
11844
|
return /* @__PURE__ */ React82.createElement(Navigation.Item, __spreadValues({}, rest), icon && /* @__PURE__ */ React82.createElement(InlineIcon, {
|
11843
|
-
icon
|
11845
|
+
icon,
|
11846
|
+
width: "20px",
|
11847
|
+
height: "20px"
|
11844
11848
|
}), children);
|
11845
11849
|
};
|
11846
11850
|
Navigation2.Item = Item6;
|
@@ -12847,8 +12851,8 @@ var Switch = React98.forwardRef(
|
|
12847
12851
|
"outline-none focus:border border-info-70 bg-grey-20",
|
12848
12852
|
"cursor-pointer disabled:cursor-not-allowed",
|
12849
12853
|
{
|
12850
|
-
"hover:bg-grey-30 checked:bg-
|
12851
|
-
"bg-grey-5 checked:opacity-40
|
12854
|
+
"hover:bg-grey-30 checked:bg-navyBlue-100 hover:checked:bg-navyBlue-100": !disabled,
|
12855
|
+
"bg-grey-5 checked:opacity-40": disabled
|
12852
12856
|
}
|
12853
12857
|
)
|
12854
12858
|
),
|
package/dist/tailwind.theme.json
CHANGED
@@ -341,18 +341,18 @@
|
|
341
341
|
"secondary-10": "var(--aquarium-colors-secondary-10, #fee8d0)",
|
342
342
|
"secondary-5": "var(--aquarium-colors-secondary-5, #fff3e8)",
|
343
343
|
"secondary-0": "var(--aquarium-colors-secondary-0, #fffbf8)",
|
344
|
-
"primary-100": "var(--aquarium-colors-primary-100,
|
345
|
-
"primary-90": "var(--aquarium-colors-primary-90, #
|
346
|
-
"primary-80": "var(--aquarium-colors-primary-80, #
|
347
|
-
"primary-70": "var(--aquarium-colors-primary-70, #
|
348
|
-
"primary-60": "var(--aquarium-colors-primary-60, #
|
349
|
-
"primary-50": "var(--aquarium-colors-primary-50, #
|
350
|
-
"primary-40": "var(--aquarium-colors-primary-40, #
|
351
|
-
"primary-30": "var(--aquarium-colors-primary-30, #
|
352
|
-
"primary-20": "var(--aquarium-colors-primary-20, #
|
353
|
-
"primary-10": "var(--aquarium-colors-primary-10, #
|
354
|
-
"primary-5": "var(--aquarium-colors-primary-5, #
|
355
|
-
"primary-0": "var(--aquarium-colors-primary-0, #
|
344
|
+
"primary-100": "var(--aquarium-colors-primary-100, #a70045)",
|
345
|
+
"primary-90": "var(--aquarium-colors-primary-90, #c60443)",
|
346
|
+
"primary-80": "var(--aquarium-colors-primary-80, #e41a4a)",
|
347
|
+
"primary-70": "var(--aquarium-colors-primary-70, #ff3554)",
|
348
|
+
"primary-60": "var(--aquarium-colors-primary-60, #ff5275)",
|
349
|
+
"primary-50": "var(--aquarium-colors-primary-50, #ff6f94)",
|
350
|
+
"primary-40": "var(--aquarium-colors-primary-40, #ff8db0)",
|
351
|
+
"primary-30": "var(--aquarium-colors-primary-30, #ffa9c9)",
|
352
|
+
"primary-20": "var(--aquarium-colors-primary-20, #ffc4de)",
|
353
|
+
"primary-10": "var(--aquarium-colors-primary-10, #ffdeef)",
|
354
|
+
"primary-5": "var(--aquarium-colors-primary-5, #ffe8f4)",
|
355
|
+
"primary-0": "var(--aquarium-colors-primary-0, #fff9fc)",
|
356
356
|
"grey-20": "var(--aquarium-colors-grey-20, #d2d2d6)",
|
357
357
|
"transparent": "var(--aquarium-colors-transparent, transparent)",
|
358
358
|
"white": "var(--aquarium-colors-white, white)",
|
package/dist/tokens.json
CHANGED
@@ -633,18 +633,18 @@
|
|
633
633
|
"secondary-10": "#fee8d0",
|
634
634
|
"secondary-5": "#fff3e8",
|
635
635
|
"secondary-0": "#fffbf8",
|
636
|
-
"primary-100": "
|
637
|
-
"primary-90": "#
|
638
|
-
"primary-80": "#
|
639
|
-
"primary-70": "#
|
640
|
-
"primary-60": "#
|
641
|
-
"primary-50": "#
|
642
|
-
"primary-40": "#
|
643
|
-
"primary-30": "#
|
644
|
-
"primary-20": "#
|
645
|
-
"primary-10": "#
|
646
|
-
"primary-5": "#
|
647
|
-
"primary-0": "#
|
636
|
+
"primary-100": "#a70045",
|
637
|
+
"primary-90": "#c60443",
|
638
|
+
"primary-80": "#e41a4a",
|
639
|
+
"primary-70": "#ff3554",
|
640
|
+
"primary-60": "#ff5275",
|
641
|
+
"primary-50": "#ff6f94",
|
642
|
+
"primary-40": "#ff8db0",
|
643
|
+
"primary-30": "#ffa9c9",
|
644
|
+
"primary-20": "#ffc4de",
|
645
|
+
"primary-10": "#ffdeef",
|
646
|
+
"primary-5": "#ffe8f4",
|
647
|
+
"primary-0": "#fff9fc",
|
648
648
|
"grey-20": "#d2d2d6"
|
649
649
|
},
|
650
650
|
"typography": {
|