@envive-ai/react-toolkit 0.2.11 → 0.2.13-arthur-1
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-B8aUlf0q.js → Accordion-8zFBEEaN.js} +25 -6
- package/dist/{Accordion-FyCFBOen.cjs → Accordion-DPUaEXiE.cjs} +23 -8
- package/dist/{AnimatedChevron-wpcAHp6d.cjs → AnimatedChevron-CPW5KPLr.cjs} +0 -2
- package/dist/{AnimatedChevron-Dee6Pe81.js → AnimatedChevron-DO_jcnJg.js} +1 -1
- package/dist/{ButtonBase-B6vDKbGQ.cjs → ButtonBase-C44g6llb.cjs} +1 -3
- package/dist/{ButtonBase-Bpc7nOpz.js → ButtonBase-Cjo-fBg2.js} +3 -3
- package/dist/{DynamicFiltersScrollbar-DIwHWq6v.cjs → DynamicFiltersScrollbar-IO886VXD.cjs} +3 -6
- package/dist/{DynamicFiltersScrollbar-D8OqC4DA.js → DynamicFiltersScrollbar-s5yfmMau.js} +5 -7
- package/dist/FourPointStar-3DqnYmfN.js +21 -0
- package/dist/FourPointStar-AQ9OSu0S.cjs +26 -0
- package/dist/{ImageWithFallback-DvaVpR6v.cjs → ImageWithFallback-C-ZQn7tR.cjs} +1 -2
- package/dist/{ImageWithFallback-BW57cQw-.js → ImageWithFallback-DjDNefaG.js} +2 -2
- package/dist/{ModalSheet-DFva7krP.js → ModalSheet-C5f5abw1.js} +12 -13
- package/dist/{ModalSheet-BvM2PJbH.cjs → ModalSheet-JZerJZ1T.cjs} +11 -16
- package/dist/OutlinedStar-CC0V_jAK.cjs +26 -0
- package/dist/OutlinedStar-WWs3gRwt.js +21 -0
- package/dist/{ProductCard-C2KvH4MN.cjs → ProductCard-C7rZyWpj.cjs} +31 -28
- package/dist/{ProductCard-BiWAcPO4.js → ProductCard-GxpFxjh0.js} +19 -24
- package/dist/{ProductGrid-DkOyRAEg.cjs → ProductGrid-0A8vml2y.cjs} +2 -3
- package/dist/{ProductGrid-B1RtE58G.js → ProductGrid-DAwc9dKV.js} +3 -3
- package/dist/{RadioButton-CQ6qOvBl.js → RadioButton-DOc8g47U.js} +3 -3
- package/dist/{RadioButton-DP-qs5cy.cjs → RadioButton-DpF1wymL.cjs} +1 -3
- package/dist/{RadioButtonGroup-CJPWfAaA.cjs → RadioButtonGroup-ByzTXNAb.cjs} +2 -3
- package/dist/{RadioButtonGroup-Ce8cKqYw.js → RadioButtonGroup-YQIxmR7j.js} +3 -3
- package/dist/RecommendedProducts-C6dLpLPP.js +49 -0
- package/dist/RecommendedProducts-qkPxXVJn.cjs +56 -0
- package/dist/{SearchAutocomplete-bbMvWWjI.cjs → SearchAutocomplete-BdTWETDB.cjs} +5 -9
- package/dist/{SearchAutocomplete-CjjL2_lm.js → SearchAutocomplete-DNe193EV.js} +7 -8
- package/dist/{SearchFilter-BLi6E9Wx.cjs → SearchFilter-BRtCSuAn.cjs} +38 -44
- package/dist/{SearchFilter-wHwOym_n.js → SearchFilter-DvJx0b0W.js} +40 -44
- package/dist/{SearchInput-BA6bepV_.cjs → SearchInput-CImlqrau.cjs} +64 -13
- package/dist/{SearchInput-C3nNkmBm.js → SearchInput-kLhxkpgq.js} +64 -9
- package/dist/{SearchInputForm/index.js → SearchInputForm-CFm_hUvX.js} +7 -9
- package/dist/{SearchInputForm/index.cjs → SearchInputForm-ZgNNEX6E.cjs} +13 -12
- package/dist/SearchResultsFilterButton-D929tRt9.cjs +96 -0
- package/dist/SearchResultsFilterButton-Dk7u7rgn.js +90 -0
- package/dist/{SearchResultsFilterSidebar/index.cjs → SearchResultsFilterSidebar-BRFONIEq.cjs} +11 -18
- package/dist/{SearchResultsFilterSidebar/index.js → SearchResultsFilterSidebar-DLzQoFGD.js} +5 -14
- package/dist/SearchResultsStates-CQR5Il4l.cjs +196 -0
- package/dist/SearchResultsStates-D7HfsLeZ.js +177 -0
- package/dist/{SparkleAnimation-BFAj73CF.cjs → SparkleAnimation-BikAiAmb.cjs} +20 -15
- package/dist/{SparkleAnimation-BYDUEqWX.js → SparkleAnimation-szzXiTam.js} +15 -12
- package/dist/{Spinner-Ccy6VFEp.cjs → Spinner-7HblFCja.cjs} +1 -2
- package/dist/{Spinner-D2HbRsuw.js → Spinner-OFbXMms8.js} +2 -2
- package/dist/{TextInput-CYTko3-n.cjs → TextInput-CaynCoDf.cjs} +3 -5
- package/dist/{TextInput-CmxnphaT.js → TextInput-CsdOvLBQ.js} +5 -6
- package/dist/{ToggleButton-V9Qsaks7.js → ToggleButton-D8--AKKK.js} +3 -3
- package/dist/{ToggleButton-CvxNLMe_.cjs → ToggleButton-Dxk3U1hR.cjs} +1 -2
- package/dist/{Typography-C3QmJzFK.js → Typography-xehJH05l.js} +1 -1
- package/dist/colorsConfig-CFI1KN8R.js +26 -0
- package/dist/colorsConfig-Dp7w5LPb.cjs +38 -0
- package/dist/{Accordion/index.d.ts → components/Accordion/index-D_7-KJa0.d.cts} +2 -2
- package/dist/{Accordion/index.d.cts → components/Accordion/index-Dd_9XeqA.d.ts} +2 -2
- package/dist/components/Accordion/index.cjs +5 -0
- package/dist/components/Accordion/index.js +5 -0
- package/dist/{AnimatedChevron/index.d.cts → components/AnimatedChevron/index-BwQ6tJL8.d.cts} +2 -2
- package/dist/{AnimatedChevron/index.d.ts → components/AnimatedChevron/index-DZdGWikh.d.ts} +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-Dcyc-5Bv.d.ts} +3 -3
- package/dist/{AppliedFiltersScrollbar/index.d.cts → components/AppliedFiltersScrollbar/index-VbXAIfym.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-Bxdhf_O8.d.cts} +3 -3
- package/dist/{ButtonBase/index.d.cts → components/ButtonBase/index-VoanK6Pr.d.ts} +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-CHzxQmaW.d.cts} +2 -2
- package/dist/{DynamicFiltersScrollbar/index.d.ts → components/DynamicFiltersScrollbar/index-vVNOOaOF.d.ts} +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-DXcZLcQi.d.cts} +4 -4
- package/dist/{FilterScrollbar/index.d.ts → components/FilterScrollbar/index-DwLyxqQl.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-BLbkDyG8.d.cts} +2 -2
- package/dist/{ImageWithFallback/index.d.ts → components/ImageWithFallback/index-NJZsMOXc.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-B5q4MHdq.d.cts} +2 -2
- package/dist/{ModalSheet/index.d.ts → components/ModalSheet/index-BN20-QS0.d.ts} +2 -2
- package/dist/components/ModalSheet/index.cjs +4 -0
- package/dist/components/ModalSheet/index.js +4 -0
- package/dist/components/ProductCard/index-CglXQ3wh.d.ts +2 -0
- package/dist/components/ProductCard/index-XVlN6iMl.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-BPBgwFsa.d.cts} +4 -3
- package/dist/{ProductGrid/index.d.cts → components/ProductGrid/index-D_YpwJCd.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.cts → components/RadioButton/index-BeOT_AlW.d.cts} +3 -3
- package/dist/{RadioButton/index.d.ts → components/RadioButton/index-CxluCaJw.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.cts → components/RadioButtonGroup/index-BOhV-rG3.d.cts} +3 -3
- package/dist/{RadioButtonGroup/index.d.ts → components/RadioButtonGroup/index-KeOIiYNW.d.ts} +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-BcnHcv7Q.d.cts} +2 -2
- package/dist/{SearchAutocomplete/index.d.ts → components/SearchAutocomplete/index-Br_POGOz.d.ts} +2 -2
- package/dist/components/SearchAutocomplete/index.cjs +6 -0
- package/dist/components/SearchAutocomplete/index.js +6 -0
- package/dist/components/SearchFilter/index-BbIqmoO8.d.ts +91 -0
- package/dist/components/SearchFilter/index-DAL3Wl6U.d.cts +91 -0
- package/dist/components/SearchFilter/index.cjs +18 -0
- package/dist/components/SearchFilter/index.js +13 -0
- package/dist/{SearchInput/index.d.cts → components/SearchInput/index-C0H51Flv.d.ts} +4 -3
- package/dist/{SearchInput/index.d.ts → components/SearchInput/index-rFDdhvqg.d.cts} +4 -3
- package/dist/components/SearchInput/index.cjs +8 -0
- package/dist/components/SearchInput/index.js +7 -0
- package/dist/{SearchInputForm/index.d.cts → components/SearchInputForm/index-Cleto06d.d.cts} +4 -2
- package/dist/{SearchInputForm/index.d.ts → components/SearchInputForm/index-DjjoY7MQ.d.ts} +6 -4
- package/dist/components/SearchInputForm/index.cjs +10 -0
- package/dist/components/SearchInputForm/index.js +10 -0
- package/dist/{SearchResultsContent/index.d.ts → components/SearchResultsContent/index-C4qsTFUd.d.cts} +19 -7
- package/dist/{SearchResultsContent/index.d.cts → components/SearchResultsContent/index-KdFf9yzs.d.ts} +17 -5
- package/dist/components/SearchResultsContent/index.cjs +62 -0
- package/dist/components/SearchResultsContent/index.js +60 -0
- package/dist/components/SearchResultsFilterButton/index-BvntKdyC.d.ts +13 -0
- package/dist/components/SearchResultsFilterButton/index-zgQsT6vz.d.cts +13 -0
- package/dist/components/SearchResultsFilterButton/index.cjs +10 -0
- package/dist/components/SearchResultsFilterButton/index.js +10 -0
- package/dist/components/SearchResultsFilterModal/index-CNBQ1ikL.d.ts +27 -0
- package/dist/components/SearchResultsFilterModal/index-mRcnKysU.d.cts +27 -0
- package/dist/components/SearchResultsFilterModal/index.cjs +48 -0
- package/dist/components/SearchResultsFilterModal/index.js +47 -0
- package/dist/components/SearchResultsFilterSidebar/index-C7PE9z5a.d.ts +2 -0
- package/dist/components/SearchResultsFilterSidebar/index-DKzEKFV3.d.cts +2 -0
- package/dist/components/SearchResultsFilterSidebar/index.cjs +17 -0
- package/dist/components/SearchResultsFilterSidebar/index.js +16 -0
- package/dist/{SearchResultsStates/index.d.ts → components/SearchResultsStates/index-Dugoegtn.d.ts} +20 -9
- package/dist/{SearchResultsStates/index.d.cts → components/SearchResultsStates/index-RVgPTFiH.d.cts} +16 -5
- package/dist/components/SearchResultsStates/index.cjs +18 -0
- package/dist/components/SearchResultsStates/index.js +16 -0
- package/dist/components/SearchResultsToolbar/index-CIvuccni.d.ts +49 -0
- package/dist/components/SearchResultsToolbar/index-PYr086HM.d.cts +49 -0
- package/dist/components/SearchResultsToolbar/index.cjs +68 -0
- package/dist/components/SearchResultsToolbar/index.js +65 -0
- package/dist/components/SparkleAnimation/index-BFqUibyY.d.ts +23 -0
- package/dist/components/SparkleAnimation/index-CSBR76H5.d.cts +23 -0
- package/dist/components/SparkleAnimation/index.cjs +6 -0
- package/dist/components/SparkleAnimation/index.js +5 -0
- package/dist/{Spinner/index.d.cts → components/Spinner/index-DrYhRG9D.d.cts} +2 -2
- package/dist/{Spinner/index.d.ts → components/Spinner/index-TKsPifGM.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-BioM3QHW.d.ts} +3 -3
- package/dist/{SuggestionButton/index.d.ts → components/SuggestionButton/index-CjV6Ar4Y.d.cts} +3 -3
- package/dist/{SuggestionButton → components/SuggestionButton}/index.cjs +11 -14
- package/dist/{SuggestionButton → components/SuggestionButton}/index.js +10 -10
- package/dist/{TextInput/index.d.cts → components/TextInput/index-CRJMRe-b.d.cts} +2 -2
- package/dist/{TextInput/index.d.ts → components/TextInput/index-DAhxej1K.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-eLDrp4ic.d.cts} +2 -2
- package/dist/{ToggleButton/index.d.ts → components/ToggleButton/index-pFQuGdoj.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-DzSBreyM.d.cts +3 -0
- package/dist/components/Typography/index-ymH7f3jB.d.ts +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-BCBtAzCc.d.ts +325 -0
- package/dist/{SearchResultsFilterSidebar/index.d.ts → index-BiKhzraQ.d.cts} +9 -5
- package/dist/{index-DoTNu3mL.d.cts → index-Bw6lDfEp.d.cts} +2 -2
- package/dist/index-CzbumwVZ.d.cts +325 -0
- package/dist/{SearchResultsFilterSidebar/index.d.cts → index-DK0xpfMg.d.ts} +9 -5
- package/dist/{index-C5iOTsRG.d.ts → index-DXGw5Z56.d.ts} +2 -2
- package/dist/jsx-runtime-Dg2m6dxZ-B-pkyyHT.cjs +2586 -0
- package/dist/jsx-runtime-Dg2m6dxZ-CU_SzTu4.js +2580 -0
- package/dist/{searchFilterSidebarVariants-BQ7OC862.cjs → searchFilterSidebarVariants-CjyRGKK_.cjs} +7 -10
- package/dist/{searchFilterSidebarVariants-C_rWIcxf.js → searchFilterSidebarVariants-gkgkflXx.js} +2 -3
- package/dist/types--eyQnaEA.d.cts +4 -0
- package/dist/types-D6fl4HOx.d.ts +4 -0
- package/dist/{typographyVariantClasses-BFRoEloZ.d.cts → typographyVariantClasses-CoRhazCU.d.cts} +1 -1
- package/dist/{typographyVariantClasses-D7h3ACAj.d.ts → typographyVariantClasses-_oNpv-aN.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 +10 -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/SearchResultsStates-C-8fh8B9.cjs +0 -132
- package/dist/SearchResultsStates-D62WbDTD.js +0 -110
- 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-Cb6Iec6f.cjs} +0 -0
- /package/dist/{ButtonBase-C_uKnl48.js → ButtonBase-D2eXuapk.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ProductCard } from "./ProductCard-
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
1
|
+
import { a as ProductCard } from "./ProductCard-GxpFxjh0.js";
|
|
3
2
|
import classNames from "classnames";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ProductGrid/productGridVariants.ts
|
|
6
6
|
const productGridVariantClasses = {
|
|
@@ -55,4 +55,4 @@ const ProductGrid = ({ productList, productGridVariant, productGridClasses, prod
|
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
//#endregion
|
|
58
|
-
export {
|
|
58
|
+
export { productGridVariantClasses as n, ProductGrid as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Typography } from "./Typography-
|
|
2
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { t as Typography } from "./Typography-xehJH05l.js";
|
|
3
2
|
import { useState } from "react";
|
|
4
3
|
import classNames from "classnames";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/RadioButton/RadioButton.tsx
|
|
7
7
|
const RadioButton = ({ isDisabled = false, label, name, value, textButtonGap = "medium", fillColor, hoverColor, uncheckedBorderColor, checked = false, onChange, id }) => {
|
|
@@ -68,4 +68,4 @@ const RadioButton = ({ isDisabled = false, label, name, value, textButtonGap = "
|
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
//#endregion
|
|
71
|
-
export { RadioButton };
|
|
71
|
+
export { RadioButton as t };
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
2
|
const require_Typography = require('./Typography-Ds4gfOJz.cjs');
|
|
3
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
-
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
5
3
|
let react = require("react");
|
|
6
|
-
react = require_chunk.__toESM(react);
|
|
7
4
|
let classnames = require("classnames");
|
|
8
5
|
classnames = require_chunk.__toESM(classnames);
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
7
|
|
|
10
8
|
//#region src/components/RadioButton/RadioButton.tsx
|
|
11
9
|
const RadioButton = ({ isDisabled = false, label, name, value, textButtonGap = "medium", fillColor, hoverColor, uncheckedBorderColor, checked = false, onChange, id }) => {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_RadioButton = require('./RadioButton-
|
|
3
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
-
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
2
|
+
const require_RadioButton = require('./RadioButton-DpF1wymL.cjs');
|
|
5
3
|
let classnames = require("classnames");
|
|
6
4
|
classnames = require_chunk.__toESM(classnames);
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
6
|
|
|
8
7
|
//#region src/components/RadioButtonGroup/RadioButtonGroup.tsx
|
|
9
8
|
const SPIFFY_RADIO_BUTTON_GROUP_CLASS = "spiffy-radio-button-group-class";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RadioButton } from "./RadioButton-
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
1
|
+
import { t as RadioButton } from "./RadioButton-DOc8g47U.js";
|
|
3
2
|
import classNames from "classnames";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/RadioButtonGroup/RadioButtonGroup.tsx
|
|
6
6
|
const SPIFFY_RADIO_BUTTON_GROUP_CLASS = "spiffy-radio-button-group-class";
|
|
@@ -35,4 +35,4 @@ const RadioButtonGroup = ({ name, options, fillColor, hoverColor, uncheckedBorde
|
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
//#endregion
|
|
38
|
-
export {
|
|
38
|
+
export { SPIFFY_RADIO_BUTTON_GROUP_CLASS as n, RadioButtonGroup as t };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { t as Typography } from "./Typography-xehJH05l.js";
|
|
2
|
+
import { t as ProductGrid } from "./ProductGrid-DAwc9dKV.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 };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
const require_Typography = require('./Typography-Ds4gfOJz.cjs');
|
|
3
|
+
const require_ProductGrid = require('./ProductGrid-0A8vml2y.cjs');
|
|
4
|
+
let framer_motion = require("framer-motion");
|
|
5
|
+
let classnames = require("classnames");
|
|
6
|
+
classnames = require_chunk.__toESM(classnames);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
|
|
9
|
+
//#region src/components/RecommendedProducts/RecommendedProducts.tsx
|
|
10
|
+
const RecommendedProducts = ({ retrievedProducts, merchantShortName, productCardConfig = {
|
|
11
|
+
variant: "minimal",
|
|
12
|
+
hoverVariant: "none",
|
|
13
|
+
layoutVariant: "square"
|
|
14
|
+
}, productGridVariant = "square", heading, onProductClick }) => {
|
|
15
|
+
const containerClasses = (0, classnames.default)("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]");
|
|
16
|
+
const titleContainerClasses = (0, classnames.default)("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]");
|
|
17
|
+
const productGridClasses = (0, classnames.default)("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");
|
|
18
|
+
if (retrievedProducts == null || retrievedProducts.length === 0) return null;
|
|
19
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(framer_motion.motion.div, {
|
|
20
|
+
className: containerClasses,
|
|
21
|
+
initial: { opacity: 0 },
|
|
22
|
+
animate: { opacity: 1 },
|
|
23
|
+
exit: { opacity: 0 },
|
|
24
|
+
transition: { duration: .2 },
|
|
25
|
+
style: {
|
|
26
|
+
left: "50%",
|
|
27
|
+
right: "50%",
|
|
28
|
+
marginLeft: "-50vw",
|
|
29
|
+
marginRight: "-50vw",
|
|
30
|
+
width: "100vw"
|
|
31
|
+
},
|
|
32
|
+
children: [heading && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
33
|
+
className: titleContainerClasses,
|
|
34
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
35
|
+
variant: "h1",
|
|
36
|
+
className: "spiffy-tw-text-[--spiffy-colors-text-accent]",
|
|
37
|
+
children: heading
|
|
38
|
+
})
|
|
39
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProductGrid.ProductGrid, {
|
|
40
|
+
productList: retrievedProducts,
|
|
41
|
+
productGridVariant,
|
|
42
|
+
productGridClasses,
|
|
43
|
+
productCardConfig,
|
|
44
|
+
merchantShortName,
|
|
45
|
+
onProductClick
|
|
46
|
+
})]
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
Object.defineProperty(exports, 'RecommendedProducts', {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () {
|
|
54
|
+
return RecommendedProducts;
|
|
55
|
+
}
|
|
56
|
+
});
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
2
|
const require_Typography = require('./Typography-Ds4gfOJz.cjs');
|
|
3
|
-
|
|
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);
|
|
3
|
+
const require_OutlinedStar = require('./OutlinedStar-CC0V_jAK.cjs');
|
|
7
4
|
let react = require("react");
|
|
8
5
|
react = require_chunk.__toESM(react);
|
|
6
|
+
let framer_motion = require("framer-motion");
|
|
9
7
|
let classnames = require("classnames");
|
|
10
8
|
classnames = require_chunk.__toESM(classnames);
|
|
11
|
-
let
|
|
12
|
-
__envive_ai_react_icons_OutlinedStar = require_chunk.__toESM(__envive_ai_react_icons_OutlinedStar);
|
|
9
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
13
10
|
|
|
14
11
|
//#region src/components/SearchAutocomplete/SearchAutocomplete.tsx
|
|
15
12
|
const SearchAutocomplete = ({ id, results, focusedIndex, searchText = "", onSuggestionSelect, iconColor }) => {
|
|
@@ -21,10 +18,9 @@ const SearchAutocomplete = ({ id, results, focusedIndex, searchText = "", onSugg
|
|
|
21
18
|
});
|
|
22
19
|
const escapedQuery = searchQuery.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
23
20
|
const regex = new RegExp(`(${escapedQuery})`, "gi");
|
|
24
|
-
const parts = text.split(regex);
|
|
25
21
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
26
22
|
variant: "body3",
|
|
27
|
-
children:
|
|
23
|
+
children: text.split(regex).map((part, index) => {
|
|
28
24
|
return part.toLowerCase() === searchQuery.toLowerCase() ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", {
|
|
29
25
|
className: "spiffy-tw-font-bold",
|
|
30
26
|
children: part
|
|
@@ -62,7 +58,7 @@ const SearchAutocomplete = ({ id, results, focusedIndex, searchText = "", onSugg
|
|
|
62
58
|
onKeyDown: (event) => {
|
|
63
59
|
if (event.key === "Enter" || event.keyCode === 13) onSuggestionSelect(result, index);
|
|
64
60
|
},
|
|
65
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
61
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_OutlinedStar.OutlinedStar_default, {
|
|
66
62
|
className: "spiffy-tw-w-[16px] spiffy-tw-h-[16px] spiffy-tw-mr-[16px]",
|
|
67
63
|
fill: iconColor
|
|
68
64
|
}), highlightMatchingText(result, searchText)]
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Typography } from "./Typography-
|
|
2
|
-
import {
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { t as Typography } from "./Typography-xehJH05l.js";
|
|
2
|
+
import { t as OutlinedStar_default } from "./OutlinedStar-WWs3gRwt.js";
|
|
4
3
|
import React from "react";
|
|
4
|
+
import { motion } from "framer-motion";
|
|
5
5
|
import classNames from "classnames";
|
|
6
|
-
import
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region src/components/SearchAutocomplete/SearchAutocomplete.tsx
|
|
9
9
|
const SearchAutocomplete = ({ id, results, focusedIndex, searchText = "", onSuggestionSelect, iconColor }) => {
|
|
@@ -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
|
|
@@ -56,7 +55,7 @@ const SearchAutocomplete = ({ id, results, focusedIndex, searchText = "", onSugg
|
|
|
56
55
|
onKeyDown: (event) => {
|
|
57
56
|
if (event.key === "Enter" || event.keyCode === 13) onSuggestionSelect(result, index);
|
|
58
57
|
},
|
|
59
|
-
children: [/* @__PURE__ */ jsx(
|
|
58
|
+
children: [/* @__PURE__ */ jsx(OutlinedStar_default, {
|
|
60
59
|
className: "spiffy-tw-w-[16px] spiffy-tw-h-[16px] spiffy-tw-mr-[16px]",
|
|
61
60
|
fill: iconColor
|
|
62
61
|
}), highlightMatchingText(result, searchText)]
|
|
@@ -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,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-DPUaEXiE.cjs');
|
|
4
|
+
const require_ButtonBase = require('./ButtonBase-C44g6llb.cjs');
|
|
5
|
+
const require_ModalSheet = require('./ModalSheet-JZerJZ1T.cjs');
|
|
6
|
+
const require_RadioButtonGroup = require('./RadioButtonGroup-ByzTXNAb.cjs');
|
|
7
|
+
const require_ToggleButton = require('./ToggleButton-Dxk3U1hR.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,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-8zFBEEaN.js";
|
|
3
|
+
import { t as ButtonBase } from "./ButtonBase-Cjo-fBg2.js";
|
|
4
|
+
import { t as ModalSheet } from "./ModalSheet-C5f5abw1.js";
|
|
5
|
+
import { t as RadioButtonGroup } from "./RadioButtonGroup-YQIxmR7j.js";
|
|
6
|
+
import { t as ToggleButton } from "./ToggleButton-D8--AKKK.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,26 +1,77 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
2
|
+
const require_jsx_runtime_Dg2m6dxZ = require('./jsx-runtime-Dg2m6dxZ-B-pkyyHT.cjs');
|
|
3
|
+
const require_TextInput = require('./TextInput-CaynCoDf.cjs');
|
|
4
|
+
const require_colorsConfig = require('./colorsConfig-Dp7w5LPb.cjs');
|
|
6
5
|
let react = require("react");
|
|
7
6
|
react = require_chunk.__toESM(react);
|
|
8
7
|
let classnames = require("classnames");
|
|
9
8
|
classnames = require_chunk.__toESM(classnames);
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
|
+
|
|
11
|
+
//#region ../icons/dist/MagnifyingGlassStarVariant.js
|
|
12
|
+
var import_jsx_runtime$1 = require_jsx_runtime_Dg2m6dxZ.require_jsx_runtime();
|
|
13
|
+
const SvgMagnifyingGlassStarVariant = (props) => /* @__PURE__ */ (0, import_jsx_runtime$1.jsxs)("svg", {
|
|
14
|
+
width: 23,
|
|
15
|
+
height: 21,
|
|
16
|
+
viewBox: "0 0 23 21",
|
|
17
|
+
fill: "none",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
...props,
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ (0, import_jsx_runtime$1.jsx)("path", {
|
|
22
|
+
d: "M16.9017 1.07275L17.6915 3.12627C17.82 3.46022 17.8842 3.62719 17.984 3.76764C18.0726 3.89211 18.1813 4.00087 18.3058 4.08938C18.4462 4.18925 18.6132 4.25347 18.9472 4.38191L21.0007 5.17172L18.9472 5.96154C18.6132 6.08998 18.4462 6.1542 18.3058 6.25406C18.1813 6.34257 18.0726 6.45133 17.984 6.57581C17.8842 6.71625 17.82 6.88323 17.6915 7.21717L16.9017 9.27069L16.1119 7.21717C15.9834 6.88323 15.9192 6.71625 15.8194 6.57581C15.7308 6.45133 15.6221 6.34257 15.4976 6.25406C15.3572 6.1542 15.1902 6.08998 14.8563 5.96154L12.8027 5.17172L14.8563 4.38191C15.1902 4.25347 15.3572 4.18925 15.4976 4.08938C15.6221 4.00087 15.7308 3.89211 15.8194 3.76764C15.9192 3.62719 15.9834 3.46022 16.1119 3.12627L16.9017 1.07275Z",
|
|
23
|
+
fill: "#595959",
|
|
24
|
+
stroke: "#595959",
|
|
25
|
+
strokeWidth: .910882,
|
|
26
|
+
strokeLinecap: "round",
|
|
27
|
+
strokeLinejoin: "round"
|
|
28
|
+
}),
|
|
29
|
+
/* @__PURE__ */ (0, import_jsx_runtime$1.jsx)("path", {
|
|
30
|
+
d: "M11.5954 2.64387C10.5786 1.97247 9.36711 1.56895 8.05921 1.53651C4.34389 1.44434 1.25732 4.38149 1.16515 8.09681C1.07299 11.8121 4.01013 14.8987 7.72546 14.9909C10.9196 15.0701 13.6491 12.9102 14.4105 9.94181",
|
|
31
|
+
stroke: "#595959",
|
|
32
|
+
strokeWidth: 1.5,
|
|
33
|
+
strokeLinecap: "round"
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ (0, import_jsx_runtime$1.jsx)("path", {
|
|
36
|
+
d: "M13.75 15.7759L16.9274 19.2557",
|
|
37
|
+
stroke: "#595959",
|
|
38
|
+
strokeWidth: 1.5,
|
|
39
|
+
strokeLinecap: "round"
|
|
40
|
+
})
|
|
41
|
+
]
|
|
42
|
+
});
|
|
43
|
+
var MagnifyingGlassStarVariant_default = SvgMagnifyingGlassStarVariant;
|
|
16
44
|
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region ../icons/dist/IconClose.js
|
|
47
|
+
var import_jsx_runtime = require_jsx_runtime_Dg2m6dxZ.require_jsx_runtime();
|
|
48
|
+
const SvgIconClose = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
|
|
49
|
+
width: 24,
|
|
50
|
+
height: 24,
|
|
51
|
+
viewBox: "0 0 24 24",
|
|
52
|
+
fill: "none",
|
|
53
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
54
|
+
...props,
|
|
55
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", {
|
|
56
|
+
cx: 12,
|
|
57
|
+
cy: 12,
|
|
58
|
+
r: 12,
|
|
59
|
+
fill: "#FCFCF9"
|
|
60
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
61
|
+
d: "M16.167 6L11.5 10.667L6.833 6L5 7.833L9.667 12.5L5 17.167L6.833 19L11.5 14.333L16.167 19L18 17.167L13.333 12.5L18 7.833L16.167 6Z",
|
|
62
|
+
fill: "currentColor"
|
|
63
|
+
})]
|
|
64
|
+
});
|
|
65
|
+
var IconClose_default = SvgIconClose;
|
|
66
|
+
|
|
67
|
+
//#endregion
|
|
17
68
|
//#region src/components/SearchInput/searchInputVariants.ts
|
|
18
69
|
const searchInputVariantClasses = { standard: {
|
|
19
70
|
searchInputIconColor: "transparent",
|
|
20
71
|
searchInputBorderColor: "spiffy-tw-border-[--spiffy-colors-border-medium]",
|
|
21
72
|
searchInputCloseIconClasses: "[&>circle]:spiffy-tw-fill-[--spiffy-colors-text-secondary] [&>path]:spiffy-tw-fill-[#fff]",
|
|
22
73
|
searchInputActiveStarClasses: `first:[&>path]:spiffy-tw-stroke-[--spiffy-colors-accent-primary] first:[&>path]:spiffy-tw-fill-[--spiffy-colors-accent-primary]`,
|
|
23
|
-
autocompleteIconColor:
|
|
74
|
+
autocompleteIconColor: require_colorsConfig.colorVar(require_colorsConfig.ColorNames.BackgroundPrimary),
|
|
24
75
|
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
76
|
placeholderVariant: "h2"
|
|
26
77
|
} };
|
|
@@ -55,7 +106,7 @@ const SearchInput = react.default.forwardRef(({ searchInputVariant = "standard",
|
|
|
55
106
|
children: [
|
|
56
107
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
57
108
|
className: "spiffy-tw-absolute spiffy-tw-left-3 spiffy-tw-top-1/2 spiffy-tw--translate-y-1/2",
|
|
58
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
109
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MagnifyingGlassStarVariant_default, {
|
|
59
110
|
className: value.length > 0 ? magnifyingGlassClassesActive : magnifyingGlassClassesInactive,
|
|
60
111
|
stroke: iconColor,
|
|
61
112
|
strokeWidth: "1px"
|
|
@@ -87,7 +138,7 @@ const SearchInput = react.default.forwardRef(({ searchInputVariant = "standard",
|
|
|
87
138
|
className: "spiffy-tw-absolute spiffy-tw-right-5 spiffy-tw-top-1/2 spiffy-tw--translate-y-1/2 spiffy-tw-text-neutral-500 hover:spiffy-tw-text-neutral-700",
|
|
88
139
|
"aria-label": "Clear search input",
|
|
89
140
|
type: "button",
|
|
90
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
141
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconClose_default, { className: closeButtonIconClassName })
|
|
91
142
|
})
|
|
92
143
|
]
|
|
93
144
|
});
|