@aivenio/aquarium 1.48.1 → 1.49.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.
Files changed (34) hide show
  1. package/dist/_variables.scss +1 -1
  2. package/dist/atoms.cjs +4 -5
  3. package/dist/atoms.mjs +4 -5
  4. package/dist/src/atoms/Select/Select.d.ts +0 -4
  5. package/dist/src/atoms/Select/Select.js +5 -5
  6. package/dist/src/charts/PieChart/renderPieChildren.js +1 -1
  7. package/dist/src/molecules/Accordion/Accordion.d.ts +1 -1
  8. package/dist/src/molecules/Accordion/Accordion.js +2 -2
  9. package/dist/src/molecules/Banner/Banner.d.ts +3 -1
  10. package/dist/src/molecules/Banner/Banner.js +2 -2
  11. package/dist/src/molecules/Button/Button.d.ts +20 -20
  12. package/dist/src/molecules/Button/Button.js +11 -11
  13. package/dist/src/molecules/Card/Card.js +1 -1
  14. package/dist/src/molecules/Card/Compact.js +1 -1
  15. package/dist/src/molecules/CheckboxGroup/CheckboxGroup.d.ts +1 -1
  16. package/dist/src/molecules/Combobox/Combobox.js +5 -4
  17. package/dist/src/molecules/DataList/DataList.js +3 -3
  18. package/dist/src/molecules/Dropdown/Dropdown.d.ts +1 -1
  19. package/dist/src/molecules/Dropdown/Dropdown.js +1 -1
  20. package/dist/src/molecules/Grid/GridItem.d.ts +1 -1
  21. package/dist/src/molecules/Grid/GridItem.js +1 -1
  22. package/dist/src/molecules/MultiSelect/MultiSelect.js +6 -5
  23. package/dist/src/molecules/RadioButtonGroup/RadioButtonGroup.d.ts +1 -1
  24. package/dist/src/molecules/Select/Select.d.ts +0 -2
  25. package/dist/src/molecules/Select/Select.js +5 -4
  26. package/dist/src/molecules/SwitchGroup/SwitchGroup.d.ts +1 -1
  27. package/dist/src/molecules/Tabs/Tabs.d.ts +8 -8
  28. package/dist/src/molecules/Typography/Typography.d.ts +5 -5
  29. package/dist/src/molecules/index.d.ts +0 -2
  30. package/dist/src/utils/form/Label/Label.d.ts +1 -1
  31. package/dist/system.cjs +20 -22
  32. package/dist/system.mjs +20 -22
  33. package/dist/tsconfig.module.tsbuildinfo +1 -1
  34. package/package.json +2 -2
package/dist/system.mjs CHANGED
@@ -4894,15 +4894,14 @@ var Group = React2.forwardRef((_a, ref) => {
4894
4894
  });
