@envive-ai/react-toolkit 0.1.1 → 0.1.3
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/AppliedFiltersScrollbar-Cd6jgn-c.cjs +53 -0
- package/dist/AppliedFiltersScrollbar-CeMmITGf.d.cts +22 -0
- package/dist/AppliedFiltersScrollbar-DUo5NSwQ.js +44 -0
- package/dist/AppliedFiltersScrollbar-DrcrTkwX.d.ts +22 -0
- package/dist/ButtonBase-2R-hB-y8.d.cts +43 -0
- package/dist/ButtonBase-DVBSlvQv.d.ts +43 -0
- package/dist/ButtonBase-Dk_5Bxe0.js +60 -0
- package/dist/ButtonBase-RIYFAcSy.cjs +75 -0
- package/dist/DynamicFiltersScrollbar-BbgfsOpt.js +32 -0
- package/dist/DynamicFiltersScrollbar-CHI1YQZ7.d.cts +28 -0
- package/dist/DynamicFiltersScrollbar-DMuCZcGH.d.ts +28 -0
- package/dist/DynamicFiltersScrollbar-FKO8Qb5u.cjs +41 -0
- package/dist/Headline-B8ivXd0O.d.cts +21 -0
- package/dist/Headline-CRQSK38D.d.ts +21 -0
- package/dist/Headline-L7w3BsBF.cjs +72 -0
- package/dist/Headline-ro_Nigw5.js +64 -0
- package/dist/ImageWithFallback-CfmkC58B.js +42 -0
- package/dist/ImageWithFallback-D70hTBkZ.d.cts +26 -0
- package/dist/ImageWithFallback-P3AjyL2Y.cjs +51 -0
- package/dist/ImageWithFallback-xikP8SY4.d.ts +26 -0
- package/dist/NoSearchResultsFound-C25AsQAI.d.ts +17 -0
- package/dist/NoSearchResultsFound-jT3JwiYm.cjs +34 -0
- package/dist/NoSearchResultsFound-lpvz_Gq-.d.cts +17 -0
- package/dist/NoSearchResultsFound-q-DgYpjR.js +25 -0
- package/dist/ProductCard-CLLIICuS.js +172 -0
- package/dist/ProductCard-CPOXS9kz.d.ts +91 -0
- package/dist/ProductCard-CTm2sGVZ.d.cts +91 -0
- package/dist/ProductCard-DSmiLLCO.cjs +199 -0
- package/dist/ProductCardSkeleton-BD-4l9Ym.d.ts +12 -0
- package/dist/ProductCardSkeleton-CgpRxzKt.d.cts +12 -0
- package/dist/ProductCardSkeleton-Pp0UQG-h.cjs +63 -0
- package/dist/ProductCardSkeleton-lKjP9IjT.js +43 -0
- package/dist/ProductGrid-CGKgdAK7.js +69 -0
- package/dist/ProductGrid-CocLTY7Q.cjs +83 -0
- package/dist/ProductGrid-DDhSKNBT.d.ts +26 -0
- package/dist/ProductGrid-Lts9Xv83.d.cts +26 -0
- package/dist/SearchAutocomplete-5gSMPXfM.d.cts +13 -0
- package/dist/SearchAutocomplete-CIsbwN0M.cjs +62 -0
- package/dist/SearchAutocomplete-D4LkC6bS.js +51 -0
- package/dist/SearchAutocomplete-I5DJkfmd.d.ts +13 -0
- package/dist/SearchFilter-BoCnqT8O.d.ts +18 -0
- package/dist/SearchFilter-D9_2Bdu0.cjs +70 -0
- package/dist/SearchFilter-DK7f_J7J.d.cts +18 -0
- package/dist/SearchFilter-qTwBmFt1.js +62 -0
- package/dist/SearchFilterHeader-C4D38iyw.d.ts +12 -0
- package/dist/SearchFilterHeader-CcHU0lN_.cjs +45 -0
- package/dist/SearchFilterHeader-DRA6XMMY.js +37 -0
- package/dist/SearchFilterHeader-TQ_MapZI.d.cts +12 -0
- package/dist/SearchFilterItem-C3F8x3M3.d.cts +13 -0
- package/dist/SearchFilterItem-CsrO3Om5.js +26 -0
- package/dist/SearchFilterItem-DJrPcYtU.cjs +34 -0
- package/dist/SearchFilterItem-sOBAQLPQ.d.ts +13 -0
- package/dist/SearchInput-Cxg1t9H8.js +89 -0
- package/dist/SearchInput-D2yMIYtf.cjs +106 -0
- package/dist/SearchInput-DzLynEd6.d.cts +20 -0
- package/dist/SearchInput-zggwSGKj.d.ts +20 -0
- package/dist/SearchInputForm-BWMdfatv.d.cts +32 -0
- package/dist/SearchInputForm-D4qh2b7S.d.ts +32 -0
- package/dist/SearchInputForm-DNEkauQ5.js +33 -0
- package/dist/SearchInputForm-z5RFjdh2.cjs +40 -0
- package/dist/SearchResultsFilter-3U3u9E4U.d.ts +28 -0
- package/dist/SearchResultsFilter-CVFVMTUO.js +45 -0
- package/dist/SearchResultsFilter-DdF8BeDA.cjs +53 -0
- package/dist/SearchResultsFilter-RuaEmhp5.d.cts +28 -0
- package/dist/SearchResultsGrid-B7bjLKye.cjs +62 -0
- package/dist/SearchResultsGrid-BXyk2cMd.js +53 -0
- package/dist/SearchResultsGrid-CLldvt66.d.cts +41 -0
- package/dist/SearchResultsGrid-CoWZNxWh.d.ts +41 -0
- package/dist/SearchResultsLoadingGrid-4QzwkBiT.cjs +55 -0
- package/dist/SearchResultsLoadingGrid-BiZ11r8B.js +47 -0
- package/dist/SearchResultsLoadingGrid-DN3MQxZi.d.ts +15 -0
- package/dist/SearchResultsLoadingGrid-XA5pUZAz.d.cts +15 -0
- package/dist/SparkleAnimation-BStwzL9T.d.ts +15 -0
- package/dist/SparkleAnimation-CVu9vUAb.cjs +102 -0
- package/dist/SparkleAnimation-DKhQSeVg.d.cts +15 -0
- package/dist/SparkleAnimation-Df_wUFfB.js +85 -0
- package/dist/Spinner-79PaZrmy.d.cts +11 -0
- package/dist/Spinner-BZ-kTOpm.js +38 -0
- package/dist/Spinner-CfQ85Ajl.cjs +46 -0
- package/dist/Spinner-De8NVcZz.d.ts +11 -0
- package/dist/SuggestionButton-BVzBCzmQ.cjs +206 -0
- package/dist/SuggestionButton-BoKmwMb3.d.ts +35 -0
- package/dist/SuggestionButton-C4p08bZv.js +178 -0
- package/dist/SuggestionButton-CNwyzi1V.d.cts +35 -0
- package/dist/Text-Bdv7F5-u.js +42 -0
- package/dist/Text-C04c4Z93.cjs +50 -0
- package/dist/Text-D8WEjUal.d.ts +41 -0
- package/dist/Text-D8bCCNPT.d.cts +41 -0
- package/dist/TextInput-BZSsdOtq.js +31 -0
- package/dist/TextInput-CZogcpzR.cjs +40 -0
- package/dist/TextInput-CtSUuczk.d.ts +98 -0
- package/dist/TextInput-QqdJV52m.d.cts +98 -0
- package/dist/chunk-CUT6urMc.cjs +30 -0
- package/dist/colorsConfig-TCONYTQ7.cjs +38 -0
- package/dist/colorsConfig-l0ODUVhu.js +26 -0
- package/dist/components/common/ButtonBase/ButtonBase.cjs +5 -0
- package/dist/components/common/ButtonBase/ButtonBase.d.cts +3 -0
- package/dist/components/common/ButtonBase/ButtonBase.d.ts +3 -0
- package/dist/components/common/ButtonBase/ButtonBase.js +5 -0
- package/dist/components/common/Headline/Headline.cjs +4 -0
- package/dist/components/common/Headline/Headline.d.cts +2 -0
- package/dist/components/common/Headline/Headline.d.ts +2 -0
- package/dist/components/common/Headline/Headline.js +4 -0
- package/dist/components/common/ImageWithFallback/ImageWithFallback.cjs +3 -0
- package/dist/components/common/ImageWithFallback/ImageWithFallback.d.cts +2 -0
- package/dist/components/common/ImageWithFallback/ImageWithFallback.d.ts +2 -0
- package/dist/components/common/ImageWithFallback/ImageWithFallback.js +3 -0
- package/dist/components/common/ProductCard/ProductCard.cjs +11 -0
- package/dist/components/common/ProductCard/ProductCard.d.cts +4 -0
- package/dist/components/common/ProductCard/ProductCard.d.ts +4 -0
- package/dist/components/common/ProductCard/ProductCard.js +9 -0
- package/dist/components/common/ProductCard/ProductCardSkeleton.cjs +4 -0
- package/dist/components/common/ProductCard/ProductCardSkeleton.d.cts +3 -0
- package/dist/components/common/ProductCard/ProductCardSkeleton.d.ts +3 -0
- package/dist/components/common/ProductCard/ProductCardSkeleton.js +4 -0
- package/dist/components/common/ProductGrid/ProductGrid.cjs +11 -0
- package/dist/components/common/ProductGrid/ProductGrid.d.cts +3 -0
- package/dist/components/common/ProductGrid/ProductGrid.d.ts +3 -0
- package/dist/components/common/ProductGrid/ProductGrid.js +11 -0
- package/dist/components/common/SparkleAnimation/SparkleAnimation.cjs +3 -0
- package/dist/components/common/SparkleAnimation/SparkleAnimation.d.cts +2 -0
- package/dist/components/common/SparkleAnimation/SparkleAnimation.d.ts +2 -0
- package/dist/components/common/SparkleAnimation/SparkleAnimation.js +3 -0
- package/dist/components/common/Spinner/Spinner.cjs +3 -0
- package/dist/components/common/Spinner/Spinner.d.cts +2 -0
- package/dist/components/common/Spinner/Spinner.d.ts +2 -0
- package/dist/components/common/Spinner/Spinner.js +3 -0
- package/dist/components/common/SuggestionButton/SuggestionButton.cjs +9 -0
- package/dist/components/common/SuggestionButton/SuggestionButton.d.cts +3 -0
- package/dist/components/common/SuggestionButton/SuggestionButton.d.ts +3 -0
- package/dist/components/common/SuggestionButton/SuggestionButton.js +6 -0
- package/dist/components/common/Text/Text.cjs +4 -0
- package/dist/components/common/Text/Text.d.cts +2 -0
- package/dist/components/common/Text/Text.d.ts +2 -0
- package/dist/components/common/Text/Text.js +4 -0
- package/dist/components/common/TextInput/TextInput.cjs +4 -0
- package/dist/components/common/TextInput/TextInput.d.cts +2 -0
- package/dist/components/common/TextInput/TextInput.d.ts +2 -0
- package/dist/components/common/TextInput/TextInput.js +4 -0
- package/dist/components/search/FilterScrollbar/AppliedFiltersScrollbar.cjs +5 -0
- package/dist/components/search/FilterScrollbar/AppliedFiltersScrollbar.d.cts +3 -0
- package/dist/components/search/FilterScrollbar/AppliedFiltersScrollbar.d.ts +3 -0
- package/dist/components/search/FilterScrollbar/AppliedFiltersScrollbar.js +5 -0
- package/dist/components/search/FilterScrollbar/DynamicFiltersScrollbar.cjs +5 -0
- package/dist/components/search/FilterScrollbar/DynamicFiltersScrollbar.d.cts +2 -0
- package/dist/components/search/FilterScrollbar/DynamicFiltersScrollbar.d.ts +2 -0
- package/dist/components/search/FilterScrollbar/DynamicFiltersScrollbar.js +5 -0
- package/dist/components/search/SearchFilter/SearchFilter.cjs +7 -0
- package/dist/components/search/SearchFilter/SearchFilter.d.cts +3 -0
- package/dist/components/search/SearchFilter/SearchFilter.d.ts +3 -0
- package/dist/components/search/SearchFilter/SearchFilter.js +7 -0
- package/dist/components/search/SearchFilter/SearchFilterHeader.cjs +5 -0
- package/dist/components/search/SearchFilter/SearchFilterHeader.d.cts +3 -0
- package/dist/components/search/SearchFilter/SearchFilterHeader.d.ts +3 -0
- package/dist/components/search/SearchFilter/SearchFilterHeader.js +5 -0
- package/dist/components/search/SearchFilter/SearchFilterItem.cjs +5 -0
- package/dist/components/search/SearchFilter/SearchFilterItem.d.cts +3 -0
- package/dist/components/search/SearchFilter/SearchFilterItem.d.ts +3 -0
- package/dist/components/search/SearchFilter/SearchFilterItem.js +5 -0
- package/dist/components/search/SearchInput/SearchInput.cjs +6 -0
- package/dist/components/search/SearchInput/SearchInput.d.cts +3 -0
- package/dist/components/search/SearchInput/SearchInput.d.ts +3 -0
- package/dist/components/search/SearchInput/SearchInput.js +6 -0
- package/dist/components/search/SearchInputAutocomplete/SearchAutocomplete.cjs +3 -0
- package/dist/components/search/SearchInputAutocomplete/SearchAutocomplete.d.cts +2 -0
- package/dist/components/search/SearchInputAutocomplete/SearchAutocomplete.d.ts +2 -0
- package/dist/components/search/SearchInputAutocomplete/SearchAutocomplete.js +3 -0
- package/dist/components/search/SearchInputForm/SearchInputForm.cjs +8 -0
- package/dist/components/search/SearchInputForm/SearchInputForm.d.cts +3 -0
- package/dist/components/search/SearchInputForm/SearchInputForm.d.ts +3 -0
- package/dist/components/search/SearchInputForm/SearchInputForm.js +8 -0
- package/dist/components/search/SearchResultsFilterSidebar/SearchResultsFilter.cjs +11 -0
- package/dist/components/search/SearchResultsFilterSidebar/SearchResultsFilter.d.cts +4 -0
- package/dist/components/search/SearchResultsFilterSidebar/SearchResultsFilter.d.ts +4 -0
- package/dist/components/search/SearchResultsFilterSidebar/SearchResultsFilter.js +11 -0
- package/dist/components/search/SearchResultsStates/NoSearchResultsFound.cjs +5 -0
- package/dist/components/search/SearchResultsStates/NoSearchResultsFound.d.cts +2 -0
- package/dist/components/search/SearchResultsStates/NoSearchResultsFound.d.ts +2 -0
- package/dist/components/search/SearchResultsStates/NoSearchResultsFound.js +5 -0
- package/dist/components/search/SearchResultsStates/SearchResultsGrid.cjs +16 -0
- package/dist/components/search/SearchResultsStates/SearchResultsGrid.d.cts +5 -0
- package/dist/components/search/SearchResultsStates/SearchResultsGrid.d.ts +5 -0
- package/dist/components/search/SearchResultsStates/SearchResultsGrid.js +16 -0
- package/dist/components/search/SearchResultsStates/SearchResultsLoadingGrid.cjs +9 -0
- package/dist/components/search/SearchResultsStates/SearchResultsLoadingGrid.d.cts +3 -0
- package/dist/components/search/SearchResultsStates/SearchResultsLoadingGrid.d.ts +3 -0
- package/dist/components/search/SearchResultsStates/SearchResultsLoadingGrid.js +9 -0
- package/dist/index.cjs +80 -0
- package/dist/index.d.cts +75 -0
- package/dist/index.d.ts +75 -0
- package/dist/index.js +48 -0
- package/dist/productCardVariants-C_QIZ-KF.js +45 -0
- package/dist/productCardVariants-Dd-wrJKP.cjs +69 -0
- package/dist/productGridVariants-BNX4YlRK.js +20 -0
- package/dist/productGridVariants-CsNV0ACt.cjs +26 -0
- package/dist/searchFilterSidebarVariants-2hFLDP6e.cjs +39 -0
- package/dist/searchFilterSidebarVariants-ClPVoN5E.js +34 -0
- package/dist/textVariantClasses-5t3OricK.js +101 -0
- package/dist/textVariantClasses-Bhf4VY5z.cjs +125 -0
- package/dist/types--SBcFTJX.d.cts +289 -0
- package/dist/types-BKI60fVP.d.ts +5 -0
- package/dist/types-CmjqQWAG.d.ts +289 -0
- package/dist/types-CrKSiwfx.d.ts +8 -0
- package/dist/types-D2gzKgxc.d.cts +5 -0
- package/dist/types-DBFHTDLN.d.cts +8 -0
- package/dist/types-DIFUT33A.d.ts +4 -0
- package/dist/types-DSduYC0Z.d.ts +46 -0
- package/dist/types-TYhhwWZw.d.cts +6 -0
- package/dist/types-Y0WKFOqS.d.ts +6 -0
- package/dist/types-ZUUsuyGT.d.cts +4 -0
- package/dist/types-pOHvi423.d.cts +46 -0
- package/package.json +8 -8
- package/src/components/common/ButtonBase/ButtonBase.tsx +2 -2
- package/src/components/common/ButtonBase/types.ts +2 -3
- package/src/index.ts +14 -15
- package/dist/src/atoms/search/types.d.ts +0 -5
- package/dist/src/atoms/search/types.js +0 -1
- package/dist/src/components/common/ButtonBase/ButtonBase.d.ts +0 -2
- package/dist/src/components/common/ButtonBase/ButtonBase.js +0 -41
- package/dist/src/components/common/ButtonBase/types.d.ts +0 -24
- package/dist/src/components/common/ButtonBase/types.js +0 -6
- package/dist/src/components/common/Headline/Headline.d.ts +0 -10
- package/dist/src/components/common/Headline/Headline.js +0 -34
- package/dist/src/components/common/ImageWithFallback/ImageWithFallback.d.ts +0 -12
- package/dist/src/components/common/ImageWithFallback/ImageWithFallback.js +0 -26
- package/dist/src/components/common/ProductCard/ProductCard.d.ts +0 -39
- package/dist/src/components/common/ProductCard/ProductCard.js +0 -84
- package/dist/src/components/common/ProductCard/ProductCardSkeleton.d.ts +0 -9
- package/dist/src/components/common/ProductCard/ProductCardSkeleton.js +0 -15
- package/dist/src/components/common/ProductCard/productCardVariants.d.ts +0 -8
- package/dist/src/components/common/ProductCard/productCardVariants.js +0 -50
- package/dist/src/components/common/ProductCard/types.d.ts +0 -39
- package/dist/src/components/common/ProductCard/types.js +0 -10
- package/dist/src/components/common/ProductGrid/ProductGrid.d.ts +0 -14
- package/dist/src/components/common/ProductGrid/ProductGrid.js +0 -13
- package/dist/src/components/common/ProductGrid/productGridVariants.d.ts +0 -10
- package/dist/src/components/common/ProductGrid/productGridVariants.js +0 -16
- package/dist/src/components/common/SparkleAnimation/SparkleAnimation.d.ts +0 -7
- package/dist/src/components/common/SparkleAnimation/SparkleAnimation.js +0 -40
- package/dist/src/components/common/SparkleAnimation/types.d.ts +0 -6
- package/dist/src/components/common/SparkleAnimation/types.js +0 -7
- package/dist/src/components/common/Spinner/Spinner.d.ts +0 -5
- package/dist/src/components/common/Spinner/Spinner.js +0 -16
- package/dist/src/components/common/SuggestionButton/SuggestionButton.d.ts +0 -18
- package/dist/src/components/common/SuggestionButton/SuggestionButton.js +0 -210
- package/dist/src/components/common/SuggestionButton/types.d.ts +0 -1
- package/dist/src/components/common/SuggestionButton/types.js +0 -1
- package/dist/src/components/common/Text/Text.d.ts +0 -12
- package/dist/src/components/common/Text/Text.js +0 -26
- package/dist/src/components/common/Text/textVariantClasses.d.ts +0 -171
- package/dist/src/components/common/Text/textVariantClasses.js +0 -103
- package/dist/src/components/common/Text/types.d.ts +0 -16
- package/dist/src/components/common/Text/types.js +0 -6
- package/dist/src/components/common/TextInput/TextInput.d.ts +0 -8
- package/dist/src/components/common/TextInput/TextInput.js +0 -25
- package/dist/src/components/models/colorsConfig.d.ts +0 -26
- package/dist/src/components/models/colorsConfig.js +0 -23
- package/dist/src/components/search/FilterScrollbar/AppliedFiltersScrollbar.d.ts +0 -11
- package/dist/src/components/search/FilterScrollbar/AppliedFiltersScrollbar.js +0 -18
- package/dist/src/components/search/FilterScrollbar/DynamicFiltersScrollbar.d.ts +0 -15
- package/dist/src/components/search/FilterScrollbar/DynamicFiltersScrollbar.js +0 -15
- package/dist/src/components/search/SearchFilter/SearchFilter.d.ts +0 -2
- package/dist/src/components/search/SearchFilter/SearchFilter.js +0 -24
- package/dist/src/components/search/SearchFilter/SearchFilterHeader.d.ts +0 -2
- package/dist/src/components/search/SearchFilter/SearchFilterHeader.js +0 -9
- package/dist/src/components/search/SearchFilter/SearchFilterItem.d.ts +0 -2
- package/dist/src/components/search/SearchFilter/SearchFilterItem.js +0 -13
- package/dist/src/components/search/SearchFilter/types.d.ts +0 -42
- package/dist/src/components/search/SearchFilter/types.js +0 -1
- package/dist/src/components/search/SearchInput/SearchInput.d.ts +0 -16
- package/dist/src/components/search/SearchInput/SearchInput.js +0 -38
- package/dist/src/components/search/SearchInput/searchInputVariants.d.ts +0 -13
- package/dist/src/components/search/SearchInput/searchInputVariants.js +0 -12
- package/dist/src/components/search/SearchInputAutocomplete/SearchAutocomplete.d.ts +0 -10
- package/dist/src/components/search/SearchInputAutocomplete/SearchAutocomplete.js +0 -14
- package/dist/src/components/search/SearchInputForm/SearchInputForm.d.ts +0 -16
- package/dist/src/components/search/SearchInputForm/SearchInputForm.js +0 -13
- package/dist/src/components/search/SearchInputForm/types.d.ts +0 -1
- package/dist/src/components/search/SearchInputForm/types.js +0 -1
- package/dist/src/components/search/SearchResultsFilterSidebar/SearchResultsFilter.d.ts +0 -14
- package/dist/src/components/search/SearchResultsFilterSidebar/SearchResultsFilter.js +0 -15
- package/dist/src/components/search/SearchResultsFilterSidebar/searchFilterSidebarVariants.d.ts +0 -16
- package/dist/src/components/search/SearchResultsFilterSidebar/searchFilterSidebarVariants.js +0 -29
- package/dist/src/components/search/SearchResultsFilterSidebar/types.d.ts +0 -2
- package/dist/src/components/search/SearchResultsFilterSidebar/types.js +0 -1
- package/dist/src/components/search/SearchResultsStates/NoSearchResultsFound.d.ts +0 -8
- package/dist/src/components/search/SearchResultsStates/NoSearchResultsFound.js +0 -10
- package/dist/src/components/search/SearchResultsStates/SearchResultsGrid.d.ts +0 -24
- package/dist/src/components/search/SearchResultsStates/SearchResultsGrid.js +0 -19
- package/dist/src/components/search/SearchResultsStates/SearchResultsLoadingGrid.d.ts +0 -6
- package/dist/src/components/search/SearchResultsStates/SearchResultsLoadingGrid.js +0 -10
- package/dist/src/components/search/types.d.ts +0 -5
- package/dist/src/components/search/types.js +0 -6
- package/dist/src/components/test/types.d.ts +0 -3
- package/dist/src/components/test/types.js +0 -1
- package/dist/src/config/chatElementDisplayLocation.d.ts +0 -21
- package/dist/src/config/chatElementDisplayLocation.js +0 -23
- package/dist/src/index.d.ts +0 -45
- package/dist/src/index.js +0 -49
- package/dist/src/logging/logger.d.ts +0 -7
- package/dist/src/logging/logger.js +0 -16
- package/dist/src/types/external.d.ts +0 -21
- package/dist/src/types/external.js +0 -5
- package/dist/src/util/camelCase.d.ts +0 -65
- package/dist/src/util/camelCase.js +0 -2
- package/dist/src/util/camelCasedPropertiesDeep.d.ts +0 -53
- package/dist/src/util/camelCasedPropertiesDeep.js +0 -1
- package/dist/src/util/formatPrice.d.ts +0 -1
- package/dist/src/util/formatPrice.js +0 -11
- package/dist/src/util/internal.d.ts +0 -27
- package/dist/src/util/internal.js +0 -4
- package/dist/src/util/primitive.d.ts +0 -6
- package/dist/src/util/primitive.js +0 -2
- package/dist/src/util/splitWords.d.ts +0 -55
- package/dist/src/util/splitWords.js +0 -2
- package/dist/src/util/trim.d.ts +0 -24
- package/dist/src/util/trim.js +0 -2
- package/dist/src/util/unknownArray.d.ts +0 -25
- package/dist/src/util/unknownArray.js +0 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/common/SparkleAnimation/SparkleAnimation.d.ts
|
|
4
|
+
interface SparkleAnimationProps {
|
|
5
|
+
color: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
animate?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const SparkleAnimation: ({
|
|
10
|
+
color,
|
|
11
|
+
className,
|
|
12
|
+
animate
|
|
13
|
+
}: SparkleAnimationProps) => react_jsx_runtime15.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { SparkleAnimation };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
let classnames = require("classnames");
|
|
3
|
+
classnames = require_chunk.__toESM(classnames);
|
|
4
|
+
let react = require("react");
|
|
5
|
+
react = require_chunk.__toESM(react);
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
8
|
+
let framer_motion = require("framer-motion");
|
|
9
|
+
framer_motion = require_chunk.__toESM(framer_motion);
|
|
10
|
+
let __envive_ai_react_icons_src_FourPointStar = require("@envive-ai/react-icons/src/FourPointStar");
|
|
11
|
+
__envive_ai_react_icons_src_FourPointStar = require_chunk.__toESM(__envive_ai_react_icons_src_FourPointStar);
|
|
12
|
+
|
|
13
|
+
//#region src/components/common/SparkleAnimation/types.ts
|
|
14
|
+
let SparkleAnimationOverride = /* @__PURE__ */ function(SparkleAnimationOverride$1) {
|
|
15
|
+
SparkleAnimationOverride$1["CONTAINER"] = "spiffy-sparkle-animation-container";
|
|
16
|
+
SparkleAnimationOverride$1["STAR_ONE_CONTAINER"] = "spiffy-sparkle-animation-star-one-container";
|
|
17
|
+
SparkleAnimationOverride$1["STAR_TWO_CONTAINER"] = "spiffy-sparkle-animation-star-two-container";
|
|
18
|
+
SparkleAnimationOverride$1["STAR_THREE_CONTAINER"] = "spiffy-sparkle-animation-star-three-container";
|
|
19
|
+
return SparkleAnimationOverride$1;
|
|
20
|
+
}({});
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/components/common/SparkleAnimation/SparkleAnimation.tsx
|
|
24
|
+
const ANIMATION_CYCLE_TIME = 1e3;
|
|
25
|
+
const STAR_DELAY_OFFSET = 250;
|
|
26
|
+
const SparkleAnimation = ({ color, className, animate = true }) => {
|
|
27
|
+
const [mainStarScale, setMainStarScale] = (0, react.useState)(animate ? 0 : 1);
|
|
28
|
+
const [smallStar1Scale, setSmallStar1Scale] = (0, react.useState)(animate ? 0 : 1);
|
|
29
|
+
const [smallStar2Scale, setSmallStar2Scale] = (0, react.useState)(animate ? 0 : 1);
|
|
30
|
+
const containerClasses = (0, classnames.default)(SparkleAnimationOverride.CONTAINER, "spiffy-tw-w-6 spiffy-tw-h-6 spiffy-tw-relative", className);
|
|
31
|
+
(0, react.useEffect)(() => {
|
|
32
|
+
if (!animate) {
|
|
33
|
+
setMainStarScale(1);
|
|
34
|
+
setSmallStar1Scale(1);
|
|
35
|
+
setSmallStar2Scale(1);
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
}, [animate]);
|
|
39
|
+
(0, react.useEffect)(() => {
|
|
40
|
+
if (!animate) return;
|
|
41
|
+
const newScale = mainStarScale === 1 ? 0 : 1;
|
|
42
|
+
setTimeout(() => setMainStarScale(newScale), ANIMATION_CYCLE_TIME);
|
|
43
|
+
setTimeout(() => setSmallStar1Scale(newScale), ANIMATION_CYCLE_TIME + STAR_DELAY_OFFSET);
|
|
44
|
+
setTimeout(() => setSmallStar2Scale(newScale), ANIMATION_CYCLE_TIME + 2 * STAR_DELAY_OFFSET);
|
|
45
|
+
}, [mainStarScale, animate]);
|
|
46
|
+
const starTransition = {
|
|
47
|
+
duration: .3,
|
|
48
|
+
ease: "easeOut"
|
|
49
|
+
};
|
|
50
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
51
|
+
className: containerClasses,
|
|
52
|
+
children: [
|
|
53
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
54
|
+
className: (0, classnames.default)(SparkleAnimationOverride.STAR_ONE_CONTAINER, "spiffy-tw-absolute -spiffy-tw-top-[2px] spiffy-tw-left-0"),
|
|
55
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
56
|
+
animate: { scale: mainStarScale },
|
|
57
|
+
transition: starTransition,
|
|
58
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_src_FourPointStar.default, {
|
|
59
|
+
fill: color,
|
|
60
|
+
className: "spiffy-tw-w-4 spiffy-tw-h-4 spiffy-tw-inline-block"
|
|
61
|
+
})
|
|
62
|
+
})
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
65
|
+
className: (0, classnames.default)(SparkleAnimationOverride.STAR_TWO_CONTAINER, "spiffy-tw-absolute -spiffy-tw-top-[7px] spiffy-tw-left-[10px]"),
|
|
66
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
67
|
+
animate: { scale: smallStar1Scale },
|
|
68
|
+
transition: starTransition,
|
|
69
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_src_FourPointStar.default, {
|
|
70
|
+
fill: color,
|
|
71
|
+
className: "spiffy-tw-w-2 spiffy-tw-h-2 spiffy-tw-inline-block"
|
|
72
|
+
})
|
|
73
|
+
})
|
|
74
|
+
}),
|
|
75
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
76
|
+
className: (0, classnames.default)(SparkleAnimationOverride.STAR_THREE_CONTAINER, "spiffy-tw-absolute spiffy-tw-top-[1px] spiffy-tw-left-[12px]"),
|
|
77
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
78
|
+
animate: { scale: smallStar2Scale },
|
|
79
|
+
transition: starTransition,
|
|
80
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_src_FourPointStar.default, {
|
|
81
|
+
fill: color,
|
|
82
|
+
className: "spiffy-tw-w-2 spiffy-tw-h-2 spiffy-tw-inline-block"
|
|
83
|
+
})
|
|
84
|
+
})
|
|
85
|
+
})
|
|
86
|
+
]
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
//#endregion
|
|
91
|
+
Object.defineProperty(exports, 'SparkleAnimation', {
|
|
92
|
+
enumerable: true,
|
|
93
|
+
get: function () {
|
|
94
|
+
return SparkleAnimation;
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
Object.defineProperty(exports, 'SparkleAnimationOverride', {
|
|
98
|
+
enumerable: true,
|
|
99
|
+
get: function () {
|
|
100
|
+
return SparkleAnimationOverride;
|
|
101
|
+
}
|
|
102
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as react_jsx_runtime18 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/common/SparkleAnimation/SparkleAnimation.d.ts
|
|
4
|
+
interface SparkleAnimationProps {
|
|
5
|
+
color: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
animate?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const SparkleAnimation: ({
|
|
10
|
+
color,
|
|
11
|
+
className,
|
|
12
|
+
animate
|
|
13
|
+
}: SparkleAnimationProps) => react_jsx_runtime18.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { SparkleAnimation };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import classNames from "classnames";
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { motion } from "framer-motion";
|
|
5
|
+
import FourPointStar from "@envive-ai/react-icons/src/FourPointStar";
|
|
6
|
+
|
|
7
|
+
//#region src/components/common/SparkleAnimation/types.ts
|
|
8
|
+
let SparkleAnimationOverride = /* @__PURE__ */ function(SparkleAnimationOverride$1) {
|
|
9
|
+
SparkleAnimationOverride$1["CONTAINER"] = "spiffy-sparkle-animation-container";
|
|
10
|
+
SparkleAnimationOverride$1["STAR_ONE_CONTAINER"] = "spiffy-sparkle-animation-star-one-container";
|
|
11
|
+
SparkleAnimationOverride$1["STAR_TWO_CONTAINER"] = "spiffy-sparkle-animation-star-two-container";
|
|
12
|
+
SparkleAnimationOverride$1["STAR_THREE_CONTAINER"] = "spiffy-sparkle-animation-star-three-container";
|
|
13
|
+
return SparkleAnimationOverride$1;
|
|
14
|
+
}({});
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/components/common/SparkleAnimation/SparkleAnimation.tsx
|
|
18
|
+
const ANIMATION_CYCLE_TIME = 1e3;
|
|
19
|
+
const STAR_DELAY_OFFSET = 250;
|
|
20
|
+
const SparkleAnimation = ({ color, className, animate = true }) => {
|
|
21
|
+
const [mainStarScale, setMainStarScale] = useState(animate ? 0 : 1);
|
|
22
|
+
const [smallStar1Scale, setSmallStar1Scale] = useState(animate ? 0 : 1);
|
|
23
|
+
const [smallStar2Scale, setSmallStar2Scale] = useState(animate ? 0 : 1);
|
|
24
|
+
const containerClasses = classNames(SparkleAnimationOverride.CONTAINER, "spiffy-tw-w-6 spiffy-tw-h-6 spiffy-tw-relative", className);
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
if (!animate) {
|
|
27
|
+
setMainStarScale(1);
|
|
28
|
+
setSmallStar1Scale(1);
|
|
29
|
+
setSmallStar2Scale(1);
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
}, [animate]);
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
if (!animate) return;
|
|
35
|
+
const newScale = mainStarScale === 1 ? 0 : 1;
|
|
36
|
+
setTimeout(() => setMainStarScale(newScale), ANIMATION_CYCLE_TIME);
|
|
37
|
+
setTimeout(() => setSmallStar1Scale(newScale), ANIMATION_CYCLE_TIME + STAR_DELAY_OFFSET);
|
|
38
|
+
setTimeout(() => setSmallStar2Scale(newScale), ANIMATION_CYCLE_TIME + 2 * STAR_DELAY_OFFSET);
|
|
39
|
+
}, [mainStarScale, animate]);
|
|
40
|
+
const starTransition = {
|
|
41
|
+
duration: .3,
|
|
42
|
+
ease: "easeOut"
|
|
43
|
+
};
|
|
44
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
45
|
+
className: containerClasses,
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ jsx("div", {
|
|
48
|
+
className: classNames(SparkleAnimationOverride.STAR_ONE_CONTAINER, "spiffy-tw-absolute -spiffy-tw-top-[2px] spiffy-tw-left-0"),
|
|
49
|
+
children: /* @__PURE__ */ jsx(motion.div, {
|
|
50
|
+
animate: { scale: mainStarScale },
|
|
51
|
+
transition: starTransition,
|
|
52
|
+
children: /* @__PURE__ */ jsx(FourPointStar, {
|
|
53
|
+
fill: color,
|
|
54
|
+
className: "spiffy-tw-w-4 spiffy-tw-h-4 spiffy-tw-inline-block"
|
|
55
|
+
})
|
|
56
|
+
})
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ jsx("div", {
|
|
59
|
+
className: classNames(SparkleAnimationOverride.STAR_TWO_CONTAINER, "spiffy-tw-absolute -spiffy-tw-top-[7px] spiffy-tw-left-[10px]"),
|
|
60
|
+
children: /* @__PURE__ */ jsx(motion.div, {
|
|
61
|
+
animate: { scale: smallStar1Scale },
|
|
62
|
+
transition: starTransition,
|
|
63
|
+
children: /* @__PURE__ */ jsx(FourPointStar, {
|
|
64
|
+
fill: color,
|
|
65
|
+
className: "spiffy-tw-w-2 spiffy-tw-h-2 spiffy-tw-inline-block"
|
|
66
|
+
})
|
|
67
|
+
})
|
|
68
|
+
}),
|
|
69
|
+
/* @__PURE__ */ jsx("div", {
|
|
70
|
+
className: classNames(SparkleAnimationOverride.STAR_THREE_CONTAINER, "spiffy-tw-absolute spiffy-tw-top-[1px] spiffy-tw-left-[12px]"),
|
|
71
|
+
children: /* @__PURE__ */ jsx(motion.div, {
|
|
72
|
+
animate: { scale: smallStar2Scale },
|
|
73
|
+
transition: starTransition,
|
|
74
|
+
children: /* @__PURE__ */ jsx(FourPointStar, {
|
|
75
|
+
fill: color,
|
|
76
|
+
className: "spiffy-tw-w-2 spiffy-tw-h-2 spiffy-tw-inline-block"
|
|
77
|
+
})
|
|
78
|
+
})
|
|
79
|
+
})
|
|
80
|
+
]
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
//#endregion
|
|
85
|
+
export { SparkleAnimation, SparkleAnimationOverride };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/common/Spinner/Spinner.d.ts
|
|
4
|
+
type SpinnerProps = {
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const Spinner: ({
|
|
8
|
+
className
|
|
9
|
+
}: SpinnerProps) => react_jsx_runtime14.JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { Spinner };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import classNames from "classnames";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/common/Spinner/Spinner.tsx
|
|
5
|
+
const Spinner = ({ className }) => {
|
|
6
|
+
const svgClassnames = classNames({
|
|
7
|
+
"spiffy-tw-w-4": true,
|
|
8
|
+
"spiffy-tw-h-4": true,
|
|
9
|
+
"spiffy-tw-text-gray-200": true,
|
|
10
|
+
"spiffy-tw-animate-spin": true,
|
|
11
|
+
"spiffy-tw-dark:text-gray-600": true,
|
|
12
|
+
"spiffy-tw-fill-black": true
|
|
13
|
+
}, className);
|
|
14
|
+
const spanClassnames = classNames({ "spiffy-tw-sr-only": true });
|
|
15
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
16
|
+
role: "status",
|
|
17
|
+
children: [/* @__PURE__ */ jsxs("svg", {
|
|
18
|
+
"aria-hidden": "true",
|
|
19
|
+
className: svgClassnames,
|
|
20
|
+
viewBox: "0 0 100 101",
|
|
21
|
+
fill: "none",
|
|
22
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
+
children: [/* @__PURE__ */ jsx("path", {
|
|
24
|
+
d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",
|
|
25
|
+
fill: "currentColor"
|
|
26
|
+
}), /* @__PURE__ */ jsx("path", {
|
|
27
|
+
d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",
|
|
28
|
+
fill: "currentFill"
|
|
29
|
+
})]
|
|
30
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
31
|
+
className: spanClassnames,
|
|
32
|
+
children: "Loading..."
|
|
33
|
+
})]
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
export { Spinner };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
let classnames = require("classnames");
|
|
3
|
+
classnames = require_chunk.__toESM(classnames);
|
|
4
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
+
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
6
|
+
|
|
7
|
+
//#region src/components/common/Spinner/Spinner.tsx
|
|
8
|
+
const Spinner = ({ className }) => {
|
|
9
|
+
const svgClassnames = (0, classnames.default)({
|
|
10
|
+
"spiffy-tw-w-4": true,
|
|
11
|
+
"spiffy-tw-h-4": true,
|
|
12
|
+
"spiffy-tw-text-gray-200": true,
|
|
13
|
+
"spiffy-tw-animate-spin": true,
|
|
14
|
+
"spiffy-tw-dark:text-gray-600": true,
|
|
15
|
+
"spiffy-tw-fill-black": true
|
|
16
|
+
}, className);
|
|
17
|
+
const spanClassnames = (0, classnames.default)({ "spiffy-tw-sr-only": true });
|
|
18
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
19
|
+
role: "status",
|
|
20
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
21
|
+
"aria-hidden": "true",
|
|
22
|
+
className: svgClassnames,
|
|
23
|
+
viewBox: "0 0 100 101",
|
|
24
|
+
fill: "none",
|
|
25
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
26
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
27
|
+
d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",
|
|
28
|
+
fill: "currentColor"
|
|
29
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
30
|
+
d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",
|
|
31
|
+
fill: "currentFill"
|
|
32
|
+
})]
|
|
33
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
34
|
+
className: spanClassnames,
|
|
35
|
+
children: "Loading..."
|
|
36
|
+
})]
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
Object.defineProperty(exports, 'Spinner', {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function () {
|
|
44
|
+
return Spinner;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/common/Spinner/Spinner.d.ts
|
|
4
|
+
type SpinnerProps = {
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const Spinner: ({
|
|
8
|
+
className
|
|
9
|
+
}: SpinnerProps) => react_jsx_runtime7.JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { Spinner };
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
const require_ButtonBase = require('./ButtonBase-RIYFAcSy.cjs');
|
|
3
|
+
let classnames = require("classnames");
|
|
4
|
+
classnames = require_chunk.__toESM(classnames);
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
+
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
7
|
+
let __envive_ai_react_icons_src_FourPointStar = require("@envive-ai/react-icons/src/FourPointStar");
|
|
8
|
+
__envive_ai_react_icons_src_FourPointStar = require_chunk.__toESM(__envive_ai_react_icons_src_FourPointStar);
|
|
9
|
+
let __envive_ai_react_icons_src_OutlinedStar = require("@envive-ai/react-icons/src/OutlinedStar");
|
|
10
|
+
__envive_ai_react_icons_src_OutlinedStar = require_chunk.__toESM(__envive_ai_react_icons_src_OutlinedStar);
|
|
11
|
+
|
|
12
|
+
//#region src/components/common/SuggestionButton/SuggestionButton.tsx
|
|
13
|
+
const SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = "spiffy-suggestion-button-question-class";
|
|
14
|
+
const SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS = "spiffy-suggestion-button-answer-class";
|
|
15
|
+
const SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS = "spiffy-suggestion-button-text-class";
|
|
16
|
+
const BORDER_CLASS = "spiffy-tw-border";
|
|
17
|
+
const TEXT_LINK_CLASSES = [
|
|
18
|
+
"spiffy-tw-text-[--spiffy-colors-text-link]",
|
|
19
|
+
"spiffy-tw-fill-[--spiffy-colors-text-link]",
|
|
20
|
+
"spiffy-tw-stroke-[--spiffy-colors-text-link]"
|
|
21
|
+
];
|
|
22
|
+
const TEXT_LIGHT_CLASSES = [
|
|
23
|
+
"spiffy-tw-text-[--spiffy-colors-text-light]",
|
|
24
|
+
"spiffy-tw-fill-[--spiffy-colors-text-light]",
|
|
25
|
+
"spiffy-tw-stroke-[--spiffy-colors-text-light]"
|
|
26
|
+
];
|
|
27
|
+
const TEXT_PRIMARY_CLASSES = [
|
|
28
|
+
"spiffy-tw-text-[--spiffy-colors-text-primary]",
|
|
29
|
+
"spiffy-tw-fill-[--spiffy-colors-text-primary]",
|
|
30
|
+
"spiffy-tw-stroke-[--spiffy-colors-text-primary]"
|
|
31
|
+
];
|
|
32
|
+
const ACCENT_PRIMARY_CLASSES = ["spiffy-tw-fill-[--spiffy-colors-accent-primary]", "spiffy-tw-stroke-[--spiffy-colors-accent-primary]"];
|
|
33
|
+
const DARK_BACKGROUND_CLASSES = ["spiffy-tw-bg-[--spiffy-colors-background-dark]", "spiffy-tw-border-[--spiffy-colors-background-dark]"];
|
|
34
|
+
const SECONDARY_DARK_BACKGROUND_CLASSES = ["spiffy-tw-bg-[--spiffy-colors-background-secondary-dark]", "spiffy-tw-border-[--spiffy-colors-background-secondary-dark]"];
|
|
35
|
+
const variantClassMap = new Map([
|
|
36
|
+
["outlined", ["spiffy-tw-border-[--spiffy-colors-border-outline]", ...TEXT_LINK_CLASSES]],
|
|
37
|
+
["outlinedLight", [
|
|
38
|
+
"spiffy-tw-border-[--spiffy-colors-border-outline]",
|
|
39
|
+
"spiffy-tw-bg-[--spiffy-colors-background-light]",
|
|
40
|
+
...TEXT_LINK_CLASSES,
|
|
41
|
+
BORDER_CLASS
|
|
42
|
+
]],
|
|
43
|
+
["primary", [
|
|
44
|
+
"spiffy-tw-bg-[--spiffy-colors-background-primary]",
|
|
45
|
+
"spiffy-tw-border-[--spiffy-colors-background-primary]",
|
|
46
|
+
...TEXT_LIGHT_CLASSES,
|
|
47
|
+
BORDER_CLASS
|
|
48
|
+
]],
|
|
49
|
+
["secondary", [
|
|
50
|
+
"spiffy-tw-bg-[--spiffy-colors-background-secondary]",
|
|
51
|
+
"spiffy-tw-text-[--spiffy-colors-text-link]",
|
|
52
|
+
"spiffy-tw-border-[--spiffy-colors-background-secondary]",
|
|
53
|
+
...ACCENT_PRIMARY_CLASSES,
|
|
54
|
+
BORDER_CLASS
|
|
55
|
+
]],
|
|
56
|
+
["tertiary", [
|
|
57
|
+
"spiffy-tw-bg-[--spiffy-colors-background-tertiary]",
|
|
58
|
+
"spiffy-tw-border-[--spiffy-colors-background-tertiary]",
|
|
59
|
+
...TEXT_LINK_CLASSES,
|
|
60
|
+
BORDER_CLASS
|
|
61
|
+
]],
|
|
62
|
+
["dark", [
|
|
63
|
+
...DARK_BACKGROUND_CLASSES,
|
|
64
|
+
...TEXT_LIGHT_CLASSES,
|
|
65
|
+
BORDER_CLASS
|
|
66
|
+
]],
|
|
67
|
+
["darkPrimary", [
|
|
68
|
+
...DARK_BACKGROUND_CLASSES,
|
|
69
|
+
"spiffy-tw-text-[--spiffy-colors-text-light]",
|
|
70
|
+
...ACCENT_PRIMARY_CLASSES,
|
|
71
|
+
BORDER_CLASS
|
|
72
|
+
]],
|
|
73
|
+
["darkAccent", [
|
|
74
|
+
...DARK_BACKGROUND_CLASSES,
|
|
75
|
+
"spiffy-tw-text-[--spiffy-colors-text-light]",
|
|
76
|
+
"spiffy-tw-fill-[--spiffy-colors-text-accent]",
|
|
77
|
+
"spiffy-tw-stroke-[--spiffy-colors-text-accent]",
|
|
78
|
+
BORDER_CLASS
|
|
79
|
+
]],
|
|
80
|
+
["transparent", [
|
|
81
|
+
"spiffy-tw-bg-transparent",
|
|
82
|
+
"spiffy-tw-border-[--spiffy-colors-background-light]",
|
|
83
|
+
"spiffy-tw-text-[--spiffy-colors-text-light]",
|
|
84
|
+
"spiffy-tw-fill-transparent",
|
|
85
|
+
"spiffy-tw-stroke-[--spiffy-colors-text-light]",
|
|
86
|
+
BORDER_CLASS
|
|
87
|
+
]],
|
|
88
|
+
["transparentDark", [
|
|
89
|
+
"spiffy-tw-bg-transparent",
|
|
90
|
+
"spiffy-tw-border-[--spiffy-colors-border-light]",
|
|
91
|
+
"spiffy-tw-text-[--spiffy-colors-text-primary]",
|
|
92
|
+
"spiffy-tw-fill-transparent",
|
|
93
|
+
"spiffy-tw-stroke-[--spiffy-colors-text-primary]",
|
|
94
|
+
BORDER_CLASS
|
|
95
|
+
]],
|
|
96
|
+
["secondaryDark", [
|
|
97
|
+
...SECONDARY_DARK_BACKGROUND_CLASSES,
|
|
98
|
+
...TEXT_LINK_CLASSES,
|
|
99
|
+
BORDER_CLASS
|
|
100
|
+
]],
|
|
101
|
+
["secondaryAccent", [
|
|
102
|
+
...SECONDARY_DARK_BACKGROUND_CLASSES,
|
|
103
|
+
"spiffy-tw-text-[--spiffy-colors-text-link]",
|
|
104
|
+
...ACCENT_PRIMARY_CLASSES,
|
|
105
|
+
BORDER_CLASS
|
|
106
|
+
]],
|
|
107
|
+
["lightDark", [
|
|
108
|
+
"spiffy-tw-bg-[--spiffy-colors-background-light]",
|
|
109
|
+
"spiffy-tw-border-[--spiffy-colors-background-dark]",
|
|
110
|
+
...TEXT_PRIMARY_CLASSES,
|
|
111
|
+
BORDER_CLASS
|
|
112
|
+
]]
|
|
113
|
+
]);
|
|
114
|
+
const borderedVariants = [
|
|
115
|
+
"outlined",
|
|
116
|
+
"outlinedLight",
|
|
117
|
+
"primary",
|
|
118
|
+
"secondary",
|
|
119
|
+
"tertiary",
|
|
120
|
+
"dark",
|
|
121
|
+
"darkAccent",
|
|
122
|
+
"darkPrimary",
|
|
123
|
+
"transparent",
|
|
124
|
+
"transparentDark",
|
|
125
|
+
"secondaryDark",
|
|
126
|
+
"secondaryAccent",
|
|
127
|
+
"lightDark"
|
|
128
|
+
];
|
|
129
|
+
const hoverTransform = (variantClass) => variantClass?.map((className) => `hover:${className}`);
|
|
130
|
+
const SuggestionButton = ({ variant, hoverVariant, isDisabled, content, boldText, borderRadius = "lg", isAnswer = false, dataAttributes, dataTestId, onClick }) => {
|
|
131
|
+
const buttonClassName = (0, classnames.default)({
|
|
132
|
+
[SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS]: !isAnswer,
|
|
133
|
+
[SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS]: isAnswer,
|
|
134
|
+
"!spiffy-tw-rounded-[20px]": borderRadius === "lg",
|
|
135
|
+
"!spiffy-tw-rounded-[8px]": borderRadius === "md",
|
|
136
|
+
"!spiffy-tw-rounded-[0px]": borderRadius === "sm",
|
|
137
|
+
"spiffy-tw-border-[1px]": borderedVariants.includes(variant),
|
|
138
|
+
"spiffy-tw-border-solid": borderedVariants.includes(variant)
|
|
139
|
+
});
|
|
140
|
+
const textClassName = (0, classnames.default)({
|
|
141
|
+
"spiffy-tw-text-[14px]": true,
|
|
142
|
+
"spiffy-tw-leading-[100%]": true,
|
|
143
|
+
"!spiffy-tw-font-bold": boldText
|
|
144
|
+
});
|
|
145
|
+
const iconClass = (0, classnames.default)({
|
|
146
|
+
"spiffy-tw-w-[11px]": true,
|
|
147
|
+
"spiffy-tw-h-[11px]": true,
|
|
148
|
+
"spiffy-tw-stroke-inherit": true,
|
|
149
|
+
"spiffy-tw-fill-inherit": true
|
|
150
|
+
});
|
|
151
|
+
const baseClasses = variantClassMap.get(variant) ?? [];
|
|
152
|
+
const hoverClasses = variantClassMap.get(hoverVariant) ?? [];
|
|
153
|
+
const baseBorderClasses = baseClasses.filter((cls) => cls.includes("border"));
|
|
154
|
+
const baseNonBorderClasses = baseClasses.filter((cls) => !cls.includes("border"));
|
|
155
|
+
const hoverBorderClasses = hoverClasses.filter((cls) => cls.includes("border"));
|
|
156
|
+
const hoverNonBorderClasses = hoverClasses.filter((cls) => !cls.includes("border"));
|
|
157
|
+
const variantClasses = [
|
|
158
|
+
...baseNonBorderClasses,
|
|
159
|
+
...hoverTransform(hoverNonBorderClasses),
|
|
160
|
+
...baseBorderClasses,
|
|
161
|
+
...hoverTransform(hoverBorderClasses)
|
|
162
|
+
];
|
|
163
|
+
const buttonClass = `${buttonClassName} ${variantClasses.join(" ")}`;
|
|
164
|
+
const getIcon = () => {
|
|
165
|
+
if (isAnswer) return void 0;
|
|
166
|
+
if (variant === "transparentDark") return __envive_ai_react_icons_src_OutlinedStar.default;
|
|
167
|
+
return __envive_ai_react_icons_src_FourPointStar.default;
|
|
168
|
+
};
|
|
169
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ButtonBase.ButtonBase, {
|
|
170
|
+
text: content,
|
|
171
|
+
dataAttributes,
|
|
172
|
+
dataTestId,
|
|
173
|
+
isDisabled,
|
|
174
|
+
icon: getIcon(),
|
|
175
|
+
iconClass: isAnswer ? void 0 : iconClass,
|
|
176
|
+
textClass: `${SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS} ${textClassName}`,
|
|
177
|
+
buttonClass,
|
|
178
|
+
onClick
|
|
179
|
+
});
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
//#endregion
|
|
183
|
+
Object.defineProperty(exports, 'SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS', {
|
|
184
|
+
enumerable: true,
|
|
185
|
+
get: function () {
|
|
186
|
+
return SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS;
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
Object.defineProperty(exports, 'SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS', {
|
|
190
|
+
enumerable: true,
|
|
191
|
+
get: function () {
|
|
192
|
+
return SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS;
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
Object.defineProperty(exports, 'SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS', {
|
|
196
|
+
enumerable: true,
|
|
197
|
+
get: function () {
|
|
198
|
+
return SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS;
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
Object.defineProperty(exports, 'SuggestionButton', {
|
|
202
|
+
enumerable: true,
|
|
203
|
+
get: function () {
|
|
204
|
+
return SuggestionButton;
|
|
205
|
+
}
|
|
206
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { TestProps } from "./types-Y0WKFOqS.js";
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/common/SuggestionButton/types.d.ts
|
|
5
|
+
type SuggestionButtonVariant = 'outlined' | 'outlinedLight' | 'primary' | 'secondary' | 'tertiary' | 'dark' | 'darkAccent' | 'darkPrimary' | 'secondaryDark' | 'secondaryAccent' | 'transparent' | 'transparentDark' | 'lightDark';
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/components/common/SuggestionButton/SuggestionButton.d.ts
|
|
8
|
+
declare const SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = "spiffy-suggestion-button-question-class";
|
|
9
|
+
declare const SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS = "spiffy-suggestion-button-answer-class";
|
|
10
|
+
declare const SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS = "spiffy-suggestion-button-text-class";
|
|
11
|
+
interface SuggestionButtonProps extends TestProps {
|
|
12
|
+
variant: SuggestionButtonVariant;
|
|
13
|
+
hoverVariant: SuggestionButtonVariant;
|
|
14
|
+
isDisabled: boolean;
|
|
15
|
+
content: string;
|
|
16
|
+
boldText?: boolean;
|
|
17
|
+
borderRadius?: 'sm' | 'md' | 'lg';
|
|
18
|
+
isAnswer?: boolean;
|
|
19
|
+
dataAttributes?: Record<string, string>;
|
|
20
|
+
onClick: () => void;
|
|
21
|
+
}
|
|
22
|
+
declare const SuggestionButton: ({
|
|
23
|
+
variant,
|
|
24
|
+
hoverVariant,
|
|
25
|
+
isDisabled,
|
|
26
|
+
content,
|
|
27
|
+
boldText,
|
|
28
|
+
borderRadius,
|
|
29
|
+
isAnswer,
|
|
30
|
+
dataAttributes,
|
|
31
|
+
dataTestId,
|
|
32
|
+
onClick
|
|
33
|
+
}: SuggestionButtonProps) => react_jsx_runtime1.JSX.Element;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS, SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS, SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS, SuggestionButton, SuggestionButtonVariant };
|