@envive-ai/react-toolkit 0.2.11 → 0.2.13-arthur-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Accordion-B8aUlf0q.js → Accordion-8zFBEEaN.js} +25 -6
- package/dist/{Accordion-FyCFBOen.cjs → Accordion-DPUaEXiE.cjs} +23 -8
- package/dist/{AnimatedChevron-wpcAHp6d.cjs → AnimatedChevron-CPW5KPLr.cjs} +0 -2
- package/dist/{AnimatedChevron-Dee6Pe81.js → AnimatedChevron-DO_jcnJg.js} +1 -1
- package/dist/{ButtonBase-B6vDKbGQ.cjs → ButtonBase-C44g6llb.cjs} +1 -3
- package/dist/{ButtonBase-Bpc7nOpz.js → ButtonBase-Cjo-fBg2.js} +3 -3
- package/dist/{DynamicFiltersScrollbar-DIwHWq6v.cjs → DynamicFiltersScrollbar-IO886VXD.cjs} +3 -6
- package/dist/{DynamicFiltersScrollbar-D8OqC4DA.js → DynamicFiltersScrollbar-s5yfmMau.js} +5 -7
- package/dist/FourPointStar-3DqnYmfN.js +21 -0
- package/dist/FourPointStar-AQ9OSu0S.cjs +26 -0
- package/dist/{ImageWithFallback-DvaVpR6v.cjs → ImageWithFallback-C-ZQn7tR.cjs} +1 -2
- package/dist/{ImageWithFallback-BW57cQw-.js → ImageWithFallback-DjDNefaG.js} +2 -2
- package/dist/{ModalSheet-DFva7krP.js → ModalSheet-C5f5abw1.js} +12 -13
- package/dist/{ModalSheet-BvM2PJbH.cjs → ModalSheet-JZerJZ1T.cjs} +11 -16
- package/dist/OutlinedStar-CC0V_jAK.cjs +26 -0
- package/dist/OutlinedStar-WWs3gRwt.js +21 -0
- package/dist/{ProductCard-C2KvH4MN.cjs → ProductCard-C7rZyWpj.cjs} +31 -28
- package/dist/{ProductCard-BiWAcPO4.js → ProductCard-GxpFxjh0.js} +19 -24
- package/dist/{ProductGrid-DkOyRAEg.cjs → ProductGrid-0A8vml2y.cjs} +2 -3
- package/dist/{ProductGrid-B1RtE58G.js → ProductGrid-DAwc9dKV.js} +3 -3
- package/dist/{RadioButton-CQ6qOvBl.js → RadioButton-DOc8g47U.js} +3 -3
- package/dist/{RadioButton-DP-qs5cy.cjs → RadioButton-DpF1wymL.cjs} +1 -3
- package/dist/{RadioButtonGroup-CJPWfAaA.cjs → RadioButtonGroup-ByzTXNAb.cjs} +2 -3
- package/dist/{RadioButtonGroup-Ce8cKqYw.js → RadioButtonGroup-YQIxmR7j.js} +3 -3
- package/dist/RecommendedProducts-C6dLpLPP.js +49 -0
- package/dist/RecommendedProducts-qkPxXVJn.cjs +56 -0
- package/dist/{SearchAutocomplete-bbMvWWjI.cjs → SearchAutocomplete-BdTWETDB.cjs} +5 -9
- package/dist/{SearchAutocomplete-CjjL2_lm.js → SearchAutocomplete-DNe193EV.js} +7 -8
- package/dist/{SearchFilter-BLi6E9Wx.cjs → SearchFilter-BRtCSuAn.cjs} +38 -44
- package/dist/{SearchFilter-wHwOym_n.js → SearchFilter-DvJx0b0W.js} +40 -44
- package/dist/{SearchInput-BA6bepV_.cjs → SearchInput-CImlqrau.cjs} +64 -13
- package/dist/{SearchInput-C3nNkmBm.js → SearchInput-kLhxkpgq.js} +64 -9
- package/dist/{SearchInputForm/index.js → SearchInputForm-CFm_hUvX.js} +7 -9
- package/dist/{SearchInputForm/index.cjs → SearchInputForm-ZgNNEX6E.cjs} +13 -12
- package/dist/SearchResultsFilterButton-D929tRt9.cjs +96 -0
- package/dist/SearchResultsFilterButton-Dk7u7rgn.js +90 -0
- package/dist/{SearchResultsFilterSidebar/index.cjs → SearchResultsFilterSidebar-BRFONIEq.cjs} +11 -18
- package/dist/{SearchResultsFilterSidebar/index.js → SearchResultsFilterSidebar-DLzQoFGD.js} +5 -14
- package/dist/SearchResultsStates-CQR5Il4l.cjs +196 -0
- package/dist/SearchResultsStates-D7HfsLeZ.js +177 -0
- package/dist/{SparkleAnimation-BFAj73CF.cjs → SparkleAnimation-BikAiAmb.cjs} +20 -15
- package/dist/{SparkleAnimation-BYDUEqWX.js → SparkleAnimation-szzXiTam.js} +15 -12
- package/dist/{Spinner-Ccy6VFEp.cjs → Spinner-7HblFCja.cjs} +1 -2
- package/dist/{Spinner-D2HbRsuw.js → Spinner-OFbXMms8.js} +2 -2
- package/dist/{TextInput-CYTko3-n.cjs → TextInput-CaynCoDf.cjs} +3 -5
- package/dist/{TextInput-CmxnphaT.js → TextInput-CsdOvLBQ.js} +5 -6
- package/dist/{ToggleButton-V9Qsaks7.js → ToggleButton-D8--AKKK.js} +3 -3
- package/dist/{ToggleButton-CvxNLMe_.cjs → ToggleButton-Dxk3U1hR.cjs} +1 -2
- package/dist/{Typography-C3QmJzFK.js → Typography-xehJH05l.js} +1 -1
- package/dist/colorsConfig-CFI1KN8R.js +26 -0
- package/dist/colorsConfig-Dp7w5LPb.cjs +38 -0
- package/dist/{Accordion/index.d.ts → components/Accordion/index-D_7-KJa0.d.cts} +2 -2
- package/dist/{Accordion/index.d.cts → components/Accordion/index-Dd_9XeqA.d.ts} +2 -2
- package/dist/components/Accordion/index.cjs +5 -0
- package/dist/components/Accordion/index.js +5 -0
- package/dist/{AnimatedChevron/index.d.cts → components/AnimatedChevron/index-BwQ6tJL8.d.cts} +2 -2
- package/dist/{AnimatedChevron/index.d.ts → components/AnimatedChevron/index-DZdGWikh.d.ts} +2 -2
- package/dist/components/AnimatedChevron/index.cjs +3 -0
- package/dist/components/AnimatedChevron/index.js +3 -0
- package/dist/{AppliedFiltersScrollbar/index.d.ts → components/AppliedFiltersScrollbar/index-Dcyc-5Bv.d.ts} +3 -3
- package/dist/{AppliedFiltersScrollbar/index.d.cts → components/AppliedFiltersScrollbar/index-VbXAIfym.d.cts} +3 -3
- package/dist/{AppliedFiltersScrollbar → components/AppliedFiltersScrollbar}/index.cjs +4 -6
- package/dist/{AppliedFiltersScrollbar → components/AppliedFiltersScrollbar}/index.js +3 -4
- package/dist/{ButtonBase/index.d.ts → components/ButtonBase/index-Bxdhf_O8.d.cts} +3 -3
- package/dist/{ButtonBase/index.d.cts → components/ButtonBase/index-VoanK6Pr.d.ts} +3 -3
- package/dist/components/ButtonBase/index.cjs +6 -0
- package/dist/components/ButtonBase/index.js +5 -0
- package/dist/{DynamicFiltersScrollbar/index.d.cts → components/DynamicFiltersScrollbar/index-CHzxQmaW.d.cts} +2 -2
- package/dist/{DynamicFiltersScrollbar/index.d.ts → components/DynamicFiltersScrollbar/index-vVNOOaOF.d.ts} +2 -2
- package/dist/{DynamicFiltersScrollbar → components/DynamicFiltersScrollbar}/index.cjs +4 -6
- package/dist/{DynamicFiltersScrollbar → components/DynamicFiltersScrollbar}/index.js +3 -4
- package/dist/{FilterScrollbar/index.d.cts → components/FilterScrollbar/index-DXcZLcQi.d.cts} +4 -4
- package/dist/{FilterScrollbar/index.d.ts → components/FilterScrollbar/index-DwLyxqQl.d.ts} +4 -4
- package/dist/components/FilterScrollbar/index.cjs +5 -0
- package/dist/components/FilterScrollbar/index.js +4 -0
- package/dist/{ImageWithFallback/index.d.cts → components/ImageWithFallback/index-BLbkDyG8.d.cts} +2 -2
- package/dist/{ImageWithFallback/index.d.ts → components/ImageWithFallback/index-NJZsMOXc.d.ts} +2 -2
- package/dist/components/ImageWithFallback/index.cjs +3 -0
- package/dist/components/ImageWithFallback/index.js +3 -0
- package/dist/{ModalSheet/index.d.cts → components/ModalSheet/index-B5q4MHdq.d.cts} +2 -2
- package/dist/{ModalSheet/index.d.ts → components/ModalSheet/index-BN20-QS0.d.ts} +2 -2
- package/dist/components/ModalSheet/index.cjs +4 -0
- package/dist/components/ModalSheet/index.js +4 -0
- package/dist/components/ProductCard/index-CglXQ3wh.d.ts +2 -0
- package/dist/components/ProductCard/index-XVlN6iMl.d.cts +2 -0
- package/dist/{ProductCard → components/ProductCard}/index.cjs +7 -4
- package/dist/components/ProductCard/index.js +7 -0
- package/dist/{ProductGrid/index.d.ts → components/ProductGrid/index-BPBgwFsa.d.cts} +4 -3
- package/dist/{ProductGrid/index.d.cts → components/ProductGrid/index-D_YpwJCd.d.ts} +4 -3
- package/dist/components/ProductGrid/index.cjs +9 -0
- package/dist/components/ProductGrid/index.js +8 -0
- package/dist/{RadioButton/index.d.cts → components/RadioButton/index-BeOT_AlW.d.cts} +3 -3
- package/dist/{RadioButton/index.d.ts → components/RadioButton/index-CxluCaJw.d.ts} +3 -3
- package/dist/components/RadioButton/index.cjs +4 -0
- package/dist/components/RadioButton/index.js +4 -0
- package/dist/{RadioButtonGroup/index.d.cts → components/RadioButtonGroup/index-BOhV-rG3.d.cts} +3 -3
- package/dist/{RadioButtonGroup/index.d.ts → components/RadioButtonGroup/index-KeOIiYNW.d.ts} +3 -3
- package/dist/components/RadioButtonGroup/index.cjs +6 -0
- package/dist/components/RadioButtonGroup/index.js +5 -0
- package/dist/components/RecommendedProducts/index-BFM83Qu3.d.cts +15 -0
- package/dist/components/RecommendedProducts/index-DlbCfGof.d.ts +15 -0
- package/dist/components/RecommendedProducts/index.cjs +12 -0
- package/dist/components/RecommendedProducts/index.js +12 -0
- package/dist/{SearchAutocomplete/index.d.cts → components/SearchAutocomplete/index-BcnHcv7Q.d.cts} +2 -2
- package/dist/{SearchAutocomplete/index.d.ts → components/SearchAutocomplete/index-Br_POGOz.d.ts} +2 -2
- package/dist/components/SearchAutocomplete/index.cjs +6 -0
- package/dist/components/SearchAutocomplete/index.js +6 -0
- package/dist/components/SearchFilter/index-BbIqmoO8.d.ts +91 -0
- package/dist/components/SearchFilter/index-DAL3Wl6U.d.cts +91 -0
- package/dist/components/SearchFilter/index.cjs +18 -0
- package/dist/components/SearchFilter/index.js +13 -0
- package/dist/{SearchInput/index.d.cts → components/SearchInput/index-C0H51Flv.d.ts} +4 -3
- package/dist/{SearchInput/index.d.ts → components/SearchInput/index-rFDdhvqg.d.cts} +4 -3
- package/dist/components/SearchInput/index.cjs +8 -0
- package/dist/components/SearchInput/index.js +7 -0
- package/dist/{SearchInputForm/index.d.cts → components/SearchInputForm/index-Cleto06d.d.cts} +4 -2
- package/dist/{SearchInputForm/index.d.ts → components/SearchInputForm/index-DjjoY7MQ.d.ts} +6 -4
- package/dist/components/SearchInputForm/index.cjs +10 -0
- package/dist/components/SearchInputForm/index.js +10 -0
- package/dist/{SearchResultsContent/index.d.ts → components/SearchResultsContent/index-C4qsTFUd.d.cts} +19 -7
- package/dist/{SearchResultsContent/index.d.cts → components/SearchResultsContent/index-KdFf9yzs.d.ts} +17 -5
- package/dist/components/SearchResultsContent/index.cjs +62 -0
- package/dist/components/SearchResultsContent/index.js +60 -0
- package/dist/components/SearchResultsFilterButton/index-BvntKdyC.d.ts +13 -0
- package/dist/components/SearchResultsFilterButton/index-zgQsT6vz.d.cts +13 -0
- package/dist/components/SearchResultsFilterButton/index.cjs +10 -0
- package/dist/components/SearchResultsFilterButton/index.js +10 -0
- package/dist/components/SearchResultsFilterModal/index-CNBQ1ikL.d.ts +27 -0
- package/dist/components/SearchResultsFilterModal/index-mRcnKysU.d.cts +27 -0
- package/dist/components/SearchResultsFilterModal/index.cjs +48 -0
- package/dist/components/SearchResultsFilterModal/index.js +47 -0
- package/dist/components/SearchResultsFilterSidebar/index-C7PE9z5a.d.ts +2 -0
- package/dist/components/SearchResultsFilterSidebar/index-DKzEKFV3.d.cts +2 -0
- package/dist/components/SearchResultsFilterSidebar/index.cjs +17 -0
- package/dist/components/SearchResultsFilterSidebar/index.js +16 -0
- package/dist/{SearchResultsStates/index.d.ts → components/SearchResultsStates/index-Dugoegtn.d.ts} +20 -9
- package/dist/{SearchResultsStates/index.d.cts → components/SearchResultsStates/index-RVgPTFiH.d.cts} +16 -5
- package/dist/components/SearchResultsStates/index.cjs +18 -0
- package/dist/components/SearchResultsStates/index.js +16 -0
- package/dist/components/SearchResultsToolbar/index-CIvuccni.d.ts +49 -0
- package/dist/components/SearchResultsToolbar/index-PYr086HM.d.cts +49 -0
- package/dist/components/SearchResultsToolbar/index.cjs +68 -0
- package/dist/components/SearchResultsToolbar/index.js +65 -0
- package/dist/components/SparkleAnimation/index-BFqUibyY.d.ts +23 -0
- package/dist/components/SparkleAnimation/index-CSBR76H5.d.cts +23 -0
- package/dist/components/SparkleAnimation/index.cjs +6 -0
- package/dist/components/SparkleAnimation/index.js +5 -0
- package/dist/{Spinner/index.d.cts → components/Spinner/index-DrYhRG9D.d.cts} +2 -2
- package/dist/{Spinner/index.d.ts → components/Spinner/index-TKsPifGM.d.ts} +2 -2
- package/dist/components/Spinner/index.cjs +3 -0
- package/dist/components/Spinner/index.js +3 -0
- package/dist/{SuggestionButton/index.d.cts → components/SuggestionButton/index-BioM3QHW.d.ts} +3 -3
- package/dist/{SuggestionButton/index.d.ts → components/SuggestionButton/index-CjV6Ar4Y.d.cts} +3 -3
- package/dist/{SuggestionButton → components/SuggestionButton}/index.cjs +11 -14
- package/dist/{SuggestionButton → components/SuggestionButton}/index.js +10 -10
- package/dist/{TextInput/index.d.cts → components/TextInput/index-CRJMRe-b.d.cts} +2 -2
- package/dist/{TextInput/index.d.ts → components/TextInput/index-DAhxej1K.d.ts} +2 -2
- package/dist/components/TextInput/index.cjs +4 -0
- package/dist/components/TextInput/index.js +4 -0
- package/dist/{ToggleButton/index.d.cts → components/ToggleButton/index-eLDrp4ic.d.cts} +2 -2
- package/dist/{ToggleButton/index.d.ts → components/ToggleButton/index-pFQuGdoj.d.ts} +2 -2
- package/dist/components/ToggleButton/index.cjs +4 -0
- package/dist/components/ToggleButton/index.js +4 -0
- package/dist/components/Typography/index-DzSBreyM.d.cts +3 -0
- package/dist/components/Typography/index-ymH7f3jB.d.ts +3 -0
- package/dist/{Typography → components/Typography}/index.cjs +1 -1
- package/dist/components/Typography/index.js +3 -0
- package/dist/formatPrice-CyfkjZ3R.cjs +19 -0
- package/dist/formatPrice-DexQu2aZ.js +13 -0
- package/dist/index-BCBtAzCc.d.ts +325 -0
- package/dist/{SearchResultsFilterSidebar/index.d.ts → index-BiKhzraQ.d.cts} +9 -5
- package/dist/{index-DoTNu3mL.d.cts → index-Bw6lDfEp.d.cts} +2 -2
- package/dist/index-CzbumwVZ.d.cts +325 -0
- package/dist/{SearchResultsFilterSidebar/index.d.cts → index-DK0xpfMg.d.ts} +9 -5
- package/dist/{index-C5iOTsRG.d.ts → index-DXGw5Z56.d.ts} +2 -2
- package/dist/jsx-runtime-Dg2m6dxZ-B-pkyyHT.cjs +2586 -0
- package/dist/jsx-runtime-Dg2m6dxZ-CU_SzTu4.js +2580 -0
- package/dist/{searchFilterSidebarVariants-BQ7OC862.cjs → searchFilterSidebarVariants-CjyRGKK_.cjs} +7 -10
- package/dist/{searchFilterSidebarVariants-C_rWIcxf.js → searchFilterSidebarVariants-gkgkflXx.js} +2 -3
- package/dist/types--eyQnaEA.d.cts +4 -0
- package/dist/types-D6fl4HOx.d.ts +4 -0
- package/dist/{typographyVariantClasses-BFRoEloZ.d.cts → typographyVariantClasses-CoRhazCU.d.cts} +1 -1
- package/dist/{typographyVariantClasses-D7h3ACAj.d.ts → typographyVariantClasses-_oNpv-aN.d.ts} +1 -1
- package/dist/util/index-C2ueYGXh.d.ts +21 -0
- package/dist/util/index-DUzbpjPa.d.cts +21 -0
- package/dist/util/index.cjs +80 -0
- package/dist/util/index.js +76 -0
- package/package.json +79 -53
- package/src/atoms/search/types.ts +1 -0
- package/src/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.tsx +1 -1
- package/src/components/ButtonBase/types.ts +1 -1
- package/src/components/FilterScrollbar/AppliedFiltersScrollbar.tsx +1 -1
- package/src/components/ProductCard/ProductCard.tsx +12 -12
- package/src/components/ProductCard/ProductCardSkeleton.tsx +1 -13
- package/src/components/ProductCard/index.ts +1 -0
- package/src/components/ProductCard/productCardVariants.ts +1 -1
- package/src/components/ProductCard/types.ts +49 -0
- package/src/components/ProductGrid/ProductGrid.tsx +2 -6
- package/src/components/ProductGrid/productGridVariants.ts +1 -1
- package/src/components/RadioButton/RadioButton.tsx +1 -1
- package/src/components/RadioButtonGroup/RadioButtonGroup.tsx +1 -1
- package/src/components/RecommendedProducts/RecommendedProducts.tsx +97 -0
- package/src/components/RecommendedProducts/index.ts +3 -0
- package/src/components/SearchFilter/SearchFilter.tsx +2 -1
- package/src/components/SearchFilter/SearchFilterFooter.tsx +1 -1
- package/src/components/SearchFilter/SearchFilterHeader.tsx +1 -1
- package/src/components/SearchFilter/SearchFilterItem.tsx +1 -1
- package/src/components/SearchFilter/types.ts +45 -0
- package/src/components/SearchFilter/useHasFilterStateChanged.tsx +1 -1
- package/src/components/SearchFilter/utils.ts +1 -1
- package/src/components/SearchInput/SearchInput.tsx +1 -1
- package/src/components/SearchInput/searchInputVariants.ts +2 -2
- package/src/components/SearchInputForm/SearchInputForm.tsx +10 -4
- package/src/components/SearchResultsContent/SearchResultsContent.tsx +72 -39
- package/src/components/SearchResultsFilterButton/SearchResultsFilterButton.tsx +30 -0
- package/src/components/SearchResultsFilterButton/index.ts +3 -0
- package/src/components/SearchResultsFilterModal/SearchResultsFilterModal.tsx +61 -0
- package/src/components/SearchResultsFilterModal/index.ts +3 -0
- package/src/components/SearchResultsFilterSidebar/SearchResultsFilter.tsx +2 -1
- package/src/components/SearchResultsFilterSidebar/index.ts +1 -0
- package/src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts +2 -2
- package/src/components/SearchResultsFilterSidebar/types.ts +2 -0
- package/src/components/SearchResultsStates/NoSearchResultsFound.tsx +43 -11
- package/src/components/SearchResultsStates/SearchResultsGrid.tsx +8 -7
- package/src/components/SearchResultsStates/SearchResultsLoadingGrid.tsx +1 -2
- package/src/components/SearchResultsToolbar/SearchResultsToolbar.tsx +111 -0
- package/src/components/SearchResultsToolbar/index.ts +3 -0
- package/src/components/SparkleAnimation/SparkleAnimation.tsx +1 -7
- package/src/components/SparkleAnimation/index.ts +1 -0
- package/src/components/SparkleAnimation/types.ts +6 -0
- package/src/components/SuggestionButton/SuggestionButton.tsx +1 -1
- package/src/config/chatElementDisplayLocation.ts +23 -0
- package/src/models/colorsConfig.ts +28 -0
- package/src/stories/AppliedFiltersScrollbar.stories.tsx +42 -0
- package/src/stories/ButtonBase.stories.tsx +54 -0
- package/src/stories/DynamicFiltersScrollbar.stories.tsx +42 -0
- package/src/stories/NoSearchResultsFound.stories.tsx +30 -0
- package/src/stories/ProductCard.stories.tsx +78 -0
- package/src/stories/ProductCardSkeleton.stories.tsx +48 -0
- package/src/stories/ProductGrid.stories.tsx +82 -0
- package/src/stories/SearchInputForm.stories.tsx +39 -0
- package/src/stories/SearchResultsFilter.stories.tsx +56 -0
- package/src/stories/SearchResultsGrid.stories.tsx +98 -0
- package/src/stories/SearchResultsLoadingGrid.stories.tsx +30 -0
- package/src/stories/SparkleAnimation.stories.tsx +47 -0
- package/src/stories/Typography.stories.tsx +140 -0
- package/src/util/camelCase.ts +87 -0
- package/src/util/camelCasedPropertiesDeep.ts +81 -0
- package/src/util/colorVar.ts +1 -1
- package/src/util/index.ts +4 -0
- package/src/util/internal.ts +97 -0
- package/src/util/primitive.ts +8 -0
- package/src/util/splitWords.ts +76 -0
- package/src/util/trim.ts +28 -0
- package/src/util/unknownArray.ts +25 -0
- package/src/util/useScrollDirection.ts +60 -0
- package/src/util/useStickyVisibility.ts +37 -0
- package/dist/Accordion/index.cjs +0 -4
- package/dist/Accordion/index.js +0 -4
- package/dist/AnimatedChevron/index.cjs +0 -3
- package/dist/AnimatedChevron/index.js +0 -3
- package/dist/ButtonBase/index.cjs +0 -6
- package/dist/ButtonBase/index.js +0 -5
- package/dist/FilterScrollbar/index.cjs +0 -5
- package/dist/FilterScrollbar/index.js +0 -4
- package/dist/ImageWithFallback/index.cjs +0 -3
- package/dist/ImageWithFallback/index.js +0 -3
- package/dist/ModalSheet/index.cjs +0 -4
- package/dist/ModalSheet/index.js +0 -4
- package/dist/ProductCard/index.d.cts +0 -82
- package/dist/ProductCard/index.d.ts +0 -82
- package/dist/ProductCard/index.js +0 -6
- package/dist/ProductGrid/index.cjs +0 -8
- package/dist/ProductGrid/index.js +0 -7
- package/dist/RadioButton/index.cjs +0 -4
- package/dist/RadioButton/index.js +0 -4
- package/dist/RadioButtonGroup/index.cjs +0 -6
- package/dist/RadioButtonGroup/index.js +0 -5
- package/dist/SearchAutocomplete/index.cjs +0 -4
- package/dist/SearchAutocomplete/index.js +0 -4
- package/dist/SearchFilter/index.cjs +0 -17
- package/dist/SearchFilter/index.d.cts +0 -54
- package/dist/SearchFilter/index.d.ts +0 -54
- package/dist/SearchFilter/index.js +0 -12
- package/dist/SearchInput/index.cjs +0 -7
- package/dist/SearchInput/index.js +0 -6
- package/dist/SearchResultsContent/index.cjs +0 -44
- package/dist/SearchResultsContent/index.js +0 -41
- package/dist/SearchResultsStates/index.cjs +0 -14
- package/dist/SearchResultsStates/index.js +0 -12
- package/dist/SearchResultsStates-C-8fh8B9.cjs +0 -132
- package/dist/SearchResultsStates-D62WbDTD.js +0 -110
- package/dist/SparkleAnimation/index.cjs +0 -3
- package/dist/SparkleAnimation/index.d.cts +0 -15
- package/dist/SparkleAnimation/index.d.ts +0 -15
- package/dist/SparkleAnimation/index.js +0 -3
- package/dist/Spinner/index.cjs +0 -3
- package/dist/Spinner/index.js +0 -3
- package/dist/TextInput/index.cjs +0 -4
- package/dist/TextInput/index.js +0 -4
- package/dist/ToggleButton/index.cjs +0 -4
- package/dist/ToggleButton/index.js +0 -4
- package/dist/Typography/index.d.cts +0 -3
- package/dist/Typography/index.d.ts +0 -3
- package/dist/Typography/index.js +0 -3
- package/dist/colorVar-B5CLhSof.cjs +0 -11
- package/dist/colorVar-BJve0Z4_.js +0 -5
- /package/dist/{ButtonBase-DbWQ25n-.cjs → ButtonBase-Cb6Iec6f.cjs} +0 -0
- /package/dist/{ButtonBase-C_uKnl48.js → ButtonBase-D2eXuapk.js} +0 -0
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { t as Typography } from "./Typography-xehJH05l.js";
|
|
2
|
+
import { t as require_jsx_runtime } from "./jsx-runtime-Dg2m6dxZ-CU_SzTu4.js";
|
|
3
|
+
import { n as AppliedFiltersScrollbar, t as DynamicFiltersScrollbar } from "./DynamicFiltersScrollbar-s5yfmMau.js";
|
|
4
|
+
import { t as ProductCardSkeleton } from "./ProductCard-GxpFxjh0.js";
|
|
5
|
+
import { n as productGridVariantClasses, t as ProductGrid } from "./ProductGrid-DAwc9dKV.js";
|
|
6
|
+
import { t as RecommendedProducts } from "./RecommendedProducts-C6dLpLPP.js";
|
|
7
|
+
import { t as searchFilterSidebarVariantClasses } from "./searchFilterSidebarVariants-gkgkflXx.js";
|
|
8
|
+
import { t as SparkleAnimation } from "./SparkleAnimation-szzXiTam.js";
|
|
9
|
+
import { motion } from "framer-motion";
|
|
10
|
+
import classNames from "classnames";
|
|
11
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
|
|
13
|
+
//#region ../icons/dist/Sparkles.js
|
|
14
|
+
var import_jsx_runtime = require_jsx_runtime();
|
|
15
|
+
const SvgSparkles = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
|
|
16
|
+
width: 24,
|
|
17
|
+
height: 24,
|
|
18
|
+
viewBox: "0 0 24 24",
|
|
19
|
+
fill: "currentColor",
|
|
20
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
21
|
+
...props,
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
24
|
+
d: "M8.18658 5.99609L9.47499 9.34597C9.68451 9.89072 9.78927 10.1631 9.95218 10.3922C10.0966 10.5953 10.274 10.7727 10.477 10.9171C10.7061 11.08 10.9785 11.1847 11.5233 11.3943L14.8732 12.6827L11.5233 13.9711C10.9785 14.1806 10.7061 14.2854 10.477 14.4483C10.274 14.5927 10.0966 14.7701 9.95218 14.9731C9.78927 15.2022 9.68451 15.4746 9.47499 16.0194L8.18658 19.3693L6.89816 16.0194C6.68864 15.4746 6.58388 15.2022 6.42097 14.9731C6.27659 14.7701 6.09917 14.5927 5.89612 14.4483C5.66701 14.2854 5.39463 14.1806 4.84988 13.9711L1.5 12.6827L4.84987 11.3943C5.39463 11.1847 5.66701 11.08 5.89612 10.9171C6.09917 10.7727 6.27659 10.5953 6.42097 10.3922C6.58388 10.1631 6.68864 9.89072 6.89816 9.34597L8.18658 5.99609Z",
|
|
25
|
+
fill: "currentColor",
|
|
26
|
+
stroke: "currentColor",
|
|
27
|
+
strokeWidth: 1.11443,
|
|
28
|
+
strokeLinecap: "round",
|
|
29
|
+
strokeLinejoin: "round"
|
|
30
|
+
}),
|
|
31
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
32
|
+
d: "M19.6402 14.3135L20.2844 15.9884C20.3891 16.2608 20.4415 16.397 20.523 16.5115C20.5952 16.6131 20.6839 16.7018 20.7854 16.774C20.8999 16.8554 21.0361 16.9078 21.3085 17.0126L22.9835 17.6568L21.3085 18.301C21.0361 18.4057 20.8999 18.4581 20.7854 18.5396C20.6839 18.6118 20.5952 18.7005 20.523 18.802C20.4415 18.9166 20.3891 19.0527 20.2844 19.3251L19.6402 21.0001L18.996 19.3251C18.8912 19.0527 18.8388 18.9166 18.7574 18.802C18.6852 18.7005 18.5965 18.6118 18.4949 18.5396C18.3804 18.4581 18.2442 18.4057 17.9718 18.301L16.2969 17.6568L17.9718 17.0126C18.2442 16.9078 18.3804 16.8554 18.4949 16.774C18.5965 16.7018 18.6852 16.6131 18.7574 16.5115C18.8388 16.397 18.8912 16.2608 18.996 15.9884L19.6402 14.3135Z",
|
|
33
|
+
fill: "currentColor",
|
|
34
|
+
stroke: "currentColor",
|
|
35
|
+
strokeWidth: 1.11443,
|
|
36
|
+
strokeLinecap: "round",
|
|
37
|
+
strokeLinejoin: "round"
|
|
38
|
+
}),
|
|
39
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
40
|
+
d: "M17.0913 3L17.7355 4.67494C17.8403 4.94732 17.8927 5.0835 17.9741 5.19806C18.0463 5.29959 18.135 5.38829 18.2366 5.46049C18.3511 5.54194 18.4873 5.59432 18.7597 5.69908L20.4346 6.34329L18.7597 6.9875C18.4873 7.09226 18.3511 7.14464 18.2366 7.22609C18.135 7.29829 18.0463 7.38699 17.9741 7.48852C17.8927 7.60308 17.8403 7.73927 17.7355 8.01165L17.0913 9.68658L16.4471 8.01165C16.3424 7.73927 16.29 7.60308 16.2085 7.48852C16.1363 7.38699 16.0476 7.29829 15.9461 7.22609C15.8315 7.14464 15.6954 7.09226 15.423 6.9875L13.748 6.34329L15.423 5.69908C15.6954 5.59432 15.8315 5.54194 15.9461 5.46049C16.0476 5.38829 16.1363 5.29959 16.2085 5.19806C16.29 5.0835 16.3424 4.94731 16.4471 4.67494L17.0913 3Z",
|
|
41
|
+
fill: "currentColor",
|
|
42
|
+
stroke: "currentColor",
|
|
43
|
+
strokeWidth: 1.11443,
|
|
44
|
+
strokeLinecap: "round",
|
|
45
|
+
strokeLinejoin: "round"
|
|
46
|
+
})
|
|
47
|
+
]
|
|
48
|
+
});
|
|
49
|
+
var Sparkles_default = SvgSparkles;
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/components/SearchResultsStates/NoSearchResultsFound.tsx
|
|
53
|
+
const NoSearchResultsFound = ({ containerPaddingClasses, noResultsFoundText, sparkleIconColor = "var(--spiffy-colors-accent-primary)", recommendedProducts, searchText, merchantShortName, productGridVariant }) => {
|
|
54
|
+
const containerClasses = classNames(containerPaddingClasses, "spiffy-tw-mt-6", { "spiffy-tw-mb-[100vh]": recommendedProducts.length === 0 });
|
|
55
|
+
let textPrompt;
|
|
56
|
+
if (recommendedProducts.length > 0) textPrompt = noResultsFoundText ? /* @__PURE__ */ jsx("span", { children: noResultsFoundText }) : /* @__PURE__ */ jsxs("span", { children: [
|
|
57
|
+
"I’m sorry, I wasn’t able to find an exact match for",
|
|
58
|
+
/* @__PURE__ */ jsxs("strong", {
|
|
59
|
+
className: "spiffy-tw-font-semibold",
|
|
60
|
+
children: [" ", `"${searchText}".`]
|
|
61
|
+
}),
|
|
62
|
+
" Try changing your filters or adjusting your search query. In the meantime, explore some of our top-selling products below."
|
|
63
|
+
] });
|
|
64
|
+
else textPrompt = /* @__PURE__ */ jsxs("span", { children: [
|
|
65
|
+
"I’m sorry, I wasn’t able to find an exact match for",
|
|
66
|
+
/* @__PURE__ */ jsxs("strong", {
|
|
67
|
+
className: "spiffy-tw-font-semibold",
|
|
68
|
+
children: [" ", `"${searchText}."`]
|
|
69
|
+
}),
|
|
70
|
+
" Try changing your filters or adjusting your search query."
|
|
71
|
+
] });
|
|
72
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
73
|
+
className: containerClasses,
|
|
74
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
75
|
+
className: "spiffy-tw-flex spiffy-tw-items-start spiffy-tw-gap-2",
|
|
76
|
+
children: [/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Sparkles_default, {
|
|
77
|
+
className: "spiffy-tw-w-[24px] spiffy-tw-h-[24px]",
|
|
78
|
+
style: { color: sparkleIconColor }
|
|
79
|
+
}) }), /* @__PURE__ */ jsx(Typography, {
|
|
80
|
+
variant: "body2",
|
|
81
|
+
children: textPrompt
|
|
82
|
+
})]
|
|
83
|
+
}), /* @__PURE__ */ jsx(RecommendedProducts, {
|
|
84
|
+
retrievedProducts: recommendedProducts,
|
|
85
|
+
merchantShortName,
|
|
86
|
+
productCardConfig: {
|
|
87
|
+
variant: "minimal",
|
|
88
|
+
hoverVariant: "none",
|
|
89
|
+
layoutVariant: "square"
|
|
90
|
+
},
|
|
91
|
+
productGridVariant
|
|
92
|
+
})]
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/components/SearchResultsStates/SearchResultsGrid.tsx
|
|
98
|
+
const SearchResultsGrid = ({ productList, productCardConfig, merchantShortName, availableDynamicFilters, searchFilterSidebarVariant, productGridVariant, selectedFilterOptions, containerXPaddingClasses, productGridClasses, onRemoveFilter, onToggleDynamicFilter, onProductClick }) => {
|
|
99
|
+
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);
|
|
100
|
+
const filterBarClasses = classNames(sharedFilterBarClasses, "spiffy-tw-mt-[24px]");
|
|
101
|
+
const appliedFilterBarClasses = classNames(sharedFilterBarClasses, "spiffy-tw-mb-[32px]", "spiffy-tw-mt-[8px]");
|
|
102
|
+
const { filterDefaultClasses, filterHoverClasses, appliedFilterBackgroundClasses } = searchFilterSidebarVariantClasses[searchFilterSidebarVariant];
|
|
103
|
+
return /* @__PURE__ */ jsxs(motion.div, {
|
|
104
|
+
className: "spiffy-tw-justify-center spiffy-tw-w-full spiffy-tw-overflow-hidden",
|
|
105
|
+
initial: { opacity: 0 },
|
|
106
|
+
animate: { opacity: 1 },
|
|
107
|
+
exit: { opacity: 0 },
|
|
108
|
+
transition: { duration: .2 },
|
|
109
|
+
children: [
|
|
110
|
+
/* @__PURE__ */ jsx(AppliedFiltersScrollbar, {
|
|
111
|
+
selectedFilterOptions,
|
|
112
|
+
filterBarClassNames: appliedFilterBarClasses,
|
|
113
|
+
filterDefaultClasses,
|
|
114
|
+
filterHoverClasses,
|
|
115
|
+
appliedFilterBackgroundClasses,
|
|
116
|
+
onRemoveFilter
|
|
117
|
+
}),
|
|
118
|
+
/* @__PURE__ */ jsx(DynamicFiltersScrollbar, {
|
|
119
|
+
availableDynamicFilters,
|
|
120
|
+
filterBarClassNames: filterBarClasses,
|
|
121
|
+
filterDefaultClasses,
|
|
122
|
+
filterHoverClasses,
|
|
123
|
+
onToggleDynamicFilter
|
|
124
|
+
}),
|
|
125
|
+
/* @__PURE__ */ jsx(ProductGrid, {
|
|
126
|
+
productList,
|
|
127
|
+
productGridVariant,
|
|
128
|
+
productGridClasses,
|
|
129
|
+
productCardConfig,
|
|
130
|
+
merchantShortName,
|
|
131
|
+
onProductClick
|
|
132
|
+
})
|
|
133
|
+
]
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
//#endregion
|
|
138
|
+
//#region src/components/SearchResultsStates/SearchResultsLoadingGrid.tsx
|
|
139
|
+
const SearchResultsLoadingGrid = ({ productGridVariant, productGridClasses, sparkleIconColor = "var(--spiffy-colors-accent-primary)" }) => {
|
|
140
|
+
const { productCardLayoutVariant, productCardImageAspectRatio } = productGridVariantClasses[productGridVariant];
|
|
141
|
+
return /* @__PURE__ */ jsx(motion.div, {
|
|
142
|
+
className: "spiffy-tw-justify-center spiffy-tw-w-full spiffy-tw-overflow-hidden",
|
|
143
|
+
initial: { opacity: 0 },
|
|
144
|
+
animate: { opacity: 1 },
|
|
145
|
+
exit: { opacity: 0 },
|
|
146
|
+
transition: { duration: .2 },
|
|
147
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
148
|
+
className: "spiffy-tw-mt-6 spiffy-tw-w-full",
|
|
149
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
150
|
+
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-justify-between spiffy-tw-mb-4",
|
|
151
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
152
|
+
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-gap-2 spiffy-tw-ml-[16px] md:spiffy-tw-ml-[80px]",
|
|
153
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
154
|
+
className: "spiffy-tw-width-[24px]",
|
|
155
|
+
children: /* @__PURE__ */ jsx(SparkleAnimation, {
|
|
156
|
+
color: sparkleIconColor,
|
|
157
|
+
animate: true
|
|
158
|
+
})
|
|
159
|
+
}), /* @__PURE__ */ jsx(Typography, {
|
|
160
|
+
variant: "body2",
|
|
161
|
+
children: "Finding the best options for you..."
|
|
162
|
+
})]
|
|
163
|
+
})
|
|
164
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
165
|
+
className: productGridClasses,
|
|
166
|
+
children: Array.from({ length: 8 }).map((_, index) => /* @__PURE__ */ jsx(ProductCardSkeleton, {
|
|
167
|
+
layoutVariant: productCardLayoutVariant,
|
|
168
|
+
aspectRatio: productCardImageAspectRatio,
|
|
169
|
+
growWithContainer: true
|
|
170
|
+
}, index))
|
|
171
|
+
})]
|
|
172
|
+
})
|
|
173
|
+
});
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
//#endregion
|
|
177
|
+
export { SearchResultsGrid as n, NoSearchResultsFound as r, SearchResultsLoadingGrid as t };
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
|
|
3
|
-
framer_motion = require_chunk.__toESM(framer_motion);
|
|
4
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
-
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
2
|
+
const require_FourPointStar = require('./FourPointStar-AQ9OSu0S.cjs');
|
|
6
3
|
let react = require("react");
|
|
7
|
-
|
|
4
|
+
let framer_motion = require("framer-motion");
|
|
8
5
|
let classnames = require("classnames");
|
|
9
6
|
classnames = require_chunk.__toESM(classnames);
|
|
10
|
-
let
|
|
11
|
-
__envive_ai_react_icons_FourPointStar = require_chunk.__toESM(__envive_ai_react_icons_FourPointStar);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
12
8
|
|
|
13
|
-
//#region src/components/SparkleAnimation/
|
|
14
|
-
|
|
15
|
-
const STAR_DELAY_OFFSET = 250;
|
|
16
|
-
var SparkleAnimationOverride = /* @__PURE__ */ function(SparkleAnimationOverride$1) {
|
|
9
|
+
//#region src/components/SparkleAnimation/types.ts
|
|
10
|
+
let SparkleAnimationOverride = /* @__PURE__ */ function(SparkleAnimationOverride$1) {
|
|
17
11
|
SparkleAnimationOverride$1["CONTAINER"] = "spiffy-sparkle-animation-container";
|
|
18
12
|
SparkleAnimationOverride$1["STAR_ONE_CONTAINER"] = "spiffy-sparkle-animation-star-one-container";
|
|
19
13
|
SparkleAnimationOverride$1["STAR_TWO_CONTAINER"] = "spiffy-sparkle-animation-star-two-container";
|
|
20
14
|
SparkleAnimationOverride$1["STAR_THREE_CONTAINER"] = "spiffy-sparkle-animation-star-three-container";
|
|
21
15
|
return SparkleAnimationOverride$1;
|
|
22
|
-
}(
|
|
16
|
+
}({});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/components/SparkleAnimation/SparkleAnimation.tsx
|
|
20
|
+
const ANIMATION_CYCLE_TIME = 1e3;
|
|
21
|
+
const STAR_DELAY_OFFSET = 250;
|
|
23
22
|
const SparkleAnimation = ({ color, className, animate = true }) => {
|
|
24
23
|
const [mainStarScale, setMainStarScale] = (0, react.useState)(animate ? 0 : 1);
|
|
25
24
|
const [smallStar1Scale, setSmallStar1Scale] = (0, react.useState)(animate ? 0 : 1);
|
|
@@ -51,7 +50,7 @@ const SparkleAnimation = ({ color, className, animate = true }) => {
|
|
|
51
50
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
52
51
|
animate: { scale: mainStarScale },
|
|
53
52
|
transition: starTransition,
|
|
54
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
53
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_FourPointStar.FourPointStar_default, {
|
|
55
54
|
fill: color,
|
|
56
55
|
className: "spiffy-tw-w-4 spiffy-tw-h-4 spiffy-tw-inline-block"
|
|
57
56
|
})
|
|
@@ -62,7 +61,7 @@ const SparkleAnimation = ({ color, className, animate = true }) => {
|
|
|
62
61
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
63
62
|
animate: { scale: smallStar1Scale },
|
|
64
63
|
transition: starTransition,
|
|
65
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
64
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_FourPointStar.FourPointStar_default, {
|
|
66
65
|
fill: color,
|
|
67
66
|
className: "spiffy-tw-w-2 spiffy-tw-h-2 spiffy-tw-inline-block"
|
|
68
67
|
})
|
|
@@ -73,7 +72,7 @@ const SparkleAnimation = ({ color, className, animate = true }) => {
|
|
|
73
72
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
74
73
|
animate: { scale: smallStar2Scale },
|
|
75
74
|
transition: starTransition,
|
|
76
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
75
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_FourPointStar.FourPointStar_default, {
|
|
77
76
|
fill: color,
|
|
78
77
|
className: "spiffy-tw-w-2 spiffy-tw-h-2 spiffy-tw-inline-block"
|
|
79
78
|
})
|
|
@@ -89,4 +88,10 @@ Object.defineProperty(exports, 'SparkleAnimation', {
|
|
|
89
88
|
get: function () {
|
|
90
89
|
return SparkleAnimation;
|
|
91
90
|
}
|
|
91
|
+
});
|
|
92
|
+
Object.defineProperty(exports, 'SparkleAnimationOverride', {
|
|
93
|
+
enumerable: true,
|
|
94
|
+
get: function () {
|
|
95
|
+
return SparkleAnimationOverride;
|
|
96
|
+
}
|
|
92
97
|
});
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { t as FourPointStar_default } from "./FourPointStar-3DqnYmfN.js";
|
|
3
2
|
import { useEffect, useState } from "react";
|
|
3
|
+
import { motion } from "framer-motion";
|
|
4
4
|
import classNames from "classnames";
|
|
5
|
-
import
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
|
|
7
|
-
//#region src/components/SparkleAnimation/
|
|
8
|
-
|
|
9
|
-
const STAR_DELAY_OFFSET = 250;
|
|
10
|
-
var SparkleAnimationOverride = /* @__PURE__ */ function(SparkleAnimationOverride$1) {
|
|
7
|
+
//#region src/components/SparkleAnimation/types.ts
|
|
8
|
+
let SparkleAnimationOverride = /* @__PURE__ */ function(SparkleAnimationOverride$1) {
|
|
11
9
|
SparkleAnimationOverride$1["CONTAINER"] = "spiffy-sparkle-animation-container";
|
|
12
10
|
SparkleAnimationOverride$1["STAR_ONE_CONTAINER"] = "spiffy-sparkle-animation-star-one-container";
|
|
13
11
|
SparkleAnimationOverride$1["STAR_TWO_CONTAINER"] = "spiffy-sparkle-animation-star-two-container";
|
|
14
12
|
SparkleAnimationOverride$1["STAR_THREE_CONTAINER"] = "spiffy-sparkle-animation-star-three-container";
|
|
15
13
|
return SparkleAnimationOverride$1;
|
|
16
|
-
}(
|
|
14
|
+
}({});
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/components/SparkleAnimation/SparkleAnimation.tsx
|
|
18
|
+
const ANIMATION_CYCLE_TIME = 1e3;
|
|
19
|
+
const STAR_DELAY_OFFSET = 250;
|
|
17
20
|
const SparkleAnimation = ({ color, className, animate = true }) => {
|
|
18
21
|
const [mainStarScale, setMainStarScale] = useState(animate ? 0 : 1);
|
|
19
22
|
const [smallStar1Scale, setSmallStar1Scale] = useState(animate ? 0 : 1);
|
|
@@ -45,7 +48,7 @@ const SparkleAnimation = ({ color, className, animate = true }) => {
|
|
|
45
48
|
children: /* @__PURE__ */ jsx(motion.div, {
|
|
46
49
|
animate: { scale: mainStarScale },
|
|
47
50
|
transition: starTransition,
|
|
48
|
-
children: /* @__PURE__ */ jsx(
|
|
51
|
+
children: /* @__PURE__ */ jsx(FourPointStar_default, {
|
|
49
52
|
fill: color,
|
|
50
53
|
className: "spiffy-tw-w-4 spiffy-tw-h-4 spiffy-tw-inline-block"
|
|
51
54
|
})
|
|
@@ -56,7 +59,7 @@ const SparkleAnimation = ({ color, className, animate = true }) => {
|
|
|
56
59
|
children: /* @__PURE__ */ jsx(motion.div, {
|
|
57
60
|
animate: { scale: smallStar1Scale },
|
|
58
61
|
transition: starTransition,
|
|
59
|
-
children: /* @__PURE__ */ jsx(
|
|
62
|
+
children: /* @__PURE__ */ jsx(FourPointStar_default, {
|
|
60
63
|
fill: color,
|
|
61
64
|
className: "spiffy-tw-w-2 spiffy-tw-h-2 spiffy-tw-inline-block"
|
|
62
65
|
})
|
|
@@ -67,7 +70,7 @@ const SparkleAnimation = ({ color, className, animate = true }) => {
|
|
|
67
70
|
children: /* @__PURE__ */ jsx(motion.div, {
|
|
68
71
|
animate: { scale: smallStar2Scale },
|
|
69
72
|
transition: starTransition,
|
|
70
|
-
children: /* @__PURE__ */ jsx(
|
|
73
|
+
children: /* @__PURE__ */ jsx(FourPointStar_default, {
|
|
71
74
|
fill: color,
|
|
72
75
|
className: "spiffy-tw-w-2 spiffy-tw-h-2 spiffy-tw-inline-block"
|
|
73
76
|
})
|
|
@@ -78,4 +81,4 @@ const SparkleAnimation = ({ color, className, animate = true }) => {
|
|
|
78
81
|
};
|
|
79
82
|
|
|
80
83
|
//#endregion
|
|
81
|
-
export { SparkleAnimation };
|
|
84
|
+
export { SparkleAnimationOverride as n, SparkleAnimation as t };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
-
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
4
2
|
let classnames = require("classnames");
|
|
5
3
|
classnames = require_chunk.__toESM(classnames);
|
|
4
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
5
|
|
|
7
6
|
//#region src/components/Spinner/Spinner.tsx
|
|
8
7
|
const Spinner = ({ className }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
1
|
import classNames from "classnames";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Spinner/Spinner.tsx
|
|
5
5
|
const Spinner = ({ className }) => {
|
|
@@ -35,4 +35,4 @@ const Spinner = ({ className }) => {
|
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
//#endregion
|
|
38
|
-
export { Spinner };
|
|
38
|
+
export { Spinner as t };
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
2
|
const require_Typography = require('./Typography-Ds4gfOJz.cjs');
|
|
3
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
-
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
5
3
|
let react = require("react");
|
|
6
4
|
react = require_chunk.__toESM(react);
|
|
7
5
|
let classnames = require("classnames");
|
|
8
6
|
classnames = require_chunk.__toESM(classnames);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
8
|
|
|
10
9
|
//#region src/components/TextInput/TextInput.tsx
|
|
11
|
-
const TextInput = react.default.forwardRef(({ className, borderRadius, borderColorClass, placeholderVariant
|
|
12
|
-
const
|
|
13
|
-
const placeholderVariantClassNames = require_Typography.getVariantPlaceholderClassNames(variantClassNames);
|
|
10
|
+
const TextInput = react.default.forwardRef(({ className, borderRadius, borderColorClass, placeholderVariant, ...rest }, ref) => {
|
|
11
|
+
const placeholderVariantClassNames = require_Typography.getVariantPlaceholderClassNames(placeholderVariant ? require_Typography.TypographyVariantMap[placeholderVariant] : {});
|
|
14
12
|
const inputClasses = (0, classnames.default)([
|
|
15
13
|
{
|
|
16
14
|
"spiffy-text-input": true,
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
1
|
+
import { i as getVariantPlaceholderClassNames, r as TypographyVariantMap } from "./Typography-xehJH05l.js";
|
|
3
2
|
import React from "react";
|
|
4
3
|
import classNames from "classnames";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/TextInput/TextInput.tsx
|
|
7
|
-
const TextInput = React.forwardRef(({ className, borderRadius, borderColorClass, placeholderVariant
|
|
8
|
-
const
|
|
9
|
-
const placeholderVariantClassNames = getVariantPlaceholderClassNames(variantClassNames);
|
|
7
|
+
const TextInput = React.forwardRef(({ className, borderRadius, borderColorClass, placeholderVariant, ...rest }, ref) => {
|
|
8
|
+
const placeholderVariantClassNames = getVariantPlaceholderClassNames(placeholderVariant ? TypographyVariantMap[placeholderVariant] : {});
|
|
10
9
|
const inputClasses = classNames([
|
|
11
10
|
{
|
|
12
11
|
"spiffy-text-input": true,
|
|
@@ -28,4 +27,4 @@ const TextInput = React.forwardRef(({ className, borderRadius, borderColorClass,
|
|
|
28
27
|
});
|
|
29
28
|
|
|
30
29
|
//#endregion
|
|
31
|
-
export { TextInput };
|
|
30
|
+
export { TextInput as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Typography } from "./Typography-
|
|
2
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { t as Typography } from "./Typography-xehJH05l.js";
|
|
3
2
|
import classNames from "classnames";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ToggleButton/ToggleButton.tsx
|
|
6
6
|
const toggleButtonVariants = { default: {
|
|
@@ -57,4 +57,4 @@ const ToggleButton = ({ isSelected, onClick, label, buttonClassName, labelClassN
|
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
//#endregion
|
|
60
|
-
export { ToggleButton };
|
|
60
|
+
export { ToggleButton as t };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
2
|
const require_Typography = require('./Typography-Ds4gfOJz.cjs');
|
|
3
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
-
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
5
3
|
let classnames = require("classnames");
|
|
6
4
|
classnames = require_chunk.__toESM(classnames);
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
6
|
|
|
8
7
|
//#region src/components/ToggleButton/ToggleButton.tsx
|
|
9
8
|
const toggleButtonVariants = { default: {
|
|
@@ -147,4 +147,4 @@ const Typography = ({ children, className, style, noOfLines, testId, elementType
|
|
|
147
147
|
};
|
|
148
148
|
|
|
149
149
|
//#endregion
|
|
150
|
-
export {
|
|
150
|
+
export { getVariantPlaceholderClassNames as i, TypographyDomVariantMap as n, TypographyVariantMap as r, Typography as t };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region src/models/colorsConfig.ts
|
|
2
|
+
var ColorNames = /* @__PURE__ */ function(ColorNames$1) {
|
|
3
|
+
ColorNames$1["TextPrimary"] = "text-primary";
|
|
4
|
+
ColorNames$1["TextSecondary"] = "text-secondary";
|
|
5
|
+
ColorNames$1["TextAccent"] = "text-accent";
|
|
6
|
+
ColorNames$1["TextLink"] = "text-link";
|
|
7
|
+
ColorNames$1["TextLight"] = "text-light";
|
|
8
|
+
ColorNames$1["BackgroundPrimary"] = "background-primary";
|
|
9
|
+
ColorNames$1["BackgroundSecondary"] = "background-secondary";
|
|
10
|
+
ColorNames$1["BackgroundSecondaryDark"] = "background-secondary-dark";
|
|
11
|
+
ColorNames$1["BackgroundTertiary"] = "background-tertiary";
|
|
12
|
+
ColorNames$1["BackgroundDark"] = "background-dark";
|
|
13
|
+
ColorNames$1["BackgroundLight"] = "background-light";
|
|
14
|
+
ColorNames$1["BackgroundSaturated"] = "background-saturated";
|
|
15
|
+
ColorNames$1["BorderLight"] = "border-light";
|
|
16
|
+
ColorNames$1["BorderMedium"] = "border-medium";
|
|
17
|
+
ColorNames$1["BorderDark"] = "border-dark";
|
|
18
|
+
ColorNames$1["BorderOutline"] = "border-outline";
|
|
19
|
+
ColorNames$1["AccentPrimary"] = "accent-primary";
|
|
20
|
+
ColorNames$1["AccentSecondary"] = "accent-secondary";
|
|
21
|
+
return ColorNames$1;
|
|
22
|
+
}(ColorNames || {});
|
|
23
|
+
const colorVar = (color) => `var(--spiffy-colors-${color})`;
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { colorVar as n, ColorNames as t };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/models/colorsConfig.ts
|
|
3
|
+
var ColorNames = /* @__PURE__ */ function(ColorNames$1) {
|
|
4
|
+
ColorNames$1["TextPrimary"] = "text-primary";
|
|
5
|
+
ColorNames$1["TextSecondary"] = "text-secondary";
|
|
6
|
+
ColorNames$1["TextAccent"] = "text-accent";
|
|
7
|
+
ColorNames$1["TextLink"] = "text-link";
|
|
8
|
+
ColorNames$1["TextLight"] = "text-light";
|
|
9
|
+
ColorNames$1["BackgroundPrimary"] = "background-primary";
|
|
10
|
+
ColorNames$1["BackgroundSecondary"] = "background-secondary";
|
|
11
|
+
ColorNames$1["BackgroundSecondaryDark"] = "background-secondary-dark";
|
|
12
|
+
ColorNames$1["BackgroundTertiary"] = "background-tertiary";
|
|
13
|
+
ColorNames$1["BackgroundDark"] = "background-dark";
|
|
14
|
+
ColorNames$1["BackgroundLight"] = "background-light";
|
|
15
|
+
ColorNames$1["BackgroundSaturated"] = "background-saturated";
|
|
16
|
+
ColorNames$1["BorderLight"] = "border-light";
|
|
17
|
+
ColorNames$1["BorderMedium"] = "border-medium";
|
|
18
|
+
ColorNames$1["BorderDark"] = "border-dark";
|
|
19
|
+
ColorNames$1["BorderOutline"] = "border-outline";
|
|
20
|
+
ColorNames$1["AccentPrimary"] = "accent-primary";
|
|
21
|
+
ColorNames$1["AccentSecondary"] = "accent-secondary";
|
|
22
|
+
return ColorNames$1;
|
|
23
|
+
}(ColorNames || {});
|
|
24
|
+
const colorVar = (color) => `var(--spiffy-colors-${color})`;
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
Object.defineProperty(exports, 'ColorNames', {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () {
|
|
30
|
+
return ColorNames;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(exports, 'colorVar', {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () {
|
|
36
|
+
return colorVar;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/Accordion/Accordion.d.ts
|
|
4
4
|
interface AccordionProps {
|
|
@@ -8,6 +8,6 @@ interface AccordionProps {
|
|
|
8
8
|
declare const Accordion: ({
|
|
9
9
|
title,
|
|
10
10
|
content
|
|
11
|
-
}: AccordionProps) =>
|
|
11
|
+
}: AccordionProps) => react_jsx_runtime0.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Accordion };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/Accordion/Accordion.d.ts
|
|
4
4
|
interface AccordionProps {
|
|
@@ -8,6 +8,6 @@ interface AccordionProps {
|
|
|
8
8
|
declare const Accordion: ({
|
|
9
9
|
title,
|
|
10
10
|
content
|
|
11
|
-
}: AccordionProps) =>
|
|
11
|
+
}: AccordionProps) => react_jsx_runtime10.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Accordion };
|
package/dist/{AnimatedChevron/index.d.cts → components/AnimatedChevron/index-BwQ6tJL8.d.cts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime24 from "react/jsx-runtime";
|
|
2
2
|
import { MotionValue } from "framer-motion";
|
|
3
3
|
|
|
4
4
|
//#region src/components/AnimatedChevron/AnimatedChevron.d.ts
|
|
@@ -9,6 +9,6 @@ interface AnimatedChevronProps {
|
|
|
9
9
|
declare const AnimatedChevron: ({
|
|
10
10
|
animationKey,
|
|
11
11
|
chevronColor
|
|
12
|
-
}: AnimatedChevronProps) =>
|
|
12
|
+
}: AnimatedChevronProps) => react_jsx_runtime24.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { AnimatedChevron };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MotionValue } from "framer-motion";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/AnimatedChevron/AnimatedChevron.d.ts
|
|
5
5
|
interface AnimatedChevronProps {
|
|
@@ -9,6 +9,6 @@ interface AnimatedChevronProps {
|
|
|
9
9
|
declare const AnimatedChevron: ({
|
|
10
10
|
animationKey,
|
|
11
11
|
chevronColor
|
|
12
|
-
}: AnimatedChevronProps) =>
|
|
12
|
+
}: AnimatedChevronProps) => react_jsx_runtime0.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { AnimatedChevron };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { SelectedFilterOption } from "@envive-ai/
|
|
1
|
+
import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
2
|
+
import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
|
|
3
3
|
|
|
4
4
|
//#region src/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.d.ts
|
|
5
5
|
interface AppliedFiltersScrollbarProps {
|
|
@@ -17,6 +17,6 @@ declare const AppliedFiltersScrollbar: ({
|
|
|
17
17
|
filterHoverClasses,
|
|
18
18
|
appliedFilterBackgroundClasses,
|
|
19
19
|
onRemoveFilter
|
|
20
|
-
}: AppliedFiltersScrollbarProps) =>
|
|
20
|
+
}: AppliedFiltersScrollbarProps) => react_jsx_runtime28.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { AppliedFiltersScrollbar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { SelectedFilterOption } from "@envive-ai/
|
|
1
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
2
|
+
import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
|
|
3
3
|
|
|
4
4
|
//#region src/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.d.ts
|
|
5
5
|
interface AppliedFiltersScrollbarProps {
|
|
@@ -17,6 +17,6 @@ declare const AppliedFiltersScrollbar: ({
|
|
|
17
17
|
filterHoverClasses,
|
|
18
18
|
appliedFilterBackgroundClasses,
|
|
19
19
|
onRemoveFilter
|
|
20
|
-
}: AppliedFiltersScrollbarProps) =>
|
|
20
|
+
}: AppliedFiltersScrollbarProps) => react_jsx_runtime20.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { AppliedFiltersScrollbar };
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
const require_chunk = require('
|
|
2
|
-
const require_Typography = require('
|
|
3
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
-
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
1
|
+
const require_chunk = require('../../chunk-CUT6urMc.cjs');
|
|
2
|
+
const require_Typography = require('../../Typography-Ds4gfOJz.cjs');
|
|
5
3
|
let classnames = require("classnames");
|
|
6
4
|
classnames = require_chunk.__toESM(classnames);
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
6
|
let react_indiana_drag_scroll = require("react-indiana-drag-scroll");
|
|
8
7
|
react_indiana_drag_scroll = require_chunk.__toESM(react_indiana_drag_scroll);
|
|
9
8
|
|
|
10
9
|
//#region src/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.tsx
|
|
11
10
|
const AppliedFiltersScrollbar = ({ selectedFilterOptions, filterBarClassNames, filterDefaultClasses, filterHoverClasses, appliedFilterBackgroundClasses, onRemoveFilter }) => {
|
|
12
11
|
if (selectedFilterOptions.length === 0) return null;
|
|
13
|
-
const
|
|
14
|
-
const buttonClasses = (0, classnames.default)(" spiffy-tw-flex spiffy-tw-items-center spiffy-tw-rounded-full spiffy-tw-px-[8px] spiffy-tw-py-[4px] spiffy-tw-whitespace-nowrap", filterHoverClasses, filterDefaultWithoutBg, appliedFilterBackgroundClasses);
|
|
12
|
+
const buttonClasses = (0, classnames.default)(" spiffy-tw-flex spiffy-tw-items-center spiffy-tw-rounded-full spiffy-tw-px-[8px] spiffy-tw-py-[4px] spiffy-tw-whitespace-nowrap", filterHoverClasses, filterDefaultClasses.replace(/spiffy-tw-bg-\[--spiffy-colors-[^\]]+\]/g, "").trim(), appliedFilterBackgroundClasses);
|
|
15
13
|
const iconColor = "currentColor";
|
|
16
14
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_indiana_drag_scroll.default, {
|
|
17
15
|
className: filterBarClassNames,
|