maru_design2 2.22.2 → 2.22.3
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,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.22.3](https://github.com/42maru-ai/maru-design2/compare/v2.22.2...v2.22.3) (2025-02-11)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* :bug: SearchInput - delete filter.onClose [#480](https://github.com/42maru-ai/maru-design2/issues/480) ([351ea58](https://github.com/42maru-ai/maru-design2/commit/351ea58eae4a25517ba2b107d5aa82492df9c15e))
|
|
9
|
+
|
|
3
10
|
## [2.22.2](https://github.com/42maru-ai/maru-design2/compare/v2.22.1...v2.22.2) (2025-02-11)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -12,7 +12,6 @@ interface Props {
|
|
|
12
12
|
searchButtonContent?: string;
|
|
13
13
|
onSearch: () => void;
|
|
14
14
|
inputWrapperRef: React.RefObject<HTMLDivElement>;
|
|
15
|
-
onClose: () => void;
|
|
16
15
|
}
|
|
17
|
-
declare function Filter({ on, formats, hoverContent, resetButtonContent, onReset, searchButtonContent, onSearch, inputWrapperRef,
|
|
16
|
+
declare function Filter({ on, formats, hoverContent, resetButtonContent, onReset, searchButtonContent, onSearch, inputWrapperRef, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
17
|
export default Filter;
|
|
@@ -29,7 +29,6 @@ export interface SearchInputProps extends Omit<React.InputHTMLAttributes<HTMLInp
|
|
|
29
29
|
resetButtonContent?: string;
|
|
30
30
|
onSearch: () => void;
|
|
31
31
|
searchButtonContent?: string;
|
|
32
|
-
onClose: () => void;
|
|
33
32
|
};
|
|
34
33
|
}
|
|
35
34
|
export declare function SearchInput({ hiddenClearButton, className, filter, ...props }: SearchInputProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -26531,18 +26531,13 @@ function Filter(_a) {
|
|
|
26531
26531
|
onReset = _a.onReset,
|
|
26532
26532
|
searchButtonContent = _a.searchButtonContent,
|
|
26533
26533
|
onSearch = _a.onSearch,
|
|
26534
|
-
inputWrapperRef = _a.inputWrapperRef
|
|
26535
|
-
onClose = _a.onClose;
|
|
26534
|
+
inputWrapperRef = _a.inputWrapperRef;
|
|
26536
26535
|
var _b = useState(false),
|
|
26537
26536
|
open = _b[0],
|
|
26538
26537
|
setOpen = _b[1];
|
|
26539
|
-
var handleClose = function handleClose() {
|
|
26540
|
-
setOpen(false);
|
|
26541
|
-
onClose();
|
|
26542
|
-
};
|
|
26543
26538
|
var handleSearch = function handleSearch() {
|
|
26544
26539
|
onSearch();
|
|
26545
|
-
|
|
26540
|
+
setOpen(false);
|
|
26546
26541
|
};
|
|
26547
26542
|
return jsxs(Fragment, {
|
|
26548
26543
|
children: [jsx("button", __assign({
|
|
@@ -26566,7 +26561,9 @@ function Filter(_a) {
|
|
|
26566
26561
|
})), jsx(Popover, __assign({
|
|
26567
26562
|
anchorEl: inputWrapperRef.current,
|
|
26568
26563
|
open: open,
|
|
26569
|
-
onClose:
|
|
26564
|
+
onClose: function onClose() {
|
|
26565
|
+
return setOpen(false);
|
|
26566
|
+
},
|
|
26570
26567
|
direction: "bottom-end",
|
|
26571
26568
|
className: "maru-search-input-filter-popover"
|
|
26572
26569
|
}, {
|
|
@@ -26629,8 +26626,7 @@ function SearchInput(_a) {
|
|
|
26629
26626
|
resetButtonContent: filter.resetButtonContent,
|
|
26630
26627
|
onSearch: filter.onSearch,
|
|
26631
26628
|
searchButtonContent: filter.searchButtonContent,
|
|
26632
|
-
inputWrapperRef: inputWrapperRef
|
|
26633
|
-
onClose: filter.onClose
|
|
26629
|
+
inputWrapperRef: inputWrapperRef
|
|
26634
26630
|
}) : undefined,
|
|
26635
26631
|
hiddenClearButton: hiddenClearButton
|
|
26636
26632
|
}));
|