@sledge-app/react-instant-search 2.0.24 → 2.0.25
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.
|
@@ -8698,7 +8698,7 @@ const DesktopLayout = (props) => {
|
|
|
8698
8698
|
);
|
|
8699
8699
|
};
|
|
8700
8700
|
const FilterFlyoutLayout = (props) => {
|
|
8701
|
-
var _a, _b, _c;
|
|
8701
|
+
var _a, _b, _c, _d;
|
|
8702
8702
|
const {
|
|
8703
8703
|
displaySettings,
|
|
8704
8704
|
languageSettings,
|
|
@@ -8756,17 +8756,17 @@ const FilterFlyoutLayout = (props) => {
|
|
|
8756
8756
|
selectOptionSkeletonComponent
|
|
8757
8757
|
] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
8758
8758
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SummaryTextHorizontal, { children: summaryText }),
|
|
8759
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }),
|
|
8759
|
+
((_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null,
|
|
8760
8760
|
/* @__PURE__ */ jsxRuntimeExports.jsx(FilterHorizontalBlockMobile, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(ResultSearchFieldFlex, { children: [
|
|
8761
8761
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Button, { type: "button", className: "sledge-instant-search__trigger-filter-flyout", onClick: () => setOpenFilterFlyout == null ? void 0 : setOpenFilterFlyout(true), children: [
|
|
8762
8762
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: language_filter || "Filter" }),
|
|
8763
8763
|
/* @__PURE__ */ jsxRuntimeExports.jsx(FilterIcon, { width: 18, height: 18, color: "#393d4e" })
|
|
8764
8764
|
] }),
|
|
8765
|
-
((
|
|
8765
|
+
((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_search_bar) ? null : searchField
|
|
8766
8766
|
] }) }),
|
|
8767
8767
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(SelectFieldWrapper, { children: [
|
|
8768
8768
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort }),
|
|
8769
|
-
((
|
|
8769
|
+
((_d = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _d.hide_limit_options) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
|
|
8770
8770
|
] })
|
|
8771
8771
|
] }) }),
|
|
8772
8772
|
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: [
|
|
@@ -8777,7 +8777,7 @@ const FilterFlyoutLayout = (props) => {
|
|
|
8777
8777
|
] });
|
|
8778
8778
|
};
|
|
8779
8779
|
const FilterStandardLayout = (props) => {
|
|
8780
|
-
var _a, _b, _c;
|
|
8780
|
+
var _a, _b, _c, _d;
|
|
8781
8781
|
const { displaySettings, languageSettings, allowedFilter, isFirstLoading, isLoading, isLoadingProduct, isLoadingSetting, searchResult = [], components, skeleton } = props;
|
|
8782
8782
|
const {
|
|
8783
8783
|
filterHorizontal = null,
|
|
@@ -8807,14 +8807,14 @@ const FilterStandardLayout = (props) => {
|
|
|
8807
8807
|
selectOptionSkeletonComponent
|
|
8808
8808
|
] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
8809
8809
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SummaryTextHorizontal, { children: summaryText }),
|
|
8810
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }),
|
|
8810
|
+
((_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null,
|
|
8811
8811
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(FilterHorizontalBlockMobile, { children: [
|
|
8812
|
-
((
|
|
8812
|
+
((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_search_bar) ? null : searchField,
|
|
8813
8813
|
filterHorizontal == null ? void 0 : filterHorizontal({ deviceType: "mobile" })
|
|
8814
8814
|
] }),
|
|
8815
8815
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(SelectFieldWrapper, { children: [
|
|
8816
8816
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort }),
|
|
8817
|
-
((
|
|
8817
|
+
((_d = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _d.hide_limit_options) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
|
|
8818
8818
|
] })
|
|
8819
8819
|
] }) }),
|
|
8820
8820
|
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: [
|
|
@@ -8824,7 +8824,7 @@ const FilterStandardLayout = (props) => {
|
|
|
8824
8824
|
] }) }) });
|
|
8825
8825
|
};
|
|
8826
8826
|
const StickyFilterButtonLayout = (props) => {
|
|
8827
|
-
var _a, _b, _c;
|
|
8827
|
+
var _a, _b, _c, _d;
|
|
8828
8828
|
const {
|
|
8829
8829
|
displaySettings,
|
|
8830
8830
|
languageSettings,
|
|
@@ -8886,11 +8886,11 @@ const StickyFilterButtonLayout = (props) => {
|
|
|
8886
8886
|
selectOptionSkeletonComponent
|
|
8887
8887
|
] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
8888
8888
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SummaryTextHorizontal, { children: summaryText }),
|
|
8889
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }),
|
|
8890
|
-
((
|
|
8889
|
+
((_b = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _b.show_switch_view_option) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnGridSelectorWrapper, { children: columnGridSelector }) : null,
|
|
8890
|
+
((_c = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _c.hide_search_bar) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(FilterHorizontalBlockMobile, { children: searchField }),
|
|
8891
8891
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(SelectFieldWrapper, { children: [
|
|
8892
8892
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: sort }),
|
|
8893
|
-
((
|
|
8893
|
+
((_d = displaySettings == null ? void 0 : displaySettings.search) == null ? void 0 : _d.hide_limit_options) ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(SelectFieldItem, { children: limit })
|
|
8894
8894
|
] })
|
|
8895
8895
|
] }) }),
|
|
8896
8896
|
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: [
|