@envive-ai/react-toolkit 0.1.3 → 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-DVBSlvQv.d.ts → ButtonBase/index.d.cts} +5 -5
- package/dist/{ButtonBase-2R-hB-y8.d.cts → ButtonBase/index.d.ts} +5 -5
- package/dist/ButtonBase/index.js +5 -0
- package/dist/{ButtonBase-Dk_5Bxe0.js → ButtonBase-CpmFsiUf.js} +3 -3
- package/dist/{ButtonBase-RIYFAcSy.cjs → ButtonBase-Dlh3bpR3.cjs} +3 -3
- package/dist/{AppliedFiltersScrollbar-Cd6jgn-c.cjs → DynamicFiltersScrollbar-D8Lms7Ox.cjs} +34 -2
- package/dist/{AppliedFiltersScrollbar-DUo5NSwQ.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/{Headline-B8ivXd0O.d.cts → Headline/index.d.cts} +3 -3
- package/dist/{Headline-CRQSK38D.d.ts → Headline/index.d.ts} +3 -3
- package/dist/Headline/index.js +4 -0
- package/dist/{Headline-ro_Nigw5.js → Headline-COAnonc2.js} +2 -2
- package/dist/{Headline-L7w3BsBF.cjs → Headline-CdddUGwy.cjs} +2 -2
- package/dist/ImageWithFallback/index.cjs +3 -0
- package/dist/{ImageWithFallback-xikP8SY4.d.ts → ImageWithFallback/index.d.cts} +2 -2
- package/dist/{ImageWithFallback-D70hTBkZ.d.cts → ImageWithFallback/index.d.ts} +3 -3
- package/dist/ImageWithFallback/index.js +3 -0
- package/dist/{ImageWithFallback-P3AjyL2Y.cjs → ImageWithFallback-By6QdlCR.cjs} +1 -1
- package/dist/{ImageWithFallback-CfmkC58B.js → ImageWithFallback-DtUrq_bk.js} +1 -1
- package/dist/ProductCard/index.cjs +18 -0
- package/dist/{ProductCard-CPOXS9kz.d.ts → ProductCard/index.d.cts} +22 -4
- package/dist/{ProductCard-CTm2sGVZ.d.cts → ProductCard/index.d.ts} +26 -8
- package/dist/ProductCard/index.js +9 -0
- package/dist/{ProductCard-DSmiLLCO.cjs → ProductCard-CvTRvhm7.cjs} +73 -12
- package/dist/{ProductCard-CLLIICuS.js → ProductCard-aJbQz6Q7.js} +50 -7
- package/dist/{ProductCardSkeleton-lKjP9IjT.js → ProductCardSkeleton-B6YetUCT.js} +3 -3
- package/dist/{ProductCardSkeleton-Pp0UQG-h.cjs → ProductCardSkeleton-BzBK36m-.cjs} +4 -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-CocLTY7Q.cjs → ProductGrid-CSIH2_G9.cjs} +26 -8
- package/dist/{ProductGrid-CGKgdAK7.js → ProductGrid-NOCayW9O.js} +22 -4
- package/dist/{SearchAutocomplete-CIsbwN0M.cjs → SearchAutocomplete-CQxxe5Op.cjs} +1 -1
- package/dist/{SearchAutocomplete-D4LkC6bS.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-D2yMIYtf.cjs → SearchInput-Cdpwswyv.cjs} +4 -4
- package/dist/{SearchInput-Cxg1t9H8.js → SearchInput-DxGvYGZO.js} +4 -4
- package/dist/SearchInputAutocomplete/index.cjs +3 -0
- package/dist/{SearchAutocomplete-I5DJkfmd.d.ts → SearchInputAutocomplete/index.d.cts} +1 -1
- package/dist/{SearchAutocomplete-5gSMPXfM.d.cts → SearchInputAutocomplete/index.d.ts} +1 -1
- package/dist/SearchInputAutocomplete/index.js +3 -0
- package/dist/{SearchInputForm-z5RFjdh2.cjs → SearchInputForm/index.cjs} +8 -10
- package/dist/{SearchInputForm-D4qh2b7S.d.ts → SearchInputForm/index.d.cts} +5 -5
- package/dist/{SearchInputForm-BWMdfatv.d.cts → SearchInputForm/index.d.ts} +5 -5
- package/dist/{SearchInputForm-DNEkauQ5.js → SearchInputForm/index.js} +6 -3
- package/dist/{SearchResultsFilter-DdF8BeDA.cjs → SearchResultsFilterSidebar/index.cjs} +11 -13
- package/dist/SearchResultsFilterSidebar/index.d.cts +44 -0
- package/dist/SearchResultsFilterSidebar/index.d.ts +44 -0
- package/dist/{SearchResultsFilter-CVFVMTUO.js → SearchResultsFilterSidebar/index.js} +8 -6
- 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-Df_wUFfB.js → SparkleAnimation-DfMCtvAQ.js} +2 -2
- package/dist/{SparkleAnimation-CVu9vUAb.cjs → SparkleAnimation-j-mAMEZZ.cjs} +2 -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/{SuggestionButton-BVzBCzmQ.cjs → SuggestionButton/index.cjs} +11 -29
- package/dist/{SuggestionButton-BoKmwMb3.d.ts → SuggestionButton/index.d.cts} +5 -5
- package/dist/{SuggestionButton-CNwyzi1V.d.cts → SuggestionButton/index.d.ts} +5 -5
- package/dist/{SuggestionButton-C4p08bZv.js → SuggestionButton/index.js} +5 -3
- package/dist/Text/index.cjs +18 -0
- package/dist/{Text-D8bCCNPT.d.cts → Text/index.d.cts} +6 -5
- package/dist/{Text-D8WEjUal.d.ts → Text/index.d.ts} +6 -5
- 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-CZogcpzR.cjs → TextInput-CObd_Wcw.cjs} +2 -2
- package/dist/{TextInput-BZSsdOtq.js → TextInput-ChPhL54o.js} +2 -2
- package/dist/{colorsConfig-l0ODUVhu.js → colorsConfig-CKiMYHO_.js} +1 -1
- package/dist/{colorsConfig-TCONYTQ7.cjs → colorsConfig-DulwYRIk.cjs} +1 -1
- package/dist/{searchFilterSidebarVariants-ClPVoN5E.js → searchFilterSidebarVariants-C_UTEIpZ.js} +2 -2
- package/dist/{searchFilterSidebarVariants-2hFLDP6e.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-D2gzKgxc.d.cts → types-5luH4G-3.d.cts} +1 -1
- package/dist/{types-CmjqQWAG.d.ts → types-B7hf-Lif.d.ts} +2 -19
- package/dist/{types-DSduYC0Z.d.ts → types-BCAU5OQD.d.cts} +1 -1
- package/dist/{types-BKI60fVP.d.ts → types-BIPqyTOJ.d.ts} +1 -1
- package/dist/types-BQYpWDJ4.d.cts +6 -0
- package/dist/{types-pOHvi423.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--SBcFTJX.d.cts → types-Dvgr3ZeV.d.cts} +2 -19
- package/dist/types-nR3jHgIO.d.ts +4 -0
- package/package.json +77 -9
- 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/AppliedFiltersScrollbar-CeMmITGf.d.cts +0 -22
- package/dist/AppliedFiltersScrollbar-DrcrTkwX.d.ts +0 -22
- package/dist/DynamicFiltersScrollbar-BbgfsOpt.js +0 -32
- package/dist/DynamicFiltersScrollbar-CHI1YQZ7.d.cts +0 -28
- package/dist/DynamicFiltersScrollbar-DMuCZcGH.d.ts +0 -28
- package/dist/DynamicFiltersScrollbar-FKO8Qb5u.cjs +0 -41
- package/dist/NoSearchResultsFound-C25AsQAI.d.ts +0 -17
- package/dist/NoSearchResultsFound-jT3JwiYm.cjs +0 -34
- package/dist/NoSearchResultsFound-lpvz_Gq-.d.cts +0 -17
- package/dist/NoSearchResultsFound-q-DgYpjR.js +0 -25
- package/dist/ProductCardSkeleton-BD-4l9Ym.d.ts +0 -12
- package/dist/ProductCardSkeleton-CgpRxzKt.d.cts +0 -12
- package/dist/ProductGrid-DDhSKNBT.d.ts +0 -26
- package/dist/ProductGrid-Lts9Xv83.d.cts +0 -26
- package/dist/SearchFilter-BoCnqT8O.d.ts +0 -18
- package/dist/SearchFilter-D9_2Bdu0.cjs +0 -70
- package/dist/SearchFilter-DK7f_J7J.d.cts +0 -18
- package/dist/SearchFilter-qTwBmFt1.js +0 -62
- package/dist/SearchFilterHeader-C4D38iyw.d.ts +0 -12
- package/dist/SearchFilterHeader-CcHU0lN_.cjs +0 -45
- package/dist/SearchFilterHeader-DRA6XMMY.js +0 -37
- package/dist/SearchFilterHeader-TQ_MapZI.d.cts +0 -12
- package/dist/SearchFilterItem-C3F8x3M3.d.cts +0 -13
- package/dist/SearchFilterItem-CsrO3Om5.js +0 -26
- package/dist/SearchFilterItem-DJrPcYtU.cjs +0 -34
- package/dist/SearchFilterItem-sOBAQLPQ.d.ts +0 -13
- package/dist/SearchInput-DzLynEd6.d.cts +0 -20
- package/dist/SearchInput-zggwSGKj.d.ts +0 -20
- package/dist/SearchResultsFilter-3U3u9E4U.d.ts +0 -28
- package/dist/SearchResultsFilter-RuaEmhp5.d.cts +0 -28
- package/dist/SearchResultsGrid-B7bjLKye.cjs +0 -62
- package/dist/SearchResultsGrid-BXyk2cMd.js +0 -53
- package/dist/SearchResultsGrid-CLldvt66.d.cts +0 -41
- package/dist/SearchResultsGrid-CoWZNxWh.d.ts +0 -41
- package/dist/SearchResultsLoadingGrid-4QzwkBiT.cjs +0 -55
- package/dist/SearchResultsLoadingGrid-BiZ11r8B.js +0 -47
- package/dist/SearchResultsLoadingGrid-DN3MQxZi.d.ts +0 -15
- package/dist/SearchResultsLoadingGrid-XA5pUZAz.d.cts +0 -15
- package/dist/SparkleAnimation-BStwzL9T.d.ts +0 -15
- package/dist/SparkleAnimation-DKhQSeVg.d.cts +0 -15
- package/dist/Spinner-79PaZrmy.d.cts +0 -11
- package/dist/Spinner-De8NVcZz.d.ts +0 -11
- package/dist/TextInput-CtSUuczk.d.ts +0 -98
- package/dist/TextInput-QqdJV52m.d.cts +0 -98
- package/dist/components/common/ButtonBase/ButtonBase.cjs +0 -5
- package/dist/components/common/ButtonBase/ButtonBase.d.cts +0 -3
- package/dist/components/common/ButtonBase/ButtonBase.d.ts +0 -3
- package/dist/components/common/ButtonBase/ButtonBase.js +0 -5
- package/dist/components/common/Headline/Headline.cjs +0 -4
- package/dist/components/common/Headline/Headline.d.cts +0 -2
- package/dist/components/common/Headline/Headline.d.ts +0 -2
- package/dist/components/common/Headline/Headline.js +0 -4
- package/dist/components/common/ImageWithFallback/ImageWithFallback.cjs +0 -3
- package/dist/components/common/ImageWithFallback/ImageWithFallback.d.cts +0 -2
- package/dist/components/common/ImageWithFallback/ImageWithFallback.d.ts +0 -2
- package/dist/components/common/ImageWithFallback/ImageWithFallback.js +0 -3
- package/dist/components/common/ProductCard/ProductCard.cjs +0 -11
- package/dist/components/common/ProductCard/ProductCard.d.cts +0 -4
- package/dist/components/common/ProductCard/ProductCard.d.ts +0 -4
- package/dist/components/common/ProductCard/ProductCard.js +0 -9
- package/dist/components/common/ProductCard/ProductCardSkeleton.cjs +0 -4
- package/dist/components/common/ProductCard/ProductCardSkeleton.d.cts +0 -3
- package/dist/components/common/ProductCard/ProductCardSkeleton.d.ts +0 -3
- package/dist/components/common/ProductCard/ProductCardSkeleton.js +0 -4
- package/dist/components/common/ProductGrid/ProductGrid.cjs +0 -11
- package/dist/components/common/ProductGrid/ProductGrid.d.cts +0 -3
- package/dist/components/common/ProductGrid/ProductGrid.d.ts +0 -3
- package/dist/components/common/ProductGrid/ProductGrid.js +0 -11
- package/dist/components/common/SparkleAnimation/SparkleAnimation.cjs +0 -3
- package/dist/components/common/SparkleAnimation/SparkleAnimation.d.cts +0 -2
- package/dist/components/common/SparkleAnimation/SparkleAnimation.d.ts +0 -2
- package/dist/components/common/SparkleAnimation/SparkleAnimation.js +0 -3
- package/dist/components/common/Spinner/Spinner.cjs +0 -3
- package/dist/components/common/Spinner/Spinner.d.cts +0 -2
- package/dist/components/common/Spinner/Spinner.d.ts +0 -2
- package/dist/components/common/Spinner/Spinner.js +0 -3
- package/dist/components/common/SuggestionButton/SuggestionButton.cjs +0 -9
- package/dist/components/common/SuggestionButton/SuggestionButton.d.cts +0 -3
- package/dist/components/common/SuggestionButton/SuggestionButton.d.ts +0 -3
- package/dist/components/common/SuggestionButton/SuggestionButton.js +0 -6
- package/dist/components/common/Text/Text.cjs +0 -4
- package/dist/components/common/Text/Text.d.cts +0 -2
- package/dist/components/common/Text/Text.d.ts +0 -2
- package/dist/components/common/Text/Text.js +0 -4
- package/dist/components/common/TextInput/TextInput.cjs +0 -4
- package/dist/components/common/TextInput/TextInput.d.cts +0 -2
- package/dist/components/common/TextInput/TextInput.d.ts +0 -2
- package/dist/components/common/TextInput/TextInput.js +0 -4
- package/dist/components/search/FilterScrollbar/AppliedFiltersScrollbar.cjs +0 -5
- package/dist/components/search/FilterScrollbar/AppliedFiltersScrollbar.d.cts +0 -3
- package/dist/components/search/FilterScrollbar/AppliedFiltersScrollbar.d.ts +0 -3
- package/dist/components/search/FilterScrollbar/AppliedFiltersScrollbar.js +0 -5
- package/dist/components/search/FilterScrollbar/DynamicFiltersScrollbar.cjs +0 -5
- package/dist/components/search/FilterScrollbar/DynamicFiltersScrollbar.d.cts +0 -2
- package/dist/components/search/FilterScrollbar/DynamicFiltersScrollbar.d.ts +0 -2
- package/dist/components/search/FilterScrollbar/DynamicFiltersScrollbar.js +0 -5
- package/dist/components/search/SearchFilter/SearchFilter.cjs +0 -7
- package/dist/components/search/SearchFilter/SearchFilter.d.cts +0 -3
- package/dist/components/search/SearchFilter/SearchFilter.d.ts +0 -3
- package/dist/components/search/SearchFilter/SearchFilter.js +0 -7
- package/dist/components/search/SearchFilter/SearchFilterHeader.cjs +0 -5
- package/dist/components/search/SearchFilter/SearchFilterHeader.d.cts +0 -3
- package/dist/components/search/SearchFilter/SearchFilterHeader.d.ts +0 -3
- package/dist/components/search/SearchFilter/SearchFilterHeader.js +0 -5
- package/dist/components/search/SearchFilter/SearchFilterItem.cjs +0 -5
- package/dist/components/search/SearchFilter/SearchFilterItem.d.cts +0 -3
- package/dist/components/search/SearchFilter/SearchFilterItem.d.ts +0 -3
- package/dist/components/search/SearchFilter/SearchFilterItem.js +0 -5
- package/dist/components/search/SearchInput/SearchInput.cjs +0 -6
- package/dist/components/search/SearchInput/SearchInput.d.cts +0 -3
- package/dist/components/search/SearchInput/SearchInput.d.ts +0 -3
- package/dist/components/search/SearchInput/SearchInput.js +0 -6
- package/dist/components/search/SearchInputAutocomplete/SearchAutocomplete.cjs +0 -3
- package/dist/components/search/SearchInputAutocomplete/SearchAutocomplete.d.cts +0 -2
- package/dist/components/search/SearchInputAutocomplete/SearchAutocomplete.d.ts +0 -2
- package/dist/components/search/SearchInputAutocomplete/SearchAutocomplete.js +0 -3
- package/dist/components/search/SearchInputForm/SearchInputForm.cjs +0 -8
- package/dist/components/search/SearchInputForm/SearchInputForm.d.cts +0 -3
- package/dist/components/search/SearchInputForm/SearchInputForm.d.ts +0 -3
- package/dist/components/search/SearchInputForm/SearchInputForm.js +0 -8
- package/dist/components/search/SearchResultsFilterSidebar/SearchResultsFilter.cjs +0 -11
- package/dist/components/search/SearchResultsFilterSidebar/SearchResultsFilter.d.cts +0 -4
- package/dist/components/search/SearchResultsFilterSidebar/SearchResultsFilter.d.ts +0 -4
- package/dist/components/search/SearchResultsFilterSidebar/SearchResultsFilter.js +0 -11
- package/dist/components/search/SearchResultsStates/NoSearchResultsFound.cjs +0 -5
- package/dist/components/search/SearchResultsStates/NoSearchResultsFound.d.cts +0 -2
- package/dist/components/search/SearchResultsStates/NoSearchResultsFound.d.ts +0 -2
- package/dist/components/search/SearchResultsStates/NoSearchResultsFound.js +0 -5
- package/dist/components/search/SearchResultsStates/SearchResultsGrid.cjs +0 -16
- package/dist/components/search/SearchResultsStates/SearchResultsGrid.d.cts +0 -5
- package/dist/components/search/SearchResultsStates/SearchResultsGrid.d.ts +0 -5
- package/dist/components/search/SearchResultsStates/SearchResultsGrid.js +0 -16
- package/dist/components/search/SearchResultsStates/SearchResultsLoadingGrid.cjs +0 -9
- package/dist/components/search/SearchResultsStates/SearchResultsLoadingGrid.d.cts +0 -3
- package/dist/components/search/SearchResultsStates/SearchResultsLoadingGrid.d.ts +0 -3
- package/dist/components/search/SearchResultsStates/SearchResultsLoadingGrid.js +0 -9
- package/dist/index.cjs +0 -80
- package/dist/index.d.cts +0 -75
- package/dist/index.d.ts +0 -75
- package/dist/index.js +0 -48
- 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/types-DIFUT33A.d.ts +0 -4
- package/dist/types-TYhhwWZw.d.cts +0 -6
- package/dist/types-Y0WKFOqS.d.ts +0 -6
- package/dist/types-ZUUsuyGT.d.cts +0 -4
- package/src/components/search/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts +0 -45
- package/src/components/search/types.ts +0 -5
- package/src/index.ts +0 -58
- /package/dist/{types-CrKSiwfx.d.ts → types-B19i3fxM.d.ts} +0 -0
- /package/dist/{types-DBFHTDLN.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,11 +1,13 @@
|
|
|
1
|
-
import { ButtonBase } from "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { ButtonBase } from "../ButtonBase-CpmFsiUf.js";
|
|
2
|
+
import "../textVariantClasses-CnjwO2Fv.js";
|
|
3
|
+
import "../Text-BMg3d10t.js";
|
|
4
|
+
import { SearchFilter, SearchFilterHeader } from "../SearchFilterHeader-BDEcDc_4.js";
|
|
5
|
+
import "../colorsConfig-CKiMYHO_.js";
|
|
6
|
+
import { searchFilterSidebarVariantClasses } from "../searchFilterSidebarVariants-C_UTEIpZ.js";
|
|
5
7
|
import { useCallback } from "react";
|
|
6
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
9
|
|
|
8
|
-
//#region src/components/
|
|
10
|
+
//#region src/components/SearchResultsFilterSidebar/SearchResultsFilter.tsx
|
|
9
11
|
const SearchResultsFilter = ({ productCount, isOpen, setIsOpen, searchFilters, searchFilterSidebarVariant, onSelectFilterItem, onClearAllFilters, filterButtonText }) => {
|
|
10
12
|
const { applyFiltersUnchangedClasses, applyFiltersChangedClasses, searchFilterHeaderClasses, radioButtonFillColor, radioButtonHoverColor, radioButtonUncheckedBorderColor, filterCloseIconVariant } = searchFilterSidebarVariantClasses[searchFilterSidebarVariant];
|
|
11
13
|
const openFilter = useCallback(() => {
|
|
@@ -42,4 +44,4 @@ const SearchResultsFilter = ({ productCount, isOpen, setIsOpen, searchFilters, s
|
|
|
42
44
|
};
|
|
43
45
|
|
|
44
46
|
//#endregion
|
|
45
|
-
export { SearchResultsFilter };
|
|
47
|
+
export { SearchResultsFilter, searchFilterSidebarVariantClasses };
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
const require_chunk = require('../chunk-CUT6urMc.cjs');
|
|
2
|
+
require('../textVariantClasses-BnV4wXaw.cjs');
|
|
3
|
+
const require_Text = require('../Text-CgOYTs8D.cjs');
|
|
4
|
+
const require_DynamicFiltersScrollbar = require('../DynamicFiltersScrollbar-D8Lms7Ox.cjs');
|
|
5
|
+
require('../Headline-CdddUGwy.cjs');
|
|
6
|
+
require('../ImageWithFallback-By6QdlCR.cjs');
|
|
7
|
+
require('../ProductCard-CvTRvhm7.cjs');
|
|
8
|
+
require('../Spinner-DX35Epv3.cjs');
|
|
9
|
+
const require_ProductCardSkeleton = require('../ProductCardSkeleton-BzBK36m-.cjs');
|
|
10
|
+
require('../colorsConfig-DulwYRIk.cjs');
|
|
11
|
+
const require_ProductGrid = require('../ProductGrid-CSIH2_G9.cjs');
|
|
12
|
+
const require_searchFilterSidebarVariants = require('../searchFilterSidebarVariants-DcQLi_TT.cjs');
|
|
13
|
+
const require_SparkleAnimation = require('../SparkleAnimation-j-mAMEZZ.cjs');
|
|
14
|
+
let classnames = require("classnames");
|
|
15
|
+
classnames = require_chunk.__toESM(classnames);
|
|
16
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
17
|
+
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
18
|
+
let framer_motion = require("framer-motion");
|
|
19
|
+
framer_motion = require_chunk.__toESM(framer_motion);
|
|
20
|
+
let __envive_ai_react_icons_src_Sparkles = require("@envive-ai/react-icons/src/Sparkles");
|
|
21
|
+
__envive_ai_react_icons_src_Sparkles = require_chunk.__toESM(__envive_ai_react_icons_src_Sparkles);
|
|
22
|
+
|
|
23
|
+
//#region src/components/SearchResultsStates/NoSearchResultsFound.tsx
|
|
24
|
+
const NoSearchResultsFound = ({ containerPaddingClasses, includeBottomMargin = false, noResultsFoundText, sparkleIconColor = "var(--spiffy-colors-accent-primary)" }) => {
|
|
25
|
+
const containerClasses = (0, classnames.default)(containerPaddingClasses, includeBottomMargin ? "spiffy-tw-mb-[100vh]" : "", "spiffy-tw-mt-6");
|
|
26
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
27
|
+
className: containerClasses,
|
|
28
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
29
|
+
className: "spiffy-tw-flex spiffy-tw-items-start spiffy-tw-gap-2",
|
|
30
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_src_Sparkles.default, {
|
|
31
|
+
className: "spiffy-tw-w-[24px] spiffy-tw-h-[24px]",
|
|
32
|
+
style: { color: sparkleIconColor }
|
|
33
|
+
}) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
|
|
34
|
+
variant: "body2",
|
|
35
|
+
children: noResultsFoundText || "I’m sorry, I wasn’t able to find an exact match. Try changing your filters or adjusting your search query."
|
|
36
|
+
})]
|
|
37
|
+
})
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/components/SearchResultsStates/SearchResultsGrid.tsx
|
|
43
|
+
const SearchResultsGrid = ({ productList, availableDynamicFilters, searchFilterSidebarVariant, productGridVariant, selectedFilterOptions, searchResponseId, containerXPaddingClasses, productGridClasses, onRemoveFilter, onToggleDynamicFilter }) => {
|
|
44
|
+
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);
|
|
45
|
+
const filterBarClasses = (0, classnames.default)(sharedFilterBarClasses, "spiffy-tw-mt-[24px]");
|
|
46
|
+
const appliedFilterBarClasses = (0, classnames.default)(sharedFilterBarClasses, "spiffy-tw-mb-[32px]", "spiffy-tw-mt-[8px]");
|
|
47
|
+
const { filterDefaultClasses, filterHoverClasses, appliedFilterBackgroundClasses } = require_searchFilterSidebarVariants.searchFilterSidebarVariantClasses[searchFilterSidebarVariant];
|
|
48
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(framer_motion.motion.div, {
|
|
49
|
+
className: "spiffy-tw-justify-center spiffy-tw-w-full spiffy-tw-overflow-hidden",
|
|
50
|
+
initial: { opacity: 0 },
|
|
51
|
+
animate: { opacity: 1 },
|
|
52
|
+
exit: { opacity: 0 },
|
|
53
|
+
transition: { duration: .2 },
|
|
54
|
+
children: [
|
|
55
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_DynamicFiltersScrollbar.AppliedFiltersScrollbar, {
|
|
56
|
+
selectedFilterOptions,
|
|
57
|
+
filterBarClassNames: appliedFilterBarClasses,
|
|
58
|
+
filterDefaultClasses,
|
|
59
|
+
filterHoverClasses,
|
|
60
|
+
appliedFilterBackgroundClasses,
|
|
61
|
+
onRemoveFilter
|
|
62
|
+
}),
|
|
63
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_DynamicFiltersScrollbar.DynamicFiltersScrollbar, {
|
|
64
|
+
availableDynamicFilters,
|
|
65
|
+
filterBarClassNames: filterBarClasses,
|
|
66
|
+
filterDefaultClasses,
|
|
67
|
+
filterHoverClasses,
|
|
68
|
+
onToggleDynamicFilter
|
|
69
|
+
}),
|
|
70
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProductGrid.ProductGrid, {
|
|
71
|
+
productList,
|
|
72
|
+
productGridVariant,
|
|
73
|
+
productGridClasses,
|
|
74
|
+
searchResponseId,
|
|
75
|
+
merchantShortName: "",
|
|
76
|
+
handleClick: function(clickedUrl) {
|
|
77
|
+
console.log(clickedUrl);
|
|
78
|
+
throw new Error("Function not implemented.");
|
|
79
|
+
}
|
|
80
|
+
})
|
|
81
|
+
]
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/components/SearchResultsStates/SearchResultsLoadingGrid.tsx
|
|
87
|
+
const SearchResultsLoadingGrid = ({ productGridVariant, productGridClasses, sparkleIconColor = "var(--spiffy-colors-accent-primary)" }) => {
|
|
88
|
+
const { productCardLayoutVariant, productCardImageAspectRatio } = require_ProductGrid.productGridVariantClasses[productGridVariant];
|
|
89
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
90
|
+
className: "spiffy-tw-justify-center spiffy-tw-w-full spiffy-tw-overflow-hidden",
|
|
91
|
+
initial: { opacity: 0 },
|
|
92
|
+
animate: { opacity: 1 },
|
|
93
|
+
exit: { opacity: 0 },
|
|
94
|
+
transition: { duration: .2 },
|
|
95
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
96
|
+
className: "spiffy-tw-mt-6 spiffy-tw-w-full",
|
|
97
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
98
|
+
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-justify-between spiffy-tw-mb-4",
|
|
99
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
100
|
+
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-gap-2 spiffy-tw-ml-[16px] md:spiffy-tw-ml-[80px]",
|
|
101
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
102
|
+
className: "spiffy-tw-width-[24px]",
|
|
103
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SparkleAnimation.SparkleAnimation, {
|
|
104
|
+
color: sparkleIconColor,
|
|
105
|
+
animate: true
|
|
106
|
+
})
|
|
107
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
|
|
108
|
+
variant: "body2",
|
|
109
|
+
children: "Finding the best options for you..."
|
|
110
|
+
})]
|
|
111
|
+
})
|
|
112
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
113
|
+
className: productGridClasses,
|
|
114
|
+
children: Array.from({ length: 8 }).map((_, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProductCardSkeleton.ProductCardSkeleton, {
|
|
115
|
+
layoutVariant: productCardLayoutVariant,
|
|
116
|
+
aspectRatio: productCardImageAspectRatio,
|
|
117
|
+
growWithContainer: true
|
|
118
|
+
}, index))
|
|
119
|
+
})]
|
|
120
|
+
})
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
//#endregion
|
|
125
|
+
exports.NoSearchResultsFound = NoSearchResultsFound;
|
|
126
|
+
exports.SearchResultsGrid = SearchResultsGrid;
|
|
127
|
+
exports.SearchResultsLoadingGrid = SearchResultsLoadingGrid;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { SelectedFilterOption } from "../types-C-Jrlw5Z.cjs";
|
|
2
|
+
import { ProductGridVariant, SearchResponseProduct } from "../types-Dvgr3ZeV.cjs";
|
|
3
|
+
import { SearchFilterSidebarVariant } from "../types-5luH4G-3.cjs";
|
|
4
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/SearchResultsStates/NoSearchResultsFound.d.ts
|
|
7
|
+
interface NoSearchResultsFoundProps {
|
|
8
|
+
containerPaddingClasses: string;
|
|
9
|
+
includeBottomMargin?: boolean;
|
|
10
|
+
noResultsFoundText?: string;
|
|
11
|
+
sparkleIconColor?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const NoSearchResultsFound: ({
|
|
14
|
+
containerPaddingClasses,
|
|
15
|
+
includeBottomMargin,
|
|
16
|
+
noResultsFoundText,
|
|
17
|
+
sparkleIconColor
|
|
18
|
+
}: NoSearchResultsFoundProps) => react_jsx_runtime3.JSX.Element;
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/components/SearchResultsStates/SearchResultsGrid.d.ts
|
|
21
|
+
interface SearchResultsGridProps {
|
|
22
|
+
productList: SearchResponseProduct[];
|
|
23
|
+
availableDynamicFilters: {
|
|
24
|
+
name: string;
|
|
25
|
+
displayName: string;
|
|
26
|
+
}[];
|
|
27
|
+
searchFilterSidebarVariant: SearchFilterSidebarVariant;
|
|
28
|
+
productGridVariant: ProductGridVariant;
|
|
29
|
+
selectedFilterOptions: SelectedFilterOption[];
|
|
30
|
+
searchResponseId: string;
|
|
31
|
+
containerXPaddingClasses: string;
|
|
32
|
+
productGridClasses: string;
|
|
33
|
+
onRemoveFilter: (filter: SelectedFilterOption) => void;
|
|
34
|
+
onToggleDynamicFilter: ({
|
|
35
|
+
filter,
|
|
36
|
+
dynamicFilterDisplayName
|
|
37
|
+
}: {
|
|
38
|
+
filter: string;
|
|
39
|
+
dynamicFilterDisplayName: string;
|
|
40
|
+
}) => void;
|
|
41
|
+
}
|
|
42
|
+
declare const SearchResultsGrid: ({
|
|
43
|
+
productList,
|
|
44
|
+
availableDynamicFilters,
|
|
45
|
+
searchFilterSidebarVariant,
|
|
46
|
+
productGridVariant,
|
|
47
|
+
selectedFilterOptions,
|
|
48
|
+
searchResponseId,
|
|
49
|
+
containerXPaddingClasses,
|
|
50
|
+
productGridClasses,
|
|
51
|
+
onRemoveFilter,
|
|
52
|
+
onToggleDynamicFilter
|
|
53
|
+
}: SearchResultsGridProps) => react_jsx_runtime3.JSX.Element;
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/components/SearchResultsStates/SearchResultsLoadingGrid.d.ts
|
|
56
|
+
declare const SearchResultsLoadingGrid: ({
|
|
57
|
+
productGridVariant,
|
|
58
|
+
productGridClasses,
|
|
59
|
+
sparkleIconColor
|
|
60
|
+
}: {
|
|
61
|
+
productGridVariant: ProductGridVariant;
|
|
62
|
+
productGridClasses: string;
|
|
63
|
+
sparkleIconColor?: string;
|
|
64
|
+
}) => react_jsx_runtime3.JSX.Element;
|
|
65
|
+
//#endregion
|
|
66
|
+
export { NoSearchResultsFound, SearchResultsGrid, SearchResultsLoadingGrid };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { SelectedFilterOption } from "../types-B19i3fxM.js";
|
|
2
|
+
import { ProductGridVariant, SearchResponseProduct } from "../types-B7hf-Lif.js";
|
|
3
|
+
import { SearchFilterSidebarVariant } from "../types-BIPqyTOJ.js";
|
|
4
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/SearchResultsStates/NoSearchResultsFound.d.ts
|
|
7
|
+
interface NoSearchResultsFoundProps {
|
|
8
|
+
containerPaddingClasses: string;
|
|
9
|
+
includeBottomMargin?: boolean;
|
|
10
|
+
noResultsFoundText?: string;
|
|
11
|
+
sparkleIconColor?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const NoSearchResultsFound: ({
|
|
14
|
+
containerPaddingClasses,
|
|
15
|
+
includeBottomMargin,
|
|
16
|
+
noResultsFoundText,
|
|
17
|
+
sparkleIconColor
|
|
18
|
+
}: NoSearchResultsFoundProps) => react_jsx_runtime10.JSX.Element;
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/components/SearchResultsStates/SearchResultsGrid.d.ts
|
|
21
|
+
interface SearchResultsGridProps {
|
|
22
|
+
productList: SearchResponseProduct[];
|
|
23
|
+
availableDynamicFilters: {
|
|
24
|
+
name: string;
|
|
25
|
+
displayName: string;
|
|
26
|
+
}[];
|
|
27
|
+
searchFilterSidebarVariant: SearchFilterSidebarVariant;
|
|
28
|
+
productGridVariant: ProductGridVariant;
|
|
29
|
+
selectedFilterOptions: SelectedFilterOption[];
|
|
30
|
+
searchResponseId: string;
|
|
31
|
+
containerXPaddingClasses: string;
|
|
32
|
+
productGridClasses: string;
|
|
33
|
+
onRemoveFilter: (filter: SelectedFilterOption) => void;
|
|
34
|
+
onToggleDynamicFilter: ({
|
|
35
|
+
filter,
|
|
36
|
+
dynamicFilterDisplayName
|
|
37
|
+
}: {
|
|
38
|
+
filter: string;
|
|
39
|
+
dynamicFilterDisplayName: string;
|
|
40
|
+
}) => void;
|
|
41
|
+
}
|
|
42
|
+
declare const SearchResultsGrid: ({
|
|
43
|
+
productList,
|
|
44
|
+
availableDynamicFilters,
|
|
45
|
+
searchFilterSidebarVariant,
|
|
46
|
+
productGridVariant,
|
|
47
|
+
selectedFilterOptions,
|
|
48
|
+
searchResponseId,
|
|
49
|
+
containerXPaddingClasses,
|
|
50
|
+
productGridClasses,
|
|
51
|
+
onRemoveFilter,
|
|
52
|
+
onToggleDynamicFilter
|
|
53
|
+
}: SearchResultsGridProps) => react_jsx_runtime10.JSX.Element;
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/components/SearchResultsStates/SearchResultsLoadingGrid.d.ts
|
|
56
|
+
declare const SearchResultsLoadingGrid: ({
|
|
57
|
+
productGridVariant,
|
|
58
|
+
productGridClasses,
|
|
59
|
+
sparkleIconColor
|
|
60
|
+
}: {
|
|
61
|
+
productGridVariant: ProductGridVariant;
|
|
62
|
+
productGridClasses: string;
|
|
63
|
+
sparkleIconColor?: string;
|
|
64
|
+
}) => react_jsx_runtime10.JSX.Element;
|
|
65
|
+
//#endregion
|
|
66
|
+
export { NoSearchResultsFound, SearchResultsGrid, SearchResultsLoadingGrid };
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import "../textVariantClasses-CnjwO2Fv.js";
|
|
2
|
+
import { Text } from "../Text-BMg3d10t.js";
|
|
3
|
+
import { AppliedFiltersScrollbar, DynamicFiltersScrollbar } from "../DynamicFiltersScrollbar-t_JASmYC.js";
|
|
4
|
+
import "../Headline-COAnonc2.js";
|
|
5
|
+
import "../ImageWithFallback-DtUrq_bk.js";
|
|
6
|
+
import "../ProductCard-aJbQz6Q7.js";
|
|
7
|
+
import "../Spinner-D9kkaM9d.js";
|
|
8
|
+
import { ProductCardSkeleton } from "../ProductCardSkeleton-B6YetUCT.js";
|
|
9
|
+
import "../colorsConfig-CKiMYHO_.js";
|
|
10
|
+
import { ProductGrid, productGridVariantClasses } from "../ProductGrid-NOCayW9O.js";
|
|
11
|
+
import { searchFilterSidebarVariantClasses } from "../searchFilterSidebarVariants-C_UTEIpZ.js";
|
|
12
|
+
import { SparkleAnimation } from "../SparkleAnimation-DfMCtvAQ.js";
|
|
13
|
+
import classNames from "classnames";
|
|
14
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
+
import { motion } from "framer-motion";
|
|
16
|
+
import Sparkles from "@envive-ai/react-icons/src/Sparkles";
|
|
17
|
+
|
|
18
|
+
//#region src/components/SearchResultsStates/NoSearchResultsFound.tsx
|
|
19
|
+
const NoSearchResultsFound = ({ containerPaddingClasses, includeBottomMargin = false, noResultsFoundText, sparkleIconColor = "var(--spiffy-colors-accent-primary)" }) => {
|
|
20
|
+
const containerClasses = classNames(containerPaddingClasses, includeBottomMargin ? "spiffy-tw-mb-[100vh]" : "", "spiffy-tw-mt-6");
|
|
21
|
+
return /* @__PURE__ */ jsx("div", {
|
|
22
|
+
className: containerClasses,
|
|
23
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
24
|
+
className: "spiffy-tw-flex spiffy-tw-items-start spiffy-tw-gap-2",
|
|
25
|
+
children: [/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Sparkles, {
|
|
26
|
+
className: "spiffy-tw-w-[24px] spiffy-tw-h-[24px]",
|
|
27
|
+
style: { color: sparkleIconColor }
|
|
28
|
+
}) }), /* @__PURE__ */ jsx(Text, {
|
|
29
|
+
variant: "body2",
|
|
30
|
+
children: noResultsFoundText || "I’m sorry, I wasn’t able to find an exact match. Try changing your filters or adjusting your search query."
|
|
31
|
+
})]
|
|
32
|
+
})
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/components/SearchResultsStates/SearchResultsGrid.tsx
|
|
38
|
+
const SearchResultsGrid = ({ productList, availableDynamicFilters, searchFilterSidebarVariant, productGridVariant, selectedFilterOptions, searchResponseId, containerXPaddingClasses, productGridClasses, onRemoveFilter, onToggleDynamicFilter }) => {
|
|
39
|
+
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);
|
|
40
|
+
const filterBarClasses = classNames(sharedFilterBarClasses, "spiffy-tw-mt-[24px]");
|
|
41
|
+
const appliedFilterBarClasses = classNames(sharedFilterBarClasses, "spiffy-tw-mb-[32px]", "spiffy-tw-mt-[8px]");
|
|
42
|
+
const { filterDefaultClasses, filterHoverClasses, appliedFilterBackgroundClasses } = searchFilterSidebarVariantClasses[searchFilterSidebarVariant];
|
|
43
|
+
return /* @__PURE__ */ jsxs(motion.div, {
|
|
44
|
+
className: "spiffy-tw-justify-center spiffy-tw-w-full spiffy-tw-overflow-hidden",
|
|
45
|
+
initial: { opacity: 0 },
|
|
46
|
+
animate: { opacity: 1 },
|
|
47
|
+
exit: { opacity: 0 },
|
|
48
|
+
transition: { duration: .2 },
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ jsx(AppliedFiltersScrollbar, {
|
|
51
|
+
selectedFilterOptions,
|
|
52
|
+
filterBarClassNames: appliedFilterBarClasses,
|
|
53
|
+
filterDefaultClasses,
|
|
54
|
+
filterHoverClasses,
|
|
55
|
+
appliedFilterBackgroundClasses,
|
|
56
|
+
onRemoveFilter
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ jsx(DynamicFiltersScrollbar, {
|
|
59
|
+
availableDynamicFilters,
|
|
60
|
+
filterBarClassNames: filterBarClasses,
|
|
61
|
+
filterDefaultClasses,
|
|
62
|
+
filterHoverClasses,
|
|
63
|
+
onToggleDynamicFilter
|
|
64
|
+
}),
|
|
65
|
+
/* @__PURE__ */ jsx(ProductGrid, {
|
|
66
|
+
productList,
|
|
67
|
+
productGridVariant,
|
|
68
|
+
productGridClasses,
|
|
69
|
+
searchResponseId,
|
|
70
|
+
merchantShortName: "",
|
|
71
|
+
handleClick: function(clickedUrl) {
|
|
72
|
+
console.log(clickedUrl);
|
|
73
|
+
throw new Error("Function not implemented.");
|
|
74
|
+
}
|
|
75
|
+
})
|
|
76
|
+
]
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/components/SearchResultsStates/SearchResultsLoadingGrid.tsx
|
|
82
|
+
const SearchResultsLoadingGrid = ({ productGridVariant, productGridClasses, sparkleIconColor = "var(--spiffy-colors-accent-primary)" }) => {
|
|
83
|
+
const { productCardLayoutVariant, productCardImageAspectRatio } = productGridVariantClasses[productGridVariant];
|
|
84
|
+
return /* @__PURE__ */ jsx(motion.div, {
|
|
85
|
+
className: "spiffy-tw-justify-center spiffy-tw-w-full spiffy-tw-overflow-hidden",
|
|
86
|
+
initial: { opacity: 0 },
|
|
87
|
+
animate: { opacity: 1 },
|
|
88
|
+
exit: { opacity: 0 },
|
|
89
|
+
transition: { duration: .2 },
|
|
90
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
91
|
+
className: "spiffy-tw-mt-6 spiffy-tw-w-full",
|
|
92
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
93
|
+
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-justify-between spiffy-tw-mb-4",
|
|
94
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
95
|
+
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-gap-2 spiffy-tw-ml-[16px] md:spiffy-tw-ml-[80px]",
|
|
96
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
97
|
+
className: "spiffy-tw-width-[24px]",
|
|
98
|
+
children: /* @__PURE__ */ jsx(SparkleAnimation, {
|
|
99
|
+
color: sparkleIconColor,
|
|
100
|
+
animate: true
|
|
101
|
+
})
|
|
102
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
103
|
+
variant: "body2",
|
|
104
|
+
children: "Finding the best options for you..."
|
|
105
|
+
})]
|
|
106
|
+
})
|
|
107
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
108
|
+
className: productGridClasses,
|
|
109
|
+
children: Array.from({ length: 8 }).map((_, index) => /* @__PURE__ */ jsx(ProductCardSkeleton, {
|
|
110
|
+
layoutVariant: productCardLayoutVariant,
|
|
111
|
+
aspectRatio: productCardImageAspectRatio,
|
|
112
|
+
growWithContainer: true
|
|
113
|
+
}, index))
|
|
114
|
+
})]
|
|
115
|
+
})
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
//#endregion
|
|
120
|
+
export { NoSearchResultsFound, SearchResultsGrid, SearchResultsLoadingGrid };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/SparkleAnimation/SparkleAnimation.d.ts
|
|
4
|
+
interface SparkleAnimationProps {
|
|
5
|
+
color: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
animate?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const SparkleAnimation: ({
|
|
10
|
+
color,
|
|
11
|
+
className,
|
|
12
|
+
animate
|
|
13
|
+
}: SparkleAnimationProps) => react_jsx_runtime8.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/SparkleAnimation/types.d.ts
|
|
16
|
+
declare enum SparkleAnimationOverride {
|
|
17
|
+
CONTAINER = "spiffy-sparkle-animation-container",
|
|
18
|
+
STAR_ONE_CONTAINER = "spiffy-sparkle-animation-star-one-container",
|
|
19
|
+
STAR_TWO_CONTAINER = "spiffy-sparkle-animation-star-two-container",
|
|
20
|
+
STAR_THREE_CONTAINER = "spiffy-sparkle-animation-star-three-container",
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { SparkleAnimation, SparkleAnimationOverride };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/SparkleAnimation/SparkleAnimation.d.ts
|
|
4
|
+
interface SparkleAnimationProps {
|
|
5
|
+
color: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
animate?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const SparkleAnimation: ({
|
|
10
|
+
color,
|
|
11
|
+
className,
|
|
12
|
+
animate
|
|
13
|
+
}: SparkleAnimationProps) => react_jsx_runtime15.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/SparkleAnimation/types.d.ts
|
|
16
|
+
declare enum SparkleAnimationOverride {
|
|
17
|
+
CONTAINER = "spiffy-sparkle-animation-container",
|
|
18
|
+
STAR_ONE_CONTAINER = "spiffy-sparkle-animation-star-one-container",
|
|
19
|
+
STAR_TWO_CONTAINER = "spiffy-sparkle-animation-star-two-container",
|
|
20
|
+
STAR_THREE_CONTAINER = "spiffy-sparkle-animation-star-three-container",
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { SparkleAnimation, SparkleAnimationOverride };
|
|
@@ -4,7 +4,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
import { motion } from "framer-motion";
|
|
5
5
|
import FourPointStar from "@envive-ai/react-icons/src/FourPointStar";
|
|
6
6
|
|
|
7
|
-
//#region src/components/
|
|
7
|
+
//#region src/components/SparkleAnimation/types.ts
|
|
8
8
|
let SparkleAnimationOverride = /* @__PURE__ */ function(SparkleAnimationOverride$1) {
|
|
9
9
|
SparkleAnimationOverride$1["CONTAINER"] = "spiffy-sparkle-animation-container";
|
|
10
10
|
SparkleAnimationOverride$1["STAR_ONE_CONTAINER"] = "spiffy-sparkle-animation-star-one-container";
|
|
@@ -14,7 +14,7 @@ let SparkleAnimationOverride = /* @__PURE__ */ function(SparkleAnimationOverride
|
|
|
14
14
|
}({});
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
|
-
//#region src/components/
|
|
17
|
+
//#region src/components/SparkleAnimation/SparkleAnimation.tsx
|
|
18
18
|
const ANIMATION_CYCLE_TIME = 1e3;
|
|
19
19
|
const STAR_DELAY_OFFSET = 250;
|
|
20
20
|
const SparkleAnimation = ({ color, className, animate = true }) => {
|
|
@@ -10,7 +10,7 @@ framer_motion = require_chunk.__toESM(framer_motion);
|
|
|
10
10
|
let __envive_ai_react_icons_src_FourPointStar = require("@envive-ai/react-icons/src/FourPointStar");
|
|
11
11
|
__envive_ai_react_icons_src_FourPointStar = require_chunk.__toESM(__envive_ai_react_icons_src_FourPointStar);
|
|
12
12
|
|
|
13
|
-
//#region src/components/
|
|
13
|
+
//#region src/components/SparkleAnimation/types.ts
|
|
14
14
|
let SparkleAnimationOverride = /* @__PURE__ */ function(SparkleAnimationOverride$1) {
|
|
15
15
|
SparkleAnimationOverride$1["CONTAINER"] = "spiffy-sparkle-animation-container";
|
|
16
16
|
SparkleAnimationOverride$1["STAR_ONE_CONTAINER"] = "spiffy-sparkle-animation-star-one-container";
|
|
@@ -20,7 +20,7 @@ let SparkleAnimationOverride = /* @__PURE__ */ function(SparkleAnimationOverride
|
|
|
20
20
|
}({});
|
|
21
21
|
|
|
22
22
|
//#endregion
|
|
23
|
-
//#region src/components/
|
|
23
|
+
//#region src/components/SparkleAnimation/SparkleAnimation.tsx
|
|
24
24
|
const ANIMATION_CYCLE_TIME = 1e3;
|
|
25
25
|
const STAR_DELAY_OFFSET = 250;
|
|
26
26
|
const SparkleAnimation = ({ color, className, animate = true }) => {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/Spinner/Spinner.d.ts
|
|
4
|
+
type SpinnerProps = {
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const Spinner: ({
|
|
8
|
+
className
|
|
9
|
+
}: SpinnerProps) => react_jsx_runtime16.JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { Spinner };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/Spinner/Spinner.d.ts
|
|
4
|
+
type SpinnerProps = {
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const Spinner: ({
|
|
8
|
+
className
|
|
9
|
+
}: SpinnerProps) => react_jsx_runtime0.JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { Spinner };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import classNames from "classnames";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
|
|
4
|
-
//#region src/components/
|
|
4
|
+
//#region src/components/Spinner/Spinner.tsx
|
|
5
5
|
const Spinner = ({ className }) => {
|
|
6
6
|
const svgClassnames = classNames({
|
|
7
7
|
"spiffy-tw-w-4": true,
|
|
@@ -4,7 +4,7 @@ classnames = require_chunk.__toESM(classnames);
|
|
|
4
4
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
5
|
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
6
6
|
|
|
7
|
-
//#region src/components/
|
|
7
|
+
//#region src/components/Spinner/Spinner.tsx
|
|
8
8
|
const Spinner = ({ className }) => {
|
|
9
9
|
const svgClassnames = (0, classnames.default)({
|
|
10
10
|
"spiffy-tw-w-4": true,
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
const require_chunk = require('
|
|
2
|
-
const require_ButtonBase = require('
|
|
1
|
+
const require_chunk = require('../chunk-CUT6urMc.cjs');
|
|
2
|
+
const require_ButtonBase = require('../ButtonBase-Dlh3bpR3.cjs');
|
|
3
|
+
require('../textVariantClasses-BnV4wXaw.cjs');
|
|
4
|
+
require('../Text-CgOYTs8D.cjs');
|
|
3
5
|
let classnames = require("classnames");
|
|
4
6
|
classnames = require_chunk.__toESM(classnames);
|
|
5
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
8
|
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
7
|
-
let __envive_ai_react_icons_src_FourPointStar = require("@envive-ai/react-icons/src/FourPointStar");
|
|
8
|
-
__envive_ai_react_icons_src_FourPointStar = require_chunk.__toESM(__envive_ai_react_icons_src_FourPointStar);
|
|
9
9
|
let __envive_ai_react_icons_src_OutlinedStar = require("@envive-ai/react-icons/src/OutlinedStar");
|
|
10
10
|
__envive_ai_react_icons_src_OutlinedStar = require_chunk.__toESM(__envive_ai_react_icons_src_OutlinedStar);
|
|
11
|
+
let __envive_ai_react_icons_src_FourPointStar = require("@envive-ai/react-icons/src/FourPointStar");
|
|
12
|
+
__envive_ai_react_icons_src_FourPointStar = require_chunk.__toESM(__envive_ai_react_icons_src_FourPointStar);
|
|
11
13
|
|
|
12
|
-
//#region src/components/
|
|
14
|
+
//#region src/components/SuggestionButton/SuggestionButton.tsx
|
|
13
15
|
const SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = "spiffy-suggestion-button-question-class";
|
|
14
16
|
const SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS = "spiffy-suggestion-button-answer-class";
|
|
15
17
|
const SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS = "spiffy-suggestion-button-text-class";
|
|
@@ -180,27 +182,7 @@ const SuggestionButton = ({ variant, hoverVariant, isDisabled, content, boldText
|
|
|
180
182
|
};
|
|
181
183
|
|
|
182
184
|
//#endregion
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
Object.defineProperty(exports, 'SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS', {
|
|
190
|
-
enumerable: true,
|
|
191
|
-
get: function () {
|
|
192
|
-
return SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS;
|
|
193
|
-
}
|
|
194
|
-
});
|
|
195
|
-
Object.defineProperty(exports, 'SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS', {
|
|
196
|
-
enumerable: true,
|
|
197
|
-
get: function () {
|
|
198
|
-
return SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS;
|
|
199
|
-
}
|
|
200
|
-
});
|
|
201
|
-
Object.defineProperty(exports, 'SuggestionButton', {
|
|
202
|
-
enumerable: true,
|
|
203
|
-
get: function () {
|
|
204
|
-
return SuggestionButton;
|
|
205
|
-
}
|
|
206
|
-
});
|
|
185
|
+
exports.SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS = SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS;
|
|
186
|
+
exports.SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS;
|
|
187
|
+
exports.SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS = SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS;
|
|
188
|
+
exports.SuggestionButton = SuggestionButton;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { TestProps } from "
|
|
2
|
-
import * as
|
|
1
|
+
import { TestProps } from "../types-BQYpWDJ4.cjs";
|
|
2
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
|
-
//#region src/components/
|
|
4
|
+
//#region src/components/SuggestionButton/types.d.ts
|
|
5
5
|
type SuggestionButtonVariant = 'outlined' | 'outlinedLight' | 'primary' | 'secondary' | 'tertiary' | 'dark' | 'darkAccent' | 'darkPrimary' | 'secondaryDark' | 'secondaryAccent' | 'transparent' | 'transparentDark' | 'lightDark';
|
|
6
6
|
//#endregion
|
|
7
|
-
//#region src/components/
|
|
7
|
+
//#region src/components/SuggestionButton/SuggestionButton.d.ts
|
|
8
8
|
declare const SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = "spiffy-suggestion-button-question-class";
|
|
9
9
|
declare const SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS = "spiffy-suggestion-button-answer-class";
|
|
10
10
|
declare const SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS = "spiffy-suggestion-button-text-class";
|
|
@@ -30,6 +30,6 @@ declare const SuggestionButton: ({
|
|
|
30
30
|
dataAttributes,
|
|
31
31
|
dataTestId,
|
|
32
32
|
onClick
|
|
33
|
-
}: SuggestionButtonProps) =>
|
|
33
|
+
}: SuggestionButtonProps) => react_jsx_runtime11.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS, SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS, SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS, SuggestionButton, SuggestionButtonVariant };
|