4895
4895
  var Item = React2.forwardRef(
4896
4896
  (_a, ref) => {
4897
- var _b = _a, { highlighted, selected, className, disabled, children } = _b, props = __objRest(_b, ["highlighted", "selected", "className", "disabled", "children"]);
4897
+ var _b = _a, { highlighted, selected, className, children } = _b, props = __objRest(_b, ["highlighted", "selected", "className", "children"]);
4898
4898
  return /* @__PURE__ */ React2.createElement("li", __spreadValues({
4899
4899
  ref,
4900
4900
  className: classNames(className, "flex items-center gap-x-3 p-3 typography-small", {
4901
- "cursor-pointer hover:bg-grey-0": !disabled,
4902
- "cursor-not-allowed opacity-40 grayscale": disabled,
4901
+ "cursor-pointer hover:bg-grey-0": !props["aria-disabled"],
4902
+ "cursor-not-allowed opacity-40 grayscale": props["aria-disabled"],
4903
4903
  "bg-grey-0": highlighted
4904
- }),
4905
- "aria-disabled": disabled || void 0
4904
+ })
4906
4905
  }, props), /* @__PURE__ */ React2.createElement("span", {
4907
4906
  className: tw("grow flex gap-x-3")
4908
4907
  }, children), selected && /* @__PURE__ */ React2.createElement(InlineIcon, {
@@ -7605,7 +7604,7 @@ var createBanner = (displayName, opts = {}) => {
7605
7604
  variant
7606
7605
  }, /* @__PURE__ */ React24.createElement(Banner3.ContentContainer, {
7607
7606
  layout
7608
- }, /* @__PURE__ */ React24.createElement(Banner3.Title, {
7607
+ }, title && /* @__PURE__ */ React24.createElement(Banner3.Title, {
7609
7608
  layout
7610
7609
  }, title), /* @__PURE__ */ React24.createElement(Banner3.Description, {
7611
7610
  flexGrow: isDismissable ? false : true
@@ -9034,6 +9033,7 @@ var ComboboxBase = (_a) => {
9034
9033
  id,
9035
9034
  selectedItem: value,
9036
9035
  defaultSelectedItem: defaultValue,
9036
+ isItemDisabled: (item, index) => isOptionDisabled(item, index),
9037
9037
  itemToString,
9038
9038
  items: inputItems,
9039
9039
  stateReducer: (_, actionChanges) => {
@@ -9076,8 +9076,6 @@ var ComboboxBase = (_a) => {
9076
9076
  ref: targetRef,
9077
9077
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
9078
9078
  }, /* @__PURE__ */ React47.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
9079
- id,
9080
- ref: inputRef,
9081
9079
  name,
9082
9080
  placeholder: readOnly ? void 0 : placeholder
9083
9081
  }, inputProps), props), {
@@ -9110,13 +9108,12 @@ var ComboboxBase = (_a) => {
9110
9108
  isNonModal: true,
9111
9109
  style: { width: (_a2 = targetRef.current) == null ? void 0 : _a2.offsetWidth }
9112
9110
  }, /* @__PURE__ */ React47.createElement(Select.Menu, __spreadValues({
9113
- ref: menuRef,
9114
9111
  maxHeight
9115
9112
  }, menuProps), hasNoResults && /* @__PURE__ */ React47.createElement(Select.NoResults, null, emptyState), inputItems.map((item, index) => /* @__PURE__ */ React47.createElement(Select.Item, __spreadValues({
9116
9113
  key: itemToString(item),
9117
9114
  selected: item === selectedItem,
9118
9115
  highlighted: index === highlightedIndex
9119
- }, getItemProps({ item, index, disabled: isOptionDisabled(item, index) })), renderOption(item))))));
9116
+ }, getItemProps({ item, index })), renderOption(item))))));
9120
9117
  };
