@envive-ai/react-toolkit 0.1.4 → 0.1.6
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/Accordion/index.cjs +84 -0
- package/dist/Accordion/index.d.cts +13 -0
- package/dist/Accordion/index.d.ts +13 -0
- package/dist/Accordion/index.js +77 -0
- package/dist/ButtonBase/index.cjs +7 -0
- package/dist/ButtonBase/index.d.cts +43 -0
- package/dist/ButtonBase/index.d.ts +43 -0
- package/dist/ButtonBase/index.js +6 -0
- package/dist/{ButtonBase-C1rsL9gO.js → ButtonBase-BIAu5fIG.js} +5 -5
- package/dist/ButtonBase-BRfuPPzN.js +1 -0
- package/dist/ButtonBase-BleAVeo-.cjs +0 -0
- package/dist/{ButtonBase-a8uj6c2f.cjs → ButtonBase-DcyxOe2v.cjs} +11 -5
- package/dist/{AppliedFiltersScrollbar-BlcyhZkZ.cjs → DynamicFiltersScrollbar-BTopFhyl.cjs} +34 -2
- package/dist/{AppliedFiltersScrollbar-DFGzRemu.js → DynamicFiltersScrollbar-BmPTqym5.js} +29 -3
- package/dist/FilterScrollbar/index.cjs +6 -0
- package/dist/FilterScrollbar/index.d.cts +47 -0
- package/dist/FilterScrollbar/index.d.ts +47 -0
- package/dist/FilterScrollbar/index.js +5 -0
- package/dist/Headline/index.cjs +4 -0
- package/dist/{common/Headline/Headline.d.cts → Headline/index.d.cts} +3 -3
- package/dist/{common/Headline/Headline.d.ts → Headline/index.d.ts} +3 -3
- package/dist/Headline/index.js +4 -0
- package/dist/{Headline-8on6ZB9e.js → Headline-XpaAeTSR.js} +2 -2
- package/dist/{Headline-CcWn0w-a.cjs → Headline-iP_MckEO.cjs} +2 -2
- package/dist/ImageWithFallback/index.cjs +3 -0
- package/dist/{common/ImageWithFallback/ImageWithFallback.d.ts → ImageWithFallback/index.d.cts} +3 -3
- package/dist/{common/ImageWithFallback/ImageWithFallback.d.cts → ImageWithFallback/index.d.ts} +2 -2
- package/dist/ImageWithFallback/index.js +3 -0
- package/dist/{ImageWithFallback-ioeMFrTf.cjs → ImageWithFallback-1LqhQK1q.cjs} +3 -3
- package/dist/{ImageWithFallback-gN5HDS9L.js → ImageWithFallback-Ckwsmd8P.js} +2 -2
- package/dist/ProductCard/index.cjs +17 -0
- package/dist/ProductCard/index.d.cts +3 -0
- package/dist/ProductCard/index.d.ts +3 -0
- package/dist/ProductCard/index.js +8 -0
- package/dist/{ProductCard-C7WUShhN.cjs → ProductCard-DZZKutY-.cjs} +138 -12
- package/dist/{ProductCard-B5wnOeR9.js → ProductCard-SF8-lXlT.js} +92 -9
- package/dist/ProductGrid/index.cjs +10 -0
- package/dist/ProductGrid/index.d.cts +36 -0
- package/dist/ProductGrid/index.d.ts +36 -0
- package/dist/ProductGrid/index.js +9 -0
- package/dist/{ProductGrid-DZgwGPSQ.cjs → ProductGrid-BSSmPr7K.cjs} +56 -30
- package/dist/{ProductGrid-wnSc9bXT.js → ProductGrid-DTUhH219.js} +50 -30
- package/dist/SearchAutocomplete/index.cjs +3 -0
- package/dist/{search/SearchInputAutocomplete/SearchAutocomplete.d.cts → SearchAutocomplete/index.d.cts} +1 -1
- package/dist/{search/SearchInputAutocomplete/SearchAutocomplete.d.ts → SearchAutocomplete/index.d.ts} +1 -1
- package/dist/SearchAutocomplete/index.js +3 -0
- package/dist/{SearchAutocomplete-B8mO03Rr.js → SearchAutocomplete-BPjlo6qq.js} +4 -4
- package/dist/{SearchAutocomplete-BrF2SMoZ.cjs → SearchAutocomplete-BzaEXmRQ.cjs} +8 -8
- package/dist/SearchFilter/index.cjs +8 -0
- package/dist/SearchFilter/index.d.cts +2 -0
- package/dist/SearchFilter/index.d.ts +2 -0
- package/dist/SearchFilter/index.js +6 -0
- package/dist/SearchFilter-B15tybnV.cjs +134 -0
- package/dist/SearchFilter-D427M2UE.js +114 -0
- package/dist/SearchInput/index.cjs +7 -0
- package/dist/SearchInput/index.d.cts +33 -0
- package/dist/SearchInput/index.d.ts +33 -0
- package/dist/SearchInput/index.js +6 -0
- package/dist/{SearchInput-CzVUsUSb.js → SearchInput-C0wB4hSV.js} +8 -8
- package/dist/{SearchInput-mLPisqFO.cjs → SearchInput-D6UW79wT.cjs} +12 -12
- package/dist/{search/SearchInputForm/SearchInputForm.cjs → SearchInputForm/index.cjs} +9 -8
- package/dist/SearchInputForm/index.d.cts +2 -0
- package/dist/SearchInputForm/index.d.ts +2 -0
- package/dist/{search/SearchInputForm/SearchInputForm.js → SearchInputForm/index.js} +8 -7
- package/dist/{search/SearchResultsFilterSidebar/SearchResultsFilter.cjs → SearchResultsFilterSidebar/index.cjs} +15 -12
- package/dist/SearchResultsFilterSidebar/index.d.cts +3 -0
- package/dist/SearchResultsFilterSidebar/index.d.ts +3 -0
- package/dist/{search/SearchResultsFilterSidebar/SearchResultsFilter.js → SearchResultsFilterSidebar/index.js} +11 -10
- package/dist/SearchResultsStates/index.cjs +126 -0
- package/dist/SearchResultsStates/index.d.cts +73 -0
- package/dist/SearchResultsStates/index.d.ts +73 -0
- package/dist/SearchResultsStates/index.js +118 -0
- package/dist/SparkleAnimation/index.cjs +4 -0
- package/dist/SparkleAnimation/index.d.cts +23 -0
- package/dist/SparkleAnimation/index.d.ts +23 -0
- package/dist/SparkleAnimation/index.js +3 -0
- package/dist/{SparkleAnimation-Qs17S1rn.js → SparkleAnimation-BdOjC8l-.js} +5 -5
- package/dist/{SparkleAnimation-Ba5G4MIQ.cjs → SparkleAnimation-BhyeL26m.cjs} +12 -6
- package/dist/Spinner/index.cjs +3 -0
- package/dist/Spinner/index.d.cts +11 -0
- package/dist/Spinner/index.d.ts +11 -0
- package/dist/Spinner/index.js +3 -0
- package/dist/{Spinner-BZ-kTOpm.js → Spinner-BgGihEfJ.js} +1 -1
- package/dist/{Spinner-CfQ85Ajl.cjs → Spinner-DzdIkS6t.cjs} +1 -1
- package/dist/{common/SuggestionButton/SuggestionButton.cjs → SuggestionButton/index.cjs} +5 -5
- package/dist/{common/SuggestionButton/SuggestionButton.d.cts → SuggestionButton/index.d.cts} +6 -6
- package/dist/{common/SuggestionButton/SuggestionButton.d.ts → SuggestionButton/index.d.ts} +6 -6
- package/dist/{common/SuggestionButton/SuggestionButton.js → SuggestionButton/index.js} +4 -4
- package/dist/Text/index.cjs +10 -0
- package/dist/Text/index.d.cts +42 -0
- package/dist/Text/index.d.ts +42 -0
- package/dist/Text/index.js +5 -0
- package/dist/{Text-Bdv7F5-u.js → Text-BMg3d10t.js} +2 -2
- package/dist/Text-CV9pv8ds.js +10 -0
- package/dist/{Text-C04c4Z93.cjs → Text-CgOYTs8D.cjs} +2 -2
- package/dist/Text-DDT3sqY1.cjs +16 -0
- package/dist/TextInput/index.cjs +4 -0
- package/dist/TextInput/index.d.cts +12 -0
- package/dist/TextInput/index.d.ts +12 -0
- package/dist/TextInput/index.js +4 -0
- package/dist/{TextInput-BO80ixsV.cjs → TextInput-C6fF9cSB.cjs} +4 -4
- package/dist/{TextInput-CEGWfdPC.js → TextInput-CRMqBW3X.js} +3 -3
- package/dist/{colorsConfig-BKBZfFq1.js → colorsConfig-BQlaCfxi.js} +1 -1
- package/dist/{colorsConfig-vunsVTFC.cjs → colorsConfig-DCvy_dV4.cjs} +1 -1
- package/dist/index-B0oln9VD.d.ts +58 -0
- package/dist/index-B125udRj.d.cts +78 -0
- package/dist/{search/SearchInputForm/SearchInputForm.d.cts → index-BHNzU-Pc.d.ts} +10 -6
- package/dist/{search/SearchInputForm/SearchInputForm.d.ts → index-BNCrvswP.d.cts} +10 -6
- package/dist/index-CQlBDGTL.d.cts +58 -0
- package/dist/index-CcnuEYQN.d.ts +379 -0
- package/dist/index-DMXTg_9L.d.ts +78 -0
- package/dist/index-wYn2mEDm.d.cts +379 -0
- package/dist/{searchFilterSidebarVariants-eoyfoWA8.js → searchFilterSidebarVariants-BWQyiKwS.js} +2 -2
- package/dist/{searchFilterSidebarVariants-L1rn5Ift.cjs → searchFilterSidebarVariants-D08jyA7U.cjs} +2 -2
- package/dist/{textVariantClasses-Bhf4VY5z.cjs → textVariantClasses-BnV4wXaw.cjs} +1 -1
- package/dist/textVariantClasses-C8OCWZAw.d.ts +174 -0
- package/dist/textVariantClasses-Cdg-UUHi.d.cts +174 -0
- package/dist/{textVariantClasses-5t3OricK.js → textVariantClasses-CnjwO2Fv.js} +1 -1
- package/dist/types-BQYpWDJ4.d.cts +6 -0
- package/dist/types-BruEHw-X.d.ts +6 -0
- package/package.json +62 -84
- package/src/components/Accordion/Accordion.tsx +90 -0
- package/src/components/Accordion/index.ts +1 -0
- package/src/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.tsx +70 -0
- package/src/components/ButtonBase/index.ts +2 -0
- package/src/components/{common/ButtonBase → ButtonBase}/types.ts +1 -1
- package/src/components/{search/FilterScrollbar → DynamicFiltersScrollbar}/DynamicFiltersScrollbar.tsx +1 -1
- package/src/components/{search/FilterScrollbar → FilterScrollbar}/AppliedFiltersScrollbar.tsx +1 -1
- package/src/components/FilterScrollbar/DynamicFiltersScrollbar.tsx +52 -0
- package/src/components/FilterScrollbar/index.ts +2 -0
- package/src/components/Headline/index.ts +1 -0
- package/src/components/ImageWithFallback/index.ts +1 -0
- package/src/components/{common/ProductCard → ProductCard}/ProductCard.tsx +34 -17
- package/src/components/ProductCard/index.ts +4 -0
- package/src/components/{common/ProductCard → ProductCard}/types.ts +1 -1
- package/src/components/ProductGrid/ProductGrid.tsx +73 -0
- package/src/components/ProductGrid/index.ts +2 -0
- package/src/components/{search/SearchInputAutocomplete → SearchAutocomplete}/SearchAutocomplete.tsx +1 -1
- package/src/components/SearchAutocomplete/index.ts +1 -0
- package/src/components/{search/SearchFilter → SearchFilter}/SearchFilter.tsx +2 -2
- package/src/components/{search/SearchFilter → SearchFilter}/SearchFilterHeader.tsx +1 -1
- package/src/components/{search/SearchFilter → SearchFilter}/SearchFilterItem.tsx +1 -1
- package/src/components/SearchFilter/index.ts +4 -0
- package/src/components/{search/SearchInput → SearchInput}/SearchInput.tsx +6 -6
- package/src/components/SearchInput/index.ts +2 -0
- package/src/components/{search/SearchInput → SearchInput}/searchInputVariants.ts +5 -5
- package/src/components/{search/SearchInputForm → SearchInputForm}/SearchInputForm.tsx +6 -4
- package/src/components/SearchInputForm/index.ts +2 -0
- package/src/components/SearchResultsContent/SearchResultsContent.tsx +87 -0
- package/src/components/SearchResultsContent/utils.ts +28 -0
- package/src/components/{search/SearchResultsFilterSidebar → SearchResultsFilterSidebar}/SearchResultsFilter.tsx +5 -6
- package/src/components/SearchResultsFilterSidebar/index.ts +3 -0
- package/src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts +58 -0
- package/src/components/SearchResultsFilterSidebar/types.ts +15 -0
- package/src/components/{search/SearchResultsStates → SearchResultsStates}/NoSearchResultsFound.tsx +2 -2
- package/src/components/{search/SearchResultsStates → SearchResultsStates}/SearchResultsGrid.tsx +14 -12
- package/src/components/{search/SearchResultsStates → SearchResultsStates}/SearchResultsLoadingGrid.tsx +4 -5
- package/src/components/SearchResultsStates/index.ts +3 -0
- package/src/components/SparkleAnimation/index.ts +2 -0
- package/src/components/Spinner/index.ts +1 -0
- package/src/components/SuggestionButton/index.ts +2 -0
- package/src/components/Text/index.ts +3 -0
- package/src/components/TextInput/index.ts +1 -0
- package/dist/DynamicFiltersScrollbar-B2Rr1KnJ.cjs +0 -41
- package/dist/DynamicFiltersScrollbar-Dys6geP0.js +0 -32
- package/dist/ProductCardSkeleton-BPfp6IOp.js +0 -38
- package/dist/ProductCardSkeleton-BgvDlaty.cjs +0 -46
- package/dist/SearchFilter-D-2IdBKS.js +0 -62
- package/dist/SearchFilter-D0IzBlG5.cjs +0 -70
- package/dist/SearchFilterHeader-BQT0-ssS.js +0 -37
- package/dist/SearchFilterHeader-C3EklfoO.cjs +0 -45
- package/dist/SearchFilterItem-BodtWLoP.js +0 -26
- package/dist/SearchFilterItem-DmMkiqNC.cjs +0 -34
- package/dist/common/ButtonBase/ButtonBase.cjs +0 -5
- package/dist/common/ButtonBase/ButtonBase.d.cts +0 -35
- package/dist/common/ButtonBase/ButtonBase.d.ts +0 -35
- package/dist/common/ButtonBase/ButtonBase.js +0 -5
- package/dist/common/Headline/Headline.cjs +0 -4
- package/dist/common/Headline/Headline.js +0 -4
- package/dist/common/ImageWithFallback/ImageWithFallback.cjs +0 -3
- package/dist/common/ImageWithFallback/ImageWithFallback.js +0 -3
- package/dist/common/ProductCard/ProductCard.cjs +0 -11
- package/dist/common/ProductCard/ProductCard.d.cts +0 -91
- package/dist/common/ProductCard/ProductCard.d.ts +0 -91
- package/dist/common/ProductCard/ProductCard.js +0 -9
- package/dist/common/ProductCard/ProductCardSkeleton.cjs +0 -4
- package/dist/common/ProductCard/ProductCardSkeleton.d.cts +0 -12
- package/dist/common/ProductCard/ProductCardSkeleton.d.ts +0 -12
- package/dist/common/ProductCard/ProductCardSkeleton.js +0 -4
- package/dist/common/ProductGrid/ProductGrid.cjs +0 -11
- package/dist/common/ProductGrid/ProductGrid.d.cts +0 -26
- package/dist/common/ProductGrid/ProductGrid.d.ts +0 -26
- package/dist/common/ProductGrid/ProductGrid.js +0 -11
- package/dist/common/SparkleAnimation/SparkleAnimation.cjs +0 -3
- package/dist/common/SparkleAnimation/SparkleAnimation.d.cts +0 -15
- package/dist/common/SparkleAnimation/SparkleAnimation.d.ts +0 -15
- package/dist/common/SparkleAnimation/SparkleAnimation.js +0 -3
- package/dist/common/Spinner/Spinner.cjs +0 -3
- package/dist/common/Spinner/Spinner.d.cts +0 -11
- package/dist/common/Spinner/Spinner.d.ts +0 -11
- package/dist/common/Spinner/Spinner.js +0 -3
- package/dist/common/Text/Text.cjs +0 -4
- package/dist/common/Text/Text.d.cts +0 -28
- package/dist/common/Text/Text.d.ts +0 -28
- package/dist/common/Text/Text.js +0 -4
- package/dist/common/TextInput/TextInput.cjs +0 -4
- package/dist/common/TextInput/TextInput.d.cts +0 -98
- package/dist/common/TextInput/TextInput.d.ts +0 -98
- package/dist/common/TextInput/TextInput.js +0 -4
- package/dist/productCardVariants-C_QIZ-KF.js +0 -45
- package/dist/productCardVariants-Dd-wrJKP.cjs +0 -69
- package/dist/productGridVariants-BNX4YlRK.js +0 -20
- package/dist/productGridVariants-CsNV0ACt.cjs +0 -26
- package/dist/search/FilterScrollbar/AppliedFiltersScrollbar.cjs +0 -5
- package/dist/search/FilterScrollbar/AppliedFiltersScrollbar.d.cts +0 -22
- package/dist/search/FilterScrollbar/AppliedFiltersScrollbar.d.ts +0 -22
- package/dist/search/FilterScrollbar/AppliedFiltersScrollbar.js +0 -5
- package/dist/search/FilterScrollbar/DynamicFiltersScrollbar.cjs +0 -5
- package/dist/search/FilterScrollbar/DynamicFiltersScrollbar.d.cts +0 -28
- package/dist/search/FilterScrollbar/DynamicFiltersScrollbar.d.ts +0 -28
- package/dist/search/FilterScrollbar/DynamicFiltersScrollbar.js +0 -5
- package/dist/search/SearchFilter/SearchFilter.cjs +0 -7
- package/dist/search/SearchFilter/SearchFilter.d.cts +0 -18
- package/dist/search/SearchFilter/SearchFilter.d.ts +0 -18
- package/dist/search/SearchFilter/SearchFilter.js +0 -7
- package/dist/search/SearchFilter/SearchFilterHeader.cjs +0 -5
- package/dist/search/SearchFilter/SearchFilterHeader.d.cts +0 -12
- package/dist/search/SearchFilter/SearchFilterHeader.d.ts +0 -12
- package/dist/search/SearchFilter/SearchFilterHeader.js +0 -5
- package/dist/search/SearchFilter/SearchFilterItem.cjs +0 -5
- package/dist/search/SearchFilter/SearchFilterItem.d.cts +0 -13
- package/dist/search/SearchFilter/SearchFilterItem.d.ts +0 -13
- package/dist/search/SearchFilter/SearchFilterItem.js +0 -5
- package/dist/search/SearchInput/SearchInput.cjs +0 -6
- package/dist/search/SearchInput/SearchInput.d.cts +0 -20
- package/dist/search/SearchInput/SearchInput.d.ts +0 -20
- package/dist/search/SearchInput/SearchInput.js +0 -6
- package/dist/search/SearchInputAutocomplete/SearchAutocomplete.cjs +0 -3
- package/dist/search/SearchInputAutocomplete/SearchAutocomplete.js +0 -3
- package/dist/search/SearchResultsFilterSidebar/SearchResultsFilter.d.cts +0 -28
- package/dist/search/SearchResultsFilterSidebar/SearchResultsFilter.d.ts +0 -28
- package/dist/search/SearchResultsStates/NoSearchResultsFound.cjs +0 -30
- package/dist/search/SearchResultsStates/NoSearchResultsFound.d.cts +0 -17
- package/dist/search/SearchResultsStates/NoSearchResultsFound.d.ts +0 -17
- package/dist/search/SearchResultsStates/NoSearchResultsFound.js +0 -26
- package/dist/search/SearchResultsStates/SearchResultsGrid.cjs +0 -66
- package/dist/search/SearchResultsStates/SearchResultsGrid.d.cts +0 -41
- package/dist/search/SearchResultsStates/SearchResultsGrid.d.ts +0 -41
- package/dist/search/SearchResultsStates/SearchResultsGrid.js +0 -62
- package/dist/search/SearchResultsStates/SearchResultsLoadingGrid.cjs +0 -52
- package/dist/search/SearchResultsStates/SearchResultsLoadingGrid.d.cts +0 -15
- package/dist/search/SearchResultsStates/SearchResultsLoadingGrid.d.ts +0 -15
- package/dist/search/SearchResultsStates/SearchResultsLoadingGrid.js +0 -49
- package/dist/types-53zIialA.d.ts +0 -35
- package/dist/types-B4BGZSlV.d.cts +0 -4
- package/dist/types-BQNqA5xL.d.ts +0 -46
- package/dist/types-BRLWwGMI.d.ts +0 -4
- package/dist/types-CImLkcNh.d.cts +0 -46
- package/dist/types-Cph97xkm.d.ts +0 -6
- package/dist/types-CpiJO5UH.d.ts +0 -4
- package/dist/types-Dy4_w6Cf.d.cts +0 -4
- package/dist/types-TYhhwWZw.d.cts +0 -6
- package/dist/types-aa4flfRE.d.cts +0 -35
- package/src/components/common/ProductGrid/ProductGrid.tsx +0 -73
- package/src/components/search/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts +0 -45
- package/src/components/search/SearchResultsFilterSidebar/types.ts +0 -2
- package/src/components/search/types.ts +0 -5
- package/src/types/external.ts +0 -24
- /package/dist/{types-DFetqNL2.d.ts → types-Bm-qQyO3.d.ts} +0 -0
- /package/dist/{types-DaSkJnT_.d.cts → types-C-Jrlw5Z.d.cts} +0 -0
- /package/src/components/{common/ButtonBase → ButtonBase}/ButtonBase.tsx +0 -0
- /package/src/components/{common/Headline → Headline}/Headline.tsx +0 -0
- /package/src/components/{common/ImageWithFallback → ImageWithFallback}/ImageWithFallback.tsx +0 -0
- /package/src/components/{common/ProductCard → ProductCard}/ProductCardSkeleton.tsx +0 -0
- /package/src/components/{common/ProductCard → ProductCard}/productCardVariants.ts +0 -0
- /package/src/components/{common/ProductGrid → ProductGrid}/productGridVariants.ts +0 -0
- /package/src/components/{search/SearchFilter → SearchFilter}/types.ts +0 -0
- /package/src/components/{search/SearchInputForm → SearchInputForm}/types.ts +0 -0
- /package/src/components/{common/SparkleAnimation → SparkleAnimation}/SparkleAnimation.tsx +0 -0
- /package/src/components/{common/SparkleAnimation → SparkleAnimation}/types.ts +0 -0
- /package/src/components/{common/Spinner → Spinner}/Spinner.tsx +0 -0
- /package/src/components/{common/SuggestionButton → SuggestionButton}/SuggestionButton.tsx +0 -0
- /package/src/components/{common/SuggestionButton → SuggestionButton}/types.ts +0 -0
- /package/src/components/{common/Text → Text}/Text.tsx +0 -0
- /package/src/components/{common/Text → Text}/textVariantClasses.ts +0 -0
- /package/src/components/{common/Text → Text}/types.ts +0 -0
- /package/src/components/{common/TextInput → TextInput}/TextInput.tsx +0 -0
- /package/src/{components/models → models}/colorsConfig.ts +0 -0
- /package/src/{components/test → test}/types.ts +0 -0
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import "../textVariantClasses-CnjwO2Fv.js";
|
|
2
|
+
import { Text as Text$1 } from "../Text-BMg3d10t.js";
|
|
3
|
+
import { AppliedFiltersScrollbar, DynamicFiltersScrollbar } from "../DynamicFiltersScrollbar-BmPTqym5.js";
|
|
4
|
+
import "../Headline-XpaAeTSR.js";
|
|
5
|
+
import "../ImageWithFallback-Ckwsmd8P.js";
|
|
6
|
+
import { ProductCardSkeleton } from "../ProductCard-SF8-lXlT.js";
|
|
7
|
+
import "../Spinner-BgGihEfJ.js";
|
|
8
|
+
import { ProductGrid, productGridVariantClasses } from "../ProductGrid-DTUhH219.js";
|
|
9
|
+
import "../colorsConfig-BQlaCfxi.js";
|
|
10
|
+
import { searchFilterSidebarVariantClasses } from "../searchFilterSidebarVariants-BWQyiKwS.js";
|
|
11
|
+
import { SparkleAnimation } from "../SparkleAnimation-BdOjC8l-.js";
|
|
12
|
+
import "../Text-CV9pv8ds.js";
|
|
13
|
+
import { motion } from "framer-motion";
|
|
14
|
+
import classNames from "classnames";
|
|
15
|
+
import { Text } from "@envive-ai/react-toolkit/Text";
|
|
16
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
+
import Sparkles from "@envive-ai/react-icons/Sparkles";
|
|
18
|
+
|
|
19
|
+
//#region src/components/SearchResultsStates/NoSearchResultsFound.tsx
|
|
20
|
+
const NoSearchResultsFound = ({ containerPaddingClasses, includeBottomMargin = false, noResultsFoundText, sparkleIconColor = "var(--spiffy-colors-accent-primary)" }) => {
|
|
21
|
+
const containerClasses = classNames(containerPaddingClasses, includeBottomMargin ? "spiffy-tw-mb-[100vh]" : "", "spiffy-tw-mt-6");
|
|
22
|
+
return /* @__PURE__ */ jsx("div", {
|
|
23
|
+
className: containerClasses,
|
|
24
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
25
|
+
className: "spiffy-tw-flex spiffy-tw-items-start spiffy-tw-gap-2",
|
|
26
|
+
children: [/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Sparkles, {
|
|
27
|
+
className: "spiffy-tw-w-[24px] spiffy-tw-h-[24px]",
|
|
28
|
+
style: { color: sparkleIconColor }
|
|
29
|
+
}) }), /* @__PURE__ */ jsx(Text$1, {
|
|
30
|
+
variant: "body2",
|
|
31
|
+
children: noResultsFoundText || "I’m sorry, I wasn’t able to find an exact match. Try changing your filters or adjusting your search query."
|
|
32
|
+
})]
|
|
33
|
+
})
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/components/SearchResultsStates/SearchResultsGrid.tsx
|
|
39
|
+
const SearchResultsGrid = ({ productList, productCardConfig, merchantShortName, availableDynamicFilters, searchFilterSidebarVariant, productGridVariant, selectedFilterOptions, searchResponseId, containerXPaddingClasses, productGridClasses, onRemoveFilter, onToggleDynamicFilter }) => {
|
|
40
|
+
const sharedFilterBarClasses = classNames("spiffy-suggestion-bar", "spiffy-tw-no-scrollbar", "spiffy-tw-flex", "spiffy-tw-flex-row", "spiffy-tw-gap-2", "spiffy-tw-mb-[16px]", "spiffy-tw-overflow-x-scroll", containerXPaddingClasses);
|
|
41
|
+
const filterBarClasses = classNames(sharedFilterBarClasses, "spiffy-tw-mt-[24px]");
|
|
42
|
+
const appliedFilterBarClasses = classNames(sharedFilterBarClasses, "spiffy-tw-mb-[32px]", "spiffy-tw-mt-[8px]");
|
|
43
|
+
const { filterDefaultClasses, filterHoverClasses, appliedFilterBackgroundClasses } = searchFilterSidebarVariantClasses[searchFilterSidebarVariant];
|
|
44
|
+
return /* @__PURE__ */ jsxs(motion.div, {
|
|
45
|
+
className: "spiffy-tw-justify-center spiffy-tw-w-full spiffy-tw-overflow-hidden",
|
|
46
|
+
initial: { opacity: 0 },
|
|
47
|
+
animate: { opacity: 1 },
|
|
48
|
+
exit: { opacity: 0 },
|
|
49
|
+
transition: { duration: .2 },
|
|
50
|
+
children: [
|
|
51
|
+
/* @__PURE__ */ jsx(AppliedFiltersScrollbar, {
|
|
52
|
+
selectedFilterOptions,
|
|
53
|
+
filterBarClassNames: appliedFilterBarClasses,
|
|
54
|
+
filterDefaultClasses,
|
|
55
|
+
filterHoverClasses,
|
|
56
|
+
appliedFilterBackgroundClasses,
|
|
57
|
+
onRemoveFilter
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ jsx(DynamicFiltersScrollbar, {
|
|
60
|
+
availableDynamicFilters,
|
|
61
|
+
filterBarClassNames: filterBarClasses,
|
|
62
|
+
filterDefaultClasses,
|
|
63
|
+
filterHoverClasses,
|
|
64
|
+
onToggleDynamicFilter
|
|
65
|
+
}),
|
|
66
|
+
/* @__PURE__ */ jsx(ProductGrid, {
|
|
67
|
+
productList,
|
|
68
|
+
productGridVariant,
|
|
69
|
+
productGridClasses,
|
|
70
|
+
productCardConfig,
|
|
71
|
+
merchantShortName,
|
|
72
|
+
searchResponseId
|
|
73
|
+
})
|
|
74
|
+
]
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/components/SearchResultsStates/SearchResultsLoadingGrid.tsx
|
|
80
|
+
const SearchResultsLoadingGrid = ({ productGridVariant, productGridClasses, sparkleIconColor = "var(--spiffy-colors-accent-primary)" }) => {
|
|
81
|
+
const { productCardLayoutVariant, productCardImageAspectRatio } = productGridVariantClasses[productGridVariant];
|
|
82
|
+
return /* @__PURE__ */ jsx(motion.div, {
|
|
83
|
+
className: "spiffy-tw-justify-center spiffy-tw-w-full spiffy-tw-overflow-hidden",
|
|
84
|
+
initial: { opacity: 0 },
|
|
85
|
+
animate: { opacity: 1 },
|
|
86
|
+
exit: { opacity: 0 },
|
|
87
|
+
transition: { duration: .2 },
|
|
88
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
89
|
+
className: "spiffy-tw-mt-6 spiffy-tw-w-full",
|
|
90
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
91
|
+
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-justify-between spiffy-tw-mb-4",
|
|
92
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
93
|
+
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-gap-2 spiffy-tw-ml-[16px] md:spiffy-tw-ml-[80px]",
|
|
94
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
95
|
+
className: "spiffy-tw-width-[24px]",
|
|
96
|
+
children: /* @__PURE__ */ jsx(SparkleAnimation, {
|
|
97
|
+
color: sparkleIconColor,
|
|
98
|
+
animate: true
|
|
99
|
+
})
|
|
100
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
101
|
+
variant: "body2",
|
|
102
|
+
children: "Finding the best options for you..."
|
|
103
|
+
})]
|
|
104
|
+
})
|
|
105
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
106
|
+
className: productGridClasses,
|
|
107
|
+
children: Array.from({ length: 8 }).map((_, index) => /* @__PURE__ */ jsx(ProductCardSkeleton, {
|
|
108
|
+
layoutVariant: productCardLayoutVariant,
|
|
109
|
+
aspectRatio: productCardImageAspectRatio,
|
|
110
|
+
growWithContainer: true
|
|
111
|
+
}, index))
|
|
112
|
+
})]
|
|
113
|
+
})
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
//#endregion
|
|
118
|
+
export { NoSearchResultsFound, SearchResultsGrid, SearchResultsLoadingGrid };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/SparkleAnimation/SparkleAnimation.d.ts
|
|
4
|
+
interface SparkleAnimationProps {
|
|
5
|
+
color: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
animate?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const SparkleAnimation: ({
|
|
10
|
+
color,
|
|
11
|
+
className,
|
|
12
|
+
animate
|
|
13
|
+
}: SparkleAnimationProps) => react_jsx_runtime14.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/SparkleAnimation/types.d.ts
|
|
16
|
+
declare enum SparkleAnimationOverride {
|
|
17
|
+
CONTAINER = "spiffy-sparkle-animation-container",
|
|
18
|
+
STAR_ONE_CONTAINER = "spiffy-sparkle-animation-star-one-container",
|
|
19
|
+
STAR_TWO_CONTAINER = "spiffy-sparkle-animation-star-two-container",
|
|
20
|
+
STAR_THREE_CONTAINER = "spiffy-sparkle-animation-star-three-container",
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { SparkleAnimation, SparkleAnimationOverride };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/SparkleAnimation/SparkleAnimation.d.ts
|
|
4
|
+
interface SparkleAnimationProps {
|
|
5
|
+
color: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
animate?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const SparkleAnimation: ({
|
|
10
|
+
color,
|
|
11
|
+
className,
|
|
12
|
+
animate
|
|
13
|
+
}: SparkleAnimationProps) => react_jsx_runtime2.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/SparkleAnimation/types.d.ts
|
|
16
|
+
declare enum SparkleAnimationOverride {
|
|
17
|
+
CONTAINER = "spiffy-sparkle-animation-container",
|
|
18
|
+
STAR_ONE_CONTAINER = "spiffy-sparkle-animation-star-one-container",
|
|
19
|
+
STAR_TWO_CONTAINER = "spiffy-sparkle-animation-star-two-container",
|
|
20
|
+
STAR_THREE_CONTAINER = "spiffy-sparkle-animation-star-three-container",
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { SparkleAnimation, SparkleAnimationOverride };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { motion } from "framer-motion";
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
|
+
import classNames from "classnames";
|
|
3
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
import { motion } from "framer-motion";
|
|
5
5
|
import FourPointStar from "@envive-ai/react-icons/src/FourPointStar";
|
|
6
6
|
|
|
7
|
-
//#region src/components/
|
|
7
|
+
//#region src/components/SparkleAnimation/types.ts
|
|
8
8
|
let SparkleAnimationOverride = /* @__PURE__ */ function(SparkleAnimationOverride$1) {
|
|
9
9
|
SparkleAnimationOverride$1["CONTAINER"] = "spiffy-sparkle-animation-container";
|
|
10
10
|
SparkleAnimationOverride$1["STAR_ONE_CONTAINER"] = "spiffy-sparkle-animation-star-one-container";
|
|
@@ -14,7 +14,7 @@ let SparkleAnimationOverride = /* @__PURE__ */ function(SparkleAnimationOverride
|
|
|
14
14
|
}({});
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
|
-
//#region src/components/
|
|
17
|
+
//#region src/components/SparkleAnimation/SparkleAnimation.tsx
|
|
18
18
|
const ANIMATION_CYCLE_TIME = 1e3;
|
|
19
19
|
const STAR_DELAY_OFFSET = 250;
|
|
20
20
|
const SparkleAnimation = ({ color, className, animate = true }) => {
|
|
@@ -82,4 +82,4 @@ const SparkleAnimation = ({ color, className, animate = true }) => {
|
|
|
82
82
|
};
|
|
83
83
|
|
|
84
84
|
//#endregion
|
|
85
|
-
export { SparkleAnimation };
|
|
85
|
+
export { SparkleAnimation, SparkleAnimationOverride };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
let
|
|
3
|
-
|
|
2
|
+
let framer_motion = require("framer-motion");
|
|
3
|
+
framer_motion = require_chunk.__toESM(framer_motion);
|
|
4
4
|
let react = require("react");
|
|
5
5
|
react = require_chunk.__toESM(react);
|
|
6
|
+
let classnames = require("classnames");
|
|
7
|
+
classnames = require_chunk.__toESM(classnames);
|
|
6
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
9
|
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
10
|
let __envive_ai_react_icons_src_FourPointStar = require("@envive-ai/react-icons/src/FourPointStar");
|
|
11
11
|
__envive_ai_react_icons_src_FourPointStar = require_chunk.__toESM(__envive_ai_react_icons_src_FourPointStar);
|
|
12
12
|
|
|
13
|
-
//#region src/components/
|
|
13
|
+
//#region src/components/SparkleAnimation/types.ts
|
|
14
14
|
let SparkleAnimationOverride = /* @__PURE__ */ function(SparkleAnimationOverride$1) {
|
|
15
15
|
SparkleAnimationOverride$1["CONTAINER"] = "spiffy-sparkle-animation-container";
|
|
16
16
|
SparkleAnimationOverride$1["STAR_ONE_CONTAINER"] = "spiffy-sparkle-animation-star-one-container";
|
|
@@ -20,7 +20,7 @@ let SparkleAnimationOverride = /* @__PURE__ */ function(SparkleAnimationOverride
|
|
|
20
20
|
}({});
|
|
21
21
|
|
|
22
22
|
//#endregion
|
|
23
|
-
//#region src/components/
|
|
23
|
+
//#region src/components/SparkleAnimation/SparkleAnimation.tsx
|
|
24
24
|
const ANIMATION_CYCLE_TIME = 1e3;
|
|
25
25
|
const STAR_DELAY_OFFSET = 250;
|
|
26
26
|
const SparkleAnimation = ({ color, className, animate = true }) => {
|
|
@@ -93,4 +93,10 @@ Object.defineProperty(exports, 'SparkleAnimation', {
|
|
|
93
93
|
get: function () {
|
|
94
94
|
return SparkleAnimation;
|
|
95
95
|
}
|
|
96
|
+
});
|
|
97
|
+
Object.defineProperty(exports, 'SparkleAnimationOverride', {
|
|
98
|
+
enumerable: true,
|
|
99
|
+
get: function () {
|
|
100
|
+
return SparkleAnimationOverride;
|
|
101
|
+
}
|
|
96
102
|
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/Spinner/Spinner.d.ts
|
|
4
|
+
type SpinnerProps = {
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const Spinner: ({
|
|
8
|
+
className
|
|
9
|
+
}: SpinnerProps) => react_jsx_runtime3.JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { Spinner };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/Spinner/Spinner.d.ts
|
|
4
|
+
type SpinnerProps = {
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const Spinner: ({
|
|
8
|
+
className
|
|
9
|
+
}: SpinnerProps) => react_jsx_runtime20.JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { Spinner };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import classNames from "classnames";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
|
|
4
|
-
//#region src/components/
|
|
4
|
+
//#region src/components/Spinner/Spinner.tsx
|
|
5
5
|
const Spinner = ({ className }) => {
|
|
6
6
|
const svgClassnames = classNames({
|
|
7
7
|
"spiffy-tw-w-4": true,
|
|
@@ -4,7 +4,7 @@ classnames = require_chunk.__toESM(classnames);
|
|
|
4
4
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
5
|
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
6
6
|
|
|
7
|
-
//#region src/components/
|
|
7
|
+
//#region src/components/Spinner/Spinner.tsx
|
|
8
8
|
const Spinner = ({ className }) => {
|
|
9
9
|
const svgClassnames = (0, classnames.default)({
|
|
10
10
|
"spiffy-tw-w-4": true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_chunk = require('
|
|
2
|
-
const require_ButtonBase = require('
|
|
3
|
-
require('
|
|
4
|
-
require('
|
|
1
|
+
const require_chunk = require('../chunk-CUT6urMc.cjs');
|
|
2
|
+
const require_ButtonBase = require('../ButtonBase-DcyxOe2v.cjs');
|
|
3
|
+
require('../textVariantClasses-BnV4wXaw.cjs');
|
|
4
|
+
require('../Text-CgOYTs8D.cjs');
|
|
5
5
|
let classnames = require("classnames");
|
|
6
6
|
classnames = require_chunk.__toESM(classnames);
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -11,7 +11,7 @@ __envive_ai_react_icons_src_FourPointStar = require_chunk.__toESM(__envive_ai_re
|
|
|
11
11
|
let __envive_ai_react_icons_src_OutlinedStar = require("@envive-ai/react-icons/src/OutlinedStar");
|
|
12
12
|
__envive_ai_react_icons_src_OutlinedStar = require_chunk.__toESM(__envive_ai_react_icons_src_OutlinedStar);
|
|
13
13
|
|
|
14
|
-
//#region src/components/
|
|
14
|
+
//#region src/components/SuggestionButton/SuggestionButton.tsx
|
|
15
15
|
const SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = "spiffy-suggestion-button-question-class";
|
|
16
16
|
const SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS = "spiffy-suggestion-button-answer-class";
|
|
17
17
|
const SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS = "spiffy-suggestion-button-text-class";
|
package/dist/{common/SuggestionButton/SuggestionButton.d.cts → SuggestionButton/index.d.cts}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { TestProps } from "
|
|
2
|
-
import * as
|
|
1
|
+
import { TestProps } from "../types-BQYpWDJ4.cjs";
|
|
2
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
|
-
//#region src/components/
|
|
4
|
+
//#region src/components/SuggestionButton/types.d.ts
|
|
5
5
|
type SuggestionButtonVariant = 'outlined' | 'outlinedLight' | 'primary' | 'secondary' | 'tertiary' | 'dark' | 'darkAccent' | 'darkPrimary' | 'secondaryDark' | 'secondaryAccent' | 'transparent' | 'transparentDark' | 'lightDark';
|
|
6
6
|
//#endregion
|
|
7
|
-
//#region src/components/
|
|
7
|
+
//#region src/components/SuggestionButton/SuggestionButton.d.ts
|
|
8
8
|
declare const SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = "spiffy-suggestion-button-question-class";
|
|
9
9
|
declare const SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS = "spiffy-suggestion-button-answer-class";
|
|
10
10
|
declare const SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS = "spiffy-suggestion-button-text-class";
|
|
@@ -30,6 +30,6 @@ declare const SuggestionButton: ({
|
|
|
30
30
|
dataAttributes,
|
|
31
31
|
dataTestId,
|
|
32
32
|
onClick
|
|
33
|
-
}: SuggestionButtonProps) =>
|
|
33
|
+
}: SuggestionButtonProps) => react_jsx_runtime13.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
|
-
export { SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS, SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS, SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS, SuggestionButton };
|
|
35
|
+
export { SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS, SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS, SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS, SuggestionButton, SuggestionButtonVariant };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { TestProps } from "
|
|
2
|
-
import * as
|
|
1
|
+
import { TestProps } from "../types-BruEHw-X.js";
|
|
2
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
|
-
//#region src/components/
|
|
4
|
+
//#region src/components/SuggestionButton/types.d.ts
|
|
5
5
|
type SuggestionButtonVariant = 'outlined' | 'outlinedLight' | 'primary' | 'secondary' | 'tertiary' | 'dark' | 'darkAccent' | 'darkPrimary' | 'secondaryDark' | 'secondaryAccent' | 'transparent' | 'transparentDark' | 'lightDark';
|
|
6
6
|
//#endregion
|
|
7
|
-
//#region src/components/
|
|
7
|
+
//#region src/components/SuggestionButton/SuggestionButton.d.ts
|
|
8
8
|
declare const SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = "spiffy-suggestion-button-question-class";
|
|
9
9
|
declare const SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS = "spiffy-suggestion-button-answer-class";
|
|
10
10
|
declare const SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS = "spiffy-suggestion-button-text-class";
|
|
@@ -30,6 +30,6 @@ declare const SuggestionButton: ({
|
|
|
30
30
|
dataAttributes,
|
|
31
31
|
dataTestId,
|
|
32
32
|
onClick
|
|
33
|
-
}: SuggestionButtonProps) =>
|
|
33
|
+
}: SuggestionButtonProps) => react_jsx_runtime4.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
|
-
export { SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS, SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS, SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS, SuggestionButton };
|
|
35
|
+
export { SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS, SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS, SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS, SuggestionButton, SuggestionButtonVariant };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ButtonBase } from "
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
1
|
+
import { ButtonBase } from "../ButtonBase-BIAu5fIG.js";
|
|
2
|
+
import "../textVariantClasses-CnjwO2Fv.js";
|
|
3
|
+
import "../Text-BMg3d10t.js";
|
|
4
4
|
import classNames from "classnames";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import FourPointStar from "@envive-ai/react-icons/src/FourPointStar";
|
|
7
7
|
import OutlinedStar from "@envive-ai/react-icons/src/OutlinedStar";
|
|
8
8
|
|
|
9
|
-
//#region src/components/
|
|
9
|
+
//#region src/components/SuggestionButton/SuggestionButton.tsx
|
|
10
10
|
const SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = "spiffy-suggestion-button-question-class";
|
|
11
11
|
const SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS = "spiffy-suggestion-button-answer-class";
|
|
12
12
|
const SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS = "spiffy-suggestion-button-text-class";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const require_textVariantClasses = require('../textVariantClasses-BnV4wXaw.cjs');
|
|
2
|
+
const require_Text = require('../Text-CgOYTs8D.cjs');
|
|
3
|
+
const require_Text$1 = require('../Text-DDT3sqY1.cjs');
|
|
4
|
+
|
|
5
|
+
exports.ExpandableTextOverrides = require_Text$1.ExpandableTextOverrides;
|
|
6
|
+
exports.HeadlineVariantMap = require_textVariantClasses.HeadlineVariantMap;
|
|
7
|
+
exports.Text = require_Text.Text;
|
|
8
|
+
exports.TextStyleVariantMap = require_textVariantClasses.TextStyleVariantMap;
|
|
9
|
+
exports.TextVariantMap = require_textVariantClasses.TextVariantMap;
|
|
10
|
+
exports.getVariantPlaceholderClassNames = require_textVariantClasses.getVariantPlaceholderClassNames;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { HeadlineVariantMap, TextStyleVariantMap, TextVariantMap, getVariantPlaceholderClassNames } from "../textVariantClasses-Cdg-UUHi.cjs";
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/Text/types.d.ts
|
|
5
|
+
declare enum ExpandableTextOverrides {
|
|
6
|
+
EXPANDABLE_TEXT_CONTAINER = "spiffy-expandable-text-container",
|
|
7
|
+
EXPANDABLE_TEXT = "spiffy-expandable-text",
|
|
8
|
+
EXPANDABLE_BUTTON = "spiffy-expandable-button",
|
|
9
|
+
}
|
|
10
|
+
type TextVariant = 'body1' | 'body2' | 'body3' | 'body4' | 'body5';
|
|
11
|
+
type TextType = 'p' | 'span' | 'sub';
|
|
12
|
+
type HeadlineProps = {
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
className?: string;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
variant?: HeadlineVariant;
|
|
17
|
+
testId?: string;
|
|
18
|
+
id?: string;
|
|
19
|
+
};
|
|
20
|
+
type HeadlineVariant = 't1' | 't2' | 't3' | 'h1' | 'h2' | 'h3' | 'h4';
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/components/Text/Text.d.ts
|
|
23
|
+
type TextProps = {
|
|
24
|
+
children: React.ReactNode;
|
|
25
|
+
noOfLines?: number;
|
|
26
|
+
className?: string;
|
|
27
|
+
style?: React.CSSProperties;
|
|
28
|
+
variant?: TextVariant;
|
|
29
|
+
type?: TextType;
|
|
30
|
+
testId?: string;
|
|
31
|
+
};
|
|
32
|
+
declare const Text: ({
|
|
33
|
+
children,
|
|
34
|
+
className,
|
|
35
|
+
style,
|
|
36
|
+
noOfLines,
|
|
37
|
+
testId,
|
|
38
|
+
type,
|
|
39
|
+
variant
|
|
40
|
+
}: TextProps) => react_jsx_runtime1.JSX.Element;
|
|
41
|
+
//#endregion
|
|
42
|
+
export { ExpandableTextOverrides, HeadlineProps, HeadlineVariant, HeadlineVariantMap, Text, TextStyleVariantMap, TextType, TextVariant, TextVariantMap, getVariantPlaceholderClassNames };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { HeadlineVariantMap, TextStyleVariantMap, TextVariantMap, getVariantPlaceholderClassNames } from "../textVariantClasses-C8OCWZAw.js";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/Text/types.d.ts
|
|
5
|
+
declare enum ExpandableTextOverrides {
|
|
6
|
+
EXPANDABLE_TEXT_CONTAINER = "spiffy-expandable-text-container",
|
|
7
|
+
EXPANDABLE_TEXT = "spiffy-expandable-text",
|
|
8
|
+
EXPANDABLE_BUTTON = "spiffy-expandable-button",
|
|
9
|
+
}
|
|
10
|
+
type TextVariant = 'body1' | 'body2' | 'body3' | 'body4' | 'body5';
|
|
11
|
+
type TextType = 'p' | 'span' | 'sub';
|
|
12
|
+
type HeadlineProps = {
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
className?: string;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
variant?: HeadlineVariant;
|
|
17
|
+
testId?: string;
|
|
18
|
+
id?: string;
|
|
19
|
+
};
|
|
20
|
+
type HeadlineVariant = 't1' | 't2' | 't3' | 'h1' | 'h2' | 'h3' | 'h4';
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/components/Text/Text.d.ts
|
|
23
|
+
type TextProps = {
|
|
24
|
+
children: React.ReactNode;
|
|
25
|
+
noOfLines?: number;
|
|
26
|
+
className?: string;
|
|
27
|
+
style?: React.CSSProperties;
|
|
28
|
+
variant?: TextVariant;
|
|
29
|
+
type?: TextType;
|
|
30
|
+
testId?: string;
|
|
31
|
+
};
|
|
32
|
+
declare const Text: ({
|
|
33
|
+
children,
|
|
34
|
+
className,
|
|
35
|
+
style,
|
|
36
|
+
noOfLines,
|
|
37
|
+
testId,
|
|
38
|
+
type,
|
|
39
|
+
variant
|
|
40
|
+
}: TextProps) => react_jsx_runtime0.JSX.Element;
|
|
41
|
+
//#endregion
|
|
42
|
+
export { ExpandableTextOverrides, HeadlineProps, HeadlineVariant, HeadlineVariantMap, Text, TextStyleVariantMap, TextType, TextVariant, TextVariantMap, getVariantPlaceholderClassNames };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HeadlineVariantMap, TextStyleVariantMap, TextVariantMap, getVariantPlaceholderClassNames } from "../textVariantClasses-CnjwO2Fv.js";
|
|
2
|
+
import { Text } from "../Text-BMg3d10t.js";
|
|
3
|
+
import { ExpandableTextOverrides } from "../Text-CV9pv8ds.js";
|
|
4
|
+
|
|
5
|
+
export { ExpandableTextOverrides, HeadlineVariantMap, Text, TextStyleVariantMap, TextVariantMap, getVariantPlaceholderClassNames };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TextVariantMap } from "./textVariantClasses-
|
|
1
|
+
import { TextVariantMap } from "./textVariantClasses-CnjwO2Fv.js";
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
|
|
5
|
-
//#region src/components/
|
|
5
|
+
//#region src/components/Text/Text.tsx
|
|
6
6
|
const Text = ({ children, className, style, noOfLines, testId, type = "span", variant = "body3" }) => {
|
|
7
7
|
const variantClassNames = variant ? TextVariantMap[variant] : {};
|
|
8
8
|
const textClassNames = classNames(className, variantClassNames, {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/components/Text/types.ts
|
|
2
|
+
let ExpandableTextOverrides = /* @__PURE__ */ function(ExpandableTextOverrides$1) {
|
|
3
|
+
ExpandableTextOverrides$1["EXPANDABLE_TEXT_CONTAINER"] = "spiffy-expandable-text-container";
|
|
4
|
+
ExpandableTextOverrides$1["EXPANDABLE_TEXT"] = "spiffy-expandable-text";
|
|
5
|
+
ExpandableTextOverrides$1["EXPANDABLE_BUTTON"] = "spiffy-expandable-button";
|
|
6
|
+
return ExpandableTextOverrides$1;
|
|
7
|
+
}({});
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ExpandableTextOverrides };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_textVariantClasses = require('./textVariantClasses-
|
|
2
|
+
const require_textVariantClasses = require('./textVariantClasses-BnV4wXaw.cjs');
|
|
3
3
|
let classnames = require("classnames");
|
|
4
4
|
classnames = require_chunk.__toESM(classnames);
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
6
|
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
7
7
|
|
|
8
|
-
//#region src/components/
|
|
8
|
+
//#region src/components/Text/Text.tsx
|
|
9
9
|
const Text = ({ children, className, style, noOfLines, testId, type = "span", variant = "body3" }) => {
|
|
10
10
|
const variantClassNames = variant ? require_textVariantClasses.TextVariantMap[variant] : {};
|
|
11
11
|
const textClassNames = (0, classnames.default)(className, variantClassNames, {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/components/Text/types.ts
|
|
3
|
+
let ExpandableTextOverrides = /* @__PURE__ */ function(ExpandableTextOverrides$1) {
|
|
4
|
+
ExpandableTextOverrides$1["EXPANDABLE_TEXT_CONTAINER"] = "spiffy-expandable-text-container";
|
|
5
|
+
ExpandableTextOverrides$1["EXPANDABLE_TEXT"] = "spiffy-expandable-text";
|
|
6
|
+
ExpandableTextOverrides$1["EXPANDABLE_BUTTON"] = "spiffy-expandable-button";
|
|
7
|
+
return ExpandableTextOverrides$1;
|
|
8
|
+
}({});
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
Object.defineProperty(exports, 'ExpandableTextOverrides', {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () {
|
|
14
|
+
return ExpandableTextOverrides;
|
|
15
|
+
}
|
|
16
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TextStyleVariantMap } from "../textVariantClasses-Cdg-UUHi.cjs";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/TextInput/TextInput.d.ts
|
|
5
|
+
interface TextInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
6
|
+
borderRadius: 'sm' | 'md' | 'lg' | 'xl';
|
|
7
|
+
borderColorClass?: string;
|
|
8
|
+
placeholderVariant?: keyof typeof TextStyleVariantMap;
|
|
9
|
+
}
|
|
10
|
+
declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { TextInput, TextInputProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TextStyleVariantMap } from "../textVariantClasses-C8OCWZAw.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/TextInput/TextInput.d.ts
|
|
5
|
+
interface TextInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
6
|
+
borderRadius: 'sm' | 'md' | 'lg' | 'xl';
|
|
7
|
+
borderColorClass?: string;
|
|
8
|
+
placeholderVariant?: keyof typeof TextStyleVariantMap;
|
|
9
|
+
}
|
|
10
|
+
declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { TextInput, TextInputProps };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_textVariantClasses = require('./textVariantClasses-
|
|
3
|
-
let classnames = require("classnames");
|
|
4
|
-
classnames = require_chunk.__toESM(classnames);
|
|
2
|
+
const require_textVariantClasses = require('./textVariantClasses-BnV4wXaw.cjs');
|
|
5
3
|
let react = require("react");
|
|
6
4
|
react = require_chunk.__toESM(react);
|
|
5
|
+
let classnames = require("classnames");
|
|
6
|
+
classnames = require_chunk.__toESM(classnames);
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
9
9
|
|
|
10
|
-
//#region src/components/
|
|
10
|
+
//#region src/components/TextInput/TextInput.tsx
|
|
11
11
|
const TextInput = react.default.forwardRef(({ className, borderRadius, borderColorClass, placeholderVariant,...rest }, ref) => {
|
|
12
12
|
const variantClassNames = placeholderVariant ? require_textVariantClasses.TextStyleVariantMap[placeholderVariant] : {};
|
|
13
13
|
const placeholderVariantClassNames = require_textVariantClasses.getVariantPlaceholderClassNames(variantClassNames);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { TextStyleVariantMap, getVariantPlaceholderClassNames } from "./textVariantClasses-
|
|
2
|
-
import classNames from "classnames";
|
|
1
|
+
import { TextStyleVariantMap, getVariantPlaceholderClassNames } from "./textVariantClasses-CnjwO2Fv.js";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import classNames from "classnames";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
|
-
//#region src/components/
|
|
6
|
+
//#region src/components/TextInput/TextInput.tsx
|
|
7
7
|
const TextInput = React.forwardRef(({ className, borderRadius, borderColorClass, placeholderVariant,...rest }, ref) => {
|
|
8
8
|
const variantClassNames = placeholderVariant ? TextStyleVariantMap[placeholderVariant] : {};
|
|
9
9
|
const placeholderVariantClassNames = getVariantPlaceholderClassNames(variantClassNames);
|