@aivenio/aquarium 1.69.0 → 1.70.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 +2 -1
- package/dist/atoms.cjs +4 -3
- package/dist/atoms.mjs +4 -3
- package/dist/src/atoms/Select/Select.js +3 -2
- package/dist/src/molecules/Button/Button.js +2 -2
- package/dist/src/molecules/Combobox/Combobox.js +12 -3
- package/dist/src/molecules/DataList/DataList.js +3 -3
- package/dist/src/molecules/DropdownMenu/DropdownMenu.d.ts +3 -3
- package/dist/src/molecules/DropdownMenu/DropdownMenu.js +1 -1
- package/dist/styles.css +7 -0
- package/dist/system.cjs +30 -10
- package/dist/system.mjs +30 -10
- package/dist/tailwind.config.js +1 -0
- package/dist/tailwind.theme.json +2 -1
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/tailwindGenerated.d.ts +1 -1
- package/package.json +5 -4
package/dist/system.mjs
CHANGED
@@ -4930,7 +4930,7 @@ var InputContainer = React2.forwardRef(
|
|
4930
4930
|
ref,
|
4931
4931
|
className: classNames(
|
4932
4932
|
className,
|
4933
|
-
"relative rounded-sm typography-default-strong w-full flex flex-row items-center focus-visible:outline-0 focus-visible:border-info-default",
|
4933
|
+
"relative rounded-sm typography-default-strong w-full flex flex-row items-center focus-visible:outline-0 focus-visible:border-info-default group",
|
4934
4934
|
{
|
4935
4935
|
"border px-3 py-[6px]": variant !== "readOnly",
|
4936
4936
|
"cursor-default": variant === "readOnly",
|
@@ -5474,7 +5474,8 @@ var tailwind_theme_default = {
|
|
5474
5474
|
"status-info": "var(--aquarium-background-color-status-info)",
|
5475
5475
|
"status-warning": "var(--aquarium-background-color-status-warning)",
|
5476
5476
|
"status-danger": "var(--aquarium-background-color-status-danger)",
|
5477
|
-
"status-success": "var(--aquarium-background-color-status-success)"
|
5477
|
+
"status-success": "var(--aquarium-background-color-status-success)",
|
5478
|
+
"icon-button-hover": "rgba(25,25,29,.05)"
|
5478
5479
|
},
|
5479
5480
|
textColor: {
|
5480
5481
|
"error-100": "var(--aquarium-colors-error-100, #aa0000)",
|
@@ -7184,7 +7185,7 @@ var asButton = (Component, isDropdownButton) => {
|
|
7184
7185
|
tw(
|
7185
7186
|
"inline-block border-0 rounded-sm transition whitespace-nowrap focus:outline-none relative text-center",
|
7186
7187
|
{
|
7187
|
-
"text-default p-2 active:text-default active:bg-transparent hover:text-intense hover:bg-
|
7188
|
+
"text-default p-2 active:text-default active:bg-transparent hover:text-intense hover:bg-icon-button-hover focus-visible:text-intense focus-visible:bg-muted disabled:text-inactive disabled:bg-transparent": isIconOnlyButton,
|
7188
7189
|
"typography-default-strong": !dense && !isIconOnlyButton && kind !== "text",
|
7189
7190
|
"typography-small-strong": dense && !isIconOnlyButton && kind !== "text",
|
7190
7191
|
"py-3 px-4": !dense && isButton,
|
@@ -9617,6 +9618,7 @@ var Wrapper = React50.forwardRef(
|
|
9617
9618
|
);
|
9618
9619
|
|
9619
9620
|
// src/molecules/Combobox/Combobox.tsx
|
9621
|
+
var import_smallCross2 = __toESM(require_smallCross());
|
9620
9622
|
var ComboboxBase = (_a) => {
|
9621
9623
|
var _b = _a, {
|
9622
9624
|
id,
|
@@ -9689,7 +9691,8 @@ var ComboboxBase = (_a) => {
|
|
9689
9691
|
highlightedIndex,
|
9690
9692
|
inputValue,
|
9691
9693
|
getItemProps,
|
9692
|
-
selectedItem
|
9694
|
+
selectedItem,
|
9695
|
+
selectItem
|
9693
9696
|
} = useCombobox({
|
9694
9697
|
id,
|
9695
9698
|
selectedItem: value,
|
@@ -9762,10 +9765,25 @@ var ComboboxBase = (_a) => {
|
|
9762
9765
|
(_a3 = inputProps.onKeyDown) == null ? void 0 : _a3.call(inputProps, e);
|
9763
9766
|
},
|
9764
9767
|
onKeyUp: (e) => e.stopPropagation()
|
9765
|
-
})), !readOnly && /* @__PURE__ */ React51.createElement(
|
9768
|
+
})), !readOnly && /* @__PURE__ */ React51.createElement(Box.Flex, {
|
9769
|
+
alignItems: "center",
|
9770
|
+
gap: "2"
|
9771
|
+
}, !!inputProps.value && !disabled && /* @__PURE__ */ React51.createElement("div", {
|
9772
|
+
className: tw("group-hover:opacity-100", {
|
9773
|
+
"opacity-0": !hasFocus,
|
9774
|
+
"opacity-100": hasFocus
|
9775
|
+
})
|
9776
|
+
}, /* @__PURE__ */ React51.createElement(Button.Icon, {
|
9777
|
+
icon: import_smallCross2.default,
|
9778
|
+
onClick: () => selectItem(null),
|
9779
|
+
onFocus: () => setFocus(true),
|
9780
|
+
onBlur: () => setFocus(false),
|
9781
|
+
"aria-label": "Clear selection",
|
9782
|
+
dense: true
|
9783
|
+
})), /* @__PURE__ */ React51.createElement(Select.Toggle, __spreadValues({
|
9766
9784
|
hasFocus,
|
9767
9785
|
isOpen
|
9768
|
-
}, getToggleButtonProps({ disabled })))), isOpen && /* @__PURE__ */ React51.createElement(PopoverOverlay, {
|
9786
|
+
}, getToggleButtonProps({ disabled }))))), isOpen && /* @__PURE__ */ React51.createElement(PopoverOverlay, {
|
9769
9787
|
ref: popoverRef,
|
9770
9788
|
triggerRef: targetRef,
|
9771
9789
|
state,
|
@@ -11924,7 +11942,7 @@ var DataList2 = (_a) => {
|
|
11924
11942
|
getRowCheckboxLabel = getDefaultRowCheckboxLabel,
|
11925
11943
|
getGroupCheckboxLabel = getDefaultGroupCheckboxLabel,
|
11926
11944
|
selectedRows,
|
11927
|
-
defaultSelectedRows,
|
11945
|
+
defaultSelectedRows = [],
|
11928
11946
|
onSelectionChange,
|
11929
11947
|
toolbar
|
11930
11948
|
} = _b, rest = __objRest(_b, [
|
@@ -12003,7 +12021,9 @@ var DataList2 = (_a) => {
|
|
12003
12021
|
const allRows = flattenRows(rows);
|
12004
12022
|
const totalSelected = (_b2 = selected == null ? void 0 : selected.length) != null ? _b2 : 0;
|
12005
12023
|
const allEnabledRowIds = compact(
|
12006
|
-
allRows.map(
|
12024
|
+
allRows.map(
|
12025
|
+
(row, index) => (disabled == null ? void 0 : disabled(row, index, sortedRows)) || (selectionDisabled == null ? void 0 : selectionDisabled(row, index, sortedRows)) ? void 0 : row.id
|
12026
|
+
)
|
12007
12027
|
);
|
12008
12028
|
const allRowsSelected = totalSelected >= allEnabledRowIds.length;
|
12009
12029
|
return /* @__PURE__ */ React72.createElement(DataListContext.Provider, {
|
@@ -13643,7 +13663,7 @@ import omit12 from "lodash/omit";
|
|
13643
13663
|
|
13644
13664
|
// src/molecules/MultiInput/InputChip.tsx
|
13645
13665
|
import React92 from "react";
|
13646
|
-
var
|
13666
|
+
var import_smallCross3 = __toESM(require_smallCross());
|
13647
13667
|
var InputChip = React92.forwardRef(
|
13648
13668
|
(_a, ref) => {
|
13649
13669
|
var _b = _a, { invalid = false, disabled, readOnly, className, onClick: _onClick, children } = _b, props = __objRest(_b, ["invalid", "disabled", "readOnly", "className", "onClick", "children"]);
|
@@ -13675,7 +13695,7 @@ var InputChip = React92.forwardRef(
|
|
13675
13695
|
role: "button",
|
13676
13696
|
"aria-label": `Remove ${String(children)}`
|
13677
13697
|
}), !disabled && /* @__PURE__ */ React92.createElement(Icon, {
|
13678
|
-
icon:
|
13698
|
+
icon: import_smallCross3.default,
|
13679
13699
|
className: tw({
|
13680
13700
|
"text-danger-default": invalid,
|
13681
13701
|
"text-default": !invalid
|
package/dist/tailwind.config.js
CHANGED
@@ -70,6 +70,7 @@ const originalTheme = {
|
|
70
70
|
'status-warning': 'var(--aquarium-colors-warning-5)',
|
71
71
|
'status-danger': 'var(--aquarium-colors-error-5)',
|
72
72
|
'status-success': 'var(--aquarium-colors-success-5)',
|
73
|
+
'icon-button-hover': 'rgba(25,25,29,.05)', // rgb value is from grey-100
|
73
74
|
},
|
74
75
|
textColor: {
|
75
76
|
'inactive': 'var(--aquarium-colors-grey-40)',
|
package/dist/tailwind.theme.json
CHANGED
@@ -385,7 +385,8 @@
|
|
385
385
|
"status-info": "var(--aquarium-background-color-status-info)",
|
386
386
|
"status-warning": "var(--aquarium-background-color-status-warning)",
|
387
387
|
"status-danger": "var(--aquarium-background-color-status-danger)",
|
388
|
-
"status-success": "var(--aquarium-background-color-status-success)"
|
388
|
+
"status-success": "var(--aquarium-background-color-status-success)",
|
389
|
+
"icon-button-hover": "rgba(25,25,29,.05)"
|
389
390
|
},
|
390
391
|
"textColor": {
|
391
392
|
"error-100": "var(--aquarium-colors-error-100, #aa0000)",
|