@envive-ai/react-toolkit 0.2.13 → 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-CbDLau6x.cjs → _virtual/rolldown_runtime.cjs} +1 -6
- package/dist/{types--eyQnaEA.d.cts → atoms/search/types.d.cts} +1 -1
- package/dist/{types-CQpdBL3M.d.ts → atoms/search/types.d.ts} +1 -1
- package/dist/{Accordion-Bc3o-NjV.cjs → components/Accordion/Accordion.cjs} +6 -10
- package/dist/components/Accordion/{index-DJOd-3Pi.d.ts → Accordion.d.cts} +2 -2
- package/dist/components/Accordion/{index-D_7-KJa0.d.cts → Accordion.d.ts} +2 -2
- package/dist/{Accordion-D8Vm8J1y.js → components/Accordion/Accordion.js} +3 -2
- package/dist/components/Accordion/index.cjs +1 -2
- 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 -2
- package/dist/{AnimatedChevron-BKQrUKb5.cjs → components/AnimatedChevron/AnimatedChevron.cjs} +2 -7
- package/dist/components/AnimatedChevron/{index-BfdaL9eW.d.cts → AnimatedChevron.d.cts} +2 -2
- package/dist/components/AnimatedChevron/{index-bNdUYDzX.d.ts → AnimatedChevron.d.ts} +2 -2
- package/dist/{AnimatedChevron-DghLnmlM.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/{index-B68Mx16E.d.cts → AppliedFiltersScrollbar.d.cts} +2 -2
- 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-Bm_QOyM1.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-CT397aT3.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-3ltL6jhO.d.ts → types.d.cts} +4 -19
- package/dist/components/ButtonBase/{index-CcVRnbuQ.d.cts → 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-B483Jhki.d.cts → DynamicFiltersScrollbar.d.cts} +2 -2
- package/dist/components/DynamicFiltersScrollbar/{index-B_a6Oebn.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-bT3VoG-D.cjs → components/FilterScrollbar/AppliedFiltersScrollbar.cjs} +6 -39
- package/dist/components/FilterScrollbar/{index-CISEdkBM.d.ts → AppliedFiltersScrollbar.d.cts} +1 -26
- package/dist/components/{AppliedFiltersScrollbar/index-B9u7XRmf.d.ts → FilterScrollbar/AppliedFiltersScrollbar.d.ts} +1 -1
- package/dist/{DynamicFiltersScrollbar-CibstqNd.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-BiBjNK-9.cjs → components/ImageWithFallback/ImageWithFallback.cjs} +4 -9
- package/dist/components/ImageWithFallback/{index-Dk89vxqv.d.cts → ImageWithFallback.d.cts} +2 -2
- package/dist/components/ImageWithFallback/{index-CCWzf6ZV.d.ts → ImageWithFallback.d.ts} +2 -2
- package/dist/{ImageWithFallback-_QZT0EKI.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-C_8baIZK.d.cts → types.d.cts} +1 -14
- package/dist/components/ModalSheet/{index-CI0qFVA7.d.ts → types.d.ts} +1 -14
- package/dist/{ProductCard-C3seoFWE.cjs → components/ProductCard/ProductCard.cjs} +19 -171
- package/dist/components/ProductCard/ProductCard.d.cts +64 -0
- package/dist/components/ProductCard/ProductCard.d.ts +64 -0
- package/dist/{ProductCard-ChitHvuc.js → components/ProductCard/ProductCard.js} +10 -105
- 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-Ct2DvLGf.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-DukHo_KY.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-D4TPq1Aa.cjs → components/RadioButton/RadioButton.cjs} +5 -9
- package/dist/components/RadioButton/{index-BWo-a19v.d.ts → RadioButton.d.cts} +2 -2
- package/dist/components/RadioButton/{index-DsVASVAv.d.cts → RadioButton.d.ts} +2 -2
- package/dist/{RadioButton-C1w7N40t.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-BhZloLH6.cjs → components/RadioButtonGroup/RadioButtonGroup.cjs} +6 -15
- package/dist/components/RadioButtonGroup/{index-CiljmnzJ.d.cts → RadioButtonGroup.d.cts} +2 -2
- package/dist/components/RadioButtonGroup/{index-DdyMuFCX.d.ts → RadioButtonGroup.d.ts} +2 -2
- package/dist/{RadioButtonGroup-BWQ4-m2M.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-Cy-1szYc.cjs → components/RecommendedProducts/RecommendedProducts.cjs} +7 -10
- package/dist/{RecommendedProducts-DooGvLFT.js → components/RecommendedProducts/RecommendedProducts.js} +5 -3
- package/dist/components/RecommendedProducts/index.cjs +1 -7
- 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 -7
- package/dist/{SearchAutocomplete-C1XH39Xx.cjs → components/SearchAutocomplete/SearchAutocomplete.cjs} +7 -11
- package/dist/components/SearchAutocomplete/{index-BBUrFTl5.d.ts → SearchAutocomplete.d.cts} +2 -2
- package/dist/components/SearchAutocomplete/{index-OVMqT8K4.d.cts → SearchAutocomplete.d.ts} +2 -2
- package/dist/{SearchAutocomplete-CuuN0cDu.js → components/SearchAutocomplete/SearchAutocomplete.js} +3 -2
- package/dist/components/SearchAutocomplete/index.cjs +1 -2
- 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 -2
- 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 -15
- 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 -10
- 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/{SearchInput-Cgsjew8Q.cjs → components/SearchInput/SearchInput.cjs} +10 -32
- package/dist/components/SearchInput/{index-UY0W77Y0.d.ts → SearchInput.d.cts} +1 -15
- package/dist/components/SearchInput/{index-rFDdhvqg.d.cts → SearchInput.d.ts} +1 -15
- package/dist/{SearchInput-DE9Iz7A8.js → components/SearchInput/SearchInput.js} +4 -15
- package/dist/components/SearchInput/index.cjs +3 -5
- 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 -4
- 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-CSd4tjts.cjs → components/SearchInputForm/SearchInputForm.cjs} +8 -11
- package/dist/components/SearchInputForm/{index-D1F37qNH.d.ts → SearchInputForm.d.cts} +3 -3
- package/dist/components/SearchInputForm/{index-B3A17s3e.d.cts → SearchInputForm.d.ts} +3 -3
- package/dist/{SearchInputForm--CvVrjwl.js → components/SearchInputForm/SearchInputForm.js} +5 -3
- package/dist/components/SearchInputForm/index.cjs +1 -6
- 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 -6
- package/dist/components/SearchResultsContent/SearchResultsContent.cjs +52 -0
- package/dist/components/SearchResultsContent/{index-BI4Dm7mI.d.ts → SearchResultsContent.d.cts} +5 -5
- package/dist/components/SearchResultsContent/{index-B66EnbgF.d.cts → SearchResultsContent.d.ts} +5 -5
- package/dist/components/SearchResultsContent/SearchResultsContent.js +50 -0
- package/dist/components/SearchResultsContent/index.cjs +2 -59
- 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 -56
- package/dist/{SearchResultsFilterButton-BQqm4icD.cjs → components/SearchResultsFilterButton/SearchResultsFilterButton.cjs} +6 -10
- package/dist/components/SearchResultsFilterButton/{index-CCVZZUTR.d.cts → SearchResultsFilterButton.d.cts} +2 -2
- package/dist/components/SearchResultsFilterButton/{index-Cjq_NOxx.d.ts → SearchResultsFilterButton.d.ts} +2 -2
- package/dist/{SearchResultsFilterButton-CV11UTGi.js → components/SearchResultsFilterButton/SearchResultsFilterButton.js} +4 -3
- package/dist/components/SearchResultsFilterButton/index.cjs +1 -4
- 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 -4
- package/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.cjs +36 -0
- package/dist/components/SearchResultsFilterModal/{index-CMWDFJWT.d.cts → SearchResultsFilterModal.d.cts} +3 -3
- package/dist/components/SearchResultsFilterModal/{index-Ba84MNoM.d.ts → SearchResultsFilterModal.d.ts} +3 -3
- package/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.js +35 -0
- package/dist/components/SearchResultsFilterModal/index.cjs +2 -43
- 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 -41
- 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-ydSo1S6h.js → components/SearchResultsFilterSidebar/SearchResultsFilter.js} +9 -72
- package/dist/components/SearchResultsFilterSidebar/index.cjs +3 -14
- 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 -13
- package/dist/{searchFilterSidebarVariants-C61Byr1S.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-DcwlBfvY.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 -15
- 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 -12
- package/dist/components/SearchResultsToolbar/SearchResultsToolbar.cjs +60 -0
- package/dist/components/SearchResultsToolbar/{index-_hxKcDDT.d.ts → SearchResultsToolbar.d.cts} +2 -2
- package/dist/components/SearchResultsToolbar/{index-M8RkRW3H.d.cts → SearchResultsToolbar.d.ts} +2 -2
- package/dist/components/SearchResultsToolbar/SearchResultsToolbar.js +57 -0
- package/dist/components/SearchResultsToolbar/index.cjs +2 -64
- 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 -60
- package/dist/{SparkleAnimation-Bg5qax1t.cjs → components/SparkleAnimation/SparkleAnimation.cjs} +9 -29
- package/dist/components/SparkleAnimation/SparkleAnimation.d.cts +15 -0
- package/dist/components/SparkleAnimation/SparkleAnimation.d.ts +15 -0
- package/dist/{SparkleAnimation-HY4cgwE3.js → components/SparkleAnimation/SparkleAnimation.js} +2 -11
- package/dist/components/SparkleAnimation/index.cjs +3 -2
- 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 -1
- 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-CUrXDajS.cjs → components/Spinner/Spinner.cjs} +3 -8
- package/dist/components/Spinner/{index-DrYhRG9D.d.cts → Spinner.d.cts} +2 -2
- package/dist/components/Spinner/{index-C876igqb.d.ts → Spinner.d.ts} +2 -2
- package/dist/{Spinner-CDDFWySo.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-CrGSb18s.d.ts → SuggestionButton.d.cts} +6 -8
- package/dist/components/SuggestionButton/{index-DfQRQGev.d.cts → SuggestionButton.d.ts} +6 -8
- package/dist/components/SuggestionButton/SuggestionButton.js +188 -0
- package/dist/components/SuggestionButton/index.cjs +5 -192
- 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 -184
- package/dist/components/SuggestionButton/types.d.cts +4 -0
- package/dist/components/SuggestionButton/types.d.ts +4 -0
- package/dist/{TextInput-DfCocKVm.cjs → components/TextInput/TextInput.cjs} +7 -11
- package/dist/components/TextInput/{index-CkQtHiR9.d.ts → TextInput.d.cts} +1 -2
- package/dist/components/TextInput/{index-CRJMRe-b.d.cts → TextInput.d.ts} +1 -2
- package/dist/{TextInput-PtrUXoZo.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-BhBEOjxO.cjs → components/ToggleButton/ToggleButton.cjs} +5 -9
- package/dist/components/ToggleButton/{index-DFz4kch0.d.ts → ToggleButton.d.cts} +2 -2
- package/dist/components/ToggleButton/{index-CpURpMq5.d.cts → ToggleButton.d.ts} +2 -2
- package/dist/{ToggleButton-BTz_zIdc.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-Cr8VXccr.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-CrT5OfVw.d.ts → components/Typography/typographyVariantClasses.d.ts} +1 -1
- package/dist/{Typography-Csg-nd_w.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-D-MZuBvt.cjs → models/colorsConfig.cjs} +2 -12
- package/dist/{colorsConfig-BjdoRtRK.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 +1 -2
- package/src/components/ButtonBase/ButtonBase.tsx +3 -5
- package/src/components/ButtonBase/types.ts +3 -3
- package/src/components/ModalSheet/common/closeIcon.tsx +3 -6
- package/src/components/ProductCard/ProductCard.tsx +2 -2
- package/src/components/SearchFilter/types.ts +2 -0
- package/src/components/SearchResultsFilterButton/SearchResultsFilterButton.tsx +1 -1
- package/src/components/SearchResultsFilterSidebar/SearchResultsFilter.tsx +2 -2
- package/src/components/SuggestionButton/SuggestionButton.tsx +17 -12
- package/src/stories/ButtonBase.stories.tsx +1 -1
- package/src/stories/ProductCardSkeleton.stories.tsx +46 -16
- package/src/stories/SearchResultsFilter.stories.tsx +2 -2
- package/dist/ButtonBase-BIXx56hq.cjs +0 -0
- package/dist/ButtonBase-C9fn-c5h.js +0 -1
- package/dist/ModalSheet-BuCtRDnQ.cjs +0 -308
- package/dist/ModalSheet-DVrY7Mw0.js +0 -301
- package/dist/SearchFilter-CnP71PTj.cjs +0 -301
- package/dist/SearchFilter-DsYF1A5n.js +0 -264
- package/dist/SearchResultsFilterSidebar-U6dFy-Jo.cjs +0 -118
- package/dist/SearchResultsStates-BCeqeo9y.js +0 -138
- package/dist/SearchResultsStates-Dp-AsmH8.cjs +0 -158
- package/dist/components/FilterScrollbar/index-BmHm47DA.d.cts +0 -47
- package/dist/components/ProductCard/index-D5om2RVT.d.ts +0 -2
- package/dist/components/ProductCard/index-Djjvdeh7.d.cts +0 -2
- package/dist/components/ProductGrid/index-AxMBGLVk.d.ts +0 -35
- package/dist/components/ProductGrid/index-C4Tz_KWs.d.cts +0 -35
- package/dist/components/SearchFilter/index-BDaLJW2Q.d.cts +0 -91
- package/dist/components/SearchFilter/index-DESOqSJQ.d.ts +0 -91
- package/dist/components/SearchResultsFilterSidebar/index-DmO55w4A.d.ts +0 -2
- package/dist/components/SearchResultsFilterSidebar/index-Dtr9q9hT.d.cts +0 -2
- package/dist/components/SearchResultsStates/index-Ba3tQMCI.d.ts +0 -78
- package/dist/components/SearchResultsStates/index-DN1-g87W.d.cts +0 -78
- package/dist/components/SparkleAnimation/index-BMrS1PDU.d.cts +0 -23
- package/dist/components/SparkleAnimation/index-t59eI0td.d.ts +0 -23
- package/dist/components/Typography/index-DE1Nhjra.d.ts +0 -3
- package/dist/components/Typography/index-DzSBreyM.d.cts +0 -3
- package/dist/index-1GZFptEC.d.cts +0 -325
- package/dist/index-CBI4Lqsm.d.cts +0 -46
- package/dist/index-pZZXXUG_.d.ts +0 -46
- package/dist/index-yDKT5Bem.d.ts +0 -325
- package/dist/util/index-C2ueYGXh.d.ts +0 -21
- package/dist/util/index-DUzbpjPa.d.cts +0 -21
- /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,57 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_Typography = require('../Typography/Typography.cjs');
|
|
3
|
+
require('../Typography/index.cjs');
|
|
4
|
+
const require_RecommendedProducts = require('../RecommendedProducts/RecommendedProducts.cjs');
|
|
5
|
+
require('../RecommendedProducts/index.cjs');
|
|
6
|
+
let classnames = require("classnames");
|
|
7
|
+
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
+
let __envive_ai_react_icons_Sparkles = require("@envive-ai/react-icons/Sparkles");
|
|
10
|
+
__envive_ai_react_icons_Sparkles = require_rolldown_runtime.__toESM(__envive_ai_react_icons_Sparkles);
|
|
11
|
+
|
|
12
|
+
//#region src/components/SearchResultsStates/NoSearchResultsFound.tsx
|
|
13
|
+
const NoSearchResultsFound = ({ containerPaddingClasses, noResultsFoundText, sparkleIconColor = "var(--spiffy-colors-accent-primary)", recommendedProducts, searchText, merchantShortName, productGridVariant }) => {
|
|
14
|
+
const containerClasses = (0, classnames.default)(containerPaddingClasses, "spiffy-tw-mt-6", { "spiffy-tw-mb-[100vh]": recommendedProducts.length === 0 });
|
|
15
|
+
let textPrompt;
|
|
16
|
+
if (recommendedProducts.length > 0) textPrompt = noResultsFoundText ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: noResultsFoundText }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { children: [
|
|
17
|
+
"I’m sorry, I wasn’t able to find an exact match for",
|
|
18
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("strong", {
|
|
19
|
+
className: "spiffy-tw-font-semibold",
|
|
20
|
+
children: [" ", `"${searchText}".`]
|
|
21
|
+
}),
|
|
22
|
+
" Try changing your filters or adjusting your search query. In the meantime, explore some of our top-selling products below."
|
|
23
|
+
] });
|
|
24
|
+
else textPrompt = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { children: [
|
|
25
|
+
"I’m sorry, I wasn’t able to find an exact match for",
|
|
26
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("strong", {
|
|
27
|
+
className: "spiffy-tw-font-semibold",
|
|
28
|
+
children: [" ", `"${searchText}."`]
|
|
29
|
+
}),
|
|
30
|
+
" Try changing your filters or adjusting your search query."
|
|
31
|
+
] });
|
|
32
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
33
|
+
className: containerClasses,
|
|
34
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
35
|
+
className: "spiffy-tw-flex spiffy-tw-items-start spiffy-tw-gap-2",
|
|
36
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_Sparkles.default, {
|
|
37
|
+
className: "spiffy-tw-h-[24px] spiffy-tw-w-[24px]",
|
|
38
|
+
style: { color: sparkleIconColor }
|
|
39
|
+
}) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
40
|
+
variant: "body2",
|
|
41
|
+
children: textPrompt
|
|
42
|
+
})]
|
|
43
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_RecommendedProducts.RecommendedProducts, {
|
|
44
|
+
retrievedProducts: recommendedProducts,
|
|
45
|
+
merchantShortName,
|
|
46
|
+
productCardConfig: {
|
|
47
|
+
variant: "minimal",
|
|
48
|
+
hoverVariant: "none",
|
|
49
|
+
layoutVariant: "square"
|
|
50
|
+
},
|
|
51
|
+
productGridVariant
|
|
52
|
+
})]
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
//#endregion
|
|
57
|
+
exports.NoSearchResultsFound = NoSearchResultsFound;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ProductGridVariant } from "../ProductCard/types.cjs";
|
|
2
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
3
|
+
import { SearchResponseProductAttributes } from "@envive-ai/react-hooks/application/models";
|
|
4
|
+
|
|
5
|
+
//#region src/components/SearchResultsStates/NoSearchResultsFound.d.ts
|
|
6
|
+
interface NoSearchResultsFoundProps {
|
|
7
|
+
containerPaddingClasses: string;
|
|
8
|
+
noResultsFoundText?: string;
|
|
9
|
+
sparkleIconColor?: string;
|
|
10
|
+
recommendedProducts: SearchResponseProductAttributes['attributes'][];
|
|
11
|
+
searchText: string;
|
|
12
|
+
merchantShortName: string;
|
|
13
|
+
productGridVariant: ProductGridVariant;
|
|
14
|
+
}
|
|
15
|
+
declare const NoSearchResultsFound: ({
|
|
16
|
+
containerPaddingClasses,
|
|
17
|
+
noResultsFoundText,
|
|
18
|
+
sparkleIconColor,
|
|
19
|
+
recommendedProducts,
|
|
20
|
+
searchText,
|
|
21
|
+
merchantShortName,
|
|
22
|
+
productGridVariant
|
|
23
|
+
}: NoSearchResultsFoundProps) => react_jsx_runtime4.JSX.Element;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { NoSearchResultsFound };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ProductGridVariant } from "../ProductCard/types.js";
|
|
2
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
3
|
+
import { SearchResponseProductAttributes } from "@envive-ai/react-hooks/application/models";
|
|
4
|
+
|
|
5
|
+
//#region src/components/SearchResultsStates/NoSearchResultsFound.d.ts
|
|
6
|
+
interface NoSearchResultsFoundProps {
|
|
7
|
+
containerPaddingClasses: string;
|
|
8
|
+
noResultsFoundText?: string;
|
|
9
|
+
sparkleIconColor?: string;
|
|
10
|
+
recommendedProducts: SearchResponseProductAttributes['attributes'][];
|
|
11
|
+
searchText: string;
|
|
12
|
+
merchantShortName: string;
|
|
13
|
+
productGridVariant: ProductGridVariant;
|
|
14
|
+
}
|
|
15
|
+
declare const NoSearchResultsFound: ({
|
|
16
|
+
containerPaddingClasses,
|
|
17
|
+
noResultsFoundText,
|
|
18
|
+
sparkleIconColor,
|
|
19
|
+
recommendedProducts,
|
|
20
|
+
searchText,
|
|
21
|
+
merchantShortName,
|
|
22
|
+
productGridVariant
|
|
23
|
+
}: NoSearchResultsFoundProps) => react_jsx_runtime6.JSX.Element;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { NoSearchResultsFound };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Typography } from "../Typography/Typography.js";
|
|
2
|
+
import "../Typography/index.js";
|
|
3
|
+
import { RecommendedProducts } from "../RecommendedProducts/RecommendedProducts.js";
|
|
4
|
+
import "../RecommendedProducts/index.js";
|
|
5
|
+
import classNames from "classnames";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import Sparkles from "@envive-ai/react-icons/Sparkles";
|
|
8
|
+
|
|
9
|
+
//#region src/components/SearchResultsStates/NoSearchResultsFound.tsx
|
|
10
|
+
const NoSearchResultsFound = ({ containerPaddingClasses, noResultsFoundText, sparkleIconColor = "var(--spiffy-colors-accent-primary)", recommendedProducts, searchText, merchantShortName, productGridVariant }) => {
|
|
11
|
+
const containerClasses = classNames(containerPaddingClasses, "spiffy-tw-mt-6", { "spiffy-tw-mb-[100vh]": recommendedProducts.length === 0 });
|
|
12
|
+
let textPrompt;
|
|
13
|
+
if (recommendedProducts.length > 0) textPrompt = noResultsFoundText ? /* @__PURE__ */ jsx("span", { children: noResultsFoundText }) : /* @__PURE__ */ jsxs("span", { children: [
|
|
14
|
+
"I’m sorry, I wasn’t able to find an exact match for",
|
|
15
|
+
/* @__PURE__ */ jsxs("strong", {
|
|
16
|
+
className: "spiffy-tw-font-semibold",
|
|
17
|
+
children: [" ", `"${searchText}".`]
|
|
18
|
+
}),
|
|
19
|
+
" Try changing your filters or adjusting your search query. In the meantime, explore some of our top-selling products below."
|
|
20
|
+
] });
|
|
21
|
+
else textPrompt = /* @__PURE__ */ jsxs("span", { children: [
|
|
22
|
+
"I’m sorry, I wasn’t able to find an exact match for",
|
|
23
|
+
/* @__PURE__ */ jsxs("strong", {
|
|
24
|
+
className: "spiffy-tw-font-semibold",
|
|
25
|
+
children: [" ", `"${searchText}."`]
|
|
26
|
+
}),
|
|
27
|
+
" Try changing your filters or adjusting your search query."
|
|
28
|
+
] });
|
|
29
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
30
|
+
className: containerClasses,
|
|
31
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
32
|
+
className: "spiffy-tw-flex spiffy-tw-items-start spiffy-tw-gap-2",
|
|
33
|
+
children: [/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Sparkles, {
|
|
34
|
+
className: "spiffy-tw-h-[24px] spiffy-tw-w-[24px]",
|
|
35
|
+
style: { color: sparkleIconColor }
|
|
36
|
+
}) }), /* @__PURE__ */ jsx(Typography, {
|
|
37
|
+
variant: "body2",
|
|
38
|
+
children: textPrompt
|
|
39
|
+
})]
|
|
40
|
+
}), /* @__PURE__ */ jsx(RecommendedProducts, {
|
|
41
|
+
retrievedProducts: recommendedProducts,
|
|
42
|
+
merchantShortName,
|
|
43
|
+
productCardConfig: {
|
|
44
|
+
variant: "minimal",
|
|
45
|
+
hoverVariant: "none",
|
|
46
|
+
layoutVariant: "square"
|
|
47
|
+
},
|
|
48
|
+
productGridVariant
|
|
49
|
+
})]
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
//#endregion
|
|
54
|
+
export { NoSearchResultsFound };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_AppliedFiltersScrollbar = require('../FilterScrollbar/AppliedFiltersScrollbar.cjs');
|
|
3
|
+
const require_DynamicFiltersScrollbar = require('../FilterScrollbar/DynamicFiltersScrollbar.cjs');
|
|
4
|
+
const require_ProductGrid = require('../ProductGrid/ProductGrid.cjs');
|
|
5
|
+
require('../ProductGrid/index.cjs');
|
|
6
|
+
const require_searchFilterSidebarVariants = require('../SearchResultsFilterSidebar/searchFilterSidebarVariants.cjs');
|
|
7
|
+
let framer_motion = require("framer-motion");
|
|
8
|
+
let classnames = require("classnames");
|
|
9
|
+
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
10
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
|
+
|
|
12
|
+
//#region src/components/SearchResultsStates/SearchResultsGrid.tsx
|
|
13
|
+
const SearchResultsGrid = ({ productList, productCardConfig, merchantShortName, availableDynamicFilters, searchFilterSidebarVariant, productGridVariant, selectedFilterOptions, containerXPaddingClasses, productGridClasses, onRemoveFilter, onToggleDynamicFilter, onProductClick }) => {
|
|
14
|
+
const sharedFilterBarClasses = (0, classnames.default)("spiffy-suggestion-bar", "spiffy-tw-no-scrollbar", "spiffy-tw-flex", "spiffy-tw-flex-row", "spiffy-tw-gap-2", "spiffy-tw-mb-[16px]", "spiffy-tw-overflow-x-scroll", containerXPaddingClasses);
|
|
15
|
+
const filterBarClasses = (0, classnames.default)(sharedFilterBarClasses, "spiffy-tw-mt-[24px]");
|
|
16
|
+
const appliedFilterBarClasses = (0, classnames.default)(sharedFilterBarClasses, "spiffy-tw-mb-[32px]", "spiffy-tw-mt-[8px]");
|
|
17
|
+
const { filterDefaultClasses, filterHoverClasses, appliedFilterBackgroundClasses } = require_searchFilterSidebarVariants.searchFilterSidebarVariantClasses[searchFilterSidebarVariant];
|
|
18
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(framer_motion.motion.div, {
|
|
19
|
+
className: "spiffy-tw-w-full spiffy-tw-justify-center spiffy-tw-overflow-hidden",
|
|
20
|
+
initial: { opacity: 0 },
|
|
21
|
+
animate: { opacity: 1 },
|
|
22
|
+
exit: { opacity: 0 },
|
|
23
|
+
transition: { duration: .2 },
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_AppliedFiltersScrollbar.AppliedFiltersScrollbar, {
|
|
26
|
+
selectedFilterOptions,
|
|
27
|
+
filterBarClassNames: appliedFilterBarClasses,
|
|
28
|
+
filterDefaultClasses,
|
|
29
|
+
filterHoverClasses,
|
|
30
|
+
appliedFilterBackgroundClasses,
|
|
31
|
+
onRemoveFilter
|
|
32
|
+
}),
|
|
33
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_DynamicFiltersScrollbar.DynamicFiltersScrollbar, {
|
|
34
|
+
availableDynamicFilters,
|
|
35
|
+
filterBarClassNames: filterBarClasses,
|
|
36
|
+
filterDefaultClasses,
|
|
37
|
+
filterHoverClasses,
|
|
38
|
+
onToggleDynamicFilter
|
|
39
|
+
}),
|
|
40
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProductGrid.ProductGrid, {
|
|
41
|
+
productList,
|
|
42
|
+
productGridVariant,
|
|
43
|
+
productGridClasses,
|
|
44
|
+
productCardConfig,
|
|
45
|
+
merchantShortName,
|
|
46
|
+
onProductClick
|
|
47
|
+
})
|
|
48
|
+
]
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
//#endregion
|
|
53
|
+
exports.SearchResultsGrid = SearchResultsGrid;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ProductCardConfig, ProductGridVariant } from "../ProductCard/types.cjs";
|
|
2
|
+
import { SearchFilterSidebarVariant } from "../SearchResultsFilterSidebar/types.cjs";
|
|
3
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
4
|
+
import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
|
|
5
|
+
import { SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
|
|
6
|
+
|
|
7
|
+
//#region src/components/SearchResultsStates/SearchResultsGrid.d.ts
|
|
8
|
+
interface SearchResultsGridProps {
|
|
9
|
+
productList: SearchResponseProduct[];
|
|
10
|
+
productCardConfig: ProductCardConfig;
|
|
11
|
+
merchantShortName: string;
|
|
12
|
+
availableDynamicFilters: {
|
|
13
|
+
name: string;
|
|
14
|
+
displayName: string;
|
|
15
|
+
}[];
|
|
16
|
+
searchFilterSidebarVariant: SearchFilterSidebarVariant;
|
|
17
|
+
productGridVariant: ProductGridVariant;
|
|
18
|
+
selectedFilterOptions: SelectedFilterOption[];
|
|
19
|
+
containerXPaddingClasses: string;
|
|
20
|
+
productGridClasses: string;
|
|
21
|
+
onProductClick?: () => void;
|
|
22
|
+
onRemoveFilter: (filter: SelectedFilterOption) => void;
|
|
23
|
+
onToggleDynamicFilter: ({
|
|
24
|
+
filter,
|
|
25
|
+
dynamicFilterDisplayName
|
|
26
|
+
}: {
|
|
27
|
+
filter: string;
|
|
28
|
+
dynamicFilterDisplayName: string;
|
|
29
|
+
}) => void;
|
|
30
|
+
}
|
|
31
|
+
declare const SearchResultsGrid: ({
|
|
32
|
+
productList,
|
|
33
|
+
productCardConfig,
|
|
34
|
+
merchantShortName,
|
|
35
|
+
availableDynamicFilters,
|
|
36
|
+
searchFilterSidebarVariant,
|
|
37
|
+
productGridVariant,
|
|
38
|
+
selectedFilterOptions,
|
|
39
|
+
containerXPaddingClasses,
|
|
40
|
+
productGridClasses,
|
|
41
|
+
onRemoveFilter,
|
|
42
|
+
onToggleDynamicFilter,
|
|
43
|
+
onProductClick
|
|
44
|
+
}: SearchResultsGridProps) => react_jsx_runtime5.JSX.Element;
|
|
45
|
+
//#endregion
|
|
46
|
+
export { SearchResultsGrid };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ProductCardConfig, ProductGridVariant } from "../ProductCard/types.js";
|
|
2
|
+
import { SearchFilterSidebarVariant } from "../SearchResultsFilterSidebar/types.js";
|
|
3
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
4
|
+
import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
|
|
5
|
+
import { SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
|
|
6
|
+
|
|
7
|
+
//#region src/components/SearchResultsStates/SearchResultsGrid.d.ts
|
|
8
|
+
interface SearchResultsGridProps {
|
|
9
|
+
productList: SearchResponseProduct[];
|
|
10
|
+
productCardConfig: ProductCardConfig;
|
|
11
|
+
merchantShortName: string;
|
|
12
|
+
availableDynamicFilters: {
|
|
13
|
+
name: string;
|
|
14
|
+
displayName: string;
|
|
15
|
+
}[];
|
|
16
|
+
searchFilterSidebarVariant: SearchFilterSidebarVariant;
|
|
17
|
+
productGridVariant: ProductGridVariant;
|
|
18
|
+
selectedFilterOptions: SelectedFilterOption[];
|
|
19
|
+
containerXPaddingClasses: string;
|
|
20
|
+
productGridClasses: string;
|
|
21
|
+
onProductClick?: () => void;
|
|
22
|
+
onRemoveFilter: (filter: SelectedFilterOption) => void;
|
|
23
|
+
onToggleDynamicFilter: ({
|
|
24
|
+
filter,
|
|
25
|
+
dynamicFilterDisplayName
|
|
26
|
+
}: {
|
|
27
|
+
filter: string;
|
|
28
|
+
dynamicFilterDisplayName: string;
|
|
29
|
+
}) => void;
|
|
30
|
+
}
|
|
31
|
+
declare const SearchResultsGrid: ({
|
|
32
|
+
productList,
|
|
33
|
+
productCardConfig,
|
|
34
|
+
merchantShortName,
|
|
35
|
+
availableDynamicFilters,
|
|
36
|
+
searchFilterSidebarVariant,
|
|
37
|
+
productGridVariant,
|
|
38
|
+
selectedFilterOptions,
|
|
39
|
+
containerXPaddingClasses,
|
|
40
|
+
productGridClasses,
|
|
41
|
+
onRemoveFilter,
|
|
42
|
+
onToggleDynamicFilter,
|
|
43
|
+
onProductClick
|
|
44
|
+
}: SearchResultsGridProps) => react_jsx_runtime8.JSX.Element;
|
|
45
|
+
//#endregion
|
|
46
|
+
export { SearchResultsGrid };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { AppliedFiltersScrollbar } from "../FilterScrollbar/AppliedFiltersScrollbar.js";
|
|
2
|
+
import { DynamicFiltersScrollbar } from "../FilterScrollbar/DynamicFiltersScrollbar.js";
|
|
3
|
+
import { ProductGrid } from "../ProductGrid/ProductGrid.js";
|
|
4
|
+
import "../ProductGrid/index.js";
|
|
5
|
+
import { searchFilterSidebarVariantClasses } from "../SearchResultsFilterSidebar/searchFilterSidebarVariants.js";
|
|
6
|
+
import { motion } from "framer-motion";
|
|
7
|
+
import classNames from "classnames";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
|
|
10
|
+
//#region src/components/SearchResultsStates/SearchResultsGrid.tsx
|
|
11
|
+
const SearchResultsGrid = ({ productList, productCardConfig, merchantShortName, availableDynamicFilters, searchFilterSidebarVariant, productGridVariant, selectedFilterOptions, containerXPaddingClasses, productGridClasses, onRemoveFilter, onToggleDynamicFilter, onProductClick }) => {
|
|
12
|
+
const sharedFilterBarClasses = classNames("spiffy-suggestion-bar", "spiffy-tw-no-scrollbar", "spiffy-tw-flex", "spiffy-tw-flex-row", "spiffy-tw-gap-2", "spiffy-tw-mb-[16px]", "spiffy-tw-overflow-x-scroll", containerXPaddingClasses);
|
|
13
|
+
const filterBarClasses = classNames(sharedFilterBarClasses, "spiffy-tw-mt-[24px]");
|
|
14
|
+
const appliedFilterBarClasses = classNames(sharedFilterBarClasses, "spiffy-tw-mb-[32px]", "spiffy-tw-mt-[8px]");
|
|
15
|
+
const { filterDefaultClasses, filterHoverClasses, appliedFilterBackgroundClasses } = searchFilterSidebarVariantClasses[searchFilterSidebarVariant];
|
|
16
|
+
return /* @__PURE__ */ jsxs(motion.div, {
|
|
17
|
+
className: "spiffy-tw-w-full spiffy-tw-justify-center spiffy-tw-overflow-hidden",
|
|
18
|
+
initial: { opacity: 0 },
|
|
19
|
+
animate: { opacity: 1 },
|
|
20
|
+
exit: { opacity: 0 },
|
|
21
|
+
transition: { duration: .2 },
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ jsx(AppliedFiltersScrollbar, {
|
|
24
|
+
selectedFilterOptions,
|
|
25
|
+
filterBarClassNames: appliedFilterBarClasses,
|
|
26
|
+
filterDefaultClasses,
|
|
27
|
+
filterHoverClasses,
|
|
28
|
+
appliedFilterBackgroundClasses,
|
|
29
|
+
onRemoveFilter
|
|
30
|
+
}),
|
|
31
|
+
/* @__PURE__ */ jsx(DynamicFiltersScrollbar, {
|
|
32
|
+
availableDynamicFilters,
|
|
33
|
+
filterBarClassNames: filterBarClasses,
|
|
34
|
+
filterDefaultClasses,
|
|
35
|
+
filterHoverClasses,
|
|
36
|
+
onToggleDynamicFilter
|
|
37
|
+
}),
|
|
38
|
+
/* @__PURE__ */ jsx(ProductGrid, {
|
|
39
|
+
productList,
|
|
40
|
+
productGridVariant,
|
|
41
|
+
productGridClasses,
|
|
42
|
+
productCardConfig,
|
|
43
|
+
merchantShortName,
|
|
44
|
+
onProductClick
|
|
45
|
+
})
|
|
46
|
+
]
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
export { SearchResultsGrid };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_Typography = require('../Typography/Typography.cjs');
|
|
3
|
+
require('../Typography/index.cjs');
|
|
4
|
+
const require_ProductCardSkeleton = require('../ProductCard/ProductCardSkeleton.cjs');
|
|
5
|
+
require('../ProductCard/index.cjs');
|
|
6
|
+
const require_productGridVariants = require('../ProductGrid/productGridVariants.cjs');
|
|
7
|
+
require('../ProductGrid/index.cjs');
|
|
8
|
+
const require_SparkleAnimation = require('../SparkleAnimation/SparkleAnimation.cjs');
|
|
9
|
+
require('../SparkleAnimation/index.cjs');
|
|
10
|
+
let framer_motion = require("framer-motion");
|
|
11
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
12
|
+
|
|
13
|
+
//#region src/components/SearchResultsStates/SearchResultsLoadingGrid.tsx
|
|
14
|
+
const SearchResultsLoadingGrid = ({ productGridVariant, productGridClasses, sparkleIconColor = "var(--spiffy-colors-accent-primary)" }) => {
|
|
15
|
+
const { productCardLayoutVariant, productCardImageAspectRatio } = require_productGridVariants.productGridVariantClasses[productGridVariant];
|
|
16
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
17
|
+
className: "spiffy-tw-w-full spiffy-tw-justify-center spiffy-tw-overflow-hidden",
|
|
18
|
+
initial: { opacity: 0 },
|
|
19
|
+
animate: { opacity: 1 },
|
|
20
|
+
exit: { opacity: 0 },
|
|
21
|
+
transition: { duration: .2 },
|
|
22
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
23
|
+
className: "spiffy-tw-mt-6 spiffy-tw-w-full",
|
|
24
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
25
|
+
className: "spiffy-tw-mb-4 spiffy-tw-flex spiffy-tw-items-center spiffy-tw-justify-between",
|
|
26
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
27
|
+
className: "spiffy-tw-ml-[16px] spiffy-tw-flex spiffy-tw-items-center spiffy-tw-gap-2 md:spiffy-tw-ml-[80px]",
|
|
28
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
29
|
+
className: "spiffy-tw-width-[24px]",
|
|
30
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SparkleAnimation.SparkleAnimation, {
|
|
31
|
+
color: sparkleIconColor,
|
|
32
|
+
animate: true
|
|
33
|
+
})
|
|
34
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
35
|
+
variant: "body2",
|
|
36
|
+
children: "Finding the best options for you..."
|
|
37
|
+
})]
|
|
38
|
+
})
|
|
39
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
40
|
+
className: productGridClasses,
|
|
41
|
+
children: Array.from({ length: 8 }).map((_, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProductCardSkeleton.ProductCardSkeleton, {
|
|
42
|
+
layoutVariant: productCardLayoutVariant,
|
|
43
|
+
aspectRatio: productCardImageAspectRatio,
|
|
44
|
+
growWithContainer: true
|
|
45
|
+
}, index))
|
|
46
|
+
})]
|
|
47
|
+
})
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
exports.SearchResultsLoadingGrid = SearchResultsLoadingGrid;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ProductGridVariant } from "../ProductCard/types.cjs";
|
|
2
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/SearchResultsStates/SearchResultsLoadingGrid.d.ts
|
|
5
|
+
declare const SearchResultsLoadingGrid: ({
|
|
6
|
+
productGridVariant,
|
|
7
|
+
productGridClasses,
|
|
8
|
+
sparkleIconColor
|
|
9
|
+
}: {
|
|
10
|
+
productGridVariant: ProductGridVariant;
|
|
11
|
+
productGridClasses: string;
|
|
12
|
+
sparkleIconColor?: string;
|
|
13
|
+
}) => react_jsx_runtime6.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { SearchResultsLoadingGrid };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ProductGridVariant } from "../ProductCard/types.js";
|
|
2
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/SearchResultsStates/SearchResultsLoadingGrid.d.ts
|
|
5
|
+
declare const SearchResultsLoadingGrid: ({
|
|
6
|
+
productGridVariant,
|
|
7
|
+
productGridClasses,
|
|
8
|
+
sparkleIconColor
|
|
9
|
+
}: {
|
|
10
|
+
productGridVariant: ProductGridVariant;
|
|
11
|
+
productGridClasses: string;
|
|
12
|
+
sparkleIconColor?: string;
|
|
13
|
+
}) => react_jsx_runtime7.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { SearchResultsLoadingGrid };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Typography } from "../Typography/Typography.js";
|
|
2
|
+
import "../Typography/index.js";
|
|
3
|
+
import { ProductCardSkeleton } from "../ProductCard/ProductCardSkeleton.js";
|
|
4
|
+
import "../ProductCard/index.js";
|
|
5
|
+
import { productGridVariantClasses } from "../ProductGrid/productGridVariants.js";
|
|
6
|
+
import "../ProductGrid/index.js";
|
|
7
|
+
import { SparkleAnimation } from "../SparkleAnimation/SparkleAnimation.js";
|
|
8
|
+
import "../SparkleAnimation/index.js";
|
|
9
|
+
import { motion } from "framer-motion";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
|
|
12
|
+
//#region src/components/SearchResultsStates/SearchResultsLoadingGrid.tsx
|
|
13
|
+
const SearchResultsLoadingGrid = ({ productGridVariant, productGridClasses, sparkleIconColor = "var(--spiffy-colors-accent-primary)" }) => {
|
|
14
|
+
const { productCardLayoutVariant, productCardImageAspectRatio } = productGridVariantClasses[productGridVariant];
|
|
15
|
+
return /* @__PURE__ */ jsx(motion.div, {
|
|
16
|
+
className: "spiffy-tw-w-full spiffy-tw-justify-center spiffy-tw-overflow-hidden",
|
|
17
|
+
initial: { opacity: 0 },
|
|
18
|
+
animate: { opacity: 1 },
|
|
19
|
+
exit: { opacity: 0 },
|
|
20
|
+
transition: { duration: .2 },
|
|
21
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
22
|
+
className: "spiffy-tw-mt-6 spiffy-tw-w-full",
|
|
23
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
24
|
+
className: "spiffy-tw-mb-4 spiffy-tw-flex spiffy-tw-items-center spiffy-tw-justify-between",
|
|
25
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
26
|
+
className: "spiffy-tw-ml-[16px] spiffy-tw-flex spiffy-tw-items-center spiffy-tw-gap-2 md:spiffy-tw-ml-[80px]",
|
|
27
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
28
|
+
className: "spiffy-tw-width-[24px]",
|
|
29
|
+
children: /* @__PURE__ */ jsx(SparkleAnimation, {
|
|
30
|
+
color: sparkleIconColor,
|
|
31
|
+
animate: true
|
|
32
|
+
})
|
|
33
|
+
}), /* @__PURE__ */ jsx(Typography, {
|
|
34
|
+
variant: "body2",
|
|
35
|
+
children: "Finding the best options for you..."
|
|
36
|
+
})]
|
|
37
|
+
})
|
|
38
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
39
|
+
className: productGridClasses,
|
|
40
|
+
children: Array.from({ length: 8 }).map((_, index) => /* @__PURE__ */ jsx(ProductCardSkeleton, {
|
|
41
|
+
layoutVariant: productCardLayoutVariant,
|
|
42
|
+
aspectRatio: productCardImageAspectRatio,
|
|
43
|
+
growWithContainer: true
|
|
44
|
+
}, index))
|
|
45
|
+
})]
|
|
46
|
+
})
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
export { SearchResultsLoadingGrid };
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
require('
|
|
2
|
-
require('
|
|
3
|
-
require('
|
|
4
|
-
require('../../ImageWithFallback-BiBjNK-9.cjs');
|
|
5
|
-
require('../../ProductCard-C3seoFWE.cjs');
|
|
6
|
-
require('../../Spinner-CUrXDajS.cjs');
|
|
7
|
-
require('../../ProductGrid-Ct2DvLGf.cjs');
|
|
8
|
-
require('../../RecommendedProducts-Cy-1szYc.cjs');
|
|
9
|
-
require('../../colorsConfig-D-MZuBvt.cjs');
|
|
10
|
-
const require_SearchResultsStates = require('../../SearchResultsStates-Dp-AsmH8.cjs');
|
|
11
|
-
require('../../searchFilterSidebarVariants-C61Byr1S.cjs');
|
|
12
|
-
require('../../SparkleAnimation-Bg5qax1t.cjs');
|
|
1
|
+
const require_NoSearchResultsFound = require('./NoSearchResultsFound.cjs');
|
|
2
|
+
const require_SearchResultsGrid = require('./SearchResultsGrid.cjs');
|
|
3
|
+
const require_SearchResultsLoadingGrid = require('./SearchResultsLoadingGrid.cjs');
|
|
13
4
|
|
|
14
|
-
exports.NoSearchResultsFound =
|
|
15
|
-
exports.SearchResultsGrid =
|
|
16
|
-
exports.SearchResultsLoadingGrid =
|
|
5
|
+
exports.NoSearchResultsFound = require_NoSearchResultsFound.NoSearchResultsFound;
|
|
6
|
+
exports.SearchResultsGrid = require_SearchResultsGrid.SearchResultsGrid;
|
|
7
|
+
exports.SearchResultsLoadingGrid = require_SearchResultsLoadingGrid.SearchResultsLoadingGrid;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { NoSearchResultsFound } from "./NoSearchResultsFound.cjs";
|
|
2
|
+
import { SearchResultsGrid } from "./SearchResultsGrid.cjs";
|
|
3
|
+
import { SearchResultsLoadingGrid } from "./SearchResultsLoadingGrid.cjs";
|
|
4
|
+
export { NoSearchResultsFound, SearchResultsGrid, SearchResultsLoadingGrid };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { NoSearchResultsFound } from "./NoSearchResultsFound.js";
|
|
2
|
+
import { SearchResultsGrid } from "./SearchResultsGrid.js";
|
|
3
|
+
import { SearchResultsLoadingGrid } from "./SearchResultsLoadingGrid.js";
|
|
4
|
+
export { NoSearchResultsFound, SearchResultsGrid, SearchResultsLoadingGrid };
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "../../ImageWithFallback-_QZT0EKI.js";
|
|
5
|
-
import "../../ProductCard-ChitHvuc.js";
|
|
6
|
-
import "../../Spinner-CDDFWySo.js";
|
|
7
|
-
import "../../ProductGrid-DukHo_KY.js";
|
|
8
|
-
import "../../RecommendedProducts-DooGvLFT.js";
|
|
9
|
-
import "../../colorsConfig-BjdoRtRK.js";
|
|
10
|
-
import { n as SearchResultsGrid, r as NoSearchResultsFound, t as SearchResultsLoadingGrid } from "../../SearchResultsStates-BCeqeo9y.js";
|
|
11
|
-
import "../../searchFilterSidebarVariants-DcwlBfvY.js";
|
|
12
|
-
import "../../SparkleAnimation-HY4cgwE3.js";
|
|
1
|
+
import { NoSearchResultsFound } from "./NoSearchResultsFound.js";
|
|
2
|
+
import { SearchResultsGrid } from "./SearchResultsGrid.js";
|
|
3
|
+
import { SearchResultsLoadingGrid } from "./SearchResultsLoadingGrid.js";
|
|
13
4
|
|
|
14
5
|
export { NoSearchResultsFound, SearchResultsGrid, SearchResultsLoadingGrid };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_SearchInputForm = require('../SearchInputForm/SearchInputForm.cjs');
|
|
3
|
+
require('../SearchInputForm/index.cjs');
|
|
4
|
+
const require_SearchResultsFilterButton = require('../SearchResultsFilterButton/SearchResultsFilterButton.cjs');
|
|
5
|
+
require('../SearchResultsFilterButton/index.cjs');
|
|
6
|
+
let react = require("react");
|
|
7
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
8
|
+
let classnames = require("classnames");
|
|
9
|
+
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
10
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
|
+
|
|
12
|
+
//#region src/components/SearchResultsToolbar/SearchResultsToolbar.tsx
|
|
13
|
+
const SearchResultsToolbar = ({ searchInputVariant, searchBoxPlaceholder, searchText, focusedIndex, focusedOptionId, autocompleteResults, filterButtonText, onKeyDown, onSearchInputChange, onSubmitSearch, onAutocompleteSelect, onSearchInputFocus, onSearchInputBlur, shouldShowAutocomplete, setIsFilterOpen, containerXPaddingClasses, toolbarRef, isVisible, className }) => {
|
|
14
|
+
const [hasZIndex, setHasZIndex] = react.default.useState(false);
|
|
15
|
+
const searchInputRef = (0, react.useRef)(null);
|
|
16
|
+
react.default.useEffect(() => {
|
|
17
|
+
let timer;
|
|
18
|
+
if (isVisible) {
|
|
19
|
+
timer = setTimeout(() => {
|
|
20
|
+
setHasZIndex(true);
|
|
21
|
+
}, 300);
|
|
22
|
+
return () => clearTimeout(timer);
|
|
23
|
+
}
|
|
24
|
+
setHasZIndex(false);
|
|
25
|
+
return () => clearTimeout(timer);
|
|
26
|
+
}, [isVisible]);
|
|
27
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
28
|
+
className: (0, classnames.default)("spiffy-tw-bg-white", "spiffy-tw-w-full", className, {
|
|
29
|
+
"spiffy-tw-z-10": hasZIndex,
|
|
30
|
+
"spiffy-tw-translate-y-0": isVisible,
|
|
31
|
+
"-spiffy-tw-translate-y-full": !isVisible
|
|
32
|
+
}),
|
|
33
|
+
ref: toolbarRef,
|
|
34
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
35
|
+
className: (0, classnames.default)("spiffy-tw-flex", containerXPaddingClasses),
|
|
36
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SearchInputForm.SearchInputForm, {
|
|
37
|
+
searchInputVariant,
|
|
38
|
+
searchText,
|
|
39
|
+
focusedIndex,
|
|
40
|
+
autocompleteResults,
|
|
41
|
+
searchBoxPlaceholder,
|
|
42
|
+
focusedOptionId,
|
|
43
|
+
onKeyDown,
|
|
44
|
+
onSearchInputChange,
|
|
45
|
+
onSearchInputFocus,
|
|
46
|
+
onSearchInputBlur,
|
|
47
|
+
shouldShowAutocomplete,
|
|
48
|
+
onSearchSubmit: onSubmitSearch,
|
|
49
|
+
onAutocompleteSelect,
|
|
50
|
+
searchInputRef
|
|
51
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SearchResultsFilterButton.SearchResultsFilterButton, {
|
|
52
|
+
setIsOpen: setIsFilterOpen,
|
|
53
|
+
filterButtonText
|
|
54
|
+
})]
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
//#endregion
|
|
60
|
+
exports.SearchResultsToolbar = SearchResultsToolbar;
|
package/dist/components/SearchResultsToolbar/{index-_hxKcDDT.d.ts → SearchResultsToolbar.d.cts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
1
2
|
import React from "react";
|
|
2
|
-
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
3
3
|
import { SearchInputVariant } from "@envive-ai/react-hooks/contexts/types";
|
|
4
4
|
|
|
5
5
|
//#region src/components/SearchResultsToolbar/SearchResultsToolbar.d.ts
|
|
@@ -44,6 +44,6 @@ declare const SearchResultsToolbar: ({
|
|
|
44
44
|
toolbarRef,
|
|
45
45
|
isVisible,
|
|
46
46
|
className
|
|
47
|
-
}: SearchResultsToolbarProps) =>
|
|
47
|
+
}: SearchResultsToolbarProps) => react_jsx_runtime3.JSX.Element;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { SearchResultsToolbar };
|
package/dist/components/SearchResultsToolbar/{index-M8RkRW3H.d.cts → SearchResultsToolbar.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
2
1
|
import React from "react";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
import { SearchInputVariant } from "@envive-ai/react-hooks/contexts/types";
|
|
4
4
|
|
|
5
5
|
//#region src/components/SearchResultsToolbar/SearchResultsToolbar.d.ts
|
|
@@ -44,6 +44,6 @@ declare const SearchResultsToolbar: ({
|
|
|
44
44
|
toolbarRef,
|
|
45
45
|
isVisible,
|
|
46
46
|
className
|
|
47
|
-
}: SearchResultsToolbarProps) =>
|
|
47
|
+
}: SearchResultsToolbarProps) => react_jsx_runtime0.JSX.Element;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { SearchResultsToolbar };
|