@aivenio/aquarium 1.28.0 → 1.30.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 +14 -15
- package/dist/_variables_timescale.scss +1 -2
- package/dist/atoms.cjs +83 -67
- package/dist/atoms.mjs +83 -67
- package/dist/src/atoms/Alert/Alert.js +6 -6
- package/dist/src/atoms/Banner/Banner.d.ts +1 -4
- package/dist/src/atoms/Banner/Banner.js +3 -3
- package/dist/src/atoms/Checkbox/Checkbox.js +7 -7
- package/dist/src/atoms/Modal/Modal.js +2 -2
- package/dist/src/atoms/RadioButton/RadioButton.js +4 -4
- package/dist/src/atoms/Switch/Switch.js +3 -3
- package/dist/src/icons/index.d.ts +1 -0
- package/dist/src/icons/index.js +2 -1
- package/dist/src/icons/roadmap.d.ts +9 -0
- package/dist/src/icons/roadmap.js +11 -0
- package/dist/src/molecules/Banner/Banner.js +2 -2
- package/dist/src/molecules/Box/Box.d.ts +2 -2
- package/dist/src/molecules/Breadcrumbs/Breadcrumbs.js +2 -2
- package/dist/src/molecules/Button/Button.js +8 -8
- package/dist/src/molecules/SegmentedControl/SegmentedControl.d.ts +9 -2
- package/dist/src/molecules/SegmentedControl/SegmentedControl.js +5 -4
- package/dist/src/molecules/Tabs/Tabs.js +3 -4
- package/dist/src/utils/constants.js +3 -3
- package/dist/styles.css +187 -144
- package/dist/styles_timescaledb.css +159 -116
- package/dist/system.cjs +99 -80
- package/dist/system.mjs +99 -80
- package/dist/tailwind.theme.json +13 -14
- package/dist/tokens.json +20 -22
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/tailwindGenerated.d.ts +1 -1
- package/package.json +3 -3
package/dist/system.cjs
CHANGED
@@ -166,8 +166,7 @@ var require_tokens = __commonJS({
|
|
166
166
|
"primary-20": "#b4e5fb",
|
167
167
|
"primary-10": "#e0f5fe",
|
168
168
|
"primary-5": "#effaff",
|
169
|
-
"primary-0": "#f9fdff"
|
170
|
-
"navyBlue-100": "#30375e"
|
169
|
+
"primary-0": "#f9fdff"
|
171
170
|
},
|
172
171
|
typography: {
|
173
172
|
sizes: [
|
@@ -700,6 +699,7 @@ var require_tokens = __commonJS({
|
|
700
699
|
"grey-50": "#787885",
|
701
700
|
"grey-40": "#9696a0",
|
702
701
|
"grey-30": "#b4b4bb",
|
702
|
+
"grey-20": "#d2d2d6",
|
703
703
|
"grey-10": "#e1e1e3",
|
704
704
|
"grey-5": "#ededf0",
|
705
705
|
"grey-0": "#f7f7fa",
|
@@ -715,20 +715,18 @@ var require_tokens = __commonJS({
|
|
715
715
|
"secondary-10": "#fee8d0",
|
716
716
|
"secondary-5": "#fff3e8",
|
717
717
|
"secondary-0": "#fffbf8",
|
718
|
-
"primary-100": "#
|
719
|
-
"primary-90": "#
|
720
|
-
"primary-80": "#
|
721
|
-
"primary-70": "#
|
722
|
-
"primary-60": "#
|
723
|
-
"primary-50": "#
|
724
|
-
"primary-40": "#
|
725
|
-
"primary-30": "#
|
726
|
-
"primary-20": "#
|
727
|
-
"primary-10": "#
|
728
|
-
"primary-5": "#
|
729
|
-
"primary-0": "#
|
730
|
-
"grey-20": "#d2d2d6",
|
731
|
-
"navyBlue-100": "#30375e"
|
718
|
+
"primary-100": "#0e1652",
|
719
|
+
"primary-90": "#222f95",
|
720
|
+
"primary-80": "#3545be",
|
721
|
+
"primary-70": "#5865cd",
|
722
|
+
"primary-60": "#818eec",
|
723
|
+
"primary-50": "#9daaee",
|
724
|
+
"primary-40": "#b9c5ef",
|
725
|
+
"primary-30": "#c7d1f4",
|
726
|
+
"primary-20": "#d5ddfa",
|
727
|
+
"primary-10": "#e3e9ff",
|
728
|
+
"primary-5": "#f3f6ff",
|
729
|
+
"primary-0": "#ffffff"
|
732
730
|
},
|
733
731
|
typography: {
|
734
732
|
sizes: [
|
@@ -736,40 +734,40 @@ var require_tokens = __commonJS({
|
|
736
734
|
name: "large-heading",
|
737
735
|
className: "typography-large-heading",
|
738
736
|
style: {
|
739
|
-
fontFamily: "
|
737
|
+
fontFamily: "Poppins",
|
740
738
|
fontSize: "32px",
|
741
739
|
fontWeight: 700,
|
742
740
|
fontStyle: "normal",
|
743
741
|
lineHeight: 1.375,
|
744
742
|
textTransform: "none"
|
745
743
|
},
|
746
|
-
fontPostScriptName: "
|
744
|
+
fontPostScriptName: "Poppins-Bold"
|
747
745
|
},
|
748
746
|
{
|
749
747
|
name: "heading",
|
750
748
|
className: "typography-heading",
|
751
749
|
style: {
|
752
|
-
fontFamily: "
|
750
|
+
fontFamily: "Poppins",
|
753
751
|
fontSize: "24px",
|
754
752
|
fontWeight: 700,
|
755
753
|
fontStyle: "normal",
|
756
754
|
lineHeight: 1.375,
|
757
755
|
textTransform: "none"
|
758
756
|
},
|
759
|
-
fontPostScriptName: "
|
757
|
+
fontPostScriptName: "Poppins-Bold"
|
760
758
|
},
|
761
759
|
{
|
762
760
|
name: "subheading",
|
763
761
|
className: "typography-subheading",
|
764
762
|
style: {
|
765
|
-
fontFamily: "
|
763
|
+
fontFamily: "Poppins",
|
766
764
|
fontSize: "20px",
|
767
765
|
fontWeight: 600,
|
768
766
|
fontStyle: "normal",
|
769
767
|
lineHeight: 1.375,
|
770
768
|
textTransform: "none"
|
771
769
|
},
|
772
|
-
fontPostScriptName: "
|
770
|
+
fontPostScriptName: "Poppins-Bold"
|
773
771
|
},
|
774
772
|
{
|
775
773
|
name: "large-strong",
|
@@ -4392,6 +4390,22 @@ var require_reset = __commonJS({
|
|
4392
4390
|
}
|
4393
4391
|
});
|
4394
4392
|
|
4393
|
+
// src/icons/roadmap.js
|
4394
|
+
var require_roadmap = __commonJS({
|
4395
|
+
"src/icons/roadmap.js"(exports) {
|
4396
|
+
"use strict";
|
4397
|
+
var data = {
|
4398
|
+
"body": '<path fill="none" stroke="currentColor" stroke-width="1.5" d="M9.272 5.69h.75v-2.6h.233v15.83h-.233v-3.466H7.106a.55.55 0 110-1.1h2.916v-3.232h-4.65a.55.55 0 110-1.1h4.65V6.789H3.64a.55.55 0 110-1.1h5.632Zm4.216.25a.25.25 0 01.25-.25h.6a.25.25 0 01.25.25v.599a.25.25 0 01-.25.25h-.6a.25.25 0 01-.25-.25v-.6Zm0 4.632a.55.55 0 01.55-.55h1.733a.55.55 0 110 1.1h-1.733a.55.55 0 01-.55-.55Zm0 4.332a.55.55 0 01.55-.55h4.332a.55.55 0 110 1.1h-4.332a.55.55 0 01-.55-.55Z"/>',
|
4399
|
+
"left": 0,
|
4400
|
+
"top": 0,
|
4401
|
+
"width": 22,
|
4402
|
+
"height": 22
|
4403
|
+
};
|
4404
|
+
exports.__esModule = true;
|
4405
|
+
exports.default = data;
|
4406
|
+
}
|
4407
|
+
});
|
4408
|
+
|
4395
4409
|
// src/icons/saved.js
|
4396
4410
|
var require_saved = __commonJS({
|
4397
4411
|
"src/icons/saved.js"(exports) {
|
@@ -5787,6 +5801,7 @@ var tailwind_theme_default = {
|
|
5787
5801
|
"grey-50": "var(--aquarium-colors-grey-50, #787885)",
|
5788
5802
|
"grey-40": "var(--aquarium-colors-grey-40, #9696a0)",
|
5789
5803
|
"grey-30": "var(--aquarium-colors-grey-30, #b4b4bb)",
|
5804
|
+
"grey-20": "var(--aquarium-colors-grey-20, #d2d2d6)",
|
5790
5805
|
"grey-10": "var(--aquarium-colors-grey-10, #e1e1e3)",
|
5791
5806
|
"grey-5": "var(--aquarium-colors-grey-5, #ededf0)",
|
5792
5807
|
"grey-0": "var(--aquarium-colors-grey-0, #f7f7fa)",
|
@@ -5802,20 +5817,18 @@ var tailwind_theme_default = {
|
|
5802
5817
|
"secondary-10": "var(--aquarium-colors-secondary-10, #fee8d0)",
|
5803
5818
|
"secondary-5": "var(--aquarium-colors-secondary-5, #fff3e8)",
|
5804
5819
|
"secondary-0": "var(--aquarium-colors-secondary-0, #fffbf8)",
|
5805
|
-
"primary-100": "var(--aquarium-colors-primary-100, #
|
5806
|
-
"primary-90": "var(--aquarium-colors-primary-90, #
|
5807
|
-
"primary-80": "var(--aquarium-colors-primary-80, #
|
5808
|
-
"primary-70": "var(--aquarium-colors-primary-70, #
|
5809
|
-
"primary-60": "var(--aquarium-colors-primary-60, #
|
5810
|
-
"primary-50": "var(--aquarium-colors-primary-50, #
|
5811
|
-
"primary-40": "var(--aquarium-colors-primary-40, #
|
5812
|
-
"primary-30": "var(--aquarium-colors-primary-30, #
|
5813
|
-
"primary-20": "var(--aquarium-colors-primary-20, #
|
5814
|
-
"primary-10": "var(--aquarium-colors-primary-10, #
|
5815
|
-
"primary-5": "var(--aquarium-colors-primary-5, #
|
5816
|
-
"primary-0": "var(--aquarium-colors-primary-0, #
|
5817
|
-
"grey-20": "var(--aquarium-colors-grey-20, #d2d2d6)",
|
5818
|
-
"navyBlue-100": "var(--aquarium-colors-navyBlue-100, #30375e)",
|
5820
|
+
"primary-100": "var(--aquarium-colors-primary-100, #0e1652)",
|
5821
|
+
"primary-90": "var(--aquarium-colors-primary-90, #222f95)",
|
5822
|
+
"primary-80": "var(--aquarium-colors-primary-80, #3545be)",
|
5823
|
+
"primary-70": "var(--aquarium-colors-primary-70, #5865cd)",
|
5824
|
+
"primary-60": "var(--aquarium-colors-primary-60, #818eec)",
|
5825
|
+
"primary-50": "var(--aquarium-colors-primary-50, #9daaee)",
|
5826
|
+
"primary-40": "var(--aquarium-colors-primary-40, #b9c5ef)",
|
5827
|
+
"primary-30": "var(--aquarium-colors-primary-30, #c7d1f4)",
|
5828
|
+
"primary-20": "var(--aquarium-colors-primary-20, #d5ddfa)",
|
5829
|
+
"primary-10": "var(--aquarium-colors-primary-10, #e3e9ff)",
|
5830
|
+
"primary-5": "var(--aquarium-colors-primary-5, #f3f6ff)",
|
5831
|
+
"primary-0": "var(--aquarium-colors-primary-0, #ffffff)",
|
5819
5832
|
transparent: "var(--aquarium-colors-transparent, transparent)",
|
5820
5833
|
white: "var(--aquarium-colors-white, white)",
|
5821
5834
|
black: "var(--aquarium-colors-black, black)",
|
@@ -6506,6 +6519,7 @@ var import_remove = __toESM(require_remove());
|
|
6506
6519
|
var import_repeat = __toESM(require_repeat());
|
6507
6520
|
var import_replicationFlow = __toESM(require_replicationFlow());
|
6508
6521
|
var import_reset = __toESM(require_reset());
|
6522
|
+
var import_roadmap = __toESM(require_roadmap());
|
6509
6523
|
var import_saved = __toESM(require_saved());
|
6510
6524
|
var import_scatterPlot = __toESM(require_scatterPlot());
|
6511
6525
|
var import_search2 = __toESM(require_search());
|
@@ -7135,9 +7149,12 @@ var getCommonInputStyles = ({ readOnly, valid }) => tw(
|
|
7135
7149
|
}
|
7136
7150
|
);
|
7137
7151
|
var ghostButtonStyle = tw(
|
7138
|
-
"text-primary-80 active:text-primary-
|
7152
|
+
"text-primary-80 active:text-primary-90 focus-visible:text-primary-90 hover:text-primary-90 disabled:text-primary-40"
|
7153
|
+
);
|
7154
|
+
var linkStyle = classNames(
|
7155
|
+
ghostButtonStyle,
|
7156
|
+
tw("visited:text-primary-80 underline hover:no-underline focusable")
|
7139
7157
|
);
|
7140
|
-
var linkStyle = classNames(ghostButtonStyle, tw("visited:text-primary-80 focusable"));
|
7141
7158
|
|
7142
7159
|
// src/utils/string.ts
|
7143
7160
|
var capitalize = (a) => a.charAt(0).toUpperCase() + a.slice(1);
|
@@ -7147,28 +7164,27 @@ var import_chevronDown3 = __toESM(require_chevronDown());
|
|
7147
7164
|
var import_loading2 = __toESM(require_loading());
|
7148
7165
|
var COLOR_CLASSNAMES = {
|
7149
7166
|
"primary": tw(
|
7150
|
-
"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-
|
7167
|
+
"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-90 disabled:bg-primary-40"
|
7151
7168
|
),
|
7152
7169
|
"secondary": tw(
|
7153
|
-
"text-
|
7154
|
-
"
|
7155
|
-
"
|
7170
|
+
"text-primary-80 bg-white ring-1 ring-primary-80 ring-inset",
|
7171
|
+
"active:bg-primary-5 active:ring-primary-90 active:text-primary-90",
|
7172
|
+
"focus-visible:ring-2 focus-visible:ring-primary-90 focus-visible:text-primary-80",
|
7173
|
+
"hover:bg-primary-5 hover:ring-primary-90 hover:text-primary-90",
|
7174
|
+
"disabled:bg-white disabled:text-primary-40 disabled:ring-primary-40"
|
7156
7175
|
),
|
7157
7176
|
"ghost": ghostButtonStyle,
|
7158
|
-
"text":
|
7177
|
+
"text": linkStyle,
|
7159
7178
|
"secondary-ghost": tw(
|
7160
7179
|
"text-grey-60 active:text-grey-50 focus-visible:text-grey-80 hover:text-grey-80 disabled:text-grey-30"
|
7161
7180
|
)
|
7162
7181
|
};
|
7163
|
-
var LoadingSpinner = ({
|
7164
|
-
size = "20px",
|
7165
|
-
kind = "primary"
|
7166
|
-
}) => {
|
7182
|
+
var LoadingSpinner = ({ size = "20px" }) => {
|
7167
7183
|
return /* @__PURE__ */ import_react19.default.createElement(InlineIcon, {
|
7168
7184
|
icon: import_loading2.default,
|
7169
7185
|
width: size,
|
7170
7186
|
height: size,
|
7171
|
-
color:
|
7187
|
+
color: "primary-80",
|
7172
7188
|
"data-testid": "loading-button"
|
7173
7189
|
});
|
7174
7190
|
};
|
@@ -7282,8 +7298,7 @@ var asButton = (Component, isDropdownButton) => {
|
|
7282
7298
|
className: tw("absolute left-1/2 top-0 bottom-0 flex"),
|
7283
7299
|
style: { transform: "translate(-50%)" }
|
7284
7300
|
}, /* @__PURE__ */ import_react19.default.createElement(LoadingSpinner, {
|
7285
|
-
size: iconSize
|
7286
|
-
kind: kind === "primary" ? "primary" : "secondary"
|
7301
|
+
size: iconSize
|
7287
7302
|
})), /* @__PURE__ */ import_react19.default.createElement("div", {
|
7288
7303
|
className: tw({ invisible: loading2 })
|
7289
7304
|
}, buttonContent())) : buttonContent());
|
@@ -7415,19 +7430,19 @@ var import_warningSign2 = __toESM(require_warningSign());
|
|
7415
7430
|
var alertTypes = {
|
7416
7431
|
information: {
|
7417
7432
|
icon: import_infoSign2.default,
|
7418
|
-
color: "info-
|
7433
|
+
color: "info-70"
|
7419
7434
|
},
|
7420
7435
|
warning: {
|
7421
7436
|
icon: import_warningSign2.default,
|
7422
|
-
color: "warning-
|
7437
|
+
color: "warning-90"
|
7423
7438
|
},
|
7424
7439
|
error: {
|
7425
7440
|
icon: import_error2.default,
|
7426
|
-
color: "error-
|
7441
|
+
color: "error-70"
|
7427
7442
|
},
|
7428
7443
|
success: {
|
7429
7444
|
icon: import_tickCircle2.default,
|
7430
|
-
color: "success-
|
7445
|
+
color: "success-70"
|
7431
7446
|
}
|
7432
7447
|
};
|
7433
7448
|
var Alert = (_a) => {
|
@@ -7447,7 +7462,7 @@ var Alert = (_a) => {
|
|
7447
7462
|
className: classNames(
|
7448
7463
|
tw("rounded grid grid-cols-[auto_1fr_auto] items-center gap-x-3 gap-y-2", {
|
7449
7464
|
"bg-error-5": type === "error",
|
7450
|
-
"bg-info-
|
7465
|
+
"bg-info-10": type === "information",
|
7451
7466
|
"bg-success-5": type === "success",
|
7452
7467
|
"bg-warning-5": type === "warning",
|
7453
7468
|
"p-4": Boolean(dense),
|
@@ -7676,10 +7691,10 @@ var Banner = (_a) => {
|
|
7676
7691
|
}), children);
|
7677
7692
|
};
|
7678
7693
|
Banner.Title = (_a) => {
|
7679
|
-
var _b = _a, { children, className, layout
|
7694
|
+
var _b = _a, { children, className, layout } = _b, rest = __objRest(_b, ["children", "className", "layout"]);
|
7680
7695
|
return /* @__PURE__ */ import_react26.default.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
7681
7696
|
variant: "subheading",
|
7682
|
-
color:
|
7697
|
+
color: "grey-100",
|
7683
7698
|
className: classNames(
|
7684
7699
|
className,
|
7685
7700
|
tw("whitespace-nowrap", {
|
@@ -7751,8 +7766,7 @@ var createBanner = (displayName, opts = {}) => {
|
|
7751
7766
|
}, /* @__PURE__ */ import_react27.default.createElement(Banner.ContentContainer, {
|
7752
7767
|
layout
|
7753
7768
|
}, /* @__PURE__ */ import_react27.default.createElement(Banner.Title, {
|
7754
|
-
layout
|
7755
|
-
titleVariant: opts.isOneLineBanner ? "secondary" : "primary"
|
7769
|
+
layout
|
7756
7770
|
}, title), /* @__PURE__ */ import_react27.default.createElement(Banner.Description, {
|
7757
7771
|
flexGrow: isDismissable ? false : true
|
7758
7772
|
}, children || description), action && /* @__PURE__ */ import_react27.default.createElement(Banner.Actions, {
|
@@ -7825,7 +7839,7 @@ var asCrumb = (Component, displayName, options = { isActive: false }) => {
|
|
7825
7839
|
}), /* @__PURE__ */ import_react28.default.createElement("span", {
|
7826
7840
|
className: (0, import_classnames3.default)(
|
7827
7841
|
tw("flex flex-row flex-nowrap items-center gap-x-3 whitespace-nowrap", {
|
7828
|
-
"text-primary-80 hover:text-primary-70": !options.isActive,
|
7842
|
+
"text-primary-80 hover:text-primary-70 underline hover:no-underline": !options.isActive,
|
7829
7843
|
"text-grey-90": options.isActive
|
7830
7844
|
})
|
7831
7845
|
)
|
@@ -8529,7 +8543,7 @@ var Checkbox = import_react39.default.forwardRef(
|
|
8529
8543
|
var _b = _a, { id, children, name, disabled = false, readOnly = false, indeterminate = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly", "indeterminate"]);
|
8530
8544
|
return /* @__PURE__ */ import_react39.default.createElement("span", {
|
8531
8545
|
className: classNames(tw("inline-flex justify-center items-center self-center relative"), {
|
8532
|
-
"hover:border-grey-50 peer-checked:border-
|
8546
|
+
"hover:border-grey-50 peer-checked:border-primary-80": !disabled,
|
8533
8547
|
"border-grey-5": disabled
|
8534
8548
|
})
|
8535
8549
|
}, /* @__PURE__ */ import_react39.default.createElement("input", __spreadProps(__spreadValues({
|
@@ -8540,24 +8554,25 @@ var Checkbox = import_react39.default.forwardRef(
|
|
8540
8554
|
}, props), {
|
8541
8555
|
className: classNames(
|
8542
8556
|
tw("peer appearance-none outline-none w-5 h-5", "rounded-sm border border-transparent", {
|
8543
|
-
"cursor-pointer checked:bg-
|
8544
|
-
"cursor-not-allowed bg-grey-0": disabled
|
8557
|
+
"cursor-pointer checked:bg-primary-80": !disabled,
|
8558
|
+
"cursor-not-allowed bg-grey-0 checked:bg-primary-40": disabled
|
8545
8559
|
})
|
8546
8560
|
),
|
8547
8561
|
readOnly,
|
8548
8562
|
disabled
|
8549
8563
|
})), /* @__PURE__ */ import_react39.default.createElement(Icon, {
|
8550
8564
|
icon: indeterminate ? import_minus2.default : import_tick3.default,
|
8565
|
+
strokeWidth: "2px",
|
8551
8566
|
className: classNames(
|
8552
8567
|
tw(
|
8553
8568
|
"absolute top-0 right-0",
|
8554
8569
|
"pointer-events-none p-[2px] w-5 h-5",
|
8555
|
-
"text-transparent [&>path]:stroke-transparent",
|
8570
|
+
"text-transparent [&>path]:stroke-transparent [&>path]:stroke-2",
|
8556
8571
|
"rounded-sm border border-grey-20 peer-focus:border-info-70"
|
8557
8572
|
),
|
8558
8573
|
{
|
8559
|
-
"peer-hover:border-grey-50 peer-checked:text-white peer-checked:[&>path]:stroke-white peer-checked:border-
|
8560
|
-
"border-grey-5 peer-checked:text-
|
8574
|
+
"peer-hover:border-grey-50 peer-checked:text-white peer-checked:[&>path]:stroke-white peer-checked:border-primary-80": !disabled,
|
8575
|
+
"border-grey-5 peer-checked:text-primary-10 peer-checked:[&>path]:stroke-primary-10 peer-checked:border-primary-40": disabled
|
8561
8576
|
}
|
8562
8577
|
)
|
8563
8578
|
}));
|
@@ -10185,10 +10200,10 @@ var RadioButton = import_react62.default.forwardRef(
|
|
10185
10200
|
tw(
|
10186
10201
|
"inline-flex justify-center items-center self-center appearance-none",
|
10187
10202
|
"w-5 h-5 p-[3px] rounded-full cursor-pointer border border-grey-20",
|
10188
|
-
"outline-none focus:border-info-70 checked:bg-
|
10203
|
+
"outline-none focus:border-info-70 checked:bg-primary-80 checked:shadow-whiteInset",
|
10189
10204
|
{
|
10190
|
-
"hover:border-grey-50 checked:border-
|
10191
|
-
"cursor-not-allowed border-grey-5 bg-grey-0 checked:bg-opacity-40": disabled
|
10205
|
+
"hover:border-grey-50 checked:border-primary-80": !disabled,
|
10206
|
+
"cursor-not-allowed border-grey-5 bg-grey-0 checked:bg-opacity-40 checked:bg-primary-40 checked:border-primary-40": disabled
|
10192
10207
|
}
|
10193
10208
|
)
|
10194
10209
|
),
|
@@ -10723,7 +10738,7 @@ var Modal = (_a) => {
|
|
10723
10738
|
Modal.BackDrop = (_a) => {
|
10724
10739
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
10725
10740
|
return /* @__PURE__ */ import_react71.default.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
10726
|
-
className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-
|
10741
|
+
className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-primary-100 opacity-60"), className)
|
10727
10742
|
}));
|
10728
10743
|
};
|
10729
10744
|
Modal.Dialog = import_react71.default.forwardRef(
|
@@ -11448,12 +11463,12 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
|
|
11448
11463
|
if (status === "warning") {
|
11449
11464
|
statusIcon = /* @__PURE__ */ import_react85.default.createElement(InlineIcon, {
|
11450
11465
|
icon: import_warningSign4.default,
|
11451
|
-
color: "warning-80"
|
11466
|
+
color: selected ? void 0 : "warning-80"
|
11452
11467
|
});
|
11453
11468
|
} else if (status === "error") {
|
11454
11469
|
statusIcon = /* @__PURE__ */ import_react85.default.createElement(InlineIcon, {
|
11455
11470
|
icon: import_warningSign4.default,
|
11456
|
-
color: "error-50"
|
11471
|
+
color: selected ? void 0 : "error-50"
|
11457
11472
|
});
|
11458
11473
|
}
|
11459
11474
|
const tab = /* @__PURE__ */ import_react85.default.createElement(Component, __spreadValues({
|
@@ -12956,7 +12971,7 @@ var SegmentedControl = (_a) => {
|
|
12956
12971
|
"selected",
|
12957
12972
|
"className"
|
12958
12973
|
]);
|
12959
|
-
return /* @__PURE__ */ import_react103.default.createElement("button", __spreadProps(__spreadValues({
|
12974
|
+
return /* @__PURE__ */ import_react103.default.createElement("li", null, /* @__PURE__ */ import_react103.default.createElement("button", __spreadProps(__spreadValues({
|
12960
12975
|
type: "button"
|
12961
12976
|
}, rest), {
|
12962
12977
|
className: classNames(
|
@@ -12964,8 +12979,9 @@ var SegmentedControl = (_a) => {
|
|
12964
12979
|
!rest.disabled && getHoverClassNames(variant),
|
12965
12980
|
selected && getSelectedClassNames(variant),
|
12966
12981
|
className
|
12967
|
-
)
|
12968
|
-
|
12982
|
+
),
|
12983
|
+
"aria-pressed": selected
|
12984
|
+
}), children));
|
12969
12985
|
};
|
12970
12986
|
var SegmentedControlGroup = (_a) => {
|
12971
12987
|
var _b = _a, {
|
@@ -12974,20 +12990,23 @@ var SegmentedControlGroup = (_a) => {
|
|
12974
12990
|
variant = "filled",
|
12975
12991
|
dense = false,
|
12976
12992
|
children,
|
12977
|
-
className
|
12993
|
+
className,
|
12994
|
+
ariaLabel
|
12978
12995
|
} = _b, rest = __objRest(_b, [
|
12979
12996
|
"value",
|
12980
12997
|
"onChange",
|
12981
12998
|
"variant",
|
12982
12999
|
"dense",
|
12983
13000
|
"children",
|
12984
|
-
"className"
|
13001
|
+
"className",
|
13002
|
+
"ariaLabel"
|
12985
13003
|
]);
|
12986
13004
|
const classes2 = tw("rounded flex", {
|
12987
13005
|
"border border-grey-20 text-grey-50": variant === "outlined",
|
12988
13006
|
"bg-grey-0": variant === "raised"
|
12989
13007
|
});
|
12990
|
-
return /* @__PURE__ */ import_react103.default.createElement("
|
13008
|
+
return /* @__PURE__ */ import_react103.default.createElement("ul", __spreadProps(__spreadValues({}, rest), {
|
13009
|
+
"aria-label": ariaLabel,
|
12991
13010
|
className: classNames("Aquarium-SegmentedControl", classes2, className)
|
12992
13011
|
}), import_react103.default.Children.map(
|
12993
13012
|
children,
|
@@ -13167,8 +13186,8 @@ var Switch = import_react106.default.forwardRef(
|
|
13167
13186
|
"outline-none focus:border border-info-70 bg-grey-20",
|
13168
13187
|
"cursor-pointer disabled:cursor-not-allowed",
|
13169
13188
|
{
|
13170
|
-
"hover:bg-grey-30 checked:bg-
|
13171
|
-
"bg-grey-5 checked:opacity-40": disabled
|
13189
|
+
"hover:bg-grey-30 checked:bg-primary-80 hover:checked:bg-primary-80": !disabled,
|
13190
|
+
"bg-grey-5 checked:opacity-40 checked:bg-primary-40": disabled
|
13172
13191
|
}
|
13173
13192
|
)
|
13174
13193
|
),
|