@envive-ai/react-toolkit 0.1.5 → 0.1.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.cjs +84 -0
- package/dist/Accordion/index.d.cts +13 -0
- package/dist/Accordion/index.d.ts +13 -0
- package/dist/Accordion/index.js +77 -0
- package/dist/AppliedFiltersScrollbar/index.cjs +49 -0
- package/dist/AppliedFiltersScrollbar/index.d.cts +22 -0
- package/dist/AppliedFiltersScrollbar/index.d.ts +22 -0
- package/dist/AppliedFiltersScrollbar/index.js +44 -0
- package/dist/ButtonBase/index.cjs +2 -1
- package/dist/ButtonBase/index.d.cts +3 -3
- package/dist/ButtonBase/index.d.ts +1 -1
- package/dist/ButtonBase/index.js +2 -1
- package/dist/{ButtonBase-CpmFsiUf.js → ButtonBase-BIAu5fIG.js} +1 -1
- package/dist/ButtonBase-BRfuPPzN.js +1 -0
- package/dist/ButtonBase-BleAVeo-.cjs +0 -0
- package/dist/{ButtonBase-Dlh3bpR3.cjs → ButtonBase-DcyxOe2v.cjs} +2 -2
- package/dist/DynamicFiltersScrollbar/index.cjs +37 -0
- package/dist/DynamicFiltersScrollbar/index.d.cts +28 -0
- package/dist/DynamicFiltersScrollbar/index.d.ts +28 -0
- package/dist/DynamicFiltersScrollbar/index.js +32 -0
- package/dist/FilterScrollbar/index.cjs +1 -1
- package/dist/FilterScrollbar/index.d.cts +4 -4
- package/dist/FilterScrollbar/index.d.ts +4 -4
- package/dist/FilterScrollbar/index.js +1 -1
- package/dist/Headline/index.cjs +1 -1
- package/dist/Headline/index.d.cts +2 -2
- package/dist/Headline/index.js +1 -1
- package/dist/ImageWithFallback/index.cjs +1 -1
- package/dist/ImageWithFallback/index.d.ts +2 -2
- package/dist/ImageWithFallback/index.js +1 -1
- package/dist/{ImageWithFallback-By6QdlCR.cjs → ImageWithFallback-1LqhQK1q.cjs} +2 -2
- package/dist/{ImageWithFallback-DtUrq_bk.js → ImageWithFallback-Ckwsmd8P.js} +1 -1
- package/dist/ProductCard/index.cjs +7 -8
- package/dist/ProductCard/index.d.cts +2 -108
- package/dist/ProductCard/index.d.ts +2 -108
- package/dist/ProductCard/index.js +4 -5
- package/dist/{ProductCard-CvTRvhm7.cjs → ProductCard-DZZKutY-.cjs} +64 -5
- package/dist/{ProductCard-aJbQz6Q7.js → ProductCard-SF8-lXlT.js} +46 -6
- package/dist/ProductGrid/index.cjs +5 -5
- package/dist/ProductGrid/index.d.cts +6 -6
- package/dist/ProductGrid/index.d.ts +6 -6
- package/dist/ProductGrid/index.js +5 -5
- package/dist/{ProductGrid-CSIH2_G9.cjs → ProductGrid-BSSmPr7K.cjs} +48 -46
- package/dist/{ProductGrid-NOCayW9O.js → ProductGrid-DTUhH219.js} +48 -46
- package/dist/{SearchInputAutocomplete → SearchAutocomplete}/index.cjs +1 -1
- package/dist/{SearchInputAutocomplete → SearchAutocomplete}/index.d.cts +1 -1
- package/dist/{SearchInputAutocomplete → SearchAutocomplete}/index.d.ts +1 -1
- package/dist/SearchAutocomplete/index.js +3 -0
- package/dist/{SearchAutocomplete-DCu9-Yfk.js → SearchAutocomplete-BPjlo6qq.js} +4 -4
- package/dist/{SearchAutocomplete-CQxxe5Op.cjs → SearchAutocomplete-BzaEXmRQ.cjs} +8 -8
- package/dist/SearchFilter/index.cjs +5 -5
- package/dist/SearchFilter/index.d.cts +1 -34
- package/dist/SearchFilter/index.d.ts +1 -34
- package/dist/SearchFilter/index.js +2 -2
- package/dist/{SearchFilterHeader-qkRVfAB5.cjs → SearchFilter-B15tybnV.cjs} +1 -1
- package/dist/{SearchFilterHeader-BDEcDc_4.js → SearchFilter-D427M2UE.js} +1 -1
- package/dist/SearchInput/index.cjs +3 -3
- package/dist/SearchInput/index.d.cts +4 -4
- package/dist/SearchInput/index.d.ts +5 -5
- package/dist/SearchInput/index.js +3 -3
- package/dist/{SearchInput-DxGvYGZO.js → SearchInput-C0wB4hSV.js} +6 -6
- package/dist/{SearchInput-Cdpwswyv.cjs → SearchInput-D6UW79wT.cjs} +10 -10
- package/dist/SearchInputForm/index.cjs +6 -5
- package/dist/SearchInputForm/index.d.cts +1 -31
- package/dist/SearchInputForm/index.d.ts +1 -31
- package/dist/SearchInputForm/index.js +6 -5
- package/dist/SearchResultsContent/index.cjs +64 -0
- package/dist/SearchResultsContent/index.d.cts +67 -0
- package/dist/SearchResultsContent/index.d.ts +67 -0
- package/dist/SearchResultsContent/index.js +60 -0
- package/dist/SearchResultsFilterSidebar/index.cjs +10 -6
- package/dist/SearchResultsFilterSidebar/index.d.cts +3 -44
- package/dist/SearchResultsFilterSidebar/index.d.ts +3 -44
- package/dist/SearchResultsFilterSidebar/index.js +7 -4
- package/dist/SearchResultsStates/index.cjs +15 -125
- package/dist/SearchResultsStates/index.d.cts +14 -7
- package/dist/SearchResultsStates/index.d.ts +14 -7
- package/dist/SearchResultsStates/index.js +12 -117
- package/dist/SearchResultsStates-CNp6YCqF.js +112 -0
- package/dist/SearchResultsStates-Du7HXBi8.cjs +135 -0
- 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-DfMCtvAQ.js → SparkleAnimation-B0u6JtO3.js} +2 -2
- package/dist/{SparkleAnimation-j-mAMEZZ.cjs → SparkleAnimation-D1QpGZIg.cjs} +4 -4
- package/dist/Spinner/index.cjs +1 -1
- package/dist/Spinner/index.d.cts +2 -2
- package/dist/Spinner/index.js +1 -1
- package/dist/SuggestionButton/index.cjs +3 -3
- package/dist/SuggestionButton/index.d.cts +3 -3
- package/dist/SuggestionButton/index.d.ts +3 -3
- package/dist/SuggestionButton/index.js +2 -2
- package/dist/Text/index.cjs +2 -10
- package/dist/Text/index.d.cts +2 -2
- package/dist/Text/index.d.ts +3 -3
- package/dist/Text/index.js +1 -9
- package/dist/Text-DkwDPbHy.js +10 -0
- package/dist/Text-Ji61nRRE.cjs +16 -0
- package/dist/TextInput/index.cjs +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-CObd_Wcw.cjs → TextInput-C6fF9cSB.cjs} +2 -2
- package/dist/{TextInput-ChPhL54o.js → TextInput-CRMqBW3X.js} +1 -1
- package/dist/index-14eDYe9f.d.ts +58 -0
- package/dist/{types-Dvgr3ZeV.d.cts → index-B3iEVxkL.d.cts} +108 -23
- package/dist/index-B8bifyF-.d.ts +36 -0
- package/dist/index-BFdFh46m.d.cts +58 -0
- package/dist/{types-B7hf-Lif.d.ts → index-ByucvlTy.d.ts} +108 -23
- package/dist/index-C2iKBk7w.d.cts +36 -0
- package/dist/index-DLbdcczl.d.ts +78 -0
- package/dist/index-DlvTcfAg.d.cts +78 -0
- package/dist/{searchFilterSidebarVariants-C_UTEIpZ.js → searchFilterSidebarVariants-CZT1frB-.js} +1 -1
- package/dist/{searchFilterSidebarVariants-DcQLi_TT.cjs → searchFilterSidebarVariants-xyhy0PmQ.cjs} +1 -1
- package/package.json +22 -5
- package/src/components/Accordion/Accordion.tsx +90 -0
- package/src/components/Accordion/index.ts +1 -0
- package/src/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.tsx +70 -0
- package/src/components/AppliedFiltersScrollbar/index.ts +1 -0
- package/src/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.tsx +52 -0
- package/src/components/DynamicFiltersScrollbar/index.ts +1 -0
- package/src/components/ProductCard/ProductCard.tsx +34 -17
- package/src/components/ProductCard/types.ts +1 -1
- package/src/components/ProductGrid/ProductGrid.tsx +33 -33
- package/src/components/{SearchInputAutocomplete → SearchAutocomplete}/SearchAutocomplete.tsx +1 -1
- package/src/components/SearchInput/SearchInput.tsx +6 -6
- package/src/components/SearchInput/searchInputVariants.ts +5 -5
- package/src/components/SearchInputForm/SearchInputForm.tsx +6 -4
- package/src/components/SearchResultsContent/SearchResultsContent.tsx +87 -0
- package/src/components/SearchResultsContent/index.ts +2 -0
- package/src/components/SearchResultsContent/utils.ts +28 -0
- package/src/components/SearchResultsFilterSidebar/SearchResultsFilter.tsx +5 -6
- package/src/components/SearchResultsFilterSidebar/types.ts +14 -1
- package/src/components/SearchResultsStates/NoSearchResultsFound.tsx +2 -2
- package/src/components/SearchResultsStates/SearchResultsGrid.tsx +14 -12
- package/src/components/SearchResultsStates/SearchResultsLoadingGrid.tsx +4 -5
- package/dist/ProductCardSkeleton-B6YetUCT.js +0 -43
- package/dist/ProductCardSkeleton-BzBK36m-.cjs +0 -63
- package/dist/SearchInputAutocomplete/index.js +0 -3
- package/dist/types-5luH4G-3.d.cts +0 -5
- package/dist/types-BCAU5OQD.d.cts +0 -46
- package/dist/types-BIPqyTOJ.d.ts +0 -5
- package/dist/types-BwPquD10.d.ts +0 -46
- package/dist/types-CosVh8Hj.d.cts +0 -4
- package/dist/types-nR3jHgIO.d.ts +0 -4
- package/src/types/external.ts +0 -24
- /package/dist/{DynamicFiltersScrollbar-D8Lms7Ox.cjs → DynamicFiltersScrollbar-BTopFhyl.cjs} +0 -0
- /package/dist/{DynamicFiltersScrollbar-t_JASmYC.js → DynamicFiltersScrollbar-BmPTqym5.js} +0 -0
- /package/dist/{Headline-COAnonc2.js → Headline-XpaAeTSR.js} +0 -0
- /package/dist/{Headline-CdddUGwy.cjs → Headline-iP_MckEO.cjs} +0 -0
- /package/dist/{Spinner-D9kkaM9d.js → Spinner-BgGihEfJ.js} +0 -0
- /package/dist/{Spinner-DX35Epv3.cjs → Spinner-DzdIkS6t.cjs} +0 -0
- /package/dist/{colorsConfig-CKiMYHO_.js → colorsConfig-BQlaCfxi.js} +0 -0
- /package/dist/{colorsConfig-DulwYRIk.cjs → colorsConfig-DCvy_dV4.cjs} +0 -0
- /package/dist/{textVariantClasses-sT9E8Uty.d.ts → textVariantClasses-C8OCWZAw.d.ts} +0 -0
- /package/dist/{types-B19i3fxM.d.ts → types-Bm-qQyO3.d.ts} +0 -0
- /package/dist/{types-BQYpWDJ4.d.cts → types-C0UWKVvw.d.ts} +0 -0
- /package/dist/{types-C-Jrlw5Z.d.cts → types-CZHc-1wI.d.cts} +0 -0
- /package/dist/{types-DpfHwTzY.d.ts → types-D2xCS4y9.d.cts} +0 -0
- /package/src/components/{SearchInputAutocomplete → SearchAutocomplete}/index.ts +0 -0
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { SelectedFilterOption } from "../types-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { SelectedFilterOption } from "../types-CZHc-1wI.cjs";
|
|
2
|
+
import "../types-D2xCS4y9.cjs";
|
|
3
|
+
import { ProductCardConfig, ProductGridVariant } from "../index-B3iEVxkL.cjs";
|
|
4
|
+
import "../index-DlvTcfAg.cjs";
|
|
5
|
+
import { SearchFilterSidebarVariant } from "../index-BFdFh46m.cjs";
|
|
6
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
7
|
+
import { SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
|
|
5
8
|
|
|
6
9
|
//#region src/components/SearchResultsStates/NoSearchResultsFound.d.ts
|
|
7
10
|
interface NoSearchResultsFoundProps {
|
|
@@ -15,11 +18,13 @@ declare const NoSearchResultsFound: ({
|
|
|
15
18
|
includeBottomMargin,
|
|
16
19
|
noResultsFoundText,
|
|
17
20
|
sparkleIconColor
|
|
18
|
-
}: NoSearchResultsFoundProps) =>
|
|
21
|
+
}: NoSearchResultsFoundProps) => react_jsx_runtime7.JSX.Element;
|
|
19
22
|
//#endregion
|
|
20
23
|
//#region src/components/SearchResultsStates/SearchResultsGrid.d.ts
|
|
21
24
|
interface SearchResultsGridProps {
|
|
22
25
|
productList: SearchResponseProduct[];
|
|
26
|
+
productCardConfig: ProductCardConfig;
|
|
27
|
+
merchantShortName: string;
|
|
23
28
|
availableDynamicFilters: {
|
|
24
29
|
name: string;
|
|
25
30
|
displayName: string;
|
|
@@ -41,6 +46,8 @@ interface SearchResultsGridProps {
|
|
|
41
46
|
}
|
|
42
47
|
declare const SearchResultsGrid: ({
|
|
43
48
|
productList,
|
|
49
|
+
productCardConfig,
|
|
50
|
+
merchantShortName,
|
|
44
51
|
availableDynamicFilters,
|
|
45
52
|
searchFilterSidebarVariant,
|
|
46
53
|
productGridVariant,
|
|
@@ -50,7 +57,7 @@ declare const SearchResultsGrid: ({
|
|
|
50
57
|
productGridClasses,
|
|
51
58
|
onRemoveFilter,
|
|
52
59
|
onToggleDynamicFilter
|
|
53
|
-
}: SearchResultsGridProps) =>
|
|
60
|
+
}: SearchResultsGridProps) => react_jsx_runtime7.JSX.Element;
|
|
54
61
|
//#endregion
|
|
55
62
|
//#region src/components/SearchResultsStates/SearchResultsLoadingGrid.d.ts
|
|
56
63
|
declare const SearchResultsLoadingGrid: ({
|
|
@@ -61,6 +68,6 @@ declare const SearchResultsLoadingGrid: ({
|
|
|
61
68
|
productGridVariant: ProductGridVariant;
|
|
62
69
|
productGridClasses: string;
|
|
63
70
|
sparkleIconColor?: string;
|
|
64
|
-
}) =>
|
|
71
|
+
}) => react_jsx_runtime7.JSX.Element;
|
|
65
72
|
//#endregion
|
|
66
73
|
export { NoSearchResultsFound, SearchResultsGrid, SearchResultsLoadingGrid };
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { SelectedFilterOption } from "../types-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { SelectedFilterOption } from "../types-Bm-qQyO3.js";
|
|
2
|
+
import "../types-C0UWKVvw.js";
|
|
3
|
+
import { ProductCardConfig, ProductGridVariant } from "../index-ByucvlTy.js";
|
|
4
|
+
import "../index-DLbdcczl.js";
|
|
5
|
+
import { SearchFilterSidebarVariant } from "../index-14eDYe9f.js";
|
|
6
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
7
|
+
import { SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
|
|
5
8
|
|
|
6
9
|
//#region src/components/SearchResultsStates/NoSearchResultsFound.d.ts
|
|
7
10
|
interface NoSearchResultsFoundProps {
|
|
@@ -15,11 +18,13 @@ declare const NoSearchResultsFound: ({
|
|
|
15
18
|
includeBottomMargin,
|
|
16
19
|
noResultsFoundText,
|
|
17
20
|
sparkleIconColor
|
|
18
|
-
}: NoSearchResultsFoundProps) =>
|
|
21
|
+
}: NoSearchResultsFoundProps) => react_jsx_runtime12.JSX.Element;
|
|
19
22
|
//#endregion
|
|
20
23
|
//#region src/components/SearchResultsStates/SearchResultsGrid.d.ts
|
|
21
24
|
interface SearchResultsGridProps {
|
|
22
25
|
productList: SearchResponseProduct[];
|
|
26
|
+
productCardConfig: ProductCardConfig;
|
|
27
|
+
merchantShortName: string;
|
|
23
28
|
availableDynamicFilters: {
|
|
24
29
|
name: string;
|
|
25
30
|
displayName: string;
|
|
@@ -41,6 +46,8 @@ interface SearchResultsGridProps {
|
|
|
41
46
|
}
|
|
42
47
|
declare const SearchResultsGrid: ({
|
|
43
48
|
productList,
|
|
49
|
+
productCardConfig,
|
|
50
|
+
merchantShortName,
|
|
44
51
|
availableDynamicFilters,
|
|
45
52
|
searchFilterSidebarVariant,
|
|
46
53
|
productGridVariant,
|
|
@@ -50,7 +57,7 @@ declare const SearchResultsGrid: ({
|
|
|
50
57
|
productGridClasses,
|
|
51
58
|
onRemoveFilter,
|
|
52
59
|
onToggleDynamicFilter
|
|
53
|
-
}: SearchResultsGridProps) =>
|
|
60
|
+
}: SearchResultsGridProps) => react_jsx_runtime12.JSX.Element;
|
|
54
61
|
//#endregion
|
|
55
62
|
//#region src/components/SearchResultsStates/SearchResultsLoadingGrid.d.ts
|
|
56
63
|
declare const SearchResultsLoadingGrid: ({
|
|
@@ -61,6 +68,6 @@ declare const SearchResultsLoadingGrid: ({
|
|
|
61
68
|
productGridVariant: ProductGridVariant;
|
|
62
69
|
productGridClasses: string;
|
|
63
70
|
sparkleIconColor?: string;
|
|
64
|
-
}) =>
|
|
71
|
+
}) => react_jsx_runtime12.JSX.Element;
|
|
65
72
|
//#endregion
|
|
66
73
|
export { NoSearchResultsFound, SearchResultsGrid, SearchResultsLoadingGrid };
|
|
@@ -1,120 +1,15 @@
|
|
|
1
1
|
import "../textVariantClasses-CnjwO2Fv.js";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import "../Headline-
|
|
5
|
-
import "../ImageWithFallback-
|
|
6
|
-
import "../ProductCard-
|
|
7
|
-
import "../Spinner-
|
|
8
|
-
import
|
|
9
|
-
import "../colorsConfig-
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
import { motion } from "framer-motion";
|
|
16
|
-
import Sparkles from "@envive-ai/react-icons/src/Sparkles";
|
|
2
|
+
import "../Text-BMg3d10t.js";
|
|
3
|
+
import "../DynamicFiltersScrollbar-BmPTqym5.js";
|
|
4
|
+
import "../Headline-XpaAeTSR.js";
|
|
5
|
+
import "../ImageWithFallback-Ckwsmd8P.js";
|
|
6
|
+
import "../ProductCard-SF8-lXlT.js";
|
|
7
|
+
import "../Spinner-BgGihEfJ.js";
|
|
8
|
+
import "../ProductGrid-DTUhH219.js";
|
|
9
|
+
import "../colorsConfig-BQlaCfxi.js";
|
|
10
|
+
import "../Text-DkwDPbHy.js";
|
|
11
|
+
import { NoSearchResultsFound, SearchResultsGrid, SearchResultsLoadingGrid } from "../SearchResultsStates-CNp6YCqF.js";
|
|
12
|
+
import "../searchFilterSidebarVariants-CZT1frB-.js";
|
|
13
|
+
import "../SparkleAnimation-B0u6JtO3.js";
|
|
17
14
|
|
|
18
|
-
//#region src/components/SearchResultsStates/NoSearchResultsFound.tsx
|
|
19
|
-
const NoSearchResultsFound = ({ containerPaddingClasses, includeBottomMargin = false, noResultsFoundText, sparkleIconColor = "var(--spiffy-colors-accent-primary)" }) => {
|
|
20
|
-
const containerClasses = classNames(containerPaddingClasses, includeBottomMargin ? "spiffy-tw-mb-[100vh]" : "", "spiffy-tw-mt-6");
|
|
21
|
-
return /* @__PURE__ */ jsx("div", {
|
|
22
|
-
className: containerClasses,
|
|
23
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
24
|
-
className: "spiffy-tw-flex spiffy-tw-items-start spiffy-tw-gap-2",
|
|
25
|
-
children: [/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Sparkles, {
|
|
26
|
-
className: "spiffy-tw-w-[24px] spiffy-tw-h-[24px]",
|
|
27
|
-
style: { color: sparkleIconColor }
|
|
28
|
-
}) }), /* @__PURE__ */ jsx(Text, {
|
|
29
|
-
variant: "body2",
|
|
30
|
-
children: noResultsFoundText || "I’m sorry, I wasn’t able to find an exact match. Try changing your filters or adjusting your search query."
|
|
31
|
-
})]
|
|
32
|
-
})
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
//#endregion
|
|
37
|
-
//#region src/components/SearchResultsStates/SearchResultsGrid.tsx
|
|
38
|
-
const SearchResultsGrid = ({ productList, availableDynamicFilters, searchFilterSidebarVariant, productGridVariant, selectedFilterOptions, searchResponseId, containerXPaddingClasses, productGridClasses, onRemoveFilter, onToggleDynamicFilter }) => {
|
|
39
|
-
const sharedFilterBarClasses = classNames("spiffy-suggestion-bar", "spiffy-tw-no-scrollbar", "spiffy-tw-flex", "spiffy-tw-flex-row", "spiffy-tw-gap-2", "spiffy-tw-mb-[16px]", "spiffy-tw-overflow-x-scroll", containerXPaddingClasses);
|
|
40
|
-
const filterBarClasses = classNames(sharedFilterBarClasses, "spiffy-tw-mt-[24px]");
|
|
41
|
-
const appliedFilterBarClasses = classNames(sharedFilterBarClasses, "spiffy-tw-mb-[32px]", "spiffy-tw-mt-[8px]");
|
|
42
|
-
const { filterDefaultClasses, filterHoverClasses, appliedFilterBackgroundClasses } = searchFilterSidebarVariantClasses[searchFilterSidebarVariant];
|
|
43
|
-
return /* @__PURE__ */ jsxs(motion.div, {
|
|
44
|
-
className: "spiffy-tw-justify-center spiffy-tw-w-full spiffy-tw-overflow-hidden",
|
|
45
|
-
initial: { opacity: 0 },
|
|
46
|
-
animate: { opacity: 1 },
|
|
47
|
-
exit: { opacity: 0 },
|
|
48
|
-
transition: { duration: .2 },
|
|
49
|
-
children: [
|
|
50
|
-
/* @__PURE__ */ jsx(AppliedFiltersScrollbar, {
|
|
51
|
-
selectedFilterOptions,
|
|
52
|
-
filterBarClassNames: appliedFilterBarClasses,
|
|
53
|
-
filterDefaultClasses,
|
|
54
|
-
filterHoverClasses,
|
|
55
|
-
appliedFilterBackgroundClasses,
|
|
56
|
-
onRemoveFilter
|
|
57
|
-
}),
|
|
58
|
-
/* @__PURE__ */ jsx(DynamicFiltersScrollbar, {
|
|
59
|
-
availableDynamicFilters,
|
|
60
|
-
filterBarClassNames: filterBarClasses,
|
|
61
|
-
filterDefaultClasses,
|
|
62
|
-
filterHoverClasses,
|
|
63
|
-
onToggleDynamicFilter
|
|
64
|
-
}),
|
|
65
|
-
/* @__PURE__ */ jsx(ProductGrid, {
|
|
66
|
-
productList,
|
|
67
|
-
productGridVariant,
|
|
68
|
-
productGridClasses,
|
|
69
|
-
searchResponseId,
|
|
70
|
-
merchantShortName: "",
|
|
71
|
-
handleClick: function(clickedUrl) {
|
|
72
|
-
console.log(clickedUrl);
|
|
73
|
-
throw new Error("Function not implemented.");
|
|
74
|
-
}
|
|
75
|
-
})
|
|
76
|
-
]
|
|
77
|
-
});
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
//#endregion
|
|
81
|
-
//#region src/components/SearchResultsStates/SearchResultsLoadingGrid.tsx
|
|
82
|
-
const SearchResultsLoadingGrid = ({ productGridVariant, productGridClasses, sparkleIconColor = "var(--spiffy-colors-accent-primary)" }) => {
|
|
83
|
-
const { productCardLayoutVariant, productCardImageAspectRatio } = productGridVariantClasses[productGridVariant];
|
|
84
|
-
return /* @__PURE__ */ jsx(motion.div, {
|
|
85
|
-
className: "spiffy-tw-justify-center spiffy-tw-w-full spiffy-tw-overflow-hidden",
|
|
86
|
-
initial: { opacity: 0 },
|
|
87
|
-
animate: { opacity: 1 },
|
|
88
|
-
exit: { opacity: 0 },
|
|
89
|
-
transition: { duration: .2 },
|
|
90
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
91
|
-
className: "spiffy-tw-mt-6 spiffy-tw-w-full",
|
|
92
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
93
|
-
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-justify-between spiffy-tw-mb-4",
|
|
94
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
95
|
-
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-gap-2 spiffy-tw-ml-[16px] md:spiffy-tw-ml-[80px]",
|
|
96
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
97
|
-
className: "spiffy-tw-width-[24px]",
|
|
98
|
-
children: /* @__PURE__ */ jsx(SparkleAnimation, {
|
|
99
|
-
color: sparkleIconColor,
|
|
100
|
-
animate: true
|
|
101
|
-
})
|
|
102
|
-
}), /* @__PURE__ */ jsx(Text, {
|
|
103
|
-
variant: "body2",
|
|
104
|
-
children: "Finding the best options for you..."
|
|
105
|
-
})]
|
|
106
|
-
})
|
|
107
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
108
|
-
className: productGridClasses,
|
|
109
|
-
children: Array.from({ length: 8 }).map((_, index) => /* @__PURE__ */ jsx(ProductCardSkeleton, {
|
|
110
|
-
layoutVariant: productCardLayoutVariant,
|
|
111
|
-
aspectRatio: productCardImageAspectRatio,
|
|
112
|
-
growWithContainer: true
|
|
113
|
-
}, index))
|
|
114
|
-
})]
|
|
115
|
-
})
|
|
116
|
-
});
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
//#endregion
|
|
120
15
|
export { NoSearchResultsFound, SearchResultsGrid, SearchResultsLoadingGrid };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { Text as Text$1 } from "./Text-BMg3d10t.js";
|
|
2
|
+
import { AppliedFiltersScrollbar, DynamicFiltersScrollbar } from "./DynamicFiltersScrollbar-BmPTqym5.js";
|
|
3
|
+
import { ProductCardSkeleton } from "./ProductCard-SF8-lXlT.js";
|
|
4
|
+
import { ProductGrid, productGridVariantClasses } from "./ProductGrid-DTUhH219.js";
|
|
5
|
+
import { searchFilterSidebarVariantClasses } from "./searchFilterSidebarVariants-CZT1frB-.js";
|
|
6
|
+
import { SparkleAnimation } from "./SparkleAnimation-B0u6JtO3.js";
|
|
7
|
+
import { motion } from "framer-motion";
|
|
8
|
+
import classNames from "classnames";
|
|
9
|
+
import { Text } from "@envive-ai/react-toolkit/Text";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import Sparkles from "@envive-ai/react-icons/Sparkles";
|
|
12
|
+
|
|
13
|
+
//#region src/components/SearchResultsStates/NoSearchResultsFound.tsx
|
|
14
|
+
const NoSearchResultsFound = ({ containerPaddingClasses, includeBottomMargin = false, noResultsFoundText, sparkleIconColor = "var(--spiffy-colors-accent-primary)" }) => {
|
|
15
|
+
const containerClasses = classNames(containerPaddingClasses, includeBottomMargin ? "spiffy-tw-mb-[100vh]" : "", "spiffy-tw-mt-6");
|
|
16
|
+
return /* @__PURE__ */ jsx("div", {
|
|
17
|
+
className: containerClasses,
|
|
18
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
19
|
+
className: "spiffy-tw-flex spiffy-tw-items-start spiffy-tw-gap-2",
|
|
20
|
+
children: [/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Sparkles, {
|
|
21
|
+
className: "spiffy-tw-w-[24px] spiffy-tw-h-[24px]",
|
|
22
|
+
style: { color: sparkleIconColor }
|
|
23
|
+
}) }), /* @__PURE__ */ jsx(Text$1, {
|
|
24
|
+
variant: "body2",
|
|
25
|
+
children: noResultsFoundText || "I’m sorry, I wasn’t able to find an exact match. Try changing your filters or adjusting your search query."
|
|
26
|
+
})]
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/components/SearchResultsStates/SearchResultsGrid.tsx
|
|
33
|
+
const SearchResultsGrid = ({ productList, productCardConfig, merchantShortName, availableDynamicFilters, searchFilterSidebarVariant, productGridVariant, selectedFilterOptions, searchResponseId, containerXPaddingClasses, productGridClasses, onRemoveFilter, onToggleDynamicFilter }) => {
|
|
34
|
+
const sharedFilterBarClasses = classNames("spiffy-suggestion-bar", "spiffy-tw-no-scrollbar", "spiffy-tw-flex", "spiffy-tw-flex-row", "spiffy-tw-gap-2", "spiffy-tw-mb-[16px]", "spiffy-tw-overflow-x-scroll", containerXPaddingClasses);
|
|
35
|
+
const filterBarClasses = classNames(sharedFilterBarClasses, "spiffy-tw-mt-[24px]");
|
|
36
|
+
const appliedFilterBarClasses = classNames(sharedFilterBarClasses, "spiffy-tw-mb-[32px]", "spiffy-tw-mt-[8px]");
|
|
37
|
+
const { filterDefaultClasses, filterHoverClasses, appliedFilterBackgroundClasses } = searchFilterSidebarVariantClasses[searchFilterSidebarVariant];
|
|
38
|
+
return /* @__PURE__ */ jsxs(motion.div, {
|
|
39
|
+
className: "spiffy-tw-justify-center spiffy-tw-w-full spiffy-tw-overflow-hidden",
|
|
40
|
+
initial: { opacity: 0 },
|
|
41
|
+
animate: { opacity: 1 },
|
|
42
|
+
exit: { opacity: 0 },
|
|
43
|
+
transition: { duration: .2 },
|
|
44
|
+
children: [
|
|
45
|
+
/* @__PURE__ */ jsx(AppliedFiltersScrollbar, {
|
|
46
|
+
selectedFilterOptions,
|
|
47
|
+
filterBarClassNames: appliedFilterBarClasses,
|
|
48
|
+
filterDefaultClasses,
|
|
49
|
+
filterHoverClasses,
|
|
50
|
+
appliedFilterBackgroundClasses,
|
|
51
|
+
onRemoveFilter
|
|
52
|
+
}),
|
|
53
|
+
/* @__PURE__ */ jsx(DynamicFiltersScrollbar, {
|
|
54
|
+
availableDynamicFilters,
|
|
55
|
+
filterBarClassNames: filterBarClasses,
|
|
56
|
+
filterDefaultClasses,
|
|
57
|
+
filterHoverClasses,
|
|
58
|
+
onToggleDynamicFilter
|
|
59
|
+
}),
|
|
60
|
+
/* @__PURE__ */ jsx(ProductGrid, {
|
|
61
|
+
productList,
|
|
62
|
+
productGridVariant,
|
|
63
|
+
productGridClasses,
|
|
64
|
+
productCardConfig,
|
|
65
|
+
merchantShortName,
|
|
66
|
+
searchResponseId
|
|
67
|
+
})
|
|
68
|
+
]
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/components/SearchResultsStates/SearchResultsLoadingGrid.tsx
|
|
74
|
+
const SearchResultsLoadingGrid = ({ productGridVariant, productGridClasses, sparkleIconColor = "var(--spiffy-colors-accent-primary)" }) => {
|
|
75
|
+
const { productCardLayoutVariant, productCardImageAspectRatio } = productGridVariantClasses[productGridVariant];
|
|
76
|
+
return /* @__PURE__ */ jsx(motion.div, {
|
|
77
|
+
className: "spiffy-tw-justify-center spiffy-tw-w-full spiffy-tw-overflow-hidden",
|
|
78
|
+
initial: { opacity: 0 },
|
|
79
|
+
animate: { opacity: 1 },
|
|
80
|
+
exit: { opacity: 0 },
|
|
81
|
+
transition: { duration: .2 },
|
|
82
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
83
|
+
className: "spiffy-tw-mt-6 spiffy-tw-w-full",
|
|
84
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
85
|
+
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-justify-between spiffy-tw-mb-4",
|
|
86
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
87
|
+
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-gap-2 spiffy-tw-ml-[16px] md:spiffy-tw-ml-[80px]",
|
|
88
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
89
|
+
className: "spiffy-tw-width-[24px]",
|
|
90
|
+
children: /* @__PURE__ */ jsx(SparkleAnimation, {
|
|
91
|
+
color: sparkleIconColor,
|
|
92
|
+
animate: true
|
|
93
|
+
})
|
|
94
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
95
|
+
variant: "body2",
|
|
96
|
+
children: "Finding the best options for you..."
|
|
97
|
+
})]
|
|
98
|
+
})
|
|
99
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
100
|
+
className: productGridClasses,
|
|
101
|
+
children: Array.from({ length: 8 }).map((_, index) => /* @__PURE__ */ jsx(ProductCardSkeleton, {
|
|
102
|
+
layoutVariant: productCardLayoutVariant,
|
|
103
|
+
aspectRatio: productCardImageAspectRatio,
|
|
104
|
+
growWithContainer: true
|
|
105
|
+
}, index))
|
|
106
|
+
})]
|
|
107
|
+
})
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
//#endregion
|
|
112
|
+
export { NoSearchResultsFound, SearchResultsGrid, SearchResultsLoadingGrid };
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
const require_Text = require('./Text-CgOYTs8D.cjs');
|
|
3
|
+
const require_DynamicFiltersScrollbar = require('./DynamicFiltersScrollbar-BTopFhyl.cjs');
|
|
4
|
+
const require_ProductCard = require('./ProductCard-DZZKutY-.cjs');
|
|
5
|
+
const require_ProductGrid = require('./ProductGrid-BSSmPr7K.cjs');
|
|
6
|
+
const require_searchFilterSidebarVariants = require('./searchFilterSidebarVariants-xyhy0PmQ.cjs');
|
|
7
|
+
const require_SparkleAnimation = require('./SparkleAnimation-D1QpGZIg.cjs');
|
|
8
|
+
let framer_motion = require("framer-motion");
|
|
9
|
+
framer_motion = require_chunk.__toESM(framer_motion);
|
|
10
|
+
let classnames = require("classnames");
|
|
11
|
+
classnames = require_chunk.__toESM(classnames);
|
|
12
|
+
let __envive_ai_react_toolkit_Text = require("@envive-ai/react-toolkit/Text");
|
|
13
|
+
__envive_ai_react_toolkit_Text = require_chunk.__toESM(__envive_ai_react_toolkit_Text);
|
|
14
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
15
|
+
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
16
|
+
let __envive_ai_react_icons_Sparkles = require("@envive-ai/react-icons/Sparkles");
|
|
17
|
+
__envive_ai_react_icons_Sparkles = require_chunk.__toESM(__envive_ai_react_icons_Sparkles);
|
|
18
|
+
|
|
19
|
+
//#region src/components/SearchResultsStates/NoSearchResultsFound.tsx
|
|
20
|
+
const NoSearchResultsFound = ({ containerPaddingClasses, includeBottomMargin = false, noResultsFoundText, sparkleIconColor = "var(--spiffy-colors-accent-primary)" }) => {
|
|
21
|
+
const containerClasses = (0, classnames.default)(containerPaddingClasses, includeBottomMargin ? "spiffy-tw-mb-[100vh]" : "", "spiffy-tw-mt-6");
|
|
22
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
23
|
+
className: containerClasses,
|
|
24
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
25
|
+
className: "spiffy-tw-flex spiffy-tw-items-start spiffy-tw-gap-2",
|
|
26
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_Sparkles.default, {
|
|
27
|
+
className: "spiffy-tw-w-[24px] spiffy-tw-h-[24px]",
|
|
28
|
+
style: { color: sparkleIconColor }
|
|
29
|
+
}) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
|
|
30
|
+
variant: "body2",
|
|
31
|
+
children: noResultsFoundText || "I’m sorry, I wasn’t able to find an exact match. Try changing your filters or adjusting your search query."
|
|
32
|
+
})]
|
|
33
|
+
})
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/components/SearchResultsStates/SearchResultsGrid.tsx
|
|
39
|
+
const SearchResultsGrid = ({ productList, productCardConfig, merchantShortName, availableDynamicFilters, searchFilterSidebarVariant, productGridVariant, selectedFilterOptions, searchResponseId, containerXPaddingClasses, productGridClasses, onRemoveFilter, onToggleDynamicFilter }) => {
|
|
40
|
+
const sharedFilterBarClasses = (0, classnames.default)("spiffy-suggestion-bar", "spiffy-tw-no-scrollbar", "spiffy-tw-flex", "spiffy-tw-flex-row", "spiffy-tw-gap-2", "spiffy-tw-mb-[16px]", "spiffy-tw-overflow-x-scroll", containerXPaddingClasses);
|
|
41
|
+
const filterBarClasses = (0, classnames.default)(sharedFilterBarClasses, "spiffy-tw-mt-[24px]");
|
|
42
|
+
const appliedFilterBarClasses = (0, classnames.default)(sharedFilterBarClasses, "spiffy-tw-mb-[32px]", "spiffy-tw-mt-[8px]");
|
|
43
|
+
const { filterDefaultClasses, filterHoverClasses, appliedFilterBackgroundClasses } = require_searchFilterSidebarVariants.searchFilterSidebarVariantClasses[searchFilterSidebarVariant];
|
|
44
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(framer_motion.motion.div, {
|
|
45
|
+
className: "spiffy-tw-justify-center spiffy-tw-w-full spiffy-tw-overflow-hidden",
|
|
46
|
+
initial: { opacity: 0 },
|
|
47
|
+
animate: { opacity: 1 },
|
|
48
|
+
exit: { opacity: 0 },
|
|
49
|
+
transition: { duration: .2 },
|
|
50
|
+
children: [
|
|
51
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_DynamicFiltersScrollbar.AppliedFiltersScrollbar, {
|
|
52
|
+
selectedFilterOptions,
|
|
53
|
+
filterBarClassNames: appliedFilterBarClasses,
|
|
54
|
+
filterDefaultClasses,
|
|
55
|
+
filterHoverClasses,
|
|
56
|
+
appliedFilterBackgroundClasses,
|
|
57
|
+
onRemoveFilter
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_DynamicFiltersScrollbar.DynamicFiltersScrollbar, {
|
|
60
|
+
availableDynamicFilters,
|
|
61
|
+
filterBarClassNames: filterBarClasses,
|
|
62
|
+
filterDefaultClasses,
|
|
63
|
+
filterHoverClasses,
|
|
64
|
+
onToggleDynamicFilter
|
|
65
|
+
}),
|
|
66
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProductGrid.ProductGrid, {
|
|
67
|
+
productList,
|
|
68
|
+
productGridVariant,
|
|
69
|
+
productGridClasses,
|
|
70
|
+
productCardConfig,
|
|
71
|
+
merchantShortName,
|
|
72
|
+
searchResponseId
|
|
73
|
+
})
|
|
74
|
+
]
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/components/SearchResultsStates/SearchResultsLoadingGrid.tsx
|
|
80
|
+
const SearchResultsLoadingGrid = ({ productGridVariant, productGridClasses, sparkleIconColor = "var(--spiffy-colors-accent-primary)" }) => {
|
|
81
|
+
const { productCardLayoutVariant, productCardImageAspectRatio } = require_ProductGrid.productGridVariantClasses[productGridVariant];
|
|
82
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
83
|
+
className: "spiffy-tw-justify-center spiffy-tw-w-full spiffy-tw-overflow-hidden",
|
|
84
|
+
initial: { opacity: 0 },
|
|
85
|
+
animate: { opacity: 1 },
|
|
86
|
+
exit: { opacity: 0 },
|
|
87
|
+
transition: { duration: .2 },
|
|
88
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
89
|
+
className: "spiffy-tw-mt-6 spiffy-tw-w-full",
|
|
90
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
91
|
+
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-justify-between spiffy-tw-mb-4",
|
|
92
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
93
|
+
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-gap-2 spiffy-tw-ml-[16px] md:spiffy-tw-ml-[80px]",
|
|
94
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
95
|
+
className: "spiffy-tw-width-[24px]",
|
|
96
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SparkleAnimation.SparkleAnimation, {
|
|
97
|
+
color: sparkleIconColor,
|
|
98
|
+
animate: true
|
|
99
|
+
})
|
|
100
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_toolkit_Text.Text, {
|
|
101
|
+
variant: "body2",
|
|
102
|
+
children: "Finding the best options for you..."
|
|
103
|
+
})]
|
|
104
|
+
})
|
|
105
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
106
|
+
className: productGridClasses,
|
|
107
|
+
children: Array.from({ length: 8 }).map((_, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProductCard.ProductCardSkeleton, {
|
|
108
|
+
layoutVariant: productCardLayoutVariant,
|
|
109
|
+
aspectRatio: productCardImageAspectRatio,
|
|
110
|
+
growWithContainer: true
|
|
111
|
+
}, index))
|
|
112
|
+
})]
|
|
113
|
+
})
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
//#endregion
|
|
118
|
+
Object.defineProperty(exports, 'NoSearchResultsFound', {
|
|
119
|
+
enumerable: true,
|
|
120
|
+
get: function () {
|
|
121
|
+
return NoSearchResultsFound;
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
Object.defineProperty(exports, 'SearchResultsGrid', {
|
|
125
|
+
enumerable: true,
|
|
126
|
+
get: function () {
|
|
127
|
+
return SearchResultsGrid;
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
Object.defineProperty(exports, 'SearchResultsLoadingGrid', {
|
|
131
|
+
enumerable: true,
|
|
132
|
+
get: function () {
|
|
133
|
+
return SearchResultsLoadingGrid;
|
|
134
|
+
}
|
|
135
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_SparkleAnimation = require('../SparkleAnimation-
|
|
1
|
+
const require_SparkleAnimation = require('../SparkleAnimation-D1QpGZIg.cjs');
|
|
2
2
|
|
|
3
3
|
exports.SparkleAnimation = require_SparkleAnimation.SparkleAnimation;
|
|
4
4
|
exports.SparkleAnimationOverride = require_SparkleAnimation.SparkleAnimationOverride;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SparkleAnimation/SparkleAnimation.d.ts
|
|
4
4
|
interface SparkleAnimationProps {
|
|
@@ -10,7 +10,7 @@ declare const SparkleAnimation: ({
|
|
|
10
10
|
color,
|
|
11
11
|
className,
|
|
12
12
|
animate
|
|
13
|
-
}: SparkleAnimationProps) =>
|
|
13
|
+
}: SparkleAnimationProps) => react_jsx_runtime5.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/components/SparkleAnimation/types.d.ts
|
|
16
16
|
declare enum SparkleAnimationOverride {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SparkleAnimation/SparkleAnimation.d.ts
|
|
4
4
|
interface SparkleAnimationProps {
|
|
@@ -10,7 +10,7 @@ declare const SparkleAnimation: ({
|
|
|
10
10
|
color,
|
|
11
11
|
className,
|
|
12
12
|
animate
|
|
13
|
-
}: SparkleAnimationProps) =>
|
|
13
|
+
}: SparkleAnimationProps) => react_jsx_runtime10.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/components/SparkleAnimation/types.d.ts
|
|
16
16
|
declare enum SparkleAnimationOverride {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { motion } from "framer-motion";
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
|
+
import classNames from "classnames";
|
|
3
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
import { motion } from "framer-motion";
|
|
5
5
|
import FourPointStar from "@envive-ai/react-icons/src/FourPointStar";
|
|
6
6
|
|
|
7
7
|
//#region src/components/SparkleAnimation/types.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
let
|
|
3
|
-
|
|
2
|
+
let framer_motion = require("framer-motion");
|
|
3
|
+
framer_motion = require_chunk.__toESM(framer_motion);
|
|
4
4
|
let react = require("react");
|
|
5
5
|
react = require_chunk.__toESM(react);
|
|
6
|
+
let classnames = require("classnames");
|
|
7
|
+
classnames = require_chunk.__toESM(classnames);
|
|
6
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
9
|
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
8
|
-
let framer_motion = require("framer-motion");
|
|
9
|
-
framer_motion = require_chunk.__toESM(framer_motion);
|
|
10
10
|
let __envive_ai_react_icons_src_FourPointStar = require("@envive-ai/react-icons/src/FourPointStar");
|
|
11
11
|
__envive_ai_react_icons_src_FourPointStar = require_chunk.__toESM(__envive_ai_react_icons_src_FourPointStar);
|
|
12
12
|
|
package/dist/Spinner/index.cjs
CHANGED
package/dist/Spinner/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/Spinner/Spinner.d.ts
|
|
4
4
|
type SpinnerProps = {
|
|
@@ -6,6 +6,6 @@ type SpinnerProps = {
|
|
|
6
6
|
};
|
|
7
7
|
declare const Spinner: ({
|
|
8
8
|
className
|
|
9
|
-
}: SpinnerProps) =>
|
|
9
|
+
}: SpinnerProps) => react_jsx_runtime3.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Spinner };
|
package/dist/Spinner/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
const require_chunk = require('../chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_ButtonBase = require('../ButtonBase-
|
|
2
|
+
const require_ButtonBase = require('../ButtonBase-DcyxOe2v.cjs');
|
|
3
3
|
require('../textVariantClasses-BnV4wXaw.cjs');
|
|
4
4
|
require('../Text-CgOYTs8D.cjs');
|
|
5
5
|
let classnames = require("classnames");
|
|
6
6
|
classnames = require_chunk.__toESM(classnames);
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
9
|
-
let __envive_ai_react_icons_src_OutlinedStar = require("@envive-ai/react-icons/src/OutlinedStar");
|
|
10
|
-
__envive_ai_react_icons_src_OutlinedStar = require_chunk.__toESM(__envive_ai_react_icons_src_OutlinedStar);
|
|
11
9
|
let __envive_ai_react_icons_src_FourPointStar = require("@envive-ai/react-icons/src/FourPointStar");
|
|
12
10
|
__envive_ai_react_icons_src_FourPointStar = require_chunk.__toESM(__envive_ai_react_icons_src_FourPointStar);
|
|
11
|
+
let __envive_ai_react_icons_src_OutlinedStar = require("@envive-ai/react-icons/src/OutlinedStar");
|
|
12
|
+
__envive_ai_react_icons_src_OutlinedStar = require_chunk.__toESM(__envive_ai_react_icons_src_OutlinedStar);
|
|
13
13
|
|
|
14
14
|
//#region src/components/SuggestionButton/SuggestionButton.tsx
|
|
15
15
|
const SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = "spiffy-suggestion-button-question-class";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TestProps } from "../types-
|
|
2
|
-
import * as
|
|
1
|
+
import { TestProps } from "../types-D2xCS4y9.cjs";
|
|
2
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SuggestionButton/types.d.ts
|
|
5
5
|
type SuggestionButtonVariant = 'outlined' | 'outlinedLight' | 'primary' | 'secondary' | 'tertiary' | 'dark' | 'darkAccent' | 'darkPrimary' | 'secondaryDark' | 'secondaryAccent' | 'transparent' | 'transparentDark' | 'lightDark';
|
|
@@ -30,6 +30,6 @@ declare const SuggestionButton: ({
|
|
|
30
30
|
dataAttributes,
|
|
31
31
|
dataTestId,
|
|
32
32
|
onClick
|
|
33
|
-
}: SuggestionButtonProps) =>
|
|
33
|
+
}: SuggestionButtonProps) => react_jsx_runtime8.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS, SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS, SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS, SuggestionButton, SuggestionButtonVariant };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TestProps } from "../types-
|
|
2
|
-
import * as
|
|
1
|
+
import { TestProps } from "../types-C0UWKVvw.js";
|
|
2
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SuggestionButton/types.d.ts
|
|
5
5
|
type SuggestionButtonVariant = 'outlined' | 'outlinedLight' | 'primary' | 'secondary' | 'tertiary' | 'dark' | 'darkAccent' | 'darkPrimary' | 'secondaryDark' | 'secondaryAccent' | 'transparent' | 'transparentDark' | 'lightDark';
|
|
@@ -30,6 +30,6 @@ declare const SuggestionButton: ({
|
|
|
30
30
|
dataAttributes,
|
|
31
31
|
dataTestId,
|
|
32
32
|
onClick
|
|
33
|
-
}: SuggestionButtonProps) =>
|
|
33
|
+
}: SuggestionButtonProps) => react_jsx_runtime3.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS, SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS, SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS, SuggestionButton, SuggestionButtonVariant };
|