@envive-ai/react-toolkit 0.2.10 → 0.2.12
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-RpyCFs2a.cjs → Accordion-B0TzPN3m.cjs} +2 -5
- package/dist/{Accordion-DxtXK__u.js → Accordion-D8Vm8J1y.js} +3 -3
- package/dist/{AnimatedChevron-Q96FneFy.cjs → AnimatedChevron-9xf90bpP.cjs} +0 -2
- package/dist/{AnimatedChevron-Bik7GMSe.js → AnimatedChevron-DghLnmlM.js} +1 -1
- package/dist/{ButtonBase-AU23oGQr.cjs → ButtonBase-BMEAmPnS.cjs} +1 -3
- package/dist/{ButtonBase-6wjsZ1tU.js → ButtonBase-CT397aT3.js} +2 -2
- package/dist/{DynamicFiltersScrollbar-CJG4K0PH.js → DynamicFiltersScrollbar-CibstqNd.js} +4 -6
- package/dist/{DynamicFiltersScrollbar-DgS9gpdg.cjs → DynamicFiltersScrollbar-DqIydLJu.cjs} +3 -6
- package/dist/{ImageWithFallback-Bx17VPmQ.cjs → ImageWithFallback-CuPe6XF6.cjs} +0 -1
- package/dist/{ImageWithFallback-c-DTsBH-.js → ImageWithFallback-_QZT0EKI.js} +1 -1
- package/dist/{ModalSheet-CcthFeMD.cjs → ModalSheet-Be7-bkXK.cjs} +10 -15
- package/dist/{ModalSheet-BSj_g9JF.js → ModalSheet-DVrY7Mw0.js} +11 -12
- package/dist/{ProductCard-C-8ie9Lf.cjs → ProductCard-BeY85PBf.cjs} +8 -25
- package/dist/{ProductCard-n-PAth5m.js → ProductCard-BoyYu6mI.js} +7 -20
- package/dist/{ProductGrid-Ba2tUgmC.cjs → ProductGrid-CxKK7w_X.cjs} +1 -2
- package/dist/{ProductGrid-xXkWzvR2.js → ProductGrid-DmtSXfyE.js} +2 -2
- package/dist/{RadioButton-gnFz0TWN.js → RadioButton-Bm0qK3bX.js} +2 -2
- package/dist/{RadioButton-BBc1b5vX.cjs → RadioButton-Dcdj8pNp.cjs} +1 -3
- package/dist/{RadioButtonGroup-DxOtcIdO.cjs → RadioButtonGroup-BnnMx8sE.cjs} +1 -2
- package/dist/{RadioButtonGroup-DLLleeDX.js → RadioButtonGroup-hme7gSiQ.js} +2 -2
- package/dist/RecommendedProducts-C2eNVrLo.cjs +56 -0
- package/dist/RecommendedProducts-LalI8aVC.js +49 -0
- package/dist/{SearchAutocomplete-DAEDHeqr.cjs → SearchAutocomplete-A3HXkHwK.cjs} +3 -6
- package/dist/{SearchAutocomplete-B690CIZB.js → SearchAutocomplete-Rza3A-gs.js} +4 -5
- package/dist/{SearchFilter-Bi0zqO3-.js → SearchFilter-CYY5sNXV.js} +39 -43
- package/dist/{SearchFilter-ylBowO7T.cjs → SearchFilter-DxrQOLx0.cjs} +38 -44
- package/dist/{SearchInput-Yy6NIiSk.cjs → SearchInput-3ppsm2Ke.cjs} +2 -3
- package/dist/{SearchInput-Q3knp7tj.js → SearchInput-DE9Iz7A8.js} +3 -3
- package/dist/{SearchInputForm/index.cjs → SearchInputForm-CZz62rOX.cjs} +9 -9
- package/dist/{SearchInputForm/index.js → SearchInputForm-DrI4WHDt.js} +3 -6
- package/dist/SearchResultsFilterButton-BedTofz5.cjs +29 -0
- package/dist/SearchResultsFilterButton-CV11UTGi.js +22 -0
- package/dist/{SearchResultsFilterSidebar/index.js → SearchResultsFilterSidebar-Bvpk7Uoo.js} +4 -13
- package/dist/{SearchResultsFilterSidebar/index.cjs → SearchResultsFilterSidebar-Dgz98oyD.cjs} +10 -17
- package/dist/{SearchResultsStates-BjFB9Qo9.cjs → SearchResultsStates-D37wFr9h.cjs} +42 -16
- package/dist/{SearchResultsStates-D8Uz39yp.js → SearchResultsStates-DrGtw0pM.js} +43 -15
- package/dist/{SparkleAnimation-CvGlWUqv.cjs → SparkleAnimation-B5A_NCuy.cjs} +1 -4
- package/dist/{SparkleAnimation-paLhSu5E.js → SparkleAnimation-BSI_34HX.js} +2 -2
- package/dist/{Spinner-BqTt55uu.js → Spinner-CDDFWySo.js} +1 -1
- package/dist/{Spinner-DjK8ts9E.cjs → Spinner-FQpy5bGu.cjs} +0 -1
- package/dist/{TextInput-B70n36-J.cjs → TextInput-Do5-j1V_.cjs} +3 -5
- package/dist/{TextInput-y6nNxaTI.js → TextInput-PtrUXoZo.js} +4 -5
- package/dist/{ToggleButton-Br6MgjiG.js → ToggleButton-BTz_zIdc.js} +2 -2
- package/dist/{ToggleButton-CJ74eu-N.cjs → ToggleButton-CmxTz-ou.cjs} +1 -2
- package/dist/{Typography-D3vDkBMS.js → Typography-xehJH05l.js} +1 -1
- package/dist/{colorsConfig-DZ-GSPWy.js → colorsConfig-BjdoRtRK.js} +1 -1
- package/dist/{Accordion/index.d.ts → components/Accordion/index-BPofgdcd.d.cts} +2 -2
- package/dist/{Accordion/index.d.cts → components/Accordion/index-DBEaF9x5.d.ts} +2 -2
- package/dist/components/Accordion/index.cjs +4 -0
- package/dist/components/Accordion/index.js +4 -0
- package/dist/{AnimatedChevron/index.d.cts → components/AnimatedChevron/index-Bvff3AGS.d.ts} +2 -2
- package/dist/{AnimatedChevron/index.d.ts → components/AnimatedChevron/index-BwQ6tJL8.d.cts} +2 -2
- package/dist/components/AnimatedChevron/index.cjs +3 -0
- package/dist/components/AnimatedChevron/index.js +3 -0
- package/dist/{AppliedFiltersScrollbar/index.d.ts → components/AppliedFiltersScrollbar/index-BKNoroAl.d.ts} +2 -2
- package/dist/{AppliedFiltersScrollbar/index.d.cts → components/AppliedFiltersScrollbar/index-DADY550R.d.cts} +2 -2
- package/dist/{AppliedFiltersScrollbar → components/AppliedFiltersScrollbar}/index.cjs +3 -5
- package/dist/{AppliedFiltersScrollbar → components/AppliedFiltersScrollbar}/index.js +2 -3
- package/dist/{ButtonBase/index.d.ts → components/ButtonBase/index-BCw2WQ-2.d.ts} +2 -2
- package/dist/{ButtonBase/index.d.cts → components/ButtonBase/index-pBSmWoqg.d.cts} +2 -2
- package/dist/components/ButtonBase/index.cjs +6 -0
- package/dist/components/ButtonBase/index.js +5 -0
- package/dist/{DynamicFiltersScrollbar/index.d.ts → components/DynamicFiltersScrollbar/index-BvAT64cX.d.ts} +2 -2
- package/dist/{DynamicFiltersScrollbar/index.d.cts → components/DynamicFiltersScrollbar/index-X--ALCSa.d.cts} +2 -2
- package/dist/{DynamicFiltersScrollbar → components/DynamicFiltersScrollbar}/index.cjs +3 -5
- package/dist/{DynamicFiltersScrollbar → components/DynamicFiltersScrollbar}/index.js +2 -3
- package/dist/{FilterScrollbar/index.d.ts → components/FilterScrollbar/index-DgxXE1ff.d.cts} +3 -3
- package/dist/{FilterScrollbar/index.d.cts → components/FilterScrollbar/index-xlg1Q06Q.d.ts} +3 -3
- package/dist/components/FilterScrollbar/index.cjs +5 -0
- package/dist/components/FilterScrollbar/index.js +4 -0
- package/dist/{ImageWithFallback/index.d.cts → components/ImageWithFallback/index-C8Fqb7AQ.d.cts} +2 -2
- package/dist/{ImageWithFallback/index.d.ts → components/ImageWithFallback/index-yxDWrUCQ.d.ts} +2 -2
- package/dist/components/ImageWithFallback/index.cjs +3 -0
- package/dist/components/ImageWithFallback/index.js +3 -0
- package/dist/{ModalSheet/index.d.cts → components/ModalSheet/index-Cp_h5dbe.d.ts} +2 -2
- package/dist/{ModalSheet/index.d.ts → components/ModalSheet/index-Dnt-aUte.d.cts} +2 -2
- package/dist/components/ModalSheet/index.cjs +4 -0
- package/dist/components/ModalSheet/index.js +4 -0
- package/dist/components/ProductCard/index-BF8pv46P.d.ts +2 -0
- package/dist/components/ProductCard/index-C6TLdXjC.d.cts +2 -0
- package/dist/{ProductCard → components/ProductCard}/index.cjs +5 -4
- package/dist/components/ProductCard/index.js +7 -0
- package/dist/{ProductGrid/index.d.cts → components/ProductGrid/index-B1eVXjB4.d.cts} +3 -3
- package/dist/{ProductGrid/index.d.ts → components/ProductGrid/index-CyDy1V6o.d.ts} +3 -3
- package/dist/components/ProductGrid/index.cjs +9 -0
- package/dist/components/ProductGrid/index.js +8 -0
- package/dist/{RadioButton/index.d.cts → components/RadioButton/index-BHl3dM6k.d.cts} +2 -2
- package/dist/{RadioButton/index.d.ts → components/RadioButton/index-BZrcz8-J.d.ts} +2 -2
- package/dist/components/RadioButton/index.cjs +4 -0
- package/dist/components/RadioButton/index.js +4 -0
- package/dist/{RadioButtonGroup/index.d.cts → components/RadioButtonGroup/index-DdyMuFCX.d.ts} +2 -2
- package/dist/{RadioButtonGroup/index.d.ts → components/RadioButtonGroup/index-DtdjcXo-.d.cts} +2 -2
- package/dist/components/RadioButtonGroup/index.cjs +6 -0
- package/dist/components/RadioButtonGroup/index.js +5 -0
- package/dist/components/RecommendedProducts/index-BFM83Qu3.d.cts +15 -0
- package/dist/components/RecommendedProducts/index-DlbCfGof.d.ts +15 -0
- package/dist/components/RecommendedProducts/index.cjs +12 -0
- package/dist/components/RecommendedProducts/index.js +12 -0
- package/dist/{SearchAutocomplete/index.d.ts → components/SearchAutocomplete/index-Br_POGOz.d.ts} +2 -2
- package/dist/{SearchAutocomplete/index.d.cts → components/SearchAutocomplete/index-Ce9gkkbU.d.cts} +2 -2
- package/dist/components/SearchAutocomplete/index.cjs +4 -0
- package/dist/components/SearchAutocomplete/index.js +4 -0
- package/dist/{SearchFilter/index.d.cts → components/SearchFilter/index-DAR4UKSA.d.cts} +5 -5
- package/dist/{SearchFilter/index.d.ts → components/SearchFilter/index-VygXUBM9.d.ts} +5 -5
- package/dist/components/SearchFilter/index.cjs +17 -0
- package/dist/components/SearchFilter/index.js +12 -0
- package/dist/{SearchInput/index.d.ts → components/SearchInput/index-UY0W77Y0.d.ts} +2 -2
- package/dist/{SearchInput/index.d.cts → components/SearchInput/index-rFDdhvqg.d.cts} +2 -2
- package/dist/components/SearchInput/index.cjs +7 -0
- package/dist/components/SearchInput/index.js +6 -0
- package/dist/{SearchInputForm/index.d.cts → components/SearchInputForm/index-_sR_KugL.d.ts} +3 -3
- package/dist/{SearchInputForm/index.d.ts → components/SearchInputForm/index-dlLBivQA.d.cts} +1 -1
- package/dist/components/SearchInputForm/index.cjs +8 -0
- package/dist/components/SearchInputForm/index.js +8 -0
- package/dist/{SearchResultsContent/index.d.cts → components/SearchResultsContent/index-B_6-7-t-.d.ts} +18 -9
- package/dist/{SearchResultsContent/index.d.ts → components/SearchResultsContent/index-CayvNVCK.d.cts} +18 -9
- package/dist/components/SearchResultsContent/index.cjs +60 -0
- package/dist/components/SearchResultsContent/index.js +58 -0
- package/dist/components/SearchResultsFilterButton/index-D_u8PzTc.d.cts +13 -0
- package/dist/components/SearchResultsFilterButton/index-DuTGqa7-.d.ts +13 -0
- package/dist/components/SearchResultsFilterButton/index.cjs +9 -0
- package/dist/components/SearchResultsFilterButton/index.js +9 -0
- package/dist/components/SearchResultsFilterModal/index-BNZEJiXR.d.cts +27 -0
- package/dist/components/SearchResultsFilterModal/index-CXBAA2-F.d.ts +27 -0
- package/dist/components/SearchResultsFilterModal/index.cjs +47 -0
- package/dist/components/SearchResultsFilterModal/index.js +46 -0
- package/dist/components/SearchResultsFilterSidebar/index-BDcl27l4.d.ts +2 -0
- package/dist/components/SearchResultsFilterSidebar/index-DgPB1knO.d.cts +2 -0
- package/dist/components/SearchResultsFilterSidebar/index.cjs +16 -0
- package/dist/components/SearchResultsFilterSidebar/index.js +15 -0
- package/dist/{SearchResultsStates/index.d.ts → components/SearchResultsStates/index-CjYl1v-v.d.cts} +19 -10
- package/dist/{SearchResultsStates/index.d.cts → components/SearchResultsStates/index-DJaUfKjE.d.ts} +19 -10
- package/dist/components/SearchResultsStates/index.cjs +16 -0
- package/dist/components/SearchResultsStates/index.js +14 -0
- package/dist/components/SearchResultsToolbar/index-CVstdvRQ.d.cts +49 -0
- package/dist/components/SearchResultsToolbar/index-tAB6lEUm.d.ts +49 -0
- package/dist/components/SearchResultsToolbar/index.cjs +66 -0
- package/dist/components/SearchResultsToolbar/index.js +63 -0
- package/dist/{SparkleAnimation/index.d.ts → components/SparkleAnimation/index-BQOC3G_6.d.cts} +2 -2
- package/dist/{SparkleAnimation/index.d.cts → components/SparkleAnimation/index-DjRK3Dys.d.ts} +2 -2
- package/dist/{SparkleAnimation → components/SparkleAnimation}/index.cjs +1 -1
- package/dist/components/SparkleAnimation/index.js +3 -0
- package/dist/{Spinner/index.d.cts → components/Spinner/index-C0pGovHC.d.cts} +2 -2
- package/dist/{Spinner/index.d.ts → components/Spinner/index-CIr1izou.d.ts} +2 -2
- package/dist/components/Spinner/index.cjs +3 -0
- package/dist/components/Spinner/index.js +3 -0
- package/dist/{SuggestionButton/index.d.cts → components/SuggestionButton/index-B4J70IPS.d.cts} +2 -2
- package/dist/{SuggestionButton/index.d.ts → components/SuggestionButton/index-D6_y1hTj.d.ts} +2 -2
- package/dist/{SuggestionButton → components/SuggestionButton}/index.cjs +5 -7
- package/dist/{SuggestionButton → components/SuggestionButton}/index.js +4 -5
- package/dist/{TextInput/index.d.cts → components/TextInput/index-CRJMRe-b.d.cts} +2 -2
- package/dist/{TextInput/index.d.ts → components/TextInput/index-CkQtHiR9.d.ts} +2 -2
- package/dist/components/TextInput/index.cjs +4 -0
- package/dist/components/TextInput/index.js +4 -0
- package/dist/{ToggleButton/index.d.cts → components/ToggleButton/index-Dc-cs_tK.d.ts} +2 -2
- package/dist/components/ToggleButton/index.cjs +4 -0
- package/dist/components/ToggleButton/index.js +4 -0
- package/dist/components/Typography/index-DE1Nhjra.d.ts +3 -0
- package/dist/components/Typography/index-DzSBreyM.d.cts +3 -0
- package/dist/{Typography → components/Typography}/index.cjs +1 -1
- package/dist/components/Typography/index.js +3 -0
- package/dist/formatPrice-CyfkjZ3R.cjs +19 -0
- package/dist/formatPrice-DexQu2aZ.js +13 -0
- package/dist/{index-DmvaMYbj.d.ts → index-8cIrhPDk.d.ts} +3 -3
- package/dist/{index-Dfe_lkL2.d.cts → index-BKYA7uMB.d.cts} +1 -1
- package/dist/{index-Qtr26aUO.d.ts → index-Bw6lDfEp.d.cts} +2 -2
- package/dist/{index-BqARXvZ6.d.cts → index-CqfgJHj8.d.cts} +5 -5
- package/dist/{index-BMHF0IWd.d.cts → index-Cr8VXccr.d.ts} +2 -2
- package/dist/{index-BB4Qbpmg.d.ts → index-Cz6qxTZG.d.ts} +5 -5
- package/dist/{searchFilterSidebarVariants-DzCf_sfh.cjs → searchFilterSidebarVariants-C61Byr1S.cjs} +1 -1
- package/dist/{searchFilterSidebarVariants-f9PS9fl6.js → searchFilterSidebarVariants-DcwlBfvY.js} +2 -2
- package/dist/{types-BhGjnuWx.d.cts → types--eyQnaEA.d.cts} +1 -1
- package/dist/{types-DlqhqT_S.d.ts → types-CQpdBL3M.d.ts} +1 -1
- package/dist/{typographyVariantClasses-B6wiawat.d.ts → typographyVariantClasses-CoRhazCU.d.cts} +1 -1
- package/dist/{typographyVariantClasses-DTSltxPN.d.cts → typographyVariantClasses-CrT5OfVw.d.ts} +1 -1
- package/dist/util/index-C2ueYGXh.d.ts +21 -0
- package/dist/util/index-DUzbpjPa.d.cts +21 -0
- package/dist/util/index.cjs +80 -0
- package/dist/util/index.js +76 -0
- package/package.json +79 -52
- package/src/components/RecommendedProducts/RecommendedProducts.tsx +97 -0
- package/src/components/RecommendedProducts/index.ts +3 -0
- package/src/components/SearchResultsContent/SearchResultsContent.tsx +68 -35
- package/src/components/SearchResultsFilterButton/SearchResultsFilterButton.tsx +30 -0
- package/src/components/SearchResultsFilterButton/index.ts +3 -0
- package/src/components/SearchResultsFilterModal/SearchResultsFilterModal.tsx +61 -0
- package/src/components/SearchResultsFilterModal/index.ts +3 -0
- package/src/components/SearchResultsStates/NoSearchResultsFound.tsx +43 -11
- package/src/components/SearchResultsStates/SearchResultsGrid.tsx +5 -1
- package/src/components/SearchResultsToolbar/SearchResultsToolbar.tsx +111 -0
- package/src/components/SearchResultsToolbar/index.ts +3 -0
- package/src/stories/AppliedFiltersScrollbar.stories.tsx +42 -0
- package/src/stories/ButtonBase.stories.tsx +54 -0
- package/src/stories/DynamicFiltersScrollbar.stories.tsx +42 -0
- package/src/stories/NoSearchResultsFound.stories.tsx +30 -0
- package/src/stories/ProductCard.stories.tsx +78 -0
- package/src/stories/ProductCardSkeleton.stories.tsx +48 -0
- package/src/stories/ProductGrid.stories.tsx +82 -0
- package/src/stories/SearchInputForm.stories.tsx +39 -0
- package/src/stories/SearchResultsFilter.stories.tsx +56 -0
- package/src/stories/SearchResultsGrid.stories.tsx +98 -0
- package/src/stories/SearchResultsLoadingGrid.stories.tsx +30 -0
- package/src/stories/SparkleAnimation.stories.tsx +47 -0
- package/src/stories/Typography.stories.tsx +140 -0
- package/src/util/colorVar.ts +3 -0
- package/src/util/index.ts +4 -0
- package/src/util/useScrollDirection.ts +60 -0
- package/src/util/useStickyVisibility.ts +37 -0
- package/dist/Accordion/index.cjs +0 -4
- package/dist/Accordion/index.js +0 -4
- package/dist/AnimatedChevron/index.cjs +0 -3
- package/dist/AnimatedChevron/index.js +0 -3
- package/dist/ButtonBase/index.cjs +0 -6
- package/dist/ButtonBase/index.js +0 -5
- package/dist/FilterScrollbar/index.cjs +0 -5
- package/dist/FilterScrollbar/index.js +0 -4
- package/dist/ImageWithFallback/index.cjs +0 -3
- package/dist/ImageWithFallback/index.js +0 -3
- package/dist/ModalSheet/index.cjs +0 -4
- package/dist/ModalSheet/index.js +0 -4
- package/dist/ProductCard/index.d.cts +0 -2
- package/dist/ProductCard/index.d.ts +0 -2
- package/dist/ProductCard/index.js +0 -6
- package/dist/ProductGrid/index.cjs +0 -8
- package/dist/ProductGrid/index.js +0 -7
- package/dist/RadioButton/index.cjs +0 -4
- package/dist/RadioButton/index.js +0 -4
- package/dist/RadioButtonGroup/index.cjs +0 -6
- package/dist/RadioButtonGroup/index.js +0 -5
- package/dist/SearchAutocomplete/index.cjs +0 -4
- package/dist/SearchAutocomplete/index.js +0 -4
- package/dist/SearchFilter/index.cjs +0 -17
- package/dist/SearchFilter/index.js +0 -12
- package/dist/SearchInput/index.cjs +0 -7
- package/dist/SearchInput/index.js +0 -6
- package/dist/SearchResultsContent/index.cjs +0 -44
- package/dist/SearchResultsContent/index.js +0 -41
- package/dist/SearchResultsFilterSidebar/index.d.cts +0 -2
- package/dist/SearchResultsFilterSidebar/index.d.ts +0 -2
- package/dist/SearchResultsStates/index.cjs +0 -14
- package/dist/SearchResultsStates/index.js +0 -12
- package/dist/SparkleAnimation/index.js +0 -3
- package/dist/Spinner/index.cjs +0 -3
- package/dist/Spinner/index.js +0 -3
- package/dist/TextInput/index.cjs +0 -4
- package/dist/TextInput/index.js +0 -4
- package/dist/ToggleButton/index.cjs +0 -4
- package/dist/ToggleButton/index.js +0 -4
- package/dist/Typography/index.d.cts +0 -3
- package/dist/Typography/index.d.ts +0 -3
- package/dist/Typography/index.js +0 -3
- /package/dist/{ButtonBase-DbWQ25n-.cjs → ButtonBase-BIXx56hq.cjs} +0 -0
- /package/dist/{ButtonBase-C_uKnl48.js → ButtonBase-C9fn-c5h.js} +0 -0
- /package/dist/{Typography-CFNWgbM5.cjs → Typography-Ds4gfOJz.cjs} +0 -0
- /package/dist/{colorsConfig-B3-SMUSx.cjs → colorsConfig-D-MZuBvt.cjs} +0 -0
- /package/dist/{ToggleButton/index.d.ts → components/ToggleButton/index-B2rBwaVX.d.cts} +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
require('../../Typography-Ds4gfOJz.cjs');
|
|
5
|
+
require('../../ButtonBase-BMEAmPnS.cjs');
|
|
6
|
+
require('../../ButtonBase-BIXx56hq.cjs');
|
|
7
|
+
const require_SearchResultsFilterButton = require('../../SearchResultsFilterButton-BedTofz5.cjs');
|
|
8
|
+
|
|
9
|
+
exports.SearchResultsFilterButton = require_SearchResultsFilterButton.SearchResultsFilterButton;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import "../../Typography-xehJH05l.js";
|
|
5
|
+
import "../../ButtonBase-CT397aT3.js";
|
|
6
|
+
import "../../ButtonBase-C9fn-c5h.js";
|
|
7
|
+
import { t as SearchResultsFilterButton } from "../../SearchResultsFilterButton-CV11UTGi.js";
|
|
8
|
+
|
|
9
|
+
export { SearchResultsFilterButton };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { a as SearchFilterSidebarVariant } from "../../index-BKYA7uMB.cjs";
|
|
2
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
3
|
+
import { SearchFilterDatum, SelectFilterItem } from "@envive-ai/react-hooks/types";
|
|
4
|
+
|
|
5
|
+
//#region src/components/SearchResultsFilterModal/SearchResultsFilterModal.d.ts
|
|
6
|
+
type SearchResultsFilterModalProps = {
|
|
7
|
+
productCount: number;
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
setIsOpen: (isOpen: boolean) => void;
|
|
10
|
+
searchFilters: SearchFilterDatum[];
|
|
11
|
+
searchFilterSidebarVariant: SearchFilterSidebarVariant;
|
|
12
|
+
onSelectFilterItem: SelectFilterItem;
|
|
13
|
+
onClearAllFilters: () => void;
|
|
14
|
+
filterButtonText: string;
|
|
15
|
+
};
|
|
16
|
+
declare const SearchResultsFilterModal: ({
|
|
17
|
+
productCount,
|
|
18
|
+
isOpen,
|
|
19
|
+
setIsOpen,
|
|
20
|
+
searchFilters,
|
|
21
|
+
searchFilterSidebarVariant,
|
|
22
|
+
onSelectFilterItem,
|
|
23
|
+
onClearAllFilters,
|
|
24
|
+
filterButtonText
|
|
25
|
+
}: SearchResultsFilterModalProps) => react_jsx_runtime7.JSX.Element;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { SearchResultsFilterModal, SearchResultsFilterModalProps };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { a as SearchFilterSidebarVariant } from "../../index-8cIrhPDk.js";
|
|
2
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
3
|
+
import { SearchFilterDatum, SelectFilterItem } from "@envive-ai/react-hooks/types";
|
|
4
|
+
|
|
5
|
+
//#region src/components/SearchResultsFilterModal/SearchResultsFilterModal.d.ts
|
|
6
|
+
type SearchResultsFilterModalProps = {
|
|
7
|
+
productCount: number;
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
setIsOpen: (isOpen: boolean) => void;
|
|
10
|
+
searchFilters: SearchFilterDatum[];
|
|
11
|
+
searchFilterSidebarVariant: SearchFilterSidebarVariant;
|
|
12
|
+
onSelectFilterItem: SelectFilterItem;
|
|
13
|
+
onClearAllFilters: () => void;
|
|
14
|
+
filterButtonText: string;
|
|
15
|
+
};
|
|
16
|
+
declare const SearchResultsFilterModal: ({
|
|
17
|
+
productCount,
|
|
18
|
+
isOpen,
|
|
19
|
+
setIsOpen,
|
|
20
|
+
searchFilters,
|
|
21
|
+
searchFilterSidebarVariant,
|
|
22
|
+
onSelectFilterItem,
|
|
23
|
+
onClearAllFilters,
|
|
24
|
+
filterButtonText
|
|
25
|
+
}: SearchResultsFilterModalProps) => react_jsx_runtime7.JSX.Element;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { SearchResultsFilterModal, SearchResultsFilterModalProps };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const require_chunk = require('../../chunk-CUT6urMc.cjs');
|
|
5
|
+
require('../../Typography-Ds4gfOJz.cjs');
|
|
6
|
+
require('../../Accordion-B0TzPN3m.cjs');
|
|
7
|
+
require('../../AnimatedChevron-9xf90bpP.cjs');
|
|
8
|
+
require('../../ButtonBase-BMEAmPnS.cjs');
|
|
9
|
+
require('../../ButtonBase-BIXx56hq.cjs');
|
|
10
|
+
require('../../ModalSheet-Be7-bkXK.cjs');
|
|
11
|
+
require('../../RadioButton-Dcdj8pNp.cjs');
|
|
12
|
+
require('../../RadioButtonGroup-BnnMx8sE.cjs');
|
|
13
|
+
const require_SearchFilter = require('../../SearchFilter-DxrQOLx0.cjs');
|
|
14
|
+
require('../../ToggleButton-CmxTz-ou.cjs');
|
|
15
|
+
require('../../colorsConfig-D-MZuBvt.cjs');
|
|
16
|
+
const require_searchFilterSidebarVariants = require('../../searchFilterSidebarVariants-C61Byr1S.cjs');
|
|
17
|
+
require('../../SearchResultsFilterSidebar-Dgz98oyD.cjs');
|
|
18
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
19
|
+
|
|
20
|
+
//#region src/components/SearchResultsFilterModal/SearchResultsFilterModal.tsx
|
|
21
|
+
const SearchResultsFilterModal = ({ productCount, isOpen, setIsOpen, searchFilters, searchFilterSidebarVariant, onSelectFilterItem, onClearAllFilters, filterButtonText }) => {
|
|
22
|
+
const { applyFiltersUnchangedClasses, applyFiltersChangedClasses, searchFilterHeaderClasses, radioButtonFillColor, radioButtonHoverColor, radioButtonUncheckedBorderColor, filterCloseIconVariant } = require_searchFilterSidebarVariants.searchFilterSidebarVariantClasses[searchFilterSidebarVariant];
|
|
23
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SearchFilter.SearchFilter, {
|
|
24
|
+
isOpen,
|
|
25
|
+
setIsOpen,
|
|
26
|
+
filters: searchFilters,
|
|
27
|
+
productCount,
|
|
28
|
+
selectFilterItem: onSelectFilterItem,
|
|
29
|
+
clearAllFilters: onClearAllFilters,
|
|
30
|
+
applyFiltersUnchangedClasses,
|
|
31
|
+
applyFiltersChangedClasses,
|
|
32
|
+
filterButtonText,
|
|
33
|
+
radioButtonFillColor,
|
|
34
|
+
radioButtonHoverColor,
|
|
35
|
+
radioButtonUncheckedBorderColor,
|
|
36
|
+
filterCloseIconVariant,
|
|
37
|
+
headerContent: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SearchFilter.SearchFilterHeader, {
|
|
38
|
+
closeModal: () => setIsOpen(false),
|
|
39
|
+
productCount,
|
|
40
|
+
headerClassName: searchFilterHeaderClasses,
|
|
41
|
+
filterCloseIconVariant
|
|
42
|
+
})
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
exports.SearchResultsFilterModal = SearchResultsFilterModal;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import "../../Typography-xehJH05l.js";
|
|
5
|
+
import "../../Accordion-D8Vm8J1y.js";
|
|
6
|
+
import "../../AnimatedChevron-DghLnmlM.js";
|
|
7
|
+
import "../../ButtonBase-CT397aT3.js";
|
|
8
|
+
import "../../ButtonBase-C9fn-c5h.js";
|
|
9
|
+
import "../../ModalSheet-DVrY7Mw0.js";
|
|
10
|
+
import "../../RadioButton-Bm0qK3bX.js";
|
|
11
|
+
import "../../RadioButtonGroup-hme7gSiQ.js";
|
|
12
|
+
import { n as SearchFilter, o as SearchFilterHeader } from "../../SearchFilter-CYY5sNXV.js";
|
|
13
|
+
import "../../ToggleButton-BTz_zIdc.js";
|
|
14
|
+
import "../../colorsConfig-BjdoRtRK.js";
|
|
15
|
+
import { t as searchFilterSidebarVariantClasses } from "../../searchFilterSidebarVariants-DcwlBfvY.js";
|
|
16
|
+
import "../../SearchResultsFilterSidebar-Bvpk7Uoo.js";
|
|
17
|
+
import { jsx } from "react/jsx-runtime";
|
|
18
|
+
|
|
19
|
+
//#region src/components/SearchResultsFilterModal/SearchResultsFilterModal.tsx
|
|
20
|
+
const SearchResultsFilterModal = ({ productCount, isOpen, setIsOpen, searchFilters, searchFilterSidebarVariant, onSelectFilterItem, onClearAllFilters, filterButtonText }) => {
|
|
21
|
+
const { applyFiltersUnchangedClasses, applyFiltersChangedClasses, searchFilterHeaderClasses, radioButtonFillColor, radioButtonHoverColor, radioButtonUncheckedBorderColor, filterCloseIconVariant } = searchFilterSidebarVariantClasses[searchFilterSidebarVariant];
|
|
22
|
+
return /* @__PURE__ */ jsx(SearchFilter, {
|
|
23
|
+
isOpen,
|
|
24
|
+
setIsOpen,
|
|
25
|
+
filters: searchFilters,
|
|
26
|
+
productCount,
|
|
27
|
+
selectFilterItem: onSelectFilterItem,
|
|
28
|
+
clearAllFilters: onClearAllFilters,
|
|
29
|
+
applyFiltersUnchangedClasses,
|
|
30
|
+
applyFiltersChangedClasses,
|
|
31
|
+
filterButtonText,
|
|
32
|
+
radioButtonFillColor,
|
|
33
|
+
radioButtonHoverColor,
|
|
34
|
+
radioButtonUncheckedBorderColor,
|
|
35
|
+
filterCloseIconVariant,
|
|
36
|
+
headerContent: /* @__PURE__ */ jsx(SearchFilterHeader, {
|
|
37
|
+
closeModal: () => setIsOpen(false),
|
|
38
|
+
productCount,
|
|
39
|
+
headerClassName: searchFilterHeaderClasses,
|
|
40
|
+
filterCloseIconVariant
|
|
41
|
+
})
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
//#endregion
|
|
46
|
+
export { SearchResultsFilterModal };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as SearchFilterSidebarVariant, i as CloseIconVariant, n as SearchResultsFilterProps, r as searchFilterSidebarVariantClasses, t as SearchResultsFilter } from "../../index-8cIrhPDk.js";
|
|
2
|
+
export { CloseIconVariant, SearchFilterSidebarVariant, SearchResultsFilter, SearchResultsFilterProps, searchFilterSidebarVariantClasses };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as SearchFilterSidebarVariant, i as CloseIconVariant, n as SearchResultsFilterProps, r as searchFilterSidebarVariantClasses, t as SearchResultsFilter } from "../../index-BKYA7uMB.cjs";
|
|
2
|
+
export { CloseIconVariant, SearchFilterSidebarVariant, SearchResultsFilter, SearchResultsFilterProps, searchFilterSidebarVariantClasses };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
require('../../Typography-Ds4gfOJz.cjs');
|
|
2
|
+
require('../../Accordion-B0TzPN3m.cjs');
|
|
3
|
+
require('../../AnimatedChevron-9xf90bpP.cjs');
|
|
4
|
+
require('../../ButtonBase-BMEAmPnS.cjs');
|
|
5
|
+
require('../../ButtonBase-BIXx56hq.cjs');
|
|
6
|
+
require('../../ModalSheet-Be7-bkXK.cjs');
|
|
7
|
+
require('../../RadioButton-Dcdj8pNp.cjs');
|
|
8
|
+
require('../../RadioButtonGroup-BnnMx8sE.cjs');
|
|
9
|
+
require('../../SearchFilter-DxrQOLx0.cjs');
|
|
10
|
+
require('../../ToggleButton-CmxTz-ou.cjs');
|
|
11
|
+
require('../../colorsConfig-D-MZuBvt.cjs');
|
|
12
|
+
const require_searchFilterSidebarVariants = require('../../searchFilterSidebarVariants-C61Byr1S.cjs');
|
|
13
|
+
const require_SearchResultsFilterSidebar = require('../../SearchResultsFilterSidebar-Dgz98oyD.cjs');
|
|
14
|
+
|
|
15
|
+
exports.SearchResultsFilter = require_SearchResultsFilterSidebar.SearchResultsFilter;
|
|
16
|
+
exports.searchFilterSidebarVariantClasses = require_searchFilterSidebarVariants.searchFilterSidebarVariantClasses;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "../../Typography-xehJH05l.js";
|
|
2
|
+
import "../../Accordion-D8Vm8J1y.js";
|
|
3
|
+
import "../../AnimatedChevron-DghLnmlM.js";
|
|
4
|
+
import "../../ButtonBase-CT397aT3.js";
|
|
5
|
+
import "../../ButtonBase-C9fn-c5h.js";
|
|
6
|
+
import "../../ModalSheet-DVrY7Mw0.js";
|
|
7
|
+
import "../../RadioButton-Bm0qK3bX.js";
|
|
8
|
+
import "../../RadioButtonGroup-hme7gSiQ.js";
|
|
9
|
+
import "../../SearchFilter-CYY5sNXV.js";
|
|
10
|
+
import "../../ToggleButton-BTz_zIdc.js";
|
|
11
|
+
import "../../colorsConfig-BjdoRtRK.js";
|
|
12
|
+
import { t as searchFilterSidebarVariantClasses } from "../../searchFilterSidebarVariants-DcwlBfvY.js";
|
|
13
|
+
import { t as SearchResultsFilter } from "../../SearchResultsFilterSidebar-Bvpk7Uoo.js";
|
|
14
|
+
|
|
15
|
+
export { SearchResultsFilter, searchFilterSidebarVariantClasses };
|
package/dist/{SearchResultsStates/index.d.ts → components/SearchResultsStates/index-CjYl1v-v.d.cts}
RENAMED
|
@@ -1,22 +1,29 @@
|
|
|
1
|
-
import { ProductCardConfig, ProductGridVariant } from "
|
|
2
|
-
import { SearchFilterSidebarVariant } from "
|
|
3
|
-
import * as
|
|
1
|
+
import { d as ProductCardConfig, y as ProductGridVariant } from "../../index-CqfgJHj8.cjs";
|
|
2
|
+
import { a as SearchFilterSidebarVariant } from "../../index-BKYA7uMB.cjs";
|
|
3
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
4
4
|
import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
|
|
5
5
|
import { SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
|
|
6
|
+
import { SearchResponseProductAttributes } from "@envive-ai/react-hooks/application/models";
|
|
6
7
|
|
|
7
8
|
//#region src/components/SearchResultsStates/NoSearchResultsFound.d.ts
|
|
8
9
|
interface NoSearchResultsFoundProps {
|
|
9
10
|
containerPaddingClasses: string;
|
|
10
|
-
includeBottomMargin?: boolean;
|
|
11
11
|
noResultsFoundText?: string;
|
|
12
12
|
sparkleIconColor?: string;
|
|
13
|
+
recommendedProducts: SearchResponseProductAttributes['attributes'][];
|
|
14
|
+
searchText: string;
|
|
15
|
+
merchantShortName: string;
|
|
16
|
+
productGridVariant: ProductGridVariant;
|
|
13
17
|
}
|
|
14
18
|
declare const NoSearchResultsFound: ({
|
|
15
19
|
containerPaddingClasses,
|
|
16
|
-
includeBottomMargin,
|
|
17
20
|
noResultsFoundText,
|
|
18
|
-
sparkleIconColor
|
|
19
|
-
|
|
21
|
+
sparkleIconColor,
|
|
22
|
+
recommendedProducts,
|
|
23
|
+
searchText,
|
|
24
|
+
merchantShortName,
|
|
25
|
+
productGridVariant
|
|
26
|
+
}: NoSearchResultsFoundProps) => react_jsx_runtime3.JSX.Element;
|
|
20
27
|
//#endregion
|
|
21
28
|
//#region src/components/SearchResultsStates/SearchResultsGrid.d.ts
|
|
22
29
|
interface SearchResultsGridProps {
|
|
@@ -32,6 +39,7 @@ interface SearchResultsGridProps {
|
|
|
32
39
|
selectedFilterOptions: SelectedFilterOption[];
|
|
33
40
|
containerXPaddingClasses: string;
|
|
34
41
|
productGridClasses: string;
|
|
42
|
+
onProductClick?: () => void;
|
|
35
43
|
onRemoveFilter: (filter: SelectedFilterOption) => void;
|
|
36
44
|
onToggleDynamicFilter: ({
|
|
37
45
|
filter,
|
|
@@ -52,8 +60,9 @@ declare const SearchResultsGrid: ({
|
|
|
52
60
|
containerXPaddingClasses,
|
|
53
61
|
productGridClasses,
|
|
54
62
|
onRemoveFilter,
|
|
55
|
-
onToggleDynamicFilter
|
|
56
|
-
|
|
63
|
+
onToggleDynamicFilter,
|
|
64
|
+
onProductClick
|
|
65
|
+
}: SearchResultsGridProps) => react_jsx_runtime3.JSX.Element;
|
|
57
66
|
//#endregion
|
|
58
67
|
//#region src/components/SearchResultsStates/SearchResultsLoadingGrid.d.ts
|
|
59
68
|
declare const SearchResultsLoadingGrid: ({
|
|
@@ -64,6 +73,6 @@ declare const SearchResultsLoadingGrid: ({
|
|
|
64
73
|
productGridVariant: ProductGridVariant;
|
|
65
74
|
productGridClasses: string;
|
|
66
75
|
sparkleIconColor?: string;
|
|
67
|
-
}) =>
|
|
76
|
+
}) => react_jsx_runtime3.JSX.Element;
|
|
68
77
|
//#endregion
|
|
69
78
|
export { NoSearchResultsFound, SearchResultsGrid, SearchResultsLoadingGrid };
|
package/dist/{SearchResultsStates/index.d.cts → components/SearchResultsStates/index-DJaUfKjE.d.ts}
RENAMED
|
@@ -1,22 +1,29 @@
|
|
|
1
|
-
import { ProductCardConfig, ProductGridVariant } from "
|
|
2
|
-
import { SearchFilterSidebarVariant } from "
|
|
3
|
-
import * as
|
|
1
|
+
import { d as ProductCardConfig, y as ProductGridVariant } from "../../index-Cz6qxTZG.js";
|
|
2
|
+
import { a as SearchFilterSidebarVariant } from "../../index-8cIrhPDk.js";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
|
|
5
5
|
import { SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
|
|
6
|
+
import { SearchResponseProductAttributes } from "@envive-ai/react-hooks/application/models";
|
|
6
7
|
|
|
7
8
|
//#region src/components/SearchResultsStates/NoSearchResultsFound.d.ts
|
|
8
9
|
interface NoSearchResultsFoundProps {
|
|
9
10
|
containerPaddingClasses: string;
|
|
10
|
-
includeBottomMargin?: boolean;
|
|
11
11
|
noResultsFoundText?: string;
|
|
12
12
|
sparkleIconColor?: string;
|
|
13
|
+
recommendedProducts: SearchResponseProductAttributes['attributes'][];
|
|
14
|
+
searchText: string;
|
|
15
|
+
merchantShortName: string;
|
|
16
|
+
productGridVariant: ProductGridVariant;
|
|
13
17
|
}
|
|
14
18
|
declare const NoSearchResultsFound: ({
|
|
15
19
|
containerPaddingClasses,
|
|
16
|
-
includeBottomMargin,
|
|
17
20
|
noResultsFoundText,
|
|
18
|
-
sparkleIconColor
|
|
19
|
-
|
|
21
|
+
sparkleIconColor,
|
|
22
|
+
recommendedProducts,
|
|
23
|
+
searchText,
|
|
24
|
+
merchantShortName,
|
|
25
|
+
productGridVariant
|
|
26
|
+
}: NoSearchResultsFoundProps) => react_jsx_runtime0.JSX.Element;
|
|
20
27
|
//#endregion
|
|
21
28
|
//#region src/components/SearchResultsStates/SearchResultsGrid.d.ts
|
|
22
29
|
interface SearchResultsGridProps {
|
|
@@ -32,6 +39,7 @@ interface SearchResultsGridProps {
|
|
|
32
39
|
selectedFilterOptions: SelectedFilterOption[];
|
|
33
40
|
containerXPaddingClasses: string;
|
|
34
41
|
productGridClasses: string;
|
|
42
|
+
onProductClick?: () => void;
|
|
35
43
|
onRemoveFilter: (filter: SelectedFilterOption) => void;
|
|
36
44
|
onToggleDynamicFilter: ({
|
|
37
45
|
filter,
|
|
@@ -52,8 +60,9 @@ declare const SearchResultsGrid: ({
|
|
|
52
60
|
containerXPaddingClasses,
|
|
53
61
|
productGridClasses,
|
|
54
62
|
onRemoveFilter,
|
|
55
|
-
onToggleDynamicFilter
|
|
56
|
-
|
|
63
|
+
onToggleDynamicFilter,
|
|
64
|
+
onProductClick
|
|
65
|
+
}: SearchResultsGridProps) => react_jsx_runtime0.JSX.Element;
|
|
57
66
|
//#endregion
|
|
58
67
|
//#region src/components/SearchResultsStates/SearchResultsLoadingGrid.d.ts
|
|
59
68
|
declare const SearchResultsLoadingGrid: ({
|
|
@@ -64,6 +73,6 @@ declare const SearchResultsLoadingGrid: ({
|
|
|
64
73
|
productGridVariant: ProductGridVariant;
|
|
65
74
|
productGridClasses: string;
|
|
66
75
|
sparkleIconColor?: string;
|
|
67
|
-
}) =>
|
|
76
|
+
}) => react_jsx_runtime0.JSX.Element;
|
|
68
77
|
//#endregion
|
|
69
78
|
export { NoSearchResultsFound, SearchResultsGrid, SearchResultsLoadingGrid };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
require('../../formatPrice-CyfkjZ3R.cjs');
|
|
2
|
+
require('../../Typography-Ds4gfOJz.cjs');
|
|
3
|
+
require('../../DynamicFiltersScrollbar-DqIydLJu.cjs');
|
|
4
|
+
require('../../ImageWithFallback-CuPe6XF6.cjs');
|
|
5
|
+
require('../../ProductCard-BeY85PBf.cjs');
|
|
6
|
+
require('../../Spinner-FQpy5bGu.cjs');
|
|
7
|
+
require('../../ProductGrid-CxKK7w_X.cjs');
|
|
8
|
+
require('../../RecommendedProducts-C2eNVrLo.cjs');
|
|
9
|
+
require('../../colorsConfig-D-MZuBvt.cjs');
|
|
10
|
+
const require_SearchResultsStates = require('../../SearchResultsStates-D37wFr9h.cjs');
|
|
11
|
+
require('../../searchFilterSidebarVariants-C61Byr1S.cjs');
|
|
12
|
+
require('../../SparkleAnimation-B5A_NCuy.cjs');
|
|
13
|
+
|
|
14
|
+
exports.NoSearchResultsFound = require_SearchResultsStates.NoSearchResultsFound;
|
|
15
|
+
exports.SearchResultsGrid = require_SearchResultsStates.SearchResultsGrid;
|
|
16
|
+
exports.SearchResultsLoadingGrid = require_SearchResultsStates.SearchResultsLoadingGrid;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "../../formatPrice-DexQu2aZ.js";
|
|
2
|
+
import "../../Typography-xehJH05l.js";
|
|
3
|
+
import "../../DynamicFiltersScrollbar-CibstqNd.js";
|
|
4
|
+
import "../../ImageWithFallback-_QZT0EKI.js";
|
|
5
|
+
import "../../ProductCard-BoyYu6mI.js";
|
|
6
|
+
import "../../Spinner-CDDFWySo.js";
|
|
7
|
+
import "../../ProductGrid-DmtSXfyE.js";
|
|
8
|
+
import "../../RecommendedProducts-LalI8aVC.js";
|
|
9
|
+
import "../../colorsConfig-BjdoRtRK.js";
|
|
10
|
+
import { n as SearchResultsGrid, r as NoSearchResultsFound, t as SearchResultsLoadingGrid } from "../../SearchResultsStates-DrGtw0pM.js";
|
|
11
|
+
import "../../searchFilterSidebarVariants-DcwlBfvY.js";
|
|
12
|
+
import "../../SparkleAnimation-BSI_34HX.js";
|
|
13
|
+
|
|
14
|
+
export { NoSearchResultsFound, SearchResultsGrid, SearchResultsLoadingGrid };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as react_jsx_runtime31 from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { SearchInputVariant } from "@envive-ai/react-hooks/contexts/types";
|
|
4
|
+
|
|
5
|
+
//#region src/components/SearchResultsToolbar/SearchResultsToolbar.d.ts
|
|
6
|
+
interface SearchResultsToolbarProps {
|
|
7
|
+
searchInputVariant: SearchInputVariant;
|
|
8
|
+
searchBoxPlaceholder: string;
|
|
9
|
+
searchText: string;
|
|
10
|
+
focusedIndex: number;
|
|
11
|
+
focusedOptionId: string | undefined;
|
|
12
|
+
autocompleteResults: string[];
|
|
13
|
+
filterButtonText: string;
|
|
14
|
+
shouldShowAutocomplete: boolean;
|
|
15
|
+
onKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
16
|
+
onSearchInputChange: (value: string) => void;
|
|
17
|
+
onSubmitSearch: () => void;
|
|
18
|
+
onAutocompleteSelect: (suggestion: string, rankPosition?: number) => void;
|
|
19
|
+
onSearchInputFocus: () => void;
|
|
20
|
+
onSearchInputBlur: () => void;
|
|
21
|
+
setIsFilterOpen: (isOpen: boolean) => void;
|
|
22
|
+
containerXPaddingClasses: string;
|
|
23
|
+
toolbarRef: React.RefObject<HTMLDivElement> | null;
|
|
24
|
+
isVisible: boolean;
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
27
|
+
declare const SearchResultsToolbar: ({
|
|
28
|
+
searchInputVariant,
|
|
29
|
+
searchBoxPlaceholder,
|
|
30
|
+
searchText,
|
|
31
|
+
focusedIndex,
|
|
32
|
+
focusedOptionId,
|
|
33
|
+
autocompleteResults,
|
|
34
|
+
filterButtonText,
|
|
35
|
+
onKeyDown,
|
|
36
|
+
onSearchInputChange,
|
|
37
|
+
onSubmitSearch,
|
|
38
|
+
onAutocompleteSelect,
|
|
39
|
+
onSearchInputFocus,
|
|
40
|
+
onSearchInputBlur,
|
|
41
|
+
shouldShowAutocomplete,
|
|
42
|
+
setIsFilterOpen,
|
|
43
|
+
containerXPaddingClasses,
|
|
44
|
+
toolbarRef,
|
|
45
|
+
isVisible,
|
|
46
|
+
className
|
|
47
|
+
}: SearchResultsToolbarProps) => react_jsx_runtime31.JSX.Element;
|
|
48
|
+
//#endregion
|
|
49
|
+
export { SearchResultsToolbar };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import { SearchInputVariant } from "@envive-ai/react-hooks/contexts/types";
|
|
4
|
+
|
|
5
|
+
//#region src/components/SearchResultsToolbar/SearchResultsToolbar.d.ts
|
|
6
|
+
interface SearchResultsToolbarProps {
|
|
7
|
+
searchInputVariant: SearchInputVariant;
|
|
8
|
+
searchBoxPlaceholder: string;
|
|
9
|
+
searchText: string;
|
|
10
|
+
focusedIndex: number;
|
|
11
|
+
focusedOptionId: string | undefined;
|
|
12
|
+
autocompleteResults: string[];
|
|
13
|
+
filterButtonText: string;
|
|
14
|
+
shouldShowAutocomplete: boolean;
|
|
15
|
+
onKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
16
|
+
onSearchInputChange: (value: string) => void;
|
|
17
|
+
onSubmitSearch: () => void;
|
|
18
|
+
onAutocompleteSelect: (suggestion: string, rankPosition?: number) => void;
|
|
19
|
+
onSearchInputFocus: () => void;
|
|
20
|
+
onSearchInputBlur: () => void;
|
|
21
|
+
setIsFilterOpen: (isOpen: boolean) => void;
|
|
22
|
+
containerXPaddingClasses: string;
|
|
23
|
+
toolbarRef: React.RefObject<HTMLDivElement> | null;
|
|
24
|
+
isVisible: boolean;
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
27
|
+
declare const SearchResultsToolbar: ({
|
|
28
|
+
searchInputVariant,
|
|
29
|
+
searchBoxPlaceholder,
|
|
30
|
+
searchText,
|
|
31
|
+
focusedIndex,
|
|
32
|
+
focusedOptionId,
|
|
33
|
+
autocompleteResults,
|
|
34
|
+
filterButtonText,
|
|
35
|
+
onKeyDown,
|
|
36
|
+
onSearchInputChange,
|
|
37
|
+
onSubmitSearch,
|
|
38
|
+
onAutocompleteSelect,
|
|
39
|
+
onSearchInputFocus,
|
|
40
|
+
onSearchInputBlur,
|
|
41
|
+
shouldShowAutocomplete,
|
|
42
|
+
setIsFilterOpen,
|
|
43
|
+
containerXPaddingClasses,
|
|
44
|
+
toolbarRef,
|
|
45
|
+
isVisible,
|
|
46
|
+
className
|
|
47
|
+
}: SearchResultsToolbarProps) => react_jsx_runtime0.JSX.Element;
|
|
48
|
+
//#endregion
|
|
49
|
+
export { SearchResultsToolbar };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const require_chunk = require('../../chunk-CUT6urMc.cjs');
|
|
5
|
+
require('../../Typography-Ds4gfOJz.cjs');
|
|
6
|
+
require('../../ButtonBase-BMEAmPnS.cjs');
|
|
7
|
+
require('../../ButtonBase-BIXx56hq.cjs');
|
|
8
|
+
require('../../SearchAutocomplete-A3HXkHwK.cjs');
|
|
9
|
+
require('../../TextInput-Do5-j1V_.cjs');
|
|
10
|
+
require('../../colorsConfig-D-MZuBvt.cjs');
|
|
11
|
+
require('../../SearchInput-3ppsm2Ke.cjs');
|
|
12
|
+
const require_SearchInputForm = require('../../SearchInputForm-CZz62rOX.cjs');
|
|
13
|
+
const require_SearchResultsFilterButton = require('../../SearchResultsFilterButton-BedTofz5.cjs');
|
|
14
|
+
let react = require("react");
|
|
15
|
+
react = require_chunk.__toESM(react);
|
|
16
|
+
let classnames = require("classnames");
|
|
17
|
+
classnames = require_chunk.__toESM(classnames);
|
|
18
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
19
|
+
|
|
20
|
+
//#region src/components/SearchResultsToolbar/SearchResultsToolbar.tsx
|
|
21
|
+
const SearchResultsToolbar = ({ searchInputVariant, searchBoxPlaceholder, searchText, focusedIndex, focusedOptionId, autocompleteResults, filterButtonText, onKeyDown, onSearchInputChange, onSubmitSearch, onAutocompleteSelect, onSearchInputFocus, onSearchInputBlur, shouldShowAutocomplete, setIsFilterOpen, containerXPaddingClasses, toolbarRef, isVisible, className }) => {
|
|
22
|
+
const [hasZIndex, setHasZIndex] = react.default.useState(false);
|
|
23
|
+
react.default.useEffect(() => {
|
|
24
|
+
let timer;
|
|
25
|
+
if (isVisible) {
|
|
26
|
+
timer = setTimeout(() => {
|
|
27
|
+
setHasZIndex(true);
|
|
28
|
+
}, 300);
|
|
29
|
+
return () => clearTimeout(timer);
|
|
30
|
+
}
|
|
31
|
+
setHasZIndex(false);
|
|
32
|
+
return () => clearTimeout(timer);
|
|
33
|
+
}, [isVisible]);
|
|
34
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
35
|
+
className: (0, classnames.default)("spiffy-tw-bg-white", "spiffy-tw-w-full", className, {
|
|
36
|
+
"spiffy-tw-z-10": hasZIndex,
|
|
37
|
+
"spiffy-tw-translate-y-0": isVisible,
|
|
38
|
+
"-spiffy-tw-translate-y-full": !isVisible
|
|
39
|
+
}),
|
|
40
|
+
ref: toolbarRef,
|
|
41
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
42
|
+
className: (0, classnames.default)("spiffy-tw-flex", containerXPaddingClasses),
|
|
43
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SearchInputForm.SearchInputForm, {
|
|
44
|
+
searchInputVariant,
|
|
45
|
+
searchText,
|
|
46
|
+
focusedIndex,
|
|
47
|
+
autocompleteResults,
|
|
48
|
+
searchBoxPlaceholder,
|
|
49
|
+
focusedOptionId,
|
|
50
|
+
onKeyDown,
|
|
51
|
+
onSearchInputChange,
|
|
52
|
+
onSearchInputFocus,
|
|
53
|
+
onSearchInputBlur,
|
|
54
|
+
shouldShowAutocomplete,
|
|
55
|
+
onSearchSubmit: onSubmitSearch,
|
|
56
|
+
onAutocompleteSelect
|
|
57
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SearchResultsFilterButton.SearchResultsFilterButton, {
|
|
58
|
+
setIsOpen: setIsFilterOpen,
|
|
59
|
+
filterButtonText
|
|
60
|
+
})]
|
|
61
|
+
})
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
//#endregion
|
|
66
|
+
exports.SearchResultsToolbar = SearchResultsToolbar;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import "../../Typography-xehJH05l.js";
|
|
5
|
+
import "../../ButtonBase-CT397aT3.js";
|
|
6
|
+
import "../../ButtonBase-C9fn-c5h.js";
|
|
7
|
+
import "../../SearchAutocomplete-Rza3A-gs.js";
|
|
8
|
+
import "../../TextInput-PtrUXoZo.js";
|
|
9
|
+
import "../../colorsConfig-BjdoRtRK.js";
|
|
10
|
+
import "../../SearchInput-DE9Iz7A8.js";
|
|
11
|
+
import { t as SearchInputForm } from "../../SearchInputForm-DrI4WHDt.js";
|
|
12
|
+
import { t as SearchResultsFilterButton } from "../../SearchResultsFilterButton-CV11UTGi.js";
|
|
13
|
+
import React from "react";
|
|
14
|
+
import classNames from "classnames";
|
|
15
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
|
|
17
|
+
//#region src/components/SearchResultsToolbar/SearchResultsToolbar.tsx
|
|
18
|
+
const SearchResultsToolbar = ({ searchInputVariant, searchBoxPlaceholder, searchText, focusedIndex, focusedOptionId, autocompleteResults, filterButtonText, onKeyDown, onSearchInputChange, onSubmitSearch, onAutocompleteSelect, onSearchInputFocus, onSearchInputBlur, shouldShowAutocomplete, setIsFilterOpen, containerXPaddingClasses, toolbarRef, isVisible, className }) => {
|
|
19
|
+
const [hasZIndex, setHasZIndex] = React.useState(false);
|
|
20
|
+
React.useEffect(() => {
|
|
21
|
+
let timer;
|
|
22
|
+
if (isVisible) {
|
|
23
|
+
timer = setTimeout(() => {
|
|
24
|
+
setHasZIndex(true);
|
|
25
|
+
}, 300);
|
|
26
|
+
return () => clearTimeout(timer);
|
|
27
|
+
}
|
|
28
|
+
setHasZIndex(false);
|
|
29
|
+
return () => clearTimeout(timer);
|
|
30
|
+
}, [isVisible]);
|
|
31
|
+
return /* @__PURE__ */ jsx("div", {
|
|
32
|
+
className: classNames("spiffy-tw-bg-white", "spiffy-tw-w-full", className, {
|
|
33
|
+
"spiffy-tw-z-10": hasZIndex,
|
|
34
|
+
"spiffy-tw-translate-y-0": isVisible,
|
|
35
|
+
"-spiffy-tw-translate-y-full": !isVisible
|
|
36
|
+
}),
|
|
37
|
+
ref: toolbarRef,
|
|
38
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
39
|
+
className: classNames("spiffy-tw-flex", containerXPaddingClasses),
|
|
40
|
+
children: [/* @__PURE__ */ jsx(SearchInputForm, {
|
|
41
|
+
searchInputVariant,
|
|
42
|
+
searchText,
|
|
43
|
+
focusedIndex,
|
|
44
|
+
autocompleteResults,
|
|
45
|
+
searchBoxPlaceholder,
|
|
46
|
+
focusedOptionId,
|
|
47
|
+
onKeyDown,
|
|
48
|
+
onSearchInputChange,
|
|
49
|
+
onSearchInputFocus,
|
|
50
|
+
onSearchInputBlur,
|
|
51
|
+
shouldShowAutocomplete,
|
|
52
|
+
onSearchSubmit: onSubmitSearch,
|
|
53
|
+
onAutocompleteSelect
|
|
54
|
+
}), /* @__PURE__ */ jsx(SearchResultsFilterButton, {
|
|
55
|
+
setIsOpen: setIsFilterOpen,
|
|
56
|
+
filterButtonText
|
|
57
|
+
})]
|
|
58
|
+
})
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
//#endregion
|
|
63
|
+
export { SearchResultsToolbar };
|
package/dist/{SparkleAnimation/index.d.ts → components/SparkleAnimation/index-BQOC3G_6.d.cts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SparkleAnimation/SparkleAnimation.d.ts
|
|
4
4
|
interface SparkleAnimationProps {
|
|
@@ -10,7 +10,7 @@ declare const SparkleAnimation: ({
|
|
|
10
10
|
color,
|
|
11
11
|
className,
|
|
12
12
|
animate
|
|
13
|
-
}: SparkleAnimationProps) =>
|
|
13
|
+
}: SparkleAnimationProps) => react_jsx_runtime6.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/components/SparkleAnimation/types.d.ts
|
|
16
16
|
declare enum SparkleAnimationOverride {
|
package/dist/{SparkleAnimation/index.d.cts → components/SparkleAnimation/index-DjRK3Dys.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SparkleAnimation/SparkleAnimation.d.ts
|
|
4
4
|
interface SparkleAnimationProps {
|
|
@@ -10,7 +10,7 @@ declare const SparkleAnimation: ({
|
|
|
10
10
|
color,
|
|
11
11
|
className,
|
|
12
12
|
animate
|
|
13
|
-
}: SparkleAnimationProps) =>
|
|
13
|
+
}: SparkleAnimationProps) => react_jsx_runtime6.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/components/SparkleAnimation/types.d.ts
|
|
16
16
|
declare enum SparkleAnimationOverride {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_SparkleAnimation = require('
|
|
1
|
+
const require_SparkleAnimation = require('../../SparkleAnimation-B5A_NCuy.cjs');
|
|
2
2
|
|
|
3
3
|
exports.SparkleAnimation = require_SparkleAnimation.SparkleAnimation;
|
|
4
4
|
exports.SparkleAnimationOverride = require_SparkleAnimation.SparkleAnimationOverride;
|