@sledge-app/react-instant-search 2.0.5 → 2.0.6

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.
@@ -7969,7 +7969,7 @@ const ProductGridPaginationWrapper = (props) => {
7969
7969
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-product-grid-pagination-wrapper", children });
7970
7970
  };
7971
7971
  const FilterVerticalLayout = (props) => {
7972
- var _a;
7972
+ var _a, _b;
7973
7973
  const {
7974
7974
  displaySettings,
7975
7975
  allowedFilter,
@@ -8020,7 +8020,7 @@ const FilterVerticalLayout = (props) => {
8020
8020
  isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: productGridSkeleton }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
8021
8021
  /* @__PURE__ */ jsxRuntimeExports.jsxs(SummaryTextVertical, { className: "sledge-instant-search__result-summary-text-with-column-grid-selector-wrapper", children: [
8022
8022
  summaryText,
8023
- /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector })
8023
+ ((_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null
8024
8024
  ] }),
8025
8025
  (searchResult == null ? void 0 : searchResult.length) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
8026
8026
  productGrid,
@@ -8031,7 +8031,7 @@ const FilterVerticalLayout = (props) => {
8031
8031
  ] }) });
8032
8032
  };
8033
8033
  const FilterHorizontalLayout = (props) => {
8034
- var _a;
8034
+ var _a, _b;
8035
8035
  const { displaySettings, allowedFilter, isFirstLoading, isLoading, isLoadingProduct, isLoadingSetting, searchResult = [], propsData, hideFilterWhenOneValue, components, skeleton } = props;
8036
8036
  const {
8037
8037
  filterHorizontal = null,
@@ -8065,7 +8065,7 @@ const FilterHorizontalLayout = (props) => {
8065
8065
  /* @__PURE__ */ jsxRuntimeExports.jsxs(SelectFieldWrapper, { children: [
8066
8066
  /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort }),
8067
8067
  /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit }),
8068
- /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector })
8068
+ ((_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null
8069
8069
  ] })
8070
8070
  ] }),
8071
8071
  isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: productGridSkeleton }) : /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: (searchResult == null ? void 0 : searchResult.length) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
@@ -8076,7 +8076,7 @@ const FilterHorizontalLayout = (props) => {
8076
8076
  ] });
8077
8077
  };
8078
8078
  const FilterFlyoutLayout$1 = (props) => {
8079
- var _a;
8079
+ var _a, _b;
8080
8080
  const {
8081
8081
  displaySettings,
8082
8082
  languageSettings,
@@ -8145,7 +8145,7 @@ const FilterFlyoutLayout$1 = (props) => {
8145
8145
  isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: productGridSkeleton }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
8146
8146
  /* @__PURE__ */ jsxRuntimeExports.jsxs(SummaryTextVertical, { className: "sledge-instant-search__result-summary-text-with-column-grid-selector-wrapper", children: [
8147
8147
  summaryText,
8148
- /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector })
8148
+ ((_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null
8149
8149
  ] }),
8150
8150
  (searchResult == null ? void 0 : searchResult.length) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
8151
8151
  productGrid,
@@ -8156,7 +8156,7 @@ const FilterFlyoutLayout$1 = (props) => {
8156
8156
  ] });
8157
8157
  };
8158
8158
  const EnterpriseLayout = (props) => {
8159
- var _a, _b;
8159
+ var _a, _b, _c;
8160
8160
  const {
8161
8161
  displaySettings,
8162
8162
  allowedFilter,
@@ -8202,7 +8202,7 @@ const EnterpriseLayout = (props) => {
8202
8202
  /* @__PURE__ */ jsxRuntimeExports.jsx(FilterIcon, { width: 18, height: 18, color: "#393d4e" })
8203
8203
  ] }),
8204
8204
  /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort }),
8205
- /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) })
8205
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldWrapper, { children: ((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null })
8206
8206
  ] }),
