@envive-ai/react-toolkit 0.2.6 → 0.2.8
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/AnimatedChevron/index.d.cts +2 -2
- package/dist/AnimatedChevron/index.d.ts +2 -2
- package/dist/AppliedFiltersScrollbar/index.d.cts +2 -2
- package/dist/AppliedFiltersScrollbar/index.d.ts +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.d.cts +3 -3
- package/dist/FilterScrollbar/index.d.ts +3 -3
- package/dist/ImageWithFallback/index.d.cts +2 -2
- package/dist/ImageWithFallback/index.d.ts +2 -2
- package/dist/ModalSheet/index.d.cts +2 -2
- package/dist/ModalSheet/index.d.ts +2 -2
- package/dist/ProductCard/index.cjs +1 -1
- package/dist/ProductCard/index.d.cts +1 -1
- package/dist/ProductCard/index.d.ts +1 -1
- package/dist/ProductCard/index.js +1 -1
- package/dist/{ProductCard-BIlnM2nV.js → ProductCard-DRczevG8.js} +7 -4
- package/dist/{ProductCard-CByKIsUN.cjs → ProductCard-DksbHI3v.cjs} +8 -4
- package/dist/ProductGrid/index.cjs +2 -2
- package/dist/ProductGrid/index.d.cts +6 -6
- package/dist/ProductGrid/index.d.ts +6 -6
- package/dist/ProductGrid/index.js +2 -2
- package/dist/{ProductGrid-BFFojT9P.js → ProductGrid-CGHDHthe.js} +21 -24
- package/dist/{ProductGrid-BfgnDGUq.cjs → ProductGrid-DxbFvnNs.cjs} +21 -24
- package/dist/RadioButton/index.cjs +1 -2
- package/dist/RadioButton/index.d.ts +2 -2
- package/dist/RadioButton/index.js +1 -2
- package/dist/{RadioButton-DT5srptW.cjs → RadioButton-BzZTrq-i.cjs} +37 -45
- package/dist/RadioButton-DRdlp-HC.js +67 -0
- package/dist/RadioButtonGroup/index.cjs +2 -3
- package/dist/RadioButtonGroup/index.d.cts +2 -2
- package/dist/RadioButtonGroup/index.d.ts +2 -2
- package/dist/RadioButtonGroup/index.js +2 -3
- package/dist/{RadioButtonGroup-Dgt2ub6s.js → RadioButtonGroup-BHfAwrH7.js} +1 -1
- package/dist/{RadioButtonGroup-BbVqccni.cjs → RadioButtonGroup-DU4_ZMJ2.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.ts +5 -5
- package/dist/SearchFilter/index.js +4 -4
- package/dist/{SearchFilter-DWii-Y_g.js → SearchFilter-wjDCnNiW.js} +2 -2
- package/dist/{SearchFilter-BHFHWmpK.cjs → SearchFilter-y4vrVBUC.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 +5 -5
- package/dist/SearchResultsContent/index.d.cts +4 -4
- package/dist/SearchResultsContent/index.d.ts +4 -4
- package/dist/SearchResultsContent/index.js +5 -5
- package/dist/SearchResultsFilterSidebar/index.cjs +6 -6
- package/dist/SearchResultsFilterSidebar/index.d.cts +1 -1
- package/dist/SearchResultsFilterSidebar/index.d.ts +1 -1
- package/dist/SearchResultsFilterSidebar/index.js +6 -6
- package/dist/SearchResultsStates/index.cjs +5 -5
- package/dist/SearchResultsStates/index.d.cts +6 -6
- package/dist/SearchResultsStates/index.d.ts +6 -6
- package/dist/SearchResultsStates/index.js +5 -5
- package/dist/{SearchResultsStates-BJPkHdXG.cjs → SearchResultsStates-CP3HKZao.cjs} +3 -3
- package/dist/{SearchResultsStates-BiVIsfIe.js → SearchResultsStates-DUSTcTQK.js} +3 -3
- 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--SpI4Sdw.d.ts → index-4KapT-qa.d.cts} +2 -2
- package/dist/{index-4oRWfY5a.d.cts → index-CY3-7i6i.d.cts} +6 -6
- package/dist/{index-DGfkVcQx.d.ts → index-DELwJODl.d.ts} +6 -6
- package/dist/{index-Dfe_lkL2.d.cts → index-OpwPXBH6.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 +4 -4
- package/src/components/ProductCard/ProductCard.tsx +13 -9
- package/src/components/ProductGrid/ProductGrid.tsx +24 -29
- package/src/components/RadioButton/RadioButton.tsx +9 -12
- package/src/config/chatElementDisplayLocation.ts +1 -0
- package/dist/RadioButton-BYq1JQtD.js +0 -75
- /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,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime26 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_runtime26.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Accordion };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime18 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_runtime18.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_runtime19 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_runtime19.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { AnimatedChevron };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime25 from "react/jsx-runtime";
|
|
2
2
|
import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
|
|
3
3
|
|
|
4
4
|
//#region src/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.d.ts
|
|
@@ -17,6 +17,6 @@ declare const AppliedFiltersScrollbar: ({
|
|
|
17
17
|
filterHoverClasses,
|
|
18
18
|
appliedFilterBackgroundClasses,
|
|
19
19
|
onRemoveFilter
|
|
20
|
-
}: AppliedFiltersScrollbarProps) =>
|
|
20
|
+
}: AppliedFiltersScrollbarProps) => react_jsx_runtime25.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { AppliedFiltersScrollbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime24 from "react/jsx-runtime";
|
|
2
2
|
import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
|
|
3
3
|
|
|
4
4
|
//#region src/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.d.ts
|
|
@@ -17,6 +17,6 @@ declare const AppliedFiltersScrollbar: ({
|
|
|
17
17
|
filterHoverClasses,
|
|
18
18
|
appliedFilterBackgroundClasses,
|
|
19
19
|
onRemoveFilter
|
|
20
|
-
}: AppliedFiltersScrollbarProps) =>
|
|
20
|
+
}: AppliedFiltersScrollbarProps) => react_jsx_runtime24.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { AppliedFiltersScrollbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
2
2
|
import { TestProps } from "@envive-ai/react-hooks/types";
|
|
3
3
|
import { ButtonHTMLAttributes, CSSProperties } from "react";
|
|
4
4
|
|
|
@@ -37,6 +37,6 @@ declare const ButtonBase: ({
|
|
|
37
37
|
dataTestId,
|
|
38
38
|
onClick,
|
|
39
39
|
disablePadding
|
|
40
|
-
}: ButtonBaseProps) =>
|
|
40
|
+
}: ButtonBaseProps) => react_jsx_runtime19.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { ButtonBase, ButtonBaseOverrides, ButtonBaseProps, ButtonHoverStyles };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, CSSProperties } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
3
3
|
import { TestProps } from "@envive-ai/react-hooks/types";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ButtonBase/types.d.ts
|
|
@@ -37,6 +37,6 @@ declare const ButtonBase: ({
|
|
|
37
37
|
dataTestId,
|
|
38
38
|
onClick,
|
|
39
39
|
disablePadding
|
|
40
|
-
}: ButtonBaseProps) =>
|
|
40
|
+
}: ButtonBaseProps) => react_jsx_runtime21.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { ButtonBase, ButtonBaseOverrides, ButtonBaseProps, ButtonHoverStyles };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.d.ts
|
|
4
4
|
interface DynamicFiltersScrollbarProps {
|
|
@@ -23,6 +23,6 @@ declare const DynamicFiltersScrollbar: ({
|
|
|
23
23
|
filterDefaultClasses,
|
|
24
24
|
filterHoverClasses,
|
|
25
25
|
onToggleDynamicFilter
|
|
26
|
-
}: DynamicFiltersScrollbarProps) =>
|
|
26
|
+
}: DynamicFiltersScrollbarProps) => react_jsx_runtime14.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { DynamicFiltersScrollbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime27 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.d.ts
|
|
4
4
|
interface DynamicFiltersScrollbarProps {
|
|
@@ -23,6 +23,6 @@ declare const DynamicFiltersScrollbar: ({
|
|
|
23
23
|
filterDefaultClasses,
|
|
24
24
|
filterHoverClasses,
|
|
25
25
|
onToggleDynamicFilter
|
|
26
|
-
}: DynamicFiltersScrollbarProps) =>
|
|
26
|
+
}: DynamicFiltersScrollbarProps) => react_jsx_runtime27.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { DynamicFiltersScrollbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
2
2
|
import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FilterScrollbar/AppliedFiltersScrollbar.d.ts
|
|
@@ -17,7 +17,7 @@ declare const AppliedFiltersScrollbar: ({
|
|
|
17
17
|
filterHoverClasses,
|
|
18
18
|
appliedFilterBackgroundClasses,
|
|
19
19
|
onRemoveFilter
|
|
20
|
-
}: AppliedFiltersScrollbarProps) =>
|
|
20
|
+
}: AppliedFiltersScrollbarProps) => react_jsx_runtime21.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region src/components/FilterScrollbar/DynamicFiltersScrollbar.d.ts
|
|
23
23
|
interface DynamicFiltersScrollbarProps {
|
|
@@ -42,6 +42,6 @@ declare const DynamicFiltersScrollbar: ({
|
|
|
42
42
|
filterDefaultClasses,
|
|
43
43
|
filterHoverClasses,
|
|
44
44
|
onToggleDynamicFilter
|
|
45
|
-
}: DynamicFiltersScrollbarProps) =>
|
|
45
|
+
}: DynamicFiltersScrollbarProps) => react_jsx_runtime21.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
2
2
|
import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FilterScrollbar/AppliedFiltersScrollbar.d.ts
|
|
@@ -17,7 +17,7 @@ declare const AppliedFiltersScrollbar: ({
|
|
|
17
17
|
filterHoverClasses,
|
|
18
18
|
appliedFilterBackgroundClasses,
|
|
19
19
|
onRemoveFilter
|
|
20
|
-
}: AppliedFiltersScrollbarProps) =>
|
|
20
|
+
}: AppliedFiltersScrollbarProps) => react_jsx_runtime23.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region src/components/FilterScrollbar/DynamicFiltersScrollbar.d.ts
|
|
23
23
|
interface DynamicFiltersScrollbarProps {
|
|
@@ -42,6 +42,6 @@ declare const DynamicFiltersScrollbar: ({
|
|
|
42
42
|
filterDefaultClasses,
|
|
43
43
|
filterHoverClasses,
|
|
44
44
|
onToggleDynamicFilter
|
|
45
|
-
}: DynamicFiltersScrollbarProps) =>
|
|
45
|
+
}: DynamicFiltersScrollbarProps) => react_jsx_runtime23.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime17 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ImageWithFallback/ImageWithFallback.d.ts
|
|
@@ -21,6 +21,6 @@ declare const ImageWithFallback: ({
|
|
|
21
21
|
imageClassnames,
|
|
22
22
|
onLoad,
|
|
23
23
|
onError
|
|
24
|
-
}: ImageWithFallbackProps) =>
|
|
24
|
+
}: ImageWithFallbackProps) => react_jsx_runtime17.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { ImageWithFallback, ImageWithFallbackProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ImageWithFallback/ImageWithFallback.d.ts
|
|
5
5
|
interface ImageWithFallbackProps {
|
|
@@ -21,6 +21,6 @@ declare const ImageWithFallback: ({
|
|
|
21
21
|
imageClassnames,
|
|
22
22
|
onLoad,
|
|
23
23
|
onError
|
|
24
|
-
}: ImageWithFallbackProps) =>
|
|
24
|
+
}: ImageWithFallbackProps) => react_jsx_runtime20.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { ImageWithFallback, ImageWithFallbackProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/ModalSheet/types.d.ts
|
|
4
4
|
type ModalSheetProps = {
|
|
@@ -33,6 +33,6 @@ declare const ModalSheet: ({
|
|
|
33
33
|
desktopWidth,
|
|
34
34
|
headerProps,
|
|
35
35
|
footerProps
|
|
36
|
-
}: ModalSheetProps) =>
|
|
36
|
+
}: ModalSheetProps) => react_jsx_runtime13.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { ModalSheet };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime26 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/ModalSheet/types.d.ts
|
|
4
4
|
type ModalSheetProps = {
|
|
@@ -33,6 +33,6 @@ declare const ModalSheet: ({
|
|
|
33
33
|
desktopWidth,
|
|
34
34
|
headerProps,
|
|
35
35
|
footerProps
|
|
36
|
-
}: ModalSheetProps) =>
|
|
36
|
+
}: ModalSheetProps) => react_jsx_runtime26.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { ModalSheet };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
require('../Typography-CFNWgbM5.cjs');
|
|
2
2
|
require('../ImageWithFallback-1LqhQK1q.cjs');
|
|
3
|
-
const require_ProductCard = require('../ProductCard-
|
|
3
|
+
const require_ProductCard = require('../ProductCard-DksbHI3v.cjs');
|
|
4
4
|
require('../Spinner-DjK8ts9E.cjs');
|
|
5
5
|
|
|
6
6
|
exports.AnimatedProductCardOverrides = require_ProductCard.AnimatedProductCardOverrides;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, RatingSummary, RatingSummaryProps, SearchResponseProductAttributes, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap } from "../index-
|
|
1
|
+
import { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, RatingSummary, RatingSummaryProps, SearchResponseProductAttributes, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap } from "../index-CY3-7i6i.cjs";
|
|
2
2
|
export { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, RatingSummary, RatingSummaryProps, SearchResponseProductAttributes, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, RatingSummary, RatingSummaryProps, SearchResponseProductAttributes, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap } from "../index-
|
|
1
|
+
import { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, RatingSummary, RatingSummaryProps, SearchResponseProductAttributes, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap } from "../index-DELwJODl.js";
|
|
2
2
|
export { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, RatingSummary, RatingSummaryProps, SearchResponseProductAttributes, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../Typography-D3vDkBMS.js";
|
|
2
2
|
import "../ImageWithFallback-Ckwsmd8P.js";
|
|
3
|
-
import { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardSkeleton, ProductCardSkeletonOverrides, RatingSummary, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap } from "../ProductCard-
|
|
3
|
+
import { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardSkeleton, ProductCardSkeletonOverrides, RatingSummary, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap } from "../ProductCard-DRczevG8.js";
|
|
4
4
|
import "../Spinner-BqTt55uu.js";
|
|
5
5
|
|
|
6
6
|
export { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardSkeleton, ProductCardSkeletonOverrides, RatingSummary, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap };
|
|
@@ -5,6 +5,7 @@ import classNames from "classnames";
|
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { MdStar } from "react-icons/md";
|
|
7
7
|
import { useImageResolver } from "@envive-ai/react-hooks/hooks/ImageResolver";
|
|
8
|
+
import { PRODUCT_CARD_TESTID } from "@envive-ai/react-hooks/config";
|
|
8
9
|
|
|
9
10
|
//#region src/logging/logger.ts
|
|
10
11
|
var Logger = class {
|
|
@@ -126,12 +127,13 @@ const PriceSection = ({ originalPrice, salePrice, pricePrefix }) => {
|
|
|
126
127
|
]
|
|
127
128
|
});
|
|
128
129
|
};
|
|
129
|
-
const ProductCard = ({ productCardConfig, merchantShortName, imageUrl, title, url, originalPrice, averageRating, numberReviews, salePrice, variant, hoverVariant, dataTestId, layoutVariant = "normal", zoomOnHover = false, aspectRatio = "none", growWithContainer = false,
|
|
130
|
+
const ProductCard = ({ productCardConfig, merchantShortName, imageUrl, title, url, originalPrice, averageRating, numberReviews, salePrice, variant, hoverVariant, dataTestId, layoutVariant = "normal", zoomOnHover = false, aspectRatio = "none", growWithContainer = false, onClick }) => {
|
|
130
131
|
const { resolve } = useImageResolver();
|
|
131
132
|
const finalVariant = variant ?? productCardConfig?.variant ?? "filled";
|
|
132
133
|
const finalHoverVariant = hoverVariant ?? productCardConfig?.hoverVariant ?? "backgroundDark";
|
|
133
134
|
const finalLayoutVariant = layoutVariant ?? productCardConfig?.layoutVariant ?? "normal";
|
|
134
135
|
const pricePrefix = productCardConfig?.pricePrefix;
|
|
136
|
+
const handleClick = () => onClick();
|
|
135
137
|
if (productCardConfig == null) {
|
|
136
138
|
logger_default.logError("[ProductCard] productCardConfig is null", void 0, { merchant: merchantShortName });
|
|
137
139
|
return null;
|
|
@@ -140,7 +142,8 @@ const ProductCard = ({ productCardConfig, merchantShortName, imageUrl, title, ur
|
|
|
140
142
|
const containerClassnames = classNames("spiffy-tw-cursor-pointer", "spiffy-tw-flex", "spiffy-tw-flex-col", "spiffy-tw-gap-inherit", "spiffy-tw-overflow-hidden", {
|
|
141
143
|
"spiffy-tw-h-full": growWithContainer,
|
|
142
144
|
"spiffy-tw-w-full": growWithContainer,
|
|
143
|
-
"spiffy-tw-max-w-full": growWithContainer
|
|
145
|
+
"spiffy-tw-max-w-full": growWithContainer,
|
|
146
|
+
"spiffy-tw-rounded-[8px]": layoutVariant === "normal"
|
|
144
147
|
}, !growWithContainer && layoutClasses.container, variantClassMap.get(finalVariant) ?? [], variantHoverClassMap.get(finalHoverVariant) ?? []);
|
|
145
148
|
const verticalContainerVariantClasses = productCardLayoutVariantClasses[layoutVariant].verticalContainer;
|
|
146
149
|
const verticalContainerClassnames = classNames("spiffy-tw-flex", "spiffy-tw-flex-col", "spiffy-tw-overflow-hidden", "spiffy-tw-gap-inherit", {
|
|
@@ -170,10 +173,10 @@ const ProductCard = ({ productCardConfig, merchantShortName, imageUrl, title, ur
|
|
|
170
173
|
const imageClassnames = classNames("spiffy-tw-bg-transparent", "spiffy-tw-w-full", "spiffy-tw-h-full", "spiffy-tw-object-cover", "spiffy-tw-object-top", "spiffy-tw-select-none", "spiffy-tw-pointer-events-none");
|
|
171
174
|
return /* @__PURE__ */ jsx("div", {
|
|
172
175
|
className: containerClassnames,
|
|
173
|
-
"data-testid": dataTestId,
|
|
176
|
+
"data-testid": dataTestId ?? PRODUCT_CARD_TESTID,
|
|
174
177
|
children: /* @__PURE__ */ jsx("a", {
|
|
175
178
|
href: url,
|
|
176
|
-
onClick: () => handleClick(
|
|
179
|
+
onClick: () => handleClick(),
|
|
177
180
|
target: "_self",
|
|
178
181
|
draggable: false,
|
|
179
182
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -10,6 +10,8 @@ let react_icons_md = require("react-icons/md");
|
|
|
10
10
|
react_icons_md = require_chunk.__toESM(react_icons_md);
|
|
11
11
|
let __envive_ai_react_hooks_hooks_ImageResolver = require("@envive-ai/react-hooks/hooks/ImageResolver");
|
|
12
12
|
__envive_ai_react_hooks_hooks_ImageResolver = require_chunk.__toESM(__envive_ai_react_hooks_hooks_ImageResolver);
|
|
13
|
+
let __envive_ai_react_hooks_config = require("@envive-ai/react-hooks/config");
|
|
14
|
+
__envive_ai_react_hooks_config = require_chunk.__toESM(__envive_ai_react_hooks_config);
|
|
13
15
|
|
|
14
16
|
//#region src/logging/logger.ts
|
|
15
17
|
var Logger = class {
|
|
@@ -131,12 +133,13 @@ const PriceSection = ({ originalPrice, salePrice, pricePrefix }) => {
|
|
|
131
133
|
]
|
|
132
134
|
});
|
|
133
135
|
};
|
|
134
|
-
const ProductCard = ({ productCardConfig, merchantShortName, imageUrl, title, url, originalPrice, averageRating, numberReviews, salePrice, variant, hoverVariant, dataTestId, layoutVariant = "normal", zoomOnHover = false, aspectRatio = "none", growWithContainer = false,
|
|
136
|
+
const ProductCard = ({ productCardConfig, merchantShortName, imageUrl, title, url, originalPrice, averageRating, numberReviews, salePrice, variant, hoverVariant, dataTestId, layoutVariant = "normal", zoomOnHover = false, aspectRatio = "none", growWithContainer = false, onClick }) => {
|
|
135
137
|
const { resolve } = (0, __envive_ai_react_hooks_hooks_ImageResolver.useImageResolver)();
|
|
136
138
|
const finalVariant = variant ?? productCardConfig?.variant ?? "filled";
|
|
137
139
|
const finalHoverVariant = hoverVariant ?? productCardConfig?.hoverVariant ?? "backgroundDark";
|
|
138
140
|
const finalLayoutVariant = layoutVariant ?? productCardConfig?.layoutVariant ?? "normal";
|
|
139
141
|
const pricePrefix = productCardConfig?.pricePrefix;
|
|
142
|
+
const handleClick = () => onClick();
|
|
140
143
|
if (productCardConfig == null) {
|
|
141
144
|
logger_default.logError("[ProductCard] productCardConfig is null", void 0, { merchant: merchantShortName });
|
|
142
145
|
return null;
|
|
@@ -145,7 +148,8 @@ const ProductCard = ({ productCardConfig, merchantShortName, imageUrl, title, ur
|
|
|
145
148
|
const containerClassnames = (0, classnames.default)("spiffy-tw-cursor-pointer", "spiffy-tw-flex", "spiffy-tw-flex-col", "spiffy-tw-gap-inherit", "spiffy-tw-overflow-hidden", {
|
|
146
149
|
"spiffy-tw-h-full": growWithContainer,
|
|
147
150
|
"spiffy-tw-w-full": growWithContainer,
|
|
148
|
-
"spiffy-tw-max-w-full": growWithContainer
|
|
151
|
+
"spiffy-tw-max-w-full": growWithContainer,
|
|
152
|
+
"spiffy-tw-rounded-[8px]": layoutVariant === "normal"
|
|
149
153
|
}, !growWithContainer && layoutClasses.container, variantClassMap.get(finalVariant) ?? [], variantHoverClassMap.get(finalHoverVariant) ?? []);
|
|
150
154
|
const verticalContainerVariantClasses = productCardLayoutVariantClasses[layoutVariant].verticalContainer;
|
|
151
155
|
const verticalContainerClassnames = (0, classnames.default)("spiffy-tw-flex", "spiffy-tw-flex-col", "spiffy-tw-overflow-hidden", "spiffy-tw-gap-inherit", {
|
|
@@ -175,10 +179,10 @@ const ProductCard = ({ productCardConfig, merchantShortName, imageUrl, title, ur
|
|
|
175
179
|
const imageClassnames = (0, classnames.default)("spiffy-tw-bg-transparent", "spiffy-tw-w-full", "spiffy-tw-h-full", "spiffy-tw-object-cover", "spiffy-tw-object-top", "spiffy-tw-select-none", "spiffy-tw-pointer-events-none");
|
|
176
180
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
177
181
|
className: containerClassnames,
|
|
178
|
-
"data-testid": dataTestId,
|
|
182
|
+
"data-testid": dataTestId ?? __envive_ai_react_hooks_config.PRODUCT_CARD_TESTID,
|
|
179
183
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
|
|
180
184
|
href: url,
|
|
181
|
-
onClick: () => handleClick(
|
|
185
|
+
onClick: () => handleClick(),
|
|
182
186
|
target: "_self",
|
|
183
187
|
draggable: false,
|
|
184
188
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
require('../Typography-CFNWgbM5.cjs');
|
|
2
2
|
require('../ImageWithFallback-1LqhQK1q.cjs');
|
|
3
|
-
require('../ProductCard-
|
|
3
|
+
require('../ProductCard-DksbHI3v.cjs');
|
|
4
4
|
require('../Spinner-DjK8ts9E.cjs');
|
|
5
|
-
const require_ProductGrid = require('../ProductGrid-
|
|
5
|
+
const require_ProductGrid = require('../ProductGrid-DxbFvnNs.cjs');
|
|
6
6
|
|
|
7
7
|
exports.ProductGrid = require_ProductGrid.ProductGrid;
|
|
8
8
|
exports.productGridVariantClasses = require_ProductGrid.productGridVariantClasses;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ProductCardConfig, ProductCardHoverVariant, ProductCardLayoutVariant, ProductCardVariant, ProductGridVariant } from "../index-
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
1
|
+
import { ProductCardConfig, ProductCardHoverVariant, ProductCardLayoutVariant, ProductCardVariant, ProductGridVariant } from "../index-CY3-7i6i.cjs";
|
|
2
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
3
|
+
import { SearchResponseProductAttributes } from "@envive-ai/react-hooks/application/models";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ProductGrid/ProductGrid.d.ts
|
|
6
6
|
interface ProductGridProps {
|
|
7
|
-
productList:
|
|
7
|
+
productList: SearchResponseProductAttributes['attributes'][];
|
|
8
8
|
productGridVariant: ProductGridVariant;
|
|
9
9
|
productGridClasses: string;
|
|
10
|
-
productCardConfig
|
|
10
|
+
productCardConfig: ProductCardConfig;
|
|
11
11
|
merchantShortName: string;
|
|
12
12
|
cardsGrowWithContainer?: boolean;
|
|
13
13
|
}
|
|
@@ -18,7 +18,7 @@ declare const ProductGrid: ({
|
|
|
18
18
|
productCardConfig,
|
|
19
19
|
merchantShortName,
|
|
20
20
|
cardsGrowWithContainer
|
|
21
|
-
}: ProductGridProps) =>
|
|
21
|
+
}: ProductGridProps) => react_jsx_runtime16.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region src/components/ProductGrid/productGridVariants.d.ts
|
|
24
24
|
interface ProductGridVariantClasses {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ProductCardConfig, ProductCardHoverVariant, ProductCardLayoutVariant, ProductCardVariant, ProductGridVariant } from "../index-
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
1
|
+
import { ProductCardConfig, ProductCardHoverVariant, ProductCardLayoutVariant, ProductCardVariant, ProductGridVariant } from "../index-DELwJODl.js";
|
|
2
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
3
|
+
import { SearchResponseProductAttributes } from "@envive-ai/react-hooks/application/models";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ProductGrid/ProductGrid.d.ts
|
|
6
6
|
interface ProductGridProps {
|
|
7
|
-
productList:
|
|
7
|
+
productList: SearchResponseProductAttributes['attributes'][];
|
|
8
8
|
productGridVariant: ProductGridVariant;
|
|
9
9
|
productGridClasses: string;
|
|
10
|
-
productCardConfig
|
|
10
|
+
productCardConfig: ProductCardConfig;
|
|
11
11
|
merchantShortName: string;
|
|
12
12
|
cardsGrowWithContainer?: boolean;
|
|
13
13
|
}
|
|
@@ -18,7 +18,7 @@ declare const ProductGrid: ({
|
|
|
18
18
|
productCardConfig,
|
|
19
19
|
merchantShortName,
|
|
20
20
|
cardsGrowWithContainer
|
|
21
|
-
}: ProductGridProps) =>
|
|
21
|
+
}: ProductGridProps) => react_jsx_runtime14.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region src/components/ProductGrid/productGridVariants.d.ts
|
|
24
24
|
interface ProductGridVariantClasses {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../Typography-D3vDkBMS.js";
|
|
2
2
|
import "../ImageWithFallback-Ckwsmd8P.js";
|
|
3
|
-
import "../ProductCard-
|
|
3
|
+
import "../ProductCard-DRczevG8.js";
|
|
4
4
|
import "../Spinner-BqTt55uu.js";
|
|
5
|
-
import { ProductGrid, productGridVariantClasses } from "../ProductGrid-
|
|
5
|
+
import { ProductGrid, productGridVariantClasses } from "../ProductGrid-CGHDHthe.js";
|
|
6
6
|
|
|
7
7
|
export { ProductGrid, productGridVariantClasses };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProductCard } from "./ProductCard-
|
|
1
|
+
import { ProductCard } from "./ProductCard-DRczevG8.js";
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
|
|
@@ -30,29 +30,26 @@ const ProductGrid = ({ productList, productGridVariant, productGridClasses, prod
|
|
|
30
30
|
});
|
|
31
31
|
return /* @__PURE__ */ jsx("div", {
|
|
32
32
|
className: productGridClasses,
|
|
33
|
-
children: productList.map((product) => {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}, camelCasedProduct.id)
|
|
54
|
-
}, camelCasedProduct.id);
|
|
55
|
-
})
|
|
33
|
+
children: productList.map((product) => /* @__PURE__ */ jsx("div", {
|
|
34
|
+
className: cardContainerClasses,
|
|
35
|
+
children: /* @__PURE__ */ jsx(ProductCard, {
|
|
36
|
+
productCardConfig,
|
|
37
|
+
merchantShortName,
|
|
38
|
+
imageUrl: product.imageUrl,
|
|
39
|
+
title: product.title,
|
|
40
|
+
url: product.url,
|
|
41
|
+
originalPrice: product.originalPrice,
|
|
42
|
+
salePrice: product.salePrice,
|
|
43
|
+
averageRating: product.averageRating,
|
|
44
|
+
numberReviews: product.numberReviews,
|
|
45
|
+
layoutVariant: productCardLayoutVariant,
|
|
46
|
+
variant: productCardVariant,
|
|
47
|
+
hoverVariant: productCardHoverVariant,
|
|
48
|
+
zoomOnHover,
|
|
49
|
+
aspectRatio: productCardImageAspectRatio,
|
|
50
|
+
growWithContainer: cardsGrowWithContainer
|
|
51
|
+
})
|
|
52
|
+
}, product.id))
|
|
56
53
|
});
|
|
57
54
|
};
|
|
58
55
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_ProductCard = require('./ProductCard-
|
|
2
|
+
const require_ProductCard = require('./ProductCard-DksbHI3v.cjs');
|
|
3
3
|
let classnames = require("classnames");
|
|
4
4
|
classnames = require_chunk.__toESM(classnames);
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -33,29 +33,26 @@ const ProductGrid = ({ productList, productGridVariant, productGridClasses, prod
|
|
|
33
33
|
});
|
|
34
34
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
35
35
|
className: productGridClasses,
|
|
36
|
-
children: productList.map((product) => {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}, camelCasedProduct.id)
|
|
57
|
-
}, camelCasedProduct.id);
|
|
58
|
-
})
|
|
36
|
+
children: productList.map((product) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
37
|
+
className: cardContainerClasses,
|
|
38
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProductCard.ProductCard, {
|
|
39
|
+
productCardConfig,
|
|
40
|
+
merchantShortName,
|
|
41
|
+
imageUrl: product.imageUrl,
|
|
42
|
+
title: product.title,
|
|
43
|
+
url: product.url,
|
|
44
|
+
originalPrice: product.originalPrice,
|
|
45
|
+
salePrice: product.salePrice,
|
|
46
|
+
averageRating: product.averageRating,
|
|
47
|
+
numberReviews: product.numberReviews,
|
|
48
|
+
layoutVariant: productCardLayoutVariant,
|
|
49
|
+
variant: productCardVariant,
|
|
50
|
+
hoverVariant: productCardHoverVariant,
|
|
51
|
+
zoomOnHover,
|
|
52
|
+
aspectRatio: productCardImageAspectRatio,
|
|
53
|
+
growWithContainer: cardsGrowWithContainer
|
|
54
|
+
})
|
|
55
|
+
}, product.id))
|
|
59
56
|
});
|
|
60
57
|
};
|
|
61
58
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
2
2
|
import { TestProps } from "@envive-ai/react-hooks/types";
|
|
3
3
|
|
|
4
4
|
//#region src/components/RadioButton/RadioButton.d.ts
|
|
@@ -27,6 +27,6 @@ declare const RadioButton: ({
|
|
|
27
27
|
checked,
|
|
28
28
|
onChange,
|
|
29
29
|
id
|
|
30
|
-
}: RadioButtonProps) =>
|
|
30
|
+
}: RadioButtonProps) => react_jsx_runtime28.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { RadioButton };
|