@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
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { ButtonBase } from "./ButtonBase-CpmFsiUf.js";
|
|
2
|
+
import { Text } from "./Text-BMg3d10t.js";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/SearchFilter/SearchFilterItem.tsx
|
|
7
|
+
const SearchFilterItem = ({ filterItem, onSelectFilterItem, radioButtonFillColor, radioButtonHoverColor, radioButtonUncheckedBorderColor }) => {
|
|
8
|
+
const { displayName, isSelected } = filterItem;
|
|
9
|
+
const radioClasses = classNames("spiffy-tw-w-4 spiffy-tw-h-4 spiffy-tw-rounded-full spiffy-tw-border-2", "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-justify-center", radioButtonUncheckedBorderColor, radioButtonHoverColor, { [radioButtonFillColor]: isSelected });
|
|
10
|
+
return /* @__PURE__ */ jsxs("li", {
|
|
11
|
+
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-justify-between spiffy-tw-py-2 spiffy-tw-cursor-pointer",
|
|
12
|
+
onClick: () => onSelectFilterItem(filterItem),
|
|
13
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
14
|
+
variant: "body3",
|
|
15
|
+
children: displayName
|
|
16
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
17
|
+
className: radioClasses,
|
|
18
|
+
children: isSelected && /* @__PURE__ */ jsx("div", { className: classNames("spiffy-tw-w-2 spiffy-tw-h-2 spiffy-tw-rounded-full", {
|
|
19
|
+
"spiffy-tw-bg-white": radioButtonFillColor.includes("spiffy-tw-bg-"),
|
|
20
|
+
"spiffy-tw-bg-black": radioButtonFillColor.includes("spiffy-tw-bg-white")
|
|
21
|
+
}) })
|
|
22
|
+
})]
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/components/SearchFilter/SearchFilter.tsx
|
|
28
|
+
const SearchFilter = ({ isOpen, setIsOpen, filters, selectFilterItem, clearAllFilters, filterButtonText, radioButtonFillColor, radioButtonHoverColor, radioButtonUncheckedBorderColor, headerContent }) => {
|
|
29
|
+
const modalClasses = classNames("spiffy-tw-fixed spiffy-tw-inset-0 spiffy-tw-z-50 spiffy-tw-flex spiffy-tw-transform spiffy-tw-transition-all", {
|
|
30
|
+
"spiffy-tw-translate-x-full": !isOpen,
|
|
31
|
+
"spiffy-tw-translate-x-0": isOpen
|
|
32
|
+
});
|
|
33
|
+
const overlayClasses = classNames("spiffy-tw-absolute spiffy-tw-inset-0 spiffy-tw-bg-black spiffy-tw-bg-opacity-50", {
|
|
34
|
+
"spiffy-tw-opacity-0": !isOpen,
|
|
35
|
+
"spiffy-tw-opacity-100": isOpen
|
|
36
|
+
});
|
|
37
|
+
const sidebarClasses = classNames("spiffy-tw-relative spiffy-tw-ml-auto spiffy-tw-flex spiffy-tw-h-full spiffy-tw-w-full spiffy-tw-max-w-xs spiffy-tw-flex-col spiffy-tw-overflow-y-auto spiffy-tw-bg-[--spiffy-colors-background-light] spiffy-tw-py-4 spiffy-tw-shadow-xl");
|
|
38
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
39
|
+
className: modalClasses,
|
|
40
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
41
|
+
className: overlayClasses,
|
|
42
|
+
onClick: () => setIsOpen(false)
|
|
43
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
44
|
+
className: sidebarClasses,
|
|
45
|
+
children: [
|
|
46
|
+
headerContent,
|
|
47
|
+
/* @__PURE__ */ jsx("div", {
|
|
48
|
+
className: "spiffy-tw-flex-1 spiffy-tw-px-4 spiffy-tw-py-6",
|
|
49
|
+
children: filters.map((filter) => /* @__PURE__ */ jsxs("div", {
|
|
50
|
+
className: "spiffy-tw-mb-6",
|
|
51
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
52
|
+
variant: "body2",
|
|
53
|
+
className: "spiffy-tw-font-medium spiffy-tw-mb-3",
|
|
54
|
+
children: filter.displayName
|
|
55
|
+
}), /* @__PURE__ */ jsx("ul", { children: filter.items.map((item) => /* @__PURE__ */ jsx(SearchFilterItem, {
|
|
56
|
+
filterItem: item,
|
|
57
|
+
onSelectFilterItem: selectFilterItem,
|
|
58
|
+
radioButtonFillColor,
|
|
59
|
+
radioButtonHoverColor,
|
|
60
|
+
radioButtonUncheckedBorderColor
|
|
61
|
+
}, item.id)) })]
|
|
62
|
+
}, filter.id))
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ jsxs("div", {
|
|
65
|
+
className: "spiffy-tw-border-t spiffy-tw-border-[--spiffy-colors-border-light] spiffy-tw-px-4 spiffy-tw-py-3",
|
|
66
|
+
children: [/* @__PURE__ */ jsx(ButtonBase, {
|
|
67
|
+
onClick: clearAllFilters,
|
|
68
|
+
text: "Clear All",
|
|
69
|
+
buttonClass: "spiffy-tw-w-full spiffy-tw-mb-2"
|
|
70
|
+
}), /* @__PURE__ */ jsx(ButtonBase, {
|
|
71
|
+
onClick: () => setIsOpen(false),
|
|
72
|
+
text: filterButtonText,
|
|
73
|
+
buttonClass: "spiffy-tw-w-full"
|
|
74
|
+
})]
|
|
75
|
+
})
|
|
76
|
+
]
|
|
77
|
+
})]
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region src/components/SearchFilter/SearchFilterHeader.tsx
|
|
83
|
+
const SearchFilterHeader = ({ closeModal, productCount, headerClassName, filterCloseIconVariant }) => {
|
|
84
|
+
const closeIconColor = filterCloseIconVariant === "dark" ? "var(--spiffy-colors-text-primary)" : "var(--spiffy-colors-text-light)";
|
|
85
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
86
|
+
className: classNames("spiffy-tw-flex spiffy-tw-items-center spiffy-tw-justify-between spiffy-tw-px-4 spiffy-tw-py-3", headerClassName),
|
|
87
|
+
children: [/* @__PURE__ */ jsxs(Text, {
|
|
88
|
+
variant: "body2",
|
|
89
|
+
className: "spiffy-tw-font-medium",
|
|
90
|
+
children: [
|
|
91
|
+
"Filters (",
|
|
92
|
+
productCount,
|
|
93
|
+
")"
|
|
94
|
+
]
|
|
95
|
+
}), /* @__PURE__ */ jsx("button", {
|
|
96
|
+
onClick: closeModal,
|
|
97
|
+
className: "spiffy-tw-p-2",
|
|
98
|
+
children: /* @__PURE__ */ jsx("svg", {
|
|
99
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
100
|
+
width: "14",
|
|
101
|
+
height: "14",
|
|
102
|
+
viewBox: "0 0 14 14",
|
|
103
|
+
fill: "none",
|
|
104
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
105
|
+
d: "M13.7071 1.70711C14.0976 1.31658 14.0976 0.683417 13.7071 0.292893C13.3166 -0.0976311 12.6834 -0.0976311 12.2929 0.292893L7 5.58579L1.70711 0.292893C1.31658 -0.0976311 0.683417 -0.0976311 0.292893 0.292893C-0.0976311 0.683417 -0.0976311 1.31658 0.292893 1.70711L5.58579 7L0.292893 12.2929C-0.0976311 12.6834 -0.0976311 13.3166 0.292893 13.7071C0.683417 14.0976 1.31658 14.0976 1.70711 13.7071L7 8.41421L12.2929 13.7071C12.6834 14.0976 13.3166 14.0976 13.7071 13.7071C14.0976 13.3166 14.0976 12.6834 13.7071 12.2929L8.41421 7L13.7071 1.70711Z",
|
|
106
|
+
fill: closeIconColor
|
|
107
|
+
})
|
|
108
|
+
})
|
|
109
|
+
})]
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
//#endregion
|
|
114
|
+
export { SearchFilter, SearchFilterHeader, SearchFilterItem };
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
const require_ButtonBase = require('./ButtonBase-Dlh3bpR3.cjs');
|
|
3
|
+
const require_Text = require('./Text-CgOYTs8D.cjs');
|
|
4
|
+
let classnames = require("classnames");
|
|
5
|
+
classnames = require_chunk.__toESM(classnames);
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
8
|
+
|
|
9
|
+
//#region src/components/SearchFilter/SearchFilterItem.tsx
|
|
10
|
+
const SearchFilterItem = ({ filterItem, onSelectFilterItem, radioButtonFillColor, radioButtonHoverColor, radioButtonUncheckedBorderColor }) => {
|
|
11
|
+
const { displayName, isSelected } = filterItem;
|
|
12
|
+
const radioClasses = (0, classnames.default)("spiffy-tw-w-4 spiffy-tw-h-4 spiffy-tw-rounded-full spiffy-tw-border-2", "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-justify-center", radioButtonUncheckedBorderColor, radioButtonHoverColor, { [radioButtonFillColor]: isSelected });
|
|
13
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
|
|
14
|
+
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-justify-between spiffy-tw-py-2 spiffy-tw-cursor-pointer",
|
|
15
|
+
onClick: () => onSelectFilterItem(filterItem),
|
|
16
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
|
|
17
|
+
variant: "body3",
|
|
18
|
+
children: displayName
|
|
19
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
20
|
+
className: radioClasses,
|
|
21
|
+
children: isSelected && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: (0, classnames.default)("spiffy-tw-w-2 spiffy-tw-h-2 spiffy-tw-rounded-full", {
|
|
22
|
+
"spiffy-tw-bg-white": radioButtonFillColor.includes("spiffy-tw-bg-"),
|
|
23
|
+
"spiffy-tw-bg-black": radioButtonFillColor.includes("spiffy-tw-bg-white")
|
|
24
|
+
}) })
|
|
25
|
+
})]
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/components/SearchFilter/SearchFilter.tsx
|
|
31
|
+
const SearchFilter = ({ isOpen, setIsOpen, filters, selectFilterItem, clearAllFilters, filterButtonText, radioButtonFillColor, radioButtonHoverColor, radioButtonUncheckedBorderColor, headerContent }) => {
|
|
32
|
+
const modalClasses = (0, classnames.default)("spiffy-tw-fixed spiffy-tw-inset-0 spiffy-tw-z-50 spiffy-tw-flex spiffy-tw-transform spiffy-tw-transition-all", {
|
|
33
|
+
"spiffy-tw-translate-x-full": !isOpen,
|
|
34
|
+
"spiffy-tw-translate-x-0": isOpen
|
|
35
|
+
});
|
|
36
|
+
const overlayClasses = (0, classnames.default)("spiffy-tw-absolute spiffy-tw-inset-0 spiffy-tw-bg-black spiffy-tw-bg-opacity-50", {
|
|
37
|
+
"spiffy-tw-opacity-0": !isOpen,
|
|
38
|
+
"spiffy-tw-opacity-100": isOpen
|
|
39
|
+
});
|
|
40
|
+
const sidebarClasses = (0, classnames.default)("spiffy-tw-relative spiffy-tw-ml-auto spiffy-tw-flex spiffy-tw-h-full spiffy-tw-w-full spiffy-tw-max-w-xs spiffy-tw-flex-col spiffy-tw-overflow-y-auto spiffy-tw-bg-[--spiffy-colors-background-light] spiffy-tw-py-4 spiffy-tw-shadow-xl");
|
|
41
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
42
|
+
className: modalClasses,
|
|
43
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
44
|
+
className: overlayClasses,
|
|
45
|
+
onClick: () => setIsOpen(false)
|
|
46
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
47
|
+
className: sidebarClasses,
|
|
48
|
+
children: [
|
|
49
|
+
headerContent,
|
|
50
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
51
|
+
className: "spiffy-tw-flex-1 spiffy-tw-px-4 spiffy-tw-py-6",
|
|
52
|
+
children: filters.map((filter) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
53
|
+
className: "spiffy-tw-mb-6",
|
|
54
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
|
|
55
|
+
variant: "body2",
|
|
56
|
+
className: "spiffy-tw-font-medium spiffy-tw-mb-3",
|
|
57
|
+
children: filter.displayName
|
|
58
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", { children: filter.items.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SearchFilterItem, {
|
|
59
|
+
filterItem: item,
|
|
60
|
+
onSelectFilterItem: selectFilterItem,
|
|
61
|
+
radioButtonFillColor,
|
|
62
|
+
radioButtonHoverColor,
|
|
63
|
+
radioButtonUncheckedBorderColor
|
|
64
|
+
}, item.id)) })]
|
|
65
|
+
}, filter.id))
|
|
66
|
+
}),
|
|
67
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
68
|
+
className: "spiffy-tw-border-t spiffy-tw-border-[--spiffy-colors-border-light] spiffy-tw-px-4 spiffy-tw-py-3",
|
|
69
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ButtonBase.ButtonBase, {
|
|
70
|
+
onClick: clearAllFilters,
|
|
71
|
+
text: "Clear All",
|
|
72
|
+
buttonClass: "spiffy-tw-w-full spiffy-tw-mb-2"
|
|
73
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ButtonBase.ButtonBase, {
|
|
74
|
+
onClick: () => setIsOpen(false),
|
|
75
|
+
text: filterButtonText,
|
|
76
|
+
buttonClass: "spiffy-tw-w-full"
|
|
77
|
+
})]
|
|
78
|
+
})
|
|
79
|
+
]
|
|
80
|
+
})]
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/components/SearchFilter/SearchFilterHeader.tsx
|
|
86
|
+
const SearchFilterHeader = ({ closeModal, productCount, headerClassName, filterCloseIconVariant }) => {
|
|
87
|
+
const closeIconColor = filterCloseIconVariant === "dark" ? "var(--spiffy-colors-text-primary)" : "var(--spiffy-colors-text-light)";
|
|
88
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
89
|
+
className: (0, classnames.default)("spiffy-tw-flex spiffy-tw-items-center spiffy-tw-justify-between spiffy-tw-px-4 spiffy-tw-py-3", headerClassName),
|
|
90
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Text.Text, {
|
|
91
|
+
variant: "body2",
|
|
92
|
+
className: "spiffy-tw-font-medium",
|
|
93
|
+
children: [
|
|
94
|
+
"Filters (",
|
|
95
|
+
productCount,
|
|
96
|
+
")"
|
|
97
|
+
]
|
|
98
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
99
|
+
onClick: closeModal,
|
|
100
|
+
className: "spiffy-tw-p-2",
|
|
101
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
102
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
103
|
+
width: "14",
|
|
104
|
+
height: "14",
|
|
105
|
+
viewBox: "0 0 14 14",
|
|
106
|
+
fill: "none",
|
|
107
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
108
|
+
d: "M13.7071 1.70711C14.0976 1.31658 14.0976 0.683417 13.7071 0.292893C13.3166 -0.0976311 12.6834 -0.0976311 12.2929 0.292893L7 5.58579L1.70711 0.292893C1.31658 -0.0976311 0.683417 -0.0976311 0.292893 0.292893C-0.0976311 0.683417 -0.0976311 1.31658 0.292893 1.70711L5.58579 7L0.292893 12.2929C-0.0976311 12.6834 -0.0976311 13.3166 0.292893 13.7071C0.683417 14.0976 1.31658 14.0976 1.70711 13.7071L7 8.41421L12.2929 13.7071C12.6834 14.0976 13.3166 14.0976 13.7071 13.7071C14.0976 13.3166 14.0976 12.6834 13.7071 12.2929L8.41421 7L13.7071 1.70711Z",
|
|
109
|
+
fill: closeIconColor
|
|
110
|
+
})
|
|
111
|
+
})
|
|
112
|
+
})]
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
//#endregion
|
|
117
|
+
Object.defineProperty(exports, 'SearchFilter', {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
get: function () {
|
|
120
|
+
return SearchFilter;
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
Object.defineProperty(exports, 'SearchFilterHeader', {
|
|
124
|
+
enumerable: true,
|
|
125
|
+
get: function () {
|
|
126
|
+
return SearchFilterHeader;
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
Object.defineProperty(exports, 'SearchFilterItem', {
|
|
130
|
+
enumerable: true,
|
|
131
|
+
get: function () {
|
|
132
|
+
return SearchFilterItem;
|
|
133
|
+
}
|
|
134
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
require('../textVariantClasses-BnV4wXaw.cjs');
|
|
2
|
+
require('../TextInput-CObd_Wcw.cjs');
|
|
3
|
+
require('../colorsConfig-DulwYRIk.cjs');
|
|
4
|
+
const require_SearchInput = require('../SearchInput-Cdpwswyv.cjs');
|
|
5
|
+
|
|
6
|
+
exports.SearchInput = require_SearchInput.SearchInput;
|
|
7
|
+
exports.searchInputVariantClasses = require_SearchInput.searchInputVariantClasses;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { SearchInputVariant } from "../types-CosVh8Hj.cjs";
|
|
2
|
+
import { TextStyleVariantMap } from "../textVariantClasses-DwnnFNBf.cjs";
|
|
3
|
+
import React from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/SearchInput/SearchInput.d.ts
|
|
6
|
+
interface SearchInputProps {
|
|
7
|
+
searchInputVariant?: SearchInputVariant;
|
|
8
|
+
value: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
suggestions?: string[];
|
|
11
|
+
className?: string;
|
|
12
|
+
dataTestId?: string;
|
|
13
|
+
ariaActivedescendant?: string;
|
|
14
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
15
|
+
onChange: (newValue: string) => void;
|
|
16
|
+
onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
17
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
18
|
+
}
|
|
19
|
+
declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/components/SearchInput/searchInputVariants.d.ts
|
|
22
|
+
interface SearchInputVariantClasses {
|
|
23
|
+
searchInputIconColor: string;
|
|
24
|
+
searchInputBorderColor: string;
|
|
25
|
+
searchInputCloseIconClasses: string;
|
|
26
|
+
searchInputActiveStarClasses: string;
|
|
27
|
+
autocompleteIconColor: string;
|
|
28
|
+
searchInputClasses: string;
|
|
29
|
+
placeholderVariant: keyof typeof TextStyleVariantMap;
|
|
30
|
+
}
|
|
31
|
+
declare const searchInputVariantClasses: Record<SearchInputVariant, SearchInputVariantClasses>;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { SearchInput, SearchInputProps, searchInputVariantClasses };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { SearchInputVariant } from "../types-nR3jHgIO.js";
|
|
2
|
+
import { TextStyleVariantMap } from "../textVariantClasses-sT9E8Uty.js";
|
|
3
|
+
import React from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/SearchInput/SearchInput.d.ts
|
|
6
|
+
interface SearchInputProps {
|
|
7
|
+
searchInputVariant?: SearchInputVariant;
|
|
8
|
+
value: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
suggestions?: string[];
|
|
11
|
+
className?: string;
|
|
12
|
+
dataTestId?: string;
|
|
13
|
+
ariaActivedescendant?: string;
|
|
14
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
15
|
+
onChange: (newValue: string) => void;
|
|
16
|
+
onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
17
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
18
|
+
}
|
|
19
|
+
declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/components/SearchInput/searchInputVariants.d.ts
|
|
22
|
+
interface SearchInputVariantClasses {
|
|
23
|
+
searchInputIconColor: string;
|
|
24
|
+
searchInputBorderColor: string;
|
|
25
|
+
searchInputCloseIconClasses: string;
|
|
26
|
+
searchInputActiveStarClasses: string;
|
|
27
|
+
autocompleteIconColor: string;
|
|
28
|
+
searchInputClasses: string;
|
|
29
|
+
placeholderVariant: keyof typeof TextStyleVariantMap;
|
|
30
|
+
}
|
|
31
|
+
declare const searchInputVariantClasses: Record<SearchInputVariant, SearchInputVariantClasses>;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { SearchInput, SearchInputProps, searchInputVariantClasses };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_TextInput = require('./TextInput-
|
|
3
|
-
const require_colorsConfig = require('./colorsConfig-
|
|
2
|
+
const require_TextInput = require('./TextInput-CObd_Wcw.cjs');
|
|
3
|
+
const require_colorsConfig = require('./colorsConfig-DulwYRIk.cjs');
|
|
4
4
|
let classnames = require("classnames");
|
|
5
5
|
classnames = require_chunk.__toESM(classnames);
|
|
6
6
|
let react = require("react");
|
|
@@ -12,7 +12,7 @@ __envive_ai_react_icons_src_MagnifyingGlassStarVariant = require_chunk.__toESM(_
|
|
|
12
12
|
let __envive_ai_react_icons_src_IconClose = require("@envive-ai/react-icons/src/IconClose");
|
|
13
13
|
__envive_ai_react_icons_src_IconClose = require_chunk.__toESM(__envive_ai_react_icons_src_IconClose);
|
|
14
14
|
|
|
15
|
-
//#region src/components/
|
|
15
|
+
//#region src/components/SearchInput/searchInputVariants.ts
|
|
16
16
|
const searchInputVariantClasses = { standard: {
|
|
17
17
|
searchInputIconColor: "transparent",
|
|
18
18
|
searchInputBorderColor: "spiffy-tw-border-[--spiffy-colors-border-medium]",
|
|
@@ -24,7 +24,7 @@ const searchInputVariantClasses = { standard: {
|
|
|
24
24
|
} };
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
27
|
-
//#region src/components/
|
|
27
|
+
//#region src/components/SearchInput/SearchInput.tsx
|
|
28
28
|
const SearchInput = react.default.forwardRef(({ searchInputVariant = "standard", value, placeholder, suggestions, className, dataTestId, ariaActivedescendant, onKeyDown, onChange, onFocus, onBlur }, ref) => {
|
|
29
29
|
const localInputRef = (0, react.useRef)(null);
|
|
30
30
|
const { searchInputClasses: inputClassName, searchInputIconColor: iconColor, searchInputBorderColor: borderColor, searchInputCloseIconClasses: closeIconClasses, searchInputActiveStarClasses, placeholderVariant } = searchInputVariantClasses[searchInputVariant];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { TextInput } from "./TextInput-
|
|
2
|
-
import { ColorNames, colorVar } from "./colorsConfig-
|
|
1
|
+
import { TextInput } from "./TextInput-ChPhL54o.js";
|
|
2
|
+
import { ColorNames, colorVar } from "./colorsConfig-CKiMYHO_.js";
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import React, { useImperativeHandle, useRef } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import MagnifyingGlassStarVariant from "@envive-ai/react-icons/src/MagnifyingGlassStarVariant";
|
|
7
7
|
import CloseIcon from "@envive-ai/react-icons/src/IconClose";
|
|
8
8
|
|
|
9
|
-
//#region src/components/
|
|
9
|
+
//#region src/components/SearchInput/searchInputVariants.ts
|
|
10
10
|
const searchInputVariantClasses = { standard: {
|
|
11
11
|
searchInputIconColor: "transparent",
|
|
12
12
|
searchInputBorderColor: "spiffy-tw-border-[--spiffy-colors-border-medium]",
|
|
@@ -18,7 +18,7 @@ const searchInputVariantClasses = { standard: {
|
|
|
18
18
|
} };
|
|
19
19
|
|
|
20
20
|
//#endregion
|
|
21
|
-
//#region src/components/
|
|
21
|
+
//#region src/components/SearchInput/SearchInput.tsx
|
|
22
22
|
const SearchInput = React.forwardRef(({ searchInputVariant = "standard", value, placeholder, suggestions, className, dataTestId, ariaActivedescendant, onKeyDown, onChange, onFocus, onBlur }, ref) => {
|
|
23
23
|
const localInputRef = useRef(null);
|
|
24
24
|
const { searchInputClasses: inputClassName, searchInputIconColor: iconColor, searchInputBorderColor: borderColor, searchInputCloseIconClasses: closeIconClasses, searchInputActiveStarClasses, placeholderVariant } = searchInputVariantClasses[searchInputVariant];
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
const require_chunk = require('
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const require_chunk = require('../chunk-CUT6urMc.cjs');
|
|
2
|
+
require('../textVariantClasses-BnV4wXaw.cjs');
|
|
3
|
+
require('../TextInput-CObd_Wcw.cjs');
|
|
4
|
+
require('../colorsConfig-DulwYRIk.cjs');
|
|
5
|
+
const require_SearchInput = require('../SearchInput-Cdpwswyv.cjs');
|
|
6
|
+
const require_SearchAutocomplete = require('../SearchAutocomplete-CQxxe5Op.cjs');
|
|
4
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
8
|
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
6
9
|
|
|
7
|
-
//#region src/components/
|
|
10
|
+
//#region src/components/SearchInputForm/SearchInputForm.tsx
|
|
8
11
|
const SearchInputForm = ({ searchInputVariant, searchText, autocompleteResults, searchBoxPlaceholder, focusedOptionId, isDirty, focusedIndex, onKeyDown, onAutocompleteSelect, onSearchInputChange, onSearchSubmit }) => {
|
|
9
12
|
const { searchInputIconColor } = require_SearchInput.searchInputVariantClasses[searchInputVariant];
|
|
10
13
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("form", {
|
|
@@ -32,9 +35,4 @@ const SearchInputForm = ({ searchInputVariant, searchText, autocompleteResults,
|
|
|
32
35
|
};
|
|
33
36
|
|
|
34
37
|
//#endregion
|
|
35
|
-
|
|
36
|
-
enumerable: true,
|
|
37
|
-
get: function () {
|
|
38
|
-
return SearchInputForm;
|
|
39
|
-
}
|
|
40
|
-
});
|
|
38
|
+
exports.SearchInputForm = SearchInputForm;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SearchInputVariant } from "
|
|
2
|
-
import * as
|
|
1
|
+
import { SearchInputVariant } from "../types-CosVh8Hj.cjs";
|
|
2
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
|
-
//#region src/components/
|
|
4
|
+
//#region src/components/SearchInputForm/SearchInputForm.d.ts
|
|
5
5
|
interface SearchInputFormProps {
|
|
6
6
|
searchInputVariant: SearchInputVariant;
|
|
7
7
|
searchText: string;
|
|
@@ -27,6 +27,6 @@ declare const SearchInputForm: ({
|
|
|
27
27
|
onAutocompleteSelect,
|
|
28
28
|
onSearchInputChange,
|
|
29
29
|
onSearchSubmit
|
|
30
|
-
}: SearchInputFormProps) =>
|
|
30
|
+
}: SearchInputFormProps) => react_jsx_runtime15.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
|
-
export { SearchInputForm };
|
|
32
|
+
export { SearchInputForm, SearchInputVariant };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SearchInputVariant } from "
|
|
2
|
-
import * as
|
|
1
|
+
import { SearchInputVariant } from "../types-nR3jHgIO.js";
|
|
2
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
|
-
//#region src/components/
|
|
4
|
+
//#region src/components/SearchInputForm/SearchInputForm.d.ts
|
|
5
5
|
interface SearchInputFormProps {
|
|
6
6
|
searchInputVariant: SearchInputVariant;
|
|
7
7
|
searchText: string;
|
|
@@ -27,6 +27,6 @@ declare const SearchInputForm: ({
|
|
|
27
27
|
onAutocompleteSelect,
|
|
28
28
|
onSearchInputChange,
|
|
29
29
|
onSearchSubmit
|
|
30
|
-
}: SearchInputFormProps) =>
|
|
30
|
+
}: SearchInputFormProps) => react_jsx_runtime3.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
|
-
export { SearchInputForm };
|
|
32
|
+
export { SearchInputForm, SearchInputVariant };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import "../textVariantClasses-CnjwO2Fv.js";
|
|
2
|
+
import "../TextInput-ChPhL54o.js";
|
|
3
|
+
import "../colorsConfig-CKiMYHO_.js";
|
|
4
|
+
import { SearchInput, searchInputVariantClasses } from "../SearchInput-DxGvYGZO.js";
|
|
5
|
+
import { SearchAutocomplete } from "../SearchAutocomplete-DCu9-Yfk.js";
|
|
3
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
7
|
|
|
5
|
-
//#region src/components/
|
|
8
|
+
//#region src/components/SearchInputForm/SearchInputForm.tsx
|
|
6
9
|
const SearchInputForm = ({ searchInputVariant, searchText, autocompleteResults, searchBoxPlaceholder, focusedOptionId, isDirty, focusedIndex, onKeyDown, onAutocompleteSelect, onSearchInputChange, onSearchSubmit }) => {
|
|
7
10
|
const { searchInputIconColor } = searchInputVariantClasses[searchInputVariant];
|
|
8
11
|
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("form", {
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
const require_chunk = require('
|
|
2
|
-
const require_ButtonBase = require('
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const
|
|
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');
|
|
5
|
+
const require_SearchFilterHeader = require('../SearchFilterHeader-qkRVfAB5.cjs');
|
|
6
|
+
require('../colorsConfig-DulwYRIk.cjs');
|
|
7
|
+
const require_searchFilterSidebarVariants = require('../searchFilterSidebarVariants-DcQLi_TT.cjs');
|
|
6
8
|
let react = require("react");
|
|
7
9
|
react = require_chunk.__toESM(react);
|
|
8
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
11
|
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
10
12
|
|
|
11
|
-
//#region src/components/
|
|
13
|
+
//#region src/components/SearchResultsFilterSidebar/SearchResultsFilter.tsx
|
|
12
14
|
const SearchResultsFilter = ({ productCount, isOpen, setIsOpen, searchFilters, searchFilterSidebarVariant, onSelectFilterItem, onClearAllFilters, filterButtonText }) => {
|
|
13
15
|
const { applyFiltersUnchangedClasses, applyFiltersChangedClasses, searchFilterHeaderClasses, radioButtonFillColor, radioButtonHoverColor, radioButtonUncheckedBorderColor, filterCloseIconVariant } = require_searchFilterSidebarVariants.searchFilterSidebarVariantClasses[searchFilterSidebarVariant];
|
|
14
16
|
const openFilter = (0, react.useCallback)(() => {
|
|
15
17
|
setIsOpen(true);
|
|
16
18
|
}, [setIsOpen]);
|
|
17
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
19
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SearchFilterHeader.SearchFilter, {
|
|
18
20
|
isOpen,
|
|
19
21
|
setIsOpen,
|
|
20
22
|
filters: searchFilters,
|
|
@@ -45,9 +47,5 @@ const SearchResultsFilter = ({ productCount, isOpen, setIsOpen, searchFilters, s
|
|
|
45
47
|
};
|
|
46
48
|
|
|
47
49
|
//#endregion
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
get: function () {
|
|
51
|
-
return SearchResultsFilter;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
50
|
+
exports.SearchResultsFilter = SearchResultsFilter;
|
|
51
|
+
exports.searchFilterSidebarVariantClasses = require_searchFilterSidebarVariants.searchFilterSidebarVariantClasses;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { SearchFilter, SelectFilterItem } from "../types-BCAU5OQD.cjs";
|
|
2
|
+
import { CloseIconVariant, SearchFilterSidebarVariant } from "../types-5luH4G-3.cjs";
|
|
3
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.d.ts
|
|
6
|
+
interface SearchFilterSidebarVariantClasses {
|
|
7
|
+
searchFilterHeaderClasses: string;
|
|
8
|
+
radioButtonFillColor: string;
|
|
9
|
+
radioButtonHoverColor: string;
|
|
10
|
+
radioButtonUncheckedBorderColor: string;
|
|
11
|
+
filterDefaultClasses: string;
|
|
12
|
+
filterActiveClasses: string;
|
|
13
|
+
filterHoverClasses: string;
|
|
14
|
+
appliedFilterBackgroundClasses: string;
|
|
15
|
+
applyFiltersUnchangedClasses: string;
|
|
16
|
+
applyFiltersChangedClasses: string;
|
|
17
|
+
filterCloseIconVariant: CloseIconVariant;
|
|
18
|
+
}
|
|
19
|
+
declare const searchFilterSidebarVariantClasses: Record<SearchFilterSidebarVariant, SearchFilterSidebarVariantClasses>;
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/components/SearchResultsFilterSidebar/SearchResultsFilter.d.ts
|
|
22
|
+
type SearchResultsFilterProps = {
|
|
23
|
+
productCount: number;
|
|
24
|
+
isOpen: boolean;
|
|
25
|
+
setIsOpen: (isOpen: boolean) => void;
|
|
26
|
+
searchFilters: SearchFilter[];
|
|
27
|
+
searchFilterSidebarVariant: SearchFilterSidebarVariant;
|
|
28
|
+
searchText: string;
|
|
29
|
+
onSelectFilterItem: SelectFilterItem;
|
|
30
|
+
onClearAllFilters: () => void;
|
|
31
|
+
filterButtonText: string;
|
|
32
|
+
};
|
|
33
|
+
declare const SearchResultsFilter: ({
|
|
34
|
+
productCount,
|
|
35
|
+
isOpen,
|
|
36
|
+
setIsOpen,
|
|
37
|
+
searchFilters,
|
|
38
|
+
searchFilterSidebarVariant,
|
|
39
|
+
onSelectFilterItem,
|
|
40
|
+
onClearAllFilters,
|
|
41
|
+
filterButtonText
|
|
42
|
+
}: SearchResultsFilterProps) => react_jsx_runtime9.JSX.Element;
|
|
43
|
+
//#endregion
|
|
44
|
+
export { CloseIconVariant, SearchFilterSidebarVariant, SearchResultsFilter, SearchResultsFilterProps, searchFilterSidebarVariantClasses };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { SearchFilter, SelectFilterItem } from "../types-BwPquD10.js";
|
|
2
|
+
import { CloseIconVariant, SearchFilterSidebarVariant } from "../types-BIPqyTOJ.js";
|
|
3
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.d.ts
|
|
6
|
+
interface SearchFilterSidebarVariantClasses {
|
|
7
|
+
searchFilterHeaderClasses: string;
|
|
8
|
+
radioButtonFillColor: string;
|
|
9
|
+
radioButtonHoverColor: string;
|
|
10
|
+
radioButtonUncheckedBorderColor: string;
|
|
11
|
+
filterDefaultClasses: string;
|
|
12
|
+
filterActiveClasses: string;
|
|
13
|
+
filterHoverClasses: string;
|
|
14
|
+
appliedFilterBackgroundClasses: string;
|
|
15
|
+
applyFiltersUnchangedClasses: string;
|
|
16
|
+
applyFiltersChangedClasses: string;
|
|
17
|
+
filterCloseIconVariant: CloseIconVariant;
|
|
18
|
+
}
|
|
19
|
+
declare const searchFilterSidebarVariantClasses: Record<SearchFilterSidebarVariant, SearchFilterSidebarVariantClasses>;
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/components/SearchResultsFilterSidebar/SearchResultsFilter.d.ts
|
|
22
|
+
type SearchResultsFilterProps = {
|
|
23
|
+
productCount: number;
|
|
24
|
+
isOpen: boolean;
|
|
25
|
+
setIsOpen: (isOpen: boolean) => void;
|
|
26
|
+
searchFilters: SearchFilter[];
|
|
27
|
+
searchFilterSidebarVariant: SearchFilterSidebarVariant;
|
|
28
|
+
searchText: string;
|
|
29
|
+
onSelectFilterItem: SelectFilterItem;
|
|
30
|
+
onClearAllFilters: () => void;
|
|
31
|
+
filterButtonText: string;
|
|
32
|
+
};
|
|
33
|
+
declare const SearchResultsFilter: ({
|
|
34
|
+
productCount,
|
|
35
|
+
isOpen,
|
|
36
|
+
setIsOpen,
|
|
37
|
+
searchFilters,
|
|
38
|
+
searchFilterSidebarVariant,
|
|
39
|
+
onSelectFilterItem,
|
|
40
|
+
onClearAllFilters,
|
|
41
|
+
filterButtonText
|
|
42
|
+
}: SearchResultsFilterProps) => react_jsx_runtime14.JSX.Element;
|
|
43
|
+
//#endregion
|
|
44
|
+
export { CloseIconVariant, SearchFilterSidebarVariant, SearchResultsFilter, SearchResultsFilterProps, searchFilterSidebarVariantClasses };
|