@sledge-app/react-instant-search 0.0.25 → 0.0.27
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/SearchIconWidget/SearchIconWidgetPopup.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 +14 -7
- package/dist/sledge-react-instant-search.js.map +1 -1
- package/package.json +1 -1
|
@@ -2264,11 +2264,11 @@ const SearchIconWidget = (props) => {
|
|
|
2264
2264
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "sledge-instant-search__icon-widget", onClick: handleShowWidget, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SearchIcon, { ...sizing, color: "currentColor" }) });
|
|
2265
2265
|
};
|
|
2266
2266
|
const SearchIconWidgetPopup$1 = "";
|
|
2267
|
-
const
|
|
2268
|
-
console.log("listsComponent", listsComponent);
|
|
2267
|
+
const RenderSuggestionKeywordLists = ({ listsComponent, keywords }) => {
|
|
2268
|
+
console.log("render listsComponent RenderSuggestionKeywordLists", listsComponent);
|
|
2269
2269
|
return listsComponent ? listsComponent({ keywords }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
2270
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__icon-widget-search-form-result-title", children: "Suggestions
|
|
2271
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: "sledge-instant-search__icon-widget-search-form-result-list", children: keywords.map((keyword, index) => {
|
|
2270
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__icon-widget-search-form-result-title", children: "Suggestions teszzz" }),
|
|
2271
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: "sledge-instant-search__icon-widget-search-form-result-list", children: keywords == null ? void 0 : keywords.map((keyword, index) => {
|
|
2272
2272
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
2273
2273
|
"a",
|
|
2274
2274
|
{
|
|
@@ -2284,7 +2284,8 @@ const SuggestionKeywordLists = ({ listsComponent, keywords }) => {
|
|
|
2284
2284
|
}) })
|
|
2285
2285
|
] });
|
|
2286
2286
|
};
|
|
2287
|
-
const
|
|
2287
|
+
const RenderOtherIndexLists = ({ listsComponent, name, items }) => {
|
|
2288
|
+
console.log("render listsComponent RenderOtherIndexLists", listsComponent);
|
|
2288
2289
|
return listsComponent ? listsComponent({ name, items }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
2289
2290
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge-instant-search__icon-widget-search-form-result-title", children: [
|
|
2290
2291
|
name,
|
|
@@ -2508,10 +2509,16 @@ const SearchIconWidgetPopup = () => {
|
|
|
2508
2509
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__icon-widget-search-form-result-flex-item-product", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoading.ProductGrid, { count: 6, type: "medium" }) })
|
|
2509
2510
|
] }) }) }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ScrollArea, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__icon-widget-search-form-result-wrapper", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge-instant-search__icon-widget-search-form-result-flex", children: [
|
|
2510
2511
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge-instant-search__icon-widget-search-form-result-flex-item-other", children: [
|
|
2511
|
-
Object.keys(suggestionSettings).length && ((_c = (_b = suggestionSettings[suggestionIndex]) == null ? void 0 : _b.keywords) == null ? void 0 : _c.active) && ((_f = (_e = (_d = suggestionSettings[suggestionIndex]) == null ? void 0 : _d.keywords) == null ? void 0 : _e.list) == null ? void 0 : _f.length) ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2512
|
+
Object.keys(suggestionSettings).length && ((_c = (_b = suggestionSettings[suggestionIndex]) == null ? void 0 : _b.keywords) == null ? void 0 : _c.active) && ((_f = (_e = (_d = suggestionSettings[suggestionIndex]) == null ? void 0 : _d.keywords) == null ? void 0 : _e.list) == null ? void 0 : _f.length) ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2513
|
+
RenderSuggestionKeywordLists,
|
|
2514
|
+
{
|
|
2515
|
+
listsComponent: handleFunctions.suggestionKeywordListsComponent,
|
|
2516
|
+
keywords: suggestionSettings[suggestionIndex].keywords.list
|
|
2517
|
+
}
|
|
2518
|
+
) : null,
|
|
2512
2519
|
searchResultOther && searchResultOther.map((item, index) => {
|
|
2513
2520
|
const { hits, name } = item;
|
|
2514
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(React__default.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2521
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(React__default.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderOtherIndexLists, { listsComponent: handleFunctions.otherIndexListsComponent, name, items: hits }) }, index);
|
|
2515
2522
|
})
|
|
2516
2523
|
] }),
|
|
2517
2524
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "sledge-instant-search__icon-widget-search-form-result-flex-item-product", children: [
|