@linzjs/lui 17.36.5 → 17.36.7

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
+ ## [17.36.7](https://github.com/linz/lui/compare/v17.36.6...v17.36.7) (2023-02-28)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **searh-input:** Implement a callback function on clearing search re… ([#865](https://github.com/linz/lui/issues/865)) ([726bf4b](https://github.com/linz/lui/commit/726bf4b31dc42e7def7e1476265b29e8dcfddf1e))
7
+
8
+ ## [17.36.6](https://github.com/linz/lui/compare/v17.36.5...v17.36.6) (2023-02-28)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **icon-button:** Update svg icon color to sync with figma design ([#863](https://github.com/linz/lui/issues/863)) ([418b8c7](https://github.com/linz/lui/commit/418b8c7534551a4b5e7d67c04db6a3f5d2565655))
14
+
1
15
  ## [17.36.5](https://github.com/linz/lui/compare/v17.36.4...v17.36.5) (2023-02-28)
2
16
 
3
17
 
@@ -21,6 +21,7 @@ export interface ISearchInputProps {
21
21
  inputTransformer?: (input: string) => string;
22
22
  name?: string;
23
23
  focusUpdate?: boolean;
24
+ onClearCallback?: () => void;
24
25
  }
25
26
  export declare function isGroupedResult(result: ISearchResult[] | ISearchGroupedResult[]): result is ISearchGroupedResult[];
26
27
  export declare const LuiSearchInput: React.FC<React.PropsWithChildren<ISearchInputProps>>;
package/dist/index.js CHANGED
@@ -42686,7 +42686,9 @@ var LuiSearchInput = function (props) {
42686
42686
  }, [typedValue]);
42687
42687
  var cancelIcon = typedValue !== '' ? (React__default["default"].createElement(LuiIcon, { alt: "clear", name: "ic_cancel_clear", size: "md", className: 'LuiSearchInput-iconPosition', spanProps: {
42688
42688
  onClick: function () {
42689
+ var _a;
42689
42690
  setInputValue('');
42691
+ (_a = props.onClearCallback) === null || _a === void 0 ? void 0 : _a.call(props);
42690
42692
  setResults([]);
42691
42693
  }
42692
42694
  } })) : null;