@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
|
@@ -83,13 +83,23 @@ export const ToggleButton = ({
|
|
|
83
83
|
secondaryLabelClassName,
|
|
84
84
|
);
|
|
85
85
|
return (
|
|
86
|
-
<button
|
|
86
|
+
<button
|
|
87
|
+
className={buttonClassNames}
|
|
88
|
+
onClick={onClick}
|
|
89
|
+
type="button"
|
|
90
|
+
>
|
|
87
91
|
{icon && <div className={iconClassName}>{icon}</div>}
|
|
88
|
-
<Typography
|
|
92
|
+
<Typography
|
|
93
|
+
variant="body3"
|
|
94
|
+
className={labelClassNames}
|
|
95
|
+
>
|
|
89
96
|
{label}
|
|
90
97
|
</Typography>
|
|
91
98
|
{secondaryLabel && (
|
|
92
|
-
<Typography
|
|
99
|
+
<Typography
|
|
100
|
+
variant="body4"
|
|
101
|
+
className={secondaryLabelClassNames}
|
|
102
|
+
>
|
|
93
103
|
{secondaryLabel}
|
|
94
104
|
</Typography>
|
|
95
105
|
)}
|
|
@@ -24,5 +24,6 @@ type ColorMapping = {
|
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
const colorVar = (color: ColorNames): string => `var(--spiffy-colors-${color})`;
|
|
27
|
-
|
|
27
|
+
const enviveColorVar = (color: ColorNames): string => `var(--envive-colors-${color})`;
|
|
28
|
+
export { ColorNames, colorVar, enviveColorVar };
|
|
28
29
|
export type { ColorMapping };
|
|
@@ -19,6 +19,13 @@ export const Default: Story = {
|
|
|
19
19
|
noResultsFoundText:
|
|
20
20
|
'I’m sorry, I wasn’t able to find an exact match. Try changing your filters or adjusting your search query.',
|
|
21
21
|
sparkleIconColor: 'var(--spiffy-colors-accent-primary)',
|
|
22
|
+
recommendedProducts: [
|
|
23
|
+
{
|
|
24
|
+
id: 'product1',
|
|
25
|
+
title: 'Product 1',
|
|
26
|
+
url: 'https://larry-and-serges-prod.myshopify.com/products/machine-learning-mango-fizz',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
22
29
|
},
|
|
23
30
|
};
|
|
24
31
|
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { ProductCardSkeleton } from '@envive-ai/react-toolkit/ProductCard';
|
|
2
|
-
import { productGridVariantClasses } from '@envive-ai/react-toolkit/ProductGrid';
|
|
3
|
-
|
|
4
1
|
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { ProductCardSkeleton } from '../components/ProductCard/ProductCardSkeleton';
|
|
3
|
+
import { ProductCardSkeletonProps } from '../components/ProductCard/types';
|
|
5
4
|
|
|
6
|
-
const meta
|
|
7
|
-
title: '
|
|
8
|
-
component: ProductCardSkeleton,
|
|
5
|
+
const meta = {
|
|
6
|
+
title: 'Components/ProductCard/ProductCardSkeleton',
|
|
7
|
+
component: ProductCardSkeleton as any as any,
|
|
9
8
|
parameters: {
|
|
10
9
|
layout: 'centered',
|
|
11
10
|
},
|
|
@@ -13,36 +12,67 @@ const meta: Meta<typeof ProductCardSkeleton> = {
|
|
|
13
12
|
argTypes: {
|
|
14
13
|
layoutVariant: {
|
|
15
14
|
control: 'select',
|
|
16
|
-
options:
|
|
15
|
+
options: ['normal', 'tall', 'square'],
|
|
16
|
+
description: 'The layout variant of the product card.',
|
|
17
17
|
},
|
|
18
18
|
aspectRatio: {
|
|
19
19
|
control: 'select',
|
|
20
|
-
options:
|
|
20
|
+
options: ['3:4', 'square', 'none'],
|
|
21
|
+
description: 'The aspect ratio of the product image.',
|
|
22
|
+
},
|
|
23
|
+
growWithContainer: {
|
|
24
|
+
control: 'boolean',
|
|
25
|
+
description: 'Whether the skeleton should grow to fit its container.',
|
|
21
26
|
},
|
|
22
27
|
},
|
|
23
|
-
}
|
|
28
|
+
} satisfies Meta<ProductCardSkeletonProps>;
|
|
24
29
|
|
|
25
30
|
export default meta;
|
|
26
|
-
type Story = StoryObj<
|
|
31
|
+
type Story = StoryObj<Meta<ProductCardSkeletonProps>>;
|
|
27
32
|
|
|
28
33
|
export const Default: Story = {
|
|
29
34
|
args: {
|
|
30
35
|
layoutVariant: 'normal',
|
|
31
|
-
aspectRatio: '
|
|
32
|
-
growWithContainer:
|
|
36
|
+
aspectRatio: '3:4',
|
|
37
|
+
growWithContainer: false,
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export const TallLayout: Story = {
|
|
42
|
+
args: {
|
|
43
|
+
layoutVariant: 'tall',
|
|
44
|
+
aspectRatio: '3:4',
|
|
45
|
+
growWithContainer: false,
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export const SquareLayout: Story = {
|
|
50
|
+
args: {
|
|
51
|
+
layoutVariant: 'square',
|
|
52
|
+
aspectRatio: 'square',
|
|
53
|
+
growWithContainer: false,
|
|
33
54
|
},
|
|
34
55
|
};
|
|
35
56
|
|
|
36
|
-
export const
|
|
57
|
+
export const SquareAspectRatio: Story = {
|
|
37
58
|
args: {
|
|
38
|
-
...Default.args,
|
|
39
59
|
layoutVariant: 'normal',
|
|
60
|
+
aspectRatio: 'square',
|
|
61
|
+
growWithContainer: false,
|
|
40
62
|
},
|
|
41
63
|
};
|
|
42
64
|
|
|
43
|
-
export const
|
|
65
|
+
export const GrowWithContainer: Story = {
|
|
66
|
+
decorators: [
|
|
67
|
+
Story => (
|
|
68
|
+
<div style={{ width: '300px', height: '450px', border: '1px dashed #ccc', padding: '10px' }}>
|
|
69
|
+
<Story />
|
|
70
|
+
</div>
|
|
71
|
+
),
|
|
72
|
+
],
|
|
44
73
|
args: {
|
|
45
|
-
|
|
74
|
+
layoutVariant: 'normal',
|
|
46
75
|
aspectRatio: '3:4',
|
|
76
|
+
growWithContainer: true,
|
|
47
77
|
},
|
|
48
78
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
1
2
|
import { SearchFilterDatum } from '@envive-ai/react-hooks/types';
|
|
2
3
|
import {
|
|
3
|
-
searchFilterSidebarVariantClasses,
|
|
4
4
|
SearchResultsFilter,
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
searchFilterSidebarVariantClasses,
|
|
6
|
+
} from 'src/components/SearchResultsFilterSidebar';
|
|
7
7
|
|
|
8
8
|
const mockSearchFilters: SearchFilterDatum[] = [
|
|
9
9
|
{
|
|
@@ -23,7 +23,7 @@ export const Default: Story = {
|
|
|
23
23
|
color: 'var(--spiffy-colors-accent-primary)',
|
|
24
24
|
animate: true,
|
|
25
25
|
},
|
|
26
|
-
render:
|
|
26
|
+
render: args => {
|
|
27
27
|
const classes = classNames(
|
|
28
28
|
'spiffy-tw-flex',
|
|
29
29
|
'spiffy-tw-flex-row',
|
|
@@ -33,7 +33,10 @@ export const Default: Story = {
|
|
|
33
33
|
);
|
|
34
34
|
return (
|
|
35
35
|
<div>
|
|
36
|
-
<SparkleAnimation
|
|
36
|
+
<SparkleAnimation
|
|
37
|
+
{...args}
|
|
38
|
+
className={classes}
|
|
39
|
+
/>
|
|
37
40
|
</div>
|
|
38
41
|
);
|
|
39
42
|
},
|
|
@@ -48,7 +48,6 @@ import type { UnknownArray } from './unknownArray';
|
|
|
48
48
|
export type CamelCasedPropertiesDeep<
|
|
49
49
|
Value,
|
|
50
50
|
Options extends CamelCaseOptions = { preserveConsecutiveUppercase: true },
|
|
51
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
52
51
|
> = Value extends Function
|
|
53
52
|
? Value
|
|
54
53
|
: Value extends UnknownArray
|
package/src/util/colorVar.ts
CHANGED
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { t as require_jsx_runtime } from "./jsx-runtime-Dg2m6dxZ-CU_SzTu4.js";
|
|
2
|
-
|
|
3
|
-
//#region ../icons/dist/FourPointStar.js
|
|
4
|
-
var import_jsx_runtime = require_jsx_runtime();
|
|
5
|
-
const SvgFourPointStar = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
|
|
6
|
-
width: 13,
|
|
7
|
-
height: 12,
|
|
8
|
-
viewBox: "0 0 13 12",
|
|
9
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
-
...props,
|
|
11
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
12
|
-
d: "M6.45324 0.546875L7.50401 3.27887C7.67488 3.72314 7.76032 3.94528 7.89318 4.13213C8.01094 4.29774 8.15563 4.44242 8.32123 4.56018C8.50808 4.69304 8.73023 4.77848 9.1745 4.94935L11.9065 6.00012L9.1745 7.05089C8.73023 7.22176 8.50808 7.3072 8.32123 7.44006C8.15563 7.55782 8.01094 7.7025 7.89318 7.86811C7.76032 8.05496 7.67488 8.2771 7.50401 8.72138L6.45324 11.4534L5.40248 8.72138C5.2316 8.2771 5.14616 8.05496 5.0133 7.86811C4.89555 7.7025 4.75086 7.55782 4.58526 7.44006C4.3984 7.3072 4.17627 7.22176 3.73199 7.05089L1 6.00012L3.73199 4.94935C4.17627 4.77848 4.3984 4.69304 4.58526 4.56018C4.75086 4.44242 4.89555 4.29774 5.0133 4.13213C5.14616 3.94528 5.2316 3.72314 5.40248 3.27887L6.45324 0.546875Z",
|
|
13
|
-
strokeWidth: .908874,
|
|
14
|
-
strokeLinecap: "round",
|
|
15
|
-
strokeLinejoin: "round"
|
|
16
|
-
})
|
|
17
|
-
});
|
|
18
|
-
var FourPointStar_default = SvgFourPointStar;
|
|
19
|
-
|
|
20
|
-
//#endregion
|
|
21
|
-
export { FourPointStar_default as t };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
const require_jsx_runtime_Dg2m6dxZ = require('./jsx-runtime-Dg2m6dxZ-B-pkyyHT.cjs');
|
|
2
|
-
|
|
3
|
-
//#region ../icons/dist/FourPointStar.js
|
|
4
|
-
var import_jsx_runtime = require_jsx_runtime_Dg2m6dxZ.require_jsx_runtime();
|
|
5
|
-
const SvgFourPointStar = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
|
|
6
|
-
width: 13,
|
|
7
|
-
height: 12,
|
|
8
|
-
viewBox: "0 0 13 12",
|
|
9
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
-
...props,
|
|
11
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
12
|
-
d: "M6.45324 0.546875L7.50401 3.27887C7.67488 3.72314 7.76032 3.94528 7.89318 4.13213C8.01094 4.29774 8.15563 4.44242 8.32123 4.56018C8.50808 4.69304 8.73023 4.77848 9.1745 4.94935L11.9065 6.00012L9.1745 7.05089C8.73023 7.22176 8.50808 7.3072 8.32123 7.44006C8.15563 7.55782 8.01094 7.7025 7.89318 7.86811C7.76032 8.05496 7.67488 8.2771 7.50401 8.72138L6.45324 11.4534L5.40248 8.72138C5.2316 8.2771 5.14616 8.05496 5.0133 7.86811C4.89555 7.7025 4.75086 7.55782 4.58526 7.44006C4.3984 7.3072 4.17627 7.22176 3.73199 7.05089L1 6.00012L3.73199 4.94935C4.17627 4.77848 4.3984 4.69304 4.58526 4.56018C4.75086 4.44242 4.89555 4.29774 5.0133 4.13213C5.14616 3.94528 5.2316 3.72314 5.40248 3.27887L6.45324 0.546875Z",
|
|
13
|
-
strokeWidth: .908874,
|
|
14
|
-
strokeLinecap: "round",
|
|
15
|
-
strokeLinejoin: "round"
|
|
16
|
-
})
|
|
17
|
-
});
|
|
18
|
-
var FourPointStar_default = SvgFourPointStar;
|
|
19
|
-
|
|
20
|
-
//#endregion
|
|
21
|
-
Object.defineProperty(exports, 'FourPointStar_default', {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () {
|
|
24
|
-
return FourPointStar_default;
|
|
25
|
-
}
|
|
26
|
-
});
|
|
@@ -1,301 +0,0 @@
|
|
|
1
|
-
import { t as AnimatedChevron } from "./AnimatedChevron-DO_jcnJg.js";
|
|
2
|
-
import { useEffect, useState } from "react";
|
|
3
|
-
import { motion, useMotionValue } from "framer-motion";
|
|
4
|
-
import classNames from "classnames";
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { useIsSmallScreen } from "@envive-ai/react-hooks/hooks/IsSmallScreen";
|
|
7
|
-
|
|
8
|
-
//#region src/components/ModalSheet/mobile/mobileHeader.tsx
|
|
9
|
-
const modalSheetVariants$1 = { 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 = useMotionValue(-1);
|
|
15
|
-
const headerClassName = classNames({
|
|
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$1[headerVariant]
|
|
25
|
-
});
|
|
26
|
-
return /* @__PURE__ */ jsxs(motion.div, {
|
|
27
|
-
className: headerClassName,
|
|
28
|
-
onTouchStart: handleHeaderClick,
|
|
29
|
-
onMouseDown: handleHeaderClick,
|
|
30
|
-
children: [/* @__PURE__ */ jsx(AnimatedChevron, {
|
|
31
|
-
animationKey,
|
|
32
|
-
chevronColor
|
|
33
|
-
}), headerContent]
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
//#endregion
|
|
38
|
-
//#region src/components/ModalSheet/mobile/index.tsx
|
|
39
|
-
const ModalSheetMobile = ({ children, isOpen, closeModal, mobileFullHeight = 180, animationDuration, headerProps, footerProps }) => {
|
|
40
|
-
const [isHidden, setIsHidden] = useState(isOpen ? "block" : "none");
|
|
41
|
-
const [bottom, setBottom] = useState(isOpen ? 0 : 0 - mobileFullHeight);
|
|
42
|
-
const [overlayOpacity, setOverlayOpacity] = useState(isOpen ? 1 : 0);
|
|
43
|
-
useEffect(() => {
|
|
44
|
-
setIsHidden(isOpen ? "block" : "none");
|
|
45
|
-
setBottom(isOpen ? 0 : 0 - mobileFullHeight);
|
|
46
|
-
setOverlayOpacity(isOpen ? 1 : 0);
|
|
47
|
-
}, [mobileFullHeight, isOpen]);
|
|
48
|
-
const overlayClassNames = classNames({
|
|
49
|
-
"spiffy-modal-sheet-overlay": true,
|
|
50
|
-
"spiffy-tw-fixed": true,
|
|
51
|
-
"spiffy-tw-inset-0": true,
|
|
52
|
-
"spiffy-tw-top-[0]": true,
|
|
53
|
-
"spiffy-tw-bottom-[0]": true,
|
|
54
|
-
"spiffy-tw-left-[0]": true,
|
|
55
|
-
"spiffy-tw-right-[0]": true,
|
|
56
|
-
"spiffy-tw-bg-black/30": true,
|
|
57
|
-
"spiffy-tw-z-[100]": true
|
|
58
|
-
});
|
|
59
|
-
const modalClassNames = classNames({
|
|
60
|
-
"spiffy-modal-sheet": true,
|
|
61
|
-
"spiffy-modal-sheet-open": isOpen,
|
|
62
|
-
"spiffy-tw-w-full": true,
|
|
63
|
-
"spiffy-tw-overflow-y-auto": true,
|
|
64
|
-
"spiffy-tw-shadow-lg": true,
|
|
65
|
-
"spiffy-tw-fixed": true,
|
|
66
|
-
"spiffy-tw-bg-white": true,
|
|
67
|
-
"spiffy-tw-border-box": true,
|
|
68
|
-
"spiffy-tw-rounded-t-[16px]": true,
|
|
69
|
-
"spiffy-tw-h-[89%]": true,
|
|
70
|
-
"spiffy-tw-max-h-[89%]": true
|
|
71
|
-
});
|
|
72
|
-
const contentClassNames = classNames({
|
|
73
|
-
"spiffy-modal-sheet-content": true,
|
|
74
|
-
"spiffy-tw-flex": true,
|
|
75
|
-
"spiffy-tw-flex-col": true,
|
|
76
|
-
"spiffy-tw-w-full": true,
|
|
77
|
-
"spiffy-tw-h-full": true
|
|
78
|
-
});
|
|
79
|
-
const headerClassNames = classNames({
|
|
80
|
-
"spiffy-tw-sticky": true,
|
|
81
|
-
"spiffy-tw-top-[0px]": true,
|
|
82
|
-
"spiffy-tw-flex": true,
|
|
83
|
-
"spiffy-tw-flex-col": true
|
|
84
|
-
});
|
|
85
|
-
const { footerContent, footerClassName } = footerProps || {};
|
|
86
|
-
const footerClassNames = classNames({
|
|
87
|
-
"spiffy-tw-sticky": true,
|
|
88
|
-
"spiffy-tw-bottom-[0px]": true,
|
|
89
|
-
"spiffy-modal-sheet-footer": true,
|
|
90
|
-
"spiffy-tw-flex": true,
|
|
91
|
-
"spiffy-tw-flex-col": true
|
|
92
|
-
}, footerClassName);
|
|
93
|
-
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(motion.div, {
|
|
94
|
-
className: overlayClassNames,
|
|
95
|
-
animate: {
|
|
96
|
-
opacity: overlayOpacity,
|
|
97
|
-
display: isHidden
|
|
98
|
-
},
|
|
99
|
-
onClick: closeModal,
|
|
100
|
-
children: /* @__PURE__ */ jsx(motion.div, {
|
|
101
|
-
role: "dialog",
|
|
102
|
-
className: modalClassNames,
|
|
103
|
-
initial: {
|
|
104
|
-
bottom,
|
|
105
|
-
display: isHidden
|
|
106
|
-
},
|
|
107
|
-
animate: {
|
|
108
|
-
bottom,
|
|
109
|
-
display: isHidden
|
|
110
|
-
},
|
|
111
|
-
exit: {
|
|
112
|
-
bottom,
|
|
113
|
-
display: isHidden
|
|
114
|
-
},
|
|
115
|
-
transition: {
|
|
116
|
-
duration: animationDuration,
|
|
117
|
-
ease: "easeIn"
|
|
118
|
-
},
|
|
119
|
-
onClick: (e) => e.stopPropagation(),
|
|
120
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
121
|
-
className: contentClassNames,
|
|
122
|
-
children: [
|
|
123
|
-
/* @__PURE__ */ jsx("div", {
|
|
124
|
-
className: headerClassNames,
|
|
125
|
-
children: /* @__PURE__ */ jsx(ModalSheetMobileHeader, {
|
|
126
|
-
headerContent: headerProps.headerContent,
|
|
127
|
-
headerVariant: headerProps?.headerVariant,
|
|
128
|
-
handleHeaderClick: closeModal,
|
|
129
|
-
chevronColor: "#000"
|
|
130
|
-
})
|
|
131
|
-
}),
|
|
132
|
-
children,
|
|
133
|
-
/* @__PURE__ */ jsx("div", { className: "spiffy-tw-flex-grow" }),
|
|
134
|
-
footerContent && /* @__PURE__ */ jsx("div", {
|
|
135
|
-
className: footerClassNames,
|
|
136
|
-
children: footerContent
|
|
137
|
-
})
|
|
138
|
-
]
|
|
139
|
-
})
|
|
140
|
-
})
|
|
141
|
-
}) });
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
//#endregion
|
|
145
|
-
//#region src/components/ModalSheet/desktop/desktopHeader.tsx
|
|
146
|
-
const modalSheetVariants = { primary: {
|
|
147
|
-
"spiffy-tw-bg-[--spiffy-colors-background-primary]": true,
|
|
148
|
-
"spiffy-tw-text-[--spiffy-colors-text-light]": true
|
|
149
|
-
} };
|
|
150
|
-
const ModalSheetDesktopHeader = ({ headerVariant = "primary", headerContent }) => {
|
|
151
|
-
return /* @__PURE__ */ jsx("div", {
|
|
152
|
-
className: classNames({
|
|
153
|
-
"spiffy-modal-sheet-header": true,
|
|
154
|
-
"spiffy-tw-flex": true,
|
|
155
|
-
"spiffy-tw-items-center": true,
|
|
156
|
-
"spiffy-tw-justify-between": true,
|
|
157
|
-
"spiffy-tw-w-full": true,
|
|
158
|
-
...modalSheetVariants[headerVariant]
|
|
159
|
-
}),
|
|
160
|
-
children: headerContent
|
|
161
|
-
});
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
//#endregion
|
|
165
|
-
//#region src/components/ModalSheet/desktop/index.tsx
|
|
166
|
-
const ModalSheetDesktop = ({ children, isOpen, closeModal, desktopWidth = 512, animationDuration, headerProps, footerProps, showOverlay = false }) => {
|
|
167
|
-
const [isHidden, setIsHidden] = useState(isOpen ? "block" : "none");
|
|
168
|
-
const [right, setRight] = useState(isOpen ? 0 : 0 - desktopWidth);
|
|
169
|
-
const [overlayOpacity, setOverlayOpacity] = useState(0);
|
|
170
|
-
useEffect(() => {
|
|
171
|
-
setIsHidden(isOpen ? "block" : "none");
|
|
172
|
-
setRight(isOpen ? 0 : 0 - desktopWidth);
|
|
173
|
-
setOverlayOpacity(isOpen ? 1 : 0);
|
|
174
|
-
}, [desktopWidth, isOpen]);
|
|
175
|
-
const overlayClassNames = classNames({
|
|
176
|
-
"spiffy-modal-sheet-overlay": true,
|
|
177
|
-
"spiffy-tw-fixed": true,
|
|
178
|
-
"spiffy-tw-inset-0": true,
|
|
179
|
-
"spiffy-tw-top-[0]": true,
|
|
180
|
-
"spiffy-tw-bottom-[0]": true,
|
|
181
|
-
"spiffy-tw-left-[0]": true,
|
|
182
|
-
"spiffy-tw-right-[0]": true,
|
|
183
|
-
"spiffy-tw-z-[2147483647]": true,
|
|
184
|
-
"spiffy-tw-bg-black/30": showOverlay
|
|
185
|
-
});
|
|
186
|
-
const modalClassNames = classNames({
|
|
187
|
-
"spiffy-modal-sheet": true,
|
|
188
|
-
"spiffy-modal-sheet-open": isOpen,
|
|
189
|
-
"spiffy-tw-max-h-full": true,
|
|
190
|
-
"spiffy-tw-h-screen": true,
|
|
191
|
-
"spiffy-tw-w-[512px]": true,
|
|
192
|
-
"spiffy-tw-shadow-lg": true,
|
|
193
|
-
"spiffy-tw-top-[0]": true,
|
|
194
|
-
"spiffy-tw-bottom-[0]": true,
|
|
195
|
-
"spiffy-tw-fixed": true,
|
|
196
|
-
"spiffy-tw-bg-white": true,
|
|
197
|
-
"spiffy-tw-border-box": true
|
|
198
|
-
});
|
|
199
|
-
const contentClassNames = classNames({
|
|
200
|
-
"spiffy-modal-sheet-content": true,
|
|
201
|
-
"spiffy-tw-overflow-y-auto": true,
|
|
202
|
-
"spiffy-tw-overflow-x-hidden": true,
|
|
203
|
-
"spiffy-tw-flex": true,
|
|
204
|
-
"spiffy-tw-flex-col": true,
|
|
205
|
-
"spiffy-tw-h-full": true,
|
|
206
|
-
"spiffy-tw-w-full": true
|
|
207
|
-
});
|
|
208
|
-
const headerClassNames = classNames({
|
|
209
|
-
"spiffy-tw-sticky": true,
|
|
210
|
-
"spiffy-tw-top-0": true,
|
|
211
|
-
"spiffy-tw-flex": true,
|
|
212
|
-
"spiffy-tw-flex-col": true
|
|
213
|
-
});
|
|
214
|
-
const { footerContent, footerClassName } = footerProps || {};
|
|
215
|
-
const footerClassNames = classNames({
|
|
216
|
-
"spiffy-tw-sticky": true,
|
|
217
|
-
"spiffy-tw-bottom-0": true,
|
|
218
|
-
"spiffy-modal-sheet-footer": true,
|
|
219
|
-
"spiffy-tw-flex": true,
|
|
220
|
-
"spiffy-tw-flex-col": true
|
|
221
|
-
}, footerClassName);
|
|
222
|
-
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(motion.div, {
|
|
223
|
-
className: overlayClassNames,
|
|
224
|
-
initial: {
|
|
225
|
-
opacity: 0,
|
|
226
|
-
display: "none"
|
|
227
|
-
},
|
|
228
|
-
animate: {
|
|
229
|
-
opacity: overlayOpacity,
|
|
230
|
-
display: isHidden
|
|
231
|
-
},
|
|
232
|
-
onClick: closeModal,
|
|
233
|
-
children: /* @__PURE__ */ jsx(motion.div, {
|
|
234
|
-
role: "dialog",
|
|
235
|
-
className: modalClassNames,
|
|
236
|
-
initial: {
|
|
237
|
-
right,
|
|
238
|
-
display: isHidden
|
|
239
|
-
},
|
|
240
|
-
animate: {
|
|
241
|
-
right,
|
|
242
|
-
display: isHidden
|
|
243
|
-
},
|
|
244
|
-
exit: {
|
|
245
|
-
right,
|
|
246
|
-
display: isHidden
|
|
247
|
-
},
|
|
248
|
-
transition: {
|
|
249
|
-
duration: animationDuration,
|
|
250
|
-
ease: "easeIn"
|
|
251
|
-
},
|
|
252
|
-
style: { width: desktopWidth },
|
|
253
|
-
onClick: (e) => e.stopPropagation(),
|
|
254
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
255
|
-
className: contentClassNames,
|
|
256
|
-
children: [
|
|
257
|
-
/* @__PURE__ */ jsx("div", {
|
|
258
|
-
className: headerClassNames,
|
|
259
|
-
children: /* @__PURE__ */ jsx(ModalSheetDesktopHeader, {
|
|
260
|
-
headerContent: headerProps.headerContent,
|
|
261
|
-
headerVariant: headerProps?.headerVariant,
|
|
262
|
-
chevronColor: "#000"
|
|
263
|
-
})
|
|
264
|
-
}),
|
|
265
|
-
children,
|
|
266
|
-
/* @__PURE__ */ jsx("div", { className: "spiffy-tw-flex-grow" }),
|
|
267
|
-
footerContent && /* @__PURE__ */ jsx("div", {
|
|
268
|
-
className: footerClassNames,
|
|
269
|
-
children: footerContent
|
|
270
|
-
})
|
|
271
|
-
]
|
|
272
|
-
})
|
|
273
|
-
})
|
|
274
|
-
}) });
|
|
275
|
-
};
|
|
276
|
-
|
|
277
|
-
//#endregion
|
|
278
|
-
//#region src/components/ModalSheet/ModalSheet.tsx
|
|
279
|
-
const ANIMATION_DURATION = .3;
|
|
280
|
-
const ModalSheet = ({ children, isOpen, closeModal, animationDuration = ANIMATION_DURATION, desktopWidth = 512, headerProps, footerProps }) => {
|
|
281
|
-
return useIsSmallScreen() ? /* @__PURE__ */ jsx(ModalSheetMobile, {
|
|
282
|
-
isOpen,
|
|
283
|
-
closeModal,
|
|
284
|
-
desktopWidth,
|
|
285
|
-
animationDuration,
|
|
286
|
-
headerProps,
|
|
287
|
-
footerProps,
|
|
288
|
-
children
|
|
289
|
-
}) : /* @__PURE__ */ jsx(ModalSheetDesktop, {
|
|
290
|
-
isOpen,
|
|
291
|
-
closeModal,
|
|
292
|
-
desktopWidth,
|
|
293
|
-
animationDuration,
|
|
294
|
-
headerProps,
|
|
295
|
-
footerProps,
|
|
296
|
-
children
|
|
297
|
-
});
|
|
298
|
-
};
|
|
299
|
-
|
|
300
|
-
//#endregion
|
|
301
|
-
export { ModalSheet as t };
|