@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
package/dist/{searchFilterSidebarVariants-BQ7OC862.cjs → searchFilterSidebarVariants-CjyRGKK_.cjs}
RENAMED
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_colorVar = require('./colorVar-B5CLhSof.cjs');
|
|
3
|
-
let __envive_ai_types = require("@envive-ai/types");
|
|
4
|
-
__envive_ai_types = require_chunk.__toESM(__envive_ai_types);
|
|
1
|
+
const require_colorsConfig = require('./colorsConfig-Dp7w5LPb.cjs');
|
|
5
2
|
|
|
6
3
|
//#region src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts
|
|
7
4
|
const searchFilterSidebarVariantClasses = {
|
|
8
5
|
darkButton: {
|
|
9
|
-
radioButtonFillColor:
|
|
10
|
-
radioButtonHoverColor:
|
|
11
|
-
radioButtonUncheckedBorderColor:
|
|
6
|
+
radioButtonFillColor: require_colorsConfig.colorVar(require_colorsConfig.ColorNames.BackgroundDark),
|
|
7
|
+
radioButtonHoverColor: require_colorsConfig.colorVar(require_colorsConfig.ColorNames.BackgroundSecondaryDark),
|
|
8
|
+
radioButtonUncheckedBorderColor: require_colorsConfig.colorVar(require_colorsConfig.ColorNames.BorderMedium),
|
|
12
9
|
searchFilterHeaderClasses: "spiffy-tw-text-[--spiffy-colors-text-light]",
|
|
13
10
|
filterDefaultClasses: "spiffy-tw-border-[--spiffy-colors-border-medium] spiffy-tw-bg-[--spiffy-colors-background-light] spiffy-tw-text-[--spiffy-colors-text-secondary]",
|
|
14
11
|
filterHoverClasses: "hover:spiffy-tw-border-[--spiffy-colors-background-secondary-dark] hover:spiffy-tw-bg-[--spiffy-colors-background-secondary-dark] hover:spiffy-tw-text-[--spiffy-colors-text-primary]",
|
|
@@ -19,9 +16,9 @@ const searchFilterSidebarVariantClasses = {
|
|
|
19
16
|
filterCloseIconVariant: "light"
|
|
20
17
|
},
|
|
21
18
|
lightButton: {
|
|
22
|
-
radioButtonFillColor:
|
|
23
|
-
radioButtonHoverColor:
|
|
24
|
-
radioButtonUncheckedBorderColor:
|
|
19
|
+
radioButtonFillColor: require_colorsConfig.colorVar(require_colorsConfig.ColorNames.BackgroundDark),
|
|
20
|
+
radioButtonHoverColor: require_colorsConfig.colorVar(require_colorsConfig.ColorNames.BackgroundSecondaryDark),
|
|
21
|
+
radioButtonUncheckedBorderColor: require_colorsConfig.colorVar(require_colorsConfig.ColorNames.BorderMedium),
|
|
25
22
|
searchFilterHeaderClasses: "spiffy-tw-text-[--spiffy-colors-text-primary]",
|
|
26
23
|
filterDefaultClasses: "spiffy-tw-border-[--spiffy-colors-border-medium] spiffy-tw-bg-[--spiffy-colors-background-light] spiffy-tw-text-[--spiffy-colors-text-secondary]",
|
|
27
24
|
filterHoverClasses: "hover:spiffy-tw-border-[--spiffy-colors-background-secondary-dark] hover:spiffy-tw-bg-[--spiffy-colors-background-secondary-dark] hover:spiffy-tw-text-[--spiffy-colors-text-primary]",
|
package/dist/{searchFilterSidebarVariants-C_rWIcxf.js → searchFilterSidebarVariants-gkgkflXx.js}
RENAMED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { colorVar } from "./
|
|
2
|
-
import { ColorNames } from "@envive-ai/types";
|
|
1
|
+
import { n as colorVar, t as ColorNames } from "./colorsConfig-CFI1KN8R.js";
|
|
3
2
|
|
|
4
3
|
//#region src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts
|
|
5
4
|
const searchFilterSidebarVariantClasses = {
|
|
@@ -32,4 +31,4 @@ const searchFilterSidebarVariantClasses = {
|
|
|
32
31
|
};
|
|
33
32
|
|
|
34
33
|
//#endregion
|
|
35
|
-
export { searchFilterSidebarVariantClasses };
|
|
34
|
+
export { searchFilterSidebarVariantClasses as t };
|
package/dist/{typographyVariantClasses-BFRoEloZ.d.cts → typographyVariantClasses-CoRhazCU.d.cts}
RENAMED
|
@@ -116,4 +116,4 @@ declare const TypographyVariantMap: {
|
|
|
116
116
|
};
|
|
117
117
|
declare const getVariantPlaceholderClassNames: (classes: Record<string, boolean>) => Record<string, boolean>;
|
|
118
118
|
//#endregion
|
|
119
|
-
export {
|
|
119
|
+
export { getVariantPlaceholderClassNames as i, TypographyDomVariantMap as n, TypographyVariantMap as r, ElementTypes as t };
|
package/dist/{typographyVariantClasses-D7h3ACAj.d.ts → typographyVariantClasses-_oNpv-aN.d.ts}
RENAMED
|
@@ -116,4 +116,4 @@ declare const TypographyVariantMap: {
|
|
|
116
116
|
};
|
|
117
117
|
declare const getVariantPlaceholderClassNames: (classes: Record<string, boolean>) => Record<string, boolean>;
|
|
118
118
|
//#endregion
|
|
119
|
-
export {
|
|
119
|
+
export { getVariantPlaceholderClassNames as i, TypographyDomVariantMap as n, TypographyVariantMap as r, ElementTypes as t };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as react0 from "react";
|
|
2
|
+
import { ColorNames } from "@envive-ai/react-hooks/contexts/types";
|
|
3
|
+
|
|
4
|
+
//#region src/util/formatPrice.d.ts
|
|
5
|
+
declare const formatPrice: (price?: number, currency?: string) => string;
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/util/useScrollDirection.d.ts
|
|
8
|
+
type ScrollDirection = 'up' | 'down';
|
|
9
|
+
declare const useScrollDirection: (scrollContainerRef?: React.RefObject<HTMLElement>) => ScrollDirection;
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/util/useStickyVisibility.d.ts
|
|
12
|
+
declare const useStickyVisibility: () => {
|
|
13
|
+
toolbarRef: react0.RefObject<HTMLDivElement>;
|
|
14
|
+
isVisible: boolean;
|
|
15
|
+
toolbarHeight: number;
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/util/colorVar.d.ts
|
|
19
|
+
declare const colorVar: (color: ColorNames) => string;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { ScrollDirection, colorVar, formatPrice, useScrollDirection, useStickyVisibility };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as react0 from "react";
|
|
2
|
+
import { ColorNames } from "@envive-ai/react-hooks/contexts/types";
|
|
3
|
+
|
|
4
|
+
//#region src/util/formatPrice.d.ts
|
|
5
|
+
declare const formatPrice: (price?: number, currency?: string) => string;
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/util/useScrollDirection.d.ts
|
|
8
|
+
type ScrollDirection = 'up' | 'down';
|
|
9
|
+
declare const useScrollDirection: (scrollContainerRef?: React.RefObject<HTMLElement>) => ScrollDirection;
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/util/useStickyVisibility.d.ts
|
|
12
|
+
declare const useStickyVisibility: () => {
|
|
13
|
+
toolbarRef: react0.RefObject<HTMLDivElement>;
|
|
14
|
+
isVisible: boolean;
|
|
15
|
+
toolbarHeight: number;
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/util/colorVar.d.ts
|
|
19
|
+
declare const colorVar: (color: ColorNames) => string;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { ScrollDirection, colorVar, formatPrice, useScrollDirection, useStickyVisibility };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
const require_chunk = require('../chunk-CUT6urMc.cjs');
|
|
2
|
+
const require_formatPrice = require('../formatPrice-CyfkjZ3R.cjs');
|
|
3
|
+
let react = require("react");
|
|
4
|
+
|
|
5
|
+
//#region src/util/useScrollDirection.ts
|
|
6
|
+
const useScrollDirection = (scrollContainerRef) => {
|
|
7
|
+
const [scrollDirection, setScrollDirection] = (0, react.useState)(null);
|
|
8
|
+
const touchStartY = (0, react.useRef)(0);
|
|
9
|
+
(0, react.useEffect)(() => {
|
|
10
|
+
const container = scrollContainerRef?.current || window;
|
|
11
|
+
const touchTarget = scrollContainerRef?.current || document;
|
|
12
|
+
const handleWheel = (e) => {
|
|
13
|
+
if (e.deltaY > 0) setScrollDirection("down");
|
|
14
|
+
else setScrollDirection("up");
|
|
15
|
+
};
|
|
16
|
+
const handleTouchStart = (e) => {
|
|
17
|
+
touchStartY.current = e.touches[0].clientY;
|
|
18
|
+
};
|
|
19
|
+
const handleTouchMove = (e) => {
|
|
20
|
+
const currentTouchY = e.touches[0].clientY;
|
|
21
|
+
const deltaY = touchStartY.current - currentTouchY;
|
|
22
|
+
if (Math.abs(deltaY) < 10) return;
|
|
23
|
+
if (deltaY > 0) setScrollDirection("down");
|
|
24
|
+
else setScrollDirection("up");
|
|
25
|
+
touchStartY.current = currentTouchY;
|
|
26
|
+
};
|
|
27
|
+
container.addEventListener("wheel", handleWheel, { passive: true });
|
|
28
|
+
touchTarget.addEventListener("touchstart", handleTouchStart, { passive: true });
|
|
29
|
+
touchTarget.addEventListener("touchmove", handleTouchMove, { passive: true });
|
|
30
|
+
return () => {
|
|
31
|
+
container.removeEventListener("wheel", handleWheel);
|
|
32
|
+
touchTarget.removeEventListener("touchstart", handleTouchStart);
|
|
33
|
+
touchTarget.removeEventListener("touchmove", handleTouchMove);
|
|
34
|
+
};
|
|
35
|
+
}, [scrollContainerRef]);
|
|
36
|
+
return scrollDirection;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/util/useStickyVisibility.ts
|
|
41
|
+
const useStickyVisibility = () => {
|
|
42
|
+
const [isVisible, setIsVisible] = (0, react.useState)(true);
|
|
43
|
+
const toolbarRef = (0, react.useRef)(null);
|
|
44
|
+
const [toolbarHeight, setToolbarHeight] = (0, react.useState)(0);
|
|
45
|
+
const [scrollY, setScrollY] = (0, react.useState)(0);
|
|
46
|
+
const scrollDirection = useScrollDirection();
|
|
47
|
+
(0, react.useEffect)(() => {
|
|
48
|
+
const handleScroll = () => {
|
|
49
|
+
setScrollY(window.scrollY);
|
|
50
|
+
};
|
|
51
|
+
window.addEventListener("scroll", handleScroll, { passive: true });
|
|
52
|
+
return () => window.removeEventListener("scroll", handleScroll);
|
|
53
|
+
}, []);
|
|
54
|
+
(0, react.useEffect)(() => {
|
|
55
|
+
if (toolbarRef.current) setToolbarHeight(toolbarRef.current.offsetHeight);
|
|
56
|
+
}, []);
|
|
57
|
+
(0, react.useEffect)(() => {
|
|
58
|
+
if (scrollDirection === "down" && scrollY > toolbarHeight && toolbarHeight > 0) setIsVisible(false);
|
|
59
|
+
else setIsVisible(true);
|
|
60
|
+
}, [
|
|
61
|
+
scrollDirection,
|
|
62
|
+
toolbarHeight,
|
|
63
|
+
scrollY
|
|
64
|
+
]);
|
|
65
|
+
return {
|
|
66
|
+
toolbarRef,
|
|
67
|
+
isVisible,
|
|
68
|
+
toolbarHeight
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/util/colorVar.ts
|
|
74
|
+
const colorVar = (color) => `var(--spiffy-colors-${color})`;
|
|
75
|
+
|
|
76
|
+
//#endregion
|
|
77
|
+
exports.colorVar = colorVar;
|
|
78
|
+
exports.formatPrice = require_formatPrice.formatPrice;
|
|
79
|
+
exports.useScrollDirection = useScrollDirection;
|
|
80
|
+
exports.useStickyVisibility = useStickyVisibility;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { t as formatPrice } from "../formatPrice-DexQu2aZ.js";
|
|
2
|
+
import { useEffect, useRef, useState } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/util/useScrollDirection.ts
|
|
5
|
+
const useScrollDirection = (scrollContainerRef) => {
|
|
6
|
+
const [scrollDirection, setScrollDirection] = useState(null);
|
|
7
|
+
const touchStartY = useRef(0);
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
const container = scrollContainerRef?.current || window;
|
|
10
|
+
const touchTarget = scrollContainerRef?.current || document;
|
|
11
|
+
const handleWheel = (e) => {
|
|
12
|
+
if (e.deltaY > 0) setScrollDirection("down");
|
|
13
|
+
else setScrollDirection("up");
|
|
14
|
+
};
|
|
15
|
+
const handleTouchStart = (e) => {
|
|
16
|
+
touchStartY.current = e.touches[0].clientY;
|
|
17
|
+
};
|
|
18
|
+
const handleTouchMove = (e) => {
|
|
19
|
+
const currentTouchY = e.touches[0].clientY;
|
|
20
|
+
const deltaY = touchStartY.current - currentTouchY;
|
|
21
|
+
if (Math.abs(deltaY) < 10) return;
|
|
22
|
+
if (deltaY > 0) setScrollDirection("down");
|
|
23
|
+
else setScrollDirection("up");
|
|
24
|
+
touchStartY.current = currentTouchY;
|
|
25
|
+
};
|
|
26
|
+
container.addEventListener("wheel", handleWheel, { passive: true });
|
|
27
|
+
touchTarget.addEventListener("touchstart", handleTouchStart, { passive: true });
|
|
28
|
+
touchTarget.addEventListener("touchmove", handleTouchMove, { passive: true });
|
|
29
|
+
return () => {
|
|
30
|
+
container.removeEventListener("wheel", handleWheel);
|
|
31
|
+
touchTarget.removeEventListener("touchstart", handleTouchStart);
|
|
32
|
+
touchTarget.removeEventListener("touchmove", handleTouchMove);
|
|
33
|
+
};
|
|
34
|
+
}, [scrollContainerRef]);
|
|
35
|
+
return scrollDirection;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/util/useStickyVisibility.ts
|
|
40
|
+
const useStickyVisibility = () => {
|
|
41
|
+
const [isVisible, setIsVisible] = useState(true);
|
|
42
|
+
const toolbarRef = useRef(null);
|
|
43
|
+
const [toolbarHeight, setToolbarHeight] = useState(0);
|
|
44
|
+
const [scrollY, setScrollY] = useState(0);
|
|
45
|
+
const scrollDirection = useScrollDirection();
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
const handleScroll = () => {
|
|
48
|
+
setScrollY(window.scrollY);
|
|
49
|
+
};
|
|
50
|
+
window.addEventListener("scroll", handleScroll, { passive: true });
|
|
51
|
+
return () => window.removeEventListener("scroll", handleScroll);
|
|
52
|
+
}, []);
|
|
53
|
+
useEffect(() => {
|
|
54
|
+
if (toolbarRef.current) setToolbarHeight(toolbarRef.current.offsetHeight);
|
|
55
|
+
}, []);
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
if (scrollDirection === "down" && scrollY > toolbarHeight && toolbarHeight > 0) setIsVisible(false);
|
|
58
|
+
else setIsVisible(true);
|
|
59
|
+
}, [
|
|
60
|
+
scrollDirection,
|
|
61
|
+
toolbarHeight,
|
|
62
|
+
scrollY
|
|
63
|
+
]);
|
|
64
|
+
return {
|
|
65
|
+
toolbarRef,
|
|
66
|
+
isVisible,
|
|
67
|
+
toolbarHeight
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/util/colorVar.ts
|
|
73
|
+
const colorVar = (color) => `var(--spiffy-colors-${color})`;
|
|
74
|
+
|
|
75
|
+
//#endregion
|
|
76
|
+
export { colorVar, formatPrice, useScrollDirection, useStickyVisibility };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envive-ai/react-toolkit",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.13-arthur-1",
|
|
4
4
|
"description": "React component library for Envive services.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -24,12 +24,14 @@
|
|
|
24
24
|
"build": "tsdown",
|
|
25
25
|
"build:watch": "tsdown --watch",
|
|
26
26
|
"prepublish": "npm run build",
|
|
27
|
+
"storybook": "tsx ./.storybook/getMerchants.ts && storybook dev -p 6006",
|
|
28
|
+
"storybook:build": "npm run get-merchants && storybook build",
|
|
29
|
+
"storybook:get-merchants": "tsx ./.storybook/getMerchants.ts",
|
|
27
30
|
"typecheck": "tsc",
|
|
28
31
|
"test": "vitest"
|
|
29
32
|
},
|
|
30
33
|
"dependencies": {
|
|
31
|
-
"@envive-ai/react-hooks": "0.2.
|
|
32
|
-
"@envive-ai/types": "^0.2.1",
|
|
34
|
+
"@envive-ai/react-hooks": "0.2.8",
|
|
33
35
|
"@tailwindcss/typography": "^0.5.15",
|
|
34
36
|
"classnames": "^2.5.1",
|
|
35
37
|
"react-icons": "^5.0.1",
|
|
@@ -41,114 +43,138 @@
|
|
|
41
43
|
"react-dom": "^18.3.1"
|
|
42
44
|
},
|
|
43
45
|
"devDependencies": {
|
|
46
|
+
"@chromatic-com/storybook": "^4.1.1",
|
|
47
|
+
"@spiffy-ai/commerce-api-client": "^1.1.0-SNAPSHOT.202510160819",
|
|
48
|
+
"@storybook/react-vite": "^9.1.4",
|
|
44
49
|
"@types/node": "^24.3.2",
|
|
45
50
|
"@types/react": "^19.1.12",
|
|
46
51
|
"postcss": "^8.5.6",
|
|
47
52
|
"tailwindcss": "^3.4.17",
|
|
48
53
|
"tsdown": "^0.14.2",
|
|
54
|
+
"tsx": "^4.20.6",
|
|
49
55
|
"typescript": "^5.4.3",
|
|
50
56
|
"vitest": "^3.2.4"
|
|
51
57
|
},
|
|
52
58
|
"exports": {
|
|
53
59
|
"./Accordion": {
|
|
54
|
-
"import": "./dist/Accordion/index.js",
|
|
55
|
-
"require": "./dist/Accordion/index.cjs"
|
|
60
|
+
"import": "./dist/components/Accordion/index.js",
|
|
61
|
+
"require": "./dist/components/Accordion/index.cjs"
|
|
56
62
|
},
|
|
57
63
|
"./AnimatedChevron": {
|
|
58
|
-
"import": "./dist/AnimatedChevron/index.js",
|
|
59
|
-
"require": "./dist/AnimatedChevron/index.cjs"
|
|
64
|
+
"import": "./dist/components/AnimatedChevron/index.js",
|
|
65
|
+
"require": "./dist/components/AnimatedChevron/index.cjs"
|
|
60
66
|
},
|
|
61
67
|
"./AppliedFiltersScrollbar": {
|
|
62
|
-
"import": "./dist/AppliedFiltersScrollbar/index.js",
|
|
63
|
-
"require": "./dist/AppliedFiltersScrollbar/index.cjs"
|
|
68
|
+
"import": "./dist/components/AppliedFiltersScrollbar/index.js",
|
|
69
|
+
"require": "./dist/components/AppliedFiltersScrollbar/index.cjs"
|
|
64
70
|
},
|
|
65
71
|
"./ButtonBase": {
|
|
66
|
-
"import": "./dist/ButtonBase/index.js",
|
|
67
|
-
"require": "./dist/ButtonBase/index.cjs"
|
|
72
|
+
"import": "./dist/components/ButtonBase/index.js",
|
|
73
|
+
"require": "./dist/components/ButtonBase/index.cjs"
|
|
68
74
|
},
|
|
69
75
|
"./DynamicFiltersScrollbar": {
|
|
70
|
-
"import": "./dist/DynamicFiltersScrollbar/index.js",
|
|
71
|
-
"require": "./dist/DynamicFiltersScrollbar/index.cjs"
|
|
76
|
+
"import": "./dist/components/DynamicFiltersScrollbar/index.js",
|
|
77
|
+
"require": "./dist/components/DynamicFiltersScrollbar/index.cjs"
|
|
72
78
|
},
|
|
73
79
|
"./FilterScrollbar": {
|
|
74
|
-
"import": "./dist/FilterScrollbar/index.js",
|
|
75
|
-
"require": "./dist/FilterScrollbar/index.cjs"
|
|
80
|
+
"import": "./dist/components/FilterScrollbar/index.js",
|
|
81
|
+
"require": "./dist/components/FilterScrollbar/index.cjs"
|
|
76
82
|
},
|
|
77
83
|
"./ImageWithFallback": {
|
|
78
|
-
"import": "./dist/ImageWithFallback/index.js",
|
|
79
|
-
"require": "./dist/ImageWithFallback/index.cjs"
|
|
84
|
+
"import": "./dist/components/ImageWithFallback/index.js",
|
|
85
|
+
"require": "./dist/components/ImageWithFallback/index.cjs"
|
|
80
86
|
},
|
|
81
87
|
"./ModalSheet": {
|
|
82
|
-
"import": "./dist/ModalSheet/index.js",
|
|
83
|
-
"require": "./dist/ModalSheet/index.cjs"
|
|
88
|
+
"import": "./dist/components/ModalSheet/index.js",
|
|
89
|
+
"require": "./dist/components/ModalSheet/index.cjs"
|
|
84
90
|
},
|
|
85
91
|
"./ProductCard": {
|
|
86
|
-
"import": "./dist/ProductCard/index.js",
|
|
87
|
-
"require": "./dist/ProductCard/index.cjs"
|
|
92
|
+
"import": "./dist/components/ProductCard/index.js",
|
|
93
|
+
"require": "./dist/components/ProductCard/index.cjs"
|
|
88
94
|
},
|
|
89
95
|
"./ProductGrid": {
|
|
90
|
-
"import": "./dist/ProductGrid/index.js",
|
|
91
|
-
"require": "./dist/ProductGrid/index.cjs"
|
|
96
|
+
"import": "./dist/components/ProductGrid/index.js",
|
|
97
|
+
"require": "./dist/components/ProductGrid/index.cjs"
|
|
92
98
|
},
|
|
93
99
|
"./RadioButton": {
|
|
94
|
-
"import": "./dist/RadioButton/index.js",
|
|
95
|
-
"require": "./dist/RadioButton/index.cjs"
|
|
100
|
+
"import": "./dist/components/RadioButton/index.js",
|
|
101
|
+
"require": "./dist/components/RadioButton/index.cjs"
|
|
96
102
|
},
|
|
97
103
|
"./RadioButtonGroup": {
|
|
98
|
-
"import": "./dist/RadioButtonGroup/index.js",
|
|
99
|
-
"require": "./dist/RadioButtonGroup/index.cjs"
|
|
104
|
+
"import": "./dist/components/RadioButtonGroup/index.js",
|
|
105
|
+
"require": "./dist/components/RadioButtonGroup/index.cjs"
|
|
106
|
+
},
|
|
107
|
+
"./RecommendedProducts": {
|
|
108
|
+
"import": "./dist/components/RecommendedProducts/index.js",
|
|
109
|
+
"require": "./dist/components/RecommendedProducts/index.cjs"
|
|
100
110
|
},
|
|
101
111
|
"./SearchAutocomplete": {
|
|
102
|
-
"import": "./dist/SearchAutocomplete/index.js",
|
|
103
|
-
"require": "./dist/SearchAutocomplete/index.cjs"
|
|
112
|
+
"import": "./dist/components/SearchAutocomplete/index.js",
|
|
113
|
+
"require": "./dist/components/SearchAutocomplete/index.cjs"
|
|
104
114
|
},
|
|
105
115
|
"./SearchFilter": {
|
|
106
|
-
"import": "./dist/SearchFilter/index.js",
|
|
107
|
-
"require": "./dist/SearchFilter/index.cjs"
|
|
116
|
+
"import": "./dist/components/SearchFilter/index.js",
|
|
117
|
+
"require": "./dist/components/SearchFilter/index.cjs"
|
|
108
118
|
},
|
|
109
119
|
"./SearchInput": {
|
|
110
|
-
"import": "./dist/SearchInput/index.js",
|
|
111
|
-
"require": "./dist/SearchInput/index.cjs"
|
|
120
|
+
"import": "./dist/components/SearchInput/index.js",
|
|
121
|
+
"require": "./dist/components/SearchInput/index.cjs"
|
|
112
122
|
},
|
|
113
123
|
"./SearchInputForm": {
|
|
114
|
-
"import": "./dist/SearchInputForm/index.js",
|
|
115
|
-
"require": "./dist/SearchInputForm/index.cjs"
|
|
124
|
+
"import": "./dist/components/SearchInputForm/index.js",
|
|
125
|
+
"require": "./dist/components/SearchInputForm/index.cjs"
|
|
116
126
|
},
|
|
117
127
|
"./SearchResultsContent": {
|
|
118
|
-
"import": "./dist/SearchResultsContent/index.js",
|
|
119
|
-
"require": "./dist/SearchResultsContent/index.cjs"
|
|
128
|
+
"import": "./dist/components/SearchResultsContent/index.js",
|
|
129
|
+
"require": "./dist/components/SearchResultsContent/index.cjs"
|
|
130
|
+
},
|
|
131
|
+
"./SearchResultsFilterButton": {
|
|
132
|
+
"import": "./dist/components/SearchResultsFilterButton/index.js",
|
|
133
|
+
"require": "./dist/components/SearchResultsFilterButton/index.cjs"
|
|
134
|
+
},
|
|
135
|
+
"./SearchResultsFilterModal": {
|
|
136
|
+
"import": "./dist/components/SearchResultsFilterModal/index.js",
|
|
137
|
+
"require": "./dist/components/SearchResultsFilterModal/index.cjs"
|
|
120
138
|
},
|
|
121
139
|
"./SearchResultsFilterSidebar": {
|
|
122
|
-
"import": "./dist/SearchResultsFilterSidebar/index.js",
|
|
123
|
-
"require": "./dist/SearchResultsFilterSidebar/index.cjs"
|
|
140
|
+
"import": "./dist/components/SearchResultsFilterSidebar/index.js",
|
|
141
|
+
"require": "./dist/components/SearchResultsFilterSidebar/index.cjs"
|
|
124
142
|
},
|
|
125
143
|
"./SearchResultsStates": {
|
|
126
|
-
"import": "./dist/SearchResultsStates/index.js",
|
|
127
|
-
"require": "./dist/SearchResultsStates/index.cjs"
|
|
144
|
+
"import": "./dist/components/SearchResultsStates/index.js",
|
|
145
|
+
"require": "./dist/components/SearchResultsStates/index.cjs"
|
|
146
|
+
},
|
|
147
|
+
"./SearchResultsToolbar": {
|
|
148
|
+
"import": "./dist/components/SearchResultsToolbar/index.js",
|
|
149
|
+
"require": "./dist/components/SearchResultsToolbar/index.cjs"
|
|
128
150
|
},
|
|
129
151
|
"./SparkleAnimation": {
|
|
130
|
-
"import": "./dist/SparkleAnimation/index.js",
|
|
131
|
-
"require": "./dist/SparkleAnimation/index.cjs"
|
|
152
|
+
"import": "./dist/components/SparkleAnimation/index.js",
|
|
153
|
+
"require": "./dist/components/SparkleAnimation/index.cjs"
|
|
132
154
|
},
|
|
133
155
|
"./Spinner": {
|
|
134
|
-
"import": "./dist/Spinner/index.js",
|
|
135
|
-
"require": "./dist/Spinner/index.cjs"
|
|
156
|
+
"import": "./dist/components/Spinner/index.js",
|
|
157
|
+
"require": "./dist/components/Spinner/index.cjs"
|
|
136
158
|
},
|
|
137
159
|
"./SuggestionButton": {
|
|
138
|
-
"import": "./dist/SuggestionButton/index.js",
|
|
139
|
-
"require": "./dist/SuggestionButton/index.cjs"
|
|
160
|
+
"import": "./dist/components/SuggestionButton/index.js",
|
|
161
|
+
"require": "./dist/components/SuggestionButton/index.cjs"
|
|
140
162
|
},
|
|
141
163
|
"./TextInput": {
|
|
142
|
-
"import": "./dist/TextInput/index.js",
|
|
143
|
-
"require": "./dist/TextInput/index.cjs"
|
|
164
|
+
"import": "./dist/components/TextInput/index.js",
|
|
165
|
+
"require": "./dist/components/TextInput/index.cjs"
|
|
144
166
|
},
|
|
145
167
|
"./ToggleButton": {
|
|
146
|
-
"import": "./dist/ToggleButton/index.js",
|
|
147
|
-
"require": "./dist/ToggleButton/index.cjs"
|
|
168
|
+
"import": "./dist/components/ToggleButton/index.js",
|
|
169
|
+
"require": "./dist/components/ToggleButton/index.cjs"
|
|
148
170
|
},
|
|
149
171
|
"./Typography": {
|
|
150
|
-
"import": "./dist/Typography/index.js",
|
|
151
|
-
"require": "./dist/Typography/index.cjs"
|
|
172
|
+
"import": "./dist/components/Typography/index.js",
|
|
173
|
+
"require": "./dist/components/Typography/index.cjs"
|
|
174
|
+
},
|
|
175
|
+
"./util": {
|
|
176
|
+
"import": "./dist/util/index.js",
|
|
177
|
+
"require": "./dist/util/index.cjs"
|
|
152
178
|
},
|
|
153
179
|
"./package.json": "./package.json"
|
|
154
180
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SearchInputVariant = 'standard';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import classNames from 'classnames';
|
|
2
2
|
import ScrollContainer from 'react-indiana-drag-scroll';
|
|
3
3
|
import { Typography } from 'src/components/Typography';
|
|
4
|
-
import { SelectedFilterOption } from '@envive-ai/
|
|
4
|
+
import { SelectedFilterOption } from '@envive-ai/react-hooks/atoms/search';
|
|
5
5
|
|
|
6
6
|
interface AppliedFiltersScrollbarProps {
|
|
7
7
|
selectedFilterOptions: SelectedFilterOption[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SelectedFilterOption } from '@envive-ai/
|
|
1
|
+
import { SelectedFilterOption } from '@envive-ai/react-hooks/atoms/search';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import ScrollContainer from 'react-indiana-drag-scroll';
|
|
4
4
|
import { Typography } from 'src/components/Typography';
|
|
@@ -3,13 +3,7 @@ import { MdStar } from 'react-icons/md';
|
|
|
3
3
|
import Logger from 'src/logging/logger';
|
|
4
4
|
import { Typography } from 'src/components/Typography';
|
|
5
5
|
import { formatPrice } from 'src/util/formatPrice';
|
|
6
|
-
import {
|
|
7
|
-
TestProps,
|
|
8
|
-
ProductCardConfig,
|
|
9
|
-
ProductCardVariant,
|
|
10
|
-
ProductCardHoverVariant,
|
|
11
|
-
ProductCardLayoutVariant,
|
|
12
|
-
} from '@envive-ai/types';
|
|
6
|
+
import { TestProps } from '@envive-ai/react-hooks/types';
|
|
13
7
|
import { useImageResolver } from '@envive-ai/react-hooks/hooks/ImageResolver';
|
|
14
8
|
import { PRODUCT_CARD_TESTID } from '@envive-ai/react-hooks/config';
|
|
15
9
|
import {
|
|
@@ -20,6 +14,12 @@ import {
|
|
|
20
14
|
} from './productCardVariants';
|
|
21
15
|
import { ImageWithFallback } from '../ImageWithFallback';
|
|
22
16
|
import { Spinner } from '../Spinner';
|
|
17
|
+
import {
|
|
18
|
+
ProductCardConfig,
|
|
19
|
+
ProductCardVariant,
|
|
20
|
+
ProductCardHoverVariant,
|
|
21
|
+
ProductCardLayoutVariant,
|
|
22
|
+
} from './types';
|
|
23
23
|
|
|
24
24
|
const formatReviews = (stars: number) =>
|
|
25
25
|
String(
|
|
@@ -213,11 +213,11 @@ export const ProductCard = ({
|
|
|
213
213
|
linkClassnames,
|
|
214
214
|
zoomOnHover
|
|
215
215
|
? [
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
216
|
+
'spiffy-tw-transition-transform',
|
|
217
|
+
'spiffy-tw-duration-200',
|
|
218
|
+
'spiffy-tw-origin-top',
|
|
219
|
+
'hover:spiffy-tw-scale-105',
|
|
220
|
+
]
|
|
221
221
|
: [],
|
|
222
222
|
);
|
|
223
223
|
|
|
@@ -1,20 +1,8 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
-
import {
|
|
3
|
+
import { ProductCardSkeletonOverrides, ProductCardSkeletonProps } from './types';
|
|
4
4
|
import { productCardLayoutVariantClasses } from './productCardVariants';
|
|
5
5
|
|
|
6
|
-
enum ProductCardSkeletonOverrides {
|
|
7
|
-
PRODUCT_CARD_SKELETON_CONTAINER = 'spiffy-product-card-skeleton-container',
|
|
8
|
-
PRODUCT_CARD_SKELETON = 'spiffy-product-card-skeleton',
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
type ProductCardImageAspectRatio = '3:4' | 'square' | 'none';
|
|
12
|
-
interface ProductCardSkeletonProps {
|
|
13
|
-
layoutVariant: ProductCardLayoutVariant;
|
|
14
|
-
aspectRatio: ProductCardImageAspectRatio;
|
|
15
|
-
growWithContainer?: boolean;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
6
|
export const ProductCardSkeleton: FC<ProductCardSkeletonProps> = ({
|
|
19
7
|
layoutVariant,
|
|
20
8
|
aspectRatio,
|