@sledge-app/react-instant-search 2.0.71 → 2.0.72

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.
@@ -9154,7 +9154,7 @@ const DesktopLayout = (props) => {
9154
9154
  );
9155
9155
  };
9156
9156
  const FilterFlyoutLayout = (props) => {
9157
- var _a, _b, _c, _d;
9157
+ var _a, _b, _c, _d, _e, _f;
9158
9158
  const {
9159
9159
  displaySettings,
9160
9160
  languageSettings,
@@ -9191,6 +9191,7 @@ const FilterFlyoutLayout = (props) => {
9191
9191
  searchAndSelectOption: searchAndSelectOptionSkeleton,
9192
9192
  productGrid: productGridSkeleton
9193
9193
  } = skeleton || {};
9194
+ const columnGridElement = ((_a = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _a.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null;
9194
9195
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
9195
9196
  /* @__PURE__ */ jsxRuntimeExports.jsx(
9196
9197
  FlyoutSidebar,
@@ -9206,23 +9207,26 @@ const FilterFlyoutLayout = (props) => {
9206
9207
  ),
9207
9208
  /* @__PURE__ */ jsxRuntimeExports.jsx(ResultWrapper, { displaySettings, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(ResultData, { children: [
9208
9209
  /* @__PURE__ */ jsxRuntimeExports.jsx(ResultDataKeyword, { children: isFirstLoading ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
9209
- ((_a = displaySettings == null ? void 0 : displaySettings.filter) == null ? void 0 : _a.show_total_products) ? summaryTextSkeleton : null,
9210
+ ((_b = displaySettings == null ? void 0 : displaySettings.filter) == null ? void 0 : _b.show_total_products) ? summaryTextSkeleton : null,
9210
9211
  searchFieldSkeletonComponent,
9211
9212
  filterHorizontalSkeleton,
9212
9213
  selectOptionSkeletonComponent
9213
9214
  ] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
9214
- /* @__PURE__ */ jsxRuntimeExports.jsx(SummaryTextHorizontal, { children: summaryText }),
9215
- ((_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null,
9215
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(SummaryTextHorizontal, { children: [
9216
+ summaryText,
9217
+ ((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_search_bar) ? columnGridElement : null
9218
+ ] }),
9219
+ ((_d = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _d.hide_search_bar) ? null : columnGridElement,
9216
9220
  /* @__PURE__ */ jsxRuntimeExports.jsx(FilterHorizontalBlockMobile, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(ResultSearchFieldFlex, { children: [
9217
9221
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Button, { type: "button", className: "sledge-instant-search__trigger-filter-flyout", onClick: () => setOpenFilterFlyout == null ? void 0 : setOpenFilterFlyout(true), children: [
9218
9222
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: language_filter || "Filter" }),
9219
9223
  /* @__PURE__ */ jsxRuntimeExports.jsx(FilterIcon, { width: 18, height: 18, color: "#393d4e" })
9220
9224
  ] }),
9221
- ((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_search_bar) ? null : searchField
9225
+ ((_e = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _e.hide_search_bar) ? null : searchField
9222
9226
  ] }) }),
9223
9227
  /* @__PURE__ */ jsxRuntimeExports.jsxs(SelectFieldWrapper, { children: [
9224
9228
  /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort }),
9225
- ((_d = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _d.hide_limit_options) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
9229
+ ((_f = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _f.hide_limit_options) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
9226
9230
  ] })
9227
9231
  ] }) }),
9228
9232
  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: [
@@ -9357,7 +9361,7 @@ const StickyFilterButtonLayout = (props) => {
9357
9361
  ] });
9358
9362
  };
9359
9363
  const MobileLayout = (props) => {
9360
- var _a, _b, _c;
9364
+ var _a, _b, _c, _d;
9361
9365
  const { displaySettings } = props;
9362
9366
  const renderLayout = () => {
9363
9367
  var _a2;
@@ -9379,7 +9383,8 @@ const MobileLayout = (props) => {
9379
9383
  layout: (_a = displaySettings == null ? void 0 : displaySettings.filter) == null ? void 0 : _a.mobile_layout,
9380
9384
  additionalProps: {
9381
9385
  "data-hide-search-bar": (_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.hide_search_bar,
9382
- "data-hide-limit-options": (_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_limit_options
9386
+ "data-hide-limit-options": (_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_limit_options,
9387
+ "data-show-switch-view-option": (_d = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _d.show_switch_view_option
9383
9388
  },
9384
9389
  children: renderLayout()
9385
9390
  }