@envive-ai/react-toolkit 0.2.13-arthur-1 → 0.2.14
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/{chunk-CUT6urMc.cjs → _virtual/rolldown_runtime.cjs} +11 -12
- package/dist/{types--eyQnaEA.d.cts → atoms/search/types.d.cts} +1 -1
- package/dist/{types-D6fl4HOx.d.ts → atoms/search/types.d.ts} +1 -1
- package/dist/{Accordion-DPUaEXiE.cjs → components/Accordion/Accordion.cjs} +8 -30
- package/dist/components/Accordion/{index-D_7-KJa0.d.cts → Accordion.d.cts} +2 -2
- package/dist/components/Accordion/{index-Dd_9XeqA.d.ts → Accordion.d.ts} +2 -2
- package/dist/{Accordion-8zFBEEaN.js → components/Accordion/Accordion.js} +5 -23
- package/dist/components/Accordion/index.cjs +1 -3
- package/dist/components/Accordion/index.d.cts +2 -0
- package/dist/components/Accordion/index.d.ts +2 -0
- package/dist/components/Accordion/index.js +1 -3
- package/dist/{AnimatedChevron-CPW5KPLr.cjs → components/AnimatedChevron/AnimatedChevron.cjs} +2 -7
- package/dist/components/AnimatedChevron/{index-BwQ6tJL8.d.cts → AnimatedChevron.d.cts} +2 -2
- package/dist/components/AnimatedChevron/{index-DZdGWikh.d.ts → AnimatedChevron.d.ts} +2 -2
- package/dist/{AnimatedChevron-DO_jcnJg.js → components/AnimatedChevron/AnimatedChevron.js} +1 -1
- package/dist/components/AnimatedChevron/index.cjs +1 -1
- package/dist/components/AnimatedChevron/index.d.cts +2 -0
- package/dist/components/AnimatedChevron/index.d.ts +2 -0
- package/dist/components/AnimatedChevron/index.js +1 -1
- package/dist/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.cjs +45 -0
- package/dist/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.d.cts +22 -0
- package/dist/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.d.ts +22 -0
- package/dist/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.js +42 -0
- package/dist/components/AppliedFiltersScrollbar/index.cjs +2 -43
- package/dist/components/AppliedFiltersScrollbar/index.d.cts +2 -0
- package/dist/components/AppliedFiltersScrollbar/index.d.ts +2 -0
- package/dist/components/AppliedFiltersScrollbar/index.js +1 -39
- package/dist/{ButtonBase-C44g6llb.cjs → components/ButtonBase/ButtonBase.cjs} +12 -29
- package/dist/components/ButtonBase/ButtonBase.d.cts +18 -0
- package/dist/components/ButtonBase/ButtonBase.d.ts +18 -0
- package/dist/{ButtonBase-Cjo-fBg2.js → components/ButtonBase/ButtonBase.js} +8 -14
- package/dist/components/ButtonBase/index.cjs +3 -4
- package/dist/components/ButtonBase/index.d.cts +3 -0
- package/dist/components/ButtonBase/index.d.ts +3 -0
- package/dist/components/ButtonBase/index.js +2 -3
- package/dist/components/ButtonBase/types.cjs +11 -0
- package/dist/components/ButtonBase/{index-Bxdhf_O8.d.cts → types.d.cts} +4 -19
- package/dist/components/ButtonBase/{index-VoanK6Pr.d.ts → types.d.ts} +4 -19
- package/dist/components/ButtonBase/types.js +10 -0
- package/dist/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.cjs +33 -0
- package/dist/components/DynamicFiltersScrollbar/{index-CHzxQmaW.d.cts → DynamicFiltersScrollbar.d.cts} +2 -2
- package/dist/components/DynamicFiltersScrollbar/{index-vVNOOaOF.d.ts → DynamicFiltersScrollbar.d.ts} +2 -2
- package/dist/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.js +30 -0
- package/dist/components/DynamicFiltersScrollbar/index.cjs +2 -31
- package/dist/components/DynamicFiltersScrollbar/index.d.cts +2 -0
- package/dist/components/DynamicFiltersScrollbar/index.d.ts +2 -0
- package/dist/components/DynamicFiltersScrollbar/index.js +1 -27
- package/dist/{DynamicFiltersScrollbar-IO886VXD.cjs → components/FilterScrollbar/AppliedFiltersScrollbar.cjs} +6 -39
- package/dist/components/{AppliedFiltersScrollbar/index-Dcyc-5Bv.d.ts → FilterScrollbar/AppliedFiltersScrollbar.d.cts} +1 -1
- package/dist/components/{AppliedFiltersScrollbar/index-VbXAIfym.d.cts → FilterScrollbar/AppliedFiltersScrollbar.d.ts} +1 -1
- package/dist/{DynamicFiltersScrollbar-s5yfmMau.js → components/FilterScrollbar/AppliedFiltersScrollbar.js} +3 -25
- package/dist/components/FilterScrollbar/DynamicFiltersScrollbar.cjs +33 -0
- package/dist/components/FilterScrollbar/DynamicFiltersScrollbar.d.cts +28 -0
- package/dist/components/FilterScrollbar/DynamicFiltersScrollbar.d.ts +28 -0
- package/dist/components/FilterScrollbar/DynamicFiltersScrollbar.js +30 -0
- package/dist/components/FilterScrollbar/index.cjs +3 -3
- package/dist/components/FilterScrollbar/index.d.cts +3 -0
- package/dist/components/FilterScrollbar/index.d.ts +3 -0
- package/dist/components/FilterScrollbar/index.js +2 -2
- package/dist/{ImageWithFallback-C-ZQn7tR.cjs → components/ImageWithFallback/ImageWithFallback.cjs} +4 -9
- package/dist/components/ImageWithFallback/{index-NJZsMOXc.d.ts → ImageWithFallback.d.ts} +2 -2
- package/dist/{ImageWithFallback-DjDNefaG.js → components/ImageWithFallback/ImageWithFallback.js} +1 -1
- package/dist/components/ImageWithFallback/index.cjs +1 -1
- package/dist/components/ImageWithFallback/index.d.cts +2 -0
- package/dist/components/ImageWithFallback/index.d.ts +2 -0
- package/dist/components/ImageWithFallback/index.js +1 -1
- package/dist/components/ModalSheet/ModalSheet.cjs +30 -0
- package/dist/components/ModalSheet/ModalSheet.d.cts +15 -0
- package/dist/components/ModalSheet/ModalSheet.d.ts +15 -0
- package/dist/components/ModalSheet/ModalSheet.js +29 -0
- package/dist/components/ModalSheet/desktop/desktopHeader.cjs +26 -0
- package/dist/components/ModalSheet/desktop/desktopHeader.js +24 -0
- package/dist/components/ModalSheet/desktop/index.cjs +122 -0
- package/dist/components/ModalSheet/desktop/index.js +120 -0
- package/dist/components/ModalSheet/index.cjs +1 -2
- package/dist/components/ModalSheet/index.d.cts +2 -0
- package/dist/components/ModalSheet/index.d.ts +2 -0
- package/dist/components/ModalSheet/index.js +1 -2
- package/dist/components/ModalSheet/mobile/index.cjs +116 -0
- package/dist/components/ModalSheet/mobile/index.js +114 -0
- package/dist/components/ModalSheet/mobile/mobileHeader.cjs +38 -0
- package/dist/components/ModalSheet/mobile/mobileHeader.js +36 -0
- package/dist/components/ModalSheet/{index-B5q4MHdq.d.cts → types.d.cts} +1 -14
- package/dist/components/ModalSheet/{index-BN20-QS0.d.ts → types.d.ts} +1 -14
- package/dist/{ProductCard-C7rZyWpj.cjs → components/ProductCard/ProductCard.cjs} +20 -172
- package/dist/components/ProductCard/ProductCard.d.cts +64 -0
- package/dist/components/ProductCard/ProductCard.d.ts +64 -0
- package/dist/{ProductCard-GxpFxjh0.js → components/ProductCard/ProductCard.js} +11 -106
- package/dist/components/ProductCard/ProductCardSkeleton.cjs +33 -0
- package/dist/components/ProductCard/ProductCardSkeleton.d.cts +7 -0
- package/dist/components/ProductCard/ProductCardSkeleton.d.ts +7 -0
- package/dist/components/ProductCard/ProductCardSkeleton.js +31 -0
- package/dist/components/ProductCard/index.cjs +11 -12
- package/dist/components/ProductCard/index.d.cts +5 -0
- package/dist/components/ProductCard/index.d.ts +5 -0
- package/dist/components/ProductCard/index.js +4 -5
- package/dist/components/ProductCard/productCardVariants.cjs +49 -0
- package/dist/components/ProductCard/productCardVariants.d.cts +13 -0
- package/dist/components/ProductCard/productCardVariants.d.ts +13 -0
- package/dist/components/ProductCard/productCardVariants.js +45 -0
- package/dist/components/ProductCard/types.cjs +16 -0
- package/dist/components/ProductCard/types.d.cts +43 -0
- package/dist/components/ProductCard/types.d.ts +43 -0
- package/dist/components/ProductCard/types.js +14 -0
- package/dist/{ProductGrid-0A8vml2y.cjs → components/ProductGrid/ProductGrid.cjs} +7 -35
- package/dist/components/ProductGrid/ProductGrid.d.cts +25 -0
- package/dist/components/ProductGrid/ProductGrid.d.ts +25 -0
- package/dist/{ProductGrid-DAwc9dKV.js → components/ProductGrid/ProductGrid.js} +4 -21
- package/dist/components/ProductGrid/index.cjs +3 -7
- package/dist/components/ProductGrid/index.d.cts +3 -0
- package/dist/components/ProductGrid/index.d.ts +3 -0
- package/dist/components/ProductGrid/index.js +2 -6
- package/dist/components/ProductGrid/productGridVariants.cjs +21 -0
- package/dist/components/ProductGrid/productGridVariants.d.cts +13 -0
- package/dist/components/ProductGrid/productGridVariants.d.ts +13 -0
- package/dist/components/ProductGrid/productGridVariants.js +20 -0
- package/dist/{RadioButton-DpF1wymL.cjs → components/RadioButton/RadioButton.cjs} +5 -9
- package/dist/components/RadioButton/{index-BeOT_AlW.d.cts → RadioButton.d.cts} +2 -2
- package/dist/components/RadioButton/{index-CxluCaJw.d.ts → RadioButton.d.ts} +2 -2
- package/dist/{RadioButton-DOc8g47U.js → components/RadioButton/RadioButton.js} +3 -2
- package/dist/components/RadioButton/index.cjs +1 -2
- package/dist/components/RadioButton/index.d.cts +2 -0
- package/dist/components/RadioButton/index.d.ts +2 -0
- package/dist/components/RadioButton/index.js +1 -2
- package/dist/{RadioButtonGroup-ByzTXNAb.cjs → components/RadioButtonGroup/RadioButtonGroup.cjs} +6 -15
- package/dist/components/RadioButtonGroup/{index-KeOIiYNW.d.ts → RadioButtonGroup.d.ts} +2 -2
- package/dist/{RadioButtonGroup-YQIxmR7j.js → components/RadioButtonGroup/RadioButtonGroup.js} +3 -2
- package/dist/components/RadioButtonGroup/index.cjs +1 -3
- package/dist/components/RadioButtonGroup/index.d.cts +2 -0
- package/dist/components/RadioButtonGroup/index.d.ts +2 -0
- package/dist/components/RadioButtonGroup/index.js +1 -3
- package/dist/{RecommendedProducts-qkPxXVJn.cjs → components/RecommendedProducts/RecommendedProducts.cjs} +7 -10
- package/dist/{RecommendedProducts-C6dLpLPP.js → components/RecommendedProducts/RecommendedProducts.js} +5 -3
- package/dist/components/RecommendedProducts/index.cjs +1 -8
- package/dist/components/RecommendedProducts/index.d.cts +2 -0
- package/dist/components/RecommendedProducts/index.d.ts +2 -0
- package/dist/components/RecommendedProducts/index.js +1 -8
- package/dist/{SearchAutocomplete-BdTWETDB.cjs → components/SearchAutocomplete/SearchAutocomplete.cjs} +10 -13
- package/dist/components/SearchAutocomplete/{index-BcnHcv7Q.d.cts → SearchAutocomplete.d.cts} +2 -2
- package/dist/components/SearchAutocomplete/{index-Br_POGOz.d.ts → SearchAutocomplete.d.ts} +2 -2
- package/dist/{SearchAutocomplete-DNe193EV.js → components/SearchAutocomplete/SearchAutocomplete.js} +6 -5
- package/dist/components/SearchAutocomplete/index.cjs +1 -4
- package/dist/components/SearchAutocomplete/index.d.cts +2 -0
- package/dist/components/SearchAutocomplete/index.d.ts +2 -0
- package/dist/components/SearchAutocomplete/index.js +1 -4
- package/dist/components/SearchFilter/SearchFilter.cjs +134 -0
- package/dist/components/SearchFilter/SearchFilter.d.cts +23 -0
- package/dist/components/SearchFilter/SearchFilter.d.ts +23 -0
- package/dist/components/SearchFilter/SearchFilter.js +132 -0
- package/dist/components/SearchFilter/SearchFilterFooter.cjs +48 -0
- package/dist/components/SearchFilter/SearchFilterFooter.d.cts +14 -0
- package/dist/components/SearchFilter/SearchFilterFooter.d.ts +14 -0
- package/dist/components/SearchFilter/SearchFilterFooter.js +46 -0
- package/dist/components/SearchFilter/SearchFilterHeader.cjs +42 -0
- package/dist/components/SearchFilter/SearchFilterHeader.d.cts +12 -0
- package/dist/components/SearchFilter/SearchFilterHeader.d.ts +12 -0
- package/dist/components/SearchFilter/SearchFilterHeader.js +40 -0
- package/dist/components/SearchFilter/SearchFilterItem.cjs +41 -0
- package/dist/components/SearchFilter/SearchFilterItem.d.cts +13 -0
- package/dist/components/SearchFilter/SearchFilterItem.d.ts +13 -0
- package/dist/components/SearchFilter/SearchFilterItem.js +39 -0
- package/dist/components/SearchFilter/index.cjs +10 -16
- package/dist/components/SearchFilter/index.d.cts +6 -0
- package/dist/components/SearchFilter/index.d.ts +6 -0
- package/dist/components/SearchFilter/index.js +5 -11
- package/dist/components/SearchFilter/types.d.cts +42 -0
- package/dist/components/SearchFilter/types.d.ts +42 -0
- package/dist/components/SearchFilter/useHasFilterStateChanged.cjs +27 -0
- package/dist/components/SearchFilter/useHasFilterStateChanged.js +26 -0
- package/dist/components/SearchFilter/utils.cjs +11 -0
- package/dist/components/SearchFilter/utils.d.cts +7 -0
- package/dist/components/SearchFilter/utils.d.ts +7 -0
- package/dist/components/SearchFilter/utils.js +9 -0
- package/dist/components/SearchInput/SearchInput.cjs +83 -0
- package/dist/components/SearchInput/{index-C0H51Flv.d.ts → SearchInput.d.cts} +1 -15
- package/dist/components/SearchInput/{index-rFDdhvqg.d.cts → SearchInput.d.ts} +1 -15
- package/dist/components/SearchInput/SearchInput.js +78 -0
- package/dist/components/SearchInput/index.cjs +3 -6
- package/dist/components/SearchInput/index.d.cts +3 -0
- package/dist/components/SearchInput/index.d.ts +3 -0
- package/dist/components/SearchInput/index.js +2 -5
- package/dist/components/SearchInput/searchInputVariants.cjs +15 -0
- package/dist/components/SearchInput/searchInputVariants.d.cts +16 -0
- package/dist/components/SearchInput/searchInputVariants.d.ts +16 -0
- package/dist/components/SearchInput/searchInputVariants.js +15 -0
- package/dist/{SearchInputForm-ZgNNEX6E.cjs → components/SearchInputForm/SearchInputForm.cjs} +8 -11
- package/dist/components/SearchInputForm/{index-DjjoY7MQ.d.ts → SearchInputForm.d.cts} +3 -3
- package/dist/components/SearchInputForm/{index-Cleto06d.d.cts → SearchInputForm.d.ts} +1 -1
- package/dist/{SearchInputForm-CFm_hUvX.js → components/SearchInputForm/SearchInputForm.js} +5 -3
- package/dist/components/SearchInputForm/index.cjs +1 -8
- package/dist/components/SearchInputForm/index.d.cts +2 -0
- package/dist/components/SearchInputForm/index.d.ts +2 -0
- package/dist/components/SearchInputForm/index.js +1 -8
- package/dist/components/SearchResultsContent/SearchResultsContent.cjs +52 -0
- package/dist/components/SearchResultsContent/{index-C4qsTFUd.d.cts → SearchResultsContent.d.cts} +4 -4
- package/dist/components/SearchResultsContent/{index-KdFf9yzs.d.ts → SearchResultsContent.d.ts} +4 -4
- package/dist/components/SearchResultsContent/SearchResultsContent.js +50 -0
- package/dist/components/SearchResultsContent/index.cjs +2 -61
- package/dist/components/SearchResultsContent/index.d.cts +2 -0
- package/dist/components/SearchResultsContent/index.d.ts +2 -0
- package/dist/components/SearchResultsContent/index.js +1 -58
- package/dist/components/SearchResultsFilterButton/SearchResultsFilterButton.cjs +25 -0
- package/dist/components/SearchResultsFilterButton/{index-BvntKdyC.d.ts → SearchResultsFilterButton.d.cts} +2 -2
- package/dist/components/SearchResultsFilterButton/{index-zgQsT6vz.d.cts → SearchResultsFilterButton.d.ts} +2 -2
- package/dist/components/SearchResultsFilterButton/SearchResultsFilterButton.js +23 -0
- package/dist/components/SearchResultsFilterButton/index.cjs +1 -6
- package/dist/components/SearchResultsFilterButton/index.d.cts +2 -0
- package/dist/components/SearchResultsFilterButton/index.d.ts +2 -0
- package/dist/components/SearchResultsFilterButton/index.js +1 -6
- package/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.cjs +36 -0
- package/dist/components/SearchResultsFilterModal/{index-CNBQ1ikL.d.ts → SearchResultsFilterModal.d.cts} +3 -3
- package/dist/components/SearchResultsFilterModal/{index-mRcnKysU.d.cts → SearchResultsFilterModal.d.ts} +3 -3
- package/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.js +35 -0
- package/dist/components/SearchResultsFilterModal/index.cjs +2 -45
- package/dist/components/SearchResultsFilterModal/index.d.cts +2 -0
- package/dist/components/SearchResultsFilterModal/index.d.ts +2 -0
- package/dist/components/SearchResultsFilterModal/index.js +1 -43
- package/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.cjs +51 -0
- package/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.d.cts +27 -0
- package/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.d.ts +27 -0
- package/dist/{SearchResultsFilterSidebar-DLzQoFGD.js → components/SearchResultsFilterSidebar/SearchResultsFilter.js} +9 -72
- package/dist/components/SearchResultsFilterSidebar/index.cjs +3 -15
- package/dist/components/SearchResultsFilterSidebar/index.d.cts +4 -0
- package/dist/components/SearchResultsFilterSidebar/index.d.ts +4 -0
- package/dist/components/SearchResultsFilterSidebar/index.js +2 -14
- package/dist/{searchFilterSidebarVariants-CjyRGKK_.cjs → components/SearchResultsFilterSidebar/searchFilterSidebarVariants.cjs} +2 -7
- package/dist/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.d.cts +19 -0
- package/dist/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.d.ts +19 -0
- package/dist/{searchFilterSidebarVariants-gkgkflXx.js → components/SearchResultsFilterSidebar/searchFilterSidebarVariants.js} +2 -2
- package/dist/components/SearchResultsFilterSidebar/types.d.cts +5 -0
- package/dist/components/SearchResultsFilterSidebar/types.d.ts +5 -0
- package/dist/components/SearchResultsStates/NoSearchResultsFound.cjs +57 -0
- package/dist/components/SearchResultsStates/NoSearchResultsFound.d.cts +25 -0
- package/dist/components/SearchResultsStates/NoSearchResultsFound.d.ts +25 -0
- package/dist/components/SearchResultsStates/NoSearchResultsFound.js +54 -0
- package/dist/components/SearchResultsStates/SearchResultsGrid.cjs +53 -0
- package/dist/components/SearchResultsStates/SearchResultsGrid.d.cts +46 -0
- package/dist/components/SearchResultsStates/SearchResultsGrid.d.ts +46 -0
- package/dist/components/SearchResultsStates/SearchResultsGrid.js +51 -0
- package/dist/components/SearchResultsStates/SearchResultsLoadingGrid.cjs +52 -0
- package/dist/components/SearchResultsStates/SearchResultsLoadingGrid.d.cts +15 -0
- package/dist/components/SearchResultsStates/SearchResultsLoadingGrid.d.ts +15 -0
- package/dist/components/SearchResultsStates/SearchResultsLoadingGrid.js +51 -0
- package/dist/components/SearchResultsStates/index.cjs +6 -17
- package/dist/components/SearchResultsStates/index.d.cts +4 -0
- package/dist/components/SearchResultsStates/index.d.ts +4 -0
- package/dist/components/SearchResultsStates/index.js +3 -14
- package/dist/components/SearchResultsToolbar/SearchResultsToolbar.cjs +60 -0
- package/dist/components/SearchResultsToolbar/{index-CIvuccni.d.ts → SearchResultsToolbar.d.cts} +2 -2
- package/dist/components/SearchResultsToolbar/{index-PYr086HM.d.cts → SearchResultsToolbar.d.ts} +2 -2
- package/dist/components/SearchResultsToolbar/SearchResultsToolbar.js +57 -0
- package/dist/components/SearchResultsToolbar/index.cjs +2 -65
- package/dist/components/SearchResultsToolbar/index.d.cts +2 -0
- package/dist/components/SearchResultsToolbar/index.d.ts +2 -0
- package/dist/components/SearchResultsToolbar/index.js +1 -61
- package/dist/components/SparkleAnimation/SparkleAnimation.cjs +78 -0
- package/dist/components/SparkleAnimation/SparkleAnimation.d.cts +15 -0
- package/dist/components/SparkleAnimation/SparkleAnimation.d.ts +15 -0
- package/dist/{SparkleAnimation-szzXiTam.js → components/SparkleAnimation/SparkleAnimation.js} +11 -20
- package/dist/components/SparkleAnimation/index.cjs +3 -4
- package/dist/components/SparkleAnimation/index.d.cts +3 -0
- package/dist/components/SparkleAnimation/index.d.ts +3 -0
- package/dist/components/SparkleAnimation/index.js +2 -3
- package/dist/components/SparkleAnimation/types.cjs +12 -0
- package/dist/components/SparkleAnimation/types.d.cts +9 -0
- package/dist/components/SparkleAnimation/types.d.ts +9 -0
- package/dist/components/SparkleAnimation/types.js +11 -0
- package/dist/{Spinner-7HblFCja.cjs → components/Spinner/Spinner.cjs} +3 -8
- package/dist/components/Spinner/{index-TKsPifGM.d.ts → Spinner.d.cts} +2 -2
- package/dist/components/Spinner/{index-DrYhRG9D.d.cts → Spinner.d.ts} +2 -2
- package/dist/{Spinner-OFbXMms8.js → components/Spinner/Spinner.js} +1 -1
- package/dist/components/Spinner/index.cjs +1 -1
- package/dist/components/Spinner/index.d.cts +2 -0
- package/dist/components/Spinner/index.d.ts +2 -0
- package/dist/components/Spinner/index.js +1 -1
- package/dist/components/SuggestionButton/SuggestionButton.cjs +195 -0
- package/dist/components/SuggestionButton/{index-BioM3QHW.d.ts → SuggestionButton.d.cts} +6 -8
- package/dist/components/SuggestionButton/{index-CjV6Ar4Y.d.cts → SuggestionButton.d.ts} +6 -8
- package/dist/components/SuggestionButton/SuggestionButton.js +188 -0
- package/dist/components/SuggestionButton/index.cjs +5 -191
- package/dist/components/SuggestionButton/index.d.cts +3 -0
- package/dist/components/SuggestionButton/index.d.ts +3 -0
- package/dist/components/SuggestionButton/index.js +1 -185
- package/dist/components/SuggestionButton/types.d.cts +4 -0
- package/dist/components/SuggestionButton/types.d.ts +4 -0
- package/dist/{TextInput-CaynCoDf.cjs → components/TextInput/TextInput.cjs} +7 -11
- package/dist/components/TextInput/{index-DAhxej1K.d.ts → TextInput.d.cts} +1 -2
- package/dist/components/TextInput/{index-CRJMRe-b.d.cts → TextInput.d.ts} +1 -2
- package/dist/{TextInput-CsdOvLBQ.js → components/TextInput/TextInput.js} +3 -2
- package/dist/components/TextInput/index.cjs +1 -2
- package/dist/components/TextInput/index.d.cts +2 -0
- package/dist/components/TextInput/index.d.ts +2 -0
- package/dist/components/TextInput/index.js +1 -2
- package/dist/{ToggleButton-Dxk3U1hR.cjs → components/ToggleButton/ToggleButton.cjs} +5 -9
- package/dist/components/ToggleButton/{index-pFQuGdoj.d.ts → ToggleButton.d.cts} +2 -2
- package/dist/components/ToggleButton/{index-eLDrp4ic.d.cts → ToggleButton.d.ts} +2 -2
- package/dist/{ToggleButton-D8--AKKK.js → components/ToggleButton/ToggleButton.js} +3 -2
- package/dist/components/ToggleButton/index.cjs +1 -2
- package/dist/components/ToggleButton/index.d.cts +2 -0
- package/dist/components/ToggleButton/index.d.ts +2 -0
- package/dist/components/ToggleButton/index.js +1 -2
- package/dist/components/Typography/Typography.cjs +53 -0
- package/dist/{index-DXGw5Z56.d.ts → components/Typography/Typography.d.cts} +2 -2
- package/dist/{index-Bw6lDfEp.d.cts → components/Typography/Typography.d.ts} +2 -2
- package/dist/components/Typography/Typography.js +50 -0
- package/dist/components/Typography/index.cjs +5 -4
- package/dist/components/Typography/index.d.cts +3 -0
- package/dist/components/Typography/index.d.ts +3 -0
- package/dist/components/Typography/index.js +2 -1
- package/dist/{Typography-xehJH05l.js → components/Typography/typographyVariantClasses.cjs} +3 -54
- package/dist/{typographyVariantClasses-CoRhazCU.d.cts → components/Typography/typographyVariantClasses.d.cts} +1 -1
- package/dist/{typographyVariantClasses-_oNpv-aN.d.ts → components/Typography/typographyVariantClasses.d.ts} +1 -1
- package/dist/{Typography-Ds4gfOJz.cjs → components/Typography/typographyVariantClasses.js} +1 -81
- package/dist/components/Typography/util.cjs +10 -0
- package/dist/components/Typography/util.js +10 -0
- package/dist/logging/logger.cjs +20 -0
- package/dist/logging/logger.js +19 -0
- package/dist/{colorsConfig-Dp7w5LPb.cjs → models/colorsConfig.cjs} +2 -12
- package/dist/{colorsConfig-CFI1KN8R.js → models/colorsConfig.js} +1 -1
- package/dist/util/camelCase.d.cts +69 -0
- package/dist/util/camelCase.d.ts +69 -0
- package/dist/util/camelCasedPropertiesDeep.d.cts +55 -0
- package/dist/util/camelCasedPropertiesDeep.d.ts +55 -0
- package/dist/util/colorVar.cjs +6 -0
- package/dist/util/colorVar.d.cts +6 -0
- package/dist/util/colorVar.d.ts +6 -0
- package/dist/util/colorVar.js +5 -0
- package/dist/{formatPrice-CyfkjZ3R.cjs → util/formatPrice.cjs} +1 -6
- package/dist/util/formatPrice.d.cts +4 -0
- package/dist/util/formatPrice.d.ts +4 -0
- package/dist/{formatPrice-DexQu2aZ.js → util/formatPrice.js} +1 -1
- package/dist/util/index.cjs +7 -78
- package/dist/util/index.d.cts +5 -0
- package/dist/util/index.d.ts +5 -0
- package/dist/util/index.js +4 -74
- package/dist/util/internal.d.cts +22 -0
- package/dist/util/internal.d.ts +22 -0
- package/dist/util/splitWords.d.cts +28 -0
- package/dist/util/splitWords.d.ts +28 -0
- package/dist/util/trim.d.cts +28 -0
- package/dist/util/trim.d.ts +28 -0
- package/dist/util/unknownArray.d.cts +28 -0
- package/dist/util/unknownArray.d.ts +28 -0
- package/dist/util/useScrollDirection.cjs +39 -0
- package/dist/util/useScrollDirection.d.cts +5 -0
- package/dist/util/useScrollDirection.d.ts +5 -0
- package/dist/util/useScrollDirection.js +38 -0
- package/dist/util/useStickyVisibility.cjs +38 -0
- package/dist/util/useStickyVisibility.d.cts +10 -0
- package/dist/util/useStickyVisibility.d.ts +10 -0
- package/dist/util/useStickyVisibility.js +37 -0
- package/package.json +14 -2
- package/src/components/Accordion/Accordion.tsx +4 -1
- package/src/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.tsx +5 -2
- package/src/components/ButtonBase/ButtonBase.tsx +3 -5
- package/src/components/ButtonBase/types.ts +3 -3
- package/src/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.tsx +4 -1
- package/src/components/FilterScrollbar/AppliedFiltersScrollbar.tsx +5 -2
- package/src/components/FilterScrollbar/DynamicFiltersScrollbar.tsx +4 -1
- package/src/components/ModalSheet/common/closeIcon.tsx +8 -7
- package/src/components/ModalSheet/desktop/index.tsx +1 -1
- package/src/components/ModalSheet/mobile/index.tsx +1 -1
- package/src/components/ModalSheet/mobile/mobileHeader.tsx +4 -1
- package/src/components/ProductCard/ProductCard.tsx +28 -14
- package/src/components/ProductCard/productCardVariants.ts +1 -1
- package/src/components/ProductGrid/ProductGrid.tsx +5 -2
- package/src/components/RadioButton/RadioButton.tsx +15 -2
- package/src/components/RadioButtonGroup/RadioButtonGroup.tsx +1 -1
- package/src/components/RecommendedProducts/RecommendedProducts.tsx +11 -9
- package/src/components/RecommendedProducts/index.ts +1 -1
- package/src/components/SearchAutocomplete/SearchAutocomplete.tsx +25 -19
- package/src/components/SearchFilter/SearchFilter.tsx +24 -10
- package/src/components/SearchFilter/SearchFilterHeader.tsx +4 -1
- package/src/components/SearchFilter/SearchFilterItem.tsx +3 -3
- package/src/components/SearchFilter/types.ts +2 -0
- package/src/components/SearchFilter/useHasFilterStateChanged.tsx +4 -4
- package/src/components/SearchInput/SearchInput.tsx +6 -2
- package/src/components/SearchInput/searchInputVariants.ts +1 -1
- package/src/components/SearchInputForm/SearchInputForm.tsx +4 -7
- package/src/components/SearchResultsContent/SearchResultsContent.tsx +1 -1
- package/src/components/SearchResultsFilterButton/SearchResultsFilterButton.tsx +1 -1
- package/src/components/SearchResultsFilterModal/SearchResultsFilterModal.tsx +4 -1
- package/src/components/SearchResultsFilterSidebar/SearchResultsFilter.tsx +2 -2
- package/src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts +1 -1
- package/src/components/SearchResultsStates/NoSearchResultsFound.tsx +2 -2
- package/src/components/SearchResultsStates/SearchResultsGrid.tsx +2 -2
- package/src/components/SearchResultsStates/SearchResultsLoadingGrid.tsx +9 -5
- package/src/components/SearchResultsToolbar/SearchResultsToolbar.tsx +10 -7
- package/src/components/SparkleAnimation/SparkleAnimation.tsx +17 -8
- package/src/components/SuggestionButton/SuggestionButton.tsx +22 -17
- package/src/components/SuggestionButton/types.ts +1 -1
- package/src/components/TextInput/TextInput.tsx +9 -2
- package/src/components/ToggleButton/ToggleButton.tsx +13 -3
- package/src/components/Typography/Typography.spec.tsx +1 -1
- package/src/components/Typography/util.ts +2 -2
- package/src/models/colorsConfig.ts +2 -1
- package/src/stories/ButtonBase.stories.tsx +1 -1
- package/src/stories/NoSearchResultsFound.stories.tsx +7 -0
- package/src/stories/ProductCardSkeleton.stories.tsx +46 -16
- package/src/stories/SearchResultsFilter.stories.tsx +3 -3
- package/src/stories/SparkleAnimation.stories.tsx +5 -2
- package/src/util/camelCasedPropertiesDeep.ts +0 -1
- package/src/util/colorVar.ts +1 -1
- package/src/util/useScrollDirection.ts +1 -1
- package/src/util/useStickyVisibility.ts +1 -1
- package/dist/ButtonBase-Cb6Iec6f.cjs +0 -0
- package/dist/ButtonBase-D2eXuapk.js +0 -1
- package/dist/FourPointStar-3DqnYmfN.js +0 -21
- package/dist/FourPointStar-AQ9OSu0S.cjs +0 -26
- package/dist/ModalSheet-C5f5abw1.js +0 -301
- package/dist/ModalSheet-JZerJZ1T.cjs +0 -308
- package/dist/OutlinedStar-CC0V_jAK.cjs +0 -26
- package/dist/OutlinedStar-WWs3gRwt.js +0 -21
- package/dist/SearchFilter-BRtCSuAn.cjs +0 -301
- package/dist/SearchFilter-DvJx0b0W.js +0 -264
- package/dist/SearchInput-CImlqrau.cjs +0 -159
- package/dist/SearchInput-kLhxkpgq.js +0 -145
- package/dist/SearchResultsFilterButton-D929tRt9.cjs +0 -96
- package/dist/SearchResultsFilterButton-Dk7u7rgn.js +0 -90
- package/dist/SearchResultsFilterSidebar-BRFONIEq.cjs +0 -118
- package/dist/SearchResultsStates-CQR5Il4l.cjs +0 -196
- package/dist/SearchResultsStates-D7HfsLeZ.js +0 -177
- package/dist/SparkleAnimation-BikAiAmb.cjs +0 -97
- package/dist/components/FilterScrollbar/index-DXcZLcQi.d.cts +0 -47
- package/dist/components/FilterScrollbar/index-DwLyxqQl.d.ts +0 -47
- package/dist/components/ProductCard/index-CglXQ3wh.d.ts +0 -2
- package/dist/components/ProductCard/index-XVlN6iMl.d.cts +0 -2
- package/dist/components/ProductGrid/index-BPBgwFsa.d.cts +0 -35
- package/dist/components/ProductGrid/index-D_YpwJCd.d.ts +0 -35
- package/dist/components/SearchFilter/index-BbIqmoO8.d.ts +0 -91
- package/dist/components/SearchFilter/index-DAL3Wl6U.d.cts +0 -91
- package/dist/components/SearchResultsFilterSidebar/index-C7PE9z5a.d.ts +0 -2
- package/dist/components/SearchResultsFilterSidebar/index-DKzEKFV3.d.cts +0 -2
- package/dist/components/SearchResultsStates/index-Dugoegtn.d.ts +0 -78
- package/dist/components/SearchResultsStates/index-RVgPTFiH.d.cts +0 -78
- package/dist/components/SparkleAnimation/index-BFqUibyY.d.ts +0 -23
- package/dist/components/SparkleAnimation/index-CSBR76H5.d.cts +0 -23
- package/dist/components/Typography/index-DzSBreyM.d.cts +0 -3
- package/dist/components/Typography/index-ymH7f3jB.d.ts +0 -3
- package/dist/index-BCBtAzCc.d.ts +0 -325
- package/dist/index-BiKhzraQ.d.cts +0 -46
- package/dist/index-CzbumwVZ.d.cts +0 -325
- package/dist/index-DK0xpfMg.d.ts +0 -46
- package/dist/jsx-runtime-Dg2m6dxZ-B-pkyyHT.cjs +0 -2586
- package/dist/jsx-runtime-Dg2m6dxZ-CU_SzTu4.js +0 -2580
- package/dist/util/index-C2ueYGXh.d.ts +0 -21
- package/dist/util/index-DUzbpjPa.d.cts +0 -21
- /package/dist/components/ImageWithFallback/{index-BLbkDyG8.d.cts → ImageWithFallback.d.cts} +0 -0
- /package/dist/components/RadioButtonGroup/{index-BOhV-rG3.d.cts → RadioButtonGroup.d.cts} +0 -0
- /package/dist/components/RecommendedProducts/{index-BFM83Qu3.d.cts → RecommendedProducts.d.cts} +0 -0
- /package/dist/components/RecommendedProducts/{index-DlbCfGof.d.ts → RecommendedProducts.d.ts} +0 -0
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { ModalSheetMobileHeader } from "./mobileHeader.js";
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
3
|
+
import { motion } from "framer-motion";
|
|
4
|
+
import classNames from "classnames";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/ModalSheet/mobile/index.tsx
|
|
8
|
+
const ModalSheetMobile = ({ children, isOpen, closeModal, mobileFullHeight = 180, animationDuration, headerProps, footerProps }) => {
|
|
9
|
+
const [isHidden, setIsHidden] = useState(isOpen ? "block" : "none");
|
|
10
|
+
const [bottom, setBottom] = useState(isOpen ? 0 : 0 - mobileFullHeight);
|
|
11
|
+
const [overlayOpacity, setOverlayOpacity] = useState(isOpen ? 1 : 0);
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
setIsHidden(isOpen ? "block" : "none");
|
|
14
|
+
setBottom(isOpen ? 0 : 0 - mobileFullHeight);
|
|
15
|
+
setOverlayOpacity(isOpen ? 1 : 0);
|
|
16
|
+
}, [mobileFullHeight, isOpen]);
|
|
17
|
+
const overlayClassNames = classNames({
|
|
18
|
+
"spiffy-modal-sheet-overlay": true,
|
|
19
|
+
"spiffy-tw-fixed": true,
|
|
20
|
+
"spiffy-tw-inset-0": true,
|
|
21
|
+
"spiffy-tw-top-[0]": true,
|
|
22
|
+
"spiffy-tw-bottom-[0]": true,
|
|
23
|
+
"spiffy-tw-left-[0]": true,
|
|
24
|
+
"spiffy-tw-right-[0]": true,
|
|
25
|
+
"spiffy-tw-bg-black/30": true,
|
|
26
|
+
"spiffy-tw-z-[100]": true
|
|
27
|
+
});
|
|
28
|
+
const modalClassNames = classNames({
|
|
29
|
+
"spiffy-modal-sheet": true,
|
|
30
|
+
"spiffy-modal-sheet-open": isOpen,
|
|
31
|
+
"spiffy-tw-w-full": true,
|
|
32
|
+
"spiffy-tw-overflow-y-auto": true,
|
|
33
|
+
"spiffy-tw-shadow-lg": true,
|
|
34
|
+
"spiffy-tw-fixed": true,
|
|
35
|
+
"spiffy-tw-bg-white": true,
|
|
36
|
+
"spiffy-tw-border-box": true,
|
|
37
|
+
"spiffy-tw-rounded-t-[16px]": true,
|
|
38
|
+
"spiffy-tw-h-[89%]": true,
|
|
39
|
+
"spiffy-tw-max-h-[89%]": true
|
|
40
|
+
});
|
|
41
|
+
const contentClassNames = classNames({
|
|
42
|
+
"spiffy-modal-sheet-content": true,
|
|
43
|
+
"spiffy-tw-flex": true,
|
|
44
|
+
"spiffy-tw-flex-col": true,
|
|
45
|
+
"spiffy-tw-w-full": true,
|
|
46
|
+
"spiffy-tw-h-full": true
|
|
47
|
+
});
|
|
48
|
+
const headerClassNames = classNames({
|
|
49
|
+
"spiffy-tw-sticky": true,
|
|
50
|
+
"spiffy-tw-top-[0px]": true,
|
|
51
|
+
"spiffy-tw-flex": true,
|
|
52
|
+
"spiffy-tw-flex-col": true
|
|
53
|
+
});
|
|
54
|
+
const { footerContent, footerClassName } = footerProps || {};
|
|
55
|
+
const footerClassNames = classNames({
|
|
56
|
+
"spiffy-tw-sticky": true,
|
|
57
|
+
"spiffy-tw-bottom-[0px]": true,
|
|
58
|
+
"spiffy-modal-sheet-footer": true,
|
|
59
|
+
"spiffy-tw-flex": true,
|
|
60
|
+
"spiffy-tw-flex-col": true
|
|
61
|
+
}, footerClassName);
|
|
62
|
+
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(motion.div, {
|
|
63
|
+
className: overlayClassNames,
|
|
64
|
+
animate: {
|
|
65
|
+
opacity: overlayOpacity,
|
|
66
|
+
display: isHidden
|
|
67
|
+
},
|
|
68
|
+
onClick: closeModal,
|
|
69
|
+
children: /* @__PURE__ */ jsx(motion.div, {
|
|
70
|
+
role: "dialog",
|
|
71
|
+
className: modalClassNames,
|
|
72
|
+
initial: {
|
|
73
|
+
bottom,
|
|
74
|
+
display: isHidden
|
|
75
|
+
},
|
|
76
|
+
animate: {
|
|
77
|
+
bottom,
|
|
78
|
+
display: isHidden
|
|
79
|
+
},
|
|
80
|
+
exit: {
|
|
81
|
+
bottom,
|
|
82
|
+
display: isHidden
|
|
83
|
+
},
|
|
84
|
+
transition: {
|
|
85
|
+
duration: animationDuration,
|
|
86
|
+
ease: "easeIn"
|
|
87
|
+
},
|
|
88
|
+
onClick: (e) => e.stopPropagation(),
|
|
89
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
90
|
+
className: contentClassNames,
|
|
91
|
+
children: [
|
|
92
|
+
/* @__PURE__ */ jsx("div", {
|
|
93
|
+
className: headerClassNames,
|
|
94
|
+
children: /* @__PURE__ */ jsx(ModalSheetMobileHeader, {
|
|
95
|
+
headerContent: headerProps.headerContent,
|
|
96
|
+
headerVariant: headerProps?.headerVariant,
|
|
97
|
+
handleHeaderClick: closeModal,
|
|
98
|
+
chevronColor: "#000"
|
|
99
|
+
})
|
|
100
|
+
}),
|
|
101
|
+
children,
|
|
102
|
+
/* @__PURE__ */ jsx("div", { className: "spiffy-tw-flex-grow" }),
|
|
103
|
+
footerContent && /* @__PURE__ */ jsx("div", {
|
|
104
|
+
className: footerClassNames,
|
|
105
|
+
children: footerContent
|
|
106
|
+
})
|
|
107
|
+
]
|
|
108
|
+
})
|
|
109
|
+
})
|
|
110
|
+
}) });
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
//#endregion
|
|
114
|
+
export { ModalSheetMobile };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_AnimatedChevron = require('../../AnimatedChevron/AnimatedChevron.cjs');
|
|
3
|
+
let framer_motion = require("framer-motion");
|
|
4
|
+
let classnames = require("classnames");
|
|
5
|
+
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
|
|
8
|
+
//#region src/components/ModalSheet/mobile/mobileHeader.tsx
|
|
9
|
+
const modalSheetVariants = { primary: {
|
|
10
|
+
"spiffy-tw-bg-[--spiffy-colors-background-primary]": true,
|
|
11
|
+
"spiffy-tw-text-[--spiffy-colors-text-light]": true
|
|
12
|
+
} };
|
|
13
|
+
const ModalSheetMobileHeader = ({ headerVariant = "primary", headerContent, handleHeaderClick, chevronColor }) => {
|
|
14
|
+
const animationKey = (0, framer_motion.useMotionValue)(-1);
|
|
15
|
+
const headerClassName = (0, classnames.default)({
|
|
16
|
+
"spiffy-modal-sheet-header": true,
|
|
17
|
+
"spiffy-tw-flex": true,
|
|
18
|
+
"spiffy-tw-items-center": true,
|
|
19
|
+
"spiffy-tw-justify-between": true,
|
|
20
|
+
"spiffy-tw-w-full": true,
|
|
21
|
+
"spiffy-tw-flex-col": true,
|
|
22
|
+
"spiffy-tw-pt-[16px]": true,
|
|
23
|
+
"spiffy-tw-shadow-[0px_-8px_16px_0px_#0000001A]": true,
|
|
24
|
+
...modalSheetVariants[headerVariant]
|
|
25
|
+
});
|
|
26
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(framer_motion.motion.div, {
|
|
27
|
+
className: headerClassName,
|
|
28
|
+
onTouchStart: handleHeaderClick,
|
|
29
|
+
onMouseDown: handleHeaderClick,
|
|
30
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_AnimatedChevron.AnimatedChevron, {
|
|
31
|
+
animationKey,
|
|
32
|
+
chevronColor
|
|
33
|
+
}), headerContent]
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
exports.ModalSheetMobileHeader = ModalSheetMobileHeader;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { AnimatedChevron } from "../../AnimatedChevron/AnimatedChevron.js";
|
|
2
|
+
import { motion, useMotionValue } from "framer-motion";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/ModalSheet/mobile/mobileHeader.tsx
|
|
7
|
+
const modalSheetVariants = { primary: {
|
|
8
|
+
"spiffy-tw-bg-[--spiffy-colors-background-primary]": true,
|
|
9
|
+
"spiffy-tw-text-[--spiffy-colors-text-light]": true
|
|
10
|
+
} };
|
|
11
|
+
const ModalSheetMobileHeader = ({ headerVariant = "primary", headerContent, handleHeaderClick, chevronColor }) => {
|
|
12
|
+
const animationKey = useMotionValue(-1);
|
|
13
|
+
const headerClassName = classNames({
|
|
14
|
+
"spiffy-modal-sheet-header": true,
|
|
15
|
+
"spiffy-tw-flex": true,
|
|
16
|
+
"spiffy-tw-items-center": true,
|
|
17
|
+
"spiffy-tw-justify-between": true,
|
|
18
|
+
"spiffy-tw-w-full": true,
|
|
19
|
+
"spiffy-tw-flex-col": true,
|
|
20
|
+
"spiffy-tw-pt-[16px]": true,
|
|
21
|
+
"spiffy-tw-shadow-[0px_-8px_16px_0px_#0000001A]": true,
|
|
22
|
+
...modalSheetVariants[headerVariant]
|
|
23
|
+
});
|
|
24
|
+
return /* @__PURE__ */ jsxs(motion.div, {
|
|
25
|
+
className: headerClassName,
|
|
26
|
+
onTouchStart: handleHeaderClick,
|
|
27
|
+
onMouseDown: handleHeaderClick,
|
|
28
|
+
children: [/* @__PURE__ */ jsx(AnimatedChevron, {
|
|
29
|
+
animationKey,
|
|
30
|
+
chevronColor
|
|
31
|
+
}), headerContent]
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
export { ModalSheetMobileHeader };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
2
|
-
|
|
3
1
|
//#region src/components/ModalSheet/types.d.ts
|
|
4
2
|
type ModalSheetProps = {
|
|
5
3
|
children: React.ReactNode;
|
|
@@ -24,15 +22,4 @@ type ModalSheetFooterProps = {
|
|
|
24
22
|
};
|
|
25
23
|
type ModalSheetHeaderVariant = 'primary';
|
|
26
24
|
//#endregion
|
|
27
|
-
|
|
28
|
-
declare const ModalSheet: ({
|
|
29
|
-
children,
|
|
30
|
-
isOpen,
|
|
31
|
-
closeModal,
|
|
32
|
-
animationDuration,
|
|
33
|
-
desktopWidth,
|
|
34
|
-
headerProps,
|
|
35
|
-
footerProps
|
|
36
|
-
}: ModalSheetProps) => react_jsx_runtime1.JSX.Element;
|
|
37
|
-
//#endregion
|
|
38
|
-
export { ModalSheet };
|
|
25
|
+
export { ModalSheetProps };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
2
|
-
|
|
3
1
|
//#region src/components/ModalSheet/types.d.ts
|
|
4
2
|
type ModalSheetProps = {
|
|
5
3
|
children: React.ReactNode;
|
|
@@ -24,15 +22,4 @@ type ModalSheetFooterProps = {
|
|
|
24
22
|
};
|
|
25
23
|
type ModalSheetHeaderVariant = 'primary';
|
|
26
24
|
//#endregion
|
|
27
|
-
|
|
28
|
-
declare const ModalSheet: ({
|
|
29
|
-
children,
|
|
30
|
-
isOpen,
|
|
31
|
-
closeModal,
|
|
32
|
-
animationDuration,
|
|
33
|
-
desktopWidth,
|
|
34
|
-
headerProps,
|
|
35
|
-
footerProps
|
|
36
|
-
}: ModalSheetProps) => react_jsx_runtime4.JSX.Element;
|
|
37
|
-
//#endregion
|
|
38
|
-
export { ModalSheet };
|
|
25
|
+
export { ModalSheetProps };
|
|
@@ -1,77 +1,20 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_formatPrice = require('
|
|
3
|
-
const require_Typography = require('
|
|
4
|
-
|
|
5
|
-
const
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_formatPrice = require('../../util/formatPrice.cjs');
|
|
3
|
+
const require_Typography = require('../Typography/Typography.cjs');
|
|
4
|
+
require('../Typography/index.cjs');
|
|
5
|
+
const require_ImageWithFallback = require('../ImageWithFallback/ImageWithFallback.cjs');
|
|
6
|
+
require('../ImageWithFallback/index.cjs');
|
|
7
|
+
const require_logger = require('../../logging/logger.cjs');
|
|
8
|
+
const require_productCardVariants = require('./productCardVariants.cjs');
|
|
9
|
+
const require_Spinner = require('../Spinner/Spinner.cjs');
|
|
10
|
+
require('../Spinner/index.cjs');
|
|
6
11
|
let classnames = require("classnames");
|
|
7
|
-
classnames =
|
|
12
|
+
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
8
13
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
14
|
let react_icons_md = require("react-icons/md");
|
|
10
15
|
let __envive_ai_react_hooks_hooks_ImageResolver = require("@envive-ai/react-hooks/hooks/ImageResolver");
|
|
11
16
|
let __envive_ai_react_hooks_config = require("@envive-ai/react-hooks/config");
|
|
12
17
|
|
|
13
|
-
//#region src/logging/logger.ts
|
|
14
|
-
var Logger = class {
|
|
15
|
-
static logInfo(message, ...args) {
|
|
16
|
-
console.info(`INFO: ${message}`, ...args);
|
|
17
|
-
}
|
|
18
|
-
static logDebug(message, ...args) {
|
|
19
|
-
console.debug(`DEBUG: ${message}`, ...args);
|
|
20
|
-
}
|
|
21
|
-
static logError(message, error, ...args) {
|
|
22
|
-
console.error(`ERROR: ${message} error=${error}`, args);
|
|
23
|
-
}
|
|
24
|
-
static logWarn(message, error, ...args) {
|
|
25
|
-
console.warn(`WARN: ${message} error=${error}`, args);
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
var logger_default = Logger;
|
|
29
|
-
|
|
30
|
-
//#endregion
|
|
31
|
-
//#region src/components/ProductCard/productCardVariants.ts
|
|
32
|
-
/**
|
|
33
|
-
* Shared variant mapping configurations for ProductCard components
|
|
34
|
-
*/
|
|
35
|
-
const variantClassMap = new Map([
|
|
36
|
-
["filled", ["spiffy-tw-bg-[--spiffy-colors-background-secondary]", "spiffy-tw-shadow-md"]],
|
|
37
|
-
["bordered", [
|
|
38
|
-
"spiffy-tw-bg-[--spiffy-colors-background-secondary]",
|
|
39
|
-
"spiffy-tw-border",
|
|
40
|
-
"spiffy-tw-border-[--spiffy-colors-border-light]"
|
|
41
|
-
]],
|
|
42
|
-
["minimal", ["spiffy-tw-bg-transparent"]],
|
|
43
|
-
["transparentBordered", [
|
|
44
|
-
"spiffy-tw-bg-transparent",
|
|
45
|
-
"spiffy-tw-border",
|
|
46
|
-
"spiffy-tw-border-[--spiffy-colors-border-light]"
|
|
47
|
-
]]
|
|
48
|
-
]);
|
|
49
|
-
const variantHoverClassMap = new Map([["backgroundDark", ["hover:spiffy-tw-bg-[--spiffy-colors-background-secondary-dark]"]], ["none", []]]);
|
|
50
|
-
const variantTitleColorMap = new Map([
|
|
51
|
-
["filled", "spiffy-tw-text-[--spiffy-colors-text-link]"],
|
|
52
|
-
["bordered", "spiffy-tw-text-[--spiffy-colors-text-primary]"],
|
|
53
|
-
["minimal", "spiffy-tw-text-[--spiffy-colors-text-primary]"],
|
|
54
|
-
["transparentBordered", "spiffy-tw-text-[--spiffy-colors-text-primary]"]
|
|
55
|
-
]);
|
|
56
|
-
const productCardLayoutVariantClasses = {
|
|
57
|
-
normal: {
|
|
58
|
-
productTitle: ["spiffy-product-card-title"],
|
|
59
|
-
container: ["spiffy-tw-w-[208px]"],
|
|
60
|
-
verticalContainer: ["spiffy-tw-rounded-[8px]", "spiffy-tw-h-[268px]"]
|
|
61
|
-
},
|
|
62
|
-
tall: {
|
|
63
|
-
productTitle: ["spiffy-product-card-title-tall", "spiffy-tw-pt-[8px]"],
|
|
64
|
-
container: ["spiffy-tw-w-[160px] lg:spiffy-tw-w-[300px]"],
|
|
65
|
-
verticalContainer: ["lg:spiffy-tw-h-[496px]"]
|
|
66
|
-
},
|
|
67
|
-
square: {
|
|
68
|
-
productTitle: ["spiffy-product-card-title-tall", "spiffy-tw-pt-[8px]"],
|
|
69
|
-
container: ["spiffy-tw-w-[160px] lg:spiffy-tw-w-[280px]"],
|
|
70
|
-
verticalContainer: ["lg:spiffy-tw-h-[400px]"]
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
//#endregion
|
|
75
18
|
//#region src/components/ProductCard/ProductCard.tsx
|
|
76
19
|
const formatReviews = (stars) => String(Number(stars).toLocaleString("en-US", {
|
|
77
20
|
minimumFractionDigits: 1,
|
|
@@ -124,17 +67,17 @@ const ProductCard = ({ productCardConfig, merchantShortName, imageUrl, title, ur
|
|
|
124
67
|
const pricePrefix = productCardConfig?.pricePrefix;
|
|
125
68
|
const handleClick = () => onClick();
|
|
126
69
|
if (productCardConfig == null) {
|
|
127
|
-
|
|
70
|
+
require_logger.default.logError("[ProductCard] productCardConfig is null", void 0, { merchant: merchantShortName });
|
|
128
71
|
return null;
|
|
129
72
|
}
|
|
130
|
-
const layoutClasses = productCardLayoutVariantClasses[finalLayoutVariant];
|
|
73
|
+
const layoutClasses = require_productCardVariants.productCardLayoutVariantClasses[finalLayoutVariant];
|
|
131
74
|
const containerClassnames = (0, classnames.default)("spiffy-tw-cursor-pointer", "spiffy-tw-flex", "spiffy-tw-flex-col", "spiffy-tw-gap-inherit", "spiffy-tw-overflow-hidden", {
|
|
132
75
|
"spiffy-tw-h-full": growWithContainer,
|
|
133
76
|
"spiffy-tw-w-full": growWithContainer,
|
|
134
77
|
"spiffy-tw-max-w-full": growWithContainer,
|
|
135
78
|
"spiffy-tw-rounded-[8px]": layoutVariant === "normal"
|
|
136
|
-
}, !growWithContainer && layoutClasses.container, variantClassMap.get(finalVariant) ?? [], variantHoverClassMap.get(finalHoverVariant) ?? []);
|
|
137
|
-
const verticalContainerVariantClasses = productCardLayoutVariantClasses[layoutVariant].verticalContainer;
|
|
79
|
+
}, !growWithContainer && layoutClasses.container, require_productCardVariants.variantClassMap.get(finalVariant) ?? [], require_productCardVariants.variantHoverClassMap.get(finalHoverVariant) ?? []);
|
|
80
|
+
const verticalContainerVariantClasses = require_productCardVariants.productCardLayoutVariantClasses[layoutVariant].verticalContainer;
|
|
138
81
|
const verticalContainerClassnames = (0, classnames.default)("spiffy-tw-flex", "spiffy-tw-flex-col", "spiffy-tw-overflow-hidden", "spiffy-tw-gap-inherit", {
|
|
139
82
|
"spiffy-tw-h-full": growWithContainer,
|
|
140
83
|
"spiffy-tw-w-full": growWithContainer,
|
|
@@ -157,7 +100,7 @@ const ProductCard = ({ productCardConfig, merchantShortName, imageUrl, title, ur
|
|
|
157
100
|
"hover:spiffy-tw-scale-105"
|
|
158
101
|
] : []);
|
|
159
102
|
const contentClassnames = (0, classnames.default)("spiffy-tw-flex", "spiffy-tw-flex-col", "spiffy-tw-p-2", "spiffy-tw-pr-2", "spiffy-tw-items-start", "spiffy-tw-justify-end", { "spiffy-tw-flex-grow-0": layoutVariant === "tall" || layoutVariant === "square" });
|
|
160
|
-
const productTitleClassnames = (0, classnames.default)("spiffy-tw-line-clamp-2", "spiffy-tw-overflow-clip", "spiffy-tw-tracking-[0.8px]", "spiffy-tw-whitespace-normal", "spiffy-tw-normal-case", variantTitleColorMap.get(finalVariant) ?? "spiffy-tw-text-[--spiffy-colors-text-primary]", ...layoutClasses.productTitle);
|
|
103
|
+
const productTitleClassnames = (0, classnames.default)("spiffy-tw-line-clamp-2", "spiffy-tw-overflow-clip", "spiffy-tw-tracking-[0.8px]", "spiffy-tw-whitespace-normal", "spiffy-tw-normal-case", require_productCardVariants.variantTitleColorMap.get(finalVariant) ?? "spiffy-tw-text-[--spiffy-colors-text-primary]", ...layoutClasses.productTitle);
|
|
161
104
|
const priceAndRatingContainerClassnames = (0, classnames.default)("spiffy-tw-flex", "spiffy-tw-flex-row", "spiffy-tw-justify-between", "spiffy-tw-items-center", "spiffy-tw-w-full", "spiffy-tw-pt-2", "spiffy-tw-gap-2");
|
|
162
105
|
const imageClassnames = (0, classnames.default)("spiffy-tw-bg-transparent", "spiffy-tw-w-full", "spiffy-tw-h-full", "spiffy-tw-object-cover", "spiffy-tw-object-top", "spiffy-tw-select-none", "spiffy-tw-pointer-events-none");
|
|
163
106
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
@@ -177,7 +120,7 @@ const ProductCard = ({ productCardConfig, merchantShortName, imageUrl, title, ur
|
|
|
177
120
|
children: imageUrl && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ImageWithFallback.ImageWithFallback, {
|
|
178
121
|
src: resolve(imageUrl, layoutVariant === "tall" ? 300 : 178),
|
|
179
122
|
alt: title,
|
|
180
|
-
fallback: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Spinner.Spinner, { className: "spiffy-tw-
|
|
123
|
+
fallback: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Spinner.Spinner, { className: "spiffy-tw-h-6 spiffy-tw-w-6" }),
|
|
181
124
|
imageClassnames
|
|
182
125
|
})
|
|
183
126
|
})
|
|
@@ -205,101 +148,6 @@ const ProductCard = ({ productCardConfig, merchantShortName, imageUrl, title, ur
|
|
|
205
148
|
};
|
|
206
149
|
|
|
207
150
|
//#endregion
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
ProductCardSkeletonOverrides$1["PRODUCT_CARD_SKELETON"] = "spiffy-product-card-skeleton";
|
|
212
|
-
return ProductCardSkeletonOverrides$1;
|
|
213
|
-
}({});
|
|
214
|
-
let AnimatedProductCardOverrides = /* @__PURE__ */ function(AnimatedProductCardOverrides$1) {
|
|
215
|
-
AnimatedProductCardOverrides$1["PRODUCT_CARD_ANIMATED_CONTAINER"] = "spiffy-product-card-animated-container";
|
|
216
|
-
AnimatedProductCardOverrides$1["PRODUCT_CARD_ANIMATED_IMAGE_CONTAINER"] = "spiffy-product-card-animated";
|
|
217
|
-
return AnimatedProductCardOverrides$1;
|
|
218
|
-
}({});
|
|
219
|
-
|
|
220
|
-
//#endregion
|
|
221
|
-
//#region src/components/ProductCard/ProductCardSkeleton.tsx
|
|
222
|
-
const ProductCardSkeleton = ({ layoutVariant, aspectRatio, growWithContainer = false }) => {
|
|
223
|
-
const layoutClasses = productCardLayoutVariantClasses[layoutVariant || "normal"];
|
|
224
|
-
const containerClasses = (0, classnames.default)(ProductCardSkeletonOverrides.PRODUCT_CARD_SKELETON_CONTAINER, "spiffy-tw-flex", "spiffy-tw-flex-col", "spiffy-tw-gap-inherit", "spiffy-tw-bg-transparent", !growWithContainer ? layoutClasses.container : "");
|
|
225
|
-
const verticalContainerClasses = (0, classnames.default)("spiffy-tw-flex", "spiffy-tw-flex-col", "spiffy-tw-overflow-hidden", "spiffy-tw-gap-inherit", !growWithContainer ? layoutClasses.verticalContainer : "");
|
|
226
|
-
const imageClipContainerClasses = (0, classnames.default)("spiffy-tw-w-full", aspectRatio === "3:4" ? "spiffy-tw-aspect-[3/4]" : "", aspectRatio === "square" ? "spiffy-tw-aspect-square" : "", "spiffy-tw-overflow-hidden");
|
|
227
|
-
const imageSkeletonClasses = (0, classnames.default)("spiffy-tw-bg-[#F4F4F6]", "spiffy-tw-animate-pulse", "spiffy-tw-opacity-70", "spiffy-tw-w-full", "spiffy-tw-h-full");
|
|
228
|
-
const contentContainerClasses = (0, classnames.default)("spiffy-tw-flex", "spiffy-tw-flex-col", "spiffy-tw-gap-2", "spiffy-tw-w-full", "spiffy-tw-p-2");
|
|
229
|
-
const textSkeletonClasses = (0, classnames.default)(ProductCardSkeletonOverrides.PRODUCT_CARD_SKELETON, "spiffy-tw-h-[15px]", "spiffy-tw-block", "spiffy-tw-rounded-sm", "spiffy-tw-animate-pulse", "spiffy-tw-opacity-70", "spiffy-tw-bg-[#F4F4F6]");
|
|
230
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
231
|
-
className: containerClasses,
|
|
232
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
233
|
-
className: verticalContainerClasses,
|
|
234
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
235
|
-
className: imageClipContainerClasses,
|
|
236
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: imageSkeletonClasses })
|
|
237
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
238
|
-
className: contentContainerClasses,
|
|
239
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: (0, classnames.default)(textSkeletonClasses, "spiffy-tw-w-full") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: (0, classnames.default)(textSkeletonClasses, "spiffy-tw-w-[60%]") })]
|
|
240
|
-
})]
|
|
241
|
-
})
|
|
242
|
-
});
|
|
243
|
-
};
|
|
244
|
-
|
|
245
|
-
//#endregion
|
|
246
|
-
Object.defineProperty(exports, 'AnimatedProductCardOverrides', {
|
|
247
|
-
enumerable: true,
|
|
248
|
-
get: function () {
|
|
249
|
-
return AnimatedProductCardOverrides;
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
Object.defineProperty(exports, 'PriceSection', {
|
|
253
|
-
enumerable: true,
|
|
254
|
-
get: function () {
|
|
255
|
-
return PriceSection;
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
Object.defineProperty(exports, 'ProductCard', {
|
|
259
|
-
enumerable: true,
|
|
260
|
-
get: function () {
|
|
261
|
-
return ProductCard;
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
|
-
Object.defineProperty(exports, 'ProductCardSkeleton', {
|
|
265
|
-
enumerable: true,
|
|
266
|
-
get: function () {
|
|
267
|
-
return ProductCardSkeleton;
|
|
268
|
-
}
|
|
269
|
-
});
|
|
270
|
-
Object.defineProperty(exports, 'ProductCardSkeletonOverrides', {
|
|
271
|
-
enumerable: true,
|
|
272
|
-
get: function () {
|
|
273
|
-
return ProductCardSkeletonOverrides;
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
|
-
Object.defineProperty(exports, 'RatingSummary', {
|
|
277
|
-
enumerable: true,
|
|
278
|
-
get: function () {
|
|
279
|
-
return RatingSummary;
|
|
280
|
-
}
|
|
281
|
-
});
|
|
282
|
-
Object.defineProperty(exports, 'productCardLayoutVariantClasses', {
|
|
283
|
-
enumerable: true,
|
|
284
|
-
get: function () {
|
|
285
|
-
return productCardLayoutVariantClasses;
|
|
286
|
-
}
|
|
287
|
-
});
|
|
288
|
-
Object.defineProperty(exports, 'variantClassMap', {
|
|
289
|
-
enumerable: true,
|
|
290
|
-
get: function () {
|
|
291
|
-
return variantClassMap;
|
|
292
|
-
}
|
|
293
|
-
});
|
|
294
|
-
Object.defineProperty(exports, 'variantHoverClassMap', {
|
|
295
|
-
enumerable: true,
|
|
296
|
-
get: function () {
|
|
297
|
-
return variantHoverClassMap;
|
|
298
|
-
}
|
|
299
|
-
});
|
|
300
|
-
Object.defineProperty(exports, 'variantTitleColorMap', {
|
|
301
|
-
enumerable: true,
|
|
302
|
-
get: function () {
|
|
303
|
-
return variantTitleColorMap;
|
|
304
|
-
}
|
|
305
|
-
});
|
|
151
|
+
exports.PriceSection = PriceSection;
|
|
152
|
+
exports.ProductCard = ProductCard;
|
|
153
|
+
exports.RatingSummary = RatingSummary;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { ProductCardConfig, ProductCardHoverVariant, ProductCardLayoutVariant, ProductCardVariant } from "./types.cjs";
|
|
2
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/ProductCard/ProductCard.d.ts
|
|
5
|
+
interface RatingSummaryProps {
|
|
6
|
+
stars: number;
|
|
7
|
+
reviewCount: number;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const RatingSummary: ({
|
|
11
|
+
stars,
|
|
12
|
+
reviewCount,
|
|
13
|
+
className
|
|
14
|
+
}: RatingSummaryProps) => react_jsx_runtime20.JSX.Element;
|
|
15
|
+
interface PriceSectionProps {
|
|
16
|
+
originalPrice?: string;
|
|
17
|
+
salePrice?: string;
|
|
18
|
+
pricePrefix?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const PriceSection: ({
|
|
21
|
+
originalPrice,
|
|
22
|
+
salePrice,
|
|
23
|
+
pricePrefix
|
|
24
|
+
}: PriceSectionProps) => react_jsx_runtime20.JSX.Element;
|
|
25
|
+
interface ProductCardProps {
|
|
26
|
+
productCardConfig?: ProductCardConfig;
|
|
27
|
+
merchantShortName: string;
|
|
28
|
+
title: string;
|
|
29
|
+
url: string;
|
|
30
|
+
imageUrl?: string;
|
|
31
|
+
originalPrice?: number;
|
|
32
|
+
averageRating?: number;
|
|
33
|
+
numberReviews?: number;
|
|
34
|
+
salePrice?: number;
|
|
35
|
+
variant?: ProductCardVariant;
|
|
36
|
+
hoverVariant?: ProductCardHoverVariant;
|
|
37
|
+
layoutVariant?: ProductCardLayoutVariant;
|
|
38
|
+
zoomOnHover?: boolean;
|
|
39
|
+
aspectRatio?: '3:4' | 'square' | 'none';
|
|
40
|
+
growWithContainer?: boolean;
|
|
41
|
+
onClick?: () => void;
|
|
42
|
+
dataTestId?: string;
|
|
43
|
+
}
|
|
44
|
+
declare const ProductCard: ({
|
|
45
|
+
productCardConfig,
|
|
46
|
+
merchantShortName,
|
|
47
|
+
imageUrl,
|
|
48
|
+
title,
|
|
49
|
+
url,
|
|
50
|
+
originalPrice,
|
|
51
|
+
averageRating,
|
|
52
|
+
numberReviews,
|
|
53
|
+
salePrice,
|
|
54
|
+
variant,
|
|
55
|
+
hoverVariant,
|
|
56
|
+
dataTestId,
|
|
57
|
+
layoutVariant,
|
|
58
|
+
zoomOnHover,
|
|
59
|
+
aspectRatio,
|
|
60
|
+
growWithContainer,
|
|
61
|
+
onClick
|
|
62
|
+
}: ProductCardProps) => react_jsx_runtime20.JSX.Element;
|
|
63
|
+
//#endregion
|
|
64
|
+
export { PriceSection, ProductCard, RatingSummary, RatingSummaryProps };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { ProductCardConfig, ProductCardHoverVariant, ProductCardLayoutVariant, ProductCardVariant } from "./types.js";
|
|
2
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/ProductCard/ProductCard.d.ts
|
|
5
|
+
interface RatingSummaryProps {
|
|
6
|
+
stars: number;
|
|
7
|
+
reviewCount: number;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const RatingSummary: ({
|
|
11
|
+
stars,
|
|
12
|
+
reviewCount,
|
|
13
|
+
className
|
|
14
|
+
}: RatingSummaryProps) => react_jsx_runtime23.JSX.Element;
|
|
15
|
+
interface PriceSectionProps {
|
|
16
|
+
originalPrice?: string;
|
|
17
|
+
salePrice?: string;
|
|
18
|
+
pricePrefix?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const PriceSection: ({
|
|
21
|
+
originalPrice,
|
|
22
|
+
salePrice,
|
|
23
|
+
pricePrefix
|
|
24
|
+
}: PriceSectionProps) => react_jsx_runtime23.JSX.Element;
|
|
25
|
+
interface ProductCardProps {
|
|
26
|
+
productCardConfig?: ProductCardConfig;
|
|
27
|
+
merchantShortName: string;
|
|
28
|
+
title: string;
|
|
29
|
+
url: string;
|
|
30
|
+
imageUrl?: string;
|
|
31
|
+
originalPrice?: number;
|
|
32
|
+
averageRating?: number;
|
|
33
|
+
numberReviews?: number;
|
|
34
|
+
salePrice?: number;
|
|
35
|
+
variant?: ProductCardVariant;
|
|
36
|
+
hoverVariant?: ProductCardHoverVariant;
|
|
37
|
+
layoutVariant?: ProductCardLayoutVariant;
|
|
38
|
+
zoomOnHover?: boolean;
|
|
39
|
+
aspectRatio?: '3:4' | 'square' | 'none';
|
|
40
|
+
growWithContainer?: boolean;
|
|
41
|
+
onClick?: () => void;
|
|
42
|
+
dataTestId?: string;
|
|
43
|
+
}
|
|
44
|
+
declare const ProductCard: ({
|
|
45
|
+
productCardConfig,
|
|
46
|
+
merchantShortName,
|
|
47
|
+
imageUrl,
|
|
48
|
+
title,
|
|
49
|
+
url,
|
|
50
|
+
originalPrice,
|
|
51
|
+
averageRating,
|
|
52
|
+
numberReviews,
|
|
53
|
+
salePrice,
|
|
54
|
+
variant,
|
|
55
|
+
hoverVariant,
|
|
56
|
+
dataTestId,
|
|
57
|
+
layoutVariant,
|
|
58
|
+
zoomOnHover,
|
|
59
|
+
aspectRatio,
|
|
60
|
+
growWithContainer,
|
|
61
|
+
onClick
|
|
62
|
+
}: ProductCardProps) => react_jsx_runtime23.JSX.Element;
|
|
63
|
+
//#endregion
|
|
64
|
+
export { PriceSection, ProductCard, RatingSummary, RatingSummaryProps };
|