@envive-ai/react-toolkit 0.1.12 → 0.1.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/index.cjs +3 -3
- package/dist/Accordion/index.d.cts +2 -2
- package/dist/Accordion/index.d.ts +2 -2
- package/dist/Accordion/index.js +3 -3
- package/dist/{Accordion-DBZpiQe7.cjs → Accordion-D9gO9_y3.cjs} +1 -1
- package/dist/{Accordion-Cp3Hx2zm.js → Accordion-ZEdp99Ph.js} +1 -1
- package/dist/AppliedFiltersScrollbar/index.cjs +25 -27
- package/dist/AppliedFiltersScrollbar/index.d.cts +2 -2
- package/dist/AppliedFiltersScrollbar/index.d.ts +2 -2
- package/dist/AppliedFiltersScrollbar/index.js +25 -27
- package/dist/ButtonBase/index.cjs +3 -3
- package/dist/ButtonBase/index.d.cts +2 -3
- package/dist/ButtonBase/index.d.ts +2 -3
- package/dist/ButtonBase/index.js +3 -3
- package/dist/{ButtonBase-BAf-nlCm.js → ButtonBase-DgRupM53.js} +3 -3
- package/dist/{ButtonBase-Do88ndKa.cjs → ButtonBase-DrIwVGTR.cjs} +3 -3
- package/dist/DynamicFiltersScrollbar/index.cjs +23 -25
- package/dist/DynamicFiltersScrollbar/index.d.cts +2 -2
- package/dist/DynamicFiltersScrollbar/index.d.ts +2 -2
- package/dist/DynamicFiltersScrollbar/index.js +23 -25
- package/dist/DynamicFiltersScrollbar-B1j53y2q.cjs +81 -0
- package/dist/DynamicFiltersScrollbar-D7WYp6x9.js +66 -0
- package/dist/FilterScrollbar/index.cjs +3 -3
- package/dist/FilterScrollbar/index.d.cts +3 -3
- package/dist/FilterScrollbar/index.d.ts +3 -3
- package/dist/FilterScrollbar/index.js +3 -3
- package/dist/Headline/index.cjs +2 -2
- package/dist/Headline/index.d.cts +2 -2
- package/dist/Headline/index.d.ts +2 -2
- package/dist/Headline/index.js +2 -2
- package/dist/{Headline-DNEWF8ly.js → Headline-COv0Jbn8.js} +1 -1
- package/dist/{Headline-DTT4RSv2.cjs → Headline-Cp79THVF.cjs} +1 -1
- 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 +4 -4
- package/dist/ProductCard/index.d.cts +1 -1
- package/dist/ProductCard/index.d.ts +1 -1
- package/dist/ProductCard/index.js +4 -4
- package/dist/{ProductCard-C3MjnfZJ.js → ProductCard-CNwmHggx.js} +32 -32
- package/dist/{ProductCard-FDyIMnZs.cjs → ProductCard-EmdDy2af.cjs} +32 -32
- package/dist/ProductGrid/index.cjs +5 -5
- package/dist/ProductGrid/index.d.cts +4 -8
- package/dist/ProductGrid/index.d.ts +4 -8
- package/dist/ProductGrid/index.js +5 -5
- package/dist/{ProductGrid-TlntVJ6h.cjs → ProductGrid-CMoomZLc.cjs} +3 -7
- package/dist/{ProductGrid-C9OKsyB2.js → ProductGrid-nmWSp0qX.js} +3 -7
- package/dist/RadioButton/index.cjs +3 -3
- package/dist/RadioButton/index.d.cts +5 -3
- package/dist/RadioButton/index.d.ts +5 -3
- package/dist/RadioButton/index.js +3 -3
- package/dist/{RadioButton-DZ6QXkrN.cjs → RadioButton-BdKJRzLM.cjs} +17 -10
- package/dist/{RadioButton-Bf68dZl7.js → RadioButton-S5dALI2f.js} +18 -11
- package/dist/RadioButtonGroup/index.cjs +4 -4
- package/dist/RadioButtonGroup/index.d.cts +2 -2
- package/dist/RadioButtonGroup/index.d.ts +2 -2
- package/dist/RadioButtonGroup/index.js +4 -4
- package/dist/{RadioButtonGroup-8k7hkJYB.js → RadioButtonGroup-BipNsoHL.js} +2 -1
- package/dist/{RadioButtonGroup-Dc_n5amh.cjs → RadioButtonGroup-TAJMA1j_.cjs} +2 -1
- package/dist/SearchAutocomplete/index.cjs +56 -2
- package/dist/SearchAutocomplete/index.js +49 -1
- package/dist/SearchFilter/index.cjs +8 -8
- package/dist/SearchFilter/index.d.cts +4 -4
- package/dist/SearchFilter/index.d.ts +4 -4
- package/dist/SearchFilter/index.js +8 -8
- package/dist/{SearchFilter-CTVBi5s3.cjs → SearchFilter-BcLc0TMq.cjs} +26 -16
- package/dist/{SearchFilter-DvqBIXa1.js → SearchFilter-w-0s2YVu.js} +26 -16
- package/dist/SearchInput/index.cjs +96 -6
- package/dist/SearchInput/index.d.cts +1 -1
- package/dist/SearchInput/index.d.ts +2 -2
- package/dist/SearchInput/index.js +88 -4
- package/dist/SearchInputForm/index.cjs +0 -39
- package/dist/SearchInputForm/index.d.cts +2 -2
- package/dist/SearchInputForm/index.d.ts +2 -2
- package/dist/SearchInputForm/index.js +1 -37
- package/dist/SearchResultsContent/index.cjs +34 -37
- package/dist/SearchResultsContent/index.d.cts +4 -6
- package/dist/SearchResultsContent/index.d.ts +4 -6
- package/dist/SearchResultsContent/index.js +34 -37
- package/dist/SearchResultsFilterSidebar/index.cjs +10 -10
- package/dist/SearchResultsFilterSidebar/index.d.cts +1 -1
- package/dist/SearchResultsFilterSidebar/index.d.ts +1 -1
- package/dist/SearchResultsFilterSidebar/index.js +10 -10
- package/dist/SearchResultsStates/index.cjs +10 -10
- package/dist/SearchResultsStates/index.d.cts +6 -8
- package/dist/SearchResultsStates/index.d.ts +6 -8
- package/dist/SearchResultsStates/index.js +10 -10
- package/dist/{SearchResultsStates-iKz64Pd4.js → SearchResultsStates-DlZz14yy.js} +8 -10
- package/dist/{SearchResultsStates-CH4agenX.cjs → SearchResultsStates-DwcPrsdd.cjs} +8 -10
- package/dist/SparkleAnimation/index.cjs +1 -1
- package/dist/SparkleAnimation/index.d.cts +2 -2
- package/dist/SparkleAnimation/index.d.ts +2 -2
- package/dist/SparkleAnimation/index.js +1 -1
- package/dist/{SparkleAnimation-qi5WCJ9B.cjs → SparkleAnimation-CvGlWUqv.cjs} +0 -1
- package/dist/{SparkleAnimation-BLfNojLv.js → SparkleAnimation-paLhSu5E.js} +0 -1
- package/dist/Spinner/index.d.cts +2 -2
- package/dist/SuggestionButton/index.cjs +3 -3
- package/dist/SuggestionButton/index.d.cts +2 -2
- package/dist/SuggestionButton/index.d.ts +2 -2
- package/dist/SuggestionButton/index.js +3 -3
- package/dist/Text/index.cjs +2 -2
- package/dist/Text/index.d.cts +2 -2
- package/dist/Text/index.d.ts +3 -3
- package/dist/Text/index.js +2 -2
- package/dist/{Text-Bod4OMPk.js → Text-BLzNhX4H.js} +1 -1
- package/dist/{Text-MQjxqgZZ.cjs → Text-DllCE9_D.cjs} +1 -1
- package/dist/TextInput/index.cjs +2 -2
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +2 -2
- package/dist/{TextInput-DoM41M53.js → TextInput-DmsOxxPN.js} +1 -1
- package/dist/{TextInput-B3dTeD3q.cjs → TextInput-HMW0hxLI.cjs} +1 -1
- package/dist/ToggleButton/index.cjs +3 -3
- package/dist/ToggleButton/index.d.cts +2 -2
- package/dist/ToggleButton/index.d.ts +2 -2
- package/dist/ToggleButton/index.js +3 -3
- package/dist/{ToggleButton-CK_vkMvt.cjs → ToggleButton-DblAj4Cd.cjs} +1 -1
- package/dist/{ToggleButton-GIVd2-Z4.js → ToggleButton-r7Y7Kzzo.js} +1 -1
- package/dist/index-BKvXn5sj.d.ts +4 -0
- package/dist/{index-B8l3muO3.d.ts → index-Br1B7Jta.d.cts} +2 -3
- package/dist/{index-CFH3KUVw.d.cts → index-DADHwW6M.d.ts} +5 -9
- package/dist/{index-Vck3pox6.d.ts → index-DDp-fLgm.d.cts} +5 -9
- package/dist/{index-BMt66uqr.d.cts → index-Dh8rcWev.d.ts} +2 -3
- package/dist/index-W1wCDiw_.d.cts +4 -0
- package/dist/{searchFilterSidebarVariants-CI782ylo.js → searchFilterSidebarVariants-J0FJ8pck.js} +1 -1
- package/dist/{searchFilterSidebarVariants-DFfOTqjc.cjs → searchFilterSidebarVariants-kkTjYEIF.cjs} +1 -1
- package/dist/{textVariantClasses-Dgz7Zaql.cjs → textVariantClasses-CBre7vXv.cjs} +5 -7
- package/dist/{textVariantClasses-D77TGEy1.js → textVariantClasses-CRrTb43V.js} +5 -7
- package/package.json +2 -6
- package/src/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.tsx +25 -27
- package/src/components/ButtonBase/ButtonBase.tsx +1 -2
- package/src/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.tsx +26 -28
- package/src/components/FilterScrollbar/AppliedFiltersScrollbar.tsx +25 -27
- package/src/components/FilterScrollbar/DynamicFiltersScrollbar.tsx +26 -28
- package/src/components/ModalSheet/ModalSheet.tsx +1 -1
- package/src/components/ModalSheet/common/closeIcon.tsx +2 -2
- package/src/components/ModalSheet/mobile/mobileHeader.tsx +1 -1
- package/src/components/ProductCard/ProductCard.tsx +5 -28
- package/src/components/ProductGrid/ProductGrid.tsx +3 -11
- package/src/components/RadioButton/RadioButton.tsx +15 -6
- package/src/components/RadioButtonGroup/RadioButtonGroup.tsx +1 -0
- package/src/components/SearchFilter/SearchFilter.tsx +2 -2
- package/src/components/SearchFilter/SearchFilterFooter.tsx +1 -1
- package/src/components/SearchFilter/SearchFilterHeader.tsx +6 -1
- package/src/components/SearchFilter/SearchFilterItem.tsx +17 -3
- package/src/components/SearchFilter/useHasFilterStateChanged.tsx +1 -0
- package/src/components/SearchFilter/utils.ts +4 -6
- package/src/components/SearchInput/SearchInput.tsx +2 -2
- package/src/components/SearchInputForm/index.ts +0 -1
- package/src/components/SearchResultsContent/SearchResultsContent.tsx +33 -38
- package/src/components/SearchResultsFilterSidebar/SearchResultsFilter.tsx +2 -3
- package/src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts +1 -1
- package/src/components/SearchResultsStates/SearchResultsGrid.tsx +4 -8
- package/src/components/SearchResultsStates/SearchResultsLoadingGrid.tsx +3 -3
- package/src/components/SparkleAnimation/SparkleAnimation.tsx +0 -1
- package/src/components/Spinner/Spinner.tsx +29 -14
- package/src/components/SuggestionButton/SuggestionButton.tsx +1 -1
- package/src/components/SuggestionButton/types.ts +1 -1
- package/src/components/Text/textVariantClasses.ts +12 -10
- package/src/components/TextInput/TextInput.tsx +1 -0
- package/src/util/camelCasedPropertiesDeep.ts +22 -22
- package/src/util/internal.ts +4 -2
- package/src/util/splitWords.ts +35 -31
- package/dist/DynamicFiltersScrollbar-C4kdNSJ9.js +0 -70
- package/dist/DynamicFiltersScrollbar-CVw1PINp.cjs +0 -85
- package/dist/SearchAutocomplete-BlpII8Xs.js +0 -51
- package/dist/SearchAutocomplete-DIEhLT4C.cjs +0 -62
- package/dist/SearchInput-CVaCPWCE.js +0 -89
- package/dist/SearchInput-vJMWoLzS.cjs +0 -106
- package/dist/Styles/index.cjs +0 -274
- package/dist/Styles/index.d.cts +0 -258
- package/dist/Styles/index.d.ts +0 -258
- package/dist/Styles/index.js +0 -274
- package/dist/index-H_9LhS_1.d.cts +0 -36
- package/dist/index-h-QwQNnu.d.ts +0 -36
- package/src/components/Styles/EnviveTailwindPreset.ts +0 -285
- package/src/components/Styles/index.ts +0 -2
- package/tailwind-preset.js +0 -3
- /package/dist/{colorsConfig-D-MZuBvt.cjs → colorsConfig-B3-SMUSx.cjs} +0 -0
- /package/dist/{colorsConfig-DEfiLHH0.js → colorsConfig-DZ-GSPWy.js} +0 -0
- /package/dist/{textVariantClasses-kyZtL8F5.d.ts → textVariantClasses-C8OCWZAw.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
require('../textVariantClasses-
|
|
2
|
-
require('../Text-
|
|
3
|
-
const require_DynamicFiltersScrollbar = require('../DynamicFiltersScrollbar-
|
|
1
|
+
require('../textVariantClasses-CBre7vXv.cjs');
|
|
2
|
+
require('../Text-DllCE9_D.cjs');
|
|
3
|
+
const require_DynamicFiltersScrollbar = require('../DynamicFiltersScrollbar-B1j53y2q.cjs');
|
|
4
4
|
|
|
5
5
|
exports.AppliedFiltersScrollbar = require_DynamicFiltersScrollbar.AppliedFiltersScrollbar;
|
|
6
6
|
exports.DynamicFiltersScrollbar = require_DynamicFiltersScrollbar.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
|
-
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/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_runtime20.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_runtime20.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../textVariantClasses-
|
|
2
|
-
import "../Text-
|
|
3
|
-
import { AppliedFiltersScrollbar, DynamicFiltersScrollbar } from "../DynamicFiltersScrollbar-
|
|
1
|
+
import "../textVariantClasses-CRrTb43V.js";
|
|
2
|
+
import "../Text-BLzNhX4H.js";
|
|
3
|
+
import { AppliedFiltersScrollbar, DynamicFiltersScrollbar } from "../DynamicFiltersScrollbar-D7WYp6x9.js";
|
|
4
4
|
|
|
5
5
|
export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
|
package/dist/Headline/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require('../textVariantClasses-
|
|
2
|
-
const require_Headline = require('../Headline-
|
|
1
|
+
require('../textVariantClasses-CBre7vXv.cjs');
|
|
2
|
+
const require_Headline = require('../Headline-Cp79THVF.cjs');
|
|
3
3
|
|
|
4
4
|
exports.Headline = require_Headline.Headline;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/Headline/Headline.d.ts
|
|
4
4
|
type HeadlineVariant = 't1' | 't2' | 't3' | 'h1' | 'h2' | 'h3' | 'h4';
|
|
@@ -16,6 +16,6 @@ declare const Headline: ({
|
|
|
16
16
|
style,
|
|
17
17
|
testId,
|
|
18
18
|
variant
|
|
19
|
-
}: HeadlineProps) =>
|
|
19
|
+
}: HeadlineProps) => react_jsx_runtime23.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { Headline, HeadlineProps, HeadlineVariant };
|
package/dist/Headline/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime24 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/Headline/Headline.d.ts
|
|
4
4
|
type HeadlineVariant = 't1' | 't2' | 't3' | 'h1' | 'h2' | 'h3' | 'h4';
|
|
@@ -16,6 +16,6 @@ declare const Headline: ({
|
|
|
16
16
|
style,
|
|
17
17
|
testId,
|
|
18
18
|
variant
|
|
19
|
-
}: HeadlineProps) =>
|
|
19
|
+
}: HeadlineProps) => react_jsx_runtime24.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { Headline, HeadlineProps, HeadlineVariant };
|
package/dist/Headline/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_textVariantClasses = require('./textVariantClasses-
|
|
2
|
+
const require_textVariantClasses = require('./textVariantClasses-CBre7vXv.cjs');
|
|
3
3
|
let classnames = require("classnames");
|
|
4
4
|
classnames = require_chunk.__toESM(classnames);
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime7 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_runtime7.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_runtime25 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_runtime25.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { ImageWithFallback, ImageWithFallbackProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime16 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_runtime16.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { ModalSheet };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime23 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_runtime23.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { ModalSheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
require('../textVariantClasses-
|
|
2
|
-
require('../Text-
|
|
3
|
-
require('../Headline-
|
|
1
|
+
require('../textVariantClasses-CBre7vXv.cjs');
|
|
2
|
+
require('../Text-DllCE9_D.cjs');
|
|
3
|
+
require('../Headline-Cp79THVF.cjs');
|
|
4
4
|
require('../ImageWithFallback-Cx-KNi-D.cjs');
|
|
5
|
-
const require_ProductCard = require('../ProductCard-
|
|
5
|
+
const require_ProductCard = require('../ProductCard-EmdDy2af.cjs');
|
|
6
6
|
require('../Spinner-DFor2Szi.cjs');
|
|
7
7
|
|
|
8
8
|
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-DDp-fLgm.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-DADHwW6M.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,8 +1,8 @@
|
|
|
1
|
-
import "../textVariantClasses-
|
|
2
|
-
import "../Text-
|
|
3
|
-
import "../Headline-
|
|
1
|
+
import "../textVariantClasses-CRrTb43V.js";
|
|
2
|
+
import "../Text-BLzNhX4H.js";
|
|
3
|
+
import "../Headline-COv0Jbn8.js";
|
|
4
4
|
import "../ImageWithFallback-DqxjwO3i.js";
|
|
5
|
-
import { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardSkeleton, ProductCardSkeletonOverrides, RatingSummary, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap } from "../ProductCard-
|
|
5
|
+
import { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardSkeleton, ProductCardSkeletonOverrides, RatingSummary, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap } from "../ProductCard-CNwmHggx.js";
|
|
6
6
|
import "../Spinner-CjGLIRgs.js";
|
|
7
7
|
|
|
8
8
|
export { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardSkeleton, ProductCardSkeletonOverrides, RatingSummary, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Text } from "./Text-
|
|
2
|
-
import { Headline } from "./Headline-
|
|
1
|
+
import { Text } from "./Text-BLzNhX4H.js";
|
|
2
|
+
import { Headline } from "./Headline-COv0Jbn8.js";
|
|
3
3
|
import { ImageWithFallback } from "./ImageWithFallback-DqxjwO3i.js";
|
|
4
4
|
import { Spinner } from "./Spinner-CjGLIRgs.js";
|
|
5
5
|
import classNames from "classnames";
|
|
@@ -7,6 +7,36 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
import { MdStar } from "react-icons/md";
|
|
8
8
|
import { useImageResolver } from "@envive-ai/react-hooks/hooks/ImageResolver";
|
|
9
9
|
|
|
10
|
+
//#region src/logging/logger.ts
|
|
11
|
+
var Logger = class {
|
|
12
|
+
static logInfo(message, ...args) {
|
|
13
|
+
console.info(`INFO: ${message}`, ...args);
|
|
14
|
+
}
|
|
15
|
+
static logDebug(message, ...args) {
|
|
16
|
+
console.debug(`DEBUG: ${message}`, ...args);
|
|
17
|
+
}
|
|
18
|
+
static logError(message, error, ...args) {
|
|
19
|
+
console.error(`ERROR: ${message} error=${error}`, args);
|
|
20
|
+
}
|
|
21
|
+
static logWarn(message, error, ...args) {
|
|
22
|
+
console.warn(`WARN: ${message} error=${error}`, args);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
var logger_default = Logger;
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/util/formatPrice.ts
|
|
29
|
+
const formatPrice = (price, currency = "$") => {
|
|
30
|
+
if (price == null) return "";
|
|
31
|
+
const options = {};
|
|
32
|
+
if (!Number.isInteger(price)) {
|
|
33
|
+
options.minimumFractionDigits = 2;
|
|
34
|
+
options.maximumFractionDigits = 2;
|
|
35
|
+
}
|
|
36
|
+
return `${currency}${price.toLocaleString("en-US", options)}`;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
10
40
|
//#region src/components/ProductCard/productCardVariants.ts
|
|
11
41
|
/**
|
|
12
42
|
* Shared variant mapping configurations for ProductCard components
|
|
@@ -50,36 +80,6 @@ const productCardLayoutVariantClasses = {
|
|
|
50
80
|
}
|
|
51
81
|
};
|
|
52
82
|
|
|
53
|
-
//#endregion
|
|
54
|
-
//#region src/logging/logger.ts
|
|
55
|
-
var Logger = class {
|
|
56
|
-
static logInfo(message, ...args) {
|
|
57
|
-
console.info(`INFO: ${message}`, ...args);
|
|
58
|
-
}
|
|
59
|
-
static logDebug(message, ...args) {
|
|
60
|
-
console.debug(`DEBUG: ${message}`, ...args);
|
|
61
|
-
}
|
|
62
|
-
static logError(message, error, ...args) {
|
|
63
|
-
console.error(`ERROR: ${message} error=${error}`, args);
|
|
64
|
-
}
|
|
65
|
-
static logWarn(message, error, ...args) {
|
|
66
|
-
console.warn(`WARN: ${message} error=${error}`, args);
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
var logger_default = Logger;
|
|
70
|
-
|
|
71
|
-
//#endregion
|
|
72
|
-
//#region src/util/formatPrice.ts
|
|
73
|
-
const formatPrice = (price, currency = "$") => {
|
|
74
|
-
if (price == null) return "";
|
|
75
|
-
const options = {};
|
|
76
|
-
if (!Number.isInteger(price)) {
|
|
77
|
-
options.minimumFractionDigits = 2;
|
|
78
|
-
options.maximumFractionDigits = 2;
|
|
79
|
-
}
|
|
80
|
-
return `${currency}${price.toLocaleString("en-US", options)}`;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
83
|
//#endregion
|
|
84
84
|
//#region src/components/ProductCard/ProductCard.tsx
|
|
85
85
|
const formatReviews = (stars) => String(Number(stars).toLocaleString("en-US", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_Text = require('./Text-
|
|
3
|
-
const require_Headline = require('./Headline-
|
|
2
|
+
const require_Text = require('./Text-DllCE9_D.cjs');
|
|
3
|
+
const require_Headline = require('./Headline-Cp79THVF.cjs');
|
|
4
4
|
const require_ImageWithFallback = require('./ImageWithFallback-Cx-KNi-D.cjs');
|
|
5
5
|
const require_Spinner = require('./Spinner-DFor2Szi.cjs');
|
|
6
6
|
let classnames = require("classnames");
|
|
@@ -12,6 +12,36 @@ react_icons_md = require_chunk.__toESM(react_icons_md);
|
|
|
12
12
|
let __envive_ai_react_hooks_hooks_ImageResolver = require("@envive-ai/react-hooks/hooks/ImageResolver");
|
|
13
13
|
__envive_ai_react_hooks_hooks_ImageResolver = require_chunk.__toESM(__envive_ai_react_hooks_hooks_ImageResolver);
|
|
14
14
|
|
|
15
|
+
//#region src/logging/logger.ts
|
|
16
|
+
var Logger = class {
|
|
17
|
+
static logInfo(message, ...args) {
|
|
18
|
+
console.info(`INFO: ${message}`, ...args);
|
|
19
|
+
}
|
|
20
|
+
static logDebug(message, ...args) {
|
|
21
|
+
console.debug(`DEBUG: ${message}`, ...args);
|
|
22
|
+
}
|
|
23
|
+
static logError(message, error, ...args) {
|
|
24
|
+
console.error(`ERROR: ${message} error=${error}`, args);
|
|
25
|
+
}
|
|
26
|
+
static logWarn(message, error, ...args) {
|
|
27
|
+
console.warn(`WARN: ${message} error=${error}`, args);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
var logger_default = Logger;
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/util/formatPrice.ts
|
|
34
|
+
const formatPrice = (price, currency = "$") => {
|
|
35
|
+
if (price == null) return "";
|
|
36
|
+
const options = {};
|
|
37
|
+
if (!Number.isInteger(price)) {
|
|
38
|
+
options.minimumFractionDigits = 2;
|
|
39
|
+
options.maximumFractionDigits = 2;
|
|
40
|
+
}
|
|
41
|
+
return `${currency}${price.toLocaleString("en-US", options)}`;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
15
45
|
//#region src/components/ProductCard/productCardVariants.ts
|
|
16
46
|
/**
|
|
17
47
|
* Shared variant mapping configurations for ProductCard components
|
|
@@ -55,36 +85,6 @@ const productCardLayoutVariantClasses = {
|
|
|
55
85
|
}
|
|
56
86
|
};
|
|
57
87
|
|
|
58
|
-
//#endregion
|
|
59
|
-
//#region src/logging/logger.ts
|
|
60
|
-
var Logger = class {
|
|
61
|
-
static logInfo(message, ...args) {
|
|
62
|
-
console.info(`INFO: ${message}`, ...args);
|
|
63
|
-
}
|
|
64
|
-
static logDebug(message, ...args) {
|
|
65
|
-
console.debug(`DEBUG: ${message}`, ...args);
|
|
66
|
-
}
|
|
67
|
-
static logError(message, error, ...args) {
|
|
68
|
-
console.error(`ERROR: ${message} error=${error}`, args);
|
|
69
|
-
}
|
|
70
|
-
static logWarn(message, error, ...args) {
|
|
71
|
-
console.warn(`WARN: ${message} error=${error}`, args);
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
var logger_default = Logger;
|
|
75
|
-
|
|
76
|
-
//#endregion
|
|
77
|
-
//#region src/util/formatPrice.ts
|
|
78
|
-
const formatPrice = (price, currency = "$") => {
|
|
79
|
-
if (price == null) return "";
|
|
80
|
-
const options = {};
|
|
81
|
-
if (!Number.isInteger(price)) {
|
|
82
|
-
options.minimumFractionDigits = 2;
|
|
83
|
-
options.maximumFractionDigits = 2;
|
|
84
|
-
}
|
|
85
|
-
return `${currency}${price.toLocaleString("en-US", options)}`;
|
|
86
|
-
};
|
|
87
|
-
|
|
88
88
|
//#endregion
|
|
89
89
|
//#region src/components/ProductCard/ProductCard.tsx
|
|
90
90
|
const formatReviews = (stars) => String(Number(stars).toLocaleString("en-US", {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
require('../textVariantClasses-
|
|
2
|
-
require('../Text-
|
|
3
|
-
require('../Headline-
|
|
1
|
+
require('../textVariantClasses-CBre7vXv.cjs');
|
|
2
|
+
require('../Text-DllCE9_D.cjs');
|
|
3
|
+
require('../Headline-Cp79THVF.cjs');
|
|
4
4
|
require('../ImageWithFallback-Cx-KNi-D.cjs');
|
|
5
|
-
require('../ProductCard-
|
|
5
|
+
require('../ProductCard-EmdDy2af.cjs');
|
|
6
6
|
require('../Spinner-DFor2Szi.cjs');
|
|
7
|
-
const require_ProductGrid = require('../ProductGrid-
|
|
7
|
+
const require_ProductGrid = require('../ProductGrid-CMoomZLc.cjs');
|
|
8
8
|
|
|
9
9
|
exports.ProductGrid = require_ProductGrid.ProductGrid;
|
|
10
10
|
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-DDp-fLgm.cjs";
|
|
2
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
3
3
|
import { SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ProductGrid/ProductGrid.d.ts
|
|
@@ -9,9 +9,7 @@ interface ProductGridProps {
|
|
|
9
9
|
productGridClasses: string;
|
|
10
10
|
productCardConfig?: ProductCardConfig;
|
|
11
11
|
merchantShortName: string;
|
|
12
|
-
searchResponseId: string;
|
|
13
12
|
cardsGrowWithContainer?: boolean;
|
|
14
|
-
cardDisplayLocation: string;
|
|
15
13
|
}
|
|
16
14
|
declare const ProductGrid: ({
|
|
17
15
|
productList,
|
|
@@ -19,10 +17,8 @@ declare const ProductGrid: ({
|
|
|
19
17
|
productGridClasses,
|
|
20
18
|
productCardConfig,
|
|
21
19
|
merchantShortName,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
cardDisplayLocation
|
|
25
|
-
}: ProductGridProps) => react_jsx_runtime22.JSX.Element;
|
|
20
|
+
cardsGrowWithContainer
|
|
21
|
+
}: ProductGridProps) => react_jsx_runtime5.JSX.Element;
|
|
26
22
|
//#endregion
|
|
27
23
|
//#region src/components/ProductGrid/productGridVariants.d.ts
|
|
28
24
|
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-DADHwW6M.js";
|
|
2
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
3
3
|
import { SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ProductGrid/ProductGrid.d.ts
|
|
@@ -9,9 +9,7 @@ interface ProductGridProps {
|
|
|
9
9
|
productGridClasses: string;
|
|
10
10
|
productCardConfig?: ProductCardConfig;
|
|
11
11
|
merchantShortName: string;
|
|
12
|
-
searchResponseId: string;
|
|
13
12
|
cardsGrowWithContainer?: boolean;
|
|
14
|
-
cardDisplayLocation: string;
|
|
15
13
|
}
|
|
16
14
|
declare const ProductGrid: ({
|
|
17
15
|
productList,
|
|
@@ -19,10 +17,8 @@ declare const ProductGrid: ({
|
|
|
19
17
|
productGridClasses,
|
|
20
18
|
productCardConfig,
|
|
21
19
|
merchantShortName,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
cardDisplayLocation
|
|
25
|
-
}: ProductGridProps) => react_jsx_runtime3.JSX.Element;
|
|
20
|
+
cardsGrowWithContainer
|
|
21
|
+
}: ProductGridProps) => react_jsx_runtime10.JSX.Element;
|
|
26
22
|
//#endregion
|
|
27
23
|
//#region src/components/ProductGrid/productGridVariants.d.ts
|
|
28
24
|
interface ProductGridVariantClasses {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../textVariantClasses-
|
|
2
|
-
import "../Text-
|
|
3
|
-
import "../Headline-
|
|
1
|
+
import "../textVariantClasses-CRrTb43V.js";
|
|
2
|
+
import "../Text-BLzNhX4H.js";
|
|
3
|
+
import "../Headline-COv0Jbn8.js";
|
|
4
4
|
import "../ImageWithFallback-DqxjwO3i.js";
|
|
5
|
-
import "../ProductCard-
|
|
5
|
+
import "../ProductCard-CNwmHggx.js";
|
|
6
6
|
import "../Spinner-CjGLIRgs.js";
|
|
7
|
-
import { ProductGrid, productGridVariantClasses } from "../ProductGrid-
|
|
7
|
+
import { ProductGrid, productGridVariantClasses } from "../ProductGrid-nmWSp0qX.js";
|
|
8
8
|
|
|
9
9
|
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-EmdDy2af.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,
|
|
28
|
+
const ProductGrid = ({ productList, productGridVariant, productGridClasses, productCardConfig, merchantShortName, cardsGrowWithContainer = true }) => {
|
|
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
|
|
36
|
+
children: productList.map((product) => {
|
|
37
37
|
const camelCasedProduct = product;
|
|
38
38
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
39
39
|
className: cardContainerClasses,
|
|
@@ -41,21 +41,17 @@ const ProductGrid = ({ productList, productGridVariant, productGridClasses, prod
|
|
|
41
41
|
productCardConfig,
|
|
42
42
|
merchantShortName,
|
|
43
43
|
imageUrl: camelCasedProduct.imageUrl,
|
|
44
|
-
searchResponseId,
|
|
45
|
-
productResponseId: camelCasedProduct.responseId,
|
|
46
44
|
title: camelCasedProduct.title,
|
|
47
45
|
url: camelCasedProduct.url,
|
|
48
46
|
originalPrice: camelCasedProduct.originalPrice,
|
|
49
47
|
salePrice: camelCasedProduct.salePrice,
|
|
50
48
|
averageRating: camelCasedProduct.averageRating,
|
|
51
49
|
numberReviews: camelCasedProduct.numberReviews,
|
|
52
|
-
cardDisplayLocation,
|
|
53
50
|
layoutVariant: productCardLayoutVariant,
|
|
54
51
|
variant: productCardVariant,
|
|
55
52
|
hoverVariant: productCardHoverVariant,
|
|
56
53
|
zoomOnHover,
|
|
57
54
|
aspectRatio: productCardImageAspectRatio,
|
|
58
|
-
clickPosition: index,
|
|
59
55
|
growWithContainer: cardsGrowWithContainer
|
|
60
56
|
}, camelCasedProduct.id)
|
|
61
57
|
}, camelCasedProduct.id);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProductCard } from "./ProductCard-
|
|
1
|
+
import { ProductCard } from "./ProductCard-CNwmHggx.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,
|
|
25
|
+
const ProductGrid = ({ productList, productGridVariant, productGridClasses, productCardConfig, merchantShortName, cardsGrowWithContainer = true }) => {
|
|
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
|
|
33
|
+
children: productList.map((product) => {
|
|
34
34
|
const camelCasedProduct = product;
|
|
35
35
|
return /* @__PURE__ */ jsx("div", {
|
|
36
36
|
className: cardContainerClasses,
|
|
@@ -38,21 +38,17 @@ const ProductGrid = ({ productList, productGridVariant, productGridClasses, prod
|
|
|
38
38
|
productCardConfig,
|
|
39
39
|
merchantShortName,
|
|
40
40
|
imageUrl: camelCasedProduct.imageUrl,
|
|
41
|
-
searchResponseId,
|
|
42
|
-
productResponseId: camelCasedProduct.responseId,
|
|
43
41
|
title: camelCasedProduct.title,
|
|
44
42
|
url: camelCasedProduct.url,
|
|
45
43
|
originalPrice: camelCasedProduct.originalPrice,
|
|
46
44
|
salePrice: camelCasedProduct.salePrice,
|
|
47
45
|
averageRating: camelCasedProduct.averageRating,
|
|
48
46
|
numberReviews: camelCasedProduct.numberReviews,
|
|
49
|
-
cardDisplayLocation,
|
|
50
47
|
layoutVariant: productCardLayoutVariant,
|
|
51
48
|
variant: productCardVariant,
|
|
52
49
|
hoverVariant: productCardHoverVariant,
|
|
53
50
|
zoomOnHover,
|
|
54
51
|
aspectRatio: productCardImageAspectRatio,
|
|
55
|
-
clickPosition: index,
|
|
56
52
|
growWithContainer: cardsGrowWithContainer
|
|
57
53
|
}, camelCasedProduct.id)
|
|
58
54
|
}, camelCasedProduct.id);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
require('../textVariantClasses-
|
|
2
|
-
require('../Text-
|
|
1
|
+
require('../textVariantClasses-CBre7vXv.cjs');
|
|
2
|
+
require('../Text-DllCE9_D.cjs');
|
|
3
3
|
require('../Text-C8t_iEj6.cjs');
|
|
4
|
-
const require_RadioButton = require('../RadioButton-
|
|
4
|
+
const require_RadioButton = require('../RadioButton-BdKJRzLM.cjs');
|
|
5
5
|
|
|
6
6
|
exports.RadioButton = require_RadioButton.RadioButton;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime18 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
|
|
@@ -13,6 +13,7 @@ interface RadioButtonProps extends TestProps {
|
|
|
13
13
|
uncheckedBorderColor?: string;
|
|
14
14
|
checked?: boolean;
|
|
15
15
|
onChange: (value: string) => void;
|
|
16
|
+
id: any;
|
|
16
17
|
}
|
|
17
18
|
declare const RadioButton: ({
|
|
18
19
|
isDisabled,
|
|
@@ -24,7 +25,8 @@ declare const RadioButton: ({
|
|
|
24
25
|
hoverColor,
|
|
25
26
|
uncheckedBorderColor,
|
|
26
27
|
checked,
|
|
27
|
-
onChange
|
|
28
|
-
|
|
28
|
+
onChange,
|
|
29
|
+
id
|
|
30
|
+
}: RadioButtonProps) => react_jsx_runtime18.JSX.Element;
|
|
29
31
|
//#endregion
|
|
30
32
|
export { RadioButton };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime11 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
|
|
@@ -13,6 +13,7 @@ interface RadioButtonProps extends TestProps {
|
|
|
13
13
|
uncheckedBorderColor?: string;
|
|
14
14
|
checked?: boolean;
|
|
15
15
|
onChange: (value: string) => void;
|
|
16
|
+
id: any;
|
|
16
17
|
}
|
|
17
18
|
declare const RadioButton: ({
|
|
18
19
|
isDisabled,
|
|
@@ -24,7 +25,8 @@ declare const RadioButton: ({
|
|
|
24
25
|
hoverColor,
|
|
25
26
|
uncheckedBorderColor,
|
|
26
27
|
checked,
|
|
27
|
-
onChange
|
|
28
|
-
|
|
28
|
+
onChange,
|
|
29
|
+
id
|
|
30
|
+
}: RadioButtonProps) => react_jsx_runtime11.JSX.Element;
|
|
29
31
|
//#endregion
|
|
30
32
|
export { RadioButton };
|