@envive-ai/react-toolkit 0.2.11 → 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-FyCFBOen.cjs → Accordion-B0TzPN3m.cjs} +2 -5
- package/dist/{Accordion-B8aUlf0q.js → Accordion-D8Vm8J1y.js} +4 -4
- package/dist/{AnimatedChevron-wpcAHp6d.cjs → AnimatedChevron-9xf90bpP.cjs} +0 -2
- package/dist/{AnimatedChevron-Dee6Pe81.js → AnimatedChevron-DghLnmlM.js} +1 -1
- package/dist/{ButtonBase-B6vDKbGQ.cjs → ButtonBase-BMEAmPnS.cjs} +1 -3
- package/dist/{ButtonBase-Bpc7nOpz.js → ButtonBase-CT397aT3.js} +3 -3
- package/dist/{DynamicFiltersScrollbar-D8OqC4DA.js → DynamicFiltersScrollbar-CibstqNd.js} +5 -7
- package/dist/{DynamicFiltersScrollbar-DIwHWq6v.cjs → DynamicFiltersScrollbar-DqIydLJu.cjs} +3 -6
- package/dist/{ImageWithFallback-DvaVpR6v.cjs → ImageWithFallback-CuPe6XF6.cjs} +1 -2
- package/dist/{ImageWithFallback-BW57cQw-.js → ImageWithFallback-_QZT0EKI.js} +2 -2
- package/dist/{ModalSheet-BvM2PJbH.cjs → ModalSheet-Be7-bkXK.cjs} +11 -16
- package/dist/{ModalSheet-DFva7krP.js → ModalSheet-DVrY7Mw0.js} +12 -13
- package/dist/{ProductCard-C2KvH4MN.cjs → ProductCard-BeY85PBf.cjs} +31 -28
- package/dist/{ProductCard-BiWAcPO4.js → ProductCard-BoyYu6mI.js} +19 -24
- package/dist/{ProductGrid-DkOyRAEg.cjs → ProductGrid-CxKK7w_X.cjs} +2 -3
- package/dist/{ProductGrid-B1RtE58G.js → ProductGrid-DmtSXfyE.js} +3 -3
- package/dist/{RadioButton-CQ6qOvBl.js → RadioButton-Bm0qK3bX.js} +3 -3
- package/dist/{RadioButton-DP-qs5cy.cjs → RadioButton-Dcdj8pNp.cjs} +1 -3
- package/dist/{RadioButtonGroup-CJPWfAaA.cjs → RadioButtonGroup-BnnMx8sE.cjs} +2 -3
- package/dist/{RadioButtonGroup-Ce8cKqYw.js → RadioButtonGroup-hme7gSiQ.js} +3 -3
- package/dist/RecommendedProducts-C2eNVrLo.cjs +56 -0
- package/dist/RecommendedProducts-LalI8aVC.js +49 -0
- package/dist/{SearchAutocomplete-bbMvWWjI.cjs → SearchAutocomplete-A3HXkHwK.cjs} +3 -6
- package/dist/{SearchAutocomplete-CjjL2_lm.js → SearchAutocomplete-Rza3A-gs.js} +5 -6
- package/dist/{SearchFilter-wHwOym_n.js → SearchFilter-CYY5sNXV.js} +40 -44
- package/dist/{SearchFilter-BLi6E9Wx.cjs → SearchFilter-DxrQOLx0.cjs} +38 -44
- package/dist/{SearchInput-BA6bepV_.cjs → SearchInput-3ppsm2Ke.cjs} +4 -7
- package/dist/{SearchInput-C3nNkmBm.js → SearchInput-DE9Iz7A8.js} +4 -5
- package/dist/{SearchInputForm/index.cjs → SearchInputForm-CZz62rOX.cjs} +10 -10
- package/dist/{SearchInputForm/index.js → SearchInputForm-DrI4WHDt.js} +4 -7
- package/dist/SearchResultsFilterButton-BedTofz5.cjs +29 -0
- package/dist/SearchResultsFilterButton-CV11UTGi.js +22 -0
- package/dist/{SearchResultsFilterSidebar/index.js → SearchResultsFilterSidebar-Bvpk7Uoo.js} +5 -14
- package/dist/{SearchResultsFilterSidebar/index.cjs → SearchResultsFilterSidebar-Dgz98oyD.cjs} +11 -18
- package/dist/{SearchResultsStates-C-8fh8B9.cjs → SearchResultsStates-D37wFr9h.cjs} +42 -16
- package/dist/{SearchResultsStates-D62WbDTD.js → SearchResultsStates-DrGtw0pM.js} +44 -16
- package/dist/{SparkleAnimation-BFAj73CF.cjs → SparkleAnimation-B5A_NCuy.cjs} +16 -10
- package/dist/{SparkleAnimation-BYDUEqWX.js → SparkleAnimation-BSI_34HX.js} +11 -8
- package/dist/{Spinner-D2HbRsuw.js → Spinner-CDDFWySo.js} +2 -2
- package/dist/{Spinner-Ccy6VFEp.cjs → Spinner-FQpy5bGu.cjs} +1 -2
- package/dist/{TextInput-CYTko3-n.cjs → TextInput-Do5-j1V_.cjs} +3 -5
- package/dist/{TextInput-CmxnphaT.js → TextInput-PtrUXoZo.js} +5 -6
- package/dist/{ToggleButton-V9Qsaks7.js → ToggleButton-BTz_zIdc.js} +3 -3
- package/dist/{ToggleButton-CvxNLMe_.cjs → ToggleButton-CmxTz-ou.cjs} +1 -2
- package/dist/{Typography-C3QmJzFK.js → Typography-xehJH05l.js} +1 -1
- package/dist/colorsConfig-BjdoRtRK.js +26 -0
- package/dist/colorsConfig-D-MZuBvt.cjs +38 -0
- package/dist/{Accordion/index.d.ts → components/Accordion/index-BPofgdcd.d.cts} +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} +3 -3
- package/dist/{AppliedFiltersScrollbar/index.d.cts → components/AppliedFiltersScrollbar/index-DADY550R.d.cts} +3 -3
- package/dist/{AppliedFiltersScrollbar → components/AppliedFiltersScrollbar}/index.cjs +4 -6
- package/dist/{AppliedFiltersScrollbar → components/AppliedFiltersScrollbar}/index.js +3 -4
- package/dist/{ButtonBase/index.d.ts → components/ButtonBase/index-BCw2WQ-2.d.ts} +3 -3
- package/dist/{ButtonBase/index.d.cts → components/ButtonBase/index-pBSmWoqg.d.cts} +3 -3
- package/dist/components/ButtonBase/index.cjs +6 -0
- package/dist/components/ButtonBase/index.js +5 -0
- package/dist/{DynamicFiltersScrollbar/index.d.cts → components/DynamicFiltersScrollbar/index-BvAT64cX.d.ts} +2 -2
- package/dist/{DynamicFiltersScrollbar/index.d.ts → components/DynamicFiltersScrollbar/index-X--ALCSa.d.cts} +2 -2
- package/dist/{DynamicFiltersScrollbar → components/DynamicFiltersScrollbar}/index.cjs +4 -6
- package/dist/{DynamicFiltersScrollbar → components/DynamicFiltersScrollbar}/index.js +3 -4
- package/dist/{FilterScrollbar/index.d.cts → components/FilterScrollbar/index-DgxXE1ff.d.cts} +4 -4
- package/dist/{FilterScrollbar/index.d.ts → components/FilterScrollbar/index-xlg1Q06Q.d.ts} +4 -4
- 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 +7 -4
- package/dist/components/ProductCard/index.js +7 -0
- package/dist/{ProductGrid/index.d.ts → components/ProductGrid/index-B1eVXjB4.d.cts} +4 -3
- package/dist/{ProductGrid/index.d.cts → components/ProductGrid/index-CyDy1V6o.d.ts} +4 -3
- package/dist/components/ProductGrid/index.cjs +9 -0
- package/dist/components/ProductGrid/index.js +8 -0
- package/dist/{RadioButton/index.d.ts → components/RadioButton/index-BHl3dM6k.d.cts} +3 -3
- package/dist/{RadioButton/index.d.cts → components/RadioButton/index-BZrcz8-J.d.ts} +3 -3
- package/dist/components/RadioButton/index.cjs +4 -0
- package/dist/components/RadioButton/index.js +4 -0
- package/dist/{RadioButtonGroup/index.d.ts → components/RadioButtonGroup/index-DdyMuFCX.d.ts} +3 -3
- package/dist/{RadioButtonGroup/index.d.cts → components/RadioButtonGroup/index-DtdjcXo-.d.cts} +3 -3
- 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.cts → components/SearchAutocomplete/index-Br_POGOz.d.ts} +2 -2
- package/dist/{SearchAutocomplete/index.d.ts → 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/components/SearchFilter/index-DAR4UKSA.d.cts +91 -0
- package/dist/components/SearchFilter/index-VygXUBM9.d.ts +91 -0
- package/dist/components/SearchFilter/index.cjs +17 -0
- package/dist/components/SearchFilter/index.js +12 -0
- package/dist/{SearchInput/index.d.cts → components/SearchInput/index-UY0W77Y0.d.ts} +4 -3
- package/dist/{SearchInput/index.d.ts → components/SearchInput/index-rFDdhvqg.d.cts} +4 -3
- package/dist/components/SearchInput/index.cjs +7 -0
- package/dist/components/SearchInput/index.js +6 -0
- package/dist/{SearchInputForm/index.d.ts → components/SearchInputForm/index-_sR_KugL.d.ts} +3 -3
- package/dist/{SearchInputForm/index.d.cts → components/SearchInputForm/index-dlLBivQA.d.cts} +3 -3
- 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} +19 -7
- package/dist/{SearchResultsContent/index.d.ts → components/SearchResultsContent/index-CayvNVCK.d.cts} +19 -7
- 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.cts → components/SearchResultsStates/index-CjYl1v-v.d.cts} +16 -5
- package/dist/{SearchResultsStates/index.d.ts → components/SearchResultsStates/index-DJaUfKjE.d.ts} +20 -9
- 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/components/SparkleAnimation/index-BQOC3G_6.d.cts +23 -0
- package/dist/components/SparkleAnimation/index-DjRK3Dys.d.ts +23 -0
- package/dist/components/SparkleAnimation/index.cjs +4 -0
- 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.ts → components/SuggestionButton/index-B4J70IPS.d.cts} +3 -3
- package/dist/{SuggestionButton/index.d.cts → components/SuggestionButton/index-D6_y1hTj.d.ts} +3 -3
- package/dist/{SuggestionButton → components/SuggestionButton}/index.cjs +6 -8
- package/dist/{SuggestionButton → components/SuggestionButton}/index.js +5 -6
- 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.ts → components/ToggleButton/index-B2rBwaVX.d.cts} +2 -2
- 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/{SearchResultsFilterSidebar/index.d.ts → index-8cIrhPDk.d.ts} +9 -5
- package/dist/{SearchResultsFilterSidebar/index.d.cts → index-BKYA7uMB.d.cts} +9 -5
- package/dist/{index-DoTNu3mL.d.cts → index-Bw6lDfEp.d.cts} +2 -2
- package/dist/index-CqfgJHj8.d.cts +325 -0
- package/dist/{index-C5iOTsRG.d.ts → index-Cr8VXccr.d.ts} +2 -2
- package/dist/index-Cz6qxTZG.d.ts +325 -0
- package/dist/{searchFilterSidebarVariants-BQ7OC862.cjs → searchFilterSidebarVariants-C61Byr1S.cjs} +7 -10
- package/dist/{searchFilterSidebarVariants-C_rWIcxf.js → searchFilterSidebarVariants-DcwlBfvY.js} +2 -3
- package/dist/types--eyQnaEA.d.cts +4 -0
- package/dist/types-CQpdBL3M.d.ts +4 -0
- package/dist/{typographyVariantClasses-BFRoEloZ.d.cts → typographyVariantClasses-CoRhazCU.d.cts} +1 -1
- package/dist/{typographyVariantClasses-D7h3ACAj.d.ts → 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 -53
- package/src/atoms/search/types.ts +1 -0
- package/src/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.tsx +1 -1
- package/src/components/ButtonBase/types.ts +1 -1
- package/src/components/FilterScrollbar/AppliedFiltersScrollbar.tsx +1 -1
- package/src/components/ProductCard/ProductCard.tsx +12 -12
- package/src/components/ProductCard/ProductCardSkeleton.tsx +1 -13
- package/src/components/ProductCard/index.ts +1 -0
- package/src/components/ProductCard/productCardVariants.ts +1 -1
- package/src/components/ProductCard/types.ts +49 -0
- package/src/components/ProductGrid/ProductGrid.tsx +2 -6
- package/src/components/ProductGrid/productGridVariants.ts +1 -1
- package/src/components/RadioButton/RadioButton.tsx +1 -1
- package/src/components/RadioButtonGroup/RadioButtonGroup.tsx +1 -1
- package/src/components/RecommendedProducts/RecommendedProducts.tsx +97 -0
- package/src/components/RecommendedProducts/index.ts +3 -0
- package/src/components/SearchFilter/SearchFilter.tsx +2 -1
- package/src/components/SearchFilter/SearchFilterFooter.tsx +1 -1
- package/src/components/SearchFilter/SearchFilterHeader.tsx +1 -1
- package/src/components/SearchFilter/SearchFilterItem.tsx +1 -1
- package/src/components/SearchFilter/types.ts +45 -0
- package/src/components/SearchFilter/useHasFilterStateChanged.tsx +1 -1
- package/src/components/SearchFilter/utils.ts +1 -1
- package/src/components/SearchInput/SearchInput.tsx +1 -1
- package/src/components/SearchInput/searchInputVariants.ts +2 -2
- package/src/components/SearchInputForm/SearchInputForm.tsx +7 -4
- package/src/components/SearchResultsContent/SearchResultsContent.tsx +72 -39
- 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/SearchResultsFilterSidebar/SearchResultsFilter.tsx +2 -1
- package/src/components/SearchResultsFilterSidebar/index.ts +1 -0
- package/src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts +2 -2
- package/src/components/SearchResultsFilterSidebar/types.ts +2 -0
- package/src/components/SearchResultsStates/NoSearchResultsFound.tsx +43 -11
- package/src/components/SearchResultsStates/SearchResultsGrid.tsx +8 -7
- package/src/components/SearchResultsStates/SearchResultsLoadingGrid.tsx +1 -2
- package/src/components/SearchResultsToolbar/SearchResultsToolbar.tsx +111 -0
- package/src/components/SearchResultsToolbar/index.ts +3 -0
- package/src/components/SparkleAnimation/SparkleAnimation.tsx +1 -7
- package/src/components/SparkleAnimation/index.ts +1 -0
- package/src/components/SparkleAnimation/types.ts +6 -0
- package/src/components/SuggestionButton/SuggestionButton.tsx +1 -1
- package/src/config/chatElementDisplayLocation.ts +23 -0
- package/src/models/colorsConfig.ts +28 -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/camelCase.ts +87 -0
- package/src/util/camelCasedPropertiesDeep.ts +81 -0
- package/src/util/colorVar.ts +1 -1
- package/src/util/index.ts +4 -0
- package/src/util/internal.ts +97 -0
- package/src/util/primitive.ts +8 -0
- package/src/util/splitWords.ts +76 -0
- package/src/util/trim.ts +28 -0
- package/src/util/unknownArray.ts +25 -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 -82
- package/dist/ProductCard/index.d.ts +0 -82
- 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.d.cts +0 -54
- package/dist/SearchFilter/index.d.ts +0 -54
- 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/SearchResultsStates/index.cjs +0 -14
- package/dist/SearchResultsStates/index.js +0 -12
- package/dist/SparkleAnimation/index.cjs +0 -3
- package/dist/SparkleAnimation/index.d.cts +0 -15
- package/dist/SparkleAnimation/index.d.ts +0 -15
- 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/colorVar-B5CLhSof.cjs +0 -11
- package/dist/colorVar-BJve0Z4_.js +0 -5
- /package/dist/{ButtonBase-DbWQ25n-.cjs → ButtonBase-BIXx56hq.cjs} +0 -0
- /package/dist/{ButtonBase-C_uKnl48.js → ButtonBase-C9fn-c5h.js} +0 -0
- /package/dist/{Accordion/index.d.cts → components/Accordion/index-DBEaF9x5.d.ts} +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { t as Typography } from "./Typography-xehJH05l.js";
|
|
2
|
+
import { t as ProductGrid } from "./ProductGrid-DmtSXfyE.js";
|
|
3
|
+
import { motion } from "framer-motion";
|
|
4
|
+
import classNames from "classnames";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/RecommendedProducts/RecommendedProducts.tsx
|
|
8
|
+
const RecommendedProducts = ({ retrievedProducts, merchantShortName, productCardConfig = {
|
|
9
|
+
variant: "minimal",
|
|
10
|
+
hoverVariant: "none",
|
|
11
|
+
layoutVariant: "square"
|
|
12
|
+
}, productGridVariant = "square", heading, onProductClick }) => {
|
|
13
|
+
const containerClasses = classNames("spiffy-tw-justify-center", "spiffy-tw-overflow-hidden", "spiffy-tw-bg-white", "spiffy-tw-relative", "spiffy-tw-px-[24px]", "spiffy-tw-py-[16px]", "sm:spiffy-tw-px-[41px]", "sm:spiffy-tw-py-[40px]");
|
|
14
|
+
const titleContainerClasses = classNames("spiffy-tw-w-full", "spiffy-tw-border-b", "spiffy-tw-border-solid", "spiffy-tw-border-b-[--spiffy-colors-text-accent]", "spiffy-tw-pb-[8px]", "spiffy-tw-mb-[16px]");
|
|
15
|
+
const productGridClasses = classNames("spiffy-tw-grid", "spiffy-tw-justify-items-stretch", "spiffy-tw-grid-cols-2", "md:spiffy-tw-grid-cols-3", "lg:spiffy-tw-grid-cols-4", "spiffy-tw-gap-x-[4px]", "spiffy-tw-gap-y-[24px]", "spiffy-tw-h-full", "spiffy-tw-w-full", "spiffy-tw-items-stretch");
|
|
16
|
+
if (retrievedProducts == null || retrievedProducts.length === 0) return null;
|
|
17
|
+
return /* @__PURE__ */ jsxs(motion.div, {
|
|
18
|
+
className: containerClasses,
|
|
19
|
+
initial: { opacity: 0 },
|
|
20
|
+
animate: { opacity: 1 },
|
|
21
|
+
exit: { opacity: 0 },
|
|
22
|
+
transition: { duration: .2 },
|
|
23
|
+
style: {
|
|
24
|
+
left: "50%",
|
|
25
|
+
right: "50%",
|
|
26
|
+
marginLeft: "-50vw",
|
|
27
|
+
marginRight: "-50vw",
|
|
28
|
+
width: "100vw"
|
|
29
|
+
},
|
|
30
|
+
children: [heading && /* @__PURE__ */ jsx("div", {
|
|
31
|
+
className: titleContainerClasses,
|
|
32
|
+
children: /* @__PURE__ */ jsx(Typography, {
|
|
33
|
+
variant: "h1",
|
|
34
|
+
className: "spiffy-tw-text-[--spiffy-colors-text-accent]",
|
|
35
|
+
children: heading
|
|
36
|
+
})
|
|
37
|
+
}), /* @__PURE__ */ jsx(ProductGrid, {
|
|
38
|
+
productList: retrievedProducts,
|
|
39
|
+
productGridVariant,
|
|
40
|
+
productGridClasses,
|
|
41
|
+
productCardConfig,
|
|
42
|
+
merchantShortName,
|
|
43
|
+
onProductClick
|
|
44
|
+
})]
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
//#endregion
|
|
49
|
+
export { RecommendedProducts as t };
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
2
|
const require_Typography = require('./Typography-Ds4gfOJz.cjs');
|
|
3
|
-
let framer_motion = require("framer-motion");
|
|
4
|
-
framer_motion = require_chunk.__toESM(framer_motion);
|
|
5
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
-
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
7
3
|
let react = require("react");
|
|
8
4
|
react = require_chunk.__toESM(react);
|
|
5
|
+
let framer_motion = require("framer-motion");
|
|
9
6
|
let classnames = require("classnames");
|
|
10
7
|
classnames = require_chunk.__toESM(classnames);
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
9
|
let __envive_ai_react_icons_OutlinedStar = require("@envive-ai/react-icons/OutlinedStar");
|
|
12
10
|
__envive_ai_react_icons_OutlinedStar = require_chunk.__toESM(__envive_ai_react_icons_OutlinedStar);
|
|
13
11
|
|
|
@@ -21,10 +19,9 @@ const SearchAutocomplete = ({ id, results, focusedIndex, searchText = "", onSugg
|
|
|
21
19
|
});
|
|
22
20
|
const escapedQuery = searchQuery.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
23
21
|
const regex = new RegExp(`(${escapedQuery})`, "gi");
|
|
24
|
-
const parts = text.split(regex);
|
|
25
22
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
26
23
|
variant: "body3",
|
|
27
|
-
children:
|
|
24
|
+
children: text.split(regex).map((part, index) => {
|
|
28
25
|
return part.toLowerCase() === searchQuery.toLowerCase() ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", {
|
|
29
26
|
className: "spiffy-tw-font-bold",
|
|
30
27
|
children: part
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Typography } from "./Typography-
|
|
2
|
-
import { motion } from "framer-motion";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { t as Typography } from "./Typography-xehJH05l.js";
|
|
4
2
|
import React from "react";
|
|
3
|
+
import { motion } from "framer-motion";
|
|
5
4
|
import classNames from "classnames";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import OutlinedStar from "@envive-ai/react-icons/OutlinedStar";
|
|
7
7
|
|
|
8
8
|
//#region src/components/SearchAutocomplete/SearchAutocomplete.tsx
|
|
@@ -15,10 +15,9 @@ const SearchAutocomplete = ({ id, results, focusedIndex, searchText = "", onSugg
|
|
|
15
15
|
});
|
|
16
16
|
const escapedQuery = searchQuery.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
17
17
|
const regex = new RegExp(`(${escapedQuery})`, "gi");
|
|
18
|
-
const parts = text.split(regex);
|
|
19
18
|
return /* @__PURE__ */ jsx(Typography, {
|
|
20
19
|
variant: "body3",
|
|
21
|
-
children:
|
|
20
|
+
children: text.split(regex).map((part, index) => {
|
|
22
21
|
return part.toLowerCase() === searchQuery.toLowerCase() ? /* @__PURE__ */ jsx("strong", {
|
|
23
22
|
className: "spiffy-tw-font-bold",
|
|
24
23
|
children: part
|
|
@@ -66,4 +65,4 @@ const SearchAutocomplete = ({ id, results, focusedIndex, searchText = "", onSugg
|
|
|
66
65
|
};
|
|
67
66
|
|
|
68
67
|
//#endregion
|
|
69
|
-
export { SearchAutocomplete };
|
|
68
|
+
export { SearchAutocomplete as t };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Typography } from "./Typography-
|
|
2
|
-
import { Accordion } from "./Accordion-
|
|
3
|
-
import { ButtonBase } from "./ButtonBase-
|
|
4
|
-
import { ModalSheet } from "./ModalSheet-
|
|
5
|
-
import { RadioButtonGroup } from "./RadioButtonGroup-
|
|
6
|
-
import { ToggleButton } from "./ToggleButton-
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { t as Typography } from "./Typography-xehJH05l.js";
|
|
2
|
+
import { t as Accordion } from "./Accordion-D8Vm8J1y.js";
|
|
3
|
+
import { t as ButtonBase } from "./ButtonBase-CT397aT3.js";
|
|
4
|
+
import { t as ModalSheet } from "./ModalSheet-DVrY7Mw0.js";
|
|
5
|
+
import { t as RadioButtonGroup } from "./RadioButtonGroup-hme7gSiQ.js";
|
|
6
|
+
import { t as ToggleButton } from "./ToggleButton-BTz_zIdc.js";
|
|
8
7
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
9
8
|
import classNames from "classnames";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
|
|
11
11
|
//#region src/components/SearchFilter/SearchFilterHeader.tsx
|
|
12
12
|
const SearchFilterHeader = ({ closeModal, productCount, headerClassName, filterCloseIconVariant }) => {
|
|
@@ -116,33 +116,31 @@ const SearchFilterFooter = ({ closeModal, clearAllFilters, filterCount, applyFil
|
|
|
116
116
|
//#region src/components/SearchFilter/SearchFilter.tsx
|
|
117
117
|
const SortFilter = ({ filter, selectFilterItem, radioButtonFillColor, radioButtonHoverColor, radioButtonUncheckedBorderColor }) => {
|
|
118
118
|
const filterTitle = filter.displayName;
|
|
119
|
-
const options = filter.items.map((item) => ({
|
|
120
|
-
label: item.displayName,
|
|
121
|
-
value: item.filterItemId,
|
|
122
|
-
isSelected: item.isSelected
|
|
123
|
-
}));
|
|
124
|
-
const content = /* @__PURE__ */ jsx(RadioButtonGroup, {
|
|
125
|
-
options,
|
|
126
|
-
name: filterTitle,
|
|
127
|
-
onChange: (value) => {
|
|
128
|
-
const selectedItem = filter.items.find((item) => item.filterItemId === value);
|
|
129
|
-
selectFilterItem({
|
|
130
|
-
filterId: filter.filterId,
|
|
131
|
-
filterItemId: value,
|
|
132
|
-
isSelected: true,
|
|
133
|
-
displayName: selectedItem?.displayName || value
|
|
134
|
-
});
|
|
135
|
-
},
|
|
136
|
-
gap: "large",
|
|
137
|
-
textButtonGap: "large",
|
|
138
|
-
value: filter.items.find((item) => item.isSelected)?.filterItemId,
|
|
139
|
-
fillColor: radioButtonFillColor,
|
|
140
|
-
hoverColor: radioButtonHoverColor,
|
|
141
|
-
uncheckedBorderColor: radioButtonUncheckedBorderColor
|
|
142
|
-
});
|
|
143
119
|
return /* @__PURE__ */ jsx(Accordion, {
|
|
144
120
|
title: filterTitle,
|
|
145
|
-
content
|
|
121
|
+
content: /* @__PURE__ */ jsx(RadioButtonGroup, {
|
|
122
|
+
options: filter.items.map((item) => ({
|
|
123
|
+
label: item.displayName,
|
|
124
|
+
value: item.filterItemId,
|
|
125
|
+
isSelected: item.isSelected
|
|
126
|
+
})),
|
|
127
|
+
name: filterTitle,
|
|
128
|
+
onChange: (value) => {
|
|
129
|
+
const selectedItem = filter.items.find((item) => item.filterItemId === value);
|
|
130
|
+
selectFilterItem({
|
|
131
|
+
filterId: filter.filterId,
|
|
132
|
+
filterItemId: value,
|
|
133
|
+
isSelected: true,
|
|
134
|
+
displayName: selectedItem?.displayName || value
|
|
135
|
+
});
|
|
136
|
+
},
|
|
137
|
+
gap: "large",
|
|
138
|
+
textButtonGap: "large",
|
|
139
|
+
value: filter.items.find((item) => item.isSelected)?.filterItemId,
|
|
140
|
+
fillColor: radioButtonFillColor,
|
|
141
|
+
hoverColor: radioButtonHoverColor,
|
|
142
|
+
uncheckedBorderColor: radioButtonUncheckedBorderColor
|
|
143
|
+
})
|
|
146
144
|
});
|
|
147
145
|
};
|
|
148
146
|
const FilterItem = ({ filterId, filterItem, selectFilterItem }) => /* @__PURE__ */ jsx(ToggleButton, {
|
|
@@ -165,18 +163,16 @@ const Filter = ({ filter, selectFilterItem }) => {
|
|
|
165
163
|
"spiffy-tw-pb-[1px]": true
|
|
166
164
|
});
|
|
167
165
|
const selectedFilterItems = getSelectedFilterItemsCount(filter);
|
|
168
|
-
const filterTitle = selectedFilterItems > 0 ? `${filter.displayName} (${selectedFilterItems})` : filter.displayName;
|
|
169
|
-
const content = /* @__PURE__ */ jsx("div", {
|
|
170
|
-
className: filterContentClassName,
|
|
171
|
-
children: filter.items.map((item) => /* @__PURE__ */ jsx(FilterItem, {
|
|
172
|
-
filterId: filter.filterId,
|
|
173
|
-
filterItem: item,
|
|
174
|
-
selectFilterItem
|
|
175
|
-
}, item.filterItemId))
|
|
176
|
-
});
|
|
177
166
|
return /* @__PURE__ */ jsx(Accordion, {
|
|
178
|
-
title:
|
|
179
|
-
content
|
|
167
|
+
title: selectedFilterItems > 0 ? `${filter.displayName} (${selectedFilterItems})` : filter.displayName,
|
|
168
|
+
content: /* @__PURE__ */ jsx("div", {
|
|
169
|
+
className: filterContentClassName,
|
|
170
|
+
children: filter.items.map((item) => /* @__PURE__ */ jsx(FilterItem, {
|
|
171
|
+
filterId: filter.filterId,
|
|
172
|
+
filterItem: item,
|
|
173
|
+
selectFilterItem
|
|
174
|
+
}, item.filterItemId))
|
|
175
|
+
})
|
|
180
176
|
});
|
|
181
177
|
};
|
|
182
178
|
const SearchFilter = ({ filters, productCount, selectFilterItem, clearAllFilters, isOpen, setIsOpen, applyFiltersUnchangedClasses, applyFiltersChangedClasses, headerContent, footerContent, headerClassName, radioButtonFillColor, radioButtonHoverColor, radioButtonUncheckedBorderColor, filterCloseIconVariant }) => {
|
|
@@ -265,4 +261,4 @@ const SearchFilterItem = ({ filterItem, onSelectFilterItem, radioButtonFillColor
|
|
|
265
261
|
};
|
|
266
262
|
|
|
267
263
|
//#endregion
|
|
268
|
-
export {
|
|
264
|
+
export { getTotalSelectedFilterItemsCount as a, getSelectedFilterItemsCount as i, SearchFilter as n, SearchFilterHeader as o, SearchFilterFooter as r, SearchFilterItem as t };
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
2
|
const require_Typography = require('./Typography-Ds4gfOJz.cjs');
|
|
3
|
-
const require_Accordion = require('./Accordion-
|
|
4
|
-
const require_ButtonBase = require('./ButtonBase-
|
|
5
|
-
const require_ModalSheet = require('./ModalSheet-
|
|
6
|
-
const require_RadioButtonGroup = require('./RadioButtonGroup-
|
|
7
|
-
const require_ToggleButton = require('./ToggleButton-
|
|
8
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
-
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
3
|
+
const require_Accordion = require('./Accordion-B0TzPN3m.cjs');
|
|
4
|
+
const require_ButtonBase = require('./ButtonBase-BMEAmPnS.cjs');
|
|
5
|
+
const require_ModalSheet = require('./ModalSheet-Be7-bkXK.cjs');
|
|
6
|
+
const require_RadioButtonGroup = require('./RadioButtonGroup-BnnMx8sE.cjs');
|
|
7
|
+
const require_ToggleButton = require('./ToggleButton-CmxTz-ou.cjs');
|
|
10
8
|
let react = require("react");
|
|
11
|
-
react = require_chunk.__toESM(react);
|
|
12
9
|
let classnames = require("classnames");
|
|
13
10
|
classnames = require_chunk.__toESM(classnames);
|
|
11
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
14
12
|
|
|
15
13
|
//#region src/components/SearchFilter/SearchFilterHeader.tsx
|
|
16
14
|
const SearchFilterHeader = ({ closeModal, productCount, headerClassName, filterCloseIconVariant }) => {
|
|
@@ -120,33 +118,31 @@ const SearchFilterFooter = ({ closeModal, clearAllFilters, filterCount, applyFil
|
|
|
120
118
|
//#region src/components/SearchFilter/SearchFilter.tsx
|
|
121
119
|
const SortFilter = ({ filter, selectFilterItem, radioButtonFillColor, radioButtonHoverColor, radioButtonUncheckedBorderColor }) => {
|
|
122
120
|
const filterTitle = filter.displayName;
|
|
123
|
-
const options = filter.items.map((item) => ({
|
|
124
|
-
label: item.displayName,
|
|
125
|
-
value: item.filterItemId,
|
|
126
|
-
isSelected: item.isSelected
|
|
127
|
-
}));
|
|
128
|
-
const content = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_RadioButtonGroup.RadioButtonGroup, {
|
|
129
|
-
options,
|
|
130
|
-
name: filterTitle,
|
|
131
|
-
onChange: (value) => {
|
|
132
|
-
const selectedItem = filter.items.find((item) => item.filterItemId === value);
|
|
133
|
-
selectFilterItem({
|
|
134
|
-
filterId: filter.filterId,
|
|
135
|
-
filterItemId: value,
|
|
136
|
-
isSelected: true,
|
|
137
|
-
displayName: selectedItem?.displayName || value
|
|
138
|
-
});
|
|
139
|
-
},
|
|
140
|
-
gap: "large",
|
|
141
|
-
textButtonGap: "large",
|
|
142
|
-
value: filter.items.find((item) => item.isSelected)?.filterItemId,
|
|
143
|
-
fillColor: radioButtonFillColor,
|
|
144
|
-
hoverColor: radioButtonHoverColor,
|
|
145
|
-
uncheckedBorderColor: radioButtonUncheckedBorderColor
|
|
146
|
-
});
|
|
147
121
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Accordion.Accordion, {
|
|
148
122
|
title: filterTitle,
|
|
149
|
-
content
|
|
123
|
+
content: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_RadioButtonGroup.RadioButtonGroup, {
|
|
124
|
+
options: filter.items.map((item) => ({
|
|
125
|
+
label: item.displayName,
|
|
126
|
+
value: item.filterItemId,
|
|
127
|
+
isSelected: item.isSelected
|
|
128
|
+
})),
|
|
129
|
+
name: filterTitle,
|
|
130
|
+
onChange: (value) => {
|
|
131
|
+
const selectedItem = filter.items.find((item) => item.filterItemId === value);
|
|
132
|
+
selectFilterItem({
|
|
133
|
+
filterId: filter.filterId,
|
|
134
|
+
filterItemId: value,
|
|
135
|
+
isSelected: true,
|
|
136
|
+
displayName: selectedItem?.displayName || value
|
|
137
|
+
});
|
|
138
|
+
},
|
|
139
|
+
gap: "large",
|
|
140
|
+
textButtonGap: "large",
|
|
141
|
+
value: filter.items.find((item) => item.isSelected)?.filterItemId,
|
|
142
|
+
fillColor: radioButtonFillColor,
|
|
143
|
+
hoverColor: radioButtonHoverColor,
|
|
144
|
+
uncheckedBorderColor: radioButtonUncheckedBorderColor
|
|
145
|
+
})
|
|
150
146
|
});
|
|
151
147
|
};
|
|
152
148
|
const FilterItem = ({ filterId, filterItem, selectFilterItem }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ToggleButton.ToggleButton, {
|
|
@@ -169,18 +165,16 @@ const Filter = ({ filter, selectFilterItem }) => {
|
|
|
169
165
|
"spiffy-tw-pb-[1px]": true
|
|
170
166
|
});
|
|
171
167
|
const selectedFilterItems = getSelectedFilterItemsCount(filter);
|
|
172
|
-
const filterTitle = selectedFilterItems > 0 ? `${filter.displayName} (${selectedFilterItems})` : filter.displayName;
|
|
173
|
-
const content = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
174
|
-
className: filterContentClassName,
|
|
175
|
-
children: filter.items.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FilterItem, {
|
|
176
|
-
filterId: filter.filterId,
|
|
177
|
-
filterItem: item,
|
|
178
|
-
selectFilterItem
|
|
179
|
-
}, item.filterItemId))
|
|
180
|
-
});
|
|
181
168
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Accordion.Accordion, {
|
|
182
|
-
title:
|
|
183
|
-
content
|
|
169
|
+
title: selectedFilterItems > 0 ? `${filter.displayName} (${selectedFilterItems})` : filter.displayName,
|
|
170
|
+
content: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
171
|
+
className: filterContentClassName,
|
|
172
|
+
children: filter.items.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FilterItem, {
|
|
173
|
+
filterId: filter.filterId,
|
|
174
|
+
filterItem: item,
|
|
175
|
+
selectFilterItem
|
|
176
|
+
}, item.filterItemId))
|
|
177
|
+
})
|
|
184
178
|
});
|
|
185
179
|
};
|
|
186
180
|
const SearchFilter = ({ filters, productCount, selectFilterItem, clearAllFilters, isOpen, setIsOpen, applyFiltersUnchangedClasses, applyFiltersChangedClasses, headerContent, footerContent, headerClassName, radioButtonFillColor, radioButtonHoverColor, radioButtonUncheckedBorderColor, filterCloseIconVariant }) => {
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_TextInput = require('./TextInput-
|
|
3
|
-
const
|
|
4
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
-
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
2
|
+
const require_TextInput = require('./TextInput-Do5-j1V_.cjs');
|
|
3
|
+
const require_colorsConfig = require('./colorsConfig-D-MZuBvt.cjs');
|
|
6
4
|
let react = require("react");
|
|
7
5
|
react = require_chunk.__toESM(react);
|
|
8
6
|
let classnames = require("classnames");
|
|
9
7
|
classnames = require_chunk.__toESM(classnames);
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
9
|
let __envive_ai_react_icons_MagnifyingGlassStarVariant = require("@envive-ai/react-icons/MagnifyingGlassStarVariant");
|
|
11
10
|
__envive_ai_react_icons_MagnifyingGlassStarVariant = require_chunk.__toESM(__envive_ai_react_icons_MagnifyingGlassStarVariant);
|
|
12
11
|
let __envive_ai_react_icons_IconClose = require("@envive-ai/react-icons/IconClose");
|
|
13
12
|
__envive_ai_react_icons_IconClose = require_chunk.__toESM(__envive_ai_react_icons_IconClose);
|
|
14
|
-
let __envive_ai_types = require("@envive-ai/types");
|
|
15
|
-
__envive_ai_types = require_chunk.__toESM(__envive_ai_types);
|
|
16
13
|
|
|
17
14
|
//#region src/components/SearchInput/searchInputVariants.ts
|
|
18
15
|
const searchInputVariantClasses = { standard: {
|
|
@@ -20,7 +17,7 @@ const searchInputVariantClasses = { standard: {
|
|
|
20
17
|
searchInputBorderColor: "spiffy-tw-border-[--spiffy-colors-border-medium]",
|
|
21
18
|
searchInputCloseIconClasses: "[&>circle]:spiffy-tw-fill-[--spiffy-colors-text-secondary] [&>path]:spiffy-tw-fill-[#fff]",
|
|
22
19
|
searchInputActiveStarClasses: `first:[&>path]:spiffy-tw-stroke-[--spiffy-colors-accent-primary] first:[&>path]:spiffy-tw-fill-[--spiffy-colors-accent-primary]`,
|
|
23
|
-
autocompleteIconColor:
|
|
20
|
+
autocompleteIconColor: require_colorsConfig.colorVar(require_colorsConfig.ColorNames.BackgroundPrimary),
|
|
24
21
|
searchInputClasses: "spiffy-tw-text-[--spiffy-colors-text-primary] placeholder:spiffy-tw-text-[--spiffy-colors-text-secondary] spiffy-tw-text-[16px] spiffy-tw-font-normal spiffy-tw-leading-[148%] placeholder:spiffy-tw-font-medium placeholder:spiffy-tw-leading-[124%]",
|
|
25
22
|
placeholderVariant: "h2"
|
|
26
23
|
} };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { TextInput } from "./TextInput-
|
|
2
|
-
import { colorVar } from "./
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { t as TextInput } from "./TextInput-PtrUXoZo.js";
|
|
2
|
+
import { n as colorVar, t as ColorNames } from "./colorsConfig-BjdoRtRK.js";
|
|
4
3
|
import React, { useImperativeHandle, useRef } from "react";
|
|
5
4
|
import classNames from "classnames";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import MagnifyingGlassStarVariant from "@envive-ai/react-icons/MagnifyingGlassStarVariant";
|
|
7
7
|
import IconClose from "@envive-ai/react-icons/IconClose";
|
|
8
|
-
import { ColorNames } from "@envive-ai/types";
|
|
9
8
|
|
|
10
9
|
//#region src/components/SearchInput/searchInputVariants.ts
|
|
11
10
|
const searchInputVariantClasses = { standard: {
|
|
@@ -87,4 +86,4 @@ const SearchInput = React.forwardRef(({ searchInputVariant = "standard", value,
|
|
|
87
86
|
});
|
|
88
87
|
|
|
89
88
|
//#endregion
|
|
90
|
-
export {
|
|
89
|
+
export { searchInputVariantClasses as n, SearchInput as t };
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
const require_chunk = require('
|
|
2
|
-
require('
|
|
3
|
-
const
|
|
4
|
-
require('../TextInput-CYTko3-n.cjs');
|
|
5
|
-
require('../colorVar-B5CLhSof.cjs');
|
|
6
|
-
const require_SearchInput = require('../SearchInput-BA6bepV_.cjs');
|
|
7
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
-
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
const require_SearchAutocomplete = require('./SearchAutocomplete-A3HXkHwK.cjs');
|
|
3
|
+
const require_SearchInput = require('./SearchInput-3ppsm2Ke.cjs');
|
|
9
4
|
let classnames = require("classnames");
|
|
10
5
|
classnames = require_chunk.__toESM(classnames);
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
7
|
let __envive_ai_react_hooks_config_locators_components_search = require("@envive-ai/react-hooks/config/locators/components/search");
|
|
12
|
-
__envive_ai_react_hooks_config_locators_components_search = require_chunk.__toESM(__envive_ai_react_hooks_config_locators_components_search);
|
|
13
8
|
|
|
14
9
|
//#region src/components/SearchInputForm/SearchInputForm.tsx
|
|
15
10
|
const SearchInputForm = ({ searchInputVariant, searchText, autocompleteResults, searchBoxPlaceholder, focusedOptionId, shouldShowAutocomplete, focusedIndex, onKeyDown, onAutocompleteSelect, onSearchInputChange, onSearchSubmit, onSearchInputFocus, onSearchInputBlur }) => {
|
|
@@ -56,4 +51,9 @@ const SearchInputForm = ({ searchInputVariant, searchText, autocompleteResults,
|
|
|
56
51
|
};
|
|
57
52
|
|
|
58
53
|
//#endregion
|
|
59
|
-
exports
|
|
54
|
+
Object.defineProperty(exports, 'SearchInputForm', {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return SearchInputForm;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import "../TextInput-CmxnphaT.js";
|
|
4
|
-
import "../colorVar-BJve0Z4_.js";
|
|
5
|
-
import { SearchInput, searchInputVariantClasses } from "../SearchInput-C3nNkmBm.js";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { t as SearchAutocomplete } from "./SearchAutocomplete-Rza3A-gs.js";
|
|
2
|
+
import { n as searchInputVariantClasses, t as SearchInput } from "./SearchInput-DE9Iz7A8.js";
|
|
7
3
|
import classNames from "classnames";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
5
|
import { SEARCH_INPUT_TESTID } from "@envive-ai/react-hooks/config/locators/components/search";
|
|
9
6
|
|
|
10
7
|
//#region src/components/SearchInputForm/SearchInputForm.tsx
|
|
@@ -52,4 +49,4 @@ const SearchInputForm = ({ searchInputVariant, searchText, autocompleteResults,
|
|
|
52
49
|
};
|
|
53
50
|
|
|
54
51
|
//#endregion
|
|
55
|
-
export { SearchInputForm };
|
|
52
|
+
export { SearchInputForm as t };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
const require_ButtonBase = require('./ButtonBase-BMEAmPnS.cjs');
|
|
3
|
+
let react = require("react");
|
|
4
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
+
let __envive_ai_react_icons_SettingsVariant = require("@envive-ai/react-icons/SettingsVariant");
|
|
6
|
+
__envive_ai_react_icons_SettingsVariant = require_chunk.__toESM(__envive_ai_react_icons_SettingsVariant);
|
|
7
|
+
|
|
8
|
+
//#region src/components/SearchResultsFilterButton/SearchResultsFilterButton.tsx
|
|
9
|
+
const SearchResultsFilterButton = ({ setIsOpen, filterButtonText }) => {
|
|
10
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ButtonBase.ButtonBase, {
|
|
11
|
+
onClick: (0, react.useCallback)(() => {
|
|
12
|
+
setIsOpen(true);
|
|
13
|
+
}, [setIsOpen]),
|
|
14
|
+
icon: __envive_ai_react_icons_SettingsVariant.default,
|
|
15
|
+
iconClass: "spiffy-tw-w-[28px] spiffy-tw-h-[28px] spiffy-tw-object-center",
|
|
16
|
+
text: filterButtonText,
|
|
17
|
+
textClass: "spiffy-tw-uppercase spiffy-tw-text-[--spiffy-colors-text-primary] spiffy-tw-hidden md:spiffy-tw-block",
|
|
18
|
+
buttonClass: "spiffy-tw-flex-row spiffy-tw-pl-[16px] sm:spiffy-tw-pl-0 sm:spiffy-tw-px-4 sm:spiffy-tw-gap-[8px]",
|
|
19
|
+
disablePadding: true
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
Object.defineProperty(exports, 'SearchResultsFilterButton', {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return SearchResultsFilterButton;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { t as ButtonBase } from "./ButtonBase-CT397aT3.js";
|
|
2
|
+
import { useCallback } from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import SettingsVariant from "@envive-ai/react-icons/SettingsVariant";
|
|
5
|
+
|
|
6
|
+
//#region src/components/SearchResultsFilterButton/SearchResultsFilterButton.tsx
|
|
7
|
+
const SearchResultsFilterButton = ({ setIsOpen, filterButtonText }) => {
|
|
8
|
+
return /* @__PURE__ */ jsx(ButtonBase, {
|
|
9
|
+
onClick: useCallback(() => {
|
|
10
|
+
setIsOpen(true);
|
|
11
|
+
}, [setIsOpen]),
|
|
12
|
+
icon: SettingsVariant,
|
|
13
|
+
iconClass: "spiffy-tw-w-[28px] spiffy-tw-h-[28px] spiffy-tw-object-center",
|
|
14
|
+
text: filterButtonText,
|
|
15
|
+
textClass: "spiffy-tw-uppercase spiffy-tw-text-[--spiffy-colors-text-primary] spiffy-tw-hidden md:spiffy-tw-block",
|
|
16
|
+
buttonClass: "spiffy-tw-flex-row spiffy-tw-pl-[16px] sm:spiffy-tw-pl-0 sm:spiffy-tw-px-4 sm:spiffy-tw-gap-[8px]",
|
|
17
|
+
disablePadding: true
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { SearchResultsFilterButton as t };
|
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import { ButtonBase } from "../ButtonBase-Bpc7nOpz.js";
|
|
5
|
-
import "../ButtonBase-C_uKnl48.js";
|
|
6
|
-
import "../ModalSheet-DFva7krP.js";
|
|
7
|
-
import "../RadioButton-CQ6qOvBl.js";
|
|
8
|
-
import "../RadioButtonGroup-Ce8cKqYw.js";
|
|
9
|
-
import { SearchFilter, SearchFilterHeader } from "../SearchFilter-wHwOym_n.js";
|
|
10
|
-
import "../ToggleButton-V9Qsaks7.js";
|
|
11
|
-
import "../colorVar-BJve0Z4_.js";
|
|
12
|
-
import { searchFilterSidebarVariantClasses } from "../searchFilterSidebarVariants-C_rWIcxf.js";
|
|
13
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { t as ButtonBase } from "./ButtonBase-CT397aT3.js";
|
|
2
|
+
import { n as SearchFilter, o as SearchFilterHeader } from "./SearchFilter-CYY5sNXV.js";
|
|
3
|
+
import { t as searchFilterSidebarVariantClasses } from "./searchFilterSidebarVariants-DcwlBfvY.js";
|
|
14
4
|
import { useCallback } from "react";
|
|
5
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
6
|
|
|
16
7
|
//#region ../icons/src/SettingsVariant.tsx
|
|
17
8
|
const SvgSettingsVariant = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
@@ -118,4 +109,4 @@ const SearchResultsFilter = ({ productCount, isOpen, setIsOpen, searchFilters, s
|
|
|
118
109
|
};
|
|
119
110
|
|
|
120
111
|
//#endregion
|
|
121
|
-
export { SearchResultsFilter
|
|
112
|
+
export { SearchResultsFilter as t };
|
package/dist/{SearchResultsFilterSidebar/index.cjs → SearchResultsFilterSidebar-Dgz98oyD.cjs}
RENAMED
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
const require_chunk = require('
|
|
2
|
-
require('
|
|
3
|
-
require('
|
|
4
|
-
require('
|
|
5
|
-
const require_ButtonBase = require('../ButtonBase-B6vDKbGQ.cjs');
|
|
6
|
-
require('../ButtonBase-DbWQ25n-.cjs');
|
|
7
|
-
require('../ModalSheet-BvM2PJbH.cjs');
|
|
8
|
-
require('../RadioButton-DP-qs5cy.cjs');
|
|
9
|
-
require('../RadioButtonGroup-CJPWfAaA.cjs');
|
|
10
|
-
const require_SearchFilter = require('../SearchFilter-BLi6E9Wx.cjs');
|
|
11
|
-
require('../ToggleButton-CvxNLMe_.cjs');
|
|
12
|
-
require('../colorVar-B5CLhSof.cjs');
|
|
13
|
-
const require_searchFilterSidebarVariants = require('../searchFilterSidebarVariants-BQ7OC862.cjs');
|
|
14
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
15
|
-
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
const require_ButtonBase = require('./ButtonBase-BMEAmPnS.cjs');
|
|
3
|
+
const require_SearchFilter = require('./SearchFilter-DxrQOLx0.cjs');
|
|
4
|
+
const require_searchFilterSidebarVariants = require('./searchFilterSidebarVariants-C61Byr1S.cjs');
|
|
16
5
|
let react = require("react");
|
|
17
|
-
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
18
7
|
|
|
19
8
|
//#region ../icons/src/SettingsVariant.tsx
|
|
20
9
|
const SvgSettingsVariant = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
@@ -121,5 +110,9 @@ const SearchResultsFilter = ({ productCount, isOpen, setIsOpen, searchFilters, s
|
|
|
121
110
|
};
|
|
122
111
|
|
|
123
112
|
//#endregion
|
|
124
|
-
exports
|
|
125
|
-
|
|
113
|
+
Object.defineProperty(exports, 'SearchResultsFilter', {
|
|
114
|
+
enumerable: true,
|
|
115
|
+
get: function () {
|
|
116
|
+
return SearchResultsFilter;
|
|
117
|
+
}
|
|
118
|
+
});
|
|
@@ -1,40 +1,65 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
2
|
const require_Typography = require('./Typography-Ds4gfOJz.cjs');
|
|
3
|
-
const require_DynamicFiltersScrollbar = require('./DynamicFiltersScrollbar-
|
|
4
|
-
const require_ProductCard = require('./ProductCard-
|
|
5
|
-
const require_ProductGrid = require('./ProductGrid-
|
|
6
|
-
const
|
|
7
|
-
const
|
|
3
|
+
const require_DynamicFiltersScrollbar = require('./DynamicFiltersScrollbar-DqIydLJu.cjs');
|
|
4
|
+
const require_ProductCard = require('./ProductCard-BeY85PBf.cjs');
|
|
5
|
+
const require_ProductGrid = require('./ProductGrid-CxKK7w_X.cjs');
|
|
6
|
+
const require_RecommendedProducts = require('./RecommendedProducts-C2eNVrLo.cjs');
|
|
7
|
+
const require_searchFilterSidebarVariants = require('./searchFilterSidebarVariants-C61Byr1S.cjs');
|
|
8
|
+
const require_SparkleAnimation = require('./SparkleAnimation-B5A_NCuy.cjs');
|
|
8
9
|
let framer_motion = require("framer-motion");
|
|
9
|
-
framer_motion = require_chunk.__toESM(framer_motion);
|
|
10
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
|
-
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
12
10
|
let classnames = require("classnames");
|
|
13
11
|
classnames = require_chunk.__toESM(classnames);
|
|
12
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
14
13
|
let __envive_ai_react_icons_Sparkles = require("@envive-ai/react-icons/Sparkles");
|
|
15
14
|
__envive_ai_react_icons_Sparkles = require_chunk.__toESM(__envive_ai_react_icons_Sparkles);
|
|
16
15
|
|
|
17
16
|
//#region src/components/SearchResultsStates/NoSearchResultsFound.tsx
|
|
18
|
-
const NoSearchResultsFound = ({ containerPaddingClasses,
|
|
19
|
-
const containerClasses = (0, classnames.default)(containerPaddingClasses,
|
|
20
|
-
|
|
17
|
+
const NoSearchResultsFound = ({ containerPaddingClasses, noResultsFoundText, sparkleIconColor = "var(--spiffy-colors-accent-primary)", recommendedProducts, searchText, merchantShortName, productGridVariant }) => {
|
|
18
|
+
const containerClasses = (0, classnames.default)(containerPaddingClasses, "spiffy-tw-mt-6", { "spiffy-tw-mb-[100vh]": recommendedProducts.length === 0 });
|
|
19
|
+
let textPrompt;
|
|
20
|
+
if (recommendedProducts.length > 0) textPrompt = noResultsFoundText ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: noResultsFoundText }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { children: [
|
|
21
|
+
"I’m sorry, I wasn’t able to find an exact match for",
|
|
22
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("strong", {
|
|
23
|
+
className: "spiffy-tw-font-semibold",
|
|
24
|
+
children: [" ", `"${searchText}".`]
|
|
25
|
+
}),
|
|
26
|
+
" Try changing your filters or adjusting your search query. In the meantime, explore some of our top-selling products below."
|
|
27
|
+
] });
|
|
28
|
+
else textPrompt = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { children: [
|
|
29
|
+
"I’m sorry, I wasn’t able to find an exact match for",
|
|
30
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("strong", {
|
|
31
|
+
className: "spiffy-tw-font-semibold",
|
|
32
|
+
children: [" ", `"${searchText}."`]
|
|
33
|
+
}),
|
|
34
|
+
" Try changing your filters or adjusting your search query."
|
|
35
|
+
] });
|
|
36
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
21
37
|
className: containerClasses,
|
|
22
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
38
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
23
39
|
className: "spiffy-tw-flex spiffy-tw-items-start spiffy-tw-gap-2",
|
|
24
40
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_Sparkles.default, {
|
|
25
41
|
className: "spiffy-tw-w-[24px] spiffy-tw-h-[24px]",
|
|
26
42
|
style: { color: sparkleIconColor }
|
|
27
43
|
}) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
28
44
|
variant: "body2",
|
|
29
|
-
children:
|
|
45
|
+
children: textPrompt
|
|
30
46
|
})]
|
|
31
|
-
})
|
|
47
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_RecommendedProducts.RecommendedProducts, {
|
|
48
|
+
retrievedProducts: recommendedProducts,
|
|
49
|
+
merchantShortName,
|
|
50
|
+
productCardConfig: {
|
|
51
|
+
variant: "minimal",
|
|
52
|
+
hoverVariant: "none",
|
|
53
|
+
layoutVariant: "square"
|
|
54
|
+
},
|
|
55
|
+
productGridVariant
|
|
56
|
+
})]
|
|
32
57
|
});
|
|
33
58
|
};
|
|
34
59
|
|
|
35
60
|
//#endregion
|
|
36
61
|
//#region src/components/SearchResultsStates/SearchResultsGrid.tsx
|
|
37
|
-
const SearchResultsGrid = ({ productList, productCardConfig, merchantShortName, availableDynamicFilters, searchFilterSidebarVariant, productGridVariant, selectedFilterOptions, containerXPaddingClasses, productGridClasses, onRemoveFilter, onToggleDynamicFilter }) => {
|
|
62
|
+
const SearchResultsGrid = ({ productList, productCardConfig, merchantShortName, availableDynamicFilters, searchFilterSidebarVariant, productGridVariant, selectedFilterOptions, containerXPaddingClasses, productGridClasses, onRemoveFilter, onToggleDynamicFilter, onProductClick }) => {
|
|
38
63
|
const sharedFilterBarClasses = (0, classnames.default)("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);
|
|
39
64
|
const filterBarClasses = (0, classnames.default)(sharedFilterBarClasses, "spiffy-tw-mt-[24px]");
|
|
40
65
|
const appliedFilterBarClasses = (0, classnames.default)(sharedFilterBarClasses, "spiffy-tw-mb-[32px]", "spiffy-tw-mt-[8px]");
|
|
@@ -66,7 +91,8 @@ const SearchResultsGrid = ({ productList, productCardConfig, merchantShortName,
|
|
|
66
91
|
productGridVariant,
|
|
67
92
|
productGridClasses,
|
|
68
93
|
productCardConfig,
|
|
69
|
-
merchantShortName
|
|
94
|
+
merchantShortName,
|
|
95
|
+
onProductClick
|
|
70
96
|
})
|
|
71
97
|
]
|
|
72
98
|
});
|