@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
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { a as SearchFilterSidebarVariant } from "../../index-DK0xpfMg.js";
|
|
2
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
3
|
+
import { SearchFilterDatum, SelectFilterItem } from "@envive-ai/react-hooks/types";
|
|
4
|
+
|
|
5
|
+
//#region src/components/SearchResultsFilterModal/SearchResultsFilterModal.d.ts
|
|
6
|
+
type SearchResultsFilterModalProps = {
|
|
7
|
+
productCount: number;
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
setIsOpen: (isOpen: boolean) => void;
|
|
10
|
+
searchFilters: SearchFilterDatum[];
|
|
11
|
+
searchFilterSidebarVariant: SearchFilterSidebarVariant;
|
|
12
|
+
onSelectFilterItem: SelectFilterItem;
|
|
13
|
+
onClearAllFilters: () => void;
|
|
14
|
+
filterButtonText: string;
|
|
15
|
+
};
|
|
16
|
+
declare const SearchResultsFilterModal: ({
|
|
17
|
+
productCount,
|
|
18
|
+
isOpen,
|
|
19
|
+
setIsOpen,
|
|
20
|
+
searchFilters,
|
|
21
|
+
searchFilterSidebarVariant,
|
|
22
|
+
onSelectFilterItem,
|
|
23
|
+
onClearAllFilters,
|
|
24
|
+
filterButtonText
|
|
25
|
+
}: SearchResultsFilterModalProps) => react_jsx_runtime14.JSX.Element;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { SearchResultsFilterModal, SearchResultsFilterModalProps };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { a as SearchFilterSidebarVariant } from "../../index-BiKhzraQ.cjs";
|
|
2
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
3
|
+
import { SearchFilterDatum, SelectFilterItem } from "@envive-ai/react-hooks/types";
|
|
4
|
+
|
|
5
|
+
//#region src/components/SearchResultsFilterModal/SearchResultsFilterModal.d.ts
|
|
6
|
+
type SearchResultsFilterModalProps = {
|
|
7
|
+
productCount: number;
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
setIsOpen: (isOpen: boolean) => void;
|
|
10
|
+
searchFilters: SearchFilterDatum[];
|
|
11
|
+
searchFilterSidebarVariant: SearchFilterSidebarVariant;
|
|
12
|
+
onSelectFilterItem: SelectFilterItem;
|
|
13
|
+
onClearAllFilters: () => void;
|
|
14
|
+
filterButtonText: string;
|
|
15
|
+
};
|
|
16
|
+
declare const SearchResultsFilterModal: ({
|
|
17
|
+
productCount,
|
|
18
|
+
isOpen,
|
|
19
|
+
setIsOpen,
|
|
20
|
+
searchFilters,
|
|
21
|
+
searchFilterSidebarVariant,
|
|
22
|
+
onSelectFilterItem,
|
|
23
|
+
onClearAllFilters,
|
|
24
|
+
filterButtonText
|
|
25
|
+
}: SearchResultsFilterModalProps) => react_jsx_runtime11.JSX.Element;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { SearchResultsFilterModal, SearchResultsFilterModalProps };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const require_chunk = require('../../chunk-CUT6urMc.cjs');
|
|
5
|
+
require('../../Typography-Ds4gfOJz.cjs');
|
|
6
|
+
require('../../jsx-runtime-Dg2m6dxZ-B-pkyyHT.cjs');
|
|
7
|
+
require('../../Accordion-DPUaEXiE.cjs');
|
|
8
|
+
require('../../AnimatedChevron-CPW5KPLr.cjs');
|
|
9
|
+
require('../../ButtonBase-C44g6llb.cjs');
|
|
10
|
+
require('../../ButtonBase-Cb6Iec6f.cjs');
|
|
11
|
+
require('../../ModalSheet-JZerJZ1T.cjs');
|
|
12
|
+
require('../../RadioButton-DpF1wymL.cjs');
|
|
13
|
+
require('../../RadioButtonGroup-ByzTXNAb.cjs');
|
|
14
|
+
const require_SearchFilter = require('../../SearchFilter-BRtCSuAn.cjs');
|
|
15
|
+
require('../../ToggleButton-Dxk3U1hR.cjs');
|
|
16
|
+
require('../../colorsConfig-Dp7w5LPb.cjs');
|
|
17
|
+
const require_searchFilterSidebarVariants = require('../../searchFilterSidebarVariants-CjyRGKK_.cjs');
|
|
18
|
+
require('../../SearchResultsFilterSidebar-BRFONIEq.cjs');
|
|
19
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
20
|
+
|
|
21
|
+
//#region src/components/SearchResultsFilterModal/SearchResultsFilterModal.tsx
|
|
22
|
+
const SearchResultsFilterModal = ({ productCount, isOpen, setIsOpen, searchFilters, searchFilterSidebarVariant, onSelectFilterItem, onClearAllFilters, filterButtonText }) => {
|
|
23
|
+
const { applyFiltersUnchangedClasses, applyFiltersChangedClasses, searchFilterHeaderClasses, radioButtonFillColor, radioButtonHoverColor, radioButtonUncheckedBorderColor, filterCloseIconVariant } = require_searchFilterSidebarVariants.searchFilterSidebarVariantClasses[searchFilterSidebarVariant];
|
|
24
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SearchFilter.SearchFilter, {
|
|
25
|
+
isOpen,
|
|
26
|
+
setIsOpen,
|
|
27
|
+
filters: searchFilters,
|
|
28
|
+
productCount,
|
|
29
|
+
selectFilterItem: onSelectFilterItem,
|
|
30
|
+
clearAllFilters: onClearAllFilters,
|
|
31
|
+
applyFiltersUnchangedClasses,
|
|
32
|
+
applyFiltersChangedClasses,
|
|
33
|
+
filterButtonText,
|
|
34
|
+
radioButtonFillColor,
|
|
35
|
+
radioButtonHoverColor,
|
|
36
|
+
radioButtonUncheckedBorderColor,
|
|
37
|
+
filterCloseIconVariant,
|
|
38
|
+
headerContent: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SearchFilter.SearchFilterHeader, {
|
|
39
|
+
closeModal: () => setIsOpen(false),
|
|
40
|
+
productCount,
|
|
41
|
+
headerClassName: searchFilterHeaderClasses,
|
|
42
|
+
filterCloseIconVariant
|
|
43
|
+
})
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
//#endregion
|
|
48
|
+
exports.SearchResultsFilterModal = SearchResultsFilterModal;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import "../../Typography-xehJH05l.js";
|
|
5
|
+
import "../../jsx-runtime-Dg2m6dxZ-CU_SzTu4.js";
|
|
6
|
+
import "../../Accordion-8zFBEEaN.js";
|
|
7
|
+
import "../../AnimatedChevron-DO_jcnJg.js";
|
|
8
|
+
import "../../ButtonBase-Cjo-fBg2.js";
|
|
9
|
+
import "../../ButtonBase-D2eXuapk.js";
|
|
10
|
+
import "../../ModalSheet-C5f5abw1.js";
|
|
11
|
+
import "../../RadioButton-DOc8g47U.js";
|
|
12
|
+
import "../../RadioButtonGroup-YQIxmR7j.js";
|
|
13
|
+
import { n as SearchFilter, o as SearchFilterHeader } from "../../SearchFilter-DvJx0b0W.js";
|
|
14
|
+
import "../../ToggleButton-D8--AKKK.js";
|
|
15
|
+
import "../../colorsConfig-CFI1KN8R.js";
|
|
16
|
+
import { t as searchFilterSidebarVariantClasses } from "../../searchFilterSidebarVariants-gkgkflXx.js";
|
|
17
|
+
import "../../SearchResultsFilterSidebar-DLzQoFGD.js";
|
|
18
|
+
import { jsx } from "react/jsx-runtime";
|
|
19
|
+
|
|
20
|
+
//#region src/components/SearchResultsFilterModal/SearchResultsFilterModal.tsx
|
|
21
|
+
const SearchResultsFilterModal = ({ productCount, isOpen, setIsOpen, searchFilters, searchFilterSidebarVariant, onSelectFilterItem, onClearAllFilters, filterButtonText }) => {
|
|
22
|
+
const { applyFiltersUnchangedClasses, applyFiltersChangedClasses, searchFilterHeaderClasses, radioButtonFillColor, radioButtonHoverColor, radioButtonUncheckedBorderColor, filterCloseIconVariant } = searchFilterSidebarVariantClasses[searchFilterSidebarVariant];
|
|
23
|
+
return /* @__PURE__ */ jsx(SearchFilter, {
|
|
24
|
+
isOpen,
|
|
25
|
+
setIsOpen,
|
|
26
|
+
filters: searchFilters,
|
|
27
|
+
productCount,
|
|
28
|
+
selectFilterItem: onSelectFilterItem,
|
|
29
|
+
clearAllFilters: onClearAllFilters,
|
|
30
|
+
applyFiltersUnchangedClasses,
|
|
31
|
+
applyFiltersChangedClasses,
|
|
32
|
+
filterButtonText,
|
|
33
|
+
radioButtonFillColor,
|
|
34
|
+
radioButtonHoverColor,
|
|
35
|
+
radioButtonUncheckedBorderColor,
|
|
36
|
+
filterCloseIconVariant,
|
|
37
|
+
headerContent: /* @__PURE__ */ jsx(SearchFilterHeader, {
|
|
38
|
+
closeModal: () => setIsOpen(false),
|
|
39
|
+
productCount,
|
|
40
|
+
headerClassName: searchFilterHeaderClasses,
|
|
41
|
+
filterCloseIconVariant
|
|
42
|
+
})
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
export { SearchResultsFilterModal };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as SearchFilterSidebarVariant, i as CloseIconVariant, n as SearchResultsFilterProps, r as searchFilterSidebarVariantClasses, t as SearchResultsFilter } from "../../index-DK0xpfMg.js";
|
|
2
|
+
export { CloseIconVariant, SearchFilterSidebarVariant, SearchResultsFilter, SearchResultsFilterProps, searchFilterSidebarVariantClasses };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as SearchFilterSidebarVariant, i as CloseIconVariant, n as SearchResultsFilterProps, r as searchFilterSidebarVariantClasses, t as SearchResultsFilter } from "../../index-BiKhzraQ.cjs";
|
|
2
|
+
export { CloseIconVariant, SearchFilterSidebarVariant, SearchResultsFilter, SearchResultsFilterProps, searchFilterSidebarVariantClasses };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
require('../../Typography-Ds4gfOJz.cjs');
|
|
2
|
+
require('../../jsx-runtime-Dg2m6dxZ-B-pkyyHT.cjs');
|
|
3
|
+
require('../../Accordion-DPUaEXiE.cjs');
|
|
4
|
+
require('../../AnimatedChevron-CPW5KPLr.cjs');
|
|
5
|
+
require('../../ButtonBase-C44g6llb.cjs');
|
|
6
|
+
require('../../ButtonBase-Cb6Iec6f.cjs');
|
|
7
|
+
require('../../ModalSheet-JZerJZ1T.cjs');
|
|
8
|
+
require('../../RadioButton-DpF1wymL.cjs');
|
|
9
|
+
require('../../RadioButtonGroup-ByzTXNAb.cjs');
|
|
10
|
+
require('../../SearchFilter-BRtCSuAn.cjs');
|
|
11
|
+
require('../../ToggleButton-Dxk3U1hR.cjs');
|
|
12
|
+
require('../../colorsConfig-Dp7w5LPb.cjs');
|
|
13
|
+
const require_searchFilterSidebarVariants = require('../../searchFilterSidebarVariants-CjyRGKK_.cjs');
|
|
14
|
+
const require_SearchResultsFilterSidebar = require('../../SearchResultsFilterSidebar-BRFONIEq.cjs');
|
|
15
|
+
|
|
16
|
+
exports.SearchResultsFilter = require_SearchResultsFilterSidebar.SearchResultsFilter;
|
|
17
|
+
exports.searchFilterSidebarVariantClasses = require_searchFilterSidebarVariants.searchFilterSidebarVariantClasses;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "../../Typography-xehJH05l.js";
|
|
2
|
+
import "../../jsx-runtime-Dg2m6dxZ-CU_SzTu4.js";
|
|
3
|
+
import "../../Accordion-8zFBEEaN.js";
|
|
4
|
+
import "../../AnimatedChevron-DO_jcnJg.js";
|
|
5
|
+
import "../../ButtonBase-Cjo-fBg2.js";
|
|
6
|
+
import "../../ButtonBase-D2eXuapk.js";
|
|
7
|
+
import "../../ModalSheet-C5f5abw1.js";
|
|
8
|
+
import "../../RadioButton-DOc8g47U.js";
|
|
9
|
+
import "../../RadioButtonGroup-YQIxmR7j.js";
|
|
10
|
+
import "../../SearchFilter-DvJx0b0W.js";
|
|
11
|
+
import "../../ToggleButton-D8--AKKK.js";
|
|
12
|
+
import "../../colorsConfig-CFI1KN8R.js";
|
|
13
|
+
import { t as searchFilterSidebarVariantClasses } from "../../searchFilterSidebarVariants-gkgkflXx.js";
|
|
14
|
+
import { t as SearchResultsFilter } from "../../SearchResultsFilterSidebar-DLzQoFGD.js";
|
|
15
|
+
|
|
16
|
+
export { SearchResultsFilter, searchFilterSidebarVariantClasses };
|
package/dist/{SearchResultsStates/index.d.ts → components/SearchResultsStates/index-Dugoegtn.d.ts}
RENAMED
|
@@ -1,20 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { d as ProductCardConfig, y as ProductGridVariant } from "../../index-BCBtAzCc.js";
|
|
2
|
+
import { a as SearchFilterSidebarVariant } from "../../index-DK0xpfMg.js";
|
|
3
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
4
|
+
import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
|
|
3
5
|
import { SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
|
|
6
|
+
import { SearchResponseProductAttributes } from "@envive-ai/react-hooks/application/models";
|
|
4
7
|
|
|
5
8
|
//#region src/components/SearchResultsStates/NoSearchResultsFound.d.ts
|
|
6
9
|
interface NoSearchResultsFoundProps {
|
|
7
10
|
containerPaddingClasses: string;
|
|
8
|
-
includeBottomMargin?: boolean;
|
|
9
11
|
noResultsFoundText?: string;
|
|
10
12
|
sparkleIconColor?: string;
|
|
13
|
+
recommendedProducts: SearchResponseProductAttributes['attributes'][];
|
|
14
|
+
searchText: string;
|
|
15
|
+
merchantShortName: string;
|
|
16
|
+
productGridVariant: ProductGridVariant;
|
|
11
17
|
}
|
|
12
18
|
declare const NoSearchResultsFound: ({
|
|
13
19
|
containerPaddingClasses,
|
|
14
|
-
includeBottomMargin,
|
|
15
20
|
noResultsFoundText,
|
|
16
|
-
sparkleIconColor
|
|
17
|
-
|
|
21
|
+
sparkleIconColor,
|
|
22
|
+
recommendedProducts,
|
|
23
|
+
searchText,
|
|
24
|
+
merchantShortName,
|
|
25
|
+
productGridVariant
|
|
26
|
+
}: NoSearchResultsFoundProps) => react_jsx_runtime7.JSX.Element;
|
|
18
27
|
//#endregion
|
|
19
28
|
//#region src/components/SearchResultsStates/SearchResultsGrid.d.ts
|
|
20
29
|
interface SearchResultsGridProps {
|
|
@@ -30,6 +39,7 @@ interface SearchResultsGridProps {
|
|
|
30
39
|
selectedFilterOptions: SelectedFilterOption[];
|
|
31
40
|
containerXPaddingClasses: string;
|
|
32
41
|
productGridClasses: string;
|
|
42
|
+
onProductClick?: () => void;
|
|
33
43
|
onRemoveFilter: (filter: SelectedFilterOption) => void;
|
|
34
44
|
onToggleDynamicFilter: ({
|
|
35
45
|
filter,
|
|
@@ -50,8 +60,9 @@ declare const SearchResultsGrid: ({
|
|
|
50
60
|
containerXPaddingClasses,
|
|
51
61
|
productGridClasses,
|
|
52
62
|
onRemoveFilter,
|
|
53
|
-
onToggleDynamicFilter
|
|
54
|
-
|
|
63
|
+
onToggleDynamicFilter,
|
|
64
|
+
onProductClick
|
|
65
|
+
}: SearchResultsGridProps) => react_jsx_runtime7.JSX.Element;
|
|
55
66
|
//#endregion
|
|
56
67
|
//#region src/components/SearchResultsStates/SearchResultsLoadingGrid.d.ts
|
|
57
68
|
declare const SearchResultsLoadingGrid: ({
|
|
@@ -62,6 +73,6 @@ declare const SearchResultsLoadingGrid: ({
|
|
|
62
73
|
productGridVariant: ProductGridVariant;
|
|
63
74
|
productGridClasses: string;
|
|
64
75
|
sparkleIconColor?: string;
|
|
65
|
-
}) =>
|
|
76
|
+
}) => react_jsx_runtime7.JSX.Element;
|
|
66
77
|
//#endregion
|
|
67
78
|
export { NoSearchResultsFound, SearchResultsGrid, SearchResultsLoadingGrid };
|
package/dist/{SearchResultsStates/index.d.cts → components/SearchResultsStates/index-RVgPTFiH.d.cts}
RENAMED
|
@@ -1,19 +1,28 @@
|
|
|
1
|
+
import { d as ProductCardConfig, y as ProductGridVariant } from "../../index-CzbumwVZ.cjs";
|
|
2
|
+
import { a as SearchFilterSidebarVariant } from "../../index-BiKhzraQ.cjs";
|
|
1
3
|
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
4
|
+
import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
|
|
3
5
|
import { SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
|
|
6
|
+
import { SearchResponseProductAttributes } from "@envive-ai/react-hooks/application/models";
|
|
4
7
|
|
|
5
8
|
//#region src/components/SearchResultsStates/NoSearchResultsFound.d.ts
|
|
6
9
|
interface NoSearchResultsFoundProps {
|
|
7
10
|
containerPaddingClasses: string;
|
|
8
|
-
includeBottomMargin?: boolean;
|
|
9
11
|
noResultsFoundText?: string;
|
|
10
12
|
sparkleIconColor?: string;
|
|
13
|
+
recommendedProducts: SearchResponseProductAttributes['attributes'][];
|
|
14
|
+
searchText: string;
|
|
15
|
+
merchantShortName: string;
|
|
16
|
+
productGridVariant: ProductGridVariant;
|
|
11
17
|
}
|
|
12
18
|
declare const NoSearchResultsFound: ({
|
|
13
19
|
containerPaddingClasses,
|
|
14
|
-
includeBottomMargin,
|
|
15
20
|
noResultsFoundText,
|
|
16
|
-
sparkleIconColor
|
|
21
|
+
sparkleIconColor,
|
|
22
|
+
recommendedProducts,
|
|
23
|
+
searchText,
|
|
24
|
+
merchantShortName,
|
|
25
|
+
productGridVariant
|
|
17
26
|
}: NoSearchResultsFoundProps) => react_jsx_runtime3.JSX.Element;
|
|
18
27
|
//#endregion
|
|
19
28
|
//#region src/components/SearchResultsStates/SearchResultsGrid.d.ts
|
|
@@ -30,6 +39,7 @@ interface SearchResultsGridProps {
|
|
|
30
39
|
selectedFilterOptions: SelectedFilterOption[];
|
|
31
40
|
containerXPaddingClasses: string;
|
|
32
41
|
productGridClasses: string;
|
|
42
|
+
onProductClick?: () => void;
|
|
33
43
|
onRemoveFilter: (filter: SelectedFilterOption) => void;
|
|
34
44
|
onToggleDynamicFilter: ({
|
|
35
45
|
filter,
|
|
@@ -50,7 +60,8 @@ declare const SearchResultsGrid: ({
|
|
|
50
60
|
containerXPaddingClasses,
|
|
51
61
|
productGridClasses,
|
|
52
62
|
onRemoveFilter,
|
|
53
|
-
onToggleDynamicFilter
|
|
63
|
+
onToggleDynamicFilter,
|
|
64
|
+
onProductClick
|
|
54
65
|
}: SearchResultsGridProps) => react_jsx_runtime3.JSX.Element;
|
|
55
66
|
//#endregion
|
|
56
67
|
//#region src/components/SearchResultsStates/SearchResultsLoadingGrid.d.ts
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
require('../../formatPrice-CyfkjZ3R.cjs');
|
|
2
|
+
require('../../Typography-Ds4gfOJz.cjs');
|
|
3
|
+
require('../../jsx-runtime-Dg2m6dxZ-B-pkyyHT.cjs');
|
|
4
|
+
require('../../DynamicFiltersScrollbar-IO886VXD.cjs');
|
|
5
|
+
require('../../ImageWithFallback-C-ZQn7tR.cjs');
|
|
6
|
+
require('../../ProductCard-C7rZyWpj.cjs');
|
|
7
|
+
require('../../Spinner-7HblFCja.cjs');
|
|
8
|
+
require('../../ProductGrid-0A8vml2y.cjs');
|
|
9
|
+
require('../../RecommendedProducts-qkPxXVJn.cjs');
|
|
10
|
+
require('../../colorsConfig-Dp7w5LPb.cjs');
|
|
11
|
+
const require_SearchResultsStates = require('../../SearchResultsStates-CQR5Il4l.cjs');
|
|
12
|
+
require('../../searchFilterSidebarVariants-CjyRGKK_.cjs');
|
|
13
|
+
require('../../FourPointStar-AQ9OSu0S.cjs');
|
|
14
|
+
require('../../SparkleAnimation-BikAiAmb.cjs');
|
|
15
|
+
|
|
16
|
+
exports.NoSearchResultsFound = require_SearchResultsStates.NoSearchResultsFound;
|
|
17
|
+
exports.SearchResultsGrid = require_SearchResultsStates.SearchResultsGrid;
|
|
18
|
+
exports.SearchResultsLoadingGrid = require_SearchResultsStates.SearchResultsLoadingGrid;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "../../formatPrice-DexQu2aZ.js";
|
|
2
|
+
import "../../Typography-xehJH05l.js";
|
|
3
|
+
import "../../jsx-runtime-Dg2m6dxZ-CU_SzTu4.js";
|
|
4
|
+
import "../../DynamicFiltersScrollbar-s5yfmMau.js";
|
|
5
|
+
import "../../ImageWithFallback-DjDNefaG.js";
|
|
6
|
+
import "../../ProductCard-GxpFxjh0.js";
|
|
7
|
+
import "../../Spinner-OFbXMms8.js";
|
|
8
|
+
import "../../ProductGrid-DAwc9dKV.js";
|
|
9
|
+
import "../../RecommendedProducts-C6dLpLPP.js";
|
|
10
|
+
import "../../colorsConfig-CFI1KN8R.js";
|
|
11
|
+
import { n as SearchResultsGrid, r as NoSearchResultsFound, t as SearchResultsLoadingGrid } from "../../SearchResultsStates-D7HfsLeZ.js";
|
|
12
|
+
import "../../searchFilterSidebarVariants-gkgkflXx.js";
|
|
13
|
+
import "../../FourPointStar-3DqnYmfN.js";
|
|
14
|
+
import "../../SparkleAnimation-szzXiTam.js";
|
|
15
|
+
|
|
16
|
+
export { NoSearchResultsFound, SearchResultsGrid, SearchResultsLoadingGrid };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
3
|
+
import { SearchInputVariant } from "@envive-ai/react-hooks/contexts/types";
|
|
4
|
+
|
|
5
|
+
//#region src/components/SearchResultsToolbar/SearchResultsToolbar.d.ts
|
|
6
|
+
interface SearchResultsToolbarProps {
|
|
7
|
+
searchInputVariant: SearchInputVariant;
|
|
8
|
+
searchBoxPlaceholder: string;
|
|
9
|
+
searchText: string;
|
|
10
|
+
focusedIndex: number;
|
|
11
|
+
focusedOptionId: string | undefined;
|
|
12
|
+
autocompleteResults: string[];
|
|
13
|
+
filterButtonText: string;
|
|
14
|
+
shouldShowAutocomplete: boolean;
|
|
15
|
+
onKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
16
|
+
onSearchInputChange: (value: string) => void;
|
|
17
|
+
onSubmitSearch: () => void;
|
|
18
|
+
onAutocompleteSelect: (suggestion: string, rankPosition?: number) => void;
|
|
19
|
+
onSearchInputFocus: () => void;
|
|
20
|
+
onSearchInputBlur: () => void;
|
|
21
|
+
setIsFilterOpen: (isOpen: boolean) => void;
|
|
22
|
+
containerXPaddingClasses: string;
|
|
23
|
+
toolbarRef: React.RefObject<HTMLDivElement> | null;
|
|
24
|
+
isVisible: boolean;
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
27
|
+
declare const SearchResultsToolbar: ({
|
|
28
|
+
searchInputVariant,
|
|
29
|
+
searchBoxPlaceholder,
|
|
30
|
+
searchText,
|
|
31
|
+
focusedIndex,
|
|
32
|
+
focusedOptionId,
|
|
33
|
+
autocompleteResults,
|
|
34
|
+
filterButtonText,
|
|
35
|
+
onKeyDown,
|
|
36
|
+
onSearchInputChange,
|
|
37
|
+
onSubmitSearch,
|
|
38
|
+
onAutocompleteSelect,
|
|
39
|
+
onSearchInputFocus,
|
|
40
|
+
onSearchInputBlur,
|
|
41
|
+
shouldShowAutocomplete,
|
|
42
|
+
setIsFilterOpen,
|
|
43
|
+
containerXPaddingClasses,
|
|
44
|
+
toolbarRef,
|
|
45
|
+
isVisible,
|
|
46
|
+
className
|
|
47
|
+
}: SearchResultsToolbarProps) => react_jsx_runtime9.JSX.Element;
|
|
48
|
+
//#endregion
|
|
49
|
+
export { SearchResultsToolbar };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { SearchInputVariant } from "@envive-ai/react-hooks/contexts/types";
|
|
4
|
+
|
|
5
|
+
//#region src/components/SearchResultsToolbar/SearchResultsToolbar.d.ts
|
|
6
|
+
interface SearchResultsToolbarProps {
|
|
7
|
+
searchInputVariant: SearchInputVariant;
|
|
8
|
+
searchBoxPlaceholder: string;
|
|
9
|
+
searchText: string;
|
|
10
|
+
focusedIndex: number;
|
|
11
|
+
focusedOptionId: string | undefined;
|
|
12
|
+
autocompleteResults: string[];
|
|
13
|
+
filterButtonText: string;
|
|
14
|
+
shouldShowAutocomplete: boolean;
|
|
15
|
+
onKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
16
|
+
onSearchInputChange: (value: string) => void;
|
|
17
|
+
onSubmitSearch: () => void;
|
|
18
|
+
onAutocompleteSelect: (suggestion: string, rankPosition?: number) => void;
|
|
19
|
+
onSearchInputFocus: () => void;
|
|
20
|
+
onSearchInputBlur: () => void;
|
|
21
|
+
setIsFilterOpen: (isOpen: boolean) => void;
|
|
22
|
+
containerXPaddingClasses: string;
|
|
23
|
+
toolbarRef: React.RefObject<HTMLDivElement> | null;
|
|
24
|
+
isVisible: boolean;
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
27
|
+
declare const SearchResultsToolbar: ({
|
|
28
|
+
searchInputVariant,
|
|
29
|
+
searchBoxPlaceholder,
|
|
30
|
+
searchText,
|
|
31
|
+
focusedIndex,
|
|
32
|
+
focusedOptionId,
|
|
33
|
+
autocompleteResults,
|
|
34
|
+
filterButtonText,
|
|
35
|
+
onKeyDown,
|
|
36
|
+
onSearchInputChange,
|
|
37
|
+
onSubmitSearch,
|
|
38
|
+
onAutocompleteSelect,
|
|
39
|
+
onSearchInputFocus,
|
|
40
|
+
onSearchInputBlur,
|
|
41
|
+
shouldShowAutocomplete,
|
|
42
|
+
setIsFilterOpen,
|
|
43
|
+
containerXPaddingClasses,
|
|
44
|
+
toolbarRef,
|
|
45
|
+
isVisible,
|
|
46
|
+
className
|
|
47
|
+
}: SearchResultsToolbarProps) => react_jsx_runtime14.JSX.Element;
|
|
48
|
+
//#endregion
|
|
49
|
+
export { SearchResultsToolbar };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const require_chunk = require('../../chunk-CUT6urMc.cjs');
|
|
5
|
+
require('../../Typography-Ds4gfOJz.cjs');
|
|
6
|
+
require('../../jsx-runtime-Dg2m6dxZ-B-pkyyHT.cjs');
|
|
7
|
+
require('../../ButtonBase-C44g6llb.cjs');
|
|
8
|
+
require('../../ButtonBase-Cb6Iec6f.cjs');
|
|
9
|
+
require('../../OutlinedStar-CC0V_jAK.cjs');
|
|
10
|
+
require('../../SearchAutocomplete-BdTWETDB.cjs');
|
|
11
|
+
require('../../SearchInput-CImlqrau.cjs');
|
|
12
|
+
require('../../TextInput-CaynCoDf.cjs');
|
|
13
|
+
require('../../colorsConfig-Dp7w5LPb.cjs');
|
|
14
|
+
const require_SearchInputForm = require('../../SearchInputForm-ZgNNEX6E.cjs');
|
|
15
|
+
const require_SearchResultsFilterButton = require('../../SearchResultsFilterButton-D929tRt9.cjs');
|
|
16
|
+
let react = require("react");
|
|
17
|
+
react = require_chunk.__toESM(react);
|
|
18
|
+
let classnames = require("classnames");
|
|
19
|
+
classnames = require_chunk.__toESM(classnames);
|
|
20
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
21
|
+
|
|
22
|
+
//#region src/components/SearchResultsToolbar/SearchResultsToolbar.tsx
|
|
23
|
+
const SearchResultsToolbar = ({ searchInputVariant, searchBoxPlaceholder, searchText, focusedIndex, focusedOptionId, autocompleteResults, filterButtonText, onKeyDown, onSearchInputChange, onSubmitSearch, onAutocompleteSelect, onSearchInputFocus, onSearchInputBlur, shouldShowAutocomplete, setIsFilterOpen, containerXPaddingClasses, toolbarRef, isVisible, className }) => {
|
|
24
|
+
const [hasZIndex, setHasZIndex] = react.default.useState(false);
|
|
25
|
+
react.default.useEffect(() => {
|
|
26
|
+
let timer;
|
|
27
|
+
if (isVisible) {
|
|
28
|
+
timer = setTimeout(() => {
|
|
29
|
+
setHasZIndex(true);
|
|
30
|
+
}, 300);
|
|
31
|
+
return () => clearTimeout(timer);
|
|
32
|
+
}
|
|
33
|
+
setHasZIndex(false);
|
|
34
|
+
return () => clearTimeout(timer);
|
|
35
|
+
}, [isVisible]);
|
|
36
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
37
|
+
className: (0, classnames.default)("spiffy-tw-bg-white", "spiffy-tw-w-full", className, {
|
|
38
|
+
"spiffy-tw-z-10": hasZIndex,
|
|
39
|
+
"spiffy-tw-translate-y-0": isVisible,
|
|
40
|
+
"-spiffy-tw-translate-y-full": !isVisible
|
|
41
|
+
}),
|
|
42
|
+
ref: toolbarRef,
|
|
43
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
44
|
+
className: (0, classnames.default)("spiffy-tw-flex", containerXPaddingClasses),
|
|
45
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SearchInputForm.SearchInputForm, {
|
|
46
|
+
searchInputVariant,
|
|
47
|
+
searchText,
|
|
48
|
+
focusedIndex,
|
|
49
|
+
autocompleteResults,
|
|
50
|
+
searchBoxPlaceholder,
|
|
51
|
+
focusedOptionId,
|
|
52
|
+
onKeyDown,
|
|
53
|
+
onSearchInputChange,
|
|
54
|
+
onSearchInputFocus,
|
|
55
|
+
onSearchInputBlur,
|
|
56
|
+
shouldShowAutocomplete,
|
|
57
|
+
onSearchSubmit: onSubmitSearch,
|
|
58
|
+
onAutocompleteSelect
|
|
59
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SearchResultsFilterButton.SearchResultsFilterButton, {
|
|
60
|
+
setIsOpen: setIsFilterOpen,
|
|
61
|
+
filterButtonText
|
|
62
|
+
})]
|
|
63
|
+
})
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
//#endregion
|
|
68
|
+
exports.SearchResultsToolbar = SearchResultsToolbar;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import "../../Typography-xehJH05l.js";
|
|
5
|
+
import "../../jsx-runtime-Dg2m6dxZ-CU_SzTu4.js";
|
|
6
|
+
import "../../ButtonBase-Cjo-fBg2.js";
|
|
7
|
+
import "../../ButtonBase-D2eXuapk.js";
|
|
8
|
+
import "../../OutlinedStar-WWs3gRwt.js";
|
|
9
|
+
import "../../SearchAutocomplete-DNe193EV.js";
|
|
10
|
+
import "../../SearchInput-kLhxkpgq.js";
|
|
11
|
+
import "../../TextInput-CsdOvLBQ.js";
|
|
12
|
+
import "../../colorsConfig-CFI1KN8R.js";
|
|
13
|
+
import { t as SearchInputForm } from "../../SearchInputForm-CFm_hUvX.js";
|
|
14
|
+
import { t as SearchResultsFilterButton } from "../../SearchResultsFilterButton-Dk7u7rgn.js";
|
|
15
|
+
import React from "react";
|
|
16
|
+
import classNames from "classnames";
|
|
17
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
+
|
|
19
|
+
//#region src/components/SearchResultsToolbar/SearchResultsToolbar.tsx
|
|
20
|
+
const SearchResultsToolbar = ({ searchInputVariant, searchBoxPlaceholder, searchText, focusedIndex, focusedOptionId, autocompleteResults, filterButtonText, onKeyDown, onSearchInputChange, onSubmitSearch, onAutocompleteSelect, onSearchInputFocus, onSearchInputBlur, shouldShowAutocomplete, setIsFilterOpen, containerXPaddingClasses, toolbarRef, isVisible, className }) => {
|
|
21
|
+
const [hasZIndex, setHasZIndex] = React.useState(false);
|
|
22
|
+
React.useEffect(() => {
|
|
23
|
+
let timer;
|
|
24
|
+
if (isVisible) {
|
|
25
|
+
timer = setTimeout(() => {
|
|
26
|
+
setHasZIndex(true);
|
|
27
|
+
}, 300);
|
|
28
|
+
return () => clearTimeout(timer);
|
|
29
|
+
}
|
|
30
|
+
setHasZIndex(false);
|
|
31
|
+
return () => clearTimeout(timer);
|
|
32
|
+
}, [isVisible]);
|
|
33
|
+
return /* @__PURE__ */ jsx("div", {
|
|
34
|
+
className: classNames("spiffy-tw-bg-white", "spiffy-tw-w-full", className, {
|
|
35
|
+
"spiffy-tw-z-10": hasZIndex,
|
|
36
|
+
"spiffy-tw-translate-y-0": isVisible,
|
|
37
|
+
"-spiffy-tw-translate-y-full": !isVisible
|
|
38
|
+
}),
|
|
39
|
+
ref: toolbarRef,
|
|
40
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
41
|
+
className: classNames("spiffy-tw-flex", containerXPaddingClasses),
|
|
42
|
+
children: [/* @__PURE__ */ jsx(SearchInputForm, {
|
|
43
|
+
searchInputVariant,
|
|
44
|
+
searchText,
|
|
45
|
+
focusedIndex,
|
|
46
|
+
autocompleteResults,
|
|
47
|
+
searchBoxPlaceholder,
|
|
48
|
+
focusedOptionId,
|
|
49
|
+
onKeyDown,
|
|
50
|
+
onSearchInputChange,
|
|
51
|
+
onSearchInputFocus,
|
|
52
|
+
onSearchInputBlur,
|
|
53
|
+
shouldShowAutocomplete,
|
|
54
|
+
onSearchSubmit: onSubmitSearch,
|
|
55
|
+
onAutocompleteSelect
|
|
56
|
+
}), /* @__PURE__ */ jsx(SearchResultsFilterButton, {
|
|
57
|
+
setIsOpen: setIsFilterOpen,
|
|
58
|
+
filterButtonText
|
|
59
|
+
})]
|
|
60
|
+
})
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
//#endregion
|
|
65
|
+
export { SearchResultsToolbar };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as react_jsx_runtime26 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/SparkleAnimation/SparkleAnimation.d.ts
|
|
4
|
+
interface SparkleAnimationProps {
|
|
5
|
+
color: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
animate?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const SparkleAnimation: ({
|
|
10
|
+
color,
|
|
11
|
+
className,
|
|
12
|
+
animate
|
|
13
|
+
}: SparkleAnimationProps) => react_jsx_runtime26.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/SparkleAnimation/types.d.ts
|
|
16
|
+
declare enum SparkleAnimationOverride {
|
|
17
|
+
CONTAINER = "spiffy-sparkle-animation-container",
|
|
18
|
+
STAR_ONE_CONTAINER = "spiffy-sparkle-animation-star-one-container",
|
|
19
|
+
STAR_TWO_CONTAINER = "spiffy-sparkle-animation-star-two-container",
|
|
20
|
+
STAR_THREE_CONTAINER = "spiffy-sparkle-animation-star-three-container",
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { SparkleAnimation, SparkleAnimationOverride };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as react_jsx_runtime31 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/SparkleAnimation/SparkleAnimation.d.ts
|
|
4
|
+
interface SparkleAnimationProps {
|
|
5
|
+
color: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
animate?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const SparkleAnimation: ({
|
|
10
|
+
color,
|
|
11
|
+
className,
|
|
12
|
+
animate
|
|
13
|
+
}: SparkleAnimationProps) => react_jsx_runtime31.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/SparkleAnimation/types.d.ts
|
|
16
|
+
declare enum SparkleAnimationOverride {
|
|
17
|
+
CONTAINER = "spiffy-sparkle-animation-container",
|
|
18
|
+
STAR_ONE_CONTAINER = "spiffy-sparkle-animation-star-one-container",
|
|
19
|
+
STAR_TWO_CONTAINER = "spiffy-sparkle-animation-star-two-container",
|
|
20
|
+
STAR_THREE_CONTAINER = "spiffy-sparkle-animation-star-three-container",
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { SparkleAnimation, SparkleAnimationOverride };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
require('../../jsx-runtime-Dg2m6dxZ-B-pkyyHT.cjs');
|
|
2
|
+
require('../../FourPointStar-AQ9OSu0S.cjs');
|
|
3
|
+
const require_SparkleAnimation = require('../../SparkleAnimation-BikAiAmb.cjs');
|
|
4
|
+
|
|
5
|
+
exports.SparkleAnimation = require_SparkleAnimation.SparkleAnimation;
|
|
6
|
+
exports.SparkleAnimationOverride = require_SparkleAnimation.SparkleAnimationOverride;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/Spinner/Spinner.d.ts
|
|
4
4
|
type SpinnerProps = {
|
|
@@ -6,6 +6,6 @@ type SpinnerProps = {
|
|
|
6
6
|
};
|
|
7
7
|
declare const Spinner: ({
|
|
8
8
|
className
|
|
9
|
-
}: SpinnerProps) =>
|
|
9
|
+
}: SpinnerProps) => react_jsx_runtime19.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Spinner };
|