@envive-ai/react-toolkit 0.2.9 → 0.2.10
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/index.d.cts +2 -2
- package/dist/Accordion/index.d.ts +2 -2
- package/dist/AnimatedChevron/index.d.cts +2 -2
- package/dist/AnimatedChevron/index.d.ts +2 -2
- package/dist/AppliedFiltersScrollbar/index.d.cts +2 -2
- package/dist/ButtonBase/index.d.cts +2 -2
- package/dist/ButtonBase/index.d.ts +2 -2
- package/dist/DynamicFiltersScrollbar/index.d.cts +2 -2
- package/dist/DynamicFiltersScrollbar/index.d.ts +2 -2
- package/dist/FilterScrollbar/index.cjs +1 -1
- package/dist/FilterScrollbar/index.d.cts +3 -3
- package/dist/FilterScrollbar/index.d.ts +3 -3
- package/dist/FilterScrollbar/index.js +1 -1
- package/dist/ImageWithFallback/index.cjs +1 -1
- package/dist/ImageWithFallback/index.d.cts +2 -2
- package/dist/ImageWithFallback/index.d.ts +2 -2
- package/dist/ImageWithFallback/index.js +1 -1
- package/dist/ModalSheet/index.d.cts +2 -2
- package/dist/ModalSheet/index.d.ts +2 -2
- package/dist/ProductCard/index.cjs +2 -2
- package/dist/ProductCard/index.d.cts +1 -1
- package/dist/ProductCard/index.d.ts +1 -1
- package/dist/ProductCard/index.js +2 -2
- package/dist/{ProductCard-DksbHI3v.cjs → ProductCard-C-8ie9Lf.cjs} +1 -1
- package/dist/{ProductCard-DRczevG8.js → ProductCard-n-PAth5m.js} +1 -1
- package/dist/ProductGrid/index.cjs +3 -3
- package/dist/ProductGrid/index.d.cts +6 -4
- package/dist/ProductGrid/index.d.ts +6 -4
- package/dist/ProductGrid/index.js +3 -3
- package/dist/{ProductGrid-CStAsiRj.cjs → ProductGrid-Ba2tUgmC.cjs} +5 -4
- package/dist/{ProductGrid-B36atUp5.js → ProductGrid-xXkWzvR2.js} +5 -4
- package/dist/RadioButton/index.cjs +1 -1
- package/dist/RadioButton/index.d.cts +2 -2
- package/dist/RadioButton/index.d.ts +2 -2
- package/dist/RadioButton/index.js +1 -1
- package/dist/RadioButtonGroup/index.cjs +2 -2
- package/dist/RadioButtonGroup/index.d.cts +2 -2
- package/dist/RadioButtonGroup/index.d.ts +2 -2
- package/dist/RadioButtonGroup/index.js +2 -2
- package/dist/{RadioButtonGroup-BP4aECu6.js → RadioButtonGroup-DLLleeDX.js} +1 -1
- package/dist/{RadioButtonGroup-DwMWFYga.cjs → RadioButtonGroup-DxOtcIdO.cjs} +1 -1
- package/dist/SearchAutocomplete/index.d.cts +2 -2
- package/dist/SearchAutocomplete/index.d.ts +2 -2
- package/dist/SearchFilter/index.cjs +4 -4
- package/dist/SearchFilter/index.d.cts +5 -5
- package/dist/SearchFilter/index.d.ts +5 -5
- package/dist/SearchFilter/index.js +4 -4
- package/dist/{SearchFilter-X18X1iOO.js → SearchFilter-Bi0zqO3-.js} +2 -2
- package/dist/{SearchFilter-Yk01V_VO.cjs → SearchFilter-ylBowO7T.cjs} +2 -2
- package/dist/SearchInput/index.cjs +3 -3
- package/dist/SearchInput/index.js +3 -3
- package/dist/{SearchInput-DFoKyqJV.js → SearchInput-Q3knp7tj.js} +2 -2
- package/dist/{SearchInput-Bn6wD39s.cjs → SearchInput-Yy6NIiSk.cjs} +2 -2
- package/dist/SearchInputForm/index.cjs +3 -3
- package/dist/SearchInputForm/index.d.cts +2 -2
- package/dist/SearchInputForm/index.d.ts +2 -2
- package/dist/SearchInputForm/index.js +3 -3
- package/dist/SearchResultsContent/index.cjs +7 -7
- package/dist/SearchResultsContent/index.d.cts +3 -3
- package/dist/SearchResultsContent/index.d.ts +4 -4
- package/dist/SearchResultsContent/index.js +7 -7
- package/dist/SearchResultsFilterSidebar/index.cjs +6 -6
- package/dist/SearchResultsFilterSidebar/index.d.ts +1 -1
- package/dist/SearchResultsFilterSidebar/index.js +6 -6
- package/dist/SearchResultsStates/index.cjs +7 -7
- package/dist/SearchResultsStates/index.d.cts +5 -5
- package/dist/SearchResultsStates/index.d.ts +6 -6
- package/dist/SearchResultsStates/index.js +7 -7
- package/dist/{SearchResultsStates-CKoDWkXP.cjs → SearchResultsStates-BjFB9Qo9.cjs} +4 -4
- package/dist/{SearchResultsStates-DF65ZU2r.js → SearchResultsStates-D8Uz39yp.js} +4 -4
- package/dist/SparkleAnimation/index.d.cts +2 -2
- package/dist/SparkleAnimation/index.d.ts +2 -2
- package/dist/Spinner/index.d.cts +2 -2
- package/dist/Spinner/index.d.ts +2 -2
- package/dist/SuggestionButton/index.d.cts +2 -2
- package/dist/SuggestionButton/index.d.ts +2 -2
- package/dist/TextInput/index.cjs +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/ToggleButton/index.cjs +1 -1
- package/dist/ToggleButton/index.d.cts +2 -2
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{index-Dz7MKQfH.d.cts → index-BB4Qbpmg.d.ts} +5 -5
- package/dist/{index-Wd_cQHmW.d.ts → index-BqARXvZ6.d.cts} +5 -5
- package/dist/{index-DL1kptAp.d.ts → index-DmvaMYbj.d.ts} +2 -2
- package/dist/{searchFilterSidebarVariants-B1P8YS86.cjs → searchFilterSidebarVariants-DzCf_sfh.cjs} +1 -1
- package/dist/{searchFilterSidebarVariants-CN9_kzJ8.js → searchFilterSidebarVariants-f9PS9fl6.js} +1 -1
- package/package.json +1 -1
- package/src/components/ProductGrid/ProductGrid.tsx +4 -1
- /package/dist/{DynamicFiltersScrollbar-AhyHehrB.js → DynamicFiltersScrollbar-CJG4K0PH.js} +0 -0
- /package/dist/{DynamicFiltersScrollbar-50i_InZz.cjs → DynamicFiltersScrollbar-DgS9gpdg.cjs} +0 -0
- /package/dist/{ImageWithFallback-1LqhQK1q.cjs → ImageWithFallback-Bx17VPmQ.cjs} +0 -0
- /package/dist/{ImageWithFallback-Ckwsmd8P.js → ImageWithFallback-c-DTsBH-.js} +0 -0
- /package/dist/{RadioButton-OqwNhq7S.cjs → RadioButton-BBc1b5vX.cjs} +0 -0
- /package/dist/{RadioButton-DoqlQgeW.js → RadioButton-gnFz0TWN.js} +0 -0
- /package/dist/{TextInput-BTTG_drp.cjs → TextInput-B70n36-J.cjs} +0 -0
- /package/dist/{TextInput-BfUhaQUc.js → TextInput-y6nNxaTI.js} +0 -0
- /package/dist/{ToggleButton-8P9eNKy1.js → ToggleButton-Br6MgjiG.js} +0 -0
- /package/dist/{ToggleButton-DCiR4sB5.cjs → ToggleButton-CJ74eu-N.cjs} +0 -0
- /package/dist/{colorsConfig-BjmNL7s7.cjs → colorsConfig-B3-SMUSx.cjs} +0 -0
- /package/dist/{colorsConfig-E7w6Ol6W.js → colorsConfig-DZ-GSPWy.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
2
|
-
import { TestProps } from "@envive-ai/react-hooks/types";
|
|
3
1
|
import { FC } from "react";
|
|
2
|
+
import * as react_jsx_runtime18 from "react/jsx-runtime";
|
|
3
|
+
import { TestProps } from "@envive-ai/react-hooks/types";
|
|
4
4
|
import { ResponseCategory, SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
|
|
5
5
|
|
|
6
6
|
//#region src/util/trim.d.ts
|
|
@@ -261,7 +261,7 @@ declare const RatingSummary: ({
|
|
|
261
261
|
stars,
|
|
262
262
|
reviewCount,
|
|
263
263
|
className
|
|
264
|
-
}: RatingSummaryProps) =>
|
|
264
|
+
}: RatingSummaryProps) => react_jsx_runtime18.JSX.Element;
|
|
265
265
|
interface PriceSectionProps {
|
|
266
266
|
originalPrice?: string;
|
|
267
267
|
salePrice?: string;
|
|
@@ -271,7 +271,7 @@ declare const PriceSection: ({
|
|
|
271
271
|
originalPrice,
|
|
272
272
|
salePrice,
|
|
273
273
|
pricePrefix
|
|
274
|
-
}: PriceSectionProps) =>
|
|
274
|
+
}: PriceSectionProps) => react_jsx_runtime18.JSX.Element;
|
|
275
275
|
interface ProductCardProps extends TestProps {
|
|
276
276
|
productCardConfig?: ProductCardConfig;
|
|
277
277
|
merchantShortName: string;
|
|
@@ -308,7 +308,7 @@ declare const ProductCard: ({
|
|
|
308
308
|
aspectRatio,
|
|
309
309
|
growWithContainer,
|
|
310
310
|
onClick
|
|
311
|
-
}: ProductCardProps) =>
|
|
311
|
+
}: ProductCardProps) => react_jsx_runtime18.JSX.Element;
|
|
312
312
|
//#endregion
|
|
313
313
|
//#region src/components/ProductCard/ProductCardSkeleton.d.ts
|
|
314
314
|
declare const ProductCardSkeleton: FC<ProductCardSkeletonProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
1
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
3
2
|
import { TestProps } from "@envive-ai/react-hooks/types";
|
|
3
|
+
import { FC } from "react";
|
|
4
4
|
import { ResponseCategory, SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
|
|
5
5
|
|
|
6
6
|
//#region src/util/trim.d.ts
|
|
@@ -261,7 +261,7 @@ declare const RatingSummary: ({
|
|
|
261
261
|
stars,
|
|
262
262
|
reviewCount,
|
|
263
263
|
className
|
|
264
|
-
}: RatingSummaryProps) =>
|
|
264
|
+
}: RatingSummaryProps) => react_jsx_runtime12.JSX.Element;
|
|
265
265
|
interface PriceSectionProps {
|
|
266
266
|
originalPrice?: string;
|
|
267
267
|
salePrice?: string;
|
|
@@ -271,7 +271,7 @@ declare const PriceSection: ({
|
|
|
271
271
|
originalPrice,
|
|
272
272
|
salePrice,
|
|
273
273
|
pricePrefix
|
|
274
|
-
}: PriceSectionProps) =>
|
|
274
|
+
}: PriceSectionProps) => react_jsx_runtime12.JSX.Element;
|
|
275
275
|
interface ProductCardProps extends TestProps {
|
|
276
276
|
productCardConfig?: ProductCardConfig;
|
|
277
277
|
merchantShortName: string;
|
|
@@ -308,7 +308,7 @@ declare const ProductCard: ({
|
|
|
308
308
|
aspectRatio,
|
|
309
309
|
growWithContainer,
|
|
310
310
|
onClick
|
|
311
|
-
}: ProductCardProps) =>
|
|
311
|
+
}: ProductCardProps) => react_jsx_runtime12.JSX.Element;
|
|
312
312
|
//#endregion
|
|
313
313
|
//#region src/components/ProductCard/ProductCardSkeleton.d.ts
|
|
314
314
|
declare const ProductCardSkeleton: FC<ProductCardSkeletonProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
2
2
|
import { SearchFilterDatum, SelectFilterItem } from "@envive-ai/react-hooks/types";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SearchResultsFilterSidebar/types.d.ts
|
|
@@ -41,6 +41,6 @@ declare const SearchResultsFilter: ({
|
|
|
41
41
|
onSelectFilterItem,
|
|
42
42
|
onClearAllFilters,
|
|
43
43
|
filterButtonText
|
|
44
|
-
}: SearchResultsFilterProps) =>
|
|
44
|
+
}: SearchResultsFilterProps) => react_jsx_runtime3.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { CloseIconVariant$1 as CloseIconVariant, SearchFilterSidebarVariant, SearchResultsFilter, SearchResultsFilterProps, searchFilterSidebarVariantClasses };
|
package/dist/{searchFilterSidebarVariants-B1P8YS86.cjs → searchFilterSidebarVariants-DzCf_sfh.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_colorsConfig = require('./colorsConfig-
|
|
1
|
+
const require_colorsConfig = require('./colorsConfig-B3-SMUSx.cjs');
|
|
2
2
|
|
|
3
3
|
//#region src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts
|
|
4
4
|
const searchFilterSidebarVariantClasses = {
|
package/package.json
CHANGED
|
@@ -10,6 +10,7 @@ interface ProductGridProps {
|
|
|
10
10
|
productCardConfig: ProductCardConfig;
|
|
11
11
|
merchantShortName: string;
|
|
12
12
|
cardsGrowWithContainer?: boolean;
|
|
13
|
+
onProductClick?: (product: SearchResponseProductAttributes['attributes'], index: number) => void;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
export const ProductGrid = ({
|
|
@@ -19,6 +20,7 @@ export const ProductGrid = ({
|
|
|
19
20
|
productCardConfig,
|
|
20
21
|
merchantShortName,
|
|
21
22
|
cardsGrowWithContainer = true,
|
|
23
|
+
onProductClick,
|
|
22
24
|
}: ProductGridProps) => {
|
|
23
25
|
const {
|
|
24
26
|
productCardVariant,
|
|
@@ -35,7 +37,7 @@ export const ProductGrid = ({
|
|
|
35
37
|
|
|
36
38
|
return (
|
|
37
39
|
<div className={productGridClasses}>
|
|
38
|
-
{productList.map((product: (typeof productList)[0]) => (
|
|
40
|
+
{productList.map((product: (typeof productList)[0], index: number) => (
|
|
39
41
|
<div key={product.id} className={cardContainerClasses}>
|
|
40
42
|
<ProductCard
|
|
41
43
|
productCardConfig={productCardConfig}
|
|
@@ -53,6 +55,7 @@ export const ProductGrid = ({
|
|
|
53
55
|
zoomOnHover={zoomOnHover}
|
|
54
56
|
aspectRatio={productCardImageAspectRatio}
|
|
55
57
|
growWithContainer={cardsGrowWithContainer}
|
|
58
|
+
onClick={() => onProductClick?.(product, index)}
|
|
56
59
|
/>
|
|
57
60
|
</div>
|
|
58
61
|
))}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|