@envive-ai/react-toolkit 0.2.9 → 0.2.11
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 +2 -2
- package/dist/Accordion/index.d.cts +2 -2
- package/dist/Accordion/index.d.ts +2 -2
- package/dist/Accordion/index.js +2 -2
- package/dist/{Accordion-DxtXK__u.js → Accordion-B8aUlf0q.js} +2 -2
- package/dist/{Accordion-RpyCFs2a.cjs → Accordion-FyCFBOen.cjs} +3 -3
- package/dist/AnimatedChevron/index.cjs +1 -1
- package/dist/AnimatedChevron/index.d.cts +2 -2
- package/dist/AnimatedChevron/index.d.ts +2 -2
- package/dist/AnimatedChevron/index.js +1 -1
- package/dist/AppliedFiltersScrollbar/index.cjs +3 -3
- package/dist/AppliedFiltersScrollbar/index.d.cts +3 -3
- package/dist/AppliedFiltersScrollbar/index.d.ts +3 -3
- package/dist/AppliedFiltersScrollbar/index.js +2 -2
- package/dist/ButtonBase/index.cjs +2 -2
- package/dist/ButtonBase/index.d.cts +3 -3
- package/dist/ButtonBase/index.d.ts +3 -3
- package/dist/ButtonBase/index.js +2 -2
- package/dist/{ButtonBase-AU23oGQr.cjs → ButtonBase-B6vDKbGQ.cjs} +3 -3
- package/dist/{ButtonBase-6wjsZ1tU.js → ButtonBase-Bpc7nOpz.js} +2 -2
- package/dist/DynamicFiltersScrollbar/index.cjs +3 -3
- package/dist/DynamicFiltersScrollbar/index.d.cts +2 -2
- package/dist/DynamicFiltersScrollbar/index.d.ts +2 -2
- package/dist/DynamicFiltersScrollbar/index.js +2 -2
- package/dist/{DynamicFiltersScrollbar-AhyHehrB.js → DynamicFiltersScrollbar-D8OqC4DA.js} +2 -2
- package/dist/{DynamicFiltersScrollbar-50i_InZz.cjs → DynamicFiltersScrollbar-DIwHWq6v.cjs} +3 -3
- package/dist/FilterScrollbar/index.cjs +2 -2
- package/dist/FilterScrollbar/index.d.cts +4 -4
- package/dist/FilterScrollbar/index.d.ts +4 -4
- package/dist/FilterScrollbar/index.js +2 -2
- 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/{ImageWithFallback-Ckwsmd8P.js → ImageWithFallback-BW57cQw-.js} +1 -1
- package/dist/{ImageWithFallback-1LqhQK1q.cjs → ImageWithFallback-DvaVpR6v.cjs} +2 -2
- package/dist/ModalSheet/index.cjs +2 -2
- package/dist/ModalSheet/index.d.cts +2 -2
- package/dist/ModalSheet/index.d.ts +2 -2
- package/dist/ModalSheet/index.js +2 -2
- package/dist/{ModalSheet-CcthFeMD.cjs → ModalSheet-BvM2PJbH.cjs} +3 -3
- package/dist/{ModalSheet-BSj_g9JF.js → ModalSheet-DFva7krP.js} +2 -2
- package/dist/ProductCard/index.cjs +4 -6
- package/dist/ProductCard/index.d.cts +82 -2
- package/dist/ProductCard/index.d.ts +82 -2
- package/dist/ProductCard/index.js +5 -5
- package/dist/{ProductCard-DRczevG8.js → ProductCard-BiWAcPO4.js} +8 -16
- package/dist/{ProductCard-DksbHI3v.cjs → ProductCard-C2KvH4MN.cjs} +8 -28
- package/dist/ProductGrid/index.cjs +5 -5
- package/dist/ProductGrid/index.d.cts +6 -5
- package/dist/ProductGrid/index.d.ts +6 -5
- package/dist/ProductGrid/index.js +5 -5
- package/dist/{ProductGrid-B36atUp5.js → ProductGrid-B1RtE58G.js} +6 -5
- package/dist/{ProductGrid-CStAsiRj.cjs → ProductGrid-DkOyRAEg.cjs} +7 -6
- package/dist/RadioButton/index.cjs +2 -2
- package/dist/RadioButton/index.d.cts +3 -3
- package/dist/RadioButton/index.d.ts +3 -3
- package/dist/RadioButton/index.js +2 -2
- package/dist/{RadioButton-DoqlQgeW.js → RadioButton-CQ6qOvBl.js} +2 -2
- package/dist/{RadioButton-OqwNhq7S.cjs → RadioButton-DP-qs5cy.cjs} +3 -3
- package/dist/RadioButtonGroup/index.cjs +3 -3
- package/dist/RadioButtonGroup/index.d.cts +1 -1
- package/dist/RadioButtonGroup/index.d.ts +3 -3
- package/dist/RadioButtonGroup/index.js +3 -3
- package/dist/{RadioButtonGroup-DwMWFYga.cjs → RadioButtonGroup-CJPWfAaA.cjs} +3 -3
- package/dist/{RadioButtonGroup-BP4aECu6.js → RadioButtonGroup-Ce8cKqYw.js} +2 -2
- package/dist/SearchAutocomplete/index.cjs +2 -2
- package/dist/SearchAutocomplete/index.d.cts +2 -2
- package/dist/SearchAutocomplete/index.d.ts +2 -2
- package/dist/SearchAutocomplete/index.js +2 -2
- package/dist/{SearchAutocomplete-B690CIZB.js → SearchAutocomplete-CjjL2_lm.js} +2 -2
- package/dist/{SearchAutocomplete-DAEDHeqr.cjs → SearchAutocomplete-bbMvWWjI.cjs} +3 -3
- package/dist/SearchFilter/index.cjs +9 -9
- package/dist/SearchFilter/index.d.cts +6 -43
- package/dist/SearchFilter/index.d.ts +6 -43
- package/dist/SearchFilter/index.js +9 -9
- package/dist/{SearchFilter-Yk01V_VO.cjs → SearchFilter-BLi6E9Wx.cjs} +8 -8
- package/dist/{SearchFilter-X18X1iOO.js → SearchFilter-wHwOym_n.js} +7 -7
- package/dist/SearchInput/index.cjs +4 -4
- package/dist/SearchInput/index.d.cts +3 -4
- package/dist/SearchInput/index.d.ts +3 -4
- package/dist/SearchInput/index.js +4 -4
- package/dist/{SearchInput-Bn6wD39s.cjs → SearchInput-BA6bepV_.cjs} +7 -5
- package/dist/{SearchInput-DFoKyqJV.js → SearchInput-C3nNkmBm.js} +4 -3
- package/dist/SearchInputForm/index.cjs +7 -7
- package/dist/SearchInputForm/index.d.cts +3 -3
- package/dist/SearchInputForm/index.d.ts +3 -3
- package/dist/SearchInputForm/index.js +6 -6
- package/dist/SearchResultsContent/index.cjs +15 -15
- package/dist/SearchResultsContent/index.d.cts +3 -6
- package/dist/SearchResultsContent/index.d.ts +3 -6
- package/dist/SearchResultsContent/index.js +11 -11
- package/dist/SearchResultsFilterSidebar/index.cjs +13 -13
- package/dist/SearchResultsFilterSidebar/index.d.cts +42 -2
- package/dist/SearchResultsFilterSidebar/index.d.ts +42 -2
- package/dist/SearchResultsFilterSidebar/index.js +12 -12
- package/dist/SearchResultsStates/index.cjs +10 -10
- package/dist/SearchResultsStates/index.d.cts +5 -7
- package/dist/SearchResultsStates/index.d.ts +5 -7
- package/dist/SearchResultsStates/index.js +10 -10
- package/dist/{SearchResultsStates-CKoDWkXP.cjs → SearchResultsStates-C-8fh8B9.cjs} +8 -8
- package/dist/{SearchResultsStates-DF65ZU2r.js → SearchResultsStates-D62WbDTD.js} +7 -7
- package/dist/SparkleAnimation/index.cjs +2 -3
- package/dist/SparkleAnimation/index.d.cts +3 -11
- package/dist/SparkleAnimation/index.d.ts +3 -11
- package/dist/SparkleAnimation/index.js +2 -2
- package/dist/{SparkleAnimation-CvGlWUqv.cjs → SparkleAnimation-BFAj73CF.cjs} +7 -16
- package/dist/{SparkleAnimation-paLhSu5E.js → SparkleAnimation-BYDUEqWX.js} +7 -10
- 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/{Spinner-DjK8ts9E.cjs → Spinner-Ccy6VFEp.cjs} +2 -2
- package/dist/{Spinner-BqTt55uu.js → Spinner-D2HbRsuw.js} +1 -1
- package/dist/SuggestionButton/index.cjs +4 -4
- package/dist/SuggestionButton/index.d.cts +3 -3
- package/dist/SuggestionButton/index.d.ts +3 -3
- package/dist/SuggestionButton/index.js +3 -3
- package/dist/TextInput/index.cjs +2 -2
- package/dist/TextInput/index.d.cts +2 -2
- package/dist/TextInput/index.d.ts +2 -2
- package/dist/TextInput/index.js +2 -2
- package/dist/{TextInput-BTTG_drp.cjs → TextInput-CYTko3-n.cjs} +3 -3
- package/dist/{TextInput-BfUhaQUc.js → TextInput-CmxnphaT.js} +2 -2
- package/dist/ToggleButton/index.cjs +2 -2
- package/dist/ToggleButton/index.d.cts +2 -2
- package/dist/ToggleButton/index.d.ts +2 -2
- package/dist/ToggleButton/index.js +2 -2
- package/dist/{ToggleButton-DCiR4sB5.cjs → ToggleButton-CvxNLMe_.cjs} +3 -3
- package/dist/{ToggleButton-8P9eNKy1.js → ToggleButton-V9Qsaks7.js} +2 -2
- package/dist/Typography/index.cjs +1 -1
- package/dist/Typography/index.d.cts +2 -2
- package/dist/Typography/index.d.ts +2 -2
- package/dist/Typography/index.js +1 -1
- package/dist/colorVar-B5CLhSof.cjs +11 -0
- package/dist/colorVar-BJve0Z4_.js +5 -0
- package/dist/{index-Qtr26aUO.d.ts → index-C5iOTsRG.d.ts} +1 -1
- package/dist/{index-BMHF0IWd.d.cts → index-DoTNu3mL.d.cts} +1 -1
- package/dist/{searchFilterSidebarVariants-B1P8YS86.cjs → searchFilterSidebarVariants-BQ7OC862.cjs} +10 -7
- package/dist/{searchFilterSidebarVariants-CN9_kzJ8.js → searchFilterSidebarVariants-C_rWIcxf.js} +2 -1
- package/package.json +2 -1
- package/src/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.tsx +1 -1
- package/src/components/ButtonBase/types.ts +1 -1
- package/src/components/FilterScrollbar/AppliedFiltersScrollbar.tsx +1 -1
- package/src/components/ProductCard/ProductCard.tsx +12 -12
- package/src/components/ProductCard/ProductCardSkeleton.tsx +13 -1
- package/src/components/ProductCard/index.ts +0 -1
- package/src/components/ProductCard/productCardVariants.ts +1 -1
- package/src/components/ProductGrid/ProductGrid.tsx +10 -3
- package/src/components/ProductGrid/productGridVariants.ts +1 -1
- package/src/components/RadioButton/RadioButton.tsx +1 -1
- package/src/components/RadioButtonGroup/RadioButtonGroup.tsx +1 -1
- package/src/components/SearchFilter/SearchFilter.tsx +1 -2
- package/src/components/SearchFilter/SearchFilterFooter.tsx +1 -1
- package/src/components/SearchFilter/SearchFilterHeader.tsx +1 -1
- package/src/components/SearchFilter/SearchFilterItem.tsx +1 -1
- package/src/components/SearchFilter/useHasFilterStateChanged.tsx +1 -1
- package/src/components/SearchFilter/utils.ts +1 -1
- package/src/components/SearchInput/SearchInput.tsx +1 -1
- package/src/components/SearchInput/searchInputVariants.ts +2 -2
- package/src/components/SearchInputForm/SearchInputForm.tsx +4 -7
- package/src/components/SearchResultsContent/SearchResultsContent.tsx +4 -4
- package/src/components/SearchResultsFilterSidebar/SearchResultsFilter.tsx +1 -2
- package/src/components/SearchResultsFilterSidebar/index.ts +0 -1
- package/src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts +2 -2
- package/src/components/SearchResultsStates/SearchResultsGrid.tsx +6 -3
- package/src/components/SearchResultsStates/SearchResultsLoadingGrid.tsx +2 -1
- package/src/components/SparkleAnimation/SparkleAnimation.tsx +7 -1
- package/src/components/SparkleAnimation/index.ts +0 -1
- package/src/components/SuggestionButton/SuggestionButton.tsx +1 -1
- package/src/util/colorVar.ts +3 -0
- package/dist/colorsConfig-BjmNL7s7.cjs +0 -38
- package/dist/colorsConfig-E7w6Ol6W.js +0 -26
- package/dist/index-DL1kptAp.d.ts +0 -46
- package/dist/index-Dfe_lkL2.d.cts +0 -46
- package/dist/index-Dz7MKQfH.d.cts +0 -325
- package/dist/index-Wd_cQHmW.d.ts +0 -325
- package/dist/types-BhGjnuWx.d.cts +0 -4
- package/dist/types-DlqhqT_S.d.ts +0 -4
- package/src/atoms/search/types.ts +0 -1
- package/src/components/ProductCard/types.ts +0 -49
- package/src/components/SearchFilter/types.ts +0 -45
- package/src/components/SearchResultsFilterSidebar/types.ts +0 -2
- package/src/components/SparkleAnimation/types.ts +0 -6
- package/src/config/chatElementDisplayLocation.ts +0 -23
- package/src/models/colorsConfig.ts +0 -28
- package/src/util/camelCase.ts +0 -87
- package/src/util/camelCasedPropertiesDeep.ts +0 -81
- package/src/util/internal.ts +0 -97
- package/src/util/primitive.ts +0 -8
- package/src/util/splitWords.ts +0 -76
- package/src/util/trim.ts +0 -28
- package/src/util/unknownArray.ts +0 -25
- /package/dist/{AnimatedChevron-Bik7GMSe.js → AnimatedChevron-Dee6Pe81.js} +0 -0
- /package/dist/{AnimatedChevron-Q96FneFy.cjs → AnimatedChevron-wpcAHp6d.cjs} +0 -0
- /package/dist/{Typography-D3vDkBMS.js → Typography-C3QmJzFK.js} +0 -0
- /package/dist/{Typography-CFNWgbM5.cjs → Typography-Ds4gfOJz.cjs} +0 -0
- /package/dist/{typographyVariantClasses-B6wiawat.d.ts → typographyVariantClasses-BFRoEloZ.d.cts} +0 -0
- /package/dist/{typographyVariantClasses-DTSltxPN.d.cts → typographyVariantClasses-D7h3ACAj.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SearchAutocomplete/SearchAutocomplete.d.ts
|
|
4
4
|
interface GlobalSearchAutocompleteProps {
|
|
@@ -16,6 +16,6 @@ declare const SearchAutocomplete: ({
|
|
|
16
16
|
searchText,
|
|
17
17
|
onSuggestionSelect,
|
|
18
18
|
iconColor
|
|
19
|
-
}: GlobalSearchAutocompleteProps) =>
|
|
19
|
+
}: GlobalSearchAutocompleteProps) => react_jsx_runtime9.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { SearchAutocomplete };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Typography } from "./Typography-
|
|
1
|
+
import { Typography } from "./Typography-C3QmJzFK.js";
|
|
2
2
|
import { motion } from "framer-motion";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
4
|
import React from "react";
|
|
4
5
|
import classNames from "classnames";
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import OutlinedStar from "@envive-ai/react-icons/OutlinedStar";
|
|
7
7
|
|
|
8
8
|
//#region src/components/SearchAutocomplete/SearchAutocomplete.tsx
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_Typography = require('./Typography-
|
|
2
|
+
const require_Typography = require('./Typography-Ds4gfOJz.cjs');
|
|
3
3
|
let framer_motion = require("framer-motion");
|
|
4
4
|
framer_motion = require_chunk.__toESM(framer_motion);
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
+
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
5
7
|
let react = require("react");
|
|
6
8
|
react = require_chunk.__toESM(react);
|
|
7
9
|
let classnames = require("classnames");
|
|
8
10
|
classnames = require_chunk.__toESM(classnames);
|
|
9
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
|
-
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
11
11
|
let __envive_ai_react_icons_OutlinedStar = require("@envive-ai/react-icons/OutlinedStar");
|
|
12
12
|
__envive_ai_react_icons_OutlinedStar = require_chunk.__toESM(__envive_ai_react_icons_OutlinedStar);
|
|
13
13
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
require('../
|
|
2
|
-
require('../
|
|
3
|
-
require('../
|
|
4
|
-
require('../ButtonBase-
|
|
1
|
+
require('../AnimatedChevron-wpcAHp6d.cjs');
|
|
2
|
+
require('../Typography-Ds4gfOJz.cjs');
|
|
3
|
+
require('../Accordion-FyCFBOen.cjs');
|
|
4
|
+
require('../ButtonBase-B6vDKbGQ.cjs');
|
|
5
5
|
require('../ButtonBase-DbWQ25n-.cjs');
|
|
6
|
-
require('../ModalSheet-
|
|
7
|
-
require('../RadioButton-
|
|
8
|
-
require('../RadioButtonGroup-
|
|
9
|
-
const require_SearchFilter = require('../SearchFilter-
|
|
10
|
-
require('../ToggleButton-
|
|
6
|
+
require('../ModalSheet-BvM2PJbH.cjs');
|
|
7
|
+
require('../RadioButton-DP-qs5cy.cjs');
|
|
8
|
+
require('../RadioButtonGroup-CJPWfAaA.cjs');
|
|
9
|
+
const require_SearchFilter = require('../SearchFilter-BLi6E9Wx.cjs');
|
|
10
|
+
require('../ToggleButton-CvxNLMe_.cjs');
|
|
11
11
|
|
|
12
12
|
exports.SearchFilter = require_SearchFilter.SearchFilter;
|
|
13
13
|
exports.SearchFilterFooter = require_SearchFilter.SearchFilterFooter;
|
|
@@ -1,43 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
1
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
2
|
+
import { FilterFooterProps, SearchFilterDatum, SearchFilterHeaderProps, SearchFilterItemProps, SearchFilterProps } from "@envive-ai/types";
|
|
3
3
|
|
|
4
|
-
//#region src/components/SearchFilter/types.d.ts
|
|
5
|
-
interface SearchFilterItem$1 extends SearchFilterItemDatum {
|
|
6
|
-
filterId: string;
|
|
7
|
-
filterItemId: string;
|
|
8
|
-
}
|
|
9
|
-
interface SearchFilterItemProps {
|
|
10
|
-
filterItem: SearchFilterItem$1;
|
|
11
|
-
onSelectFilterItem: SelectFilterItem;
|
|
12
|
-
radioButtonFillColor: string;
|
|
13
|
-
radioButtonHoverColor: string;
|
|
14
|
-
radioButtonUncheckedBorderColor: string;
|
|
15
|
-
}
|
|
16
|
-
interface SearchFilterHeaderProps {
|
|
17
|
-
closeModal: () => void;
|
|
18
|
-
productCount: number;
|
|
19
|
-
headerClassName: string;
|
|
20
|
-
filterCloseIconVariant: 'dark' | 'light' | 'tertiary';
|
|
21
|
-
}
|
|
22
|
-
type SearchFilterProps = {
|
|
23
|
-
filters: SearchFilterDatum[];
|
|
24
|
-
selectFilterItem: SelectFilterItem;
|
|
25
|
-
clearAllFilters: () => void;
|
|
26
|
-
productCount: number;
|
|
27
|
-
isOpen: boolean;
|
|
28
|
-
setIsOpen: (isOpen: boolean) => void;
|
|
29
|
-
applyFiltersUnchangedClasses: string;
|
|
30
|
-
applyFiltersChangedClasses: string;
|
|
31
|
-
headerContent?: React.ReactNode;
|
|
32
|
-
footerContent?: React.ReactNode;
|
|
33
|
-
filterButtonText?: string;
|
|
34
|
-
headerClassName?: string;
|
|
35
|
-
radioButtonFillColor: string;
|
|
36
|
-
radioButtonHoverColor?: string;
|
|
37
|
-
radioButtonUncheckedBorderColor?: string;
|
|
38
|
-
filterCloseIconVariant: CloseIconVariant;
|
|
39
|
-
};
|
|
40
|
-
//#endregion
|
|
41
4
|
//#region src/components/SearchFilter/SearchFilter.d.ts
|
|
42
5
|
declare const SearchFilter: ({
|
|
43
6
|
filters,
|
|
@@ -55,7 +18,7 @@ declare const SearchFilter: ({
|
|
|
55
18
|
radioButtonHoverColor,
|
|
56
19
|
radioButtonUncheckedBorderColor,
|
|
57
20
|
filterCloseIconVariant
|
|
58
|
-
}: SearchFilterProps) =>
|
|
21
|
+
}: SearchFilterProps) => react_jsx_runtime7.JSX.Element;
|
|
59
22
|
//#endregion
|
|
60
23
|
//#region src/components/SearchFilter/SearchFilterHeader.d.ts
|
|
61
24
|
declare const SearchFilterHeader: ({
|
|
@@ -63,7 +26,7 @@ declare const SearchFilterHeader: ({
|
|
|
63
26
|
productCount,
|
|
64
27
|
headerClassName,
|
|
65
28
|
filterCloseIconVariant
|
|
66
|
-
}: SearchFilterHeaderProps) =>
|
|
29
|
+
}: SearchFilterHeaderProps) => react_jsx_runtime7.JSX.Element;
|
|
67
30
|
//#endregion
|
|
68
31
|
//#region src/components/SearchFilter/SearchFilterFooter.d.ts
|
|
69
32
|
declare const SearchFilterFooter: ({
|
|
@@ -73,7 +36,7 @@ declare const SearchFilterFooter: ({
|
|
|
73
36
|
applyFiltersUnchangedClasses,
|
|
74
37
|
applyFiltersChangedClasses,
|
|
75
38
|
hasFiltersChanged
|
|
76
|
-
}: FilterFooterProps) =>
|
|
39
|
+
}: FilterFooterProps) => react_jsx_runtime7.JSX.Element;
|
|
77
40
|
//#endregion
|
|
78
41
|
//#region src/components/SearchFilter/SearchFilterItem.d.ts
|
|
79
42
|
declare const SearchFilterItem: ({
|
|
@@ -82,7 +45,7 @@ declare const SearchFilterItem: ({
|
|
|
82
45
|
radioButtonFillColor,
|
|
83
46
|
radioButtonHoverColor,
|
|
84
47
|
radioButtonUncheckedBorderColor
|
|
85
|
-
}: SearchFilterItemProps) =>
|
|
48
|
+
}: SearchFilterItemProps) => react_jsx_runtime7.JSX.Element;
|
|
86
49
|
//#endregion
|
|
87
50
|
//#region src/components/SearchFilter/utils.d.ts
|
|
88
51
|
declare const getSelectedFilterItemsCount: (filter: SearchFilterDatum) => number;
|
|
@@ -1,43 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
1
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
2
|
+
import { FilterFooterProps, SearchFilterDatum, SearchFilterHeaderProps, SearchFilterItemProps, SearchFilterProps } from "@envive-ai/types";
|
|
3
3
|
|
|
4
|
-
//#region src/components/SearchFilter/types.d.ts
|
|
5
|
-
interface SearchFilterItem$1 extends SearchFilterItemDatum {
|
|
6
|
-
filterId: string;
|
|
7
|
-
filterItemId: string;
|
|
8
|
-
}
|
|
9
|
-
interface SearchFilterItemProps {
|
|
10
|
-
filterItem: SearchFilterItem$1;
|
|
11
|
-
onSelectFilterItem: SelectFilterItem;
|
|
12
|
-
radioButtonFillColor: string;
|
|
13
|
-
radioButtonHoverColor: string;
|
|
14
|
-
radioButtonUncheckedBorderColor: string;
|
|
15
|
-
}
|
|
16
|
-
interface SearchFilterHeaderProps {
|
|
17
|
-
closeModal: () => void;
|
|
18
|
-
productCount: number;
|
|
19
|
-
headerClassName: string;
|
|
20
|
-
filterCloseIconVariant: 'dark' | 'light' | 'tertiary';
|
|
21
|
-
}
|
|
22
|
-
type SearchFilterProps = {
|
|
23
|
-
filters: SearchFilterDatum[];
|
|
24
|
-
selectFilterItem: SelectFilterItem;
|
|
25
|
-
clearAllFilters: () => void;
|
|
26
|
-
productCount: number;
|
|
27
|
-
isOpen: boolean;
|
|
28
|
-
setIsOpen: (isOpen: boolean) => void;
|
|
29
|
-
applyFiltersUnchangedClasses: string;
|
|
30
|
-
applyFiltersChangedClasses: string;
|
|
31
|
-
headerContent?: React.ReactNode;
|
|
32
|
-
footerContent?: React.ReactNode;
|
|
33
|
-
filterButtonText?: string;
|
|
34
|
-
headerClassName?: string;
|
|
35
|
-
radioButtonFillColor: string;
|
|
36
|
-
radioButtonHoverColor?: string;
|
|
37
|
-
radioButtonUncheckedBorderColor?: string;
|
|
38
|
-
filterCloseIconVariant: CloseIconVariant;
|
|
39
|
-
};
|
|
40
|
-
//#endregion
|
|
41
4
|
//#region src/components/SearchFilter/SearchFilter.d.ts
|
|
42
5
|
declare const SearchFilter: ({
|
|
43
6
|
filters,
|
|
@@ -55,7 +18,7 @@ declare const SearchFilter: ({
|
|
|
55
18
|
radioButtonHoverColor,
|
|
56
19
|
radioButtonUncheckedBorderColor,
|
|
57
20
|
filterCloseIconVariant
|
|
58
|
-
}: SearchFilterProps) =>
|
|
21
|
+
}: SearchFilterProps) => react_jsx_runtime19.JSX.Element;
|
|
59
22
|
//#endregion
|
|
60
23
|
//#region src/components/SearchFilter/SearchFilterHeader.d.ts
|
|
61
24
|
declare const SearchFilterHeader: ({
|
|
@@ -63,7 +26,7 @@ declare const SearchFilterHeader: ({
|
|
|
63
26
|
productCount,
|
|
64
27
|
headerClassName,
|
|
65
28
|
filterCloseIconVariant
|
|
66
|
-
}: SearchFilterHeaderProps) =>
|
|
29
|
+
}: SearchFilterHeaderProps) => react_jsx_runtime19.JSX.Element;
|
|
67
30
|
//#endregion
|
|
68
31
|
//#region src/components/SearchFilter/SearchFilterFooter.d.ts
|
|
69
32
|
declare const SearchFilterFooter: ({
|
|
@@ -73,7 +36,7 @@ declare const SearchFilterFooter: ({
|
|
|
73
36
|
applyFiltersUnchangedClasses,
|
|
74
37
|
applyFiltersChangedClasses,
|
|
75
38
|
hasFiltersChanged
|
|
76
|
-
}: FilterFooterProps) =>
|
|
39
|
+
}: FilterFooterProps) => react_jsx_runtime19.JSX.Element;
|
|
77
40
|
//#endregion
|
|
78
41
|
//#region src/components/SearchFilter/SearchFilterItem.d.ts
|
|
79
42
|
declare const SearchFilterItem: ({
|
|
@@ -82,7 +45,7 @@ declare const SearchFilterItem: ({
|
|
|
82
45
|
radioButtonFillColor,
|
|
83
46
|
radioButtonHoverColor,
|
|
84
47
|
radioButtonUncheckedBorderColor
|
|
85
|
-
}: SearchFilterItemProps) =>
|
|
48
|
+
}: SearchFilterItemProps) => react_jsx_runtime19.JSX.Element;
|
|
86
49
|
//#endregion
|
|
87
50
|
//#region src/components/SearchFilter/utils.d.ts
|
|
88
51
|
declare const getSelectedFilterItemsCount: (filter: SearchFilterDatum) => number;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "../
|
|
3
|
-
import "../
|
|
4
|
-
import "../ButtonBase-
|
|
1
|
+
import "../AnimatedChevron-Dee6Pe81.js";
|
|
2
|
+
import "../Typography-C3QmJzFK.js";
|
|
3
|
+
import "../Accordion-B8aUlf0q.js";
|
|
4
|
+
import "../ButtonBase-Bpc7nOpz.js";
|
|
5
5
|
import "../ButtonBase-C_uKnl48.js";
|
|
6
|
-
import "../ModalSheet-
|
|
7
|
-
import "../RadioButton-
|
|
8
|
-
import "../RadioButtonGroup-
|
|
9
|
-
import { SearchFilter, SearchFilterFooter, SearchFilterHeader, SearchFilterItem, getSelectedFilterItemsCount, getTotalSelectedFilterItemsCount } from "../SearchFilter-
|
|
10
|
-
import "../ToggleButton-
|
|
6
|
+
import "../ModalSheet-DFva7krP.js";
|
|
7
|
+
import "../RadioButton-CQ6qOvBl.js";
|
|
8
|
+
import "../RadioButtonGroup-Ce8cKqYw.js";
|
|
9
|
+
import { SearchFilter, SearchFilterFooter, SearchFilterHeader, SearchFilterItem, getSelectedFilterItemsCount, getTotalSelectedFilterItemsCount } from "../SearchFilter-wHwOym_n.js";
|
|
10
|
+
import "../ToggleButton-V9Qsaks7.js";
|
|
11
11
|
|
|
12
12
|
export { SearchFilter, SearchFilterFooter, SearchFilterHeader, SearchFilterItem, getSelectedFilterItemsCount, getTotalSelectedFilterItemsCount };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_Typography = require('./Typography-
|
|
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_Typography = require('./Typography-Ds4gfOJz.cjs');
|
|
3
|
+
const require_Accordion = require('./Accordion-FyCFBOen.cjs');
|
|
4
|
+
const require_ButtonBase = require('./ButtonBase-B6vDKbGQ.cjs');
|
|
5
|
+
const require_ModalSheet = require('./ModalSheet-BvM2PJbH.cjs');
|
|
6
|
+
const require_RadioButtonGroup = require('./RadioButtonGroup-CJPWfAaA.cjs');
|
|
7
|
+
const require_ToggleButton = require('./ToggleButton-CvxNLMe_.cjs');
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
+
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
8
10
|
let react = require("react");
|
|
9
11
|
react = require_chunk.__toESM(react);
|
|
10
12
|
let classnames = require("classnames");
|
|
11
13
|
classnames = require_chunk.__toESM(classnames);
|
|
12
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
13
|
-
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
14
14
|
|
|
15
15
|
//#region src/components/SearchFilter/SearchFilterHeader.tsx
|
|
16
16
|
const SearchFilterHeader = ({ closeModal, productCount, headerClassName, filterCloseIconVariant }) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Typography } from "./Typography-
|
|
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 { Typography } from "./Typography-C3QmJzFK.js";
|
|
2
|
+
import { Accordion } from "./Accordion-B8aUlf0q.js";
|
|
3
|
+
import { ButtonBase } from "./ButtonBase-Bpc7nOpz.js";
|
|
4
|
+
import { ModalSheet } from "./ModalSheet-DFva7krP.js";
|
|
5
|
+
import { RadioButtonGroup } from "./RadioButtonGroup-Ce8cKqYw.js";
|
|
6
|
+
import { ToggleButton } from "./ToggleButton-V9Qsaks7.js";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
8
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
8
9
|
import classNames from "classnames";
|
|
9
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
|
|
11
11
|
//#region src/components/SearchFilter/SearchFilterHeader.tsx
|
|
12
12
|
const SearchFilterHeader = ({ closeModal, productCount, headerClassName, filterCloseIconVariant }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
require('../Typography-
|
|
2
|
-
require('../TextInput-
|
|
3
|
-
require('../
|
|
4
|
-
const require_SearchInput = require('../SearchInput-
|
|
1
|
+
require('../Typography-Ds4gfOJz.cjs');
|
|
2
|
+
require('../TextInput-CYTko3-n.cjs');
|
|
3
|
+
require('../colorVar-B5CLhSof.cjs');
|
|
4
|
+
const require_SearchInput = require('../SearchInput-BA6bepV_.cjs');
|
|
5
5
|
|
|
6
6
|
exports.SearchInput = require_SearchInput.SearchInput;
|
|
7
7
|
exports.searchInputVariantClasses = require_SearchInput.searchInputVariantClasses;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { TypographyVariantMap } from "../typographyVariantClasses-BFRoEloZ.cjs";
|
|
2
|
+
import { SearchInputVariant } from "@envive-ai/types";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { SearchInputVariant } from "@envive-ai/react-hooks/contexts/types";
|
|
5
4
|
|
|
6
5
|
//#region src/components/SearchInput/SearchInput.d.ts
|
|
7
6
|
interface SearchInputProps {
|
|
@@ -29,6 +28,6 @@ type SearchInputVariantClasses = {
|
|
|
29
28
|
searchInputClasses: string;
|
|
30
29
|
placeholderVariant: keyof typeof TypographyVariantMap;
|
|
31
30
|
};
|
|
32
|
-
declare const searchInputVariantClasses: Record<SearchInputVariant
|
|
31
|
+
declare const searchInputVariantClasses: Record<SearchInputVariant, SearchInputVariantClasses>;
|
|
33
32
|
//#endregion
|
|
34
33
|
export { SearchInput, searchInputVariantClasses };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TypographyVariantMap } from "../typographyVariantClasses-B6wiawat.js";
|
|
1
|
+
import { TypographyVariantMap } from "../typographyVariantClasses-D7h3ACAj.js";
|
|
3
2
|
import React from "react";
|
|
4
|
-
import { SearchInputVariant } from "@envive-ai/
|
|
3
|
+
import { SearchInputVariant } from "@envive-ai/types";
|
|
5
4
|
|
|
6
5
|
//#region src/components/SearchInput/SearchInput.d.ts
|
|
7
6
|
interface SearchInputProps {
|
|
@@ -29,6 +28,6 @@ type SearchInputVariantClasses = {
|
|
|
29
28
|
searchInputClasses: string;
|
|
30
29
|
placeholderVariant: keyof typeof TypographyVariantMap;
|
|
31
30
|
};
|
|
32
|
-
declare const searchInputVariantClasses: Record<SearchInputVariant
|
|
31
|
+
declare const searchInputVariantClasses: Record<SearchInputVariant, SearchInputVariantClasses>;
|
|
33
32
|
//#endregion
|
|
34
33
|
export { SearchInput, searchInputVariantClasses };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../Typography-
|
|
2
|
-
import "../TextInput-
|
|
3
|
-
import "../
|
|
4
|
-
import { SearchInput, searchInputVariantClasses } from "../SearchInput-
|
|
1
|
+
import "../Typography-C3QmJzFK.js";
|
|
2
|
+
import "../TextInput-CmxnphaT.js";
|
|
3
|
+
import "../colorVar-BJve0Z4_.js";
|
|
4
|
+
import { SearchInput, searchInputVariantClasses } from "../SearchInput-C3nNkmBm.js";
|
|
5
5
|
|
|
6
6
|
export { SearchInput, searchInputVariantClasses };
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_TextInput = require('./TextInput-
|
|
3
|
-
const
|
|
2
|
+
const require_TextInput = require('./TextInput-CYTko3-n.cjs');
|
|
3
|
+
const require_colorVar = require('./colorVar-B5CLhSof.cjs');
|
|
4
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
+
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
4
6
|
let react = require("react");
|
|
5
7
|
react = require_chunk.__toESM(react);
|
|
6
8
|
let classnames = require("classnames");
|
|
7
9
|
classnames = require_chunk.__toESM(classnames);
|
|
8
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
-
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
10
10
|
let __envive_ai_react_icons_MagnifyingGlassStarVariant = require("@envive-ai/react-icons/MagnifyingGlassStarVariant");
|
|
11
11
|
__envive_ai_react_icons_MagnifyingGlassStarVariant = require_chunk.__toESM(__envive_ai_react_icons_MagnifyingGlassStarVariant);
|
|
12
12
|
let __envive_ai_react_icons_IconClose = require("@envive-ai/react-icons/IconClose");
|
|
13
13
|
__envive_ai_react_icons_IconClose = require_chunk.__toESM(__envive_ai_react_icons_IconClose);
|
|
14
|
+
let __envive_ai_types = require("@envive-ai/types");
|
|
15
|
+
__envive_ai_types = require_chunk.__toESM(__envive_ai_types);
|
|
14
16
|
|
|
15
17
|
//#region src/components/SearchInput/searchInputVariants.ts
|
|
16
18
|
const searchInputVariantClasses = { standard: {
|
|
@@ -18,7 +20,7 @@ const searchInputVariantClasses = { standard: {
|
|
|
18
20
|
searchInputBorderColor: "spiffy-tw-border-[--spiffy-colors-border-medium]",
|
|
19
21
|
searchInputCloseIconClasses: "[&>circle]:spiffy-tw-fill-[--spiffy-colors-text-secondary] [&>path]:spiffy-tw-fill-[#fff]",
|
|
20
22
|
searchInputActiveStarClasses: `first:[&>path]:spiffy-tw-stroke-[--spiffy-colors-accent-primary] first:[&>path]:spiffy-tw-fill-[--spiffy-colors-accent-primary]`,
|
|
21
|
-
autocompleteIconColor:
|
|
23
|
+
autocompleteIconColor: require_colorVar.colorVar(__envive_ai_types.ColorNames.BackgroundPrimary),
|
|
22
24
|
searchInputClasses: "spiffy-tw-text-[--spiffy-colors-text-primary] placeholder:spiffy-tw-text-[--spiffy-colors-text-secondary] spiffy-tw-text-[16px] spiffy-tw-font-normal spiffy-tw-leading-[148%] placeholder:spiffy-tw-font-medium placeholder:spiffy-tw-leading-[124%]",
|
|
23
25
|
placeholderVariant: "h2"
|
|
24
26
|
} };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { TextInput } from "./TextInput-
|
|
2
|
-
import {
|
|
1
|
+
import { TextInput } from "./TextInput-CmxnphaT.js";
|
|
2
|
+
import { colorVar } from "./colorVar-BJve0Z4_.js";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
4
|
import React, { useImperativeHandle, useRef } from "react";
|
|
4
5
|
import classNames from "classnames";
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import MagnifyingGlassStarVariant from "@envive-ai/react-icons/MagnifyingGlassStarVariant";
|
|
7
7
|
import IconClose from "@envive-ai/react-icons/IconClose";
|
|
8
|
+
import { ColorNames } from "@envive-ai/types";
|
|
8
9
|
|
|
9
10
|
//#region src/components/SearchInput/searchInputVariants.ts
|
|
10
11
|
const searchInputVariantClasses = { standard: {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
const require_chunk = require('../chunk-CUT6urMc.cjs');
|
|
2
|
-
require('../Typography-
|
|
3
|
-
const require_SearchAutocomplete = require('../SearchAutocomplete-
|
|
4
|
-
require('../TextInput-
|
|
5
|
-
require('../
|
|
6
|
-
const require_SearchInput = require('../SearchInput-
|
|
7
|
-
let classnames = require("classnames");
|
|
8
|
-
classnames = require_chunk.__toESM(classnames);
|
|
2
|
+
require('../Typography-Ds4gfOJz.cjs');
|
|
3
|
+
const require_SearchAutocomplete = require('../SearchAutocomplete-bbMvWWjI.cjs');
|
|
4
|
+
require('../TextInput-CYTko3-n.cjs');
|
|
5
|
+
require('../colorVar-B5CLhSof.cjs');
|
|
6
|
+
const require_SearchInput = require('../SearchInput-BA6bepV_.cjs');
|
|
9
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
8
|
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
9
|
+
let classnames = require("classnames");
|
|
10
|
+
classnames = require_chunk.__toESM(classnames);
|
|
11
11
|
let __envive_ai_react_hooks_config_locators_components_search = require("@envive-ai/react-hooks/config/locators/components/search");
|
|
12
12
|
__envive_ai_react_hooks_config_locators_components_search = require_chunk.__toESM(__envive_ai_react_hooks_config_locators_components_search);
|
|
13
13
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
2
|
+
import { SearchInputVariant } from "@envive-ai/types";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SearchInputForm/SearchInputForm.d.ts
|
|
5
5
|
interface SearchInputFormProps {
|
|
@@ -31,6 +31,6 @@ declare const SearchInputForm: ({
|
|
|
31
31
|
onSearchSubmit,
|
|
32
32
|
onSearchInputFocus,
|
|
33
33
|
onSearchInputBlur
|
|
34
|
-
}: SearchInputFormProps) =>
|
|
34
|
+
}: SearchInputFormProps) => react_jsx_runtime5.JSX.Element;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { SearchInputForm };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
2
|
+
import { SearchInputVariant } from "@envive-ai/types";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SearchInputForm/SearchInputForm.d.ts
|
|
5
5
|
interface SearchInputFormProps {
|
|
@@ -31,6 +31,6 @@ declare const SearchInputForm: ({
|
|
|
31
31
|
onSearchSubmit,
|
|
32
32
|
onSearchInputFocus,
|
|
33
33
|
onSearchInputBlur
|
|
34
|
-
}: SearchInputFormProps) =>
|
|
34
|
+
}: SearchInputFormProps) => react_jsx_runtime8.JSX.Element;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { SearchInputForm };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../Typography-
|
|
2
|
-
import { SearchAutocomplete } from "../SearchAutocomplete-
|
|
3
|
-
import "../TextInput-
|
|
4
|
-
import "../
|
|
5
|
-
import { SearchInput, searchInputVariantClasses } from "../SearchInput-
|
|
6
|
-
import classNames from "classnames";
|
|
1
|
+
import "../Typography-C3QmJzFK.js";
|
|
2
|
+
import { SearchAutocomplete } from "../SearchAutocomplete-CjjL2_lm.js";
|
|
3
|
+
import "../TextInput-CmxnphaT.js";
|
|
4
|
+
import "../colorVar-BJve0Z4_.js";
|
|
5
|
+
import { SearchInput, searchInputVariantClasses } from "../SearchInput-C3nNkmBm.js";
|
|
7
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import classNames from "classnames";
|
|
8
8
|
import { SEARCH_INPUT_TESTID } from "@envive-ai/react-hooks/config/locators/components/search";
|
|
9
9
|
|
|
10
10
|
//#region src/components/SearchInputForm/SearchInputForm.tsx
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
const require_chunk = require('../chunk-CUT6urMc.cjs');
|
|
2
|
-
require('../Typography-
|
|
3
|
-
require('../DynamicFiltersScrollbar-
|
|
4
|
-
require('../ImageWithFallback-
|
|
5
|
-
require('../ProductCard-
|
|
6
|
-
require('../Spinner-
|
|
7
|
-
require('../ProductGrid-
|
|
8
|
-
require('../
|
|
9
|
-
const require_SearchResultsStates = require('../SearchResultsStates-
|
|
10
|
-
require('../searchFilterSidebarVariants-
|
|
11
|
-
require('../SparkleAnimation-
|
|
2
|
+
require('../Typography-Ds4gfOJz.cjs');
|
|
3
|
+
require('../DynamicFiltersScrollbar-DIwHWq6v.cjs');
|
|
4
|
+
require('../ImageWithFallback-DvaVpR6v.cjs');
|
|
5
|
+
require('../ProductCard-C2KvH4MN.cjs');
|
|
6
|
+
require('../Spinner-Ccy6VFEp.cjs');
|
|
7
|
+
require('../ProductGrid-DkOyRAEg.cjs');
|
|
8
|
+
require('../colorVar-B5CLhSof.cjs');
|
|
9
|
+
const require_SearchResultsStates = require('../SearchResultsStates-C-8fh8B9.cjs');
|
|
10
|
+
require('../searchFilterSidebarVariants-BQ7OC862.cjs');
|
|
11
|
+
require('../SparkleAnimation-BFAj73CF.cjs');
|
|
12
12
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
13
13
|
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
14
|
-
let
|
|
15
|
-
|
|
14
|
+
let __envive_ai_types = require("@envive-ai/types");
|
|
15
|
+
__envive_ai_types = require_chunk.__toESM(__envive_ai_types);
|
|
16
16
|
|
|
17
17
|
//#region src/components/SearchResultsContent/SearchResultsContent.tsx
|
|
18
18
|
const SearchResultsContent = ({ searchResultsState, productList, productCardConfig, merchantShortName, searchFilterSidebarVariant, productGridVariant, productGridClasses, containerXPaddingClasses, selectedFilterOptions, availableDynamicFilters, onRemoveFilter, onToggleDynamicFilter, noResultsFoundText }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [
|
|
19
|
-
searchResultsState ===
|
|
19
|
+
searchResultsState === __envive_ai_types.SearchResultsState.NoResults && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SearchResultsStates.NoSearchResultsFound, {
|
|
20
20
|
containerPaddingClasses: containerXPaddingClasses,
|
|
21
21
|
includeBottomMargin: true,
|
|
22
22
|
noResultsFoundText
|
|
23
23
|
}),
|
|
24
|
-
searchResultsState ===
|
|
24
|
+
searchResultsState === __envive_ai_types.SearchResultsState.Results && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SearchResultsStates.SearchResultsGrid, {
|
|
25
25
|
searchFilterSidebarVariant,
|
|
26
26
|
productCardConfig,
|
|
27
27
|
merchantShortName,
|
|
@@ -34,7 +34,7 @@ const SearchResultsContent = ({ searchResultsState, productList, productCardConf
|
|
|
34
34
|
onRemoveFilter,
|
|
35
35
|
onToggleDynamicFilter
|
|
36
36
|
}),
|
|
37
|
-
searchResultsState ===
|
|
37
|
+
searchResultsState === __envive_ai_types.SearchResultsState.Loading && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SearchResultsStates.SearchResultsLoadingGrid, {
|
|
38
38
|
productGridVariant,
|
|
39
39
|
productGridClasses
|
|
40
40
|
})
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { SearchFilterSidebarVariant } from "
|
|
3
|
-
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
4
|
-
import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
|
|
5
|
-
import { SearchResultsState } from "@envive-ai/react-hooks/hooks/utils";
|
|
1
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
2
|
+
import { ProductCardConfig, ProductGridVariant, SearchFilterSidebarVariant, SearchResponseProductAttributes, SearchResultsState, SelectedFilterOption } from "@envive-ai/types";
|
|
6
3
|
|
|
7
4
|
//#region src/components/SearchResultsContent/SearchResultsContent.d.ts
|
|
8
5
|
interface SearchResultsContentProps {
|
|
@@ -43,6 +40,6 @@ declare const SearchResultsContent: ({
|
|
|
43
40
|
onRemoveFilter,
|
|
44
41
|
onToggleDynamicFilter,
|
|
45
42
|
noResultsFoundText
|
|
46
|
-
}: SearchResultsContentProps) =>
|
|
43
|
+
}: SearchResultsContentProps) => react_jsx_runtime15.JSX.Element;
|
|
47
44
|
//#endregion
|
|
48
45
|
export { SearchResultsContent };
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { SearchFilterSidebarVariant } from "
|
|
3
|
-
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
4
|
-
import { SearchResultsState } from "@envive-ai/react-hooks/hooks/utils";
|
|
5
|
-
import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
|
|
1
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
2
|
+
import { ProductCardConfig, ProductGridVariant, SearchFilterSidebarVariant, SearchResponseProductAttributes, SearchResultsState, SelectedFilterOption } from "@envive-ai/types";
|
|
6
3
|
|
|
7
4
|
//#region src/components/SearchResultsContent/SearchResultsContent.d.ts
|
|
8
5
|
interface SearchResultsContentProps {
|
|
@@ -43,6 +40,6 @@ declare const SearchResultsContent: ({
|
|
|
43
40
|
onRemoveFilter,
|
|
44
41
|
onToggleDynamicFilter,
|
|
45
42
|
noResultsFoundText
|
|
46
|
-
}: SearchResultsContentProps) =>
|
|
43
|
+
}: SearchResultsContentProps) => react_jsx_runtime5.JSX.Element;
|
|
47
44
|
//#endregion
|
|
48
45
|
export { SearchResultsContent };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "../Typography-
|
|
2
|
-
import "../DynamicFiltersScrollbar-
|
|
3
|
-
import "../ImageWithFallback-
|
|
4
|
-
import "../ProductCard-
|
|
5
|
-
import "../Spinner-
|
|
6
|
-
import "../ProductGrid-
|
|
7
|
-
import "../
|
|
8
|
-
import { NoSearchResultsFound, SearchResultsGrid, SearchResultsLoadingGrid } from "../SearchResultsStates-
|
|
9
|
-
import "../searchFilterSidebarVariants-
|
|
10
|
-
import "../SparkleAnimation-
|
|
1
|
+
import "../Typography-C3QmJzFK.js";
|
|
2
|
+
import "../DynamicFiltersScrollbar-D8OqC4DA.js";
|
|
3
|
+
import "../ImageWithFallback-BW57cQw-.js";
|
|
4
|
+
import "../ProductCard-BiWAcPO4.js";
|
|
5
|
+
import "../Spinner-D2HbRsuw.js";
|
|
6
|
+
import "../ProductGrid-B1RtE58G.js";
|
|
7
|
+
import "../colorVar-BJve0Z4_.js";
|
|
8
|
+
import { NoSearchResultsFound, SearchResultsGrid, SearchResultsLoadingGrid } from "../SearchResultsStates-D62WbDTD.js";
|
|
9
|
+
import "../searchFilterSidebarVariants-C_rWIcxf.js";
|
|
10
|
+
import "../SparkleAnimation-BYDUEqWX.js";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
import { SearchResultsState } from "@envive-ai/
|
|
12
|
+
import { SearchResultsState } from "@envive-ai/types";
|
|
13
13
|
|
|
14
14
|
//#region src/components/SearchResultsContent/SearchResultsContent.tsx
|
|
15
15
|
const SearchResultsContent = ({ searchResultsState, productList, productCardConfig, merchantShortName, searchFilterSidebarVariant, productGridVariant, productGridClasses, containerXPaddingClasses, selectedFilterOptions, availableDynamicFilters, onRemoveFilter, onToggleDynamicFilter, noResultsFoundText }) => /* @__PURE__ */ jsxs("div", { children: [
|