@envive-ai/react-toolkit 0.2.8 → 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/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/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-DxbFvnNs.cjs → ProductGrid-Ba2tUgmC.cjs} +5 -4
- package/dist/{ProductGrid-CGHDHthe.js → ProductGrid-xXkWzvR2.js} +5 -4
- package/dist/RadioButton/index.cjs +2 -1
- package/dist/RadioButton/index.d.cts +2 -2
- package/dist/RadioButton/index.d.ts +2 -2
- package/dist/RadioButton/index.js +2 -1
- package/dist/{RadioButton-BzZTrq-i.cjs → RadioButton-BBc1b5vX.cjs} +37 -33
- package/dist/{RadioButton-DRdlp-HC.js → RadioButton-gnFz0TWN.js} +38 -34
- package/dist/RadioButtonGroup/index.cjs +3 -2
- package/dist/RadioButtonGroup/index.d.cts +2 -2
- package/dist/RadioButtonGroup/index.d.ts +2 -2
- package/dist/RadioButtonGroup/index.js +3 -2
- package/dist/{RadioButtonGroup-BHfAwrH7.js → RadioButtonGroup-DLLleeDX.js} +1 -1
- package/dist/{RadioButtonGroup-DU4_ZMJ2.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 +3 -3
- package/dist/SearchFilter/index.d.cts +5 -5
- package/dist/SearchFilter/index.d.ts +5 -5
- package/dist/SearchFilter/index.js +3 -3
- package/dist/{SearchFilter-wjDCnNiW.js → SearchFilter-Bi0zqO3-.js} +1 -1
- package/dist/{SearchFilter-y4vrVBUC.cjs → SearchFilter-ylBowO7T.cjs} +1 -1
- package/dist/SearchInputForm/index.d.cts +2 -2
- 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 +3 -3
- package/dist/SearchResultsFilterSidebar/index.d.cts +1 -1
- package/dist/SearchResultsFilterSidebar/index.d.ts +1 -1
- package/dist/SearchResultsFilterSidebar/index.js +3 -3
- 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-CP3HKZao.cjs → SearchResultsStates-BjFB9Qo9.cjs} +3 -3
- package/dist/{SearchResultsStates-DUSTcTQK.js → SearchResultsStates-D8Uz39yp.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/ToggleButton/index.d.cts +2 -2
- package/dist/{index-CY3-7i6i.d.cts → index-BB4Qbpmg.d.ts} +5 -5
- package/dist/{index-DELwJODl.d.ts → index-BqARXvZ6.d.cts} +5 -5
- package/dist/{index-OpwPXBH6.d.ts → index-Dfe_lkL2.d.cts} +2 -2
- package/dist/{index-4KapT-qa.d.cts → index-DmvaMYbj.d.ts} +2 -2
- package/package.json +1 -1
- package/src/components/ProductGrid/ProductGrid.tsx +4 -1
- package/src/components/RadioButton/RadioButton.tsx +10 -11
- /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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime24 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_runtime24.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Accordion };
|
|
@@ -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_runtime21 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_runtime21.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_runtime28 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_runtime28.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { AnimatedChevron };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime20 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_runtime20.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { AppliedFiltersScrollbar };
|
|
@@ -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_runtime22 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_runtime22.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_runtime23 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_runtime23.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { ButtonBase, ButtonBaseOverrides, ButtonBaseProps, ButtonHoverStyles };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 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_runtime0.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { DynamicFiltersScrollbar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require('../Typography-CFNWgbM5.cjs');
|
|
2
|
-
const require_DynamicFiltersScrollbar = require('../DynamicFiltersScrollbar-
|
|
2
|
+
const require_DynamicFiltersScrollbar = require('../DynamicFiltersScrollbar-DgS9gpdg.cjs');
|
|
3
3
|
|
|
4
4
|
exports.AppliedFiltersScrollbar = require_DynamicFiltersScrollbar.AppliedFiltersScrollbar;
|
|
5
5
|
exports.DynamicFiltersScrollbar = require_DynamicFiltersScrollbar.DynamicFiltersScrollbar;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime19 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_runtime19.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_runtime19.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime22 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_runtime22.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_runtime22.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../Typography-D3vDkBMS.js";
|
|
2
|
-
import { AppliedFiltersScrollbar, DynamicFiltersScrollbar } from "../DynamicFiltersScrollbar-
|
|
2
|
+
import { AppliedFiltersScrollbar, DynamicFiltersScrollbar } from "../DynamicFiltersScrollbar-CJG4K0PH.js";
|
|
3
3
|
|
|
4
4
|
export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime9 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_runtime9.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_runtime17 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_runtime17.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { ImageWithFallback, ImageWithFallbackProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime17 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_runtime17.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { ModalSheet };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime24 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_runtime24.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { ModalSheet };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
require('../Typography-CFNWgbM5.cjs');
|
|
2
|
-
require('../ImageWithFallback-
|
|
3
|
-
const require_ProductCard = require('../ProductCard-
|
|
2
|
+
require('../ImageWithFallback-Bx17VPmQ.cjs');
|
|
3
|
+
const require_ProductCard = require('../ProductCard-C-8ie9Lf.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-BqARXvZ6.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-BB4Qbpmg.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
|
-
import "../ImageWithFallback-
|
|
3
|
-
import { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardSkeleton, ProductCardSkeletonOverrides, RatingSummary, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap } from "../ProductCard-
|
|
2
|
+
import "../ImageWithFallback-c-DTsBH-.js";
|
|
3
|
+
import { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardSkeleton, ProductCardSkeletonOverrides, RatingSummary, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap } from "../ProductCard-n-PAth5m.js";
|
|
4
4
|
import "../Spinner-BqTt55uu.js";
|
|
5
5
|
|
|
6
6
|
export { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardSkeleton, ProductCardSkeletonOverrides, RatingSummary, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
2
|
const require_Typography = require('./Typography-CFNWgbM5.cjs');
|
|
3
|
-
const require_ImageWithFallback = require('./ImageWithFallback-
|
|
3
|
+
const require_ImageWithFallback = require('./ImageWithFallback-Bx17VPmQ.cjs');
|
|
4
4
|
const require_Spinner = require('./Spinner-DjK8ts9E.cjs');
|
|
5
5
|
let classnames = require("classnames");
|
|
6
6
|
classnames = require_chunk.__toESM(classnames);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Typography } from "./Typography-D3vDkBMS.js";
|
|
2
|
-
import { ImageWithFallback } from "./ImageWithFallback-
|
|
2
|
+
import { ImageWithFallback } from "./ImageWithFallback-c-DTsBH-.js";
|
|
3
3
|
import { Spinner } from "./Spinner-BqTt55uu.js";
|
|
4
4
|
import classNames from "classnames";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
require('../Typography-CFNWgbM5.cjs');
|
|
2
|
-
require('../ImageWithFallback-
|
|
3
|
-
require('../ProductCard-
|
|
2
|
+
require('../ImageWithFallback-Bx17VPmQ.cjs');
|
|
3
|
+
require('../ProductCard-C-8ie9Lf.cjs');
|
|
4
4
|
require('../Spinner-DjK8ts9E.cjs');
|
|
5
|
-
const require_ProductGrid = require('../ProductGrid-
|
|
5
|
+
const require_ProductGrid = require('../ProductGrid-Ba2tUgmC.cjs');
|
|
6
6
|
|
|
7
7
|
exports.ProductGrid = require_ProductGrid.ProductGrid;
|
|
8
8
|
exports.productGridVariantClasses = require_ProductGrid.productGridVariantClasses;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProductCardConfig, ProductCardHoverVariant, ProductCardLayoutVariant, ProductCardVariant, ProductGridVariant } from "../index-
|
|
2
|
-
import * as
|
|
1
|
+
import { ProductCardConfig, ProductCardHoverVariant, ProductCardLayoutVariant, ProductCardVariant, ProductGridVariant } from "../index-BqARXvZ6.cjs";
|
|
2
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
3
3
|
import { SearchResponseProductAttributes } from "@envive-ai/react-hooks/application/models";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ProductGrid/ProductGrid.d.ts
|
|
@@ -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
|
declare const ProductGrid: ({
|
|
15
16
|
productList,
|
|
@@ -17,8 +18,9 @@ declare const ProductGrid: ({
|
|
|
17
18
|
productGridClasses,
|
|
18
19
|
productCardConfig,
|
|
19
20
|
merchantShortName,
|
|
20
|
-
cardsGrowWithContainer
|
|
21
|
-
|
|
21
|
+
cardsGrowWithContainer,
|
|
22
|
+
onProductClick
|
|
23
|
+
}: ProductGridProps) => react_jsx_runtime11.JSX.Element;
|
|
22
24
|
//#endregion
|
|
23
25
|
//#region src/components/ProductGrid/productGridVariants.d.ts
|
|
24
26
|
interface ProductGridVariantClasses {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProductCardConfig, ProductCardHoverVariant, ProductCardLayoutVariant, ProductCardVariant, ProductGridVariant } from "../index-
|
|
2
|
-
import * as
|
|
1
|
+
import { ProductCardConfig, ProductCardHoverVariant, ProductCardLayoutVariant, ProductCardVariant, ProductGridVariant } from "../index-BB4Qbpmg.js";
|
|
2
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
3
3
|
import { SearchResponseProductAttributes } from "@envive-ai/react-hooks/application/models";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ProductGrid/ProductGrid.d.ts
|
|
@@ -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
|
declare const ProductGrid: ({
|
|
15
16
|
productList,
|
|
@@ -17,8 +18,9 @@ declare const ProductGrid: ({
|
|
|
17
18
|
productGridClasses,
|
|
18
19
|
productCardConfig,
|
|
19
20
|
merchantShortName,
|
|
20
|
-
cardsGrowWithContainer
|
|
21
|
-
|
|
21
|
+
cardsGrowWithContainer,
|
|
22
|
+
onProductClick
|
|
23
|
+
}: ProductGridProps) => react_jsx_runtime9.JSX.Element;
|
|
22
24
|
//#endregion
|
|
23
25
|
//#region src/components/ProductGrid/productGridVariants.d.ts
|
|
24
26
|
interface ProductGridVariantClasses {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../Typography-D3vDkBMS.js";
|
|
2
|
-
import "../ImageWithFallback-
|
|
3
|
-
import "../ProductCard-
|
|
2
|
+
import "../ImageWithFallback-c-DTsBH-.js";
|
|
3
|
+
import "../ProductCard-n-PAth5m.js";
|
|
4
4
|
import "../Spinner-BqTt55uu.js";
|
|
5
|
-
import { ProductGrid, productGridVariantClasses } from "../ProductGrid-
|
|
5
|
+
import { ProductGrid, productGridVariantClasses } from "../ProductGrid-xXkWzvR2.js";
|
|
6
6
|
|
|
7
7
|
export { ProductGrid, productGridVariantClasses };
|
|
@@ -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-C-8ie9Lf.cjs');
|
|
3
3
|
let classnames = require("classnames");
|
|
4
4
|
classnames = require_chunk.__toESM(classnames);
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -25,7 +25,7 @@ const productGridVariantClasses = {
|
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region src/components/ProductGrid/ProductGrid.tsx
|
|
28
|
-
const ProductGrid = ({ productList, productGridVariant, productGridClasses, productCardConfig, merchantShortName, cardsGrowWithContainer = true }) => {
|
|
28
|
+
const ProductGrid = ({ productList, productGridVariant, productGridClasses, productCardConfig, merchantShortName, cardsGrowWithContainer = true, onProductClick }) => {
|
|
29
29
|
const { productCardVariant, productCardHoverVariant, productCardLayoutVariant, productCardImageAspectRatio, zoomOnHover } = productGridVariantClasses[productGridVariant];
|
|
30
30
|
const cardContainerClasses = (0, classnames.default)({
|
|
31
31
|
"spiffy-tw-w-full": cardsGrowWithContainer,
|
|
@@ -33,7 +33,7 @@ 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) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
36
|
+
children: productList.map((product, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
37
37
|
className: cardContainerClasses,
|
|
38
38
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProductCard.ProductCard, {
|
|
39
39
|
productCardConfig,
|
|
@@ -50,7 +50,8 @@ const ProductGrid = ({ productList, productGridVariant, productGridClasses, prod
|
|
|
50
50
|
hoverVariant: productCardHoverVariant,
|
|
51
51
|
zoomOnHover,
|
|
52
52
|
aspectRatio: productCardImageAspectRatio,
|
|
53
|
-
growWithContainer: cardsGrowWithContainer
|
|
53
|
+
growWithContainer: cardsGrowWithContainer,
|
|
54
|
+
onClick: () => onProductClick?.(product, index)
|
|
54
55
|
})
|
|
55
56
|
}, product.id))
|
|
56
57
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProductCard } from "./ProductCard-
|
|
1
|
+
import { ProductCard } from "./ProductCard-n-PAth5m.js";
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
|
|
@@ -22,7 +22,7 @@ const productGridVariantClasses = {
|
|
|
22
22
|
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region src/components/ProductGrid/ProductGrid.tsx
|
|
25
|
-
const ProductGrid = ({ productList, productGridVariant, productGridClasses, productCardConfig, merchantShortName, cardsGrowWithContainer = true }) => {
|
|
25
|
+
const ProductGrid = ({ productList, productGridVariant, productGridClasses, productCardConfig, merchantShortName, cardsGrowWithContainer = true, onProductClick }) => {
|
|
26
26
|
const { productCardVariant, productCardHoverVariant, productCardLayoutVariant, productCardImageAspectRatio, zoomOnHover } = productGridVariantClasses[productGridVariant];
|
|
27
27
|
const cardContainerClasses = classNames({
|
|
28
28
|
"spiffy-tw-w-full": cardsGrowWithContainer,
|
|
@@ -30,7 +30,7 @@ const ProductGrid = ({ productList, productGridVariant, productGridClasses, prod
|
|
|
30
30
|
});
|
|
31
31
|
return /* @__PURE__ */ jsx("div", {
|
|
32
32
|
className: productGridClasses,
|
|
33
|
-
children: productList.map((product) => /* @__PURE__ */ jsx("div", {
|
|
33
|
+
children: productList.map((product, index) => /* @__PURE__ */ jsx("div", {
|
|
34
34
|
className: cardContainerClasses,
|
|
35
35
|
children: /* @__PURE__ */ jsx(ProductCard, {
|
|
36
36
|
productCardConfig,
|
|
@@ -47,7 +47,8 @@ const ProductGrid = ({ productList, productGridVariant, productGridClasses, prod
|
|
|
47
47
|
hoverVariant: productCardHoverVariant,
|
|
48
48
|
zoomOnHover,
|
|
49
49
|
aspectRatio: productCardImageAspectRatio,
|
|
50
|
-
growWithContainer: cardsGrowWithContainer
|
|
50
|
+
growWithContainer: cardsGrowWithContainer,
|
|
51
|
+
onClick: () => onProductClick?.(product, index)
|
|
51
52
|
})
|
|
52
53
|
}, product.id))
|
|
53
54
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime10 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_runtime10.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { RadioButton };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime7 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_runtime7.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { RadioButton };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
const require_Typography = require('./Typography-CFNWgbM5.cjs');
|
|
2
3
|
let react = require("react");
|
|
3
4
|
react = require_chunk.__toESM(react);
|
|
4
5
|
let classnames = require("classnames");
|
|
@@ -27,44 +28,47 @@ const RadioButton = ({ isDisabled = false, label, name, value, textButtonGap = "
|
|
|
27
28
|
const handleChange = () => {
|
|
28
29
|
if (!isDisabled) onChange(value);
|
|
29
30
|
};
|
|
30
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(
|
|
31
|
-
className: "spiffy-tw-relative",
|
|
32
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
33
|
-
type: "radio",
|
|
34
|
-
id,
|
|
35
|
-
name,
|
|
36
|
-
value,
|
|
37
|
-
checked,
|
|
38
|
-
disabled: isDisabled,
|
|
39
|
-
onChange: handleChange,
|
|
40
|
-
className: "spiffy-tw-sr-only"
|
|
41
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
42
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
43
|
-
width: "24",
|
|
44
|
-
height: "24",
|
|
45
|
-
viewBox: "0 0 24 24",
|
|
46
|
-
fill: "none",
|
|
47
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
|
|
48
|
-
cx: "12",
|
|
49
|
-
cy: "12",
|
|
50
|
-
r: "11.5",
|
|
51
|
-
fill: "white",
|
|
52
|
-
stroke: getFillColor()
|
|
53
|
-
}), checked && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
|
|
54
|
-
cx: "12",
|
|
55
|
-
cy: "12",
|
|
56
|
-
r: "9",
|
|
57
|
-
fill: getFillColor()
|
|
58
|
-
})]
|
|
59
|
-
})]
|
|
60
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
31
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
61
32
|
className: containerClassName,
|
|
62
33
|
onMouseEnter: () => !isDisabled && setIsHovered(true),
|
|
63
34
|
onMouseLeave: () => setIsHovered(false),
|
|
64
35
|
"aria-label": label,
|
|
65
36
|
htmlFor: id,
|
|
66
|
-
children:
|
|
67
|
-
|
|
37
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
38
|
+
className: "spiffy-tw-relative",
|
|
39
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
40
|
+
type: "radio",
|
|
41
|
+
id,
|
|
42
|
+
name,
|
|
43
|
+
value,
|
|
44
|
+
checked,
|
|
45
|
+
disabled: isDisabled,
|
|
46
|
+
onChange: handleChange,
|
|
47
|
+
className: "spiffy-tw-sr-only"
|
|
48
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
49
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
50
|
+
width: "24",
|
|
51
|
+
height: "24",
|
|
52
|
+
viewBox: "0 0 24 24",
|
|
53
|
+
fill: "none",
|
|
54
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
|
|
55
|
+
cx: "12",
|
|
56
|
+
cy: "12",
|
|
57
|
+
r: "11.5",
|
|
58
|
+
fill: "white",
|
|
59
|
+
stroke: getFillColor()
|
|
60
|
+
}), checked && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
|
|
61
|
+
cx: "12",
|
|
62
|
+
cy: "12",
|
|
63
|
+
r: "9",
|
|
64
|
+
fill: getFillColor()
|
|
65
|
+
})]
|
|
66
|
+
})]
|
|
67
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
68
|
+
variant: "body3",
|
|
69
|
+
children: label
|
|
70
|
+
})]
|
|
71
|
+
});
|
|
68
72
|
};
|
|
69
73
|
|
|
70
74
|
//#endregion
|