@envive-ai/react-toolkit 0.1.12 → 0.2.0
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/Accordion/index.cjs +3 -3
- package/dist/Accordion/index.d.cts +2 -2
- package/dist/Accordion/index.d.ts +2 -2
- package/dist/Accordion/index.js +3 -3
- package/dist/{Accordion-DBZpiQe7.cjs → Accordion-D9gO9_y3.cjs} +1 -1
- package/dist/{Accordion-Cp3Hx2zm.js → Accordion-ZEdp99Ph.js} +1 -1
- package/dist/AnimatedChevron/index.cjs +3 -0
- package/dist/AnimatedChevron/index.d.cts +11 -0
- package/dist/AnimatedChevron/index.d.ts +11 -0
- package/dist/AnimatedChevron/index.js +3 -0
- package/dist/AnimatedChevron-CwuXgR2r.js +29 -0
- package/dist/AnimatedChevron-e_UzWBl0.cjs +37 -0
- package/dist/AppliedFiltersScrollbar/index.cjs +25 -27
- package/dist/AppliedFiltersScrollbar/index.d.ts +2 -2
- package/dist/AppliedFiltersScrollbar/index.js +25 -27
- package/dist/ButtonBase/index.cjs +4 -4
- package/dist/ButtonBase/index.d.cts +3 -4
- package/dist/ButtonBase/index.d.ts +2 -3
- package/dist/ButtonBase/index.js +4 -4
- package/dist/{ButtonBase-BAf-nlCm.js → ButtonBase-BJ0qXMWD.js} +3 -3
- package/dist/{ButtonBase-Do88ndKa.cjs → ButtonBase-VIv-tn7H.cjs} +3 -3
- package/dist/DynamicFiltersScrollbar/index.cjs +23 -25
- package/dist/DynamicFiltersScrollbar/index.d.cts +2 -2
- package/dist/DynamicFiltersScrollbar/index.d.ts +2 -2
- package/dist/DynamicFiltersScrollbar/index.js +23 -25
- package/dist/DynamicFiltersScrollbar-HCYZjI14.cjs +81 -0
- package/dist/DynamicFiltersScrollbar-O0ai3cIG.js +66 -0
- package/dist/FilterScrollbar/index.cjs +3 -3
- package/dist/FilterScrollbar/index.d.cts +3 -3
- package/dist/FilterScrollbar/index.d.ts +3 -3
- package/dist/FilterScrollbar/index.js +3 -3
- package/dist/Headline/index.cjs +2 -2
- package/dist/Headline/index.d.cts +2 -2
- package/dist/Headline/index.d.ts +2 -2
- package/dist/Headline/index.js +2 -2
- package/dist/{Headline-DTT4RSv2.cjs → Headline-CKJmd2w4.cjs} +1 -1
- package/dist/{Headline-DNEWF8ly.js → Headline-DtjTB4xS.js} +1 -1
- package/dist/ImageWithFallback/index.cjs +1 -1
- package/dist/ImageWithFallback/index.d.cts +2 -2
- package/dist/ImageWithFallback/index.d.ts +2 -2
- package/dist/ImageWithFallback/index.js +1 -1
- package/dist/ModalSheet/index.cjs +2 -1
- package/dist/ModalSheet/index.d.cts +2 -2
- package/dist/ModalSheet/index.d.ts +2 -2
- package/dist/ModalSheet/index.js +2 -1
- package/dist/{ModalSheet-Csz8HIxs.cjs → ModalSheet-DwnbbFh7.cjs} +2 -26
- package/dist/{ModalSheet-01pxpy_K.js → ModalSheet-sMg44OLz.js} +2 -26
- package/dist/ProductCard/index.cjs +6 -6
- package/dist/ProductCard/index.d.cts +1 -1
- package/dist/ProductCard/index.d.ts +1 -1
- package/dist/ProductCard/index.js +6 -6
- package/dist/{ProductCard-FDyIMnZs.cjs → ProductCard-BDz80MCQ.cjs} +34 -34
- package/dist/{ProductCard-C3MjnfZJ.js → ProductCard-CqhNJShq.js} +34 -34
- package/dist/ProductGrid/index.cjs +7 -7
- package/dist/ProductGrid/index.d.cts +4 -8
- package/dist/ProductGrid/index.d.ts +4 -8
- package/dist/ProductGrid/index.js +7 -7
- package/dist/{ProductGrid-C9OKsyB2.js → ProductGrid-8n4XgcMr.js} +3 -7
- package/dist/{ProductGrid-TlntVJ6h.cjs → ProductGrid-RRcdkY5J.cjs} +3 -7
- package/dist/RadioButton/index.cjs +3 -3
- package/dist/RadioButton/index.d.cts +5 -3
- package/dist/RadioButton/index.d.ts +5 -3
- package/dist/RadioButton/index.js +3 -3
- package/dist/{RadioButton-DZ6QXkrN.cjs → RadioButton-BWnaUI8o.cjs} +17 -10
- package/dist/{RadioButton-Bf68dZl7.js → RadioButton-CG8_M0hY.js} +18 -11
- package/dist/RadioButtonGroup/index.cjs +4 -4
- package/dist/RadioButtonGroup/index.d.cts +2 -2
- package/dist/RadioButtonGroup/index.d.ts +2 -2
- package/dist/RadioButtonGroup/index.js +4 -4
- package/dist/{RadioButtonGroup-8k7hkJYB.js → RadioButtonGroup-B7EuiEP1.js} +2 -1
- package/dist/{RadioButtonGroup-Dc_n5amh.cjs → RadioButtonGroup-ReQqakpS.cjs} +2 -1
- package/dist/SearchAutocomplete/index.cjs +1 -1
- package/dist/SearchAutocomplete/index.js +1 -1
- package/dist/SearchFilter/index.cjs +15 -11
- package/dist/SearchFilter/index.d.cts +20 -6
- package/dist/SearchFilter/index.d.ts +20 -6
- package/dist/SearchFilter/index.js +12 -11
- package/dist/{SearchFilter-DvqBIXa1.js → SearchFilter-C8mgj84o.js} +28 -18
- package/dist/{SearchFilter-CTVBi5s3.cjs → SearchFilter-FrdHPM5O.cjs} +45 -17
- package/dist/SearchInput/index.cjs +4 -4
- package/dist/SearchInput/index.d.cts +3 -2
- package/dist/SearchInput/index.d.ts +4 -3
- package/dist/SearchInput/index.js +4 -4
- package/dist/{SearchInput-vJMWoLzS.cjs → SearchInput--x9NTMTb.cjs} +2 -2
- package/dist/{SearchInput-CVaCPWCE.js → SearchInput-IBq83nqF.js} +2 -2
- package/dist/SearchInputForm/index.cjs +5 -5
- package/dist/SearchInputForm/index.d.cts +34 -2
- package/dist/SearchInputForm/index.d.ts +34 -2
- package/dist/SearchInputForm/index.js +5 -5
- package/dist/SearchResultsContent/index.cjs +36 -39
- package/dist/SearchResultsContent/index.d.cts +4 -6
- package/dist/SearchResultsContent/index.d.ts +4 -6
- package/dist/SearchResultsContent/index.js +36 -39
- package/dist/SearchResultsFilterSidebar/index.cjs +13 -12
- package/dist/SearchResultsFilterSidebar/index.d.cts +1 -1
- package/dist/SearchResultsFilterSidebar/index.d.ts +1 -1
- package/dist/SearchResultsFilterSidebar/index.js +13 -12
- package/dist/SearchResultsStates/index.cjs +12 -12
- package/dist/SearchResultsStates/index.d.cts +6 -8
- package/dist/SearchResultsStates/index.d.ts +6 -8
- package/dist/SearchResultsStates/index.js +12 -12
- package/dist/{SearchResultsStates-iKz64Pd4.js → SearchResultsStates-D7dM35qq.js} +8 -10
- package/dist/{SearchResultsStates-CH4agenX.cjs → SearchResultsStates-nlaPbkj3.cjs} +8 -10
- package/dist/SparkleAnimation/index.cjs +1 -1
- package/dist/SparkleAnimation/index.d.cts +2 -2
- package/dist/SparkleAnimation/index.d.ts +2 -2
- package/dist/SparkleAnimation/index.js +1 -1
- package/dist/{SparkleAnimation-qi5WCJ9B.cjs → SparkleAnimation-D1aZE-7A.cjs} +0 -1
- package/dist/{SparkleAnimation-BLfNojLv.js → SparkleAnimation-DtWkXmkN.js} +0 -1
- package/dist/Spinner/index.cjs +1 -1
- package/dist/Spinner/index.d.cts +2 -2
- package/dist/Spinner/index.d.ts +2 -2
- package/dist/Spinner/index.js +1 -1
- package/dist/SuggestionButton/index.cjs +3 -3
- package/dist/SuggestionButton/index.d.ts +2 -2
- package/dist/SuggestionButton/index.js +3 -3
- package/dist/Text/index.cjs +2 -2
- package/dist/Text/index.d.cts +2 -2
- package/dist/Text/index.d.ts +3 -3
- package/dist/Text/index.js +2 -2
- package/dist/{Text-Bod4OMPk.js → Text-BLzNhX4H.js} +1 -1
- package/dist/{Text-MQjxqgZZ.cjs → Text-DllCE9_D.cjs} +1 -1
- package/dist/TextInput/index.cjs +2 -2
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +2 -2
- package/dist/{TextInput-DoM41M53.js → TextInput-BeHPlVHT.js} +1 -1
- package/dist/{TextInput-B3dTeD3q.cjs → TextInput-CGs4BY1q.cjs} +1 -1
- package/dist/ToggleButton/index.cjs +3 -3
- package/dist/ToggleButton/index.d.cts +2 -2
- package/dist/ToggleButton/index.d.ts +2 -2
- package/dist/ToggleButton/index.js +3 -3
- package/dist/{ToggleButton-GIVd2-Z4.js → ToggleButton-CRiPqTCb.js} +1 -1
- package/dist/{ToggleButton-CK_vkMvt.cjs → ToggleButton-DfJZ8POQ.cjs} +1 -1
- package/dist/{index-CFH3KUVw.d.cts → index-B9WeFNlO.d.cts} +5 -9
- package/dist/{index-B8l3muO3.d.ts → index-CLGe_Pam.d.cts} +2 -3
- package/dist/{index-Vck3pox6.d.ts → index-CeECGrFM.d.ts} +4 -8
- package/dist/{index-BMt66uqr.d.cts → index-PSzeHU2s.d.ts} +2 -3
- package/dist/{searchFilterSidebarVariants-CI782ylo.js → searchFilterSidebarVariants-B05f5SD5.js} +1 -1
- package/dist/{searchFilterSidebarVariants-DFfOTqjc.cjs → searchFilterSidebarVariants-NQhqq-NT.cjs} +1 -1
- package/dist/{textVariantClasses-Dgz7Zaql.cjs → textVariantClasses-CBre7vXv.cjs} +5 -7
- package/dist/{textVariantClasses-D77TGEy1.js → textVariantClasses-CRrTb43V.js} +5 -7
- package/dist/types-BhGjnuWx.d.cts +4 -0
- package/dist/types-CTOdb0G0.d.ts +4 -0
- package/package.json +7 -7
- package/src/atoms/search/types.ts +1 -5
- package/src/components/AnimatedChevron/index.ts +1 -0
- package/src/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.tsx +25 -27
- package/src/components/ButtonBase/ButtonBase.tsx +1 -2
- package/src/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.tsx +26 -28
- package/src/components/FilterScrollbar/AppliedFiltersScrollbar.tsx +25 -27
- package/src/components/FilterScrollbar/DynamicFiltersScrollbar.tsx +26 -28
- package/src/components/ModalSheet/ModalSheet.tsx +1 -1
- package/src/components/ModalSheet/common/closeIcon.tsx +2 -2
- package/src/components/ModalSheet/mobile/mobileHeader.tsx +1 -1
- package/src/components/ProductCard/ProductCard.tsx +5 -28
- package/src/components/ProductGrid/ProductGrid.tsx +3 -11
- package/src/components/RadioButton/RadioButton.tsx +15 -6
- package/src/components/RadioButtonGroup/RadioButtonGroup.tsx +1 -0
- package/src/components/SearchFilter/SearchFilter.tsx +2 -2
- package/src/components/SearchFilter/SearchFilterFooter.tsx +1 -1
- package/src/components/SearchFilter/SearchFilterHeader.tsx +6 -1
- package/src/components/SearchFilter/SearchFilterItem.tsx +17 -3
- package/src/components/SearchFilter/index.ts +4 -2
- package/src/components/SearchFilter/useHasFilterStateChanged.tsx +1 -0
- package/src/components/SearchFilter/utils.ts +4 -6
- package/src/components/SearchInput/SearchInput.tsx +2 -2
- package/src/components/SearchInput/searchInputVariants.ts +1 -1
- package/src/components/SearchInputForm/SearchInputForm.tsx +1 -1
- package/src/components/SearchInputForm/index.ts +0 -1
- package/src/components/SearchResultsContent/SearchResultsContent.tsx +33 -38
- package/src/components/SearchResultsFilterSidebar/SearchResultsFilter.tsx +2 -3
- package/src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts +1 -1
- package/src/components/SearchResultsStates/SearchResultsGrid.tsx +4 -8
- package/src/components/SearchResultsStates/SearchResultsLoadingGrid.tsx +3 -3
- package/src/components/SparkleAnimation/SparkleAnimation.tsx +0 -1
- package/src/components/Spinner/Spinner.tsx +29 -14
- package/src/components/SuggestionButton/SuggestionButton.tsx +1 -1
- package/src/components/SuggestionButton/types.ts +1 -1
- package/src/components/Text/textVariantClasses.ts +12 -10
- package/src/components/TextInput/TextInput.tsx +1 -0
- package/src/util/camelCasedPropertiesDeep.ts +22 -22
- package/src/util/internal.ts +4 -2
- package/src/util/splitWords.ts +35 -31
- package/dist/DynamicFiltersScrollbar-C4kdNSJ9.js +0 -70
- package/dist/DynamicFiltersScrollbar-CVw1PINp.cjs +0 -85
- package/dist/Styles/index.cjs +0 -274
- package/dist/Styles/index.d.cts +0 -258
- package/dist/Styles/index.d.ts +0 -258
- package/dist/Styles/index.js +0 -274
- package/dist/index-H_9LhS_1.d.cts +0 -36
- package/dist/index-h-QwQNnu.d.ts +0 -36
- package/src/components/SearchInputForm/types.ts +0 -1
- package/src/components/Styles/EnviveTailwindPreset.ts +0 -285
- package/src/components/Styles/index.ts +0 -2
- package/tailwind-preset.js +0 -3
- /package/dist/{ButtonBase-0NN6wmX-.js → ButtonBase-BktteD9c.js} +0 -0
- /package/dist/{ButtonBase-BIXx56hq.cjs → ButtonBase-Cb6Iec6f.cjs} +0 -0
- /package/dist/{ImageWithFallback-DqxjwO3i.js → ImageWithFallback-CbYsD1_a.js} +0 -0
- /package/dist/{ImageWithFallback-Cx-KNi-D.cjs → ImageWithFallback-Km9h16Vz.cjs} +0 -0
- /package/dist/{SearchAutocomplete-BlpII8Xs.js → SearchAutocomplete-BMNYZiJL.js} +0 -0
- /package/dist/{SearchAutocomplete-DIEhLT4C.cjs → SearchAutocomplete-BmHdijOv.cjs} +0 -0
- /package/dist/{Spinner-CjGLIRgs.js → Spinner-bg6jb_ks.js} +0 -0
- /package/dist/{Spinner-DFor2Szi.cjs → Spinner-rcWX566W.cjs} +0 -0
- /package/dist/{colorsConfig-DEfiLHH0.js → colorsConfig-Ck2jeqWe.js} +0 -0
- /package/dist/{colorsConfig-D-MZuBvt.cjs → colorsConfig-CqCKftuM.cjs} +0 -0
- /package/dist/{textVariantClasses-kyZtL8F5.d.ts → textVariantClasses-Bl8SAGwZ.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { CloseIconVariant, SearchFilterDatum, SearchFilterItemDatum, SelectFilterItem } from "@envive-ai/react-hooks/types";
|
|
1
|
+
import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
2
|
+
import { CloseIconVariant, FilterFooterProps, SearchFilterDatum, SearchFilterItemDatum, SelectFilterItem } from "@envive-ai/react-hooks/types";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SearchFilter/types.d.ts
|
|
5
5
|
interface SearchFilterItem$1 extends SearchFilterItemDatum {
|
|
@@ -55,7 +55,7 @@ declare const SearchFilter: ({
|
|
|
55
55
|
radioButtonHoverColor,
|
|
56
56
|
radioButtonUncheckedBorderColor,
|
|
57
57
|
filterCloseIconVariant
|
|
58
|
-
}: SearchFilterProps) =>
|
|
58
|
+
}: SearchFilterProps) => react_jsx_runtime28.JSX.Element;
|
|
59
59
|
//#endregion
|
|
60
60
|
//#region src/components/SearchFilter/SearchFilterHeader.d.ts
|
|
61
61
|
declare const SearchFilterHeader: ({
|
|
@@ -63,7 +63,17 @@ declare const SearchFilterHeader: ({
|
|
|
63
63
|
productCount,
|
|
64
64
|
headerClassName,
|
|
65
65
|
filterCloseIconVariant
|
|
66
|
-
}: SearchFilterHeaderProps) =>
|
|
66
|
+
}: SearchFilterHeaderProps) => react_jsx_runtime28.JSX.Element;
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/components/SearchFilter/SearchFilterFooter.d.ts
|
|
69
|
+
declare const SearchFilterFooter: ({
|
|
70
|
+
closeModal,
|
|
71
|
+
clearAllFilters,
|
|
72
|
+
filterCount,
|
|
73
|
+
applyFiltersUnchangedClasses,
|
|
74
|
+
applyFiltersChangedClasses,
|
|
75
|
+
hasFiltersChanged
|
|
76
|
+
}: FilterFooterProps) => react_jsx_runtime28.JSX.Element;
|
|
67
77
|
//#endregion
|
|
68
78
|
//#region src/components/SearchFilter/SearchFilterItem.d.ts
|
|
69
79
|
declare const SearchFilterItem: ({
|
|
@@ -72,6 +82,10 @@ declare const SearchFilterItem: ({
|
|
|
72
82
|
radioButtonFillColor,
|
|
73
83
|
radioButtonHoverColor,
|
|
74
84
|
radioButtonUncheckedBorderColor
|
|
75
|
-
}: SearchFilterItemProps) =>
|
|
85
|
+
}: SearchFilterItemProps) => react_jsx_runtime28.JSX.Element;
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region src/components/SearchFilter/utils.d.ts
|
|
88
|
+
declare const getSelectedFilterItemsCount: (filter: SearchFilterDatum) => number;
|
|
89
|
+
declare const getTotalSelectedFilterItemsCount: (filters: SearchFilterDatum[]) => number;
|
|
76
90
|
//#endregion
|
|
77
|
-
export { SearchFilter, SearchFilterHeader, SearchFilterItem };
|
|
91
|
+
export { SearchFilter, SearchFilterFooter, SearchFilterHeader, SearchFilterItem, getSelectedFilterItemsCount, getTotalSelectedFilterItemsCount };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import "../textVariantClasses-
|
|
2
|
-
import "../Text-
|
|
1
|
+
import "../textVariantClasses-CRrTb43V.js";
|
|
2
|
+
import "../Text-BLzNhX4H.js";
|
|
3
3
|
import "../Text-BMsncrpY.js";
|
|
4
|
-
import "../Accordion-
|
|
5
|
-
import "../
|
|
6
|
-
import "../ButtonBase-
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
10
|
-
import
|
|
11
|
-
import "../
|
|
4
|
+
import "../Accordion-ZEdp99Ph.js";
|
|
5
|
+
import "../AnimatedChevron-CwuXgR2r.js";
|
|
6
|
+
import "../ButtonBase-BJ0qXMWD.js";
|
|
7
|
+
import "../ButtonBase-BktteD9c.js";
|
|
8
|
+
import "../ModalSheet-sMg44OLz.js";
|
|
9
|
+
import "../RadioButton-CG8_M0hY.js";
|
|
10
|
+
import "../RadioButtonGroup-B7EuiEP1.js";
|
|
11
|
+
import { SearchFilter, SearchFilterFooter, SearchFilterHeader, SearchFilterItem, getSelectedFilterItemsCount, getTotalSelectedFilterItemsCount } from "../SearchFilter-C8mgj84o.js";
|
|
12
|
+
import "../ToggleButton-CRiPqTCb.js";
|
|
12
13
|
|
|
13
|
-
export { SearchFilter, SearchFilterHeader, SearchFilterItem };
|
|
14
|
+
export { SearchFilter, SearchFilterFooter, SearchFilterHeader, SearchFilterItem, getSelectedFilterItemsCount, getTotalSelectedFilterItemsCount };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Text } from "./Text-
|
|
2
|
-
import { Accordion } from "./Accordion-
|
|
3
|
-
import { ButtonBase } from "./ButtonBase-
|
|
4
|
-
import { ModalSheet } from "./ModalSheet-
|
|
5
|
-
import { RadioButtonGroup } from "./RadioButtonGroup-
|
|
6
|
-
import { ToggleButton } from "./ToggleButton-
|
|
1
|
+
import { Text } from "./Text-BLzNhX4H.js";
|
|
2
|
+
import { Accordion } from "./Accordion-ZEdp99Ph.js";
|
|
3
|
+
import { ButtonBase } from "./ButtonBase-BJ0qXMWD.js";
|
|
4
|
+
import { ModalSheet } from "./ModalSheet-sMg44OLz.js";
|
|
5
|
+
import { RadioButtonGroup } from "./RadioButtonGroup-B7EuiEP1.js";
|
|
6
|
+
import { ToggleButton } from "./ToggleButton-CRiPqTCb.js";
|
|
7
7
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
8
8
|
import classNames from "classnames";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -24,6 +24,8 @@ const SearchFilterHeader = ({ closeModal, productCount, headerClassName, filterC
|
|
|
24
24
|
}), /* @__PURE__ */ jsx("button", {
|
|
25
25
|
onClick: closeModal,
|
|
26
26
|
className: "spiffy-tw-p-2",
|
|
27
|
+
type: "button",
|
|
28
|
+
"aria-label": "Open Filter Menu",
|
|
27
29
|
children: /* @__PURE__ */ jsx("svg", {
|
|
28
30
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29
31
|
width: "14",
|
|
@@ -64,15 +66,11 @@ const useHasFilterStateChanged = (filters, isOpen) => {
|
|
|
64
66
|
|
|
65
67
|
//#endregion
|
|
66
68
|
//#region src/components/SearchFilter/utils.ts
|
|
67
|
-
const getSelectedFilterItemsCount = (filter) =>
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
if (filter.filterId === "sort") return acc;
|
|
73
|
-
return acc + getSelectedFilterItemsCount(filter);
|
|
74
|
-
}, 0);
|
|
75
|
-
};
|
|
69
|
+
const getSelectedFilterItemsCount = (filter) => filter.items.filter((item) => item.isSelected).length;
|
|
70
|
+
const getTotalSelectedFilterItemsCount = (filters) => filters.reduce((acc, filter) => {
|
|
71
|
+
if (filter.filterId === "sort") return acc;
|
|
72
|
+
return acc + getSelectedFilterItemsCount(filter);
|
|
73
|
+
}, 0);
|
|
76
74
|
|
|
77
75
|
//#endregion
|
|
78
76
|
//#region src/components/SearchFilter/SearchFilterFooter.tsx
|
|
@@ -238,9 +236,21 @@ const SearchFilter = ({ filters, productCount, selectFilterItem, clearAllFilters
|
|
|
238
236
|
const SearchFilterItem = ({ filterItem, onSelectFilterItem, radioButtonFillColor, radioButtonHoverColor, radioButtonUncheckedBorderColor }) => {
|
|
239
237
|
const { displayName, isSelected } = filterItem;
|
|
240
238
|
const radioClasses = classNames("spiffy-tw-w-4 spiffy-tw-h-4 spiffy-tw-rounded-full spiffy-tw-border-2", "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-justify-center", radioButtonUncheckedBorderColor, radioButtonHoverColor, { [radioButtonFillColor]: isSelected });
|
|
241
|
-
return /* @__PURE__ */ jsxs("
|
|
242
|
-
|
|
239
|
+
return /* @__PURE__ */ jsxs("button", {
|
|
240
|
+
type: "button",
|
|
241
|
+
role: "option",
|
|
242
|
+
"aria-selected": isSelected,
|
|
243
|
+
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-justify-between spiffy-tw-py-2",
|
|
243
244
|
onClick: () => onSelectFilterItem(filterItem),
|
|
245
|
+
onKeyDown: (event) => {
|
|
246
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
247
|
+
event.preventDefault();
|
|
248
|
+
onSelectFilterItem(filterItem);
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
onKeyUp: (event) => {
|
|
252
|
+
if (event.key === " ") event.preventDefault();
|
|
253
|
+
},
|
|
244
254
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
245
255
|
variant: "body3",
|
|
246
256
|
children: displayName
|
|
@@ -255,4 +265,4 @@ const SearchFilterItem = ({ filterItem, onSelectFilterItem, radioButtonFillColor
|
|
|
255
265
|
};
|
|
256
266
|
|
|
257
267
|
//#endregion
|
|
258
|
-
export { SearchFilter, SearchFilterHeader, SearchFilterItem };
|
|
268
|
+
export { SearchFilter, SearchFilterFooter, SearchFilterHeader, SearchFilterItem, getSelectedFilterItemsCount, getTotalSelectedFilterItemsCount };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_Text = require('./Text-
|
|
3
|
-
const require_Accordion = require('./Accordion-
|
|
4
|
-
const require_ButtonBase = require('./ButtonBase-
|
|
5
|
-
const require_ModalSheet = require('./ModalSheet-
|
|
6
|
-
const require_RadioButtonGroup = require('./RadioButtonGroup-
|
|
7
|
-
const require_ToggleButton = require('./ToggleButton-
|
|
2
|
+
const require_Text = require('./Text-DllCE9_D.cjs');
|
|
3
|
+
const require_Accordion = require('./Accordion-D9gO9_y3.cjs');
|
|
4
|
+
const require_ButtonBase = require('./ButtonBase-VIv-tn7H.cjs');
|
|
5
|
+
const require_ModalSheet = require('./ModalSheet-DwnbbFh7.cjs');
|
|
6
|
+
const require_RadioButtonGroup = require('./RadioButtonGroup-ReQqakpS.cjs');
|
|
7
|
+
const require_ToggleButton = require('./ToggleButton-DfJZ8POQ.cjs');
|
|
8
8
|
let react = require("react");
|
|
9
9
|
react = require_chunk.__toESM(react);
|
|
10
10
|
let classnames = require("classnames");
|
|
@@ -28,6 +28,8 @@ const SearchFilterHeader = ({ closeModal, productCount, headerClassName, filterC
|
|
|
28
28
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
29
29
|
onClick: closeModal,
|
|
30
30
|
className: "spiffy-tw-p-2",
|
|
31
|
+
type: "button",
|
|
32
|
+
"aria-label": "Open Filter Menu",
|
|
31
33
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
32
34
|
xmlns: "http://www.w3.org/2000/svg",
|
|
33
35
|
width: "14",
|
|
@@ -68,15 +70,11 @@ const useHasFilterStateChanged = (filters, isOpen) => {
|
|
|
68
70
|
|
|
69
71
|
//#endregion
|
|
70
72
|
//#region src/components/SearchFilter/utils.ts
|
|
71
|
-
const getSelectedFilterItemsCount = (filter) =>
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
if (filter.filterId === "sort") return acc;
|
|
77
|
-
return acc + getSelectedFilterItemsCount(filter);
|
|
78
|
-
}, 0);
|
|
79
|
-
};
|
|
73
|
+
const getSelectedFilterItemsCount = (filter) => filter.items.filter((item) => item.isSelected).length;
|
|
74
|
+
const getTotalSelectedFilterItemsCount = (filters) => filters.reduce((acc, filter) => {
|
|
75
|
+
if (filter.filterId === "sort") return acc;
|
|
76
|
+
return acc + getSelectedFilterItemsCount(filter);
|
|
77
|
+
}, 0);
|
|
80
78
|
|
|
81
79
|
//#endregion
|
|
82
80
|
//#region src/components/SearchFilter/SearchFilterFooter.tsx
|
|
@@ -242,9 +240,21 @@ const SearchFilter = ({ filters, productCount, selectFilterItem, clearAllFilters
|
|
|
242
240
|
const SearchFilterItem = ({ filterItem, onSelectFilterItem, radioButtonFillColor, radioButtonHoverColor, radioButtonUncheckedBorderColor }) => {
|
|
243
241
|
const { displayName, isSelected } = filterItem;
|
|
244
242
|
const radioClasses = (0, classnames.default)("spiffy-tw-w-4 spiffy-tw-h-4 spiffy-tw-rounded-full spiffy-tw-border-2", "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-justify-center", radioButtonUncheckedBorderColor, radioButtonHoverColor, { [radioButtonFillColor]: isSelected });
|
|
245
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("
|
|
246
|
-
|
|
243
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
244
|
+
type: "button",
|
|
245
|
+
role: "option",
|
|
246
|
+
"aria-selected": isSelected,
|
|
247
|
+
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-justify-between spiffy-tw-py-2",
|
|
247
248
|
onClick: () => onSelectFilterItem(filterItem),
|
|
249
|
+
onKeyDown: (event) => {
|
|
250
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
251
|
+
event.preventDefault();
|
|
252
|
+
onSelectFilterItem(filterItem);
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
onKeyUp: (event) => {
|
|
256
|
+
if (event.key === " ") event.preventDefault();
|
|
257
|
+
},
|
|
248
258
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
|
|
249
259
|
variant: "body3",
|
|
250
260
|
children: displayName
|
|
@@ -265,6 +275,12 @@ Object.defineProperty(exports, 'SearchFilter', {
|
|
|
265
275
|
return SearchFilter;
|
|
266
276
|
}
|
|
267
277
|
});
|
|
278
|
+
Object.defineProperty(exports, 'SearchFilterFooter', {
|
|
279
|
+
enumerable: true,
|
|
280
|
+
get: function () {
|
|
281
|
+
return SearchFilterFooter;
|
|
282
|
+
}
|
|
283
|
+
});
|
|
268
284
|
Object.defineProperty(exports, 'SearchFilterHeader', {
|
|
269
285
|
enumerable: true,
|
|
270
286
|
get: function () {
|
|
@@ -276,4 +292,16 @@ Object.defineProperty(exports, 'SearchFilterItem', {
|
|
|
276
292
|
get: function () {
|
|
277
293
|
return SearchFilterItem;
|
|
278
294
|
}
|
|
295
|
+
});
|
|
296
|
+
Object.defineProperty(exports, 'getSelectedFilterItemsCount', {
|
|
297
|
+
enumerable: true,
|
|
298
|
+
get: function () {
|
|
299
|
+
return getSelectedFilterItemsCount;
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
Object.defineProperty(exports, 'getTotalSelectedFilterItemsCount', {
|
|
303
|
+
enumerable: true,
|
|
304
|
+
get: function () {
|
|
305
|
+
return getTotalSelectedFilterItemsCount;
|
|
306
|
+
}
|
|
279
307
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
require('../textVariantClasses-
|
|
2
|
-
require('../
|
|
3
|
-
require('../
|
|
4
|
-
const require_SearchInput = require('../SearchInput
|
|
1
|
+
require('../textVariantClasses-CBre7vXv.cjs');
|
|
2
|
+
require('../TextInput-CGs4BY1q.cjs');
|
|
3
|
+
require('../colorsConfig-CqCKftuM.cjs');
|
|
4
|
+
const require_SearchInput = require('../SearchInput--x9NTMTb.cjs');
|
|
5
5
|
|
|
6
6
|
exports.SearchInput = require_SearchInput.SearchInput;
|
|
7
7
|
exports.searchInputVariantClasses = require_SearchInput.searchInputVariantClasses;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { SearchInputVariant } from "../
|
|
1
|
+
import { SearchInputVariant as SearchInputVariant$1 } from "../types-BhGjnuWx.cjs";
|
|
2
2
|
import { TextStyleVariantMap } from "../textVariantClasses-B0gNjzl4.cjs";
|
|
3
3
|
import React from "react";
|
|
4
|
+
import { SearchInputVariant } from "@envive-ai/react-hooks/contexts/types";
|
|
4
5
|
|
|
5
6
|
//#region src/components/SearchInput/SearchInput.d.ts
|
|
6
7
|
interface SearchInputProps {
|
|
@@ -28,6 +29,6 @@ type SearchInputVariantClasses = {
|
|
|
28
29
|
searchInputClasses: string;
|
|
29
30
|
placeholderVariant: keyof typeof TextStyleVariantMap;
|
|
30
31
|
};
|
|
31
|
-
declare const searchInputVariantClasses: Record<SearchInputVariant, SearchInputVariantClasses>;
|
|
32
|
+
declare const searchInputVariantClasses: Record<SearchInputVariant$1, SearchInputVariantClasses>;
|
|
32
33
|
//#endregion
|
|
33
34
|
export { SearchInput, searchInputVariantClasses };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { SearchInputVariant } from "../
|
|
2
|
-
import { TextStyleVariantMap } from "../textVariantClasses-
|
|
1
|
+
import { SearchInputVariant as SearchInputVariant$1 } from "../types-CTOdb0G0.js";
|
|
2
|
+
import { TextStyleVariantMap } from "../textVariantClasses-Bl8SAGwZ.js";
|
|
3
3
|
import React from "react";
|
|
4
|
+
import { SearchInputVariant } from "@envive-ai/react-hooks/contexts/types";
|
|
4
5
|
|
|
5
6
|
//#region src/components/SearchInput/SearchInput.d.ts
|
|
6
7
|
interface SearchInputProps {
|
|
@@ -28,6 +29,6 @@ type SearchInputVariantClasses = {
|
|
|
28
29
|
searchInputClasses: string;
|
|
29
30
|
placeholderVariant: keyof typeof TextStyleVariantMap;
|
|
30
31
|
};
|
|
31
|
-
declare const searchInputVariantClasses: Record<SearchInputVariant, SearchInputVariantClasses>;
|
|
32
|
+
declare const searchInputVariantClasses: Record<SearchInputVariant$1, SearchInputVariantClasses>;
|
|
32
33
|
//#endregion
|
|
33
34
|
export { SearchInput, searchInputVariantClasses };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../textVariantClasses-
|
|
2
|
-
import "../
|
|
3
|
-
import "../
|
|
4
|
-
import { SearchInput, searchInputVariantClasses } from "../SearchInput-
|
|
1
|
+
import "../textVariantClasses-CRrTb43V.js";
|
|
2
|
+
import "../TextInput-BeHPlVHT.js";
|
|
3
|
+
import "../colorsConfig-Ck2jeqWe.js";
|
|
4
|
+
import { SearchInput, searchInputVariantClasses } from "../SearchInput-IBq83nqF.js";
|
|
5
5
|
|
|
6
6
|
export { SearchInput, searchInputVariantClasses };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const
|
|
3
|
-
const
|
|
2
|
+
const require_TextInput = require('./TextInput-CGs4BY1q.cjs');
|
|
3
|
+
const require_colorsConfig = require('./colorsConfig-CqCKftuM.cjs');
|
|
4
4
|
let react = require("react");
|
|
5
5
|
react = require_chunk.__toESM(react);
|
|
6
6
|
let classnames = require("classnames");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { TextInput } from "./TextInput-BeHPlVHT.js";
|
|
2
|
+
import { ColorNames, colorVar } from "./colorsConfig-Ck2jeqWe.js";
|
|
3
3
|
import React, { useImperativeHandle, useRef } from "react";
|
|
4
4
|
import classNames from "classnames";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_chunk = require('../chunk-CUT6urMc.cjs');
|
|
2
|
-
require('../textVariantClasses-
|
|
3
|
-
const require_SearchAutocomplete = require('../SearchAutocomplete-
|
|
4
|
-
require('../
|
|
5
|
-
require('../
|
|
6
|
-
const require_SearchInput = require('../SearchInput
|
|
2
|
+
require('../textVariantClasses-CBre7vXv.cjs');
|
|
3
|
+
const require_SearchAutocomplete = require('../SearchAutocomplete-BmHdijOv.cjs');
|
|
4
|
+
require('../TextInput-CGs4BY1q.cjs');
|
|
5
|
+
require('../colorsConfig-CqCKftuM.cjs');
|
|
6
|
+
const require_SearchInput = require('../SearchInput--x9NTMTb.cjs');
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
9
9
|
|
|
@@ -1,2 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { SearchInputVariant } from "../types-BhGjnuWx.cjs";
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/SearchInputForm/SearchInputForm.d.ts
|
|
5
|
+
interface SearchInputFormProps {
|
|
6
|
+
searchInputVariant: SearchInputVariant;
|
|
7
|
+
searchText: string;
|
|
8
|
+
autocompleteResults: string[];
|
|
9
|
+
searchBoxPlaceholder: string;
|
|
10
|
+
focusedOptionId: string | undefined;
|
|
11
|
+
isDirty: boolean;
|
|
12
|
+
focusedIndex: number;
|
|
13
|
+
onKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
14
|
+
onAutocompleteSelect: (suggestion: string) => void;
|
|
15
|
+
onSearchInputChange: (value: string) => void;
|
|
16
|
+
onSearchSubmit: () => void;
|
|
17
|
+
searchInputDataTestId?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const SearchInputForm: ({
|
|
20
|
+
searchInputVariant,
|
|
21
|
+
searchText,
|
|
22
|
+
autocompleteResults,
|
|
23
|
+
searchBoxPlaceholder,
|
|
24
|
+
focusedOptionId,
|
|
25
|
+
isDirty,
|
|
26
|
+
focusedIndex,
|
|
27
|
+
onKeyDown,
|
|
28
|
+
onAutocompleteSelect,
|
|
29
|
+
onSearchInputChange,
|
|
30
|
+
onSearchSubmit,
|
|
31
|
+
searchInputDataTestId
|
|
32
|
+
}: SearchInputFormProps) => react_jsx_runtime1.JSX.Element;
|
|
33
|
+
//#endregion
|
|
34
|
+
export { SearchInputForm };
|
|
@@ -1,2 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { SearchInputVariant } from "../types-CTOdb0G0.js";
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/SearchInputForm/SearchInputForm.d.ts
|
|
5
|
+
interface SearchInputFormProps {
|
|
6
|
+
searchInputVariant: SearchInputVariant;
|
|
7
|
+
searchText: string;
|
|
8
|
+
autocompleteResults: string[];
|
|
9
|
+
searchBoxPlaceholder: string;
|
|
10
|
+
focusedOptionId: string | undefined;
|
|
11
|
+
isDirty: boolean;
|
|
12
|
+
focusedIndex: number;
|
|
13
|
+
onKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
14
|
+
onAutocompleteSelect: (suggestion: string) => void;
|
|
15
|
+
onSearchInputChange: (value: string) => void;
|
|
16
|
+
onSearchSubmit: () => void;
|
|
17
|
+
searchInputDataTestId?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const SearchInputForm: ({
|
|
20
|
+
searchInputVariant,
|
|
21
|
+
searchText,
|
|
22
|
+
autocompleteResults,
|
|
23
|
+
searchBoxPlaceholder,
|
|
24
|
+
focusedOptionId,
|
|
25
|
+
isDirty,
|
|
26
|
+
focusedIndex,
|
|
27
|
+
onKeyDown,
|
|
28
|
+
onAutocompleteSelect,
|
|
29
|
+
onSearchInputChange,
|
|
30
|
+
onSearchSubmit,
|
|
31
|
+
searchInputDataTestId
|
|
32
|
+
}: SearchInputFormProps) => react_jsx_runtime1.JSX.Element;
|
|
33
|
+
//#endregion
|
|
34
|
+
export { SearchInputForm };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../textVariantClasses-
|
|
2
|
-
import { SearchAutocomplete } from "../SearchAutocomplete-
|
|
3
|
-
import "../
|
|
4
|
-
import "../
|
|
5
|
-
import { SearchInput, searchInputVariantClasses } from "../SearchInput-
|
|
1
|
+
import "../textVariantClasses-CRrTb43V.js";
|
|
2
|
+
import { SearchAutocomplete } from "../SearchAutocomplete-BMNYZiJL.js";
|
|
3
|
+
import "../TextInput-BeHPlVHT.js";
|
|
4
|
+
import "../colorsConfig-Ck2jeqWe.js";
|
|
5
|
+
import { SearchInput, searchInputVariantClasses } from "../SearchInput-IBq83nqF.js";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region src/components/SearchInputForm/SearchInputForm.tsx
|
|
@@ -1,50 +1,47 @@
|
|
|
1
1
|
const require_chunk = require('../chunk-CUT6urMc.cjs');
|
|
2
|
-
require('../textVariantClasses-
|
|
3
|
-
require('../Text-
|
|
2
|
+
require('../textVariantClasses-CBre7vXv.cjs');
|
|
3
|
+
require('../Text-DllCE9_D.cjs');
|
|
4
4
|
require('../Text-C8t_iEj6.cjs');
|
|
5
|
-
require('../DynamicFiltersScrollbar-
|
|
6
|
-
require('../Headline-
|
|
7
|
-
require('../ImageWithFallback-
|
|
8
|
-
require('../ProductCard-
|
|
9
|
-
require('../Spinner-
|
|
10
|
-
require('../ProductGrid-
|
|
11
|
-
|
|
12
|
-
require('../
|
|
13
|
-
require('../searchFilterSidebarVariants-
|
|
14
|
-
require('../SparkleAnimation-
|
|
5
|
+
require('../DynamicFiltersScrollbar-HCYZjI14.cjs');
|
|
6
|
+
require('../Headline-CKJmd2w4.cjs');
|
|
7
|
+
require('../ImageWithFallback-Km9h16Vz.cjs');
|
|
8
|
+
require('../ProductCard-BDz80MCQ.cjs');
|
|
9
|
+
require('../Spinner-rcWX566W.cjs');
|
|
10
|
+
require('../ProductGrid-RRcdkY5J.cjs');
|
|
11
|
+
require('../colorsConfig-CqCKftuM.cjs');
|
|
12
|
+
const require_SearchResultsStates = require('../SearchResultsStates-nlaPbkj3.cjs');
|
|
13
|
+
require('../searchFilterSidebarVariants-NQhqq-NT.cjs');
|
|
14
|
+
require('../SparkleAnimation-D1aZE-7A.cjs');
|
|
15
15
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
16
16
|
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
17
17
|
let __envive_ai_react_hooks_hooks_utils = require("@envive-ai/react-hooks/hooks/utils");
|
|
18
18
|
__envive_ai_react_hooks_hooks_utils = require_chunk.__toESM(__envive_ai_react_hooks_hooks_utils);
|
|
19
19
|
|
|
20
20
|
//#region src/components/SearchResultsContent/SearchResultsContent.tsx
|
|
21
|
-
const SearchResultsContent = ({ searchResultsState, productList, productCardConfig, merchantShortName, searchFilterSidebarVariant, productGridVariant, productGridClasses, containerXPaddingClasses, selectedFilterOptions, availableDynamicFilters,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
})
|
|
46
|
-
] });
|
|
47
|
-
};
|
|
21
|
+
const SearchResultsContent = ({ searchResultsState, productList, productCardConfig, merchantShortName, searchFilterSidebarVariant, productGridVariant, productGridClasses, containerXPaddingClasses, selectedFilterOptions, availableDynamicFilters, onRemoveFilter, onToggleDynamicFilter, noResultsFoundText }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [
|
|
22
|
+
searchResultsState === __envive_ai_react_hooks_hooks_utils.SearchResultsState.NoResults && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SearchResultsStates.NoSearchResultsFound, {
|
|
23
|
+
containerPaddingClasses: containerXPaddingClasses,
|
|
24
|
+
includeBottomMargin: true,
|
|
25
|
+
noResultsFoundText
|
|
26
|
+
}),
|
|
27
|
+
searchResultsState === __envive_ai_react_hooks_hooks_utils.SearchResultsState.Results && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SearchResultsStates.SearchResultsGrid, {
|
|
28
|
+
searchFilterSidebarVariant,
|
|
29
|
+
productCardConfig,
|
|
30
|
+
merchantShortName,
|
|
31
|
+
productList,
|
|
32
|
+
productGridVariant,
|
|
33
|
+
productGridClasses,
|
|
34
|
+
containerXPaddingClasses,
|
|
35
|
+
selectedFilterOptions,
|
|
36
|
+
availableDynamicFilters,
|
|
37
|
+
onRemoveFilter,
|
|
38
|
+
onToggleDynamicFilter
|
|
39
|
+
}),
|
|
40
|
+
searchResultsState === __envive_ai_react_hooks_hooks_utils.SearchResultsState.Loading && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SearchResultsStates.SearchResultsLoadingGrid, {
|
|
41
|
+
productGridVariant,
|
|
42
|
+
productGridClasses
|
|
43
|
+
})
|
|
44
|
+
] });
|
|
48
45
|
|
|
49
46
|
//#endregion
|
|
50
47
|
exports.SearchResultsContent = SearchResultsContent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ProductCardConfig, ProductGridVariant, SearchResponseProductAttributes } from "../index-
|
|
2
|
-
import { SearchFilterSidebarVariant } from "../index-
|
|
3
|
-
import * as
|
|
1
|
+
import { ProductCardConfig, ProductGridVariant, SearchResponseProductAttributes } from "../index-B9WeFNlO.cjs";
|
|
2
|
+
import { SearchFilterSidebarVariant } from "../index-CLGe_Pam.cjs";
|
|
3
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
4
4
|
import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
|
|
5
5
|
import { SearchResultsState } from "@envive-ai/react-hooks/hooks/utils";
|
|
6
6
|
|
|
@@ -19,7 +19,6 @@ interface SearchResultsContentProps {
|
|
|
19
19
|
name: string;
|
|
20
20
|
displayName: string;
|
|
21
21
|
}[];
|
|
22
|
-
searchResponseId: string;
|
|
23
22
|
onRemoveFilter: (filter: SelectedFilterOption) => void;
|
|
24
23
|
onToggleDynamicFilter: ({
|
|
25
24
|
filter,
|
|
@@ -41,10 +40,9 @@ declare const SearchResultsContent: ({
|
|
|
41
40
|
containerXPaddingClasses,
|
|
42
41
|
selectedFilterOptions,
|
|
43
42
|
availableDynamicFilters,
|
|
44
|
-
searchResponseId,
|
|
45
43
|
onRemoveFilter,
|
|
46
44
|
onToggleDynamicFilter,
|
|
47
45
|
noResultsFoundText
|
|
48
|
-
}: SearchResultsContentProps) =>
|
|
46
|
+
}: SearchResultsContentProps) => react_jsx_runtime12.JSX.Element;
|
|
49
47
|
//#endregion
|
|
50
48
|
export { SearchResultsContent };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ProductCardConfig, ProductGridVariant, SearchResponseProductAttributes } from "../index-
|
|
2
|
-
import { SearchFilterSidebarVariant } from "../index-
|
|
3
|
-
import * as
|
|
1
|
+
import { ProductCardConfig, ProductGridVariant, SearchResponseProductAttributes } from "../index-CeECGrFM.js";
|
|
2
|
+
import { SearchFilterSidebarVariant } from "../index-PSzeHU2s.js";
|
|
3
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
4
4
|
import { SearchResultsState } from "@envive-ai/react-hooks/hooks/utils";
|
|
5
5
|
import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
|
|
6
6
|
|
|
@@ -19,7 +19,6 @@ interface SearchResultsContentProps {
|
|
|
19
19
|
name: string;
|
|
20
20
|
displayName: string;
|
|
21
21
|
}[];
|
|
22
|
-
searchResponseId: string;
|
|
23
22
|
onRemoveFilter: (filter: SelectedFilterOption) => void;
|
|
24
23
|
onToggleDynamicFilter: ({
|
|
25
24
|
filter,
|
|
@@ -41,10 +40,9 @@ declare const SearchResultsContent: ({
|
|
|
41
40
|
containerXPaddingClasses,
|
|
42
41
|
selectedFilterOptions,
|
|
43
42
|
availableDynamicFilters,
|
|
44
|
-
searchResponseId,
|
|
45
43
|
onRemoveFilter,
|
|
46
44
|
onToggleDynamicFilter,
|
|
47
45
|
noResultsFoundText
|
|
48
|
-
}: SearchResultsContentProps) =>
|
|
46
|
+
}: SearchResultsContentProps) => react_jsx_runtime13.JSX.Element;
|
|
49
47
|
//#endregion
|
|
50
48
|
export { SearchResultsContent };
|