@aivenio/aquarium 2.6.0 → 2.8.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/atoms.cjs +7 -2
- package/dist/atoms.mjs +7 -2
- package/dist/src/charts/AreaChart/AreaChart.d.ts +2 -2
- package/dist/src/charts/AreaChart/AreaChart.js +1 -1
- package/dist/src/charts/BarChart/BarChart.d.ts +2 -2
- package/dist/src/charts/BarChart/BarChart.js +1 -1
- package/dist/src/charts/LineChart/LineChart.d.ts +2 -2
- package/dist/src/charts/LineChart/LineChart.js +1 -1
- package/dist/src/charts/PieChart/PieChart.d.ts +2 -2
- package/dist/src/charts/PieChart/PieChart.js +1 -1
- package/dist/src/molecules/Combobox/Combobox.d.ts +5 -1
- package/dist/src/molecules/Combobox/Combobox.js +10 -7
- package/dist/src/molecules/Grid/Grid.d.ts +2 -0
- package/dist/src/molecules/Grid/Grid.js +5 -5
- package/dist/system.cjs +18 -9
- package/dist/system.mjs +20 -11
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/system.mjs
CHANGED
@@ -9713,6 +9713,7 @@ var GridItem = Tailwindify(
|
|
9713
9713
|
(_a) => {
|
9714
9714
|
var _b = _a, {
|
9715
9715
|
htmlTag = "div",
|
9716
|
+
ariaLabel,
|
9716
9717
|
className,
|
9717
9718
|
style,
|
9718
9719
|
children,
|
@@ -9727,6 +9728,7 @@ var GridItem = Tailwindify(
|
|
9727
9728
|
rowEnd
|
9728
9729
|
} = _b, props = __objRest(_b, [
|
9729
9730
|
"htmlTag",
|
9731
|
+
"ariaLabel",
|
9730
9732
|
"className",
|
9731
9733
|
"style",
|
9732
9734
|
"children",
|
@@ -9757,7 +9759,8 @@ var GridItem = Tailwindify(
|
|
9757
9759
|
const HtmlElement = htmlTag;
|
9758
9760
|
return /* @__PURE__ */ React44.createElement(HtmlElement, {
|
9759
9761
|
style: __spreadValues(__spreadValues({}, hookStyle), style),
|
9760
|
-
className
|
9762
|
+
className,
|
9763
|
+
"aria-label": ariaLabel ? ariaLabel : void 0
|
9761
9764
|
}, children);
|
9762
9765
|
}
|
9763
9766
|
);
|
@@ -9767,6 +9770,7 @@ var Grid = (props) => {
|
|
9767
9770
|
var GridComponent = Tailwindify(
|
9768
9771
|
({
|
9769
9772
|
htmlTag = "div",
|
9773
|
+
ariaLabel,
|
9770
9774
|
className,
|
9771
9775
|
style,
|
9772
9776
|
children,
|
@@ -9818,7 +9822,8 @@ var GridComponent = Tailwindify(
|
|
9818
9822
|
const HtmlElement = htmlTag;
|
9819
9823
|
return /* @__PURE__ */ React44.createElement(HtmlElement, {
|
9820
9824
|
style: __spreadValues(__spreadValues({}, hookStyle), style),
|
9821
|
-
className
|
9825
|
+
className,
|
9826
|
+
"aria-label": ariaLabel ? ariaLabel : void 0
|
9822
9827
|
}, children);
|
9823
9828
|
}
|
9824
9829
|
);
|
@@ -10157,6 +10162,7 @@ import React54, { useEffect as useEffect6, useRef as useRef6, useState as useSta
|
|
10157
10162
|
import { ariaHideOutside } from "@react-aria/overlays";
|
10158
10163
|
import { useId as useId6 } from "@react-aria/utils";
|
10159
10164
|
import { useCombobox } from "downshift";
|
10165
|
+
import { isNil } from "lodash";
|
10160
10166
|
import omit4 from "lodash/omit";
|
10161
10167
|
import { matchSorter } from "match-sorter";
|
10162
10168
|
|
@@ -10287,6 +10293,7 @@ var ComboboxBase = (_a) => {
|
|
10287
10293
|
createOption,
|
10288
10294
|
renderOption = (opt) => itemToString(opt),
|
10289
10295
|
isOptionDisabled = isOptionDisabledBuiltin,
|
10296
|
+
getValue = defaultGetValue,
|
10290
10297
|
getOptionKey,
|
10291
10298
|
defaultValue,
|
10292
10299
|
value,
|
@@ -10309,6 +10316,7 @@ var ComboboxBase = (_a) => {
|
|
10309
10316
|
"createOption",
|
10310
10317
|
"renderOption",
|
10311
10318
|
"isOptionDisabled",
|
10319
|
+
"getValue",
|
10312
10320
|
"getOptionKey",
|
10313
10321
|
"defaultValue",
|
10314
10322
|
"value",
|
@@ -10345,10 +10353,11 @@ var ComboboxBase = (_a) => {
|
|
10345
10353
|
}
|
10346
10354
|
};
|
10347
10355
|
const findItemByValue = (val) => {
|
10348
|
-
|
10349
|
-
|
10356
|
+
var _a3;
|
10357
|
+
if (isNil(val)) {
|
10358
|
+
return val;
|
10350
10359
|
}
|
10351
|
-
return
|
10360
|
+
return (_a3 = allOptions.find((opt) => getValue(opt) === getValue(val))) != null ? _a3 : null;
|
10352
10361
|
};
|
10353
10362
|
const {
|
10354
10363
|
isOpen,
|
@@ -10409,8 +10418,8 @@ var ComboboxBase = (_a) => {
|
|
10409
10418
|
var _a3;
|
10410
10419
|
return /* @__PURE__ */ React54.createElement(Select.Item, __spreadValues({
|
10411
10420
|
key: (_a3 = getOptionKey == null ? void 0 : getOptionKey(item)) != null ? _a3 : itemToString(item),
|
10412
|
-
selected: item === selectedItem,
|
10413
|
-
highlighted: index === highlightedIndex || item === selectedItem
|
10421
|
+
selected: selectedItem ? getValue(item) === getValue(selectedItem) : false,
|
10422
|
+
highlighted: index === highlightedIndex || (selectedItem ? getValue(item) === getValue(selectedItem) : false)
|
10414
10423
|
}, getItemProps({ item, index })), renderOption(item));
|
10415
10424
|
};
|
10416
10425
|
useEffect6(() => {
|
@@ -10750,7 +10759,7 @@ import { useId as useId8 } from "@react-aria/utils";
|
|
10750
10759
|
import { useSelect } from "downshift";
|
10751
10760
|
import { without } from "lodash";
|
10752
10761
|
import defaults from "lodash/defaults";
|
10753
|
-
import
|
10762
|
+
import isNil2 from "lodash/isNil";
|
10754
10763
|
import omit6 from "lodash/omit";
|
10755
10764
|
var hasIconProperty = (val) => {
|
10756
10765
|
var _a;
|
@@ -10885,7 +10894,7 @@ var _SelectBase = (props) => {
|
|
10885
10894
|
disabled,
|
10886
10895
|
readOnly: true,
|
10887
10896
|
placeholder: readOnly ? void 0 : placeholder,
|
10888
|
-
value: !
|
10897
|
+
value: !isNil2(selectedItem) ? itemToString(selectedItem) : "",
|
10889
10898
|
tabIndex: -1,
|
10890
10899
|
onFocus: () => setFocus(true),
|
10891
10900
|
onBlur: () => setFocus(false)
|
@@ -15087,7 +15096,7 @@ import { ariaHideOutside as ariaHideOutside2 } from "@react-aria/overlays";
|
|
15087
15096
|
import { useId as useId14 } from "@react-aria/utils";
|
15088
15097
|
import { useCombobox as useCombobox2, useMultipleSelection } from "downshift";
|
15089
15098
|
import isEqual from "lodash/isEqual";
|
15090
|
-
import
|
15099
|
+
import isNil3 from "lodash/isNil";
|
15091
15100
|
import omit16 from "lodash/omit";
|
15092
15101
|
import omitBy from "lodash/omitBy";
|
15093
15102
|
import { matchSorter as matchSorter2 } from "match-sorter";
|
@@ -15153,7 +15162,7 @@ var MultiSelectBase = (_a) => {
|
|
15153
15162
|
defaultSelectedItems: defaultValue,
|
15154
15163
|
onSelectedItemsChange: (e) => onChange == null ? void 0 : onChange(e.selectedItems)
|
15155
15164
|
},
|
15156
|
-
|
15165
|
+
isNil3
|
15157
15166
|
)
|
15158
15167
|
);
|
15159
15168
|
const keys = typeof options[0] === "string" ? void 0 : optionKeys;
|