@envive-ai/react-toolkit 0.2.5 → 0.2.7
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/AppliedFiltersScrollbar/index.d.cts +2 -2
- package/dist/AppliedFiltersScrollbar/index.d.ts +2 -2
- package/dist/ButtonBase/index.d.cts +2 -2
- package/dist/DynamicFiltersScrollbar/index.d.cts +2 -2
- package/dist/DynamicFiltersScrollbar/index.d.ts +2 -2
- 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.d.cts +1 -1
- package/dist/ProductCard/index.d.ts +1 -1
- package/dist/ProductGrid/index.d.cts +3 -3
- package/dist/ProductGrid/index.d.ts +3 -3
- package/dist/RadioButton/index.cjs +1 -2
- package/dist/RadioButton/index.d.cts +2 -2
- package/dist/RadioButton/index.d.ts +2 -2
- package/dist/RadioButton/index.js +1 -2
- package/dist/{RadioButton-DG0PgZbz.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-DMbVgPQH.js → RadioButtonGroup-BHfAwrH7.js} +1 -1
- package/dist/{RadioButtonGroup-3t2kqSFA.cjs → RadioButtonGroup-DU4_ZMJ2.cjs} +1 -1
- package/dist/SearchAutocomplete/index.cjs +1 -1
- package/dist/SearchAutocomplete/index.d.cts +2 -2
- package/dist/SearchAutocomplete/index.d.ts +2 -2
- package/dist/SearchAutocomplete/index.js +1 -1
- 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-aSgPzPq-.cjs → SearchFilter-Cph7S1yF.cjs} +1 -1
- package/dist/{SearchFilter-B0ICGnqG.js → SearchFilter-DWUm2sZH.js} +1 -1
- package/dist/SearchInput/index.cjs +3 -4
- package/dist/SearchInput/index.d.ts +2 -2
- package/dist/SearchInput/index.js +3 -4
- package/dist/{SearchInput-DkGDEb66.cjs → SearchInput-CAqNnjuE.cjs} +5 -23
- package/dist/{SearchInput-DY2g3Bra.js → SearchInput-Jj8nxPA0.js} +4 -23
- package/dist/SearchInputForm/index.cjs +4 -5
- package/dist/SearchInputForm/index.d.cts +2 -2
- package/dist/SearchInputForm/index.d.ts +3 -3
- package/dist/SearchInputForm/index.js +4 -5
- package/dist/SearchResultsContent/index.cjs +4 -4
- package/dist/SearchResultsContent/index.d.cts +4 -4
- package/dist/SearchResultsContent/index.d.ts +4 -4
- package/dist/SearchResultsContent/index.js +4 -4
- package/dist/SearchResultsFilterSidebar/index.cjs +73 -7
- package/dist/SearchResultsFilterSidebar/index.d.cts +1 -1
- package/dist/SearchResultsFilterSidebar/index.d.ts +1 -1
- package/dist/SearchResultsFilterSidebar/index.js +72 -6
- package/dist/SearchResultsStates/index.cjs +4 -4
- package/dist/SearchResultsStates/index.d.cts +6 -6
- package/dist/SearchResultsStates/index.d.ts +6 -6
- package/dist/SearchResultsStates/index.js +4 -4
- package/dist/{SearchResultsStates-e5W9Ok19.cjs → SearchResultsStates-CG8-Ga-G.cjs} +2 -2
- package/dist/{SearchResultsStates-DzNMYUKh.js → SearchResultsStates-CTgVvFe9.js} +2 -2
- 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/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.d.ts +2 -2
- package/dist/TextInput/index.js +1 -1
- package/dist/ToggleButton/index.d.cts +2 -2
- package/dist/ToggleButton/index.d.ts +2 -2
- package/dist/Typography/index.d.ts +2 -2
- package/dist/{index-fXyRC79n.d.ts → index-Br1B7Jta.d.cts} +2 -2
- package/dist/{index-DWTTeC2a.d.cts → index-CoKLba8Y.d.ts} +5 -5
- package/dist/{index-BdNJ2gwC.d.ts → index-DZG-p0HX.d.cts} +5 -5
- package/dist/{index-BH-QK27q.d.ts → index-Qtr26aUO.d.ts} +1 -1
- package/dist/{index-BQVJifDf.d.cts → index-qY2eo4Dx.d.ts} +2 -2
- package/dist/{searchFilterSidebarVariants-CjDvgxxT.cjs → searchFilterSidebarVariants-Bv_5N0Qd.cjs} +1 -1
- package/dist/{searchFilterSidebarVariants-Clm9ddD5.js → searchFilterSidebarVariants-Dc0irQTl.js} +1 -1
- package/package.json +1 -1
- package/src/components/RadioButton/RadioButton.tsx +9 -12
- package/src/components/SearchInput/SearchInput.tsx +1 -1
- package/src/components/TextInput/TextInput.tsx +0 -4
- package/dist/RadioButton-C_soBi7w.js +0 -75
- package/dist/SettingsVariant-BzZSQvrw.cjs +0 -63
- package/dist/SettingsVariant-DMgNg4dw.js +0 -55
- /package/dist/{SearchAutocomplete-DEY_Cmf6.js → SearchAutocomplete-BzMueTjs.js} +0 -0
- /package/dist/{SearchAutocomplete-BBBIDGP_.cjs → SearchAutocomplete-Dv2FQmZD.cjs} +0 -0
- /package/dist/{SparkleAnimation-Bm3fk2FJ.cjs → SparkleAnimation-CvGlWUqv.cjs} +0 -0
- /package/dist/{SparkleAnimation-D1QjYho_.js → SparkleAnimation-paLhSu5E.js} +0 -0
- /package/dist/{TextInput-NKOORtYu.js → TextInput-C9wyXFlx.js} +0 -0
- /package/dist/{TextInput-BKNorxPl.cjs → TextInput-Cih-pWCJ.cjs} +0 -0
- /package/dist/{colorsConfig-CRxY3SQ_.cjs → colorsConfig-CJTKbJsm.cjs} +0 -0
- /package/dist/{colorsConfig-D_IPWAUL.js → colorsConfig-CYZ8f_gj.js} +0 -0
- /package/dist/{types-CGRog8XL.d.ts → types-DlqhqT_S.d.ts} +0 -0
- /package/dist/{typographyVariantClasses-COmQXqcN.d.ts → typographyVariantClasses-B6wiawat.d.ts} +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_runtime3 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_runtime3.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Accordion };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime24 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_runtime24.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_runtime23 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_runtime23.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { AppliedFiltersScrollbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime23 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_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_runtime16 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_runtime16.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { DynamicFiltersScrollbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime2 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_runtime2.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { DynamicFiltersScrollbar };
|
|
@@ -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/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_runtime24.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_runtime24.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime12 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_runtime12.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_runtime1 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_runtime1.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { ImageWithFallback, ImageWithFallbackProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime22 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_runtime22.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { ModalSheet };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime19 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_runtime19.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { ModalSheet };
|
|
@@ -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-DZG-p0HX.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-CoKLba8Y.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,5 +1,5 @@
|
|
|
1
|
-
import { ProductCardConfig, ProductCardHoverVariant, ProductCardLayoutVariant, ProductCardVariant, ProductGridVariant } from "../index-
|
|
2
|
-
import * as
|
|
1
|
+
import { ProductCardConfig, ProductCardHoverVariant, ProductCardLayoutVariant, ProductCardVariant, ProductGridVariant } from "../index-DZG-p0HX.cjs";
|
|
2
|
+
import * as react_jsx_runtime18 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
|
|
@@ -18,7 +18,7 @@ declare const ProductGrid: ({
|
|
|
18
18
|
productCardConfig,
|
|
19
19
|
merchantShortName,
|
|
20
20
|
cardsGrowWithContainer
|
|
21
|
-
}: ProductGridProps) =>
|
|
21
|
+
}: ProductGridProps) => react_jsx_runtime18.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region src/components/ProductGrid/productGridVariants.d.ts
|
|
24
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-CoKLba8Y.js";
|
|
2
|
+
import * as react_jsx_runtime22 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
|
|
@@ -18,7 +18,7 @@ declare const ProductGrid: ({
|
|
|
18
18
|
productCardConfig,
|
|
19
19
|
merchantShortName,
|
|
20
20
|
cardsGrowWithContainer
|
|
21
|
-
}: ProductGridProps) =>
|
|
21
|
+
}: ProductGridProps) => react_jsx_runtime22.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region src/components/ProductGrid/productGridVariants.d.ts
|
|
24
24
|
interface ProductGridVariantClasses {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime17 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_runtime17.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { 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
|
|
@@ -27,6 +27,6 @@ declare const RadioButton: ({
|
|
|
27
27
|
checked,
|
|
28
28
|
onChange,
|
|
29
29
|
id
|
|
30
|
-
}: RadioButtonProps) =>
|
|
30
|
+
}: RadioButtonProps) => react_jsx_runtime18.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { RadioButton };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_Typography = require('./Typography-CFNWgbM5.cjs');
|
|
3
2
|
let react = require("react");
|
|
4
3
|
react = require_chunk.__toESM(react);
|
|
5
4
|
let classnames = require("classnames");
|
|
@@ -28,51 +27,44 @@ const RadioButton = ({ isDisabled = false, label, name, value, textButtonGap = "
|
|
|
28
27
|
const handleChange = () => {
|
|
29
28
|
if (!isDisabled) onChange(value);
|
|
30
29
|
};
|
|
31
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
className: "spiffy-tw-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
cy: "12",
|
|
60
|
-
r: "11.5",
|
|
61
|
-
fill: "white",
|
|
62
|
-
stroke: getFillColor()
|
|
63
|
-
}), checked && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
|
|
64
|
-
cx: "12",
|
|
65
|
-
cy: "12",
|
|
66
|
-
r: "9",
|
|
67
|
-
fill: getFillColor()
|
|
68
|
-
})]
|
|
30
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
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()
|
|
69
58
|
})]
|
|
70
|
-
})
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
59
|
+
})]
|
|
60
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
61
|
+
className: containerClassName,
|
|
62
|
+
onMouseEnter: () => !isDisabled && setIsHovered(true),
|
|
63
|
+
onMouseLeave: () => setIsHovered(false),
|
|
64
|
+
"aria-label": label,
|
|
65
|
+
htmlFor: id,
|
|
66
|
+
children: label
|
|
67
|
+
})] });
|
|
76
68
|
};
|
|
77
69
|
|
|
78
70
|
//#endregion
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/RadioButton/RadioButton.tsx
|
|
6
|
+
const RadioButton = ({ isDisabled = false, label, name, value, textButtonGap = "medium", fillColor, hoverColor, uncheckedBorderColor, checked = false, onChange, id }) => {
|
|
7
|
+
const [isHovered, setIsHovered] = useState(false);
|
|
8
|
+
const containerClassName = classNames({
|
|
9
|
+
"spiffy-tw-flex": true,
|
|
10
|
+
"spiffy-tw-items-center": true,
|
|
11
|
+
"spiffy-tw-group": true,
|
|
12
|
+
"spiffy-tw-gap-1": textButtonGap === "small",
|
|
13
|
+
"spiffy-tw-gap-2": textButtonGap === "medium",
|
|
14
|
+
"spiffy-tw-gap-4": textButtonGap === "large",
|
|
15
|
+
"spiffy-tw-cursor-pointer": !isDisabled,
|
|
16
|
+
"spiffy-tw-opacity-40": isDisabled
|
|
17
|
+
});
|
|
18
|
+
const getFillColor = () => {
|
|
19
|
+
if (isHovered && hoverColor) return hoverColor;
|
|
20
|
+
if (checked) return fillColor;
|
|
21
|
+
return uncheckedBorderColor;
|
|
22
|
+
};
|
|
23
|
+
const handleChange = () => {
|
|
24
|
+
if (!isDisabled) onChange(value);
|
|
25
|
+
};
|
|
26
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("div", {
|
|
27
|
+
className: "spiffy-tw-relative",
|
|
28
|
+
children: [/* @__PURE__ */ jsx("input", {
|
|
29
|
+
type: "radio",
|
|
30
|
+
id,
|
|
31
|
+
name,
|
|
32
|
+
value,
|
|
33
|
+
checked,
|
|
34
|
+
disabled: isDisabled,
|
|
35
|
+
onChange: handleChange,
|
|
36
|
+
className: "spiffy-tw-sr-only"
|
|
37
|
+
}), /* @__PURE__ */ jsxs("svg", {
|
|
38
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
39
|
+
width: "24",
|
|
40
|
+
height: "24",
|
|
41
|
+
viewBox: "0 0 24 24",
|
|
42
|
+
fill: "none",
|
|
43
|
+
children: [/* @__PURE__ */ jsx("circle", {
|
|
44
|
+
cx: "12",
|
|
45
|
+
cy: "12",
|
|
46
|
+
r: "11.5",
|
|
47
|
+
fill: "white",
|
|
48
|
+
stroke: getFillColor()
|
|
49
|
+
}), checked && /* @__PURE__ */ jsx("circle", {
|
|
50
|
+
cx: "12",
|
|
51
|
+
cy: "12",
|
|
52
|
+
r: "9",
|
|
53
|
+
fill: getFillColor()
|
|
54
|
+
})]
|
|
55
|
+
})]
|
|
56
|
+
}), /* @__PURE__ */ jsx("label", {
|
|
57
|
+
className: containerClassName,
|
|
58
|
+
onMouseEnter: () => !isDisabled && setIsHovered(true),
|
|
59
|
+
onMouseLeave: () => setIsHovered(false),
|
|
60
|
+
"aria-label": label,
|
|
61
|
+
htmlFor: id,
|
|
62
|
+
children: label
|
|
63
|
+
})] });
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
//#endregion
|
|
67
|
+
export { RadioButton };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
require('../
|
|
2
|
-
require('../
|
|
3
|
-
const require_RadioButtonGroup = require('../RadioButtonGroup-3t2kqSFA.cjs');
|
|
1
|
+
require('../RadioButton-BzZTrq-i.cjs');
|
|
2
|
+
const require_RadioButtonGroup = require('../RadioButtonGroup-DU4_ZMJ2.cjs');
|
|
4
3
|
|
|
5
4
|
exports.RadioButtonGroup = require_RadioButtonGroup.RadioButtonGroup;
|
|
6
5
|
exports.SPIFFY_RADIO_BUTTON_GROUP_CLASS = require_RadioButtonGroup.SPIFFY_RADIO_BUTTON_GROUP_CLASS;
|
|
@@ -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/RadioButtonGroup/RadioButtonGroup.d.ts
|
|
@@ -31,6 +31,6 @@ declare const RadioButtonGroup: ({
|
|
|
31
31
|
gap,
|
|
32
32
|
textButtonGap,
|
|
33
33
|
onChange
|
|
34
|
-
}: RadioButtonGroupProps) =>
|
|
34
|
+
}: RadioButtonGroupProps) => react_jsx_runtime11.JSX.Element;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { RadioButtonGroup, SPIFFY_RADIO_BUTTON_GROUP_CLASS };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
2
2
|
import { TestProps } from "@envive-ai/react-hooks/types";
|
|
3
3
|
|
|
4
4
|
//#region src/components/RadioButtonGroup/RadioButtonGroup.d.ts
|
|
@@ -31,6 +31,6 @@ declare const RadioButtonGroup: ({
|
|
|
31
31
|
gap,
|
|
32
32
|
textButtonGap,
|
|
33
33
|
onChange
|
|
34
|
-
}: RadioButtonGroupProps) =>
|
|
34
|
+
}: RadioButtonGroupProps) => react_jsx_runtime21.JSX.Element;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { RadioButtonGroup, SPIFFY_RADIO_BUTTON_GROUP_CLASS };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "../
|
|
3
|
-
import { RadioButtonGroup, SPIFFY_RADIO_BUTTON_GROUP_CLASS } from "../RadioButtonGroup-DMbVgPQH.js";
|
|
1
|
+
import "../RadioButton-DRdlp-HC.js";
|
|
2
|
+
import { RadioButtonGroup, SPIFFY_RADIO_BUTTON_GROUP_CLASS } from "../RadioButtonGroup-BHfAwrH7.js";
|
|
4
3
|
|
|
5
4
|
export { RadioButtonGroup, SPIFFY_RADIO_BUTTON_GROUP_CLASS };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_RadioButton = require('./RadioButton-
|
|
2
|
+
const require_RadioButton = require('./RadioButton-BzZTrq-i.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
1
|
require('../Typography-CFNWgbM5.cjs');
|
|
2
|
-
const require_SearchAutocomplete = require('../SearchAutocomplete-
|
|
2
|
+
const require_SearchAutocomplete = require('../SearchAutocomplete-Dv2FQmZD.cjs');
|
|
3
3
|
|
|
4
4
|
exports.SearchAutocomplete = require_SearchAutocomplete.SearchAutocomplete;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SearchAutocomplete/SearchAutocomplete.d.ts
|
|
4
4
|
interface GlobalSearchAutocompleteProps {
|
|
@@ -16,6 +16,6 @@ declare const SearchAutocomplete: ({
|
|
|
16
16
|
searchText,
|
|
17
17
|
onSuggestionSelect,
|
|
18
18
|
iconColor
|
|
19
|
-
}: GlobalSearchAutocompleteProps) =>
|
|
19
|
+
}: GlobalSearchAutocompleteProps) => react_jsx_runtime10.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { SearchAutocomplete };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SearchAutocomplete/SearchAutocomplete.d.ts
|
|
4
4
|
interface GlobalSearchAutocompleteProps {
|
|
@@ -16,6 +16,6 @@ declare const SearchAutocomplete: ({
|
|
|
16
16
|
searchText,
|
|
17
17
|
onSuggestionSelect,
|
|
18
18
|
iconColor
|
|
19
|
-
}: GlobalSearchAutocompleteProps) =>
|
|
19
|
+
}: GlobalSearchAutocompleteProps) => react_jsx_runtime20.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { SearchAutocomplete };
|
|
@@ -4,9 +4,9 @@ require('../AnimatedChevron-Q96FneFy.cjs');
|
|
|
4
4
|
require('../ButtonBase-AU23oGQr.cjs');
|
|
5
5
|
require('../ButtonBase-DbWQ25n-.cjs');
|
|
6
6
|
require('../ModalSheet-CcthFeMD.cjs');
|
|
7
|
-
require('../RadioButton-
|
|
8
|
-
require('../RadioButtonGroup-
|
|
9
|
-
const require_SearchFilter = require('../SearchFilter-
|
|
7
|
+
require('../RadioButton-BzZTrq-i.cjs');
|
|
8
|
+
require('../RadioButtonGroup-DU4_ZMJ2.cjs');
|
|
9
|
+
const require_SearchFilter = require('../SearchFilter-Cph7S1yF.cjs');
|
|
10
10
|
require('../ToggleButton-DCiR4sB5.cjs');
|
|
11
11
|
|
|
12
12
|
exports.SearchFilter = require_SearchFilter.SearchFilter;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
2
2
|
import { CloseIconVariant, FilterFooterProps, SearchFilterDatum, SearchFilterItemDatum, SelectFilterItem } from "@envive-ai/react-hooks/types";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SearchFilter/types.d.ts
|
|
@@ -55,7 +55,7 @@ declare const SearchFilter: ({
|
|
|
55
55
|
radioButtonHoverColor,
|
|
56
56
|
radioButtonUncheckedBorderColor,
|
|
57
57
|
filterCloseIconVariant
|
|
58
|
-
}: SearchFilterProps) =>
|
|
58
|
+
}: SearchFilterProps) => react_jsx_runtime5.JSX.Element;
|
|
59
59
|
//#endregion
|
|
60
60
|
//#region src/components/SearchFilter/SearchFilterHeader.d.ts
|
|
61
61
|
declare const SearchFilterHeader: ({
|
|
@@ -63,7 +63,7 @@ declare const SearchFilterHeader: ({
|
|
|
63
63
|
productCount,
|
|
64
64
|
headerClassName,
|
|
65
65
|
filterCloseIconVariant
|
|
66
|
-
}: SearchFilterHeaderProps) =>
|
|
66
|
+
}: SearchFilterHeaderProps) => react_jsx_runtime5.JSX.Element;
|
|
67
67
|
//#endregion
|
|
68
68
|
//#region src/components/SearchFilter/SearchFilterFooter.d.ts
|
|
69
69
|
declare const SearchFilterFooter: ({
|
|
@@ -73,7 +73,7 @@ declare const SearchFilterFooter: ({
|
|
|
73
73
|
applyFiltersUnchangedClasses,
|
|
74
74
|
applyFiltersChangedClasses,
|
|
75
75
|
hasFiltersChanged
|
|
76
|
-
}: FilterFooterProps) =>
|
|
76
|
+
}: FilterFooterProps) => react_jsx_runtime5.JSX.Element;
|
|
77
77
|
//#endregion
|
|
78
78
|
//#region src/components/SearchFilter/SearchFilterItem.d.ts
|
|
79
79
|
declare const SearchFilterItem: ({
|
|
@@ -82,7 +82,7 @@ declare const SearchFilterItem: ({
|
|
|
82
82
|
radioButtonFillColor,
|
|
83
83
|
radioButtonHoverColor,
|
|
84
84
|
radioButtonUncheckedBorderColor
|
|
85
|
-
}: SearchFilterItemProps) =>
|
|
85
|
+
}: SearchFilterItemProps) => react_jsx_runtime5.JSX.Element;
|
|
86
86
|
//#endregion
|
|
87
87
|
//#region src/components/SearchFilter/utils.d.ts
|
|
88
88
|
declare const getSelectedFilterItemsCount: (filter: SearchFilterDatum) => number;
|