@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.
@@ -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,