@linzjs/lui 18.4.0 → 18.4.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [18.4.2](https://github.com/linz/lui/compare/v18.4.1...v18.4.2) (2023-08-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * cs-2580 Adding type to button ([#976](https://github.com/linz/lui/issues/976)) ([de9092c](https://github.com/linz/lui/commit/de9092ce1958b16b3bbbc91c75b220a1862beee3))
7
+
8
+ ## [18.4.1](https://github.com/linz/lui/compare/v18.4.0...v18.4.1) (2023-08-02)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * cs-2580 Adding in support for disabled state on SplitButton ([#975](https://github.com/linz/lui/issues/975)) ([3250265](https://github.com/linz/lui/commit/3250265f692f22d0cccd7d15c23874a709263b27))
14
+
1
15
  # [18.4.0](https://github.com/linz/lui/compare/v18.3.1...v18.4.0) (2023-08-01)
2
16
 
3
17
 
@@ -7,6 +7,7 @@ export interface ILuiSplitButtonProps {
7
7
  className?: string;
8
8
  menuProps?: MenuProps;
9
9
  position?: LuiSplitButtonPosition;
10
+ disabled?: boolean;
10
11
  children: React.ReactNode;
11
12
  'data-testid'?: string;
12
13
  }
package/dist/index.js CHANGED
@@ -55870,14 +55870,14 @@ var LuiSplitButton = function (_a) {
55870
55870
  var positionProps = getMenuPosition(position);
55871
55871
  var iconClassName = getIconClassName(position, isExpanded);
55872
55872
  return (React__default["default"].createElement("div", { className: clsx('lui-split-button', props.className) },
55873
- React__default["default"].createElement(LuiButton, __assign({}, buttonProps),
55874
- " ",
55873
+ React__default["default"].createElement(LuiButton, __assign({}, buttonProps, { disabled: props.disabled }),
55874
+ ' ',
55875
55875
  props.buttonLabel,
55876
- " "),
55876
+ ' '),
55877
55877
  React__default["default"].createElement(reactMenu.Menu, __assign({ menuClassName: 'lui-split-button-menu', onMenuChange: function () {
55878
55878
  setIsExpanded(function (prev) { return !prev; });
55879
- }, menuButton: React__default["default"].createElement("span", { className: clsx('popup-toggle-button'), "data-testid": props['data-testid'] },
55880
- React__default["default"].createElement("i", { className: iconClassName }, 'expand_more')) }, positionProps, props.menuProps), props.children)));
55879
+ }, menuButton: React__default["default"].createElement("button", { disabled: props.disabled, className: clsx('popup-toggle-button'), "data-testid": props['data-testid'], type: "button" },
55880
+ React__default["default"].createElement("i", { className: clsx(iconClassName) }, 'expand_more')) }, positionProps, props.menuProps), props.children)));
55881
55881
  };
55882
55882
  //required by react menu wrapping
55883
55883
  reactMenu.applyStatics(reactMenu.MenuItem)(LuiSplitButtonMenuItem);