@envive-ai/react-toolkit 0.1.3 → 0.1.4
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-Dk_5Bxe0.js → ButtonBase-C1rsL9gO.js} +1 -1
- package/dist/{ButtonBase-RIYFAcSy.cjs → ButtonBase-a8uj6c2f.cjs} +0 -6
- package/dist/{ProductCard-CLLIICuS.js → ProductCard-B5wnOeR9.js} +3 -3
- package/dist/{ProductCard-DSmiLLCO.cjs → ProductCard-C7WUShhN.cjs} +2 -8
- package/dist/{ProductCardSkeleton-lKjP9IjT.js → ProductCardSkeleton-BPfp6IOp.js} +1 -6
- package/dist/{ProductCardSkeleton-Pp0UQG-h.cjs → ProductCardSkeleton-BgvDlaty.cjs} +0 -17
- package/dist/{ProductGrid-CocLTY7Q.cjs → ProductGrid-DZgwGPSQ.cjs} +1 -7
- package/dist/{ProductGrid-CGKgdAK7.js → ProductGrid-wnSc9bXT.js} +2 -2
- package/dist/{SearchFilter-qTwBmFt1.js → SearchFilter-D-2IdBKS.js} +2 -2
- package/dist/{SearchFilter-D9_2Bdu0.cjs → SearchFilter-D0IzBlG5.cjs} +2 -2
- package/dist/{SearchInput-Cxg1t9H8.js → SearchInput-CzVUsUSb.js} +2 -2
- package/dist/{SearchInput-D2yMIYtf.cjs → SearchInput-mLPisqFO.cjs} +2 -2
- package/dist/{SparkleAnimation-CVu9vUAb.cjs → SparkleAnimation-Ba5G4MIQ.cjs} +0 -6
- package/dist/{SparkleAnimation-Df_wUFfB.js → SparkleAnimation-Qs17S1rn.js} +1 -1
- package/dist/common/ButtonBase/ButtonBase.cjs +5 -0
- package/dist/{ButtonBase-DVBSlvQv.d.ts → common/ButtonBase/ButtonBase.d.cts} +6 -14
- package/dist/{ButtonBase-2R-hB-y8.d.cts → common/ButtonBase/ButtonBase.d.ts} +6 -14
- package/dist/common/ButtonBase/ButtonBase.js +5 -0
- package/dist/common/Headline/Headline.cjs +4 -0
- package/dist/{Headline-B8ivXd0O.d.cts → common/Headline/Headline.d.cts} +2 -2
- package/dist/{Headline-CRQSK38D.d.ts → common/Headline/Headline.d.ts} +2 -2
- package/dist/common/Headline/Headline.js +4 -0
- package/dist/common/ImageWithFallback/ImageWithFallback.cjs +3 -0
- package/dist/{ImageWithFallback-xikP8SY4.d.ts → common/ImageWithFallback/ImageWithFallback.d.cts} +1 -1
- package/dist/{ImageWithFallback-D70hTBkZ.d.cts → common/ImageWithFallback/ImageWithFallback.d.ts} +2 -2
- package/dist/common/ImageWithFallback/ImageWithFallback.js +3 -0
- package/dist/common/ProductCard/ProductCard.cjs +11 -0
- package/dist/{ProductCard-CTm2sGVZ.d.cts → common/ProductCard/ProductCard.d.cts} +7 -7
- package/dist/{ProductCard-CPOXS9kz.d.ts → common/ProductCard/ProductCard.d.ts} +7 -7
- package/dist/common/ProductCard/ProductCard.js +9 -0
- package/dist/common/ProductCard/ProductCardSkeleton.cjs +4 -0
- package/dist/{ProductCardSkeleton-BD-4l9Ym.d.ts → common/ProductCard/ProductCardSkeleton.d.cts} +1 -1
- package/dist/{ProductCardSkeleton-CgpRxzKt.d.cts → common/ProductCard/ProductCardSkeleton.d.ts} +1 -1
- package/dist/common/ProductCard/ProductCardSkeleton.js +4 -0
- package/dist/common/ProductGrid/ProductGrid.cjs +11 -0
- package/dist/{ProductGrid-Lts9Xv83.d.cts → common/ProductGrid/ProductGrid.d.cts} +1 -1
- package/dist/{ProductGrid-DDhSKNBT.d.ts → common/ProductGrid/ProductGrid.d.ts} +3 -3
- package/dist/common/ProductGrid/ProductGrid.js +11 -0
- package/dist/common/SparkleAnimation/SparkleAnimation.cjs +3 -0
- package/dist/{SparkleAnimation-BStwzL9T.d.ts → common/SparkleAnimation/SparkleAnimation.d.cts} +2 -2
- package/dist/{SparkleAnimation-DKhQSeVg.d.cts → common/SparkleAnimation/SparkleAnimation.d.ts} +2 -2
- package/dist/common/SparkleAnimation/SparkleAnimation.js +3 -0
- package/dist/common/Spinner/Spinner.cjs +3 -0
- package/dist/{Spinner-De8NVcZz.d.ts → common/Spinner/Spinner.d.cts} +2 -2
- package/dist/{Spinner-79PaZrmy.d.cts → common/Spinner/Spinner.d.ts} +2 -2
- package/dist/common/Spinner/Spinner.js +3 -0
- package/dist/{SuggestionButton-BVzBCzmQ.cjs → common/SuggestionButton/SuggestionButton.cjs} +8 -26
- package/dist/{SuggestionButton-BoKmwMb3.d.ts → common/SuggestionButton/SuggestionButton.d.cts} +4 -4
- package/dist/{SuggestionButton-CNwyzi1V.d.cts → common/SuggestionButton/SuggestionButton.d.ts} +4 -4
- package/dist/{SuggestionButton-C4p08bZv.js → common/SuggestionButton/SuggestionButton.js} +3 -1
- package/dist/common/Text/Text.cjs +4 -0
- package/dist/common/Text/Text.d.cts +28 -0
- package/dist/common/Text/Text.d.ts +28 -0
- package/dist/common/Text/Text.js +4 -0
- package/dist/common/TextInput/TextInput.cjs +4 -0
- package/dist/common/TextInput/TextInput.js +4 -0
- package/dist/search/FilterScrollbar/AppliedFiltersScrollbar.cjs +5 -0
- package/dist/{AppliedFiltersScrollbar-CeMmITGf.d.cts → search/FilterScrollbar/AppliedFiltersScrollbar.d.cts} +3 -3
- package/dist/{AppliedFiltersScrollbar-DrcrTkwX.d.ts → search/FilterScrollbar/AppliedFiltersScrollbar.d.ts} +3 -3
- package/dist/search/FilterScrollbar/AppliedFiltersScrollbar.js +5 -0
- package/dist/search/FilterScrollbar/DynamicFiltersScrollbar.cjs +5 -0
- package/dist/{DynamicFiltersScrollbar-DMuCZcGH.d.ts → search/FilterScrollbar/DynamicFiltersScrollbar.d.cts} +2 -2
- package/dist/{DynamicFiltersScrollbar-CHI1YQZ7.d.cts → search/FilterScrollbar/DynamicFiltersScrollbar.d.ts} +2 -2
- package/dist/search/FilterScrollbar/DynamicFiltersScrollbar.js +5 -0
- package/dist/search/SearchFilter/SearchFilter.cjs +7 -0
- package/dist/{SearchFilter-DK7f_J7J.d.cts → search/SearchFilter/SearchFilter.d.cts} +1 -1
- package/dist/{SearchFilter-BoCnqT8O.d.ts → search/SearchFilter/SearchFilter.d.ts} +3 -3
- package/dist/search/SearchFilter/SearchFilter.js +7 -0
- package/dist/search/SearchFilter/SearchFilterHeader.cjs +5 -0
- package/dist/search/SearchFilter/SearchFilterHeader.d.cts +12 -0
- package/dist/search/SearchFilter/SearchFilterHeader.d.ts +12 -0
- package/dist/search/SearchFilter/SearchFilterHeader.js +5 -0
- package/dist/search/SearchFilter/SearchFilterItem.cjs +5 -0
- package/dist/{SearchFilterItem-C3F8x3M3.d.cts → search/SearchFilter/SearchFilterItem.d.cts} +1 -1
- package/dist/{SearchFilterItem-sOBAQLPQ.d.ts → search/SearchFilter/SearchFilterItem.d.ts} +3 -3
- package/dist/search/SearchFilter/SearchFilterItem.js +5 -0
- package/dist/search/SearchInput/SearchInput.cjs +6 -0
- package/dist/{SearchInput-zggwSGKj.d.ts → search/SearchInput/SearchInput.d.cts} +1 -1
- package/dist/{SearchInput-DzLynEd6.d.cts → search/SearchInput/SearchInput.d.ts} +1 -1
- package/dist/search/SearchInput/SearchInput.js +6 -0
- package/dist/search/SearchInputAutocomplete/SearchAutocomplete.cjs +3 -0
- package/dist/search/SearchInputAutocomplete/SearchAutocomplete.js +3 -0
- package/dist/{SearchInputForm-z5RFjdh2.cjs → search/SearchInputForm/SearchInputForm.cjs} +7 -9
- package/dist/{SearchInputForm-D4qh2b7S.d.ts → search/SearchInputForm/SearchInputForm.d.cts} +3 -3
- package/dist/{SearchInputForm-BWMdfatv.d.cts → search/SearchInputForm/SearchInputForm.d.ts} +3 -3
- package/dist/{SearchInputForm-DNEkauQ5.js → search/SearchInputForm/SearchInputForm.js} +5 -2
- package/dist/{SearchResultsFilter-DdF8BeDA.cjs → search/SearchResultsFilterSidebar/SearchResultsFilter.cjs} +10 -11
- package/dist/{SearchResultsFilter-RuaEmhp5.d.cts → search/SearchResultsFilterSidebar/SearchResultsFilter.d.cts} +4 -4
- package/dist/{SearchResultsFilter-3U3u9E4U.d.ts → search/SearchResultsFilterSidebar/SearchResultsFilter.d.ts} +4 -4
- package/dist/{SearchResultsFilter-CVFVMTUO.js → search/SearchResultsFilterSidebar/SearchResultsFilter.js} +8 -4
- package/dist/{NoSearchResultsFound-jT3JwiYm.cjs → search/SearchResultsStates/NoSearchResultsFound.cjs} +4 -8
- package/dist/{NoSearchResultsFound-C25AsQAI.d.ts → search/SearchResultsStates/NoSearchResultsFound.d.ts} +2 -2
- package/dist/{NoSearchResultsFound-q-DgYpjR.js → search/SearchResultsStates/NoSearchResultsFound.js} +2 -1
- package/dist/{SearchResultsGrid-B7bjLKye.cjs → search/SearchResultsStates/SearchResultsGrid.cjs} +15 -11
- package/dist/{SearchResultsGrid-CoWZNxWh.d.ts → search/SearchResultsStates/SearchResultsGrid.d.cts} +5 -5
- package/dist/{SearchResultsGrid-CLldvt66.d.cts → search/SearchResultsStates/SearchResultsGrid.d.ts} +5 -5
- package/dist/{SearchResultsGrid-BXyk2cMd.js → search/SearchResultsStates/SearchResultsGrid.js} +13 -4
- package/dist/{SearchResultsLoadingGrid-4QzwkBiT.cjs → search/SearchResultsStates/SearchResultsLoadingGrid.cjs} +8 -11
- package/dist/{SearchResultsLoadingGrid-DN3MQxZi.d.ts → search/SearchResultsStates/SearchResultsLoadingGrid.d.cts} +3 -3
- package/dist/{SearchResultsLoadingGrid-XA5pUZAz.d.cts → search/SearchResultsStates/SearchResultsLoadingGrid.d.ts} +1 -1
- package/dist/{SearchResultsLoadingGrid-BiZ11r8B.js → search/SearchResultsStates/SearchResultsLoadingGrid.js} +6 -4
- package/dist/{searchFilterSidebarVariants-2hFLDP6e.cjs → searchFilterSidebarVariants-L1rn5Ift.cjs} +1 -1
- package/dist/{searchFilterSidebarVariants-ClPVoN5E.js → searchFilterSidebarVariants-eoyfoWA8.js} +1 -1
- package/dist/types-53zIialA.d.ts +35 -0
- package/dist/{types-D2gzKgxc.d.cts → types-B4BGZSlV.d.cts} +1 -2
- package/dist/{types-BKI60fVP.d.ts → types-CpiJO5UH.d.ts} +1 -2
- package/dist/types-aa4flfRE.d.cts +35 -0
- package/package.json +96 -1
- package/dist/SearchFilterHeader-C4D38iyw.d.ts +0 -12
- package/dist/SearchFilterHeader-TQ_MapZI.d.cts +0 -12
- package/dist/Text-D8WEjUal.d.ts +0 -41
- package/dist/Text-D8bCCNPT.d.cts +0 -41
- 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/types--SBcFTJX.d.cts +0 -289
- package/dist/types-CmjqQWAG.d.ts +0 -289
- package/src/index.ts +0 -58
- /package/dist/{AppliedFiltersScrollbar-Cd6jgn-c.cjs → AppliedFiltersScrollbar-BlcyhZkZ.cjs} +0 -0
- /package/dist/{AppliedFiltersScrollbar-DUo5NSwQ.js → AppliedFiltersScrollbar-DFGzRemu.js} +0 -0
- /package/dist/{DynamicFiltersScrollbar-FKO8Qb5u.cjs → DynamicFiltersScrollbar-B2Rr1KnJ.cjs} +0 -0
- /package/dist/{DynamicFiltersScrollbar-BbgfsOpt.js → DynamicFiltersScrollbar-Dys6geP0.js} +0 -0
- /package/dist/{Headline-ro_Nigw5.js → Headline-8on6ZB9e.js} +0 -0
- /package/dist/{Headline-L7w3BsBF.cjs → Headline-CcWn0w-a.cjs} +0 -0
- /package/dist/{ImageWithFallback-CfmkC58B.js → ImageWithFallback-gN5HDS9L.js} +0 -0
- /package/dist/{ImageWithFallback-P3AjyL2Y.cjs → ImageWithFallback-ioeMFrTf.cjs} +0 -0
- /package/dist/{SearchAutocomplete-D4LkC6bS.js → SearchAutocomplete-B8mO03Rr.js} +0 -0
- /package/dist/{SearchAutocomplete-CIsbwN0M.cjs → SearchAutocomplete-BrF2SMoZ.cjs} +0 -0
- /package/dist/{SearchFilterHeader-DRA6XMMY.js → SearchFilterHeader-BQT0-ssS.js} +0 -0
- /package/dist/{SearchFilterHeader-CcHU0lN_.cjs → SearchFilterHeader-C3EklfoO.cjs} +0 -0
- /package/dist/{SearchFilterItem-CsrO3Om5.js → SearchFilterItem-BodtWLoP.js} +0 -0
- /package/dist/{SearchFilterItem-DJrPcYtU.cjs → SearchFilterItem-DmMkiqNC.cjs} +0 -0
- /package/dist/{TextInput-CZogcpzR.cjs → TextInput-BO80ixsV.cjs} +0 -0
- /package/dist/{TextInput-BZSsdOtq.js → TextInput-CEGWfdPC.js} +0 -0
- /package/dist/{colorsConfig-l0ODUVhu.js → colorsConfig-BKBZfFq1.js} +0 -0
- /package/dist/{colorsConfig-TCONYTQ7.cjs → colorsConfig-vunsVTFC.cjs} +0 -0
- /package/dist/{TextInput-CtSUuczk.d.ts → common/TextInput/TextInput.d.cts} +0 -0
- /package/dist/{TextInput-QqdJV52m.d.cts → common/TextInput/TextInput.d.ts} +0 -0
- /package/dist/{SearchAutocomplete-5gSMPXfM.d.cts → search/SearchInputAutocomplete/SearchAutocomplete.d.cts} +0 -0
- /package/dist/{SearchAutocomplete-I5DJkfmd.d.ts → search/SearchInputAutocomplete/SearchAutocomplete.d.ts} +0 -0
- /package/dist/{NoSearchResultsFound-lpvz_Gq-.d.cts → search/SearchResultsStates/NoSearchResultsFound.d.cts} +0 -0
- /package/dist/{types-DSduYC0Z.d.ts → types-BQNqA5xL.d.ts} +0 -0
- /package/dist/{types-DIFUT33A.d.ts → types-BRLWwGMI.d.ts} +0 -0
- /package/dist/{types-pOHvi423.d.cts → types-CImLkcNh.d.cts} +0 -0
- /package/dist/{types-Y0WKFOqS.d.ts → types-Cph97xkm.d.ts} +0 -0
- /package/dist/{types-CrKSiwfx.d.ts → types-DFetqNL2.d.ts} +0 -0
- /package/dist/{types-DBFHTDLN.d.cts → types-DaSkJnT_.d.cts} +0 -0
- /package/dist/{types-ZUUsuyGT.d.cts → types-Dy4_w6Cf.d.cts} +0 -0
package/dist/index.d.cts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import "./types-TYhhwWZw.cjs";
|
|
2
|
-
import { ButtonBase, ButtonBaseOverrides, ButtonBaseProps, ButtonHoverStyles } from "./ButtonBase-2R-hB-y8.cjs";
|
|
3
|
-
import { Headline } from "./Headline-B8ivXd0O.cjs";
|
|
4
|
-
import { ImageWithFallback } from "./ImageWithFallback-D70hTBkZ.cjs";
|
|
5
|
-
import { AnimatedProductCardOverrides, BuiltIns, CamelCase, CamelCaseOptions, CamelCasedPropertiesDeep, IsLowerCase, IsNumeric, IsUpperCase, NonRecursiveType, Primitive, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, SearchResponseProductAttributes, SplitWords, Trim, UnknownArray, UpperCaseCharacters, Whitespace, WordSeparators } from "./types--SBcFTJX.cjs";
|
|
6
|
-
import { ChatElementDisplayLocation, ProductCard } from "./ProductCard-CTm2sGVZ.cjs";
|
|
7
|
-
import { ProductCardSkeleton } from "./ProductCardSkeleton-CgpRxzKt.cjs";
|
|
8
|
-
import { ProductGrid } from "./ProductGrid-Lts9Xv83.cjs";
|
|
9
|
-
import { SparkleAnimation } from "./SparkleAnimation-DKhQSeVg.cjs";
|
|
10
|
-
import { Spinner } from "./Spinner-79PaZrmy.cjs";
|
|
11
|
-
import { SuggestionButton, SuggestionButtonVariant } from "./SuggestionButton-CNwyzi1V.cjs";
|
|
12
|
-
import { ExpandableTextOverrides, HeadlineProps, HeadlineVariant, Text, TextType, TextVariant } from "./Text-D8bCCNPT.cjs";
|
|
13
|
-
import { TextInput } from "./TextInput-QqdJV52m.cjs";
|
|
14
|
-
import { SelectedFilterOption } from "./types-DBFHTDLN.cjs";
|
|
15
|
-
import { AppliedFiltersScrollbar } from "./AppliedFiltersScrollbar-CeMmITGf.cjs";
|
|
16
|
-
import { DynamicFiltersScrollbar } from "./DynamicFiltersScrollbar-CHI1YQZ7.cjs";
|
|
17
|
-
import { SearchFilterHeaderProps, SearchFilterItemProps, SearchFilterProps, SelectFilterItem } from "./types-pOHvi423.cjs";
|
|
18
|
-
import { SearchFilter } from "./SearchFilter-DK7f_J7J.cjs";
|
|
19
|
-
import { SearchFilterHeader } from "./SearchFilterHeader-TQ_MapZI.cjs";
|
|
20
|
-
import { SearchFilterItem } from "./SearchFilterItem-C3F8x3M3.cjs";
|
|
21
|
-
import { SearchInputVariant } from "./types-ZUUsuyGT.cjs";
|
|
22
|
-
import { SearchInput } from "./SearchInput-DzLynEd6.cjs";
|
|
23
|
-
import { SearchAutocomplete } from "./SearchAutocomplete-5gSMPXfM.cjs";
|
|
24
|
-
import { SearchInputForm } from "./SearchInputForm-BWMdfatv.cjs";
|
|
25
|
-
import { CloseIconVariant, SearchFilterSidebarVariant } from "./types-D2gzKgxc.cjs";
|
|
26
|
-
import { SearchResultsFilter } from "./SearchResultsFilter-RuaEmhp5.cjs";
|
|
27
|
-
import { NoSearchResultsFound } from "./NoSearchResultsFound-lpvz_Gq-.cjs";
|
|
28
|
-
import { SearchResultsGrid } from "./SearchResultsGrid-CLldvt66.cjs";
|
|
29
|
-
import { SearchResultsLoadingGrid } from "./SearchResultsLoadingGrid-XA5pUZAz.cjs";
|
|
30
|
-
|
|
31
|
-
//#region src/components/common/SparkleAnimation/types.d.ts
|
|
32
|
-
declare enum SparkleAnimationOverride {
|
|
33
|
-
CONTAINER = "spiffy-sparkle-animation-container",
|
|
34
|
-
STAR_ONE_CONTAINER = "spiffy-sparkle-animation-star-one-container",
|
|
35
|
-
STAR_TWO_CONTAINER = "spiffy-sparkle-animation-star-two-container",
|
|
36
|
-
STAR_THREE_CONTAINER = "spiffy-sparkle-animation-star-three-container",
|
|
37
|
-
}
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/components/search/types.d.ts
|
|
40
|
-
declare enum SearchResultsState {
|
|
41
|
-
NoResults = "noResults",
|
|
42
|
-
Results = "results",
|
|
43
|
-
Loading = "loading",
|
|
44
|
-
}
|
|
45
|
-
//#endregion
|
|
46
|
-
//#region src/util/formatPrice.d.ts
|
|
47
|
-
declare const formatPrice: (price?: number, currency?: string) => string;
|
|
48
|
-
//#endregion
|
|
49
|
-
//#region src/components/common/ProductGrid/productGridVariants.d.ts
|
|
50
|
-
interface ProductGridVariantClasses {
|
|
51
|
-
productCardVariant: ProductCardVariant;
|
|
52
|
-
productCardHoverVariant: ProductCardHoverVariant;
|
|
53
|
-
productCardLayoutVariant: ProductCardLayoutVariant;
|
|
54
|
-
productCardImageAspectRatio: '3:4' | 'square' | 'none';
|
|
55
|
-
zoomOnHover: boolean;
|
|
56
|
-
}
|
|
57
|
-
declare const productGridVariantClasses: Record<ProductGridVariant, ProductGridVariantClasses>;
|
|
58
|
-
//#endregion
|
|
59
|
-
//#region src/components/search/SearchResultsFilterSidebar/searchFilterSidebarVariants.d.ts
|
|
60
|
-
interface SearchFilterSidebarVariantClasses {
|
|
61
|
-
searchFilterHeaderClasses: string;
|
|
62
|
-
radioButtonFillColor: string;
|
|
63
|
-
radioButtonHoverColor: string;
|
|
64
|
-
radioButtonUncheckedBorderColor: string;
|
|
65
|
-
filterDefaultClasses: string;
|
|
66
|
-
filterActiveClasses: string;
|
|
67
|
-
filterHoverClasses: string;
|
|
68
|
-
appliedFilterBackgroundClasses: string;
|
|
69
|
-
applyFiltersUnchangedClasses: string;
|
|
70
|
-
applyFiltersChangedClasses: string;
|
|
71
|
-
filterCloseIconVariant: CloseIconVariant;
|
|
72
|
-
}
|
|
73
|
-
declare const searchFilterSidebarVariantClasses: Record<SearchFilterSidebarVariant, SearchFilterSidebarVariantClasses>;
|
|
74
|
-
//#endregion
|
|
75
|
-
export { AnimatedProductCardOverrides, AppliedFiltersScrollbar, BuiltIns, ButtonBase, ButtonBaseOverrides, ButtonBaseProps, ButtonHoverStyles, CamelCase, CamelCaseOptions, CamelCasedPropertiesDeep, ChatElementDisplayLocation, CloseIconVariant, DynamicFiltersScrollbar, ExpandableTextOverrides, Headline, HeadlineProps, HeadlineVariant, ImageWithFallback, IsLowerCase, IsNumeric, IsUpperCase, NoSearchResultsFound, NonRecursiveType, Primitive, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGrid, ProductGridProps, ProductGridVariant, SearchAutocomplete, SearchFilter, SearchFilterHeader, SearchFilterHeaderProps, SearchFilterItem, SearchFilterItemProps, SearchFilterProps, SearchFilterSidebarVariant, SearchInput, SearchInputForm, SearchInputVariant, SearchResponseProductAttributes, SearchResultsFilter, SearchResultsGrid, SearchResultsLoadingGrid, SearchResultsState, SelectFilterItem, SelectedFilterOption, SparkleAnimation, SparkleAnimationOverride, Spinner, SplitWords, SuggestionButton, SuggestionButtonVariant, Text, TextInput, TextType, TextVariant, Trim, UnknownArray, UpperCaseCharacters, Whitespace, WordSeparators, formatPrice, productGridVariantClasses, searchFilterSidebarVariantClasses };
|
package/dist/index.d.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import "./types-Y0WKFOqS.js";
|
|
2
|
-
import { ButtonBase, ButtonBaseOverrides, ButtonBaseProps, ButtonHoverStyles } from "./ButtonBase-DVBSlvQv.js";
|
|
3
|
-
import { Headline } from "./Headline-CRQSK38D.js";
|
|
4
|
-
import { ImageWithFallback } from "./ImageWithFallback-xikP8SY4.js";
|
|
5
|
-
import { AnimatedProductCardOverrides, BuiltIns, CamelCase, CamelCaseOptions, CamelCasedPropertiesDeep, IsLowerCase, IsNumeric, IsUpperCase, NonRecursiveType, Primitive, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, SearchResponseProductAttributes, SplitWords, Trim, UnknownArray, UpperCaseCharacters, Whitespace, WordSeparators } from "./types-CmjqQWAG.js";
|
|
6
|
-
import { ChatElementDisplayLocation, ProductCard } from "./ProductCard-CPOXS9kz.js";
|
|
7
|
-
import { ProductCardSkeleton } from "./ProductCardSkeleton-BD-4l9Ym.js";
|
|
8
|
-
import { ProductGrid } from "./ProductGrid-DDhSKNBT.js";
|
|
9
|
-
import { SparkleAnimation } from "./SparkleAnimation-BStwzL9T.js";
|
|
10
|
-
import { Spinner } from "./Spinner-De8NVcZz.js";
|
|
11
|
-
import { SuggestionButton, SuggestionButtonVariant } from "./SuggestionButton-BoKmwMb3.js";
|
|
12
|
-
import { ExpandableTextOverrides, HeadlineProps, HeadlineVariant, Text, TextType, TextVariant } from "./Text-D8WEjUal.js";
|
|
13
|
-
import { TextInput } from "./TextInput-CtSUuczk.js";
|
|
14
|
-
import { SelectedFilterOption } from "./types-CrKSiwfx.js";
|
|
15
|
-
import { AppliedFiltersScrollbar } from "./AppliedFiltersScrollbar-DrcrTkwX.js";
|
|
16
|
-
import { DynamicFiltersScrollbar } from "./DynamicFiltersScrollbar-DMuCZcGH.js";
|
|
17
|
-
import { SearchFilterHeaderProps, SearchFilterItemProps, SearchFilterProps, SelectFilterItem } from "./types-DSduYC0Z.js";
|
|
18
|
-
import { SearchFilter } from "./SearchFilter-BoCnqT8O.js";
|
|
19
|
-
import { SearchFilterHeader } from "./SearchFilterHeader-C4D38iyw.js";
|
|
20
|
-
import { SearchFilterItem } from "./SearchFilterItem-sOBAQLPQ.js";
|
|
21
|
-
import { SearchInputVariant } from "./types-DIFUT33A.js";
|
|
22
|
-
import { SearchInput } from "./SearchInput-zggwSGKj.js";
|
|
23
|
-
import { SearchAutocomplete } from "./SearchAutocomplete-I5DJkfmd.js";
|
|
24
|
-
import { SearchInputForm } from "./SearchInputForm-D4qh2b7S.js";
|
|
25
|
-
import { CloseIconVariant, SearchFilterSidebarVariant } from "./types-BKI60fVP.js";
|
|
26
|
-
import { SearchResultsFilter } from "./SearchResultsFilter-3U3u9E4U.js";
|
|
27
|
-
import { NoSearchResultsFound } from "./NoSearchResultsFound-C25AsQAI.js";
|
|
28
|
-
import { SearchResultsGrid } from "./SearchResultsGrid-CoWZNxWh.js";
|
|
29
|
-
import { SearchResultsLoadingGrid } from "./SearchResultsLoadingGrid-DN3MQxZi.js";
|
|
30
|
-
|
|
31
|
-
//#region src/components/common/SparkleAnimation/types.d.ts
|
|
32
|
-
declare enum SparkleAnimationOverride {
|
|
33
|
-
CONTAINER = "spiffy-sparkle-animation-container",
|
|
34
|
-
STAR_ONE_CONTAINER = "spiffy-sparkle-animation-star-one-container",
|
|
35
|
-
STAR_TWO_CONTAINER = "spiffy-sparkle-animation-star-two-container",
|
|
36
|
-
STAR_THREE_CONTAINER = "spiffy-sparkle-animation-star-three-container",
|
|
37
|
-
}
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/components/search/types.d.ts
|
|
40
|
-
declare enum SearchResultsState {
|
|
41
|
-
NoResults = "noResults",
|
|
42
|
-
Results = "results",
|
|
43
|
-
Loading = "loading",
|
|
44
|
-
}
|
|
45
|
-
//#endregion
|
|
46
|
-
//#region src/util/formatPrice.d.ts
|
|
47
|
-
declare const formatPrice: (price?: number, currency?: string) => string;
|
|
48
|
-
//#endregion
|
|
49
|
-
//#region src/components/common/ProductGrid/productGridVariants.d.ts
|
|
50
|
-
interface ProductGridVariantClasses {
|
|
51
|
-
productCardVariant: ProductCardVariant;
|
|
52
|
-
productCardHoverVariant: ProductCardHoverVariant;
|
|
53
|
-
productCardLayoutVariant: ProductCardLayoutVariant;
|
|
54
|
-
productCardImageAspectRatio: '3:4' | 'square' | 'none';
|
|
55
|
-
zoomOnHover: boolean;
|
|
56
|
-
}
|
|
57
|
-
declare const productGridVariantClasses: Record<ProductGridVariant, ProductGridVariantClasses>;
|
|
58
|
-
//#endregion
|
|
59
|
-
//#region src/components/search/SearchResultsFilterSidebar/searchFilterSidebarVariants.d.ts
|
|
60
|
-
interface SearchFilterSidebarVariantClasses {
|
|
61
|
-
searchFilterHeaderClasses: string;
|
|
62
|
-
radioButtonFillColor: string;
|
|
63
|
-
radioButtonHoverColor: string;
|
|
64
|
-
radioButtonUncheckedBorderColor: string;
|
|
65
|
-
filterDefaultClasses: string;
|
|
66
|
-
filterActiveClasses: string;
|
|
67
|
-
filterHoverClasses: string;
|
|
68
|
-
appliedFilterBackgroundClasses: string;
|
|
69
|
-
applyFiltersUnchangedClasses: string;
|
|
70
|
-
applyFiltersChangedClasses: string;
|
|
71
|
-
filterCloseIconVariant: CloseIconVariant;
|
|
72
|
-
}
|
|
73
|
-
declare const searchFilterSidebarVariantClasses: Record<SearchFilterSidebarVariant, SearchFilterSidebarVariantClasses>;
|
|
74
|
-
//#endregion
|
|
75
|
-
export { AnimatedProductCardOverrides, AppliedFiltersScrollbar, BuiltIns, ButtonBase, ButtonBaseOverrides, ButtonBaseProps, ButtonHoverStyles, CamelCase, CamelCaseOptions, CamelCasedPropertiesDeep, ChatElementDisplayLocation, CloseIconVariant, DynamicFiltersScrollbar, ExpandableTextOverrides, Headline, HeadlineProps, HeadlineVariant, ImageWithFallback, IsLowerCase, IsNumeric, IsUpperCase, NoSearchResultsFound, NonRecursiveType, Primitive, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGrid, ProductGridProps, ProductGridVariant, SearchAutocomplete, SearchFilter, SearchFilterHeader, SearchFilterHeaderProps, SearchFilterItem, SearchFilterItemProps, SearchFilterProps, SearchFilterSidebarVariant, SearchInput, SearchInputForm, SearchInputVariant, SearchResponseProductAttributes, SearchResultsFilter, SearchResultsGrid, SearchResultsLoadingGrid, SearchResultsState, SelectFilterItem, SelectedFilterOption, SparkleAnimation, SparkleAnimationOverride, Spinner, SplitWords, SuggestionButton, SuggestionButtonVariant, Text, TextInput, TextType, TextVariant, Trim, UnknownArray, UpperCaseCharacters, Whitespace, WordSeparators, formatPrice, productGridVariantClasses, searchFilterSidebarVariantClasses };
|
package/dist/index.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ButtonBase, ButtonBaseOverrides } from "./ButtonBase-Dk_5Bxe0.js";
|
|
2
|
-
import "./textVariantClasses-5t3OricK.js";
|
|
3
|
-
import { Text } from "./Text-Bdv7F5-u.js";
|
|
4
|
-
import { Headline } from "./Headline-ro_Nigw5.js";
|
|
5
|
-
import { ImageWithFallback } from "./ImageWithFallback-CfmkC58B.js";
|
|
6
|
-
import "./productCardVariants-C_QIZ-KF.js";
|
|
7
|
-
import { ProductCard, formatPrice } from "./ProductCard-CLLIICuS.js";
|
|
8
|
-
import { Spinner } from "./Spinner-BZ-kTOpm.js";
|
|
9
|
-
import { AnimatedProductCardOverrides, ProductCardSkeleton, ProductCardSkeletonOverrides } from "./ProductCardSkeleton-lKjP9IjT.js";
|
|
10
|
-
import { productGridVariantClasses } from "./productGridVariants-BNX4YlRK.js";
|
|
11
|
-
import { ChatElementDisplayLocation, ProductGrid } from "./ProductGrid-CGKgdAK7.js";
|
|
12
|
-
import { SparkleAnimation, SparkleAnimationOverride } from "./SparkleAnimation-Df_wUFfB.js";
|
|
13
|
-
import { SuggestionButton } from "./SuggestionButton-C4p08bZv.js";
|
|
14
|
-
import { TextInput } from "./TextInput-BZSsdOtq.js";
|
|
15
|
-
import { AppliedFiltersScrollbar } from "./AppliedFiltersScrollbar-DUo5NSwQ.js";
|
|
16
|
-
import { DynamicFiltersScrollbar } from "./DynamicFiltersScrollbar-BbgfsOpt.js";
|
|
17
|
-
import { SearchFilterItem } from "./SearchFilterItem-CsrO3Om5.js";
|
|
18
|
-
import { SearchFilter } from "./SearchFilter-qTwBmFt1.js";
|
|
19
|
-
import { SearchFilterHeader } from "./SearchFilterHeader-DRA6XMMY.js";
|
|
20
|
-
import "./colorsConfig-l0ODUVhu.js";
|
|
21
|
-
import { SearchInput } from "./SearchInput-Cxg1t9H8.js";
|
|
22
|
-
import { SearchAutocomplete } from "./SearchAutocomplete-D4LkC6bS.js";
|
|
23
|
-
import { SearchInputForm } from "./SearchInputForm-DNEkauQ5.js";
|
|
24
|
-
import { searchFilterSidebarVariantClasses } from "./searchFilterSidebarVariants-ClPVoN5E.js";
|
|
25
|
-
import { SearchResultsFilter } from "./SearchResultsFilter-CVFVMTUO.js";
|
|
26
|
-
import { NoSearchResultsFound } from "./NoSearchResultsFound-q-DgYpjR.js";
|
|
27
|
-
import { SearchResultsGrid } from "./SearchResultsGrid-BXyk2cMd.js";
|
|
28
|
-
import { SearchResultsLoadingGrid } from "./SearchResultsLoadingGrid-BiZ11r8B.js";
|
|
29
|
-
|
|
30
|
-
//#region src/components/common/Text/types.ts
|
|
31
|
-
let ExpandableTextOverrides = /* @__PURE__ */ function(ExpandableTextOverrides$1) {
|
|
32
|
-
ExpandableTextOverrides$1["EXPANDABLE_TEXT_CONTAINER"] = "spiffy-expandable-text-container";
|
|
33
|
-
ExpandableTextOverrides$1["EXPANDABLE_TEXT"] = "spiffy-expandable-text";
|
|
34
|
-
ExpandableTextOverrides$1["EXPANDABLE_BUTTON"] = "spiffy-expandable-button";
|
|
35
|
-
return ExpandableTextOverrides$1;
|
|
36
|
-
}({});
|
|
37
|
-
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/components/search/types.ts
|
|
40
|
-
let SearchResultsState = /* @__PURE__ */ function(SearchResultsState$1) {
|
|
41
|
-
SearchResultsState$1["NoResults"] = "noResults";
|
|
42
|
-
SearchResultsState$1["Results"] = "results";
|
|
43
|
-
SearchResultsState$1["Loading"] = "loading";
|
|
44
|
-
return SearchResultsState$1;
|
|
45
|
-
}({});
|
|
46
|
-
|
|
47
|
-
//#endregion
|
|
48
|
-
export { AnimatedProductCardOverrides, AppliedFiltersScrollbar, ButtonBase, ButtonBaseOverrides, ChatElementDisplayLocation, DynamicFiltersScrollbar, ExpandableTextOverrides, Headline, ImageWithFallback, NoSearchResultsFound, ProductCard, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductGrid, SearchAutocomplete, SearchFilter, SearchFilterHeader, SearchFilterItem, SearchInput, SearchInputForm, SearchResultsFilter, SearchResultsGrid, SearchResultsLoadingGrid, SearchResultsState, SparkleAnimation, SparkleAnimationOverride, Spinner, SuggestionButton, Text, TextInput, formatPrice, productGridVariantClasses, searchFilterSidebarVariantClasses };
|
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
//#region src/types/external.d.ts
|
|
2
|
-
declare enum ResponseCategory {
|
|
3
|
-
Product = "product",
|
|
4
|
-
}
|
|
5
|
-
interface SearchResponseProduct {
|
|
6
|
-
id: string;
|
|
7
|
-
title: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
price?: number;
|
|
10
|
-
currency?: string;
|
|
11
|
-
imageUrl?: string;
|
|
12
|
-
brand?: string;
|
|
13
|
-
category?: string;
|
|
14
|
-
availability?: string;
|
|
15
|
-
url?: string;
|
|
16
|
-
responseId?: string;
|
|
17
|
-
originalPrice?: number;
|
|
18
|
-
salePrice?: number;
|
|
19
|
-
averageRating?: number;
|
|
20
|
-
numberReviews?: number;
|
|
21
|
-
[key: string]: unknown;
|
|
22
|
-
}
|
|
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
|
-
//#region src/util/trim.d.ts
|
|
33
|
-
/**
|
|
34
|
-
* Remove spaces from the left side.
|
|
35
|
-
*/
|
|
36
|
-
type TrimLeft<V extends string> = V extends `${Whitespace}${infer R}` ? TrimLeft<R> : V;
|
|
37
|
-
/**
|
|
38
|
-
* Remove spaces from the right side.
|
|
39
|
-
*/
|
|
40
|
-
type TrimRight<V extends string> = V extends `${infer R}${Whitespace}` ? TrimRight<R> : V;
|
|
41
|
-
/**
|
|
42
|
-
* Remove leading and trailing spaces from a string.
|
|
43
|
-
* @example
|
|
44
|
-
* ```
|
|
45
|
-
* import type {Trim} from 'type-fest';
|
|
46
|
-
*
|
|
47
|
-
* Trim<' foo '>
|
|
48
|
-
* //=> 'foo'
|
|
49
|
-
* ```
|
|
50
|
-
*
|
|
51
|
-
* @category String
|
|
52
|
-
* @category Template literal
|
|
53
|
-
*/
|
|
54
|
-
type Trim<V extends string> = TrimLeft<TrimRight<V>>;
|
|
55
|
-
//#endregion
|
|
56
|
-
//#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
|
-
/**
|
|
66
|
-
* Returns a boolean for whether the string is numeric.
|
|
67
|
-
*
|
|
68
|
-
* This type is a workaround for [Microsoft/TypeScript#46109](https://github.com/microsoft/TypeScript/issues/46109#issuecomment-930307987).
|
|
69
|
-
*/
|
|
70
|
-
type IsNumeric<T extends string> = T extends `${number}` ? Trim<T> extends T ? true : false : false;
|
|
71
|
-
/**
|
|
72
|
-
* Returns a boolean for whether the string is lowercased.
|
|
73
|
-
*/
|
|
74
|
-
type IsLowerCase<T extends string> = T extends Lowercase<T> ? true : false;
|
|
75
|
-
/**
|
|
76
|
-
* Returns a boolean for whether the string is upper-cased.
|
|
77
|
-
*/
|
|
78
|
-
type IsUpperCase<T extends string> = T extends Uppercase<T> ? true : false;
|
|
79
|
-
type WordSeparators = '-' | '_' | Whitespace;
|
|
80
|
-
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
|
-
//#endregion
|
|
83
|
-
//#region src/util/splitWords.d.ts
|
|
84
|
-
type SkipEmptyWord<Word extends string> = Word extends '' ? [] : [Word];
|
|
85
|
-
type RemoveLastCharacter<Sentence extends string, Character extends string> = Sentence extends `${infer LeftSide}${Character}` ? SkipEmptyWord<LeftSide> : never;
|
|
86
|
-
/**
|
|
87
|
-
* Split a string (almost) like Lodash's `_.words()` function.
|
|
88
|
-
*
|
|
89
|
-
* - Split on each word that begins with a capital letter.
|
|
90
|
-
* - Split on each {@link WordSeparators}.
|
|
91
|
-
* - Split on numeric sequence.
|
|
92
|
-
*
|
|
93
|
-
* @example
|
|
94
|
-
* ```
|
|
95
|
-
* type Words0 = SplitWords<'helloWorld'>; // ['hello', 'World']
|
|
96
|
-
* type Words1 = SplitWords<'helloWORLD'>; // ['hello', 'WORLD']
|
|
97
|
-
* type Words2 = SplitWords<'hello-world'>; // ['hello', 'world']
|
|
98
|
-
* type Words3 = SplitWords<'--hello the_world'>; // ['hello', 'the', 'world']
|
|
99
|
-
* type Words4 = SplitWords<'lifeIs42'>; // ['life', 'Is', '42']
|
|
100
|
-
* ```
|
|
101
|
-
*
|
|
102
|
-
* @internal
|
|
103
|
-
* @category Change case
|
|
104
|
-
* @category Template literal
|
|
105
|
-
*/
|
|
106
|
-
type SplitWords<Sentence extends string, LastCharacter extends string = '', CurrentWord extends string = ''> = Sentence extends `${infer FirstCharacter}${infer RemainingCharacters}` ? FirstCharacter extends WordSeparators ? [...SkipEmptyWord<CurrentWord>, ...SplitWords<RemainingCharacters>] : LastCharacter extends '' ? SplitWords<RemainingCharacters, FirstCharacter, FirstCharacter> : [false, true] extends [IsNumeric<LastCharacter>, IsNumeric<FirstCharacter>] ? [...SkipEmptyWord<CurrentWord>, ...SplitWords<RemainingCharacters, FirstCharacter, FirstCharacter>] : [true, false] extends [IsNumeric<LastCharacter>, IsNumeric<FirstCharacter>] ? [...SkipEmptyWord<CurrentWord>, ...SplitWords<RemainingCharacters, FirstCharacter, FirstCharacter>] : [true, true] extends [IsNumeric<LastCharacter>, IsNumeric<FirstCharacter>] ? SplitWords<RemainingCharacters, FirstCharacter, `${CurrentWord}${FirstCharacter}`> : [true, true] extends [IsLowerCase<LastCharacter>, IsUpperCase<FirstCharacter>] ? [...SkipEmptyWord<CurrentWord>, ...SplitWords<RemainingCharacters, FirstCharacter, FirstCharacter>] : [true, true] extends [IsUpperCase<LastCharacter>, IsLowerCase<FirstCharacter>] ? [...RemoveLastCharacter<CurrentWord, LastCharacter>, ...SplitWords<RemainingCharacters, FirstCharacter, `${LastCharacter}${FirstCharacter}`>] : SplitWords<RemainingCharacters, FirstCharacter, `${CurrentWord}${FirstCharacter}`> : [...SkipEmptyWord<CurrentWord>];
|
|
107
|
-
//#endregion
|
|
108
|
-
//#region src/util/camelCase.d.ts
|
|
109
|
-
/**
|
|
110
|
-
* CamelCase options.
|
|
111
|
-
*
|
|
112
|
-
* @see {@link CamelCase}
|
|
113
|
-
*/
|
|
114
|
-
type CamelCaseOptions = {
|
|
115
|
-
/**
|
|
116
|
-
* Whether to preserved consecutive uppercase letter.
|
|
117
|
-
*
|
|
118
|
-
* @default true
|
|
119
|
-
*/
|
|
120
|
-
preserveConsecutiveUppercase?: boolean;
|
|
121
|
-
};
|
|
122
|
-
/**
|
|
123
|
-
* Convert an array of words to camel-case.
|
|
124
|
-
*/
|
|
125
|
-
type CamelCaseFromArray<Words extends string[], Options extends CamelCaseOptions, OutputString extends string = ''> = Words extends [infer FirstWord extends string, ...infer RemainingWords extends string[]] ? Options['preserveConsecutiveUppercase'] extends true ? `${Capitalize<FirstWord>}${CamelCaseFromArray<RemainingWords, Options>}` : `${Capitalize<Lowercase<FirstWord>>}${CamelCaseFromArray<RemainingWords, Options>}` : OutputString;
|
|
126
|
-
/**
|
|
127
|
-
* Convert a string literal to camel-case.
|
|
128
|
-
*
|
|
129
|
-
* This can be useful when, for example, converting some kebab-cased command-line flags or a snake-cased database result.
|
|
130
|
-
*
|
|
131
|
-
* By default, consecutive uppercase letter are preserved. See {@link CamelCaseOptions.preserveConsecutiveUppercase preserveConsecutiveUppercase} option to change this behaviour.
|
|
132
|
-
*
|
|
133
|
-
* @example
|
|
134
|
-
* ```
|
|
135
|
-
* import type {CamelCase} from 'type-fest';
|
|
136
|
-
*
|
|
137
|
-
* // Simple
|
|
138
|
-
*
|
|
139
|
-
* const someVariable: CamelCase<'foo-bar'> = 'fooBar';
|
|
140
|
-
*
|
|
141
|
-
* // Advanced
|
|
142
|
-
*
|
|
143
|
-
* type CamelCasedProperties<T> = {
|
|
144
|
-
* [K in keyof T as CamelCase<K>]: T[K]
|
|
145
|
-
* };
|
|
146
|
-
*
|
|
147
|
-
* interface RawOptions {
|
|
148
|
-
* 'dry-run': boolean;
|
|
149
|
-
* 'full_family_name': string;
|
|
150
|
-
* foo: number;
|
|
151
|
-
* BAR: string;
|
|
152
|
-
* QUZ_QUX: number;
|
|
153
|
-
* 'OTHER-FIELD': boolean;
|
|
154
|
-
* }
|
|
155
|
-
*
|
|
156
|
-
* const dbResult: CamelCasedProperties<RawOptions> = {
|
|
157
|
-
* dryRun: true,
|
|
158
|
-
* fullFamilyName: 'bar.js',
|
|
159
|
-
* foo: 123,
|
|
160
|
-
* bar: 'foo',
|
|
161
|
-
* quzQux: 6,
|
|
162
|
-
* otherField: false
|
|
163
|
-
* };
|
|
164
|
-
* ```
|
|
165
|
-
*
|
|
166
|
-
* @category Change case
|
|
167
|
-
* @category Template literal
|
|
168
|
-
*/
|
|
169
|
-
type CamelCase<Type, Options extends CamelCaseOptions = {
|
|
170
|
-
preserveConsecutiveUppercase: true;
|
|
171
|
-
}> = Type extends string ? string extends Type ? Type : Uncapitalize<CamelCaseFromArray<SplitWords<Type extends Uppercase<Type> ? Lowercase<Type> : Type>, Options>> : Type;
|
|
172
|
-
//#endregion
|
|
173
|
-
//#region src/util/unknownArray.d.ts
|
|
174
|
-
/**
|
|
175
|
-
* Represents an array with `unknown` value.
|
|
176
|
-
*
|
|
177
|
-
* Use case: You want a type that all arrays can be assigned to, but you don't care about the value.
|
|
178
|
-
*
|
|
179
|
-
* @example
|
|
180
|
-
* ```
|
|
181
|
-
* import type {UnknownArray} from 'type-fest';
|
|
182
|
-
*
|
|
183
|
-
* type IsArray<T> = T extends UnknownArray ? true : false;
|
|
184
|
-
*
|
|
185
|
-
* type A = IsArray<['foo']>;
|
|
186
|
-
* //=> true
|
|
187
|
-
*
|
|
188
|
-
* type B = IsArray<readonly number[]>;
|
|
189
|
-
* //=> true
|
|
190
|
-
*
|
|
191
|
-
* type C = IsArray<string>;
|
|
192
|
-
* //=> false
|
|
193
|
-
* ```
|
|
194
|
-
*
|
|
195
|
-
* @category Type
|
|
196
|
-
* @category Array
|
|
197
|
-
*/
|
|
198
|
-
type UnknownArray = readonly unknown[];
|
|
199
|
-
//#endregion
|
|
200
|
-
//#region src/util/camelCasedPropertiesDeep.d.ts
|
|
201
|
-
/**
|
|
202
|
-
* Convert object properties to camel case recursively.
|
|
203
|
-
*
|
|
204
|
-
* This can be useful when, for example, converting some API types from a different style.
|
|
205
|
-
*
|
|
206
|
-
* @see CamelCasedProperties
|
|
207
|
-
* @see CamelCase
|
|
208
|
-
*
|
|
209
|
-
* @example
|
|
210
|
-
* ```
|
|
211
|
-
* import type {CamelCasedPropertiesDeep} from 'type-fest';
|
|
212
|
-
*
|
|
213
|
-
* interface User {
|
|
214
|
-
* UserId: number;
|
|
215
|
-
* UserName: string;
|
|
216
|
-
* }
|
|
217
|
-
*
|
|
218
|
-
* interface UserWithFriends {
|
|
219
|
-
* UserInfo: User;
|
|
220
|
-
* UserFriends: User[];
|
|
221
|
-
* }
|
|
222
|
-
*
|
|
223
|
-
* const result: CamelCasedPropertiesDeep<UserWithFriends> = {
|
|
224
|
-
* userInfo: {
|
|
225
|
-
* userId: 1,
|
|
226
|
-
* userName: 'Tom',
|
|
227
|
-
* },
|
|
228
|
-
* userFriends: [
|
|
229
|
-
* {
|
|
230
|
-
* userId: 2,
|
|
231
|
-
* userName: 'Jerry',
|
|
232
|
-
* },
|
|
233
|
-
* {
|
|
234
|
-
* userId: 3,
|
|
235
|
-
* userName: 'Spike',
|
|
236
|
-
* },
|
|
237
|
-
* ],
|
|
238
|
-
* };
|
|
239
|
-
* ```
|
|
240
|
-
*
|
|
241
|
-
* @category Change case
|
|
242
|
-
* @category Template literal
|
|
243
|
-
* @category Object
|
|
244
|
-
*/
|
|
245
|
-
type CamelCasedPropertiesDeep<Value, Options extends CamelCaseOptions = {
|
|
246
|
-
preserveConsecutiveUppercase: true;
|
|
247
|
-
}> = 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
|
-
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
|
-
//#endregion
|
|
250
|
-
//#region src/components/common/ProductCard/types.d.ts
|
|
251
|
-
declare enum ProductCardSkeletonOverrides {
|
|
252
|
-
PRODUCT_CARD_SKELETON_CONTAINER = "spiffy-product-card-skeleton-container",
|
|
253
|
-
PRODUCT_CARD_SKELETON = "spiffy-product-card-skeleton",
|
|
254
|
-
}
|
|
255
|
-
declare enum AnimatedProductCardOverrides {
|
|
256
|
-
PRODUCT_CARD_ANIMATED_CONTAINER = "spiffy-product-card-animated-container",
|
|
257
|
-
PRODUCT_CARD_ANIMATED_IMAGE_CONTAINER = "spiffy-product-card-animated",
|
|
258
|
-
}
|
|
259
|
-
type ProductGridVariant = 'standard' | 'square';
|
|
260
|
-
type ProductCardVariant = 'filled' | 'bordered' | 'minimal' | 'transparentBordered';
|
|
261
|
-
type ProductCardHoverVariant = 'backgroundDark' | 'none';
|
|
262
|
-
type ProductCardLayoutVariant = 'normal' | 'tall' | 'square';
|
|
263
|
-
type ProductCardImageAspectRatio = '1/1' | '4/3' | '3/4' | '16/9' | '9/16';
|
|
264
|
-
interface ProductCardConfig {
|
|
265
|
-
variant: ProductCardVariant;
|
|
266
|
-
hoverVariant: ProductCardHoverVariant;
|
|
267
|
-
layoutVariant: ProductCardLayoutVariant;
|
|
268
|
-
pricePrefix?: string;
|
|
269
|
-
}
|
|
270
|
-
interface SearchResponseProductAttributes {
|
|
271
|
-
category: ResponseCategory.Product;
|
|
272
|
-
attributes: CamelCasedPropertiesDeep<SearchResponseProduct>;
|
|
273
|
-
}
|
|
274
|
-
interface ProductCardSkeletonProps {
|
|
275
|
-
layoutVariant: ProductCardLayoutVariant;
|
|
276
|
-
aspectRatio: ProductCardImageAspectRatio;
|
|
277
|
-
growWithContainer?: boolean;
|
|
278
|
-
}
|
|
279
|
-
interface ProductGridProps {
|
|
280
|
-
productList: SearchResponseProductAttributes['attributes'][];
|
|
281
|
-
productGridVariant: ProductGridVariant;
|
|
282
|
-
productGridClasses: string;
|
|
283
|
-
productCardConfig?: ProductCardConfig;
|
|
284
|
-
merchantShortName: string;
|
|
285
|
-
searchResponseId: string;
|
|
286
|
-
cardsGrowWithContainer?: boolean;
|
|
287
|
-
}
|
|
288
|
-
//#endregion
|
|
289
|
-
export { AnimatedProductCardOverrides, BuiltIns, CamelCase, CamelCaseOptions, CamelCasedPropertiesDeep, IsLowerCase, IsNumeric, IsUpperCase, NonRecursiveType, Primitive, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, SearchResponseProduct, SearchResponseProductAttributes, SplitWords, Trim, UnknownArray, UpperCaseCharacters, Whitespace, WordSeparators };
|