@sledge-app/react-instant-search 0.0.36 → 0.0.37
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/dist/components/ProductFilterWidget/ProductFilterWidgetInitSelector.d.ts.map +1 -1
- package/dist/components/SearchIconWidget/SearchIconWidget.d.ts +1 -0
- package/dist/components/SearchIconWidget/SearchIconWidget.d.ts.map +1 -1
- package/dist/components/SearchIconWidget/SearchIconWidgetPopup.d.ts +1 -1
- package/dist/components/SearchIconWidget/SearchIconWidgetPopup.d.ts.map +1 -1
- package/dist/components/SearchResultWidget/SearchResultWidgetInitSelector.d.ts.map +1 -1
- package/dist/sledge-react-instant-search.cjs +1 -1
- package/dist/sledge-react-instant-search.cjs.map +1 -1
- package/dist/sledge-react-instant-search.js +5 -4
- package/dist/sledge-react-instant-search.js.map +1 -1
- package/package.json +1 -1
|
@@ -2188,7 +2188,7 @@ const SkeletonLoading = {
|
|
|
2188
2188
|
BlogGrid: SkeletonBlogGrid
|
|
2189
2189
|
};
|
|
2190
2190
|
const SearchIconWidget = (props) => {
|
|
2191
|
-
const { size = "sm", children, onAfterAddToCart, onAfterAddWishlist, onAfterRemoveWishlist, onAfterRenderProduct } = props || {};
|
|
2191
|
+
const { size = "sm", children, showPopup, onAfterAddToCart, onAfterAddWishlist, onAfterRemoveWishlist, onAfterRenderProduct } = props || {};
|
|
2192
2192
|
let productCardsComponent = null;
|
|
2193
2193
|
let suggestionKeywordListsComponent = null;
|
|
2194
2194
|
let otherIndexListsComponent = null;
|
|
@@ -2250,7 +2250,8 @@ const SearchIconWidget = (props) => {
|
|
|
2250
2250
|
productCardsComponent,
|
|
2251
2251
|
suggestionKeywordListsComponent,
|
|
2252
2252
|
otherIndexListsComponent,
|
|
2253
|
-
searchViewMoreResultComponent
|
|
2253
|
+
searchViewMoreResultComponent,
|
|
2254
|
+
showPopup
|
|
2254
2255
|
);
|
|
2255
2256
|
};
|
|
2256
2257
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "sledge-instant-search__icon-widget", onClick: handleShowWidget, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SearchIcon, { ...sizing, color: "currentColor" }) });
|
|
@@ -2418,8 +2419,8 @@ const SearchIconWidgetPopup = () => {
|
|
|
2418
2419
|
}, suggestionKeywordListsComponent = () => {
|
|
2419
2420
|
}, otherIndexListsComponent = () => {
|
|
2420
2421
|
}, searchViewMoreResultComponent = () => {
|
|
2421
|
-
}) => {
|
|
2422
|
-
setShowInfo(true);
|
|
2422
|
+
}, showPopup) => {
|
|
2423
|
+
setShowInfo(showPopup ? showPopup : true);
|
|
2423
2424
|
setHandleFunctions({
|
|
2424
2425
|
onAfterAddToCart,
|
|
2425
2426
|
onAfterAddWishlist,
|