9121
9118
  var ComboboxBaseSkeleton = () => /* @__PURE__ */ React47.createElement(Skeleton, {
9122
9119
  height: 38
@@ -9774,6 +9771,7 @@ var _SelectBase = (props) => {
9774
9771
  } = useSelect({
9775
9772
  selectedItem: findItemByValue(value),
9776
9773
  defaultSelectedItem: findItemByValue(defaultValue),
9774
+ isItemDisabled: (item, index) => isOptionDisabled(item, index),
9777
9775
  items,
9778
9776
  itemToString,
9779
9777
  onSelectedItemChange: (e) => onChange == null ? void 0 : onChange(e.selectedItem)
@@ -9789,7 +9787,7 @@ var _SelectBase = (props) => {
9789
9787
  item,
9790
9788
  __spreadValues({
9791
9789
  highlighted: index === highlightedIndex
9792
- }, getItemProps({ item, index, disabled: isOptionDisabled(item, index) })),
9790
+ }, getItemProps({ item, index })),
9793
9791
  {
9794
9792
  selectedItem,
9795
9793
  closeMenu,
@@ -9830,7 +9828,6 @@ var _SelectBase = (props) => {
9830
9828
  shouldFlip: true,
9831
9829
  style: { width: (_b = targetRef.current) == null ? void 0 : _b.offsetWidth }
9832
9830
  }, /* @__PURE__ */ React53.createElement(Select.Menu, __spreadValues({
9833
- ref: menuRef,
9834
9831
  maxHeight
9835
9832
  }, menuProps), options.length === 0 && /* @__PURE__ */ React53.createElement(Select.EmptyStateContainer, null, emptyState), options.length > 0 && !hasOptionGroups(options) && options.map(renderItem), options.length > 0 && hasOptionGroups(options) && options.map(renderGroup), actions.length > 0 && /* @__PURE__ */ React53.createElement(React53.Fragment, null, /* @__PURE__ */ React53.createElement(Select.Divider, {
9836
9833
  onMouseOver: () => setHighlightedIndex(-1)
@@ -10555,7 +10552,7 @@ var AccordionPanel = (_a) => {
10555
10552
  id: `${id}-content`,
10556
10553
  "aria-labelledby": `${id}-summary`,
10557
10554
  "aria-hidden": !isOpen ? "true" : void 0,
10558
- style
10555
+ style: __spreadValues({ overflow: "hidden" }, style)
10559
10556
  }), /* @__PURE__ */ React63.createElement("div", {
10560
10557
  ref
10561
10558
  }, children));
@@ -10676,7 +10673,8 @@ var DataList2 = ({
10676
10673
  columns: templateColumns,
10677
10674
  role: "table"
10678
10675
  }, /* @__PURE__ */ React65.createElement(DataList.Row, null, isCollapsible && /* @__PURE__ */ React65.createElement(DataList.HeadCell, {
10679
- align: "left"
10676
+ align: "left",
10677
+ sticky
10680
10678
  }), columns.map((column) => {
10681
10679
  const content = column.headerTooltip ? /* @__PURE__ */ React65.createElement(Tooltip, {
10682
10680
  placement: column.headerTooltip.placement,
@@ -10691,7 +10689,8 @@ var DataList2 = ({
10691
10689
  }), content);
10692
10690
  }), menu && /* @__PURE__ */ React65.createElement(DataList.HeadCell, {
10693
10691
  align: "right",
10694
- "aria-label": menuAriaLabel
10692
+ "aria-label": menuAriaLabel,
10693
+ sticky
10695
10694
  }, menuHeaderName)), groups && groupKeys ? /* @__PURE__ */ React65.createElement(List2, {
10696
10695
  items: sortGroupKeys(groupKeys),
10697
10696
  renderItem: (key) => {
@@ -12417,6 +12416,7 @@ var MultiSelectBase = (_a) => {
12417
12416
  id,
12418
12417
  inputValue,
12419
12418
  defaultSelectedItem: defaultValue,
12419
+ isItemDisabled: (item, index) => isOptionDisabled(item, index),
12420
12420
  selectedItem: null,
12421
12421
  items: filteredOptions,
12422
12422
  stateReducer: (_, actionChanges) => {
@@ -12485,7 +12485,9 @@ var MultiSelectBase = (_a) => {
12485
12485
  }), itemToString(selectedItem)));
12486
12486
  };
12487
12487
  const hasNoResults = options.length === 0 || filteredOptions.length === 0;
12488
- const inputProps = getInputProps(getDropdownProps({ ref: inputRef, disabled: disabled || readOnly }));
12488
+ const inputProps = getInputProps(
12489
+ getDropdownProps({ ref: inputRef, disabled: disabled || readOnly, value: inputValue })
12490
+ );
12489
12491
  const menuProps = getMenuProps({ ref: menuRef }, { suppressRefError: !isOpen });
12490
12492
  return /* @__PURE__ */ React85.createElement("div", {
12491
12493
  className: classNames("Aquarium-MultiSelectBase", tw("relative"))
@@ -12495,11 +12497,8 @@ var MultiSelectBase = (_a) => {
12495
12497
  }, /* @__PURE__ */ React85.createElement("div", {
12496
12498
  className: "grow inline-flex flex-row flex-wrap gap-2"
12497
12499
  }, !hideChips && inline && renderChips(), /* @__PURE__ */ React85.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
12498
- id,
12499
- ref: inputRef,
12500
12500
  name,
12501
- placeholder: selectedItems.length === 0 && !readOnly ? placeholder : "",
12502
- value: inputValue != null ? inputValue : ""
12501
+ placeholder: selectedItems.length === 0 && !readOnly ? placeholder : ""
12503
12502
  }, inputProps), props), {
12504
12503
  disabled,
12505
12504
  readOnly,
@@ -12530,13 +12529,12 @@ var MultiSelectBase = (_a) => {
12530
12529
  isNonModal: true,
12531
12530
  style: { width: (_a2 = targetRef.current) == null ? void 0 : _a2.offsetWidth }
12532
12531
  }, /* @__PURE__ */ React85.createElement(Select.Menu, __spreadValues({
12533
- ref: menuRef,
12534
12532
  maxHeight
12535
12533
  }, menuProps), hasNoResults && /* @__PURE__ */ React85.createElement(Select.NoResults, null, emptyState), filteredOptions.map((item, index) => /* @__PURE__ */ React85.createElement(Select.Item, __spreadValues({
12536
12534
  key: itemToString(item),
12537
12535
  highlighted: index === highlightedIndex,
12538
12536
  selected: selectedItems.includes(item)
12539
- }, getItemProps({ item, index, disabled: isOptionDisabled(item, index) })), renderOption(item))))));
12537
+ }, getItemProps({ item, index })), renderOption(item))))));
12540
12538
  };
12541
12539
  var MultiSelectBaseSkeleton = () => /* @__PURE__ */ React85.createElement(Skeleton, {
12542
12540
  height: 38