@webiny/ui 5.22.0-beta.1 → 5.22.1-beta.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.
@@ -8,6 +8,7 @@ export declare type Props = AutoCompleteBaseProps & {
8
8
  placement?: Placement;
9
9
  onChange?: (value: any, selection: any) => void;
10
10
  loading?: boolean;
11
+ noResultFound?: Function;
11
12
  };
12
13
  declare type State = {
13
14
  inputValue: string;
@@ -144,7 +144,7 @@ var AutoComplete = /*#__PURE__*/function (_React$Component) {
144
144
  className: classNames("autocomplete__options-list", listStyles)
145
145
  }, getMenuProps()), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(Typography, {
146
146
  use: "body2"
147
- }, "No results."))));
147
+ }, "No results."), this.props.noResultFound)));
148
148
  }
149
149
 
150
150
  return /*#__PURE__*/React.createElement(Elevation, {
@@ -21,6 +21,7 @@ export declare type MultiAutoCompleteProps = AutoCompleteBaseProps & {
21
21
  * Render list item when `useMultipleSelectionList` is used.
22
22
  */
23
23
  renderListItemLabel?: Function;
24
+ noResultFound?: Function;
24
25
  };
25
26
  declare type State = {
26
27
  inputValue: string;
@@ -260,7 +260,7 @@ export var MultiAutoComplete = /*#__PURE__*/function (_React$Component) {
260
260
  className: classNames("multi-autocomplete__options-list", listStyles)
261
261
  }, getMenuProps()), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(Typography, {
262
262
  use: "body2"
263
- }, "No results."))));
263
+ }, "No results."), this.props.noResultFound)));
264
264
  }
265
265
 
266
266
  var renderItem = this.props.renderItem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/ui",
3
- "version": "5.22.0-beta.1",
3
+ "version": "5.22.1-beta.0",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -81,11 +81,11 @@
81
81
  "@storybook/addon-knobs": "^5.0.5",
82
82
  "@storybook/addon-links": "^5.0.5",
83
83
  "@storybook/react": "^5.2.8",
84
- "@webiny/cli": "^5.22.0-beta.1",
85
- "@webiny/form": "^5.22.0-beta.1",
86
- "@webiny/project-utils": "^5.22.0-beta.1",
87
- "@webiny/storybook-utils": "^5.22.0-beta.1",
88
- "@webiny/validation": "^5.22.0-beta.1",
84
+ "@webiny/cli": "^5.22.1-beta.0",
85
+ "@webiny/form": "^5.22.1-beta.0",
86
+ "@webiny/project-utils": "^5.22.1-beta.0",
87
+ "@webiny/storybook-utils": "^5.22.1-beta.0",
88
+ "@webiny/validation": "^5.22.1-beta.0",
89
89
  "babel-loader": "^8.0.0-beta.6",
90
90
  "babel-plugin-emotion": "^9.2.8",
91
91
  "execa": "^5.0.0",
@@ -132,5 +132,5 @@
132
132
  ]
133
133
  }
134
134
  },
135
- "gitHead": "b651010b23f28b3ce1c27130713322ce65b32dcd"
135
+ "gitHead": "37f7c3d99baa1793fe29221b5eca40fe92cfe190"
136
136
  }