@envive-ai/react-toolkit 0.2.4 → 0.2.5
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/DynamicFiltersScrollbar/index.d.ts +2 -2
- package/dist/FilterScrollbar/index.d.cts +3 -3
- package/dist/FilterScrollbar/index.d.ts +3 -3
- package/dist/ImageWithFallback/index.d.cts +2 -2
- package/dist/ImageWithFallback/index.d.ts +2 -2
- package/dist/ModalSheet/index.d.cts +2 -2
- package/dist/ModalSheet/index.d.ts +2 -2
- package/dist/ProductCard/index.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.d.cts +2 -2
- package/dist/RadioButton/index.d.ts +2 -2
- package/dist/RadioButtonGroup/index.d.cts +2 -2
- package/dist/RadioButtonGroup/index.d.ts +2 -2
- package/dist/SearchAutocomplete/index.cjs +2 -1
- package/dist/SearchAutocomplete/index.d.cts +10 -2
- package/dist/SearchAutocomplete/index.d.ts +10 -2
- package/dist/SearchAutocomplete/index.js +2 -1
- package/dist/{SearchAutocomplete-TX8UTczp.cjs → SearchAutocomplete-BBBIDGP_.cjs} +26 -8
- package/dist/SearchAutocomplete-DEY_Cmf6.js +69 -0
- package/dist/SearchFilter/index.cjs +2 -2
- package/dist/SearchFilter/index.d.cts +5 -5
- package/dist/SearchFilter/index.d.ts +5 -5
- package/dist/SearchFilter/index.js +2 -2
- package/dist/{SearchFilter-BQW4o3Xf.js → SearchFilter-B0ICGnqG.js} +1 -1
- package/dist/{SearchFilter-t9or-lnj.cjs → SearchFilter-aSgPzPq-.cjs} +1 -1
- package/dist/SearchInput/index.cjs +4 -4
- package/dist/SearchInput/index.js +4 -4
- package/dist/{SearchInput-BaiWd0_O.js → SearchInput-DY2g3Bra.js} +2 -2
- package/dist/{SearchInput-CO1poiit.cjs → SearchInput-DkGDEb66.cjs} +2 -2
- package/dist/SearchInputForm/index.cjs +50 -30
- package/dist/SearchInputForm/index.d.cts +7 -5
- package/dist/SearchInputForm/index.d.ts +9 -7
- package/dist/SearchInputForm/index.js +49 -31
- package/dist/SearchResultsContent/index.cjs +3 -3
- package/dist/SearchResultsContent/index.d.cts +4 -4
- package/dist/SearchResultsContent/index.d.ts +4 -4
- package/dist/SearchResultsContent/index.js +3 -3
- package/dist/SearchResultsFilterSidebar/index.cjs +5 -5
- package/dist/SearchResultsFilterSidebar/index.d.cts +1 -1
- package/dist/SearchResultsFilterSidebar/index.d.ts +1 -1
- package/dist/SearchResultsFilterSidebar/index.js +5 -5
- package/dist/SearchResultsStates/index.cjs +3 -3
- package/dist/SearchResultsStates/index.d.cts +6 -6
- package/dist/SearchResultsStates/index.d.ts +6 -6
- package/dist/SearchResultsStates/index.js +3 -3
- package/dist/{SearchResultsStates-DUG-117h.js → SearchResultsStates-DzNMYUKh.js} +1 -1
- package/dist/{SearchResultsStates-Bv5NyxPn.cjs → SearchResultsStates-e5W9Ok19.cjs} +1 -1
- 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.cjs +8 -0
- package/dist/SuggestionButton/index.d.cts +3 -3
- package/dist/SuggestionButton/index.d.ts +3 -3
- package/dist/SuggestionButton/index.js +8 -0
- package/dist/TextInput/index.cjs +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/ToggleButton/index.cjs +1 -1
- package/dist/ToggleButton/index.d.cts +2 -2
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{index-Dfe_lkL2.d.cts → index-BQVJifDf.d.cts} +2 -2
- package/dist/{index-DDp-fLgm.d.cts → index-BdNJ2gwC.d.ts} +5 -5
- package/dist/{index-B5p2z61Y.d.ts → index-DWTTeC2a.d.cts} +5 -5
- package/dist/{index-BcvJf9Sr.d.ts → index-fXyRC79n.d.ts} +2 -2
- package/dist/{searchFilterSidebarVariants-DXabOauB.cjs → searchFilterSidebarVariants-CjDvgxxT.cjs} +1 -1
- package/dist/{searchFilterSidebarVariants-BD4SYugF.js → searchFilterSidebarVariants-Clm9ddD5.js} +1 -1
- package/package.json +1 -1
- package/src/components/SearchAutocomplete/SearchAutocomplete.tsx +51 -11
- package/src/components/SearchInputForm/SearchInputForm.tsx +52 -18
- package/src/components/SuggestionButton/SuggestionButton.tsx +15 -0
- package/src/components/SuggestionButton/types.ts +2 -1
- package/dist/SearchAutocomplete-obO19yzL.js +0 -51
- /package/dist/{SettingsVariant-BsBbdjV5.cjs → SettingsVariant-BzZSQvrw.cjs} +0 -0
- /package/dist/{SettingsVariant-CUSFlJEu.js → SettingsVariant-DMgNg4dw.js} +0 -0
- /package/dist/{TextInput-iAKCKHwT.cjs → TextInput-BKNorxPl.cjs} +0 -0
- /package/dist/{TextInput-B_4Bu2vf.js → TextInput-NKOORtYu.js} +0 -0
- /package/dist/{ToggleButton-Br6MgjiG.js → ToggleButton-8P9eNKy1.js} +0 -0
- /package/dist/{ToggleButton-CJ74eu-N.cjs → ToggleButton-DCiR4sB5.cjs} +0 -0
- /package/dist/{colorsConfig-D-MZuBvt.cjs → colorsConfig-CRxY3SQ_.cjs} +0 -0
- /package/dist/{colorsConfig-DEfiLHH0.js → colorsConfig-D_IPWAUL.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime12 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_runtime12.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_runtime0 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_runtime0.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { AnimatedChevron };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime9 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_runtime9.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_runtime20 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_runtime20.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_runtime0 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_runtime0.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { ButtonBase, ButtonBaseOverrides, ButtonBaseProps, ButtonHoverStyles };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime19 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_runtime19.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { DynamicFiltersScrollbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime22 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_runtime22.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { DynamicFiltersScrollbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime14 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_runtime14.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_runtime14.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime18 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_runtime18.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_runtime18.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime8 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_runtime8.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_runtime27 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_runtime27.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { ImageWithFallback, ImageWithFallbackProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime11 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_runtime11.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,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-DWTTeC2a.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-BdNJ2gwC.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-DWTTeC2a.cjs";
|
|
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
|
|
@@ -18,7 +18,7 @@ declare const ProductGrid: ({
|
|
|
18
18
|
productCardConfig,
|
|
19
19
|
merchantShortName,
|
|
20
20
|
cardsGrowWithContainer
|
|
21
|
-
}: ProductGridProps) =>
|
|
21
|
+
}: ProductGridProps) => react_jsx_runtime10.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-BdNJ2gwC.js";
|
|
2
|
+
import * as react_jsx_runtime23 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_runtime23.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_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,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/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_runtime21.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { RadioButton };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime4 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_runtime4.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_runtime20 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_runtime20.JSX.Element;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { RadioButtonGroup, SPIFFY_RADIO_BUTTON_GROUP_CLASS };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
require('../Typography-CFNWgbM5.cjs');
|
|
2
|
+
const require_SearchAutocomplete = require('../SearchAutocomplete-BBBIDGP_.cjs');
|
|
2
3
|
|
|
3
4
|
exports.SearchAutocomplete = require_SearchAutocomplete.SearchAutocomplete;
|
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SearchAutocomplete/SearchAutocomplete.d.ts
|
|
4
4
|
interface GlobalSearchAutocompleteProps {
|
|
5
5
|
id: string;
|
|
6
6
|
results: string[];
|
|
7
7
|
focusedIndex: number;
|
|
8
|
+
searchText?: string;
|
|
8
9
|
onSuggestionSelect: (suggestion: string, rankPosition: number) => void;
|
|
9
10
|
iconColor?: string;
|
|
10
11
|
}
|
|
11
|
-
declare const SearchAutocomplete:
|
|
12
|
+
declare const SearchAutocomplete: ({
|
|
13
|
+
id,
|
|
14
|
+
results,
|
|
15
|
+
focusedIndex,
|
|
16
|
+
searchText,
|
|
17
|
+
onSuggestionSelect,
|
|
18
|
+
iconColor
|
|
19
|
+
}: GlobalSearchAutocompleteProps) => react_jsx_runtime0.JSX.Element;
|
|
12
20
|
//#endregion
|
|
13
21
|
export { SearchAutocomplete };
|
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SearchAutocomplete/SearchAutocomplete.d.ts
|
|
4
4
|
interface GlobalSearchAutocompleteProps {
|
|
5
5
|
id: string;
|
|
6
6
|
results: string[];
|
|
7
7
|
focusedIndex: number;
|
|
8
|
+
searchText?: string;
|
|
8
9
|
onSuggestionSelect: (suggestion: string, rankPosition: number) => void;
|
|
9
10
|
iconColor?: string;
|
|
10
11
|
}
|
|
11
|
-
declare const SearchAutocomplete:
|
|
12
|
+
declare const SearchAutocomplete: ({
|
|
13
|
+
id,
|
|
14
|
+
results,
|
|
15
|
+
focusedIndex,
|
|
16
|
+
searchText,
|
|
17
|
+
onSuggestionSelect,
|
|
18
|
+
iconColor
|
|
19
|
+
}: GlobalSearchAutocompleteProps) => react_jsx_runtime13.JSX.Element;
|
|
12
20
|
//#endregion
|
|
13
21
|
export { SearchAutocomplete };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
const require_Typography = require('./Typography-CFNWgbM5.cjs');
|
|
2
3
|
let framer_motion = require("framer-motion");
|
|
3
4
|
framer_motion = require_chunk.__toESM(framer_motion);
|
|
4
5
|
let react = require("react");
|
|
@@ -11,8 +12,28 @@ let __envive_ai_react_icons_OutlinedStar = require("@envive-ai/react-icons/Outli
|
|
|
11
12
|
__envive_ai_react_icons_OutlinedStar = require_chunk.__toESM(__envive_ai_react_icons_OutlinedStar);
|
|
12
13
|
|
|
13
14
|
//#region src/components/SearchAutocomplete/SearchAutocomplete.tsx
|
|
14
|
-
const SearchAutocomplete = ({ id, results, focusedIndex, onSuggestionSelect, iconColor }) => {
|
|
15
|
+
const SearchAutocomplete = ({ id, results, focusedIndex, searchText = "", onSuggestionSelect, iconColor }) => {
|
|
15
16
|
if (results.length === 0) return null;
|
|
17
|
+
const highlightMatchingText = (text, searchQuery) => {
|
|
18
|
+
if (!searchQuery.trim()) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
19
|
+
variant: "body3",
|
|
20
|
+
children: text
|
|
21
|
+
});
|
|
22
|
+
const escapedQuery = searchQuery.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
23
|
+
const regex = new RegExp(`(${escapedQuery})`, "gi");
|
|
24
|
+
const parts = text.split(regex);
|
|
25
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
26
|
+
variant: "body3",
|
|
27
|
+
children: parts.map((part, index) => {
|
|
28
|
+
return part.toLowerCase() === searchQuery.toLowerCase() ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", {
|
|
29
|
+
className: "spiffy-tw-font-bold",
|
|
30
|
+
children: part
|
|
31
|
+
}, index) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: part }, index);
|
|
32
|
+
})
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
const containerClasses = (0, classnames.default)("spiffy-tw-mt-[16px]", "spiffy-tw-mb-[8px]");
|
|
36
|
+
const getListElementClasses = (index) => (0, classnames.default)("spiffy-tw-flex", "spiffy-tw-items-center", "spiffy-tw-cursor-pointer", "spiffy-tw-py-[8px]", "spiffy-tw-pl-[16px]", "spiffy-tw-text-[--spiffy-colors-text-primary]", "hover:spiffy-tw-bg-neutral-100", { "spiffy-tw-bg-neutral-200": focusedIndex === index });
|
|
16
37
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
17
38
|
className: "spiffy-tw-h-full",
|
|
18
39
|
initial: {
|
|
@@ -31,23 +52,20 @@ const SearchAutocomplete = ({ id, results, focusedIndex, onSuggestionSelect, ico
|
|
|
31
52
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
|
|
32
53
|
id,
|
|
33
54
|
role: "listbox",
|
|
34
|
-
className:
|
|
55
|
+
className: containerClasses,
|
|
35
56
|
children: results.map((result, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
|
|
36
57
|
id: `option-${index}`,
|
|
37
58
|
role: "option",
|
|
38
59
|
"aria-selected": index === focusedIndex,
|
|
39
|
-
className: (
|
|
60
|
+
className: getListElementClasses(index),
|
|
40
61
|
onClick: () => onSuggestionSelect(result, index),
|
|
41
62
|
onKeyDown: (event) => {
|
|
42
63
|
if (event.key === "Enter" || event.keyCode === 13) onSuggestionSelect(result, index);
|
|
43
64
|
},
|
|
44
65
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_OutlinedStar.default, {
|
|
45
|
-
className: "spiffy-tw-w-[16px] spiffy-tw-h-[16px] spiffy-tw-mr-
|
|
66
|
+
className: "spiffy-tw-w-[16px] spiffy-tw-h-[16px] spiffy-tw-mr-[16px]",
|
|
46
67
|
fill: iconColor
|
|
47
|
-
}),
|
|
48
|
-
className: "spiffy-tw-font-bold",
|
|
49
|
-
children: result
|
|
50
|
-
})]
|
|
68
|
+
}), highlightMatchingText(result, searchText)]
|
|
51
69
|
}, index))
|
|
52
70
|
})
|
|
53
71
|
});
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Typography } from "./Typography-D3vDkBMS.js";
|
|
2
|
+
import { motion } from "framer-motion";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import classNames from "classnames";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import OutlinedStar from "@envive-ai/react-icons/OutlinedStar";
|
|
7
|
+
|
|
8
|
+
//#region src/components/SearchAutocomplete/SearchAutocomplete.tsx
|
|
9
|
+
const SearchAutocomplete = ({ id, results, focusedIndex, searchText = "", onSuggestionSelect, iconColor }) => {
|
|
10
|
+
if (results.length === 0) return null;
|
|
11
|
+
const highlightMatchingText = (text, searchQuery) => {
|
|
12
|
+
if (!searchQuery.trim()) return /* @__PURE__ */ jsx(Typography, {
|
|
13
|
+
variant: "body3",
|
|
14
|
+
children: text
|
|
15
|
+
});
|
|
16
|
+
const escapedQuery = searchQuery.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
17
|
+
const regex = new RegExp(`(${escapedQuery})`, "gi");
|
|
18
|
+
const parts = text.split(regex);
|
|
19
|
+
return /* @__PURE__ */ jsx(Typography, {
|
|
20
|
+
variant: "body3",
|
|
21
|
+
children: parts.map((part, index) => {
|
|
22
|
+
return part.toLowerCase() === searchQuery.toLowerCase() ? /* @__PURE__ */ jsx("strong", {
|
|
23
|
+
className: "spiffy-tw-font-bold",
|
|
24
|
+
children: part
|
|
25
|
+
}, index) : /* @__PURE__ */ jsx("span", { children: part }, index);
|
|
26
|
+
})
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
const containerClasses = classNames("spiffy-tw-mt-[16px]", "spiffy-tw-mb-[8px]");
|
|
30
|
+
const getListElementClasses = (index) => classNames("spiffy-tw-flex", "spiffy-tw-items-center", "spiffy-tw-cursor-pointer", "spiffy-tw-py-[8px]", "spiffy-tw-pl-[16px]", "spiffy-tw-text-[--spiffy-colors-text-primary]", "hover:spiffy-tw-bg-neutral-100", { "spiffy-tw-bg-neutral-200": focusedIndex === index });
|
|
31
|
+
return /* @__PURE__ */ jsx(motion.div, {
|
|
32
|
+
className: "spiffy-tw-h-full",
|
|
33
|
+
initial: {
|
|
34
|
+
opacity: 0,
|
|
35
|
+
y: -10
|
|
36
|
+
},
|
|
37
|
+
animate: {
|
|
38
|
+
opacity: 1,
|
|
39
|
+
y: 0
|
|
40
|
+
},
|
|
41
|
+
exit: {
|
|
42
|
+
opacity: 0,
|
|
43
|
+
y: -10
|
|
44
|
+
},
|
|
45
|
+
transition: { duration: .2 },
|
|
46
|
+
children: /* @__PURE__ */ jsx("ul", {
|
|
47
|
+
id,
|
|
48
|
+
role: "listbox",
|
|
49
|
+
className: containerClasses,
|
|
50
|
+
children: results.map((result, index) => /* @__PURE__ */ jsxs("li", {
|
|
51
|
+
id: `option-${index}`,
|
|
52
|
+
role: "option",
|
|
53
|
+
"aria-selected": index === focusedIndex,
|
|
54
|
+
className: getListElementClasses(index),
|
|
55
|
+
onClick: () => onSuggestionSelect(result, index),
|
|
56
|
+
onKeyDown: (event) => {
|
|
57
|
+
if (event.key === "Enter" || event.keyCode === 13) onSuggestionSelect(result, index);
|
|
58
|
+
},
|
|
59
|
+
children: [/* @__PURE__ */ jsx(OutlinedStar, {
|
|
60
|
+
className: "spiffy-tw-w-[16px] spiffy-tw-h-[16px] spiffy-tw-mr-[16px]",
|
|
61
|
+
fill: iconColor
|
|
62
|
+
}), highlightMatchingText(result, searchText)]
|
|
63
|
+
}, index))
|
|
64
|
+
})
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
//#endregion
|
|
69
|
+
export { SearchAutocomplete };
|
|
@@ -6,8 +6,8 @@ require('../ButtonBase-DbWQ25n-.cjs');
|
|
|
6
6
|
require('../ModalSheet-CcthFeMD.cjs');
|
|
7
7
|
require('../RadioButton-DG0PgZbz.cjs');
|
|
8
8
|
require('../RadioButtonGroup-3t2kqSFA.cjs');
|
|
9
|
-
const require_SearchFilter = require('../SearchFilter-
|
|
10
|
-
require('../ToggleButton-
|
|
9
|
+
const require_SearchFilter = require('../SearchFilter-aSgPzPq-.cjs');
|
|
10
|
+
require('../ToggleButton-DCiR4sB5.cjs');
|
|
11
11
|
|
|
12
12
|
exports.SearchFilter = require_SearchFilter.SearchFilter;
|
|
13
13
|
exports.SearchFilterFooter = require_SearchFilter.SearchFilterFooter;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime23 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_runtime23.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_runtime23.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_runtime23.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_runtime23.JSX.Element;
|
|
86
86
|
//#endregion
|
|
87
87
|
//#region src/components/SearchFilter/utils.d.ts
|
|
88
88
|
declare const getSelectedFilterItemsCount: (filter: SearchFilterDatum) => number;
|