@envive-ai/react-toolkit 0.1.4 → 0.1.5
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/ButtonBase/index.cjs +6 -0
- package/dist/ButtonBase/index.d.cts +43 -0
- package/dist/{common/ButtonBase/ButtonBase.d.ts → ButtonBase/index.d.ts} +14 -6
- package/dist/ButtonBase/index.js +5 -0
- package/dist/{ButtonBase-C1rsL9gO.js → ButtonBase-CpmFsiUf.js} +4 -4
- package/dist/{ButtonBase-a8uj6c2f.cjs → ButtonBase-Dlh3bpR3.cjs} +9 -3
- package/dist/{AppliedFiltersScrollbar-BlcyhZkZ.cjs → DynamicFiltersScrollbar-D8Lms7Ox.cjs} +34 -2
- package/dist/{AppliedFiltersScrollbar-DFGzRemu.js → DynamicFiltersScrollbar-t_JASmYC.js} +29 -3
- package/dist/FilterScrollbar/index.cjs +6 -0
- package/dist/FilterScrollbar/index.d.cts +47 -0
- package/dist/FilterScrollbar/index.d.ts +47 -0
- package/dist/FilterScrollbar/index.js +5 -0
- package/dist/Headline/index.cjs +4 -0
- package/dist/{common/Headline/Headline.d.ts → Headline/index.d.cts} +3 -3
- package/dist/{common/Headline/Headline.d.cts → Headline/index.d.ts} +1 -1
- package/dist/Headline/index.js +4 -0
- package/dist/{Headline-8on6ZB9e.js → Headline-COAnonc2.js} +2 -2
- package/dist/{Headline-CcWn0w-a.cjs → Headline-CdddUGwy.cjs} +2 -2
- package/dist/ImageWithFallback/index.cjs +3 -0
- package/dist/{common/ImageWithFallback/ImageWithFallback.d.cts → ImageWithFallback/index.d.cts} +1 -1
- package/dist/{common/ImageWithFallback/ImageWithFallback.d.ts → ImageWithFallback/index.d.ts} +3 -3
- package/dist/ImageWithFallback/index.js +3 -0
- package/dist/{ImageWithFallback-ioeMFrTf.cjs → ImageWithFallback-By6QdlCR.cjs} +1 -1
- package/dist/{ImageWithFallback-gN5HDS9L.js → ImageWithFallback-DtUrq_bk.js} +1 -1
- package/dist/ProductCard/index.cjs +18 -0
- package/dist/{common/ProductCard/ProductCard.d.ts → ProductCard/index.d.cts} +26 -8
- package/dist/{common/ProductCard/ProductCard.d.cts → ProductCard/index.d.ts} +22 -4
- package/dist/ProductCard/index.js +9 -0
- package/dist/{ProductCard-C7WUShhN.cjs → ProductCard-CvTRvhm7.cjs} +77 -10
- package/dist/{ProductCard-B5wnOeR9.js → ProductCard-aJbQz6Q7.js} +50 -7
- package/dist/{ProductCardSkeleton-BPfp6IOp.js → ProductCardSkeleton-B6YetUCT.js} +9 -4
- package/dist/{ProductCardSkeleton-BgvDlaty.cjs → ProductCardSkeleton-BzBK36m-.cjs} +21 -4
- package/dist/ProductGrid/index.cjs +10 -0
- package/dist/ProductGrid/index.d.cts +36 -0
- package/dist/ProductGrid/index.d.ts +36 -0
- package/dist/ProductGrid/index.js +9 -0
- package/dist/{ProductGrid-DZgwGPSQ.cjs → ProductGrid-CSIH2_G9.cjs} +28 -4
- package/dist/{ProductGrid-wnSc9bXT.js → ProductGrid-NOCayW9O.js} +22 -4
- package/dist/{SearchAutocomplete-BrF2SMoZ.cjs → SearchAutocomplete-CQxxe5Op.cjs} +1 -1
- package/dist/{SearchAutocomplete-B8mO03Rr.js → SearchAutocomplete-DCu9-Yfk.js} +1 -1
- package/dist/SearchFilter/index.cjs +8 -0
- package/dist/SearchFilter/index.d.cts +35 -0
- package/dist/SearchFilter/index.d.ts +35 -0
- package/dist/SearchFilter/index.js +6 -0
- package/dist/SearchFilterHeader-BDEcDc_4.js +114 -0
- package/dist/SearchFilterHeader-qkRVfAB5.cjs +134 -0
- package/dist/SearchInput/index.cjs +7 -0
- package/dist/SearchInput/index.d.cts +33 -0
- package/dist/SearchInput/index.d.ts +33 -0
- package/dist/SearchInput/index.js +6 -0
- package/dist/{SearchInput-mLPisqFO.cjs → SearchInput-Cdpwswyv.cjs} +4 -4
- package/dist/{SearchInput-CzVUsUSb.js → SearchInput-DxGvYGZO.js} +4 -4
- package/dist/SearchInputAutocomplete/index.cjs +3 -0
- package/dist/{search/SearchInputAutocomplete/SearchAutocomplete.d.cts → SearchInputAutocomplete/index.d.cts} +1 -1
- package/dist/{search/SearchInputAutocomplete/SearchAutocomplete.d.ts → SearchInputAutocomplete/index.d.ts} +1 -1
- package/dist/SearchInputAutocomplete/index.js +3 -0
- package/dist/{search/SearchInputForm/SearchInputForm.cjs → SearchInputForm/index.cjs} +7 -7
- package/dist/{search/SearchInputForm/SearchInputForm.d.ts → SearchInputForm/index.d.cts} +5 -5
- package/dist/{search/SearchInputForm/SearchInputForm.d.cts → SearchInputForm/index.d.ts} +5 -5
- package/dist/{search/SearchInputForm/SearchInputForm.js → SearchInputForm/index.js} +6 -6
- package/dist/{search/SearchResultsFilterSidebar/SearchResultsFilter.cjs → SearchResultsFilterSidebar/index.cjs} +11 -12
- package/dist/SearchResultsFilterSidebar/index.d.cts +44 -0
- package/dist/SearchResultsFilterSidebar/index.d.ts +44 -0
- package/dist/{search/SearchResultsFilterSidebar/SearchResultsFilter.js → SearchResultsFilterSidebar/index.js} +8 -10
- package/dist/SearchResultsStates/index.cjs +127 -0
- package/dist/SearchResultsStates/index.d.cts +66 -0
- package/dist/SearchResultsStates/index.d.ts +66 -0
- package/dist/SearchResultsStates/index.js +120 -0
- package/dist/SparkleAnimation/index.cjs +4 -0
- package/dist/SparkleAnimation/index.d.cts +23 -0
- package/dist/SparkleAnimation/index.d.ts +23 -0
- package/dist/SparkleAnimation/index.js +3 -0
- package/dist/{SparkleAnimation-Qs17S1rn.js → SparkleAnimation-DfMCtvAQ.js} +3 -3
- package/dist/{SparkleAnimation-Ba5G4MIQ.cjs → SparkleAnimation-j-mAMEZZ.cjs} +8 -2
- package/dist/Spinner/index.cjs +3 -0
- package/dist/Spinner/index.d.cts +11 -0
- package/dist/Spinner/index.d.ts +11 -0
- package/dist/Spinner/index.js +3 -0
- package/dist/{Spinner-BZ-kTOpm.js → Spinner-D9kkaM9d.js} +1 -1
- package/dist/{Spinner-CfQ85Ajl.cjs → Spinner-DX35Epv3.cjs} +1 -1
- package/dist/{common/SuggestionButton/SuggestionButton.cjs → SuggestionButton/index.cjs} +7 -7
- package/dist/{common/SuggestionButton/SuggestionButton.d.cts → SuggestionButton/index.d.cts} +6 -6
- package/dist/{common/SuggestionButton/SuggestionButton.d.ts → SuggestionButton/index.d.ts} +6 -6
- package/dist/{common/SuggestionButton/SuggestionButton.js → SuggestionButton/index.js} +5 -5
- package/dist/Text/index.cjs +18 -0
- package/dist/Text/index.d.cts +42 -0
- package/dist/Text/index.d.ts +42 -0
- package/dist/Text/index.js +13 -0
- package/dist/{Text-Bdv7F5-u.js → Text-BMg3d10t.js} +2 -2
- package/dist/{Text-C04c4Z93.cjs → Text-CgOYTs8D.cjs} +2 -2
- package/dist/TextInput/index.cjs +4 -0
- package/dist/TextInput/index.d.cts +12 -0
- package/dist/TextInput/index.d.ts +12 -0
- package/dist/TextInput/index.js +4 -0
- package/dist/{TextInput-BO80ixsV.cjs → TextInput-CObd_Wcw.cjs} +2 -2
- package/dist/{TextInput-CEGWfdPC.js → TextInput-ChPhL54o.js} +2 -2
- package/dist/{colorsConfig-BKBZfFq1.js → colorsConfig-CKiMYHO_.js} +1 -1
- package/dist/{colorsConfig-vunsVTFC.cjs → colorsConfig-DulwYRIk.cjs} +1 -1
- package/dist/{searchFilterSidebarVariants-eoyfoWA8.js → searchFilterSidebarVariants-C_UTEIpZ.js} +2 -2
- package/dist/{searchFilterSidebarVariants-L1rn5Ift.cjs → searchFilterSidebarVariants-DcQLi_TT.cjs} +2 -2
- package/dist/{textVariantClasses-Bhf4VY5z.cjs → textVariantClasses-BnV4wXaw.cjs} +1 -1
- package/dist/{textVariantClasses-5t3OricK.js → textVariantClasses-CnjwO2Fv.js} +1 -1
- package/dist/textVariantClasses-DwnnFNBf.d.cts +174 -0
- package/dist/textVariantClasses-sT9E8Uty.d.ts +174 -0
- package/dist/types-5luH4G-3.d.cts +5 -0
- package/dist/types-B7hf-Lif.d.ts +272 -0
- package/dist/{types-BQNqA5xL.d.ts → types-BCAU5OQD.d.cts} +1 -1
- package/dist/types-BIPqyTOJ.d.ts +5 -0
- package/dist/types-BQYpWDJ4.d.cts +6 -0
- package/dist/{types-CImLkcNh.d.cts → types-BwPquD10.d.ts} +1 -1
- package/dist/types-CosVh8Hj.d.cts +4 -0
- package/dist/types-DpfHwTzY.d.ts +6 -0
- package/dist/types-Dvgr3ZeV.d.cts +272 -0
- package/dist/types-nR3jHgIO.d.ts +4 -0
- package/package.json +58 -85
- package/src/components/ButtonBase/index.ts +2 -0
- package/src/components/{common/ButtonBase → ButtonBase}/types.ts +1 -1
- package/src/components/{search/FilterScrollbar → FilterScrollbar}/AppliedFiltersScrollbar.tsx +1 -1
- package/src/components/{search/FilterScrollbar → FilterScrollbar}/DynamicFiltersScrollbar.tsx +1 -1
- package/src/components/FilterScrollbar/index.ts +2 -0
- package/src/components/Headline/index.ts +1 -0
- package/src/components/ImageWithFallback/index.ts +1 -0
- package/src/components/{common/ProductCard → ProductCard}/ProductCard.tsx +3 -3
- package/src/components/ProductCard/index.ts +4 -0
- package/src/components/ProductGrid/index.ts +2 -0
- package/src/components/{search/SearchFilter → SearchFilter}/SearchFilter.tsx +2 -2
- package/src/components/{search/SearchFilter → SearchFilter}/SearchFilterHeader.tsx +1 -1
- package/src/components/{search/SearchFilter → SearchFilter}/SearchFilterItem.tsx +1 -1
- package/src/components/SearchFilter/index.ts +4 -0
- package/src/components/{search/SearchInput → SearchInput}/SearchInput.tsx +1 -1
- package/src/components/SearchInput/index.ts +2 -0
- package/src/components/{search/SearchInput → SearchInput}/searchInputVariants.ts +2 -2
- package/src/components/SearchInputAutocomplete/index.ts +1 -0
- package/src/components/SearchInputForm/index.ts +2 -0
- package/src/components/{search/SearchResultsFilterSidebar → SearchResultsFilterSidebar}/SearchResultsFilter.tsx +1 -1
- package/src/components/SearchResultsFilterSidebar/index.ts +3 -0
- package/src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts +58 -0
- package/src/components/{search/SearchResultsStates → SearchResultsStates}/NoSearchResultsFound.tsx +1 -1
- package/src/components/{search/SearchResultsStates → SearchResultsStates}/SearchResultsGrid.tsx +2 -2
- package/src/components/{search/SearchResultsStates → SearchResultsStates}/SearchResultsLoadingGrid.tsx +5 -5
- package/src/components/SearchResultsStates/index.ts +3 -0
- package/src/components/SparkleAnimation/index.ts +2 -0
- package/src/components/Spinner/index.ts +1 -0
- package/src/components/SuggestionButton/index.ts +2 -0
- package/src/components/Text/index.ts +3 -0
- package/src/components/TextInput/index.ts +1 -0
- package/dist/DynamicFiltersScrollbar-B2Rr1KnJ.cjs +0 -41
- package/dist/DynamicFiltersScrollbar-Dys6geP0.js +0 -32
- package/dist/SearchFilter-D-2IdBKS.js +0 -62
- package/dist/SearchFilter-D0IzBlG5.cjs +0 -70
- package/dist/SearchFilterHeader-BQT0-ssS.js +0 -37
- package/dist/SearchFilterHeader-C3EklfoO.cjs +0 -45
- package/dist/SearchFilterItem-BodtWLoP.js +0 -26
- package/dist/SearchFilterItem-DmMkiqNC.cjs +0 -34
- package/dist/common/ButtonBase/ButtonBase.cjs +0 -5
- package/dist/common/ButtonBase/ButtonBase.d.cts +0 -35
- package/dist/common/ButtonBase/ButtonBase.js +0 -5
- package/dist/common/Headline/Headline.cjs +0 -4
- package/dist/common/Headline/Headline.js +0 -4
- package/dist/common/ImageWithFallback/ImageWithFallback.cjs +0 -3
- package/dist/common/ImageWithFallback/ImageWithFallback.js +0 -3
- package/dist/common/ProductCard/ProductCard.cjs +0 -11
- package/dist/common/ProductCard/ProductCard.js +0 -9
- package/dist/common/ProductCard/ProductCardSkeleton.cjs +0 -4
- package/dist/common/ProductCard/ProductCardSkeleton.d.cts +0 -12
- package/dist/common/ProductCard/ProductCardSkeleton.d.ts +0 -12
- package/dist/common/ProductCard/ProductCardSkeleton.js +0 -4
- package/dist/common/ProductGrid/ProductGrid.cjs +0 -11
- package/dist/common/ProductGrid/ProductGrid.d.cts +0 -26
- package/dist/common/ProductGrid/ProductGrid.d.ts +0 -26
- package/dist/common/ProductGrid/ProductGrid.js +0 -11
- package/dist/common/SparkleAnimation/SparkleAnimation.cjs +0 -3
- package/dist/common/SparkleAnimation/SparkleAnimation.d.cts +0 -15
- package/dist/common/SparkleAnimation/SparkleAnimation.d.ts +0 -15
- package/dist/common/SparkleAnimation/SparkleAnimation.js +0 -3
- package/dist/common/Spinner/Spinner.cjs +0 -3
- package/dist/common/Spinner/Spinner.d.cts +0 -11
- package/dist/common/Spinner/Spinner.d.ts +0 -11
- package/dist/common/Spinner/Spinner.js +0 -3
- package/dist/common/Text/Text.cjs +0 -4
- package/dist/common/Text/Text.d.cts +0 -28
- package/dist/common/Text/Text.d.ts +0 -28
- package/dist/common/Text/Text.js +0 -4
- package/dist/common/TextInput/TextInput.cjs +0 -4
- package/dist/common/TextInput/TextInput.d.cts +0 -98
- package/dist/common/TextInput/TextInput.d.ts +0 -98
- package/dist/common/TextInput/TextInput.js +0 -4
- package/dist/productCardVariants-C_QIZ-KF.js +0 -45
- package/dist/productCardVariants-Dd-wrJKP.cjs +0 -69
- package/dist/productGridVariants-BNX4YlRK.js +0 -20
- package/dist/productGridVariants-CsNV0ACt.cjs +0 -26
- package/dist/search/FilterScrollbar/AppliedFiltersScrollbar.cjs +0 -5
- package/dist/search/FilterScrollbar/AppliedFiltersScrollbar.d.cts +0 -22
- package/dist/search/FilterScrollbar/AppliedFiltersScrollbar.d.ts +0 -22
- package/dist/search/FilterScrollbar/AppliedFiltersScrollbar.js +0 -5
- package/dist/search/FilterScrollbar/DynamicFiltersScrollbar.cjs +0 -5
- package/dist/search/FilterScrollbar/DynamicFiltersScrollbar.d.cts +0 -28
- package/dist/search/FilterScrollbar/DynamicFiltersScrollbar.d.ts +0 -28
- package/dist/search/FilterScrollbar/DynamicFiltersScrollbar.js +0 -5
- package/dist/search/SearchFilter/SearchFilter.cjs +0 -7
- package/dist/search/SearchFilter/SearchFilter.d.cts +0 -18
- package/dist/search/SearchFilter/SearchFilter.d.ts +0 -18
- package/dist/search/SearchFilter/SearchFilter.js +0 -7
- package/dist/search/SearchFilter/SearchFilterHeader.cjs +0 -5
- package/dist/search/SearchFilter/SearchFilterHeader.d.cts +0 -12
- package/dist/search/SearchFilter/SearchFilterHeader.d.ts +0 -12
- package/dist/search/SearchFilter/SearchFilterHeader.js +0 -5
- package/dist/search/SearchFilter/SearchFilterItem.cjs +0 -5
- package/dist/search/SearchFilter/SearchFilterItem.d.cts +0 -13
- package/dist/search/SearchFilter/SearchFilterItem.d.ts +0 -13
- package/dist/search/SearchFilter/SearchFilterItem.js +0 -5
- package/dist/search/SearchInput/SearchInput.cjs +0 -6
- package/dist/search/SearchInput/SearchInput.d.cts +0 -20
- package/dist/search/SearchInput/SearchInput.d.ts +0 -20
- package/dist/search/SearchInput/SearchInput.js +0 -6
- package/dist/search/SearchInputAutocomplete/SearchAutocomplete.cjs +0 -3
- package/dist/search/SearchInputAutocomplete/SearchAutocomplete.js +0 -3
- package/dist/search/SearchResultsFilterSidebar/SearchResultsFilter.d.cts +0 -28
- package/dist/search/SearchResultsFilterSidebar/SearchResultsFilter.d.ts +0 -28
- package/dist/search/SearchResultsStates/NoSearchResultsFound.cjs +0 -30
- package/dist/search/SearchResultsStates/NoSearchResultsFound.d.cts +0 -17
- package/dist/search/SearchResultsStates/NoSearchResultsFound.d.ts +0 -17
- package/dist/search/SearchResultsStates/NoSearchResultsFound.js +0 -26
- package/dist/search/SearchResultsStates/SearchResultsGrid.cjs +0 -66
- package/dist/search/SearchResultsStates/SearchResultsGrid.d.cts +0 -41
- package/dist/search/SearchResultsStates/SearchResultsGrid.d.ts +0 -41
- package/dist/search/SearchResultsStates/SearchResultsGrid.js +0 -62
- package/dist/search/SearchResultsStates/SearchResultsLoadingGrid.cjs +0 -52
- package/dist/search/SearchResultsStates/SearchResultsLoadingGrid.d.cts +0 -15
- package/dist/search/SearchResultsStates/SearchResultsLoadingGrid.d.ts +0 -15
- package/dist/search/SearchResultsStates/SearchResultsLoadingGrid.js +0 -49
- package/dist/types-53zIialA.d.ts +0 -35
- package/dist/types-B4BGZSlV.d.cts +0 -4
- package/dist/types-BRLWwGMI.d.ts +0 -4
- package/dist/types-Cph97xkm.d.ts +0 -6
- package/dist/types-CpiJO5UH.d.ts +0 -4
- package/dist/types-Dy4_w6Cf.d.cts +0 -4
- package/dist/types-TYhhwWZw.d.cts +0 -6
- package/dist/types-aa4flfRE.d.cts +0 -35
- package/src/components/search/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts +0 -45
- package/src/components/search/types.ts +0 -5
- /package/dist/{types-DFetqNL2.d.ts → types-B19i3fxM.d.ts} +0 -0
- /package/dist/{types-DaSkJnT_.d.cts → types-C-Jrlw5Z.d.cts} +0 -0
- /package/src/components/{common/ButtonBase → ButtonBase}/ButtonBase.tsx +0 -0
- /package/src/components/{common/Headline → Headline}/Headline.tsx +0 -0
- /package/src/components/{common/ImageWithFallback → ImageWithFallback}/ImageWithFallback.tsx +0 -0
- /package/src/components/{common/ProductCard → ProductCard}/ProductCardSkeleton.tsx +0 -0
- /package/src/components/{common/ProductCard → ProductCard}/productCardVariants.ts +0 -0
- /package/src/components/{common/ProductCard → ProductCard}/types.ts +0 -0
- /package/src/components/{common/ProductGrid → ProductGrid}/ProductGrid.tsx +0 -0
- /package/src/components/{common/ProductGrid → ProductGrid}/productGridVariants.ts +0 -0
- /package/src/components/{search/SearchFilter → SearchFilter}/types.ts +0 -0
- /package/src/components/{search/SearchInputAutocomplete → SearchInputAutocomplete}/SearchAutocomplete.tsx +0 -0
- /package/src/components/{search/SearchInputForm → SearchInputForm}/SearchInputForm.tsx +0 -0
- /package/src/components/{search/SearchInputForm → SearchInputForm}/types.ts +0 -0
- /package/src/components/{search/SearchResultsFilterSidebar → SearchResultsFilterSidebar}/types.ts +0 -0
- /package/src/components/{common/SparkleAnimation → SparkleAnimation}/SparkleAnimation.tsx +0 -0
- /package/src/components/{common/SparkleAnimation → SparkleAnimation}/types.ts +0 -0
- /package/src/components/{common/Spinner → Spinner}/Spinner.tsx +0 -0
- /package/src/components/{common/SuggestionButton → SuggestionButton}/SuggestionButton.tsx +0 -0
- /package/src/components/{common/SuggestionButton → SuggestionButton}/types.ts +0 -0
- /package/src/components/{common/Text → Text}/Text.tsx +0 -0
- /package/src/components/{common/Text → Text}/textVariantClasses.ts +0 -0
- /package/src/components/{common/Text → Text}/types.ts +0 -0
- /package/src/components/{common/TextInput → TextInput}/TextInput.tsx +0 -0
- /package/src/{components/models → models}/colorsConfig.ts +0 -0
- /package/src/{components/test → test}/types.ts +0 -0
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { SearchInputVariant } from "../../types-Dy4_w6Cf.cjs";
|
|
2
|
-
import React from "react";
|
|
3
|
-
|
|
4
|
-
//#region src/components/search/SearchInput/SearchInput.d.ts
|
|
5
|
-
interface SearchInputProps {
|
|
6
|
-
searchInputVariant?: SearchInputVariant;
|
|
7
|
-
value: string;
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
suggestions?: string[];
|
|
10
|
-
className?: string;
|
|
11
|
-
dataTestId?: string;
|
|
12
|
-
ariaActivedescendant?: string;
|
|
13
|
-
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
14
|
-
onChange: (newValue: string) => void;
|
|
15
|
-
onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
16
|
-
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
17
|
-
}
|
|
18
|
-
declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
19
|
-
//#endregion
|
|
20
|
-
export { SearchInput, SearchInputProps };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { SearchInputVariant } from "../../types-BRLWwGMI.js";
|
|
2
|
-
import React from "react";
|
|
3
|
-
|
|
4
|
-
//#region src/components/search/SearchInput/SearchInput.d.ts
|
|
5
|
-
interface SearchInputProps {
|
|
6
|
-
searchInputVariant?: SearchInputVariant;
|
|
7
|
-
value: string;
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
suggestions?: string[];
|
|
10
|
-
className?: string;
|
|
11
|
-
dataTestId?: string;
|
|
12
|
-
ariaActivedescendant?: string;
|
|
13
|
-
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
14
|
-
onChange: (newValue: string) => void;
|
|
15
|
-
onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
16
|
-
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
17
|
-
}
|
|
18
|
-
declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
19
|
-
//#endregion
|
|
20
|
-
export { SearchInput, SearchInputProps };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { SearchFilter, SelectFilterItem } from "../../types-CImLkcNh.cjs";
|
|
2
|
-
import { SearchFilterSidebarVariant } from "../../types-B4BGZSlV.cjs";
|
|
3
|
-
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
4
|
-
|
|
5
|
-
//#region src/components/search/SearchResultsFilterSidebar/SearchResultsFilter.d.ts
|
|
6
|
-
type SearchResultsFilterProps = {
|
|
7
|
-
productCount: number;
|
|
8
|
-
isOpen: boolean;
|
|
9
|
-
setIsOpen: (isOpen: boolean) => void;
|
|
10
|
-
searchFilters: SearchFilter[];
|
|
11
|
-
searchFilterSidebarVariant: SearchFilterSidebarVariant;
|
|
12
|
-
searchText: string;
|
|
13
|
-
onSelectFilterItem: SelectFilterItem;
|
|
14
|
-
onClearAllFilters: () => void;
|
|
15
|
-
filterButtonText: string;
|
|
16
|
-
};
|
|
17
|
-
declare const SearchResultsFilter: ({
|
|
18
|
-
productCount,
|
|
19
|
-
isOpen,
|
|
20
|
-
setIsOpen,
|
|
21
|
-
searchFilters,
|
|
22
|
-
searchFilterSidebarVariant,
|
|
23
|
-
onSelectFilterItem,
|
|
24
|
-
onClearAllFilters,
|
|
25
|
-
filterButtonText
|
|
26
|
-
}: SearchResultsFilterProps) => react_jsx_runtime10.JSX.Element;
|
|
27
|
-
//#endregion
|
|
28
|
-
export { SearchResultsFilter, SearchResultsFilterProps };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { SearchFilter, SelectFilterItem } from "../../types-BQNqA5xL.js";
|
|
2
|
-
import { SearchFilterSidebarVariant } from "../../types-CpiJO5UH.js";
|
|
3
|
-
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
4
|
-
|
|
5
|
-
//#region src/components/search/SearchResultsFilterSidebar/SearchResultsFilter.d.ts
|
|
6
|
-
type SearchResultsFilterProps = {
|
|
7
|
-
productCount: number;
|
|
8
|
-
isOpen: boolean;
|
|
9
|
-
setIsOpen: (isOpen: boolean) => void;
|
|
10
|
-
searchFilters: SearchFilter[];
|
|
11
|
-
searchFilterSidebarVariant: SearchFilterSidebarVariant;
|
|
12
|
-
searchText: string;
|
|
13
|
-
onSelectFilterItem: SelectFilterItem;
|
|
14
|
-
onClearAllFilters: () => void;
|
|
15
|
-
filterButtonText: string;
|
|
16
|
-
};
|
|
17
|
-
declare const SearchResultsFilter: ({
|
|
18
|
-
productCount,
|
|
19
|
-
isOpen,
|
|
20
|
-
setIsOpen,
|
|
21
|
-
searchFilters,
|
|
22
|
-
searchFilterSidebarVariant,
|
|
23
|
-
onSelectFilterItem,
|
|
24
|
-
onClearAllFilters,
|
|
25
|
-
filterButtonText
|
|
26
|
-
}: SearchResultsFilterProps) => react_jsx_runtime14.JSX.Element;
|
|
27
|
-
//#endregion
|
|
28
|
-
export { SearchResultsFilter, SearchResultsFilterProps };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('../../chunk-CUT6urMc.cjs');
|
|
2
|
-
require('../../textVariantClasses-Bhf4VY5z.cjs');
|
|
3
|
-
const require_Text = require('../../Text-C04c4Z93.cjs');
|
|
4
|
-
let classnames = require("classnames");
|
|
5
|
-
classnames = require_chunk.__toESM(classnames);
|
|
6
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
-
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
8
|
-
let __envive_ai_react_icons_src_Sparkles = require("@envive-ai/react-icons/src/Sparkles");
|
|
9
|
-
__envive_ai_react_icons_src_Sparkles = require_chunk.__toESM(__envive_ai_react_icons_src_Sparkles);
|
|
10
|
-
|
|
11
|
-
//#region src/components/search/SearchResultsStates/NoSearchResultsFound.tsx
|
|
12
|
-
const NoSearchResultsFound = ({ containerPaddingClasses, includeBottomMargin = false, noResultsFoundText, sparkleIconColor = "var(--spiffy-colors-accent-primary)" }) => {
|
|
13
|
-
const containerClasses = (0, classnames.default)(containerPaddingClasses, includeBottomMargin ? "spiffy-tw-mb-[100vh]" : "", "spiffy-tw-mt-6");
|
|
14
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
15
|
-
className: containerClasses,
|
|
16
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
17
|
-
className: "spiffy-tw-flex spiffy-tw-items-start spiffy-tw-gap-2",
|
|
18
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_src_Sparkles.default, {
|
|
19
|
-
className: "spiffy-tw-w-[24px] spiffy-tw-h-[24px]",
|
|
20
|
-
style: { color: sparkleIconColor }
|
|
21
|
-
}) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
|
|
22
|
-
variant: "body2",
|
|
23
|
-
children: noResultsFoundText || "I’m sorry, I wasn’t able to find an exact match. Try changing your filters or adjusting your search query."
|
|
24
|
-
})]
|
|
25
|
-
})
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
//#endregion
|
|
30
|
-
exports.NoSearchResultsFound = NoSearchResultsFound;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
//#region src/components/search/SearchResultsStates/NoSearchResultsFound.d.ts
|
|
4
|
-
interface NoSearchResultsFoundProps {
|
|
5
|
-
containerPaddingClasses: string;
|
|
6
|
-
includeBottomMargin?: boolean;
|
|
7
|
-
noResultsFoundText?: string;
|
|
8
|
-
sparkleIconColor?: string;
|
|
9
|
-
}
|
|
10
|
-
declare const NoSearchResultsFound: ({
|
|
11
|
-
containerPaddingClasses,
|
|
12
|
-
includeBottomMargin,
|
|
13
|
-
noResultsFoundText,
|
|
14
|
-
sparkleIconColor
|
|
15
|
-
}: NoSearchResultsFoundProps) => react_jsx_runtime11.JSX.Element;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { NoSearchResultsFound };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
//#region src/components/search/SearchResultsStates/NoSearchResultsFound.d.ts
|
|
4
|
-
interface NoSearchResultsFoundProps {
|
|
5
|
-
containerPaddingClasses: string;
|
|
6
|
-
includeBottomMargin?: boolean;
|
|
7
|
-
noResultsFoundText?: string;
|
|
8
|
-
sparkleIconColor?: string;
|
|
9
|
-
}
|
|
10
|
-
declare const NoSearchResultsFound: ({
|
|
11
|
-
containerPaddingClasses,
|
|
12
|
-
includeBottomMargin,
|
|
13
|
-
noResultsFoundText,
|
|
14
|
-
sparkleIconColor
|
|
15
|
-
}: NoSearchResultsFoundProps) => react_jsx_runtime13.JSX.Element;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { NoSearchResultsFound };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import "../../textVariantClasses-5t3OricK.js";
|
|
2
|
-
import { Text } from "../../Text-Bdv7F5-u.js";
|
|
3
|
-
import classNames from "classnames";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import Sparkles from "@envive-ai/react-icons/src/Sparkles";
|
|
6
|
-
|
|
7
|
-
//#region src/components/search/SearchResultsStates/NoSearchResultsFound.tsx
|
|
8
|
-
const NoSearchResultsFound = ({ containerPaddingClasses, includeBottomMargin = false, noResultsFoundText, sparkleIconColor = "var(--spiffy-colors-accent-primary)" }) => {
|
|
9
|
-
const containerClasses = classNames(containerPaddingClasses, includeBottomMargin ? "spiffy-tw-mb-[100vh]" : "", "spiffy-tw-mt-6");
|
|
10
|
-
return /* @__PURE__ */ jsx("div", {
|
|
11
|
-
className: containerClasses,
|
|
12
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
13
|
-
className: "spiffy-tw-flex spiffy-tw-items-start spiffy-tw-gap-2",
|
|
14
|
-
children: [/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Sparkles, {
|
|
15
|
-
className: "spiffy-tw-w-[24px] spiffy-tw-h-[24px]",
|
|
16
|
-
style: { color: sparkleIconColor }
|
|
17
|
-
}) }), /* @__PURE__ */ jsx(Text, {
|
|
18
|
-
variant: "body2",
|
|
19
|
-
children: noResultsFoundText || "I’m sorry, I wasn’t able to find an exact match. Try changing your filters or adjusting your search query."
|
|
20
|
-
})]
|
|
21
|
-
})
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
//#endregion
|
|
26
|
-
export { NoSearchResultsFound };
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('../../chunk-CUT6urMc.cjs');
|
|
2
|
-
require('../../textVariantClasses-Bhf4VY5z.cjs');
|
|
3
|
-
require('../../Text-C04c4Z93.cjs');
|
|
4
|
-
require('../../ImageWithFallback-ioeMFrTf.cjs');
|
|
5
|
-
require('../../Headline-CcWn0w-a.cjs');
|
|
6
|
-
require('../../productCardVariants-Dd-wrJKP.cjs');
|
|
7
|
-
require('../../ProductCard-C7WUShhN.cjs');
|
|
8
|
-
require('../../Spinner-CfQ85Ajl.cjs');
|
|
9
|
-
require('../../productGridVariants-CsNV0ACt.cjs');
|
|
10
|
-
const require_ProductGrid = require('../../ProductGrid-DZgwGPSQ.cjs');
|
|
11
|
-
const require_AppliedFiltersScrollbar = require('../../AppliedFiltersScrollbar-BlcyhZkZ.cjs');
|
|
12
|
-
const require_DynamicFiltersScrollbar = require('../../DynamicFiltersScrollbar-B2Rr1KnJ.cjs');
|
|
13
|
-
require('../../colorsConfig-vunsVTFC.cjs');
|
|
14
|
-
const require_searchFilterSidebarVariants = require('../../searchFilterSidebarVariants-L1rn5Ift.cjs');
|
|
15
|
-
let classnames = require("classnames");
|
|
16
|
-
classnames = require_chunk.__toESM(classnames);
|
|
17
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
18
|
-
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
19
|
-
let framer_motion = require("framer-motion");
|
|
20
|
-
framer_motion = require_chunk.__toESM(framer_motion);
|
|
21
|
-
|
|
22
|
-
//#region src/components/search/SearchResultsStates/SearchResultsGrid.tsx
|
|
23
|
-
const SearchResultsGrid = ({ productList, availableDynamicFilters, searchFilterSidebarVariant, productGridVariant, selectedFilterOptions, searchResponseId, containerXPaddingClasses, productGridClasses, onRemoveFilter, onToggleDynamicFilter }) => {
|
|
24
|
-
const sharedFilterBarClasses = (0, classnames.default)("spiffy-suggestion-bar", "spiffy-tw-no-scrollbar", "spiffy-tw-flex", "spiffy-tw-flex-row", "spiffy-tw-gap-2", "spiffy-tw-mb-[16px]", "spiffy-tw-overflow-x-scroll", containerXPaddingClasses);
|
|
25
|
-
const filterBarClasses = (0, classnames.default)(sharedFilterBarClasses, "spiffy-tw-mt-[24px]");
|
|
26
|
-
const appliedFilterBarClasses = (0, classnames.default)(sharedFilterBarClasses, "spiffy-tw-mb-[32px]", "spiffy-tw-mt-[8px]");
|
|
27
|
-
const { filterDefaultClasses, filterHoverClasses, appliedFilterBackgroundClasses } = require_searchFilterSidebarVariants.searchFilterSidebarVariantClasses[searchFilterSidebarVariant];
|
|
28
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(framer_motion.motion.div, {
|
|
29
|
-
className: "spiffy-tw-justify-center spiffy-tw-w-full spiffy-tw-overflow-hidden",
|
|
30
|
-
initial: { opacity: 0 },
|
|
31
|
-
animate: { opacity: 1 },
|
|
32
|
-
exit: { opacity: 0 },
|
|
33
|
-
transition: { duration: .2 },
|
|
34
|
-
children: [
|
|
35
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_AppliedFiltersScrollbar.AppliedFiltersScrollbar, {
|
|
36
|
-
selectedFilterOptions,
|
|
37
|
-
filterBarClassNames: appliedFilterBarClasses,
|
|
38
|
-
filterDefaultClasses,
|
|
39
|
-
filterHoverClasses,
|
|
40
|
-
appliedFilterBackgroundClasses,
|
|
41
|
-
onRemoveFilter
|
|
42
|
-
}),
|
|
43
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_DynamicFiltersScrollbar.DynamicFiltersScrollbar, {
|
|
44
|
-
availableDynamicFilters,
|
|
45
|
-
filterBarClassNames: filterBarClasses,
|
|
46
|
-
filterDefaultClasses,
|
|
47
|
-
filterHoverClasses,
|
|
48
|
-
onToggleDynamicFilter
|
|
49
|
-
}),
|
|
50
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProductGrid.ProductGrid, {
|
|
51
|
-
productList,
|
|
52
|
-
productGridVariant,
|
|
53
|
-
productGridClasses,
|
|
54
|
-
searchResponseId,
|
|
55
|
-
merchantShortName: "",
|
|
56
|
-
handleClick: function(clickedUrl) {
|
|
57
|
-
console.log(clickedUrl);
|
|
58
|
-
throw new Error("Function not implemented.");
|
|
59
|
-
}
|
|
60
|
-
})
|
|
61
|
-
]
|
|
62
|
-
});
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
//#endregion
|
|
66
|
-
exports.SearchResultsGrid = SearchResultsGrid;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { ProductGridVariant, SearchResponseProduct } from "../../types-aa4flfRE.cjs";
|
|
2
|
-
import { SelectedFilterOption } from "../../types-DaSkJnT_.cjs";
|
|
3
|
-
import { SearchFilterSidebarVariant } from "../../types-B4BGZSlV.cjs";
|
|
4
|
-
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
5
|
-
|
|
6
|
-
//#region src/components/search/SearchResultsStates/SearchResultsGrid.d.ts
|
|
7
|
-
interface SearchResultsGridProps {
|
|
8
|
-
productList: SearchResponseProduct[];
|
|
9
|
-
availableDynamicFilters: {
|
|
10
|
-
name: string;
|
|
11
|
-
displayName: string;
|
|
12
|
-
}[];
|
|
13
|
-
searchFilterSidebarVariant: SearchFilterSidebarVariant;
|
|
14
|
-
productGridVariant: ProductGridVariant;
|
|
15
|
-
selectedFilterOptions: SelectedFilterOption[];
|
|
16
|
-
searchResponseId: string;
|
|
17
|
-
containerXPaddingClasses: string;
|
|
18
|
-
productGridClasses: string;
|
|
19
|
-
onRemoveFilter: (filter: SelectedFilterOption) => void;
|
|
20
|
-
onToggleDynamicFilter: ({
|
|
21
|
-
filter,
|
|
22
|
-
dynamicFilterDisplayName
|
|
23
|
-
}: {
|
|
24
|
-
filter: string;
|
|
25
|
-
dynamicFilterDisplayName: string;
|
|
26
|
-
}) => void;
|
|
27
|
-
}
|
|
28
|
-
declare const SearchResultsGrid: ({
|
|
29
|
-
productList,
|
|
30
|
-
availableDynamicFilters,
|
|
31
|
-
searchFilterSidebarVariant,
|
|
32
|
-
productGridVariant,
|
|
33
|
-
selectedFilterOptions,
|
|
34
|
-
searchResponseId,
|
|
35
|
-
containerXPaddingClasses,
|
|
36
|
-
productGridClasses,
|
|
37
|
-
onRemoveFilter,
|
|
38
|
-
onToggleDynamicFilter
|
|
39
|
-
}: SearchResultsGridProps) => react_jsx_runtime15.JSX.Element;
|
|
40
|
-
//#endregion
|
|
41
|
-
export { SearchResultsGrid };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { ProductGridVariant, SearchResponseProduct } from "../../types-53zIialA.js";
|
|
2
|
-
import { SelectedFilterOption } from "../../types-DFetqNL2.js";
|
|
3
|
-
import { SearchFilterSidebarVariant } from "../../types-CpiJO5UH.js";
|
|
4
|
-
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
5
|
-
|
|
6
|
-
//#region src/components/search/SearchResultsStates/SearchResultsGrid.d.ts
|
|
7
|
-
interface SearchResultsGridProps {
|
|
8
|
-
productList: SearchResponseProduct[];
|
|
9
|
-
availableDynamicFilters: {
|
|
10
|
-
name: string;
|
|
11
|
-
displayName: string;
|
|
12
|
-
}[];
|
|
13
|
-
searchFilterSidebarVariant: SearchFilterSidebarVariant;
|
|
14
|
-
productGridVariant: ProductGridVariant;
|
|
15
|
-
selectedFilterOptions: SelectedFilterOption[];
|
|
16
|
-
searchResponseId: string;
|
|
17
|
-
containerXPaddingClasses: string;
|
|
18
|
-
productGridClasses: string;
|
|
19
|
-
onRemoveFilter: (filter: SelectedFilterOption) => void;
|
|
20
|
-
onToggleDynamicFilter: ({
|
|
21
|
-
filter,
|
|
22
|
-
dynamicFilterDisplayName
|
|
23
|
-
}: {
|
|
24
|
-
filter: string;
|
|
25
|
-
dynamicFilterDisplayName: string;
|
|
26
|
-
}) => void;
|
|
27
|
-
}
|
|
28
|
-
declare const SearchResultsGrid: ({
|
|
29
|
-
productList,
|
|
30
|
-
availableDynamicFilters,
|
|
31
|
-
searchFilterSidebarVariant,
|
|
32
|
-
productGridVariant,
|
|
33
|
-
selectedFilterOptions,
|
|
34
|
-
searchResponseId,
|
|
35
|
-
containerXPaddingClasses,
|
|
36
|
-
productGridClasses,
|
|
37
|
-
onRemoveFilter,
|
|
38
|
-
onToggleDynamicFilter
|
|
39
|
-
}: SearchResultsGridProps) => react_jsx_runtime19.JSX.Element;
|
|
40
|
-
//#endregion
|
|
41
|
-
export { SearchResultsGrid };
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import "../../textVariantClasses-5t3OricK.js";
|
|
2
|
-
import "../../Text-Bdv7F5-u.js";
|
|
3
|
-
import "../../ImageWithFallback-gN5HDS9L.js";
|
|
4
|
-
import "../../Headline-8on6ZB9e.js";
|
|
5
|
-
import "../../productCardVariants-C_QIZ-KF.js";
|
|
6
|
-
import "../../ProductCard-B5wnOeR9.js";
|
|
7
|
-
import "../../Spinner-BZ-kTOpm.js";
|
|
8
|
-
import "../../productGridVariants-BNX4YlRK.js";
|
|
9
|
-
import { ProductGrid } from "../../ProductGrid-wnSc9bXT.js";
|
|
10
|
-
import { AppliedFiltersScrollbar } from "../../AppliedFiltersScrollbar-DFGzRemu.js";
|
|
11
|
-
import { DynamicFiltersScrollbar } from "../../DynamicFiltersScrollbar-Dys6geP0.js";
|
|
12
|
-
import "../../colorsConfig-BKBZfFq1.js";
|
|
13
|
-
import { searchFilterSidebarVariantClasses } from "../../searchFilterSidebarVariants-eoyfoWA8.js";
|
|
14
|
-
import classNames from "classnames";
|
|
15
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
-
import { motion } from "framer-motion";
|
|
17
|
-
|
|
18
|
-
//#region src/components/search/SearchResultsStates/SearchResultsGrid.tsx
|
|
19
|
-
const SearchResultsGrid = ({ productList, availableDynamicFilters, searchFilterSidebarVariant, productGridVariant, selectedFilterOptions, searchResponseId, containerXPaddingClasses, productGridClasses, onRemoveFilter, onToggleDynamicFilter }) => {
|
|
20
|
-
const sharedFilterBarClasses = classNames("spiffy-suggestion-bar", "spiffy-tw-no-scrollbar", "spiffy-tw-flex", "spiffy-tw-flex-row", "spiffy-tw-gap-2", "spiffy-tw-mb-[16px]", "spiffy-tw-overflow-x-scroll", containerXPaddingClasses);
|
|
21
|
-
const filterBarClasses = classNames(sharedFilterBarClasses, "spiffy-tw-mt-[24px]");
|
|
22
|
-
const appliedFilterBarClasses = classNames(sharedFilterBarClasses, "spiffy-tw-mb-[32px]", "spiffy-tw-mt-[8px]");
|
|
23
|
-
const { filterDefaultClasses, filterHoverClasses, appliedFilterBackgroundClasses } = searchFilterSidebarVariantClasses[searchFilterSidebarVariant];
|
|
24
|
-
return /* @__PURE__ */ jsxs(motion.div, {
|
|
25
|
-
className: "spiffy-tw-justify-center spiffy-tw-w-full spiffy-tw-overflow-hidden",
|
|
26
|
-
initial: { opacity: 0 },
|
|
27
|
-
animate: { opacity: 1 },
|
|
28
|
-
exit: { opacity: 0 },
|
|
29
|
-
transition: { duration: .2 },
|
|
30
|
-
children: [
|
|
31
|
-
/* @__PURE__ */ jsx(AppliedFiltersScrollbar, {
|
|
32
|
-
selectedFilterOptions,
|
|
33
|
-
filterBarClassNames: appliedFilterBarClasses,
|
|
34
|
-
filterDefaultClasses,
|
|
35
|
-
filterHoverClasses,
|
|
36
|
-
appliedFilterBackgroundClasses,
|
|
37
|
-
onRemoveFilter
|
|
38
|
-
}),
|
|
39
|
-
/* @__PURE__ */ jsx(DynamicFiltersScrollbar, {
|
|
40
|
-
availableDynamicFilters,
|
|
41
|
-
filterBarClassNames: filterBarClasses,
|
|
42
|
-
filterDefaultClasses,
|
|
43
|
-
filterHoverClasses,
|
|
44
|
-
onToggleDynamicFilter
|
|
45
|
-
}),
|
|
46
|
-
/* @__PURE__ */ jsx(ProductGrid, {
|
|
47
|
-
productList,
|
|
48
|
-
productGridVariant,
|
|
49
|
-
productGridClasses,
|
|
50
|
-
searchResponseId,
|
|
51
|
-
merchantShortName: "",
|
|
52
|
-
handleClick: function(clickedUrl) {
|
|
53
|
-
console.log(clickedUrl);
|
|
54
|
-
throw new Error("Function not implemented.");
|
|
55
|
-
}
|
|
56
|
-
})
|
|
57
|
-
]
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
//#endregion
|
|
62
|
-
export { SearchResultsGrid };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('../../chunk-CUT6urMc.cjs');
|
|
2
|
-
require('../../textVariantClasses-Bhf4VY5z.cjs');
|
|
3
|
-
const require_Text = require('../../Text-C04c4Z93.cjs');
|
|
4
|
-
require('../../productCardVariants-Dd-wrJKP.cjs');
|
|
5
|
-
const require_ProductCardSkeleton = require('../../ProductCardSkeleton-BgvDlaty.cjs');
|
|
6
|
-
const require_productGridVariants = require('../../productGridVariants-CsNV0ACt.cjs');
|
|
7
|
-
const require_SparkleAnimation = require('../../SparkleAnimation-Ba5G4MIQ.cjs');
|
|
8
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
-
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
10
|
-
let framer_motion = require("framer-motion");
|
|
11
|
-
framer_motion = require_chunk.__toESM(framer_motion);
|
|
12
|
-
|
|
13
|
-
//#region src/components/search/SearchResultsStates/SearchResultsLoadingGrid.tsx
|
|
14
|
-
const SearchResultsLoadingGrid = ({ productGridVariant, productGridClasses, sparkleIconColor = "var(--spiffy-colors-accent-primary)" }) => {
|
|
15
|
-
const { productCardLayoutVariant, productCardImageAspectRatio } = require_productGridVariants.productGridVariantClasses[productGridVariant];
|
|
16
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
17
|
-
className: "spiffy-tw-justify-center spiffy-tw-w-full spiffy-tw-overflow-hidden",
|
|
18
|
-
initial: { opacity: 0 },
|
|
19
|
-
animate: { opacity: 1 },
|
|
20
|
-
exit: { opacity: 0 },
|
|
21
|
-
transition: { duration: .2 },
|
|
22
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
23
|
-
className: "spiffy-tw-mt-6 spiffy-tw-w-full",
|
|
24
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
25
|
-
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-justify-between spiffy-tw-mb-4",
|
|
26
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
27
|
-
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-gap-2 spiffy-tw-ml-[16px] md:spiffy-tw-ml-[80px]",
|
|
28
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
29
|
-
className: "spiffy-tw-width-[24px]",
|
|
30
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SparkleAnimation.SparkleAnimation, {
|
|
31
|
-
color: sparkleIconColor,
|
|
32
|
-
animate: true
|
|
33
|
-
})
|
|
34
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
|
|
35
|
-
variant: "body2",
|
|
36
|
-
children: "Finding the best options for you..."
|
|
37
|
-
})]
|
|
38
|
-
})
|
|
39
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
40
|
-
className: productGridClasses,
|
|
41
|
-
children: Array.from({ length: 8 }).map((_, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProductCardSkeleton.ProductCardSkeleton, {
|
|
42
|
-
layoutVariant: productCardLayoutVariant,
|
|
43
|
-
aspectRatio: productCardImageAspectRatio,
|
|
44
|
-
growWithContainer: true
|
|
45
|
-
}, index))
|
|
46
|
-
})]
|
|
47
|
-
})
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
//#endregion
|
|
52
|
-
exports.SearchResultsLoadingGrid = SearchResultsLoadingGrid;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ProductGridVariant } from "../../types-aa4flfRE.cjs";
|
|
2
|
-
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/components/search/SearchResultsStates/SearchResultsLoadingGrid.d.ts
|
|
5
|
-
declare const SearchResultsLoadingGrid: ({
|
|
6
|
-
productGridVariant,
|
|
7
|
-
productGridClasses,
|
|
8
|
-
sparkleIconColor
|
|
9
|
-
}: {
|
|
10
|
-
productGridVariant: ProductGridVariant;
|
|
11
|
-
productGridClasses: string;
|
|
12
|
-
sparkleIconColor?: string;
|
|
13
|
-
}) => react_jsx_runtime16.JSX.Element;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { SearchResultsLoadingGrid };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ProductGridVariant } from "../../types-53zIialA.js";
|
|
2
|
-
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/components/search/SearchResultsStates/SearchResultsLoadingGrid.d.ts
|
|
5
|
-
declare const SearchResultsLoadingGrid: ({
|
|
6
|
-
productGridVariant,
|
|
7
|
-
productGridClasses,
|
|
8
|
-
sparkleIconColor
|
|
9
|
-
}: {
|
|
10
|
-
productGridVariant: ProductGridVariant;
|
|
11
|
-
productGridClasses: string;
|
|
12
|
-
sparkleIconColor?: string;
|
|
13
|
-
}) => react_jsx_runtime12.JSX.Element;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { SearchResultsLoadingGrid };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import "../../textVariantClasses-5t3OricK.js";
|
|
2
|
-
import { Text } from "../../Text-Bdv7F5-u.js";
|
|
3
|
-
import "../../productCardVariants-C_QIZ-KF.js";
|
|
4
|
-
import { ProductCardSkeleton } from "../../ProductCardSkeleton-BPfp6IOp.js";
|
|
5
|
-
import { productGridVariantClasses } from "../../productGridVariants-BNX4YlRK.js";
|
|
6
|
-
import { SparkleAnimation } from "../../SparkleAnimation-Qs17S1rn.js";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import { motion } from "framer-motion";
|
|
9
|
-
|
|
10
|
-
//#region src/components/search/SearchResultsStates/SearchResultsLoadingGrid.tsx
|
|
11
|
-
const SearchResultsLoadingGrid = ({ productGridVariant, productGridClasses, sparkleIconColor = "var(--spiffy-colors-accent-primary)" }) => {
|
|
12
|
-
const { productCardLayoutVariant, productCardImageAspectRatio } = productGridVariantClasses[productGridVariant];
|
|
13
|
-
return /* @__PURE__ */ jsx(motion.div, {
|
|
14
|
-
className: "spiffy-tw-justify-center spiffy-tw-w-full spiffy-tw-overflow-hidden",
|
|
15
|
-
initial: { opacity: 0 },
|
|
16
|
-
animate: { opacity: 1 },
|
|
17
|
-
exit: { opacity: 0 },
|
|
18
|
-
transition: { duration: .2 },
|
|
19
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
20
|
-
className: "spiffy-tw-mt-6 spiffy-tw-w-full",
|
|
21
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
22
|
-
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-justify-between spiffy-tw-mb-4",
|
|
23
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
24
|
-
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-gap-2 spiffy-tw-ml-[16px] md:spiffy-tw-ml-[80px]",
|
|
25
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
26
|
-
className: "spiffy-tw-width-[24px]",
|
|
27
|
-
children: /* @__PURE__ */ jsx(SparkleAnimation, {
|
|
28
|
-
color: sparkleIconColor,
|
|
29
|
-
animate: true
|
|
30
|
-
})
|
|
31
|
-
}), /* @__PURE__ */ jsx(Text, {
|
|
32
|
-
variant: "body2",
|
|
33
|
-
children: "Finding the best options for you..."
|
|
34
|
-
})]
|
|
35
|
-
})
|
|
36
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
37
|
-
className: productGridClasses,
|
|
38
|
-
children: Array.from({ length: 8 }).map((_, index) => /* @__PURE__ */ jsx(ProductCardSkeleton, {
|
|
39
|
-
layoutVariant: productCardLayoutVariant,
|
|
40
|
-
aspectRatio: productCardImageAspectRatio,
|
|
41
|
-
growWithContainer: true
|
|
42
|
-
}, index))
|
|
43
|
-
})]
|
|
44
|
-
})
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
//#endregion
|
|
49
|
-
export { SearchResultsLoadingGrid };
|
package/dist/types-53zIialA.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
//#region src/types/external.d.ts
|
|
2
|
-
|
|
3
|
-
interface SearchResponseProduct {
|
|
4
|
-
id: string;
|
|
5
|
-
title: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
price?: number;
|
|
8
|
-
currency?: string;
|
|
9
|
-
imageUrl?: string;
|
|
10
|
-
brand?: string;
|
|
11
|
-
category?: string;
|
|
12
|
-
availability?: string;
|
|
13
|
-
url?: string;
|
|
14
|
-
responseId?: string;
|
|
15
|
-
originalPrice?: number;
|
|
16
|
-
salePrice?: number;
|
|
17
|
-
averageRating?: number;
|
|
18
|
-
numberReviews?: number;
|
|
19
|
-
[key: string]: unknown;
|
|
20
|
-
}
|
|
21
|
-
//#endregion
|
|
22
|
-
//#region src/components/common/ProductCard/types.d.ts
|
|
23
|
-
|
|
24
|
-
type ProductGridVariant = 'standard' | 'square';
|
|
25
|
-
type ProductCardVariant = 'filled' | 'bordered' | 'minimal' | 'transparentBordered';
|
|
26
|
-
type ProductCardHoverVariant = 'backgroundDark' | 'none';
|
|
27
|
-
type ProductCardLayoutVariant = 'normal' | 'tall' | 'square';
|
|
28
|
-
interface ProductCardConfig {
|
|
29
|
-
variant: ProductCardVariant;
|
|
30
|
-
hoverVariant: ProductCardHoverVariant;
|
|
31
|
-
layoutVariant: ProductCardLayoutVariant;
|
|
32
|
-
pricePrefix?: string;
|
|
33
|
-
}
|
|
34
|
-
//#endregion
|
|
35
|
-
export { ProductCardConfig, ProductCardHoverVariant, ProductCardLayoutVariant, ProductCardVariant, ProductGridVariant, SearchResponseProduct };
|
package/dist/types-BRLWwGMI.d.ts
DELETED
package/dist/types-Cph97xkm.d.ts
DELETED
package/dist/types-CpiJO5UH.d.ts
DELETED