@envive-ai/react-toolkit 0.2.13-arthur-1 → 0.2.13
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-DPUaEXiE.cjs → Accordion-Bc3o-NjV.cjs} +5 -23
- package/dist/{Accordion-8zFBEEaN.js → Accordion-D8Vm8J1y.js} +2 -21
- package/dist/{AnimatedChevron-CPW5KPLr.cjs → AnimatedChevron-BKQrUKb5.cjs} +1 -1
- package/dist/{ButtonBase-C44g6llb.cjs → ButtonBase-Bm_QOyM1.cjs} +2 -2
- package/dist/{DynamicFiltersScrollbar-IO886VXD.cjs → DynamicFiltersScrollbar-bT3VoG-D.cjs} +2 -2
- package/dist/{ImageWithFallback-C-ZQn7tR.cjs → ImageWithFallback-BiBjNK-9.cjs} +1 -1
- package/dist/{ModalSheet-JZerJZ1T.cjs → ModalSheet-BuCtRDnQ.cjs} +2 -2
- package/dist/{ModalSheet-C5f5abw1.js → ModalSheet-DVrY7Mw0.js} +1 -1
- package/dist/{ProductCard-C7rZyWpj.cjs → ProductCard-C3seoFWE.cjs} +5 -5
- package/dist/{ProductCard-GxpFxjh0.js → ProductCard-ChitHvuc.js} +3 -3
- package/dist/{ProductGrid-0A8vml2y.cjs → ProductGrid-Ct2DvLGf.cjs} +2 -2
- package/dist/{ProductGrid-DAwc9dKV.js → ProductGrid-DukHo_KY.js} +1 -1
- package/dist/{RadioButton-DpF1wymL.cjs → RadioButton-D4TPq1Aa.cjs} +2 -2
- package/dist/{RadioButtonGroup-YQIxmR7j.js → RadioButtonGroup-BWQ4-m2M.js} +1 -1
- package/dist/{RadioButtonGroup-ByzTXNAb.cjs → RadioButtonGroup-BhZloLH6.cjs} +2 -2
- package/dist/{RecommendedProducts-qkPxXVJn.cjs → RecommendedProducts-Cy-1szYc.cjs} +3 -3
- package/dist/{RecommendedProducts-C6dLpLPP.js → RecommendedProducts-DooGvLFT.js} +1 -1
- package/dist/{SearchAutocomplete-BdTWETDB.cjs → SearchAutocomplete-C1XH39Xx.cjs} +6 -5
- package/dist/{SearchAutocomplete-DNe193EV.js → SearchAutocomplete-CuuN0cDu.js} +3 -3
- package/dist/{SearchFilter-BRtCSuAn.cjs → SearchFilter-CnP71PTj.cjs} +8 -8
- package/dist/{SearchFilter-DvJx0b0W.js → SearchFilter-DsYF1A5n.js} +6 -6
- package/dist/{SearchInput-CImlqrau.cjs → SearchInput-Cgsjew8Q.cjs} +9 -63
- package/dist/{SearchInput-kLhxkpgq.js → SearchInput-DE9Iz7A8.js} +6 -62
- package/dist/{SearchInputForm-CFm_hUvX.js → SearchInputForm--CvVrjwl.js} +2 -2
- package/dist/{SearchInputForm-ZgNNEX6E.cjs → SearchInputForm-CSd4tjts.cjs} +3 -3
- package/dist/SearchResultsFilterButton-BQqm4icD.cjs +29 -0
- package/dist/SearchResultsFilterButton-CV11UTGi.js +22 -0
- package/dist/{SearchResultsFilterSidebar-BRFONIEq.cjs → SearchResultsFilterSidebar-U6dFy-Jo.cjs} +4 -4
- package/dist/{SearchResultsFilterSidebar-DLzQoFGD.js → SearchResultsFilterSidebar-ydSo1S6h.js} +3 -3
- package/dist/{SearchResultsStates-D7HfsLeZ.js → SearchResultsStates-BCeqeo9y.js} +13 -52
- package/dist/{SearchResultsStates-CQR5Il4l.cjs → SearchResultsStates-Dp-AsmH8.cjs} +16 -54
- package/dist/{SparkleAnimation-BikAiAmb.cjs → SparkleAnimation-Bg5qax1t.cjs} +11 -10
- package/dist/{SparkleAnimation-szzXiTam.js → SparkleAnimation-HY4cgwE3.js} +9 -9
- package/dist/{Spinner-7HblFCja.cjs → Spinner-CUrXDajS.cjs} +1 -1
- package/dist/{TextInput-CaynCoDf.cjs → TextInput-DfCocKVm.cjs} +2 -2
- package/dist/{ToggleButton-Dxk3U1hR.cjs → ToggleButton-BhBEOjxO.cjs} +2 -2
- package/dist/{Typography-Ds4gfOJz.cjs → Typography-Csg-nd_w.cjs} +1 -1
- package/dist/{chunk-CUT6urMc.cjs → chunk-CbDLau6x.cjs} +10 -6
- package/dist/components/Accordion/{index-Dd_9XeqA.d.ts → index-DJOd-3Pi.d.ts} +2 -2
- package/dist/components/Accordion/index.cjs +2 -3
- package/dist/components/Accordion/index.js +1 -2
- package/dist/components/AnimatedChevron/{index-BwQ6tJL8.d.cts → index-BfdaL9eW.d.cts} +2 -2
- package/dist/components/AnimatedChevron/{index-DZdGWikh.d.ts → index-bNdUYDzX.d.ts} +2 -2
- package/dist/components/AnimatedChevron/index.cjs +1 -1
- package/dist/components/AnimatedChevron/index.js +1 -1
- package/dist/components/AppliedFiltersScrollbar/{index-Dcyc-5Bv.d.ts → index-B68Mx16E.d.cts} +2 -2
- package/dist/components/AppliedFiltersScrollbar/index.cjs +2 -2
- package/dist/components/ButtonBase/{index-Bxdhf_O8.d.cts → index-3ltL6jhO.d.ts} +3 -3
- package/dist/components/ButtonBase/{index-VoanK6Pr.d.ts → index-CcVRnbuQ.d.cts} +3 -3
- package/dist/components/ButtonBase/index.cjs +3 -3
- package/dist/components/ButtonBase/index.js +2 -2
- package/dist/components/DynamicFiltersScrollbar/{index-CHzxQmaW.d.cts → index-B483Jhki.d.cts} +2 -2
- package/dist/components/DynamicFiltersScrollbar/{index-vVNOOaOF.d.ts → index-B_a6Oebn.d.ts} +2 -2
- package/dist/components/DynamicFiltersScrollbar/index.cjs +2 -2
- package/dist/components/FilterScrollbar/{index-DXcZLcQi.d.cts → index-BmHm47DA.d.cts} +3 -3
- package/dist/components/FilterScrollbar/{index-DwLyxqQl.d.ts → index-CISEdkBM.d.ts} +3 -3
- package/dist/components/FilterScrollbar/index.cjs +2 -2
- package/dist/components/FilterScrollbar/index.js +1 -1
- package/dist/components/ImageWithFallback/{index-BLbkDyG8.d.cts → index-CCWzf6ZV.d.ts} +2 -2
- package/dist/components/ImageWithFallback/{index-NJZsMOXc.d.ts → index-Dk89vxqv.d.cts} +2 -2
- package/dist/components/ImageWithFallback/index.cjs +1 -1
- package/dist/components/ImageWithFallback/index.js +1 -1
- package/dist/components/ModalSheet/{index-B5q4MHdq.d.cts → index-CI0qFVA7.d.ts} +2 -2
- package/dist/components/ModalSheet/{index-BN20-QS0.d.ts → index-C_8baIZK.d.cts} +2 -2
- package/dist/components/ModalSheet/index.cjs +2 -2
- package/dist/components/ModalSheet/index.js +2 -2
- package/dist/components/ProductCard/{index-CglXQ3wh.d.ts → index-D5om2RVT.d.ts} +1 -1
- package/dist/components/ProductCard/{index-XVlN6iMl.d.cts → index-Djjvdeh7.d.cts} +1 -1
- package/dist/components/ProductCard/index.cjs +4 -4
- package/dist/components/ProductCard/index.js +3 -3
- package/dist/components/ProductGrid/{index-D_YpwJCd.d.ts → index-AxMBGLVk.d.ts} +3 -3
- package/dist/components/ProductGrid/{index-BPBgwFsa.d.cts → index-C4Tz_KWs.d.cts} +3 -3
- package/dist/components/ProductGrid/index.cjs +5 -5
- package/dist/components/ProductGrid/index.js +4 -4
- package/dist/components/RadioButton/{index-BeOT_AlW.d.cts → index-BWo-a19v.d.ts} +2 -2
- package/dist/components/RadioButton/{index-CxluCaJw.d.ts → index-DsVASVAv.d.cts} +2 -2
- package/dist/components/RadioButton/index.cjs +2 -2
- package/dist/components/RadioButton/index.js +1 -1
- package/dist/components/RadioButtonGroup/{index-KeOIiYNW.d.ts → index-CiljmnzJ.d.cts} +2 -2
- package/dist/components/RadioButtonGroup/{index-BOhV-rG3.d.cts → index-DdyMuFCX.d.ts} +2 -2
- package/dist/components/RadioButtonGroup/index.cjs +3 -3
- package/dist/components/RadioButtonGroup/index.js +2 -2
- package/dist/components/RecommendedProducts/index.cjs +6 -7
- package/dist/components/RecommendedProducts/index.js +5 -6
- package/dist/components/SearchAutocomplete/{index-Br_POGOz.d.ts → index-BBUrFTl5.d.ts} +2 -2
- package/dist/components/SearchAutocomplete/{index-BcnHcv7Q.d.cts → index-OVMqT8K4.d.cts} +2 -2
- package/dist/components/SearchAutocomplete/index.cjs +2 -4
- package/dist/components/SearchAutocomplete/index.js +1 -3
- package/dist/components/SearchFilter/{index-BbIqmoO8.d.ts → index-BDaLJW2Q.d.cts} +5 -5
- package/dist/components/SearchFilter/{index-DAL3Wl6U.d.cts → index-DESOqSJQ.d.ts} +5 -5
- package/dist/components/SearchFilter/index.cjs +10 -11
- package/dist/components/SearchFilter/index.js +9 -10
- package/dist/components/SearchInput/{index-C0H51Flv.d.ts → index-UY0W77Y0.d.ts} +2 -2
- package/dist/components/SearchInput/index.cjs +4 -5
- package/dist/components/SearchInput/index.js +3 -4
- package/dist/components/SearchInputForm/{index-Cleto06d.d.cts → index-B3A17s3e.d.cts} +2 -2
- package/dist/components/SearchInputForm/{index-DjjoY7MQ.d.ts → index-D1F37qNH.d.ts} +3 -3
- package/dist/components/SearchInputForm/index.cjs +6 -8
- package/dist/components/SearchInputForm/index.js +5 -7
- package/dist/components/SearchResultsContent/{index-KdFf9yzs.d.ts → index-B66EnbgF.d.cts} +5 -5
- package/dist/components/SearchResultsContent/{index-C4qsTFUd.d.cts → index-BI4Dm7mI.d.ts} +5 -5
- package/dist/components/SearchResultsContent/index.cjs +12 -14
- package/dist/components/SearchResultsContent/index.js +10 -12
- package/dist/components/SearchResultsFilterButton/{index-zgQsT6vz.d.cts → index-CCVZZUTR.d.cts} +2 -2
- package/dist/components/SearchResultsFilterButton/{index-BvntKdyC.d.ts → index-Cjq_NOxx.d.ts} +2 -2
- package/dist/components/SearchResultsFilterButton/index.cjs +4 -6
- package/dist/components/SearchResultsFilterButton/index.js +3 -5
- package/dist/components/SearchResultsFilterModal/{index-CNBQ1ikL.d.ts → index-Ba84MNoM.d.ts} +3 -3
- package/dist/components/SearchResultsFilterModal/{index-mRcnKysU.d.cts → index-CMWDFJWT.d.cts} +3 -3
- package/dist/components/SearchResultsFilterModal/index.cjs +14 -16
- package/dist/components/SearchResultsFilterModal/index.js +12 -14
- package/dist/components/SearchResultsFilterSidebar/{index-C7PE9z5a.d.ts → index-DmO55w4A.d.ts} +1 -1
- package/dist/components/SearchResultsFilterSidebar/{index-DKzEKFV3.d.cts → index-Dtr9q9hT.d.cts} +1 -1
- package/dist/components/SearchResultsFilterSidebar/index.cjs +13 -14
- package/dist/components/SearchResultsFilterSidebar/index.js +12 -13
- package/dist/components/SearchResultsStates/{index-RVgPTFiH.d.cts → index-Ba3tQMCI.d.ts} +2 -2
- package/dist/components/SearchResultsStates/{index-Dugoegtn.d.ts → index-DN1-g87W.d.cts} +6 -6
- package/dist/components/SearchResultsStates/index.cjs +11 -13
- package/dist/components/SearchResultsStates/index.js +10 -12
- package/dist/components/SearchResultsToolbar/{index-PYr086HM.d.cts → index-M8RkRW3H.d.cts} +2 -2
- package/dist/components/SearchResultsToolbar/{index-CIvuccni.d.ts → index-_hxKcDDT.d.ts} +2 -2
- package/dist/components/SearchResultsToolbar/index.cjs +13 -14
- package/dist/components/SearchResultsToolbar/index.js +12 -13
- package/dist/components/SparkleAnimation/{index-BFqUibyY.d.ts → index-BMrS1PDU.d.cts} +2 -2
- package/dist/components/SparkleAnimation/index.cjs +1 -3
- package/dist/components/SparkleAnimation/index.js +1 -3
- package/dist/components/Spinner/{index-TKsPifGM.d.ts → index-C876igqb.d.ts} +2 -2
- package/dist/components/Spinner/index.cjs +1 -1
- package/dist/components/Spinner/index.js +1 -1
- package/dist/components/SuggestionButton/{index-BioM3QHW.d.ts → index-DfQRQGev.d.cts} +2 -2
- package/dist/components/SuggestionButton/index.cjs +9 -8
- package/dist/components/SuggestionButton/index.js +5 -6
- package/dist/components/TextInput/{index-DAhxej1K.d.ts → index-CkQtHiR9.d.ts} +2 -2
- package/dist/components/TextInput/index.cjs +2 -2
- package/dist/components/TextInput/index.js +1 -1
- package/dist/components/ToggleButton/{index-eLDrp4ic.d.cts → index-CpURpMq5.d.cts} +2 -2
- package/dist/components/ToggleButton/{index-pFQuGdoj.d.ts → index-DFz4kch0.d.ts} +2 -2
- package/dist/components/ToggleButton/index.cjs +2 -2
- package/dist/components/ToggleButton/index.js +1 -1
- package/dist/components/Typography/{index-ymH7f3jB.d.ts → index-DE1Nhjra.d.ts} +2 -2
- package/dist/components/Typography/index.cjs +1 -1
- package/dist/{index-BCBtAzCc.d.ts → index-1GZFptEC.d.cts} +5 -5
- package/dist/{index-BiKhzraQ.d.cts → index-CBI4Lqsm.d.cts} +2 -2
- package/dist/{index-DXGw5Z56.d.ts → index-Cr8VXccr.d.ts} +1 -1
- package/dist/{index-DK0xpfMg.d.ts → index-pZZXXUG_.d.ts} +2 -2
- package/dist/{index-CzbumwVZ.d.cts → index-yDKT5Bem.d.ts} +5 -5
- package/dist/{searchFilterSidebarVariants-CjyRGKK_.cjs → searchFilterSidebarVariants-C61Byr1S.cjs} +1 -1
- package/dist/{searchFilterSidebarVariants-gkgkflXx.js → searchFilterSidebarVariants-DcwlBfvY.js} +1 -1
- package/dist/util/index.cjs +1 -1
- package/package.json +15 -2
- package/src/components/Accordion/Accordion.tsx +4 -1
- package/src/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.tsx +5 -2
- 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 +5 -1
- 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 +26 -12
- 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/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/SearchResultsFilterModal/SearchResultsFilterModal.tsx +4 -1
- 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 +5 -5
- 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/NoSearchResultsFound.stories.tsx +7 -0
- package/src/stories/SearchResultsFilter.stories.tsx +1 -1
- 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/FourPointStar-3DqnYmfN.js +0 -21
- package/dist/FourPointStar-AQ9OSu0S.cjs +0 -26
- package/dist/OutlinedStar-CC0V_jAK.cjs +0 -26
- package/dist/OutlinedStar-WWs3gRwt.js +0 -21
- package/dist/SearchResultsFilterButton-D929tRt9.cjs +0 -96
- package/dist/SearchResultsFilterButton-Dk7u7rgn.js +0 -90
- package/dist/jsx-runtime-Dg2m6dxZ-B-pkyyHT.cjs +0 -2586
- package/dist/jsx-runtime-Dg2m6dxZ-CU_SzTu4.js +0 -2580
- /package/dist/{AnimatedChevron-DO_jcnJg.js → AnimatedChevron-DghLnmlM.js} +0 -0
- /package/dist/{ButtonBase-Cb6Iec6f.cjs → ButtonBase-BIXx56hq.cjs} +0 -0
- /package/dist/{ButtonBase-D2eXuapk.js → ButtonBase-C9fn-c5h.js} +0 -0
- /package/dist/{ButtonBase-Cjo-fBg2.js → ButtonBase-CT397aT3.js} +0 -0
- /package/dist/{DynamicFiltersScrollbar-s5yfmMau.js → DynamicFiltersScrollbar-CibstqNd.js} +0 -0
- /package/dist/{ImageWithFallback-DjDNefaG.js → ImageWithFallback-_QZT0EKI.js} +0 -0
- /package/dist/{RadioButton-DOc8g47U.js → RadioButton-C1w7N40t.js} +0 -0
- /package/dist/{Spinner-OFbXMms8.js → Spinner-CDDFWySo.js} +0 -0
- /package/dist/{TextInput-CsdOvLBQ.js → TextInput-PtrUXoZo.js} +0 -0
- /package/dist/{ToggleButton-D8--AKKK.js → ToggleButton-BTz_zIdc.js} +0 -0
- /package/dist/{colorsConfig-CFI1KN8R.js → colorsConfig-BjdoRtRK.js} +0 -0
- /package/dist/{colorsConfig-Dp7w5LPb.cjs → colorsConfig-D-MZuBvt.cjs} +0 -0
- /package/dist/components/AppliedFiltersScrollbar/{index-VbXAIfym.d.cts → index-B9u7XRmf.d.ts} +0 -0
- /package/dist/components/SparkleAnimation/{index-CSBR76H5.d.cts → index-t59eI0td.d.ts} +0 -0
- /package/dist/components/SuggestionButton/{index-CjV6Ar4Y.d.cts → index-CrGSb18s.d.ts} +0 -0
- /package/dist/{types-D6fl4HOx.d.ts → types-CQpdBL3M.d.ts} +0 -0
- /package/dist/{typographyVariantClasses-_oNpv-aN.d.ts → typographyVariantClasses-CrT5OfVw.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,7 +1,7 @@
|
|
|
1
1
|
import { SearchFilterDatum } from '@envive-ai/react-hooks/types';
|
|
2
2
|
import {
|
|
3
|
-
searchFilterSidebarVariantClasses,
|
|
4
3
|
SearchResultsFilter,
|
|
4
|
+
searchFilterSidebarVariantClasses,
|
|
5
5
|
} from '@envive-ai/react-toolkit/SearchResultsFilterSidebar';
|
|
6
6
|
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
7
7
|
|
|
@@ -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
|
@@ -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,26 +0,0 @@
|
|
|
1
|
-
const require_jsx_runtime_Dg2m6dxZ = require('./jsx-runtime-Dg2m6dxZ-B-pkyyHT.cjs');
|
|
2
|
-
|
|
3
|
-
//#region ../icons/dist/OutlinedStar.js
|
|
4
|
-
var import_jsx_runtime = require_jsx_runtime_Dg2m6dxZ.require_jsx_runtime();
|
|
5
|
-
const SvgOutlinedStar = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
|
|
6
|
-
width: 10,
|
|
7
|
-
height: 10,
|
|
8
|
-
viewBox: "0 0 10 10",
|
|
9
|
-
fill: "none",
|
|
10
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
-
...props,
|
|
12
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
13
|
-
d: "M5 1L5.30785 2.36664C5.56897 3.52576 6.4742 4.43104 7.63336 4.69216L9 5L7.63336 5.30784C6.4742 5.56896 5.56897 6.47416 5.30785 7.63336L5 9L4.69215 7.63336C4.43103 6.47416 3.5258 5.56896 2.36662 5.30784L1 5L2.36662 4.69216C3.5258 4.43104 4.43103 3.52584 4.69215 2.36664L5 1Z",
|
|
14
|
-
strokeWidth: .75,
|
|
15
|
-
strokeLinejoin: "round"
|
|
16
|
-
})
|
|
17
|
-
});
|
|
18
|
-
var OutlinedStar_default = SvgOutlinedStar;
|
|
19
|
-
|
|
20
|
-
//#endregion
|
|
21
|
-
Object.defineProperty(exports, 'OutlinedStar_default', {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () {
|
|
24
|
-
return OutlinedStar_default;
|
|
25
|
-
}
|
|
26
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { t as require_jsx_runtime } from "./jsx-runtime-Dg2m6dxZ-CU_SzTu4.js";
|
|
2
|
-
|
|
3
|
-
//#region ../icons/dist/OutlinedStar.js
|
|
4
|
-
var import_jsx_runtime = require_jsx_runtime();
|
|
5
|
-
const SvgOutlinedStar = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
|
|
6
|
-
width: 10,
|
|
7
|
-
height: 10,
|
|
8
|
-
viewBox: "0 0 10 10",
|
|
9
|
-
fill: "none",
|
|
10
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
-
...props,
|
|
12
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
13
|
-
d: "M5 1L5.30785 2.36664C5.56897 3.52576 6.4742 4.43104 7.63336 4.69216L9 5L7.63336 5.30784C6.4742 5.56896 5.56897 6.47416 5.30785 7.63336L5 9L4.69215 7.63336C4.43103 6.47416 3.5258 5.56896 2.36662 5.30784L1 5L2.36662 4.69216C3.5258 4.43104 4.43103 3.52584 4.69215 2.36664L5 1Z",
|
|
14
|
-
strokeWidth: .75,
|
|
15
|
-
strokeLinejoin: "round"
|
|
16
|
-
})
|
|
17
|
-
});
|
|
18
|
-
var OutlinedStar_default = SvgOutlinedStar;
|
|
19
|
-
|
|
20
|
-
//#endregion
|
|
21
|
-
export { OutlinedStar_default as t };
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_jsx_runtime_Dg2m6dxZ = require('./jsx-runtime-Dg2m6dxZ-B-pkyyHT.cjs');
|
|
3
|
-
const require_ButtonBase = require('./ButtonBase-C44g6llb.cjs');
|
|
4
|
-
let react = require("react");
|
|
5
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
-
|
|
7
|
-
//#region ../icons/dist/SettingsVariant.js
|
|
8
|
-
var import_jsx_runtime = require_jsx_runtime_Dg2m6dxZ.require_jsx_runtime();
|
|
9
|
-
const SvgSettingsVariant = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
|
|
10
|
-
width: 28,
|
|
11
|
-
height: 28,
|
|
12
|
-
viewBox: "0 0 28 28",
|
|
13
|
-
fill: "none",
|
|
14
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
-
...props,
|
|
16
|
-
children: [
|
|
17
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", {
|
|
18
|
-
cx: 3.5,
|
|
19
|
-
cy: 3.5,
|
|
20
|
-
r: 3.03346,
|
|
21
|
-
transform: "matrix(-1 0 0 1 22.4004 0)",
|
|
22
|
-
stroke: "#767676",
|
|
23
|
-
strokeWidth: .933083
|
|
24
|
-
}),
|
|
25
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
26
|
-
d: "M14 3.5L0 3.5",
|
|
27
|
-
stroke: "#767676",
|
|
28
|
-
strokeWidth: .933083
|
|
29
|
-
}),
|
|
30
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
31
|
-
d: "M28 3.5L23.5 3.5",
|
|
32
|
-
stroke: "#767676",
|
|
33
|
-
strokeWidth: .933083
|
|
34
|
-
}),
|
|
35
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", {
|
|
36
|
-
cx: 9.09961,
|
|
37
|
-
cy: 13.5,
|
|
38
|
-
r: 3.03346,
|
|
39
|
-
stroke: "#767676",
|
|
40
|
-
strokeWidth: .933083
|
|
41
|
-
}),
|
|
42
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
43
|
-
d: "M14 13.5L28 13.5",
|
|
44
|
-
stroke: "#767676",
|
|
45
|
-
strokeWidth: .933083
|
|
46
|
-
}),
|
|
47
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
48
|
-
d: "M0 13.5L4.5 13.5",
|
|
49
|
-
stroke: "#767676",
|
|
50
|
-
strokeWidth: .933083
|
|
51
|
-
}),
|
|
52
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", {
|
|
53
|
-
cx: 3.5,
|
|
54
|
-
cy: 3.5,
|
|
55
|
-
r: 3.03346,
|
|
56
|
-
transform: "matrix(-1 0 0 1 22.4004 20)",
|
|
57
|
-
stroke: "#767676",
|
|
58
|
-
strokeWidth: .933083
|
|
59
|
-
}),
|
|
60
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
61
|
-
d: "M14 23.5H0",
|
|
62
|
-
stroke: "#767676",
|
|
63
|
-
strokeWidth: .933083
|
|
64
|
-
}),
|
|
65
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
66
|
-
d: "M28 23.5L23.5 23.5",
|
|
67
|
-
stroke: "#767676",
|
|
68
|
-
strokeWidth: .933083
|
|
69
|
-
})
|
|
70
|
-
]
|
|
71
|
-
});
|
|
72
|
-
var SettingsVariant_default = SvgSettingsVariant;
|
|
73
|
-
|
|
74
|
-
//#endregion
|
|
75
|
-
//#region src/components/SearchResultsFilterButton/SearchResultsFilterButton.tsx
|
|
76
|
-
const SearchResultsFilterButton = ({ setIsOpen, filterButtonText }) => {
|
|
77
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ButtonBase.ButtonBase, {
|
|
78
|
-
onClick: (0, react.useCallback)(() => {
|
|
79
|
-
setIsOpen(true);
|
|
80
|
-
}, [setIsOpen]),
|
|
81
|
-
icon: SettingsVariant_default,
|
|
82
|
-
iconClass: "spiffy-tw-w-[28px] spiffy-tw-h-[28px] spiffy-tw-object-center",
|
|
83
|
-
text: filterButtonText,
|
|
84
|
-
textClass: "spiffy-tw-uppercase spiffy-tw-text-[--spiffy-colors-text-primary] spiffy-tw-hidden md:spiffy-tw-block",
|
|
85
|
-
buttonClass: "spiffy-tw-flex-row spiffy-tw-pl-[16px] sm:spiffy-tw-pl-0 sm:spiffy-tw-px-4 sm:spiffy-tw-gap-[8px]",
|
|
86
|
-
disablePadding: true
|
|
87
|
-
});
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
//#endregion
|
|
91
|
-
Object.defineProperty(exports, 'SearchResultsFilterButton', {
|
|
92
|
-
enumerable: true,
|
|
93
|
-
get: function () {
|
|
94
|
-
return SearchResultsFilterButton;
|
|
95
|
-
}
|
|
96
|
-
});
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { t as require_jsx_runtime } from "./jsx-runtime-Dg2m6dxZ-CU_SzTu4.js";
|
|
2
|
-
import { t as ButtonBase } from "./ButtonBase-Cjo-fBg2.js";
|
|
3
|
-
import { useCallback } from "react";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
6
|
-
//#region ../icons/dist/SettingsVariant.js
|
|
7
|
-
var import_jsx_runtime = require_jsx_runtime();
|
|
8
|
-
const SvgSettingsVariant = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
|
|
9
|
-
width: 28,
|
|
10
|
-
height: 28,
|
|
11
|
-
viewBox: "0 0 28 28",
|
|
12
|
-
fill: "none",
|
|
13
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
-
...props,
|
|
15
|
-
children: [
|
|
16
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", {
|
|
17
|
-
cx: 3.5,
|
|
18
|
-
cy: 3.5,
|
|
19
|
-
r: 3.03346,
|
|
20
|
-
transform: "matrix(-1 0 0 1 22.4004 0)",
|
|
21
|
-
stroke: "#767676",
|
|
22
|
-
strokeWidth: .933083
|
|
23
|
-
}),
|
|
24
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
25
|
-
d: "M14 3.5L0 3.5",
|
|
26
|
-
stroke: "#767676",
|
|
27
|
-
strokeWidth: .933083
|
|
28
|
-
}),
|
|
29
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
30
|
-
d: "M28 3.5L23.5 3.5",
|
|
31
|
-
stroke: "#767676",
|
|
32
|
-
strokeWidth: .933083
|
|
33
|
-
}),
|
|
34
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", {
|
|
35
|
-
cx: 9.09961,
|
|
36
|
-
cy: 13.5,
|
|
37
|
-
r: 3.03346,
|
|
38
|
-
stroke: "#767676",
|
|
39
|
-
strokeWidth: .933083
|
|
40
|
-
}),
|
|
41
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
42
|
-
d: "M14 13.5L28 13.5",
|
|
43
|
-
stroke: "#767676",
|
|
44
|
-
strokeWidth: .933083
|
|
45
|
-
}),
|
|
46
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
47
|
-
d: "M0 13.5L4.5 13.5",
|
|
48
|
-
stroke: "#767676",
|
|
49
|
-
strokeWidth: .933083
|
|
50
|
-
}),
|
|
51
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", {
|
|
52
|
-
cx: 3.5,
|
|
53
|
-
cy: 3.5,
|
|
54
|
-
r: 3.03346,
|
|
55
|
-
transform: "matrix(-1 0 0 1 22.4004 20)",
|
|
56
|
-
stroke: "#767676",
|
|
57
|
-
strokeWidth: .933083
|
|
58
|
-
}),
|
|
59
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
60
|
-
d: "M14 23.5H0",
|
|
61
|
-
stroke: "#767676",
|
|
62
|
-
strokeWidth: .933083
|
|
63
|
-
}),
|
|
64
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
65
|
-
d: "M28 23.5L23.5 23.5",
|
|
66
|
-
stroke: "#767676",
|
|
67
|
-
strokeWidth: .933083
|
|
68
|
-
})
|
|
69
|
-
]
|
|
70
|
-
});
|
|
71
|
-
var SettingsVariant_default = SvgSettingsVariant;
|
|
72
|
-
|
|
73
|
-
//#endregion
|
|
74
|
-
//#region src/components/SearchResultsFilterButton/SearchResultsFilterButton.tsx
|
|
75
|
-
const SearchResultsFilterButton = ({ setIsOpen, filterButtonText }) => {
|
|
76
|
-
return /* @__PURE__ */ jsx(ButtonBase, {
|
|
77
|
-
onClick: useCallback(() => {
|
|
78
|
-
setIsOpen(true);
|
|
79
|
-
}, [setIsOpen]),
|
|
80
|
-
icon: SettingsVariant_default,
|
|
81
|
-
iconClass: "spiffy-tw-w-[28px] spiffy-tw-h-[28px] spiffy-tw-object-center",
|
|
82
|
-
text: filterButtonText,
|
|
83
|
-
textClass: "spiffy-tw-uppercase spiffy-tw-text-[--spiffy-colors-text-primary] spiffy-tw-hidden md:spiffy-tw-block",
|
|
84
|
-
buttonClass: "spiffy-tw-flex-row spiffy-tw-pl-[16px] sm:spiffy-tw-pl-0 sm:spiffy-tw-px-4 sm:spiffy-tw-gap-[8px]",
|
|
85
|
-
disablePadding: true
|
|
86
|
-
});
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
//#endregion
|
|
90
|
-
export { SearchResultsFilterButton as t };
|