8207
8207
  /* @__PURE__ */ jsxRuntimeExports.jsxs(ResultData, { children: [
8208
8208
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `sledge-instant-search__result-filter-toggle-panel ${"animated"}`, "data-filter-toggle": openFilterToggle ? "open" : "closed", children: filterVertical == null ? void 0 : filterVertical({
@@ -8217,7 +8217,7 @@ const EnterpriseLayout = (props) => {
8217
8217
  ] }) });
8218
8218
  };
8219
8219
  const YuvaLayout = (props) => {
8220
- var _a, _b;
8220
+ var _a, _b, _c;
8221
8221
  const {
8222
8222
  displaySettings,
8223
8223
  allowedFilter,
@@ -8264,24 +8264,24 @@ const YuvaLayout = (props) => {
8264
8264
  ] }),
8265
8265
  /* @__PURE__ */ jsxRuntimeExports.jsxs(SelectFieldWrapper, { children: [
8266
8266
  summaryText,
8267
- /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }),
8267
+ ((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null,
8268
8268
  /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort })
8269
8269
  ] })
8270
8270
  ] }),
8271
- /* @__PURE__ */ jsxRuntimeExports.jsx(ResultData, { children: isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: productGridSkeleton }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
8271
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(ResultData, { children: [
8272
8272
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `sledge-instant-search__result-filter-toggle-panel ${""}`, "data-filter-toggle": openFilterToggle ? "open" : "closed", children: filterVertical == null ? void 0 : filterVertical({
8273
8273
  filterLayoutType: "standard",
8274
8274
  isSkeleton: Boolean(!isAllowedFilterTree && isFirstLoading || isAllowedFilterTree && isLoadingProduct || isLoadingSetting)
8275
8275
  }) }),
8276
- /* @__PURE__ */ jsxRuntimeExports.jsx(ProductGridPaginationWrapper, { children: (searchResult == null ? void 0 : searchResult.length) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
8276
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__result-data-flex", children: isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: productGridSkeleton }) : /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ProductGridPaginationWrapper, { children: (searchResult == null ? void 0 : searchResult.length) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
8277
8277
  productGrid,
8278
8278
  pagination
8279
- ] }) : resultEmpty })
8280
- ] }) })
8279
+ ] }) : resultEmpty }) }) })
8280
+ ] })
8281
8281
  ] }) });
8282
8282
  };
8283
8283
  const ToyoLayout = (props) => {
8284
- var _a, _b;
8284
+ var _a, _b, _c;
8285
8285
  const { displaySettings, allowedFilter, isFirstLoading, isLoading, isLoadingProduct, isLoadingSetting, searchResult = [], propsData, hideFilterWhenOneValue, components, skeleton } = props;
8286
8286
  const {
8287
8287
  filterHorizontal = null,
@@ -8316,7 +8316,7 @@ const ToyoLayout = (props) => {
8316
8316
  sort
8317
8317
  }
8318
8318
  }) : null,
8319
- /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) })
8319
+ /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldWrapper, { children: ((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null })
8320
8320
  ] }),
8321
8321
  isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: productGridSkeleton }) : /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: (searchResult == null ? void 0 : searchResult.length) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
8322
8322
  filterActive == null ? void 0 : filterActive(),
@@ -8326,7 +8326,7 @@ const ToyoLayout = (props) => {
8326
8326
  ] }) }) });
8327
8327
  };
8328
8328
  const FilterHorizontalGroupLayout = (props) => {
8329
- var _a;
8329
+ var _a, _b;
8330
8330
  const { displaySettings, allowedFilter, isFirstLoading, isLoading, isLoadingProduct, isLoadingSetting, searchResult = [], propsData, hideFilterWhenOneValue, components, skeleton } = props;
8331
8331
  const {
8332
8332
  filterHorizontal = null,
@@ -8361,7 +8361,7 @@ const FilterHorizontalGroupLayout = (props) => {
8361
8361
  /* @__PURE__ */ jsxRuntimeExports.jsxs(SelectFieldWrapper, { children: [
8362
8362
  /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort }),
8363
8363
  /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit }),
8364
- /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector })
8364
+ ((_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null
8365
8365
  ] })
8366
8366
  ] }),
8367
8367
  isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: productGridSkeleton }) : /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: (searchResult == null ? void 0 : searchResult.length) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [