@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
|
@@ -21,14 +21,6 @@ interface SearchResponseProduct {
|
|
|
21
21
|
[key: string]: unknown;
|
|
22
22
|
}
|
|
23
23
|
//#endregion
|
|
24
|
-
//#region src/util/primitive.d.ts
|
|
25
|
-
/**
|
|
26
|
-
* Matches any [primitive value](https://developer.mozilla.org/en-US/docs/Glossary/Primitive).
|
|
27
|
-
*
|
|
28
|
-
* @category Type
|
|
29
|
-
*/
|
|
30
|
-
type Primitive = null | undefined | string | number | boolean | symbol | bigint;
|
|
31
|
-
//#endregion
|
|
32
24
|
//#region src/util/trim.d.ts
|
|
33
25
|
/**
|
|
34
26
|
* Remove spaces from the left side.
|
|
@@ -54,14 +46,6 @@ type TrimRight<V extends string> = V extends `${infer R}${Whitespace}` ? TrimRig
|
|
|
54
46
|
type Trim<V extends string> = TrimLeft<TrimRight<V>>;
|
|
55
47
|
//#endregion
|
|
56
48
|
//#region src/util/internal.d.ts
|
|
57
|
-
/**
|
|
58
|
-
* Matches any primitive, `void`, `Date`, or `RegExp` value.
|
|
59
|
-
*/
|
|
60
|
-
type BuiltIns = Primitive | void | Date | RegExp;
|
|
61
|
-
/**
|
|
62
|
-
* Matches non-recursive types.
|
|
63
|
-
*/
|
|
64
|
-
type NonRecursiveType = BuiltIns | Function | (new (...arguments_: any[]) => unknown);
|
|
65
49
|
/**
|
|
66
50
|
* Returns a boolean for whether the string is numeric.
|
|
67
51
|
*
|
|
@@ -78,7 +62,6 @@ type IsLowerCase<T extends string> = T extends Lowercase<T> ? true : false;
|
|
|
78
62
|
type IsUpperCase<T extends string> = T extends Uppercase<T> ? true : false;
|
|
79
63
|
type WordSeparators = '-' | '_' | Whitespace;
|
|
80
64
|
type Whitespace = '\u{9}' | '\u{A}' | '\u{B}' | '\u{C}' | '\u{D}' | '\u{20}' | '\u{85}' | '\u{A0}' | '\u{1680}' | '\u{2000}' | '\u{2001}' | '\u{2002}' | '\u{2003}' | '\u{2004}' | '\u{2005}' | '\u{2006}' | '\u{2007}' | '\u{2008}' | '\u{2009}' | '\u{200A}' | '\u{2028}' | '\u{2029}' | '\u{202F}' | '\u{205F}' | '\u{3000}' | '\u{FEFF}';
|
|
81
|
-
type UpperCaseCharacters = 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M' | 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' | 'T' | 'U' | 'V' | 'W' | 'X' | 'Y' | 'Z';
|
|
82
65
|
//#endregion
|
|
83
66
|
//#region src/util/splitWords.d.ts
|
|
84
67
|
type SkipEmptyWord<Word extends string> = Word extends '' ? [] : [Word];
|
|
@@ -247,7 +230,7 @@ type CamelCasedPropertiesDeep<Value, Options extends CamelCaseOptions = {
|
|
|
247
230
|
}> = Value extends Function ? Value : Value extends UnknownArray ? CamelCasedPropertiesArrayDeep<Value> : Value extends Set<infer U> ? Set<CamelCasedPropertiesDeep<U, Options>> : { [K in keyof Value as CamelCase<K, Options>]: CamelCasedPropertiesDeep<Value[K], Options> };
|
|
248
231
|
type CamelCasedPropertiesArrayDeep<Value extends UnknownArray> = Value extends [] ? [] : Value extends [infer U, ...infer V] ? [CamelCasedPropertiesDeep<U>, ...CamelCasedPropertiesDeep<V>] : Value extends readonly [infer U, ...infer V] ? readonly [CamelCasedPropertiesDeep<U>, ...CamelCasedPropertiesDeep<V>] : Value extends readonly [...infer U, infer V] ? [...CamelCasedPropertiesDeep<U>, CamelCasedPropertiesDeep<V>] : Value extends readonly [...infer U, infer V] ? readonly [...CamelCasedPropertiesDeep<U>, CamelCasedPropertiesDeep<V>] : Value extends Array<infer U> ? Array<CamelCasedPropertiesDeep<U>> : Value extends ReadonlyArray<infer U> ? ReadonlyArray<CamelCasedPropertiesDeep<U>> : never;
|
|
249
232
|
//#endregion
|
|
250
|
-
//#region src/components/
|
|
233
|
+
//#region src/components/ProductCard/types.d.ts
|
|
251
234
|
declare enum ProductCardSkeletonOverrides {
|
|
252
235
|
PRODUCT_CARD_SKELETON_CONTAINER = "spiffy-product-card-skeleton-container",
|
|
253
236
|
PRODUCT_CARD_SKELETON = "spiffy-product-card-skeleton",
|
|
@@ -286,4 +269,4 @@ interface ProductGridProps {
|
|
|
286
269
|
cardsGrowWithContainer?: boolean;
|
|
287
270
|
}
|
|
288
271
|
//#endregion
|
|
289
|
-
export { AnimatedProductCardOverrides,
|
|
272
|
+
export { AnimatedProductCardOverrides, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, SearchResponseProduct, SearchResponseProductAttributes };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region src/components/
|
|
1
|
+
//#region src/components/SearchResultsFilterSidebar/types.d.ts
|
|
2
2
|
type SearchFilterSidebarVariant = 'darkButton' | 'lightButton';
|
|
3
3
|
type CloseIconVariant = 'light' | 'tertiary' | 'dark';
|
|
4
4
|
//#endregion
|
|
@@ -21,14 +21,6 @@ interface SearchResponseProduct {
|
|
|
21
21
|
[key: string]: unknown;
|
|
22
22
|
}
|
|
23
23
|
//#endregion
|
|
24
|
-
//#region src/util/primitive.d.ts
|
|
25
|
-
/**
|
|
26
|
-
* Matches any [primitive value](https://developer.mozilla.org/en-US/docs/Glossary/Primitive).
|
|
27
|
-
*
|
|
28
|
-
* @category Type
|
|
29
|
-
*/
|
|
30
|
-
type Primitive = null | undefined | string | number | boolean | symbol | bigint;
|
|
31
|
-
//#endregion
|
|
32
24
|
//#region src/util/trim.d.ts
|
|
33
25
|
/**
|
|
34
26
|
* Remove spaces from the left side.
|
|
@@ -54,14 +46,6 @@ type TrimRight<V extends string> = V extends `${infer R}${Whitespace}` ? TrimRig
|
|
|
54
46
|
type Trim<V extends string> = TrimLeft<TrimRight<V>>;
|
|
55
47
|
//#endregion
|
|
56
48
|
//#region src/util/internal.d.ts
|
|
57
|
-
/**
|
|
58
|
-
* Matches any primitive, `void`, `Date`, or `RegExp` value.
|
|
59
|
-
*/
|
|
60
|
-
type BuiltIns = Primitive | void | Date | RegExp;
|
|
61
|
-
/**
|
|
62
|
-
* Matches non-recursive types.
|
|
63
|
-
*/
|
|
64
|
-
type NonRecursiveType = BuiltIns | Function | (new (...arguments_: any[]) => unknown);
|
|
65
49
|
/**
|
|
66
50
|
* Returns a boolean for whether the string is numeric.
|
|
67
51
|
*
|
|
@@ -78,7 +62,6 @@ type IsLowerCase<T extends string> = T extends Lowercase<T> ? true : false;
|
|
|
78
62
|
type IsUpperCase<T extends string> = T extends Uppercase<T> ? true : false;
|
|
79
63
|
type WordSeparators = '-' | '_' | Whitespace;
|
|
80
64
|
type Whitespace = '\u{9}' | '\u{A}' | '\u{B}' | '\u{C}' | '\u{D}' | '\u{20}' | '\u{85}' | '\u{A0}' | '\u{1680}' | '\u{2000}' | '\u{2001}' | '\u{2002}' | '\u{2003}' | '\u{2004}' | '\u{2005}' | '\u{2006}' | '\u{2007}' | '\u{2008}' | '\u{2009}' | '\u{200A}' | '\u{2028}' | '\u{2029}' | '\u{202F}' | '\u{205F}' | '\u{3000}' | '\u{FEFF}';
|
|
81
|
-
type UpperCaseCharacters = 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M' | 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' | 'T' | 'U' | 'V' | 'W' | 'X' | 'Y' | 'Z';
|
|
82
65
|
//#endregion
|
|
83
66
|
//#region src/util/splitWords.d.ts
|
|
84
67
|
type SkipEmptyWord<Word extends string> = Word extends '' ? [] : [Word];
|
|
@@ -247,7 +230,7 @@ type CamelCasedPropertiesDeep<Value, Options extends CamelCaseOptions = {
|
|
|
247
230
|
}> = Value extends Function ? Value : Value extends UnknownArray ? CamelCasedPropertiesArrayDeep<Value> : Value extends Set<infer U> ? Set<CamelCasedPropertiesDeep<U, Options>> : { [K in keyof Value as CamelCase<K, Options>]: CamelCasedPropertiesDeep<Value[K], Options> };
|
|
248
231
|
type CamelCasedPropertiesArrayDeep<Value extends UnknownArray> = Value extends [] ? [] : Value extends [infer U, ...infer V] ? [CamelCasedPropertiesDeep<U>, ...CamelCasedPropertiesDeep<V>] : Value extends readonly [infer U, ...infer V] ? readonly [CamelCasedPropertiesDeep<U>, ...CamelCasedPropertiesDeep<V>] : Value extends readonly [...infer U, infer V] ? [...CamelCasedPropertiesDeep<U>, CamelCasedPropertiesDeep<V>] : Value extends readonly [...infer U, infer V] ? readonly [...CamelCasedPropertiesDeep<U>, CamelCasedPropertiesDeep<V>] : Value extends Array<infer U> ? Array<CamelCasedPropertiesDeep<U>> : Value extends ReadonlyArray<infer U> ? ReadonlyArray<CamelCasedPropertiesDeep<U>> : never;
|
|
249
232
|
//#endregion
|
|
250
|
-
//#region src/components/
|
|
233
|
+
//#region src/components/ProductCard/types.d.ts
|
|
251
234
|
declare enum ProductCardSkeletonOverrides {
|
|
252
235
|
PRODUCT_CARD_SKELETON_CONTAINER = "spiffy-product-card-skeleton-container",
|
|
253
236
|
PRODUCT_CARD_SKELETON = "spiffy-product-card-skeleton",
|
|
@@ -286,4 +269,4 @@ interface ProductGridProps {
|
|
|
286
269
|
cardsGrowWithContainer?: boolean;
|
|
287
270
|
}
|
|
288
271
|
//#endregion
|
|
289
|
-
export { AnimatedProductCardOverrides,
|
|
272
|
+
export { AnimatedProductCardOverrides, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, SearchResponseProduct, SearchResponseProductAttributes };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envive-ai/react-toolkit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "React component library for Envive services.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"author": "Envive AI",
|
|
12
12
|
"license": "UNLICENSED",
|
|
13
13
|
"type": "module",
|
|
14
|
-
"main": "dist/index.cjs",
|
|
15
|
-
"module": "dist/index.js",
|
|
16
|
-
"types": "dist/index.d.
|
|
14
|
+
"main": "./dist/index.cjs",
|
|
15
|
+
"module": "./dist/index.js",
|
|
16
|
+
"types": "./dist/index.d.cts",
|
|
17
17
|
"files": [
|
|
18
18
|
"dist",
|
|
19
19
|
"src",
|
|
@@ -24,21 +24,89 @@
|
|
|
24
24
|
"prepublish": "npm run build"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@envive-ai/react-icons": "0.1.
|
|
27
|
+
"@envive-ai/react-icons": "0.1.1",
|
|
28
28
|
"classnames": "^2.5.1",
|
|
29
29
|
"framer-motion": "^12.23.12",
|
|
30
30
|
"react-icons": "^5.0.1",
|
|
31
|
-
"react-indiana-drag-scroll": "^3.0.3-alpha"
|
|
32
|
-
"vite-plugin-svgr": "^4.5.0"
|
|
31
|
+
"react-indiana-drag-scroll": "^3.0.3-alpha"
|
|
33
32
|
},
|
|
34
33
|
"peerDependencies": {
|
|
35
34
|
"react": "^18.3.1",
|
|
36
35
|
"react-dom": "^18.3.1"
|
|
37
36
|
},
|
|
38
37
|
"devDependencies": {
|
|
39
|
-
"@svgr/cli": "^8.1.0",
|
|
40
|
-
"copyfiles": "^2.4.1",
|
|
41
38
|
"tsdown": "^0.14.2",
|
|
42
39
|
"typescript": "~5.8.3"
|
|
40
|
+
},
|
|
41
|
+
"exports": {
|
|
42
|
+
"./ButtonBase": {
|
|
43
|
+
"import": "./dist/ButtonBase/index.js",
|
|
44
|
+
"require": "./dist/ButtonBase/index.cjs"
|
|
45
|
+
},
|
|
46
|
+
"./FilterScrollbar": {
|
|
47
|
+
"import": "./dist/FilterScrollbar/index.js",
|
|
48
|
+
"require": "./dist/FilterScrollbar/index.cjs"
|
|
49
|
+
},
|
|
50
|
+
"./Headline": {
|
|
51
|
+
"import": "./dist/Headline/index.js",
|
|
52
|
+
"require": "./dist/Headline/index.cjs"
|
|
53
|
+
},
|
|
54
|
+
"./ImageWithFallback": {
|
|
55
|
+
"import": "./dist/ImageWithFallback/index.js",
|
|
56
|
+
"require": "./dist/ImageWithFallback/index.cjs"
|
|
57
|
+
},
|
|
58
|
+
"./ProductCard": {
|
|
59
|
+
"import": "./dist/ProductCard/index.js",
|
|
60
|
+
"require": "./dist/ProductCard/index.cjs"
|
|
61
|
+
},
|
|
62
|
+
"./ProductGrid": {
|
|
63
|
+
"import": "./dist/ProductGrid/index.js",
|
|
64
|
+
"require": "./dist/ProductGrid/index.cjs"
|
|
65
|
+
},
|
|
66
|
+
"./SearchFilter": {
|
|
67
|
+
"import": "./dist/SearchFilter/index.js",
|
|
68
|
+
"require": "./dist/SearchFilter/index.cjs"
|
|
69
|
+
},
|
|
70
|
+
"./SearchInput": {
|
|
71
|
+
"import": "./dist/SearchInput/index.js",
|
|
72
|
+
"require": "./dist/SearchInput/index.cjs"
|
|
73
|
+
},
|
|
74
|
+
"./SearchInputAutocomplete": {
|
|
75
|
+
"import": "./dist/SearchInputAutocomplete/index.js",
|
|
76
|
+
"require": "./dist/SearchInputAutocomplete/index.cjs"
|
|
77
|
+
},
|
|
78
|
+
"./SearchInputForm": {
|
|
79
|
+
"import": "./dist/SearchInputForm/index.js",
|
|
80
|
+
"require": "./dist/SearchInputForm/index.cjs"
|
|
81
|
+
},
|
|
82
|
+
"./SearchResultsFilterSidebar": {
|
|
83
|
+
"import": "./dist/SearchResultsFilterSidebar/index.js",
|
|
84
|
+
"require": "./dist/SearchResultsFilterSidebar/index.cjs"
|
|
85
|
+
},
|
|
86
|
+
"./SearchResultsStates": {
|
|
87
|
+
"import": "./dist/SearchResultsStates/index.js",
|
|
88
|
+
"require": "./dist/SearchResultsStates/index.cjs"
|
|
89
|
+
},
|
|
90
|
+
"./SparkleAnimation": {
|
|
91
|
+
"import": "./dist/SparkleAnimation/index.js",
|
|
92
|
+
"require": "./dist/SparkleAnimation/index.cjs"
|
|
93
|
+
},
|
|
94
|
+
"./Spinner": {
|
|
95
|
+
"import": "./dist/Spinner/index.js",
|
|
96
|
+
"require": "./dist/Spinner/index.cjs"
|
|
97
|
+
},
|
|
98
|
+
"./SuggestionButton": {
|
|
99
|
+
"import": "./dist/SuggestionButton/index.js",
|
|
100
|
+
"require": "./dist/SuggestionButton/index.cjs"
|
|
101
|
+
},
|
|
102
|
+
"./Text": {
|
|
103
|
+
"import": "./dist/Text/index.js",
|
|
104
|
+
"require": "./dist/Text/index.cjs"
|
|
105
|
+
},
|
|
106
|
+
"./TextInput": {
|
|
107
|
+
"import": "./dist/TextInput/index.js",
|
|
108
|
+
"require": "./dist/TextInput/index.cjs"
|
|
109
|
+
},
|
|
110
|
+
"./package.json": "./package.json"
|
|
43
111
|
}
|
|
44
112
|
}
|
package/src/components/{search/FilterScrollbar → FilterScrollbar}/AppliedFiltersScrollbar.tsx
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import classNames from 'classnames';
|
|
2
2
|
import ScrollContainer from 'react-indiana-drag-scroll';
|
|
3
|
-
import { Text } from 'src/components/
|
|
3
|
+
import { Text } from 'src/components/Text/Text';
|
|
4
4
|
import type { SelectedFilterOption } from 'src/atoms/search/types';
|
|
5
5
|
|
|
6
6
|
interface AppliedFiltersScrollbarProps {
|
package/src/components/{search/FilterScrollbar → FilterScrollbar}/DynamicFiltersScrollbar.tsx
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import classNames from 'classnames';
|
|
2
2
|
import ScrollContainer from 'react-indiana-drag-scroll';
|
|
3
|
-
import { Text } from 'src/components/
|
|
3
|
+
import { Text } from 'src/components/Text/Text';
|
|
4
4
|
|
|
5
5
|
interface DynamicFiltersScrollbarProps {
|
|
6
6
|
availableDynamicFilters: { name: string; displayName: string }[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Headline';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ImageWithFallback';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import classNames from 'classnames';
|
|
2
2
|
import { MdStar } from 'react-icons/md';
|
|
3
|
-
import { Text } from 'src/components/
|
|
3
|
+
import { Text } from 'src/components/Text/Text';
|
|
4
4
|
import {
|
|
5
5
|
variantClassMap,
|
|
6
6
|
variantHoverClassMap,
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
variantTitleColorMap,
|
|
9
9
|
} from './productCardVariants';
|
|
10
10
|
import { Headline } from '../Headline/Headline';
|
|
11
|
-
import { ImageWithFallback } from 'src/components/
|
|
11
|
+
import { ImageWithFallback } from 'src/components/ImageWithFallback/ImageWithFallback';
|
|
12
12
|
import type {
|
|
13
13
|
ProductCardConfig,
|
|
14
14
|
ProductCardHoverVariant,
|
|
15
15
|
ProductCardLayoutVariant,
|
|
16
16
|
ProductCardVariant,
|
|
17
17
|
} from './types';
|
|
18
|
-
import type { TestProps } from 'src/
|
|
18
|
+
import type { TestProps } from 'src/test/types';
|
|
19
19
|
import type { ChatElementDisplayLocation } from 'src/config/chatElementDisplayLocation';
|
|
20
20
|
import Logger from 'src/logging/logger';
|
|
21
21
|
import { Spinner } from '../Spinner/Spinner';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import classNames from 'classnames';
|
|
2
2
|
import { SearchFilterItem } from './SearchFilterItem';
|
|
3
3
|
import type { SearchFilterProps } from './types';
|
|
4
|
-
import { Text } from 'src/components/
|
|
5
|
-
import { ButtonBase } from 'src/components/
|
|
4
|
+
import { Text } from 'src/components/Text/Text';
|
|
5
|
+
import { ButtonBase } from 'src/components/ButtonBase/ButtonBase';
|
|
6
6
|
|
|
7
7
|
export const SearchFilter = ({
|
|
8
8
|
isOpen,
|
|
@@ -2,7 +2,7 @@ import React, { useRef, useImperativeHandle } from 'react';
|
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import MagnifyingGlassStarVariant from '@envive-ai/react-icons/src/MagnifyingGlassStarVariant';
|
|
4
4
|
import CloseIcon from '@envive-ai/react-icons/src/IconClose';
|
|
5
|
-
import { TextInput } from 'src/components/
|
|
5
|
+
import { TextInput } from 'src/components/TextInput/TextInput';
|
|
6
6
|
import { searchInputVariantClasses } from './searchInputVariants';
|
|
7
7
|
import type { SearchInputVariant } from '../SearchInputForm/types';
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { TextStyleVariantMap } from 'src/components/
|
|
1
|
+
import type { TextStyleVariantMap } from 'src/components/Text/textVariantClasses';
|
|
2
2
|
import type { SearchInputVariant } from '../SearchInputForm/types';
|
|
3
|
-
import { ColorNames, colorVar } from 'src/
|
|
3
|
+
import { ColorNames, colorVar } from 'src/models/colorsConfig';
|
|
4
4
|
|
|
5
5
|
interface SearchInputVariantClasses {
|
|
6
6
|
searchInputIconColor: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SearchAutocomplete';
|
|
@@ -5,7 +5,7 @@ import { SearchFilterHeader } from '../SearchFilter/SearchFilterHeader';
|
|
|
5
5
|
import type { SearchFilter as SearchFilterType, SelectFilterItem } from '../SearchFilter/types';
|
|
6
6
|
import type { SearchFilterSidebarVariant } from './types';
|
|
7
7
|
import { searchFilterSidebarVariantClasses } from './searchFilterSidebarVariants';
|
|
8
|
-
import { ButtonBase } from 'src/components/
|
|
8
|
+
import { ButtonBase } from 'src/components/ButtonBase/ButtonBase';
|
|
9
9
|
|
|
10
10
|
export type SearchResultsFilterProps = {
|
|
11
11
|
productCount: number;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { SearchFilterSidebarVariant, CloseIconVariant } from './types';
|
|
2
|
+
import { ColorNames, colorVar } from 'src/models/colorsConfig';
|
|
3
|
+
|
|
4
|
+
interface SearchFilterSidebarVariantClasses {
|
|
5
|
+
searchFilterHeaderClasses: string;
|
|
6
|
+
radioButtonFillColor: string;
|
|
7
|
+
radioButtonHoverColor: string;
|
|
8
|
+
radioButtonUncheckedBorderColor: string;
|
|
9
|
+
filterDefaultClasses: string;
|
|
10
|
+
filterActiveClasses: string;
|
|
11
|
+
filterHoverClasses: string;
|
|
12
|
+
appliedFilterBackgroundClasses: string;
|
|
13
|
+
applyFiltersUnchangedClasses: string;
|
|
14
|
+
applyFiltersChangedClasses: string;
|
|
15
|
+
filterCloseIconVariant: CloseIconVariant;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const searchFilterSidebarVariantClasses: Record<
|
|
19
|
+
SearchFilterSidebarVariant,
|
|
20
|
+
SearchFilterSidebarVariantClasses
|
|
21
|
+
> = {
|
|
22
|
+
darkButton: {
|
|
23
|
+
radioButtonFillColor: colorVar(ColorNames.BackgroundDark),
|
|
24
|
+
radioButtonHoverColor: colorVar(ColorNames.BackgroundSecondaryDark),
|
|
25
|
+
radioButtonUncheckedBorderColor: colorVar(ColorNames.BorderMedium),
|
|
26
|
+
searchFilterHeaderClasses: 'spiffy-tw-text-[--spiffy-colors-text-light]',
|
|
27
|
+
filterDefaultClasses:
|
|
28
|
+
'spiffy-tw-border-[--spiffy-colors-border-medium] spiffy-tw-bg-[--spiffy-colors-background-light] spiffy-tw-text-[--spiffy-colors-text-secondary]',
|
|
29
|
+
filterHoverClasses:
|
|
30
|
+
'hover:spiffy-tw-border-[--spiffy-colors-background-secondary-dark] hover:spiffy-tw-bg-[--spiffy-colors-background-secondary-dark] hover:spiffy-tw-text-[--spiffy-colors-text-primary]',
|
|
31
|
+
filterActiveClasses:
|
|
32
|
+
'spiffy-tw-border-[--spiffy-colors-border-outline] spiffy-tw-bg-[--spiffy-colors-background-dark] spiffy-tw-text-[--spiffy-colors-text-light]',
|
|
33
|
+
appliedFilterBackgroundClasses: 'spiffy-tw-bg-[--spiffy-colors-border-light]',
|
|
34
|
+
applyFiltersUnchangedClasses:
|
|
35
|
+
'spiffy-tw-bg-[--spiffy-colors-border-light] spiffy-tw-text-[--spiffy-colors-text-secondary]',
|
|
36
|
+
applyFiltersChangedClasses:
|
|
37
|
+
'spiffy-tw-bg-[--spiffy-colors-background-dark] spiffy-tw-text-[--spiffy-colors-text-light]',
|
|
38
|
+
filterCloseIconVariant: 'light',
|
|
39
|
+
},
|
|
40
|
+
lightButton: {
|
|
41
|
+
radioButtonFillColor: colorVar(ColorNames.BackgroundDark),
|
|
42
|
+
radioButtonHoverColor: colorVar(ColorNames.BackgroundSecondaryDark),
|
|
43
|
+
radioButtonUncheckedBorderColor: colorVar(ColorNames.BorderMedium),
|
|
44
|
+
searchFilterHeaderClasses: 'spiffy-tw-text-[--spiffy-colors-text-primary]',
|
|
45
|
+
filterDefaultClasses:
|
|
46
|
+
'spiffy-tw-border-[--spiffy-colors-border-medium] spiffy-tw-bg-[--spiffy-colors-background-light] spiffy-tw-text-[--spiffy-colors-text-secondary]',
|
|
47
|
+
filterHoverClasses:
|
|
48
|
+
'hover:spiffy-tw-border-[--spiffy-colors-background-secondary-dark] hover:spiffy-tw-bg-[--spiffy-colors-background-secondary-dark] hover:spiffy-tw-text-[--spiffy-colors-text-primary]',
|
|
49
|
+
filterActiveClasses:
|
|
50
|
+
'spiffy-tw-border-[--spiffy-colors-border-outline] spiffy-tw-bg-[--spiffy-colors-background-dark] spiffy-tw-text-[--spiffy-colors-text-light]',
|
|
51
|
+
appliedFilterBackgroundClasses: 'spiffy-tw-bg-[--spiffy-colors-border-light]',
|
|
52
|
+
applyFiltersUnchangedClasses:
|
|
53
|
+
'spiffy-tw-bg-[--spiffy-colors-border-light] spiffy-tw-text-[--spiffy-colors-text-secondary]',
|
|
54
|
+
applyFiltersChangedClasses:
|
|
55
|
+
'spiffy-tw-bg-[--spiffy-colors-background-primary] spiffy-tw-text-[--spiffy-colors-text-link]',
|
|
56
|
+
filterCloseIconVariant: 'dark',
|
|
57
|
+
},
|
|
58
|
+
};
|
package/src/components/{search/SearchResultsStates → SearchResultsStates}/NoSearchResultsFound.tsx
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import classNames from 'classnames';
|
|
2
2
|
import Sparkles from '@envive-ai/react-icons/src/Sparkles';
|
|
3
|
-
import { Text } from 'src/components/
|
|
3
|
+
import { Text } from 'src/components/Text/Text';
|
|
4
4
|
|
|
5
5
|
interface NoSearchResultsFoundProps {
|
|
6
6
|
containerPaddingClasses: string;
|
package/src/components/{search/SearchResultsStates → SearchResultsStates}/SearchResultsGrid.tsx
RENAMED
|
@@ -2,12 +2,12 @@ import { motion } from 'framer-motion';
|
|
|
2
2
|
import type { SelectedFilterOption } from 'src/atoms/search/types';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import type { SearchResponseProduct } from 'src/types/external';
|
|
5
|
-
import { ProductGrid } from 'src/components/
|
|
5
|
+
import { ProductGrid } from 'src/components/ProductGrid/ProductGrid';
|
|
6
6
|
import { AppliedFiltersScrollbar } from '../FilterScrollbar/AppliedFiltersScrollbar';
|
|
7
7
|
import { DynamicFiltersScrollbar } from '../FilterScrollbar/DynamicFiltersScrollbar';
|
|
8
8
|
import { searchFilterSidebarVariantClasses } from '../SearchResultsFilterSidebar/searchFilterSidebarVariants';
|
|
9
9
|
import type { SearchFilterSidebarVariant } from '../SearchResultsFilterSidebar/types';
|
|
10
|
-
import { ProductGridVariant } from 'src/components/
|
|
10
|
+
import { ProductGridVariant } from 'src/components/ProductCard/types';
|
|
11
11
|
|
|
12
12
|
interface SearchResultsGridProps {
|
|
13
13
|
productList: SearchResponseProduct[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Text } from 'src/components/
|
|
2
|
-
import { SparkleAnimation } from 'src/components/
|
|
1
|
+
import { Text } from 'src/components/Text/Text';
|
|
2
|
+
import { SparkleAnimation } from 'src/components/SparkleAnimation/SparkleAnimation';
|
|
3
3
|
import { motion } from 'framer-motion';
|
|
4
|
-
import { ProductGridVariant } from 'src/components/
|
|
5
|
-
import { ProductCardSkeleton } from 'src/components/
|
|
6
|
-
import { productGridVariantClasses } from 'src/components/
|
|
4
|
+
import { ProductGridVariant } from 'src/components/ProductCard/types';
|
|
5
|
+
import { ProductCardSkeleton } from 'src/components/ProductCard/ProductCardSkeleton';
|
|
6
|
+
import { productGridVariantClasses } from 'src/components/ProductGrid/productGridVariants';
|
|
7
7
|
|
|
8
8
|
export const SearchResultsLoadingGrid = ({
|
|
9
9
|
productGridVariant,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Spinner';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TextInput';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { SelectedFilterOption } from "./types-DBFHTDLN.cjs";
|
|
2
|
-
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/components/search/FilterScrollbar/AppliedFiltersScrollbar.d.ts
|
|
5
|
-
interface AppliedFiltersScrollbarProps {
|
|
6
|
-
selectedFilterOptions: SelectedFilterOption[];
|
|
7
|
-
filterBarClassNames: string;
|
|
8
|
-
filterDefaultClasses: string;
|
|
9
|
-
filterHoverClasses: string;
|
|
10
|
-
appliedFilterBackgroundClasses: string;
|
|
11
|
-
onRemoveFilter: (filter: SelectedFilterOption) => void;
|
|
12
|
-
}
|
|
13
|
-
declare const AppliedFiltersScrollbar: ({
|
|
14
|
-
selectedFilterOptions,
|
|
15
|
-
filterBarClassNames,
|
|
16
|
-
filterDefaultClasses,
|
|
17
|
-
filterHoverClasses,
|
|
18
|
-
appliedFilterBackgroundClasses,
|
|
19
|
-
onRemoveFilter
|
|
20
|
-
}: AppliedFiltersScrollbarProps) => react_jsx_runtime10.JSX.Element;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { AppliedFiltersScrollbar };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { SelectedFilterOption } from "./types-CrKSiwfx.js";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/components/search/FilterScrollbar/AppliedFiltersScrollbar.d.ts
|
|
5
|
-
interface AppliedFiltersScrollbarProps {
|
|
6
|
-
selectedFilterOptions: SelectedFilterOption[];
|
|
7
|
-
filterBarClassNames: string;
|
|
8
|
-
filterDefaultClasses: string;
|
|
9
|
-
filterHoverClasses: string;
|
|
10
|
-
appliedFilterBackgroundClasses: string;
|
|
11
|
-
onRemoveFilter: (filter: SelectedFilterOption) => void;
|
|
12
|
-
}
|
|
13
|
-
declare const AppliedFiltersScrollbar: ({
|
|
14
|
-
selectedFilterOptions,
|
|
15
|
-
filterBarClassNames,
|
|
16
|
-
filterDefaultClasses,
|
|
17
|
-
filterHoverClasses,
|
|
18
|
-
appliedFilterBackgroundClasses,
|
|
19
|
-
onRemoveFilter
|
|
20
|
-
}: AppliedFiltersScrollbarProps) => react_jsx_runtime0.JSX.Element;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { AppliedFiltersScrollbar };
|