@envive-ai/react-toolkit 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ButtonBase/index.cjs +6 -0
- package/dist/ButtonBase/index.d.cts +43 -0
- package/dist/{common/ButtonBase/ButtonBase.d.ts → ButtonBase/index.d.ts} +14 -6
- package/dist/ButtonBase/index.js +5 -0
- package/dist/{ButtonBase-C1rsL9gO.js → ButtonBase-CpmFsiUf.js} +4 -4
- package/dist/{ButtonBase-a8uj6c2f.cjs → ButtonBase-Dlh3bpR3.cjs} +9 -3
- package/dist/{AppliedFiltersScrollbar-BlcyhZkZ.cjs → DynamicFiltersScrollbar-D8Lms7Ox.cjs} +34 -2
- package/dist/{AppliedFiltersScrollbar-DFGzRemu.js → DynamicFiltersScrollbar-t_JASmYC.js} +29 -3
- package/dist/FilterScrollbar/index.cjs +6 -0
- package/dist/FilterScrollbar/index.d.cts +47 -0
- package/dist/FilterScrollbar/index.d.ts +47 -0
- package/dist/FilterScrollbar/index.js +5 -0
- package/dist/Headline/index.cjs +4 -0
- package/dist/{common/Headline/Headline.d.ts → Headline/index.d.cts} +3 -3
- package/dist/{common/Headline/Headline.d.cts → Headline/index.d.ts} +1 -1
- package/dist/Headline/index.js +4 -0
- package/dist/{Headline-8on6ZB9e.js → Headline-COAnonc2.js} +2 -2
- package/dist/{Headline-CcWn0w-a.cjs → Headline-CdddUGwy.cjs} +2 -2
- package/dist/ImageWithFallback/index.cjs +3 -0
- package/dist/{common/ImageWithFallback/ImageWithFallback.d.cts → ImageWithFallback/index.d.cts} +1 -1
- package/dist/{common/ImageWithFallback/ImageWithFallback.d.ts → ImageWithFallback/index.d.ts} +3 -3
- package/dist/ImageWithFallback/index.js +3 -0
- package/dist/{ImageWithFallback-ioeMFrTf.cjs → ImageWithFallback-By6QdlCR.cjs} +1 -1
- package/dist/{ImageWithFallback-gN5HDS9L.js → ImageWithFallback-DtUrq_bk.js} +1 -1
- package/dist/ProductCard/index.cjs +18 -0
- package/dist/{common/ProductCard/ProductCard.d.ts → ProductCard/index.d.cts} +26 -8
- package/dist/{common/ProductCard/ProductCard.d.cts → ProductCard/index.d.ts} +22 -4
- package/dist/ProductCard/index.js +9 -0
- package/dist/{ProductCard-C7WUShhN.cjs → ProductCard-CvTRvhm7.cjs} +77 -10
- package/dist/{ProductCard-B5wnOeR9.js → ProductCard-aJbQz6Q7.js} +50 -7
- package/dist/{ProductCardSkeleton-BPfp6IOp.js → ProductCardSkeleton-B6YetUCT.js} +9 -4
- package/dist/{ProductCardSkeleton-BgvDlaty.cjs → ProductCardSkeleton-BzBK36m-.cjs} +21 -4
- package/dist/ProductGrid/index.cjs +10 -0
- package/dist/ProductGrid/index.d.cts +36 -0
- package/dist/ProductGrid/index.d.ts +36 -0
- package/dist/ProductGrid/index.js +9 -0
- package/dist/{ProductGrid-DZgwGPSQ.cjs → ProductGrid-CSIH2_G9.cjs} +28 -4
- package/dist/{ProductGrid-wnSc9bXT.js → ProductGrid-NOCayW9O.js} +22 -4
- package/dist/{SearchAutocomplete-BrF2SMoZ.cjs → SearchAutocomplete-CQxxe5Op.cjs} +1 -1
- package/dist/{SearchAutocomplete-B8mO03Rr.js → SearchAutocomplete-DCu9-Yfk.js} +1 -1
- package/dist/SearchFilter/index.cjs +8 -0
- package/dist/SearchFilter/index.d.cts +35 -0
- package/dist/SearchFilter/index.d.ts +35 -0
- package/dist/SearchFilter/index.js +6 -0
- package/dist/SearchFilterHeader-BDEcDc_4.js +114 -0
- package/dist/SearchFilterHeader-qkRVfAB5.cjs +134 -0
- package/dist/SearchInput/index.cjs +7 -0
- package/dist/SearchInput/index.d.cts +33 -0
- package/dist/SearchInput/index.d.ts +33 -0
- package/dist/SearchInput/index.js +6 -0
- package/dist/{SearchInput-mLPisqFO.cjs → SearchInput-Cdpwswyv.cjs} +4 -4
- package/dist/{SearchInput-CzVUsUSb.js → SearchInput-DxGvYGZO.js} +4 -4
- package/dist/SearchInputAutocomplete/index.cjs +3 -0
- package/dist/{search/SearchInputAutocomplete/SearchAutocomplete.d.cts → SearchInputAutocomplete/index.d.cts} +1 -1
- package/dist/{search/SearchInputAutocomplete/SearchAutocomplete.d.ts → SearchInputAutocomplete/index.d.ts} +1 -1
- package/dist/SearchInputAutocomplete/index.js +3 -0
- package/dist/{search/SearchInputForm/SearchInputForm.cjs → SearchInputForm/index.cjs} +7 -7
- package/dist/{search/SearchInputForm/SearchInputForm.d.ts → SearchInputForm/index.d.cts} +5 -5
- package/dist/{search/SearchInputForm/SearchInputForm.d.cts → SearchInputForm/index.d.ts} +5 -5
- package/dist/{search/SearchInputForm/SearchInputForm.js → SearchInputForm/index.js} +6 -6
- package/dist/{search/SearchResultsFilterSidebar/SearchResultsFilter.cjs → SearchResultsFilterSidebar/index.cjs} +11 -12
- package/dist/SearchResultsFilterSidebar/index.d.cts +44 -0
- package/dist/SearchResultsFilterSidebar/index.d.ts +44 -0
- package/dist/{search/SearchResultsFilterSidebar/SearchResultsFilter.js → SearchResultsFilterSidebar/index.js} +8 -10
- package/dist/SearchResultsStates/index.cjs +127 -0
- package/dist/SearchResultsStates/index.d.cts +66 -0
- package/dist/SearchResultsStates/index.d.ts +66 -0
- package/dist/SearchResultsStates/index.js +120 -0
- package/dist/SparkleAnimation/index.cjs +4 -0
- package/dist/SparkleAnimation/index.d.cts +23 -0
- package/dist/SparkleAnimation/index.d.ts +23 -0
- package/dist/SparkleAnimation/index.js +3 -0
- package/dist/{SparkleAnimation-Qs17S1rn.js → SparkleAnimation-DfMCtvAQ.js} +3 -3
- package/dist/{SparkleAnimation-Ba5G4MIQ.cjs → SparkleAnimation-j-mAMEZZ.cjs} +8 -2
- package/dist/Spinner/index.cjs +3 -0
- package/dist/Spinner/index.d.cts +11 -0
- package/dist/Spinner/index.d.ts +11 -0
- package/dist/Spinner/index.js +3 -0
- package/dist/{Spinner-BZ-kTOpm.js → Spinner-D9kkaM9d.js} +1 -1
- package/dist/{Spinner-CfQ85Ajl.cjs → Spinner-DX35Epv3.cjs} +1 -1
- package/dist/{common/SuggestionButton/SuggestionButton.cjs → SuggestionButton/index.cjs} +7 -7
- 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} +5 -5
- package/dist/Text/index.cjs +18 -0
- package/dist/Text/index.d.cts +42 -0
- package/dist/Text/index.d.ts +42 -0
- package/dist/Text/index.js +13 -0
- package/dist/{Text-Bdv7F5-u.js → Text-BMg3d10t.js} +2 -2
- package/dist/{Text-C04c4Z93.cjs → Text-CgOYTs8D.cjs} +2 -2
- package/dist/TextInput/index.cjs +4 -0
- package/dist/TextInput/index.d.cts +12 -0
- package/dist/TextInput/index.d.ts +12 -0
- package/dist/TextInput/index.js +4 -0
- package/dist/{TextInput-BO80ixsV.cjs → TextInput-CObd_Wcw.cjs} +2 -2
- package/dist/{TextInput-CEGWfdPC.js → TextInput-ChPhL54o.js} +2 -2
- package/dist/{colorsConfig-BKBZfFq1.js → colorsConfig-CKiMYHO_.js} +1 -1
- package/dist/{colorsConfig-vunsVTFC.cjs → colorsConfig-DulwYRIk.cjs} +1 -1
- package/dist/{searchFilterSidebarVariants-eoyfoWA8.js → searchFilterSidebarVariants-C_UTEIpZ.js} +2 -2
- package/dist/{searchFilterSidebarVariants-L1rn5Ift.cjs → searchFilterSidebarVariants-DcQLi_TT.cjs} +2 -2
- package/dist/{textVariantClasses-Bhf4VY5z.cjs → textVariantClasses-BnV4wXaw.cjs} +1 -1
- package/dist/{textVariantClasses-5t3OricK.js → textVariantClasses-CnjwO2Fv.js} +1 -1
- package/dist/textVariantClasses-DwnnFNBf.d.cts +174 -0
- package/dist/textVariantClasses-sT9E8Uty.d.ts +174 -0
- package/dist/types-5luH4G-3.d.cts +5 -0
- package/dist/types-B7hf-Lif.d.ts +272 -0
- package/dist/{types-BQNqA5xL.d.ts → types-BCAU5OQD.d.cts} +1 -1
- package/dist/types-BIPqyTOJ.d.ts +5 -0
- package/dist/types-BQYpWDJ4.d.cts +6 -0
- package/dist/{types-CImLkcNh.d.cts → types-BwPquD10.d.ts} +1 -1
- package/dist/types-CosVh8Hj.d.cts +4 -0
- package/dist/types-DpfHwTzY.d.ts +6 -0
- package/dist/types-Dvgr3ZeV.d.cts +272 -0
- package/dist/types-nR3jHgIO.d.ts +4 -0
- package/package.json +58 -85
- package/src/components/ButtonBase/index.ts +2 -0
- package/src/components/{common/ButtonBase → ButtonBase}/types.ts +1 -1
- package/src/components/{search/FilterScrollbar → FilterScrollbar}/AppliedFiltersScrollbar.tsx +1 -1
- package/src/components/{search/FilterScrollbar → FilterScrollbar}/DynamicFiltersScrollbar.tsx +1 -1
- package/src/components/FilterScrollbar/index.ts +2 -0
- package/src/components/Headline/index.ts +1 -0
- package/src/components/ImageWithFallback/index.ts +1 -0
- package/src/components/{common/ProductCard → ProductCard}/ProductCard.tsx +3 -3
- package/src/components/ProductCard/index.ts +4 -0
- package/src/components/ProductGrid/index.ts +2 -0
- package/src/components/{search/SearchFilter → SearchFilter}/SearchFilter.tsx +2 -2
- package/src/components/{search/SearchFilter → SearchFilter}/SearchFilterHeader.tsx +1 -1
- package/src/components/{search/SearchFilter → SearchFilter}/SearchFilterItem.tsx +1 -1
- package/src/components/SearchFilter/index.ts +4 -0
- package/src/components/{search/SearchInput → SearchInput}/SearchInput.tsx +1 -1
- package/src/components/SearchInput/index.ts +2 -0
- package/src/components/{search/SearchInput → SearchInput}/searchInputVariants.ts +2 -2
- package/src/components/SearchInputAutocomplete/index.ts +1 -0
- package/src/components/SearchInputForm/index.ts +2 -0
- package/src/components/{search/SearchResultsFilterSidebar → SearchResultsFilterSidebar}/SearchResultsFilter.tsx +1 -1
- package/src/components/SearchResultsFilterSidebar/index.ts +3 -0
- package/src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts +58 -0
- package/src/components/{search/SearchResultsStates → SearchResultsStates}/NoSearchResultsFound.tsx +1 -1
- package/src/components/{search/SearchResultsStates → SearchResultsStates}/SearchResultsGrid.tsx +2 -2
- package/src/components/{search/SearchResultsStates → SearchResultsStates}/SearchResultsLoadingGrid.tsx +5 -5
- package/src/components/SearchResultsStates/index.ts +3 -0
- package/src/components/SparkleAnimation/index.ts +2 -0
- package/src/components/Spinner/index.ts +1 -0
- package/src/components/SuggestionButton/index.ts +2 -0
- package/src/components/Text/index.ts +3 -0
- package/src/components/TextInput/index.ts +1 -0
- package/dist/DynamicFiltersScrollbar-B2Rr1KnJ.cjs +0 -41
- package/dist/DynamicFiltersScrollbar-Dys6geP0.js +0 -32
- 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.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.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-BRLWwGMI.d.ts +0 -4
- 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/search/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts +0 -45
- package/src/components/search/types.ts +0 -5
- /package/dist/{types-DFetqNL2.d.ts → types-B19i3fxM.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/ProductCard → ProductCard}/types.ts +0 -0
- /package/src/components/{common/ProductGrid → ProductGrid}/ProductGrid.tsx +0 -0
- /package/src/components/{common/ProductGrid → ProductGrid}/productGridVariants.ts +0 -0
- /package/src/components/{search/SearchFilter → SearchFilter}/types.ts +0 -0
- /package/src/components/{search/SearchInputAutocomplete → SearchInputAutocomplete}/SearchAutocomplete.tsx +0 -0
- /package/src/components/{search/SearchInputForm → SearchInputForm}/SearchInputForm.tsx +0 -0
- /package/src/components/{search/SearchInputForm → SearchInputForm}/types.ts +0 -0
- /package/src/components/{search/SearchResultsFilterSidebar → SearchResultsFilterSidebar}/types.ts +0 -0
- /package/src/components/{common/SparkleAnimation → SparkleAnimation}/SparkleAnimation.tsx +0 -0
- /package/src/components/{common/SparkleAnimation → SparkleAnimation}/types.ts +0 -0
- /package/src/components/{common/Spinner → Spinner}/Spinner.tsx +0 -0
- /package/src/components/{common/SuggestionButton → SuggestionButton}/SuggestionButton.tsx +0 -0
- /package/src/components/{common/SuggestionButton → SuggestionButton}/types.ts +0 -0
- /package/src/components/{common/Text → Text}/Text.tsx +0 -0
- /package/src/components/{common/Text → Text}/textVariantClasses.ts +0 -0
- /package/src/components/{common/Text → Text}/types.ts +0 -0
- /package/src/components/{common/TextInput → TextInput}/TextInput.tsx +0 -0
- /package/src/{components/models → models}/colorsConfig.ts +0 -0
- /package/src/{components/test → test}/types.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envive-ai/react-toolkit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "React component library for Envive services.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"author": "Envive AI",
|
|
12
12
|
"license": "UNLICENSED",
|
|
13
13
|
"type": "module",
|
|
14
|
-
"main": "dist/index.cjs",
|
|
15
|
-
"module": "dist/index.js",
|
|
16
|
-
"types": "dist/index.d.
|
|
14
|
+
"main": "./dist/index.cjs",
|
|
15
|
+
"module": "./dist/index.js",
|
|
16
|
+
"types": "./dist/index.d.cts",
|
|
17
17
|
"files": [
|
|
18
18
|
"dist",
|
|
19
19
|
"src",
|
|
@@ -24,116 +24,89 @@
|
|
|
24
24
|
"prepublish": "npm run build"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@envive-ai/react-icons": "0.1.
|
|
27
|
+
"@envive-ai/react-icons": "0.1.1",
|
|
28
28
|
"classnames": "^2.5.1",
|
|
29
29
|
"framer-motion": "^12.23.12",
|
|
30
30
|
"react-icons": "^5.0.1",
|
|
31
|
-
"react-indiana-drag-scroll": "^3.0.3-alpha"
|
|
32
|
-
"vite-plugin-svgr": "^4.5.0"
|
|
31
|
+
"react-indiana-drag-scroll": "^3.0.3-alpha"
|
|
33
32
|
},
|
|
34
33
|
"peerDependencies": {
|
|
35
34
|
"react": "^18.3.1",
|
|
36
35
|
"react-dom": "^18.3.1"
|
|
37
36
|
},
|
|
38
37
|
"devDependencies": {
|
|
39
|
-
"@svgr/cli": "^8.1.0",
|
|
40
|
-
"copyfiles": "^2.4.1",
|
|
41
38
|
"tsdown": "^0.14.2",
|
|
42
39
|
"typescript": "~5.8.3"
|
|
43
40
|
},
|
|
44
41
|
"exports": {
|
|
45
|
-
"./
|
|
46
|
-
"import": "./dist/
|
|
47
|
-
"require": "./dist/
|
|
42
|
+
"./ButtonBase": {
|
|
43
|
+
"import": "./dist/ButtonBase/index.js",
|
|
44
|
+
"require": "./dist/ButtonBase/index.cjs"
|
|
48
45
|
},
|
|
49
|
-
"./
|
|
50
|
-
"import": "./dist/
|
|
51
|
-
"require": "./dist/
|
|
46
|
+
"./FilterScrollbar": {
|
|
47
|
+
"import": "./dist/FilterScrollbar/index.js",
|
|
48
|
+
"require": "./dist/FilterScrollbar/index.cjs"
|
|
52
49
|
},
|
|
53
|
-
"./
|
|
54
|
-
"import": "./dist/
|
|
55
|
-
"require": "./dist/
|
|
50
|
+
"./Headline": {
|
|
51
|
+
"import": "./dist/Headline/index.js",
|
|
52
|
+
"require": "./dist/Headline/index.cjs"
|
|
56
53
|
},
|
|
57
|
-
"./
|
|
58
|
-
"import": "./dist/
|
|
59
|
-
"require": "./dist/
|
|
54
|
+
"./ImageWithFallback": {
|
|
55
|
+
"import": "./dist/ImageWithFallback/index.js",
|
|
56
|
+
"require": "./dist/ImageWithFallback/index.cjs"
|
|
60
57
|
},
|
|
61
|
-
"./
|
|
62
|
-
"import": "./dist/
|
|
63
|
-
"require": "./dist/
|
|
58
|
+
"./ProductCard": {
|
|
59
|
+
"import": "./dist/ProductCard/index.js",
|
|
60
|
+
"require": "./dist/ProductCard/index.cjs"
|
|
64
61
|
},
|
|
65
|
-
"./
|
|
66
|
-
"import": "./dist/
|
|
67
|
-
"require": "./dist/
|
|
62
|
+
"./ProductGrid": {
|
|
63
|
+
"import": "./dist/ProductGrid/index.js",
|
|
64
|
+
"require": "./dist/ProductGrid/index.cjs"
|
|
68
65
|
},
|
|
69
|
-
"./
|
|
70
|
-
"import": "./dist/
|
|
71
|
-
"require": "./dist/
|
|
66
|
+
"./SearchFilter": {
|
|
67
|
+
"import": "./dist/SearchFilter/index.js",
|
|
68
|
+
"require": "./dist/SearchFilter/index.cjs"
|
|
72
69
|
},
|
|
73
|
-
"./
|
|
74
|
-
"import": "./dist/
|
|
75
|
-
"require": "./dist/
|
|
70
|
+
"./SearchInput": {
|
|
71
|
+
"import": "./dist/SearchInput/index.js",
|
|
72
|
+
"require": "./dist/SearchInput/index.cjs"
|
|
76
73
|
},
|
|
77
|
-
"./
|
|
78
|
-
"import": "./dist/
|
|
79
|
-
"require": "./dist/
|
|
74
|
+
"./SearchInputAutocomplete": {
|
|
75
|
+
"import": "./dist/SearchInputAutocomplete/index.js",
|
|
76
|
+
"require": "./dist/SearchInputAutocomplete/index.cjs"
|
|
80
77
|
},
|
|
81
|
-
"./
|
|
82
|
-
"import": "./dist/
|
|
83
|
-
"require": "./dist/
|
|
78
|
+
"./SearchInputForm": {
|
|
79
|
+
"import": "./dist/SearchInputForm/index.js",
|
|
80
|
+
"require": "./dist/SearchInputForm/index.cjs"
|
|
84
81
|
},
|
|
85
|
-
"./
|
|
86
|
-
"import": "./dist/
|
|
87
|
-
"require": "./dist/
|
|
82
|
+
"./SearchResultsFilterSidebar": {
|
|
83
|
+
"import": "./dist/SearchResultsFilterSidebar/index.js",
|
|
84
|
+
"require": "./dist/SearchResultsFilterSidebar/index.cjs"
|
|
88
85
|
},
|
|
89
|
-
"./
|
|
90
|
-
"import": "./dist/
|
|
91
|
-
"require": "./dist/
|
|
86
|
+
"./SearchResultsStates": {
|
|
87
|
+
"import": "./dist/SearchResultsStates/index.js",
|
|
88
|
+
"require": "./dist/SearchResultsStates/index.cjs"
|
|
92
89
|
},
|
|
93
|
-
"./
|
|
94
|
-
"import": "./dist/
|
|
95
|
-
"require": "./dist/
|
|
90
|
+
"./SparkleAnimation": {
|
|
91
|
+
"import": "./dist/SparkleAnimation/index.js",
|
|
92
|
+
"require": "./dist/SparkleAnimation/index.cjs"
|
|
96
93
|
},
|
|
97
|
-
"./
|
|
98
|
-
"import": "./dist/
|
|
99
|
-
"require": "./dist/
|
|
94
|
+
"./Spinner": {
|
|
95
|
+
"import": "./dist/Spinner/index.js",
|
|
96
|
+
"require": "./dist/Spinner/index.cjs"
|
|
100
97
|
},
|
|
101
|
-
"./
|
|
102
|
-
"import": "./dist/
|
|
103
|
-
"require": "./dist/
|
|
98
|
+
"./SuggestionButton": {
|
|
99
|
+
"import": "./dist/SuggestionButton/index.js",
|
|
100
|
+
"require": "./dist/SuggestionButton/index.cjs"
|
|
104
101
|
},
|
|
105
|
-
"./
|
|
106
|
-
"import": "./dist/
|
|
107
|
-
"require": "./dist/
|
|
102
|
+
"./Text": {
|
|
103
|
+
"import": "./dist/Text/index.js",
|
|
104
|
+
"require": "./dist/Text/index.cjs"
|
|
108
105
|
},
|
|
109
|
-
"./
|
|
110
|
-
"import": "./dist/
|
|
111
|
-
"require": "./dist/
|
|
106
|
+
"./TextInput": {
|
|
107
|
+
"import": "./dist/TextInput/index.js",
|
|
108
|
+
"require": "./dist/TextInput/index.cjs"
|
|
112
109
|
},
|
|
113
|
-
"./
|
|
114
|
-
"import": "./dist/search/SearchInputAutocomplete/SearchAutocomplete.js",
|
|
115
|
-
"require": "./dist/search/SearchInputAutocomplete/SearchAutocomplete.cjs"
|
|
116
|
-
},
|
|
117
|
-
"./search/SearchInputForm/SearchInputForm": {
|
|
118
|
-
"import": "./dist/search/SearchInputForm/SearchInputForm.js",
|
|
119
|
-
"require": "./dist/search/SearchInputForm/SearchInputForm.cjs"
|
|
120
|
-
},
|
|
121
|
-
"./search/SearchResultsFilterSidebar/SearchResultsFilter": {
|
|
122
|
-
"import": "./dist/search/SearchResultsFilterSidebar/SearchResultsFilter.js",
|
|
123
|
-
"require": "./dist/search/SearchResultsFilterSidebar/SearchResultsFilter.cjs"
|
|
124
|
-
},
|
|
125
|
-
"./search/SearchResultsStates/NoSearchResultsFound": {
|
|
126
|
-
"import": "./dist/search/SearchResultsStates/NoSearchResultsFound.js",
|
|
127
|
-
"require": "./dist/search/SearchResultsStates/NoSearchResultsFound.cjs"
|
|
128
|
-
},
|
|
129
|
-
"./search/SearchResultsStates/SearchResultsGrid": {
|
|
130
|
-
"import": "./dist/search/SearchResultsStates/SearchResultsGrid.js",
|
|
131
|
-
"require": "./dist/search/SearchResultsStates/SearchResultsGrid.cjs"
|
|
132
|
-
},
|
|
133
|
-
"./search/SearchResultsStates/SearchResultsLoadingGrid": {
|
|
134
|
-
"import": "./dist/search/SearchResultsStates/SearchResultsLoadingGrid.js",
|
|
135
|
-
"require": "./dist/search/SearchResultsStates/SearchResultsLoadingGrid.cjs"
|
|
136
|
-
},
|
|
137
|
-
"./*": "./*"
|
|
110
|
+
"./package.json": "./package.json"
|
|
138
111
|
}
|
|
139
112
|
}
|
package/src/components/{search/FilterScrollbar → FilterScrollbar}/AppliedFiltersScrollbar.tsx
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import classNames from 'classnames';
|
|
2
2
|
import ScrollContainer from 'react-indiana-drag-scroll';
|
|
3
|
-
import { Text } from 'src/components/
|
|
3
|
+
import { Text } from 'src/components/Text/Text';
|
|
4
4
|
import type { SelectedFilterOption } from 'src/atoms/search/types';
|
|
5
5
|
|
|
6
6
|
interface AppliedFiltersScrollbarProps {
|
package/src/components/{search/FilterScrollbar → FilterScrollbar}/DynamicFiltersScrollbar.tsx
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import classNames from 'classnames';
|
|
2
2
|
import ScrollContainer from 'react-indiana-drag-scroll';
|
|
3
|
-
import { Text } from 'src/components/
|
|
3
|
+
import { Text } from 'src/components/Text/Text';
|
|
4
4
|
|
|
5
5
|
interface DynamicFiltersScrollbarProps {
|
|
6
6
|
availableDynamicFilters: { name: string; displayName: string }[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Headline';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ImageWithFallback';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import classNames from 'classnames';
|
|
2
2
|
import { MdStar } from 'react-icons/md';
|
|
3
|
-
import { Text } from 'src/components/
|
|
3
|
+
import { Text } from 'src/components/Text/Text';
|
|
4
4
|
import {
|
|
5
5
|
variantClassMap,
|
|
6
6
|
variantHoverClassMap,
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
variantTitleColorMap,
|
|
9
9
|
} from './productCardVariants';
|
|
10
10
|
import { Headline } from '../Headline/Headline';
|
|
11
|
-
import { ImageWithFallback } from 'src/components/
|
|
11
|
+
import { ImageWithFallback } from 'src/components/ImageWithFallback/ImageWithFallback';
|
|
12
12
|
import type {
|
|
13
13
|
ProductCardConfig,
|
|
14
14
|
ProductCardHoverVariant,
|
|
15
15
|
ProductCardLayoutVariant,
|
|
16
16
|
ProductCardVariant,
|
|
17
17
|
} from './types';
|
|
18
|
-
import type { TestProps } from 'src/
|
|
18
|
+
import type { TestProps } from 'src/test/types';
|
|
19
19
|
import type { ChatElementDisplayLocation } from 'src/config/chatElementDisplayLocation';
|
|
20
20
|
import Logger from 'src/logging/logger';
|
|
21
21
|
import { Spinner } from '../Spinner/Spinner';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import classNames from 'classnames';
|
|
2
2
|
import { SearchFilterItem } from './SearchFilterItem';
|
|
3
3
|
import type { SearchFilterProps } from './types';
|
|
4
|
-
import { Text } from 'src/components/
|
|
5
|
-
import { ButtonBase } from 'src/components/
|
|
4
|
+
import { Text } from 'src/components/Text/Text';
|
|
5
|
+
import { ButtonBase } from 'src/components/ButtonBase/ButtonBase';
|
|
6
6
|
|
|
7
7
|
export const SearchFilter = ({
|
|
8
8
|
isOpen,
|
|
@@ -2,7 +2,7 @@ import React, { useRef, useImperativeHandle } from 'react';
|
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import MagnifyingGlassStarVariant from '@envive-ai/react-icons/src/MagnifyingGlassStarVariant';
|
|
4
4
|
import CloseIcon from '@envive-ai/react-icons/src/IconClose';
|
|
5
|
-
import { TextInput } from 'src/components/
|
|
5
|
+
import { TextInput } from 'src/components/TextInput/TextInput';
|
|
6
6
|
import { searchInputVariantClasses } from './searchInputVariants';
|
|
7
7
|
import type { SearchInputVariant } from '../SearchInputForm/types';
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { TextStyleVariantMap } from 'src/components/
|
|
1
|
+
import type { TextStyleVariantMap } from 'src/components/Text/textVariantClasses';
|
|
2
2
|
import type { SearchInputVariant } from '../SearchInputForm/types';
|
|
3
|
-
import { ColorNames, colorVar } from 'src/
|
|
3
|
+
import { ColorNames, colorVar } from 'src/models/colorsConfig';
|
|
4
4
|
|
|
5
5
|
interface SearchInputVariantClasses {
|
|
6
6
|
searchInputIconColor: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SearchAutocomplete';
|
|
@@ -5,7 +5,7 @@ import { SearchFilterHeader } from '../SearchFilter/SearchFilterHeader';
|
|
|
5
5
|
import type { SearchFilter as SearchFilterType, SelectFilterItem } from '../SearchFilter/types';
|
|
6
6
|
import type { SearchFilterSidebarVariant } from './types';
|
|
7
7
|
import { searchFilterSidebarVariantClasses } from './searchFilterSidebarVariants';
|
|
8
|
-
import { ButtonBase } from 'src/components/
|
|
8
|
+
import { ButtonBase } from 'src/components/ButtonBase/ButtonBase';
|
|
9
9
|
|
|
10
10
|
export type SearchResultsFilterProps = {
|
|
11
11
|
productCount: number;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { SearchFilterSidebarVariant, CloseIconVariant } from './types';
|
|
2
|
+
import { ColorNames, colorVar } from 'src/models/colorsConfig';
|
|
3
|
+
|
|
4
|
+
interface SearchFilterSidebarVariantClasses {
|
|
5
|
+
searchFilterHeaderClasses: string;
|
|
6
|
+
radioButtonFillColor: string;
|
|
7
|
+
radioButtonHoverColor: string;
|
|
8
|
+
radioButtonUncheckedBorderColor: string;
|
|
9
|
+
filterDefaultClasses: string;
|
|
10
|
+
filterActiveClasses: string;
|
|
11
|
+
filterHoverClasses: string;
|
|
12
|
+
appliedFilterBackgroundClasses: string;
|
|
13
|
+
applyFiltersUnchangedClasses: string;
|
|
14
|
+
applyFiltersChangedClasses: string;
|
|
15
|
+
filterCloseIconVariant: CloseIconVariant;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const searchFilterSidebarVariantClasses: Record<
|
|
19
|
+
SearchFilterSidebarVariant,
|
|
20
|
+
SearchFilterSidebarVariantClasses
|
|
21
|
+
> = {
|
|
22
|
+
darkButton: {
|
|
23
|
+
radioButtonFillColor: colorVar(ColorNames.BackgroundDark),
|
|
24
|
+
radioButtonHoverColor: colorVar(ColorNames.BackgroundSecondaryDark),
|
|
25
|
+
radioButtonUncheckedBorderColor: colorVar(ColorNames.BorderMedium),
|
|
26
|
+
searchFilterHeaderClasses: 'spiffy-tw-text-[--spiffy-colors-text-light]',
|
|
27
|
+
filterDefaultClasses:
|
|
28
|
+
'spiffy-tw-border-[--spiffy-colors-border-medium] spiffy-tw-bg-[--spiffy-colors-background-light] spiffy-tw-text-[--spiffy-colors-text-secondary]',
|
|
29
|
+
filterHoverClasses:
|
|
30
|
+
'hover:spiffy-tw-border-[--spiffy-colors-background-secondary-dark] hover:spiffy-tw-bg-[--spiffy-colors-background-secondary-dark] hover:spiffy-tw-text-[--spiffy-colors-text-primary]',
|
|
31
|
+
filterActiveClasses:
|
|
32
|
+
'spiffy-tw-border-[--spiffy-colors-border-outline] spiffy-tw-bg-[--spiffy-colors-background-dark] spiffy-tw-text-[--spiffy-colors-text-light]',
|
|
33
|
+
appliedFilterBackgroundClasses: 'spiffy-tw-bg-[--spiffy-colors-border-light]',
|
|
34
|
+
applyFiltersUnchangedClasses:
|
|
35
|
+
'spiffy-tw-bg-[--spiffy-colors-border-light] spiffy-tw-text-[--spiffy-colors-text-secondary]',
|
|
36
|
+
applyFiltersChangedClasses:
|
|
37
|
+
'spiffy-tw-bg-[--spiffy-colors-background-dark] spiffy-tw-text-[--spiffy-colors-text-light]',
|
|
38
|
+
filterCloseIconVariant: 'light',
|
|
39
|
+
},
|
|
40
|
+
lightButton: {
|
|
41
|
+
radioButtonFillColor: colorVar(ColorNames.BackgroundDark),
|
|
42
|
+
radioButtonHoverColor: colorVar(ColorNames.BackgroundSecondaryDark),
|
|
43
|
+
radioButtonUncheckedBorderColor: colorVar(ColorNames.BorderMedium),
|
|
44
|
+
searchFilterHeaderClasses: 'spiffy-tw-text-[--spiffy-colors-text-primary]',
|
|
45
|
+
filterDefaultClasses:
|
|
46
|
+
'spiffy-tw-border-[--spiffy-colors-border-medium] spiffy-tw-bg-[--spiffy-colors-background-light] spiffy-tw-text-[--spiffy-colors-text-secondary]',
|
|
47
|
+
filterHoverClasses:
|
|
48
|
+
'hover:spiffy-tw-border-[--spiffy-colors-background-secondary-dark] hover:spiffy-tw-bg-[--spiffy-colors-background-secondary-dark] hover:spiffy-tw-text-[--spiffy-colors-text-primary]',
|
|
49
|
+
filterActiveClasses:
|
|
50
|
+
'spiffy-tw-border-[--spiffy-colors-border-outline] spiffy-tw-bg-[--spiffy-colors-background-dark] spiffy-tw-text-[--spiffy-colors-text-light]',
|
|
51
|
+
appliedFilterBackgroundClasses: 'spiffy-tw-bg-[--spiffy-colors-border-light]',
|
|
52
|
+
applyFiltersUnchangedClasses:
|
|
53
|
+
'spiffy-tw-bg-[--spiffy-colors-border-light] spiffy-tw-text-[--spiffy-colors-text-secondary]',
|
|
54
|
+
applyFiltersChangedClasses:
|
|
55
|
+
'spiffy-tw-bg-[--spiffy-colors-background-primary] spiffy-tw-text-[--spiffy-colors-text-link]',
|
|
56
|
+
filterCloseIconVariant: 'dark',
|
|
57
|
+
},
|
|
58
|
+
};
|
package/src/components/{search/SearchResultsStates → SearchResultsStates}/NoSearchResultsFound.tsx
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import classNames from 'classnames';
|
|
2
2
|
import Sparkles from '@envive-ai/react-icons/src/Sparkles';
|
|
3
|
-
import { Text } from 'src/components/
|
|
3
|
+
import { Text } from 'src/components/Text/Text';
|
|
4
4
|
|
|
5
5
|
interface NoSearchResultsFoundProps {
|
|
6
6
|
containerPaddingClasses: string;
|
package/src/components/{search/SearchResultsStates → SearchResultsStates}/SearchResultsGrid.tsx
RENAMED
|
@@ -2,12 +2,12 @@ import { motion } from 'framer-motion';
|
|
|
2
2
|
import type { SelectedFilterOption } from 'src/atoms/search/types';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import type { SearchResponseProduct } from 'src/types/external';
|
|
5
|
-
import { ProductGrid } from 'src/components/
|
|
5
|
+
import { ProductGrid } from 'src/components/ProductGrid/ProductGrid';
|
|
6
6
|
import { AppliedFiltersScrollbar } from '../FilterScrollbar/AppliedFiltersScrollbar';
|
|
7
7
|
import { DynamicFiltersScrollbar } from '../FilterScrollbar/DynamicFiltersScrollbar';
|
|
8
8
|
import { searchFilterSidebarVariantClasses } from '../SearchResultsFilterSidebar/searchFilterSidebarVariants';
|
|
9
9
|
import type { SearchFilterSidebarVariant } from '../SearchResultsFilterSidebar/types';
|
|
10
|
-
import { ProductGridVariant } from 'src/components/
|
|
10
|
+
import { ProductGridVariant } from 'src/components/ProductCard/types';
|
|
11
11
|
|
|
12
12
|
interface SearchResultsGridProps {
|
|
13
13
|
productList: SearchResponseProduct[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Text } from 'src/components/
|
|
2
|
-
import { SparkleAnimation } from 'src/components/
|
|
1
|
+
import { Text } from 'src/components/Text/Text';
|
|
2
|
+
import { SparkleAnimation } from 'src/components/SparkleAnimation/SparkleAnimation';
|
|
3
3
|
import { motion } from 'framer-motion';
|
|
4
|
-
import { ProductGridVariant } from 'src/components/
|
|
5
|
-
import { ProductCardSkeleton } from 'src/components/
|
|
6
|
-
import { productGridVariantClasses } from 'src/components/
|
|
4
|
+
import { ProductGridVariant } from 'src/components/ProductCard/types';
|
|
5
|
+
import { ProductCardSkeleton } from 'src/components/ProductCard/ProductCardSkeleton';
|
|
6
|
+
import { productGridVariantClasses } from 'src/components/ProductGrid/productGridVariants';
|
|
7
7
|
|
|
8
8
|
export const SearchResultsLoadingGrid = ({
|
|
9
9
|
productGridVariant,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Spinner';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TextInput';
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_Text = require('./Text-C04c4Z93.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 react_indiana_drag_scroll = require("react-indiana-drag-scroll");
|
|
8
|
-
react_indiana_drag_scroll = require_chunk.__toESM(react_indiana_drag_scroll);
|
|
9
|
-
|
|
10
|
-
//#region src/components/search/FilterScrollbar/DynamicFiltersScrollbar.tsx
|
|
11
|
-
const DynamicFiltersScrollbar = ({ availableDynamicFilters, filterBarClassNames, filterDefaultClasses, filterHoverClasses, onToggleDynamicFilter }) => {
|
|
12
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_indiana_drag_scroll.default, {
|
|
13
|
-
className: filterBarClassNames,
|
|
14
|
-
hideScrollbars: true,
|
|
15
|
-
children: availableDynamicFilters.map(({ name, displayName }) => {
|
|
16
|
-
const buttonClasses = (0, classnames.default)("spiffy-tw-px-[12px] spiffy-tw-py-2 spiffy-tw-rounded-full spiffy-tw-border spiffy-tw-whitespace-nowrap ", filterHoverClasses, filterDefaultClasses);
|
|
17
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
18
|
-
type: "button",
|
|
19
|
-
className: buttonClasses,
|
|
20
|
-
onClick: () => {
|
|
21
|
-
onToggleDynamicFilter({
|
|
22
|
-
filter: name,
|
|
23
|
-
dynamicFilterDisplayName: displayName
|
|
24
|
-
});
|
|
25
|
-
},
|
|
26
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
|
|
27
|
-
variant: "body3",
|
|
28
|
-
children: displayName
|
|
29
|
-
})
|
|
30
|
-
}, name);
|
|
31
|
-
})
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
//#endregion
|
|
36
|
-
Object.defineProperty(exports, 'DynamicFiltersScrollbar', {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () {
|
|
39
|
-
return DynamicFiltersScrollbar;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Text } from "./Text-Bdv7F5-u.js";
|
|
2
|
-
import classNames from "classnames";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import ScrollContainer from "react-indiana-drag-scroll";
|
|
5
|
-
|
|
6
|
-
//#region src/components/search/FilterScrollbar/DynamicFiltersScrollbar.tsx
|
|
7
|
-
const DynamicFiltersScrollbar = ({ availableDynamicFilters, filterBarClassNames, filterDefaultClasses, filterHoverClasses, onToggleDynamicFilter }) => {
|
|
8
|
-
return /* @__PURE__ */ jsx(ScrollContainer, {
|
|
9
|
-
className: filterBarClassNames,
|
|
10
|
-
hideScrollbars: true,
|
|
11
|
-
children: availableDynamicFilters.map(({ name, displayName }) => {
|
|
12
|
-
const buttonClasses = classNames("spiffy-tw-px-[12px] spiffy-tw-py-2 spiffy-tw-rounded-full spiffy-tw-border spiffy-tw-whitespace-nowrap ", filterHoverClasses, filterDefaultClasses);
|
|
13
|
-
return /* @__PURE__ */ jsx("button", {
|
|
14
|
-
type: "button",
|
|
15
|
-
className: buttonClasses,
|
|
16
|
-
onClick: () => {
|
|
17
|
-
onToggleDynamicFilter({
|
|
18
|
-
filter: name,
|
|
19
|
-
dynamicFilterDisplayName: displayName
|
|
20
|
-
});
|
|
21
|
-
},
|
|
22
|
-
children: /* @__PURE__ */ jsx(Text, {
|
|
23
|
-
variant: "body3",
|
|
24
|
-
children: displayName
|
|
25
|
-
})
|
|
26
|
-
}, name);
|
|
27
|
-
})
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
//#endregion
|
|
32
|
-
export { DynamicFiltersScrollbar };
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { ButtonBase } from "./ButtonBase-C1rsL9gO.js";
|
|
2
|
-
import { Text } from "./Text-Bdv7F5-u.js";
|
|
3
|
-
import { SearchFilterItem } from "./SearchFilterItem-BodtWLoP.js";
|
|
4
|
-
import classNames from "classnames";
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
|
|
7
|
-
//#region src/components/search/SearchFilter/SearchFilter.tsx
|
|
8
|
-
const SearchFilter = ({ isOpen, setIsOpen, filters, selectFilterItem, clearAllFilters, filterButtonText, radioButtonFillColor, radioButtonHoverColor, radioButtonUncheckedBorderColor, headerContent }) => {
|
|
9
|
-
const modalClasses = classNames("spiffy-tw-fixed spiffy-tw-inset-0 spiffy-tw-z-50 spiffy-tw-flex spiffy-tw-transform spiffy-tw-transition-all", {
|
|
10
|
-
"spiffy-tw-translate-x-full": !isOpen,
|
|
11
|
-
"spiffy-tw-translate-x-0": isOpen
|
|
12
|
-
});
|
|
13
|
-
const overlayClasses = classNames("spiffy-tw-absolute spiffy-tw-inset-0 spiffy-tw-bg-black spiffy-tw-bg-opacity-50", {
|
|
14
|
-
"spiffy-tw-opacity-0": !isOpen,
|
|
15
|
-
"spiffy-tw-opacity-100": isOpen
|
|
16
|
-
});
|
|
17
|
-
const sidebarClasses = classNames("spiffy-tw-relative spiffy-tw-ml-auto spiffy-tw-flex spiffy-tw-h-full spiffy-tw-w-full spiffy-tw-max-w-xs spiffy-tw-flex-col spiffy-tw-overflow-y-auto spiffy-tw-bg-[--spiffy-colors-background-light] spiffy-tw-py-4 spiffy-tw-shadow-xl");
|
|
18
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
19
|
-
className: modalClasses,
|
|
20
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
21
|
-
className: overlayClasses,
|
|
22
|
-
onClick: () => setIsOpen(false)
|
|
23
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
24
|
-
className: sidebarClasses,
|
|
25
|
-
children: [
|
|
26
|
-
headerContent,
|
|
27
|
-
/* @__PURE__ */ jsx("div", {
|
|
28
|
-
className: "spiffy-tw-flex-1 spiffy-tw-px-4 spiffy-tw-py-6",
|
|
29
|
-
children: filters.map((filter) => /* @__PURE__ */ jsxs("div", {
|
|
30
|
-
className: "spiffy-tw-mb-6",
|
|
31
|
-
children: [/* @__PURE__ */ jsx(Text, {
|
|
32
|
-
variant: "body2",
|
|
33
|
-
className: "spiffy-tw-font-medium spiffy-tw-mb-3",
|
|
34
|
-
children: filter.displayName
|
|
35
|
-
}), /* @__PURE__ */ jsx("ul", { children: filter.items.map((item) => /* @__PURE__ */ jsx(SearchFilterItem, {
|
|
36
|
-
filterItem: item,
|
|
37
|
-
onSelectFilterItem: selectFilterItem,
|
|
38
|
-
radioButtonFillColor,
|
|
39
|
-
radioButtonHoverColor,
|
|
40
|
-
radioButtonUncheckedBorderColor
|
|
41
|
-
}, item.id)) })]
|
|
42
|
-
}, filter.id))
|
|
43
|
-
}),
|
|
44
|
-
/* @__PURE__ */ jsxs("div", {
|
|
45
|
-
className: "spiffy-tw-border-t spiffy-tw-border-[--spiffy-colors-border-light] spiffy-tw-px-4 spiffy-tw-py-3",
|
|
46
|
-
children: [/* @__PURE__ */ jsx(ButtonBase, {
|
|
47
|
-
onClick: clearAllFilters,
|
|
48
|
-
text: "Clear All",
|
|
49
|
-
buttonClass: "spiffy-tw-w-full spiffy-tw-mb-2"
|
|
50
|
-
}), /* @__PURE__ */ jsx(ButtonBase, {
|
|
51
|
-
onClick: () => setIsOpen(false),
|
|
52
|
-
text: filterButtonText,
|
|
53
|
-
buttonClass: "spiffy-tw-w-full"
|
|
54
|
-
})]
|
|
55
|
-
})
|
|
56
|
-
]
|
|
57
|
-
})]
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
//#endregion
|
|
62
|
-
export { SearchFilter };
|