@envive-ai/react-toolkit 0.1.5 → 0.1.6
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/ButtonBase/index.cjs +2 -1
- package/dist/ButtonBase/index.d.cts +2 -2
- package/dist/ButtonBase/index.d.ts +3 -3
- 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/FilterScrollbar/index.cjs +1 -1
- package/dist/FilterScrollbar/index.d.cts +3 -3
- 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.d.ts +2 -2
- package/dist/Headline/index.js +1 -1
- package/dist/ImageWithFallback/index.cjs +1 -1
- package/dist/ImageWithFallback/index.d.cts +2 -2
- package/dist/ImageWithFallback/index.d.ts +2 -2
- package/dist/ImageWithFallback/index.js +1 -1
- package/dist/{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 +3 -3
- package/dist/SearchInput/index.d.ts +3 -3
- 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/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 +23 -24
- package/dist/SearchResultsStates/index.d.cts +13 -6
- package/dist/SearchResultsStates/index.d.ts +14 -7
- package/dist/SearchResultsStates/index.js +19 -21
- 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-BdOjC8l-.js} +2 -2
- package/dist/{SparkleAnimation-j-mAMEZZ.cjs → SparkleAnimation-BhyeL26m.cjs} +4 -4
- package/dist/Spinner/index.cjs +1 -1
- package/dist/Spinner/index.d.cts +2 -2
- package/dist/Spinner/index.d.ts +2 -2
- package/dist/Spinner/index.js +1 -1
- package/dist/SuggestionButton/index.cjs +3 -3
- package/dist/SuggestionButton/index.d.cts +2 -2
- 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 +3 -3
- package/dist/Text/index.d.ts +3 -3
- package/dist/Text/index.js +1 -9
- package/dist/Text-CV9pv8ds.js +10 -0
- package/dist/Text-DDT3sqY1.cjs +16 -0
- package/dist/TextInput/index.cjs +1 -1
- package/dist/TextInput/index.d.cts +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-B0oln9VD.d.ts +58 -0
- package/dist/index-B125udRj.d.cts +78 -0
- package/dist/index-BHNzU-Pc.d.ts +36 -0
- package/dist/index-BNCrvswP.d.cts +36 -0
- package/dist/index-CQlBDGTL.d.cts +58 -0
- package/dist/{types-B7hf-Lif.d.ts → index-CcnuEYQN.d.ts} +110 -3
- package/dist/index-DMXTg_9L.d.ts +78 -0
- package/dist/{types-Dvgr3ZeV.d.cts → index-wYn2mEDm.d.cts} +110 -3
- package/dist/{searchFilterSidebarVariants-C_UTEIpZ.js → searchFilterSidebarVariants-BWQyiKwS.js} +1 -1
- package/dist/{searchFilterSidebarVariants-DcQLi_TT.cjs → searchFilterSidebarVariants-D08jyA7U.cjs} +1 -1
- package/package.json +10 -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/DynamicFiltersScrollbar/DynamicFiltersScrollbar.tsx +52 -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/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-DwnnFNBf.d.cts → textVariantClasses-C8OCWZAw.d.ts} +0 -0
- /package/dist/{textVariantClasses-sT9E8Uty.d.ts → textVariantClasses-Cdg-UUHi.d.cts} +0 -0
- /package/dist/{types-B19i3fxM.d.ts → types-Bm-qQyO3.d.ts} +0 -0
- /package/dist/{types-DpfHwTzY.d.ts → types-BruEHw-X.d.ts} +0 -0
- /package/src/components/{SearchInputAutocomplete → SearchAutocomplete}/index.ts +0 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
const require_chunk = require('../chunk-CUT6urMc.cjs');
|
|
2
|
+
let framer_motion = require("framer-motion");
|
|
3
|
+
framer_motion = require_chunk.__toESM(framer_motion);
|
|
4
|
+
let react = require("react");
|
|
5
|
+
react = require_chunk.__toESM(react);
|
|
6
|
+
let classnames = require("classnames");
|
|
7
|
+
classnames = require_chunk.__toESM(classnames);
|
|
8
|
+
let __envive_ai_react_toolkit_Text = require("@envive-ai/react-toolkit/Text");
|
|
9
|
+
__envive_ai_react_toolkit_Text = require_chunk.__toESM(__envive_ai_react_toolkit_Text);
|
|
10
|
+
let __envive_ai_react_icons_ChevronDown = require("@envive-ai/react-icons/ChevronDown");
|
|
11
|
+
__envive_ai_react_icons_ChevronDown = require_chunk.__toESM(__envive_ai_react_icons_ChevronDown);
|
|
12
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
13
|
+
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
14
|
+
|
|
15
|
+
//#region src/components/Accordion/Accordion.tsx
|
|
16
|
+
const ANIMATION_DURATION = .3;
|
|
17
|
+
const Accordion = ({ title, content }) => {
|
|
18
|
+
const [isOpen, setIsOpen] = (0, react.useState)(false);
|
|
19
|
+
const contentRef = (0, react.useRef)(null);
|
|
20
|
+
const titleWrapperClasses = (0, classnames.default)({
|
|
21
|
+
"spiffy-tw-border-b": true,
|
|
22
|
+
"spiffy-tw-border-[--spiffy-colors-border-light]": true,
|
|
23
|
+
"spiffy-tw-pb-2": true,
|
|
24
|
+
"spiffy-tw-flex": true,
|
|
25
|
+
"spiffy-tw-justify-between": true,
|
|
26
|
+
"spiffy-tw-items-center": true,
|
|
27
|
+
"spiffy-tw-w-full": true,
|
|
28
|
+
"spiffy-tw-group": true
|
|
29
|
+
});
|
|
30
|
+
const titleClasses = (0, classnames.default)({
|
|
31
|
+
"spiffy-tw-uppercase": true,
|
|
32
|
+
"spiffy-tw-text-[--spiffy-colors-text-primary]": true,
|
|
33
|
+
"!spiffy-tw-font-[400]": true,
|
|
34
|
+
"group-aria-expanded:!spiffy-tw-font-medium": true
|
|
35
|
+
});
|
|
36
|
+
const contentClasses = (0, classnames.default)({ "spiffy-tw-overflow-hidden": true });
|
|
37
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
38
|
+
"aria-expanded": isOpen,
|
|
39
|
+
type: "button",
|
|
40
|
+
className: titleWrapperClasses,
|
|
41
|
+
onClick: () => setIsOpen(!isOpen),
|
|
42
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_toolkit_Text.Text, {
|
|
43
|
+
variant: "body4",
|
|
44
|
+
className: titleClasses,
|
|
45
|
+
children: title
|
|
46
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
47
|
+
variants: {
|
|
48
|
+
open: { rotate: 180 },
|
|
49
|
+
closed: { rotate: 360 }
|
|
50
|
+
},
|
|
51
|
+
animate: isOpen ? "open" : "closed",
|
|
52
|
+
transition: {
|
|
53
|
+
duration: ANIMATION_DURATION,
|
|
54
|
+
ease: "easeOut"
|
|
55
|
+
},
|
|
56
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_ChevronDown.default, {})
|
|
57
|
+
})]
|
|
58
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
59
|
+
variants: {
|
|
60
|
+
open: {
|
|
61
|
+
height: "auto",
|
|
62
|
+
marginTop: "24px",
|
|
63
|
+
marginBottom: "24px"
|
|
64
|
+
},
|
|
65
|
+
closed: {
|
|
66
|
+
height: "0px",
|
|
67
|
+
marginTop: "0px",
|
|
68
|
+
marginBottom: "0px"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
className: contentClasses,
|
|
72
|
+
initial: { height: 0 },
|
|
73
|
+
animate: isOpen ? "open" : "closed",
|
|
74
|
+
transition: {
|
|
75
|
+
duration: ANIMATION_DURATION,
|
|
76
|
+
ease: "easeOut"
|
|
77
|
+
},
|
|
78
|
+
ref: contentRef,
|
|
79
|
+
children: content
|
|
80
|
+
})] });
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
//#endregion
|
|
84
|
+
exports.Accordion = Accordion;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/Accordion/Accordion.d.ts
|
|
4
|
+
interface AccordionProps {
|
|
5
|
+
title: string;
|
|
6
|
+
content: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare const Accordion: ({
|
|
9
|
+
title,
|
|
10
|
+
content
|
|
11
|
+
}: AccordionProps) => react_jsx_runtime0.JSX.Element;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { Accordion };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/Accordion/Accordion.d.ts
|
|
4
|
+
interface AccordionProps {
|
|
5
|
+
title: string;
|
|
6
|
+
content: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare const Accordion: ({
|
|
9
|
+
title,
|
|
10
|
+
content
|
|
11
|
+
}: AccordionProps) => react_jsx_runtime7.JSX.Element;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { Accordion };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { motion } from "framer-motion";
|
|
2
|
+
import { useRef, useState } from "react";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import { Text } from "@envive-ai/react-toolkit/Text";
|
|
5
|
+
import ChevronDown from "@envive-ai/react-icons/ChevronDown";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/components/Accordion/Accordion.tsx
|
|
9
|
+
const ANIMATION_DURATION = .3;
|
|
10
|
+
const Accordion = ({ title, content }) => {
|
|
11
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
12
|
+
const contentRef = useRef(null);
|
|
13
|
+
const titleWrapperClasses = classNames({
|
|
14
|
+
"spiffy-tw-border-b": true,
|
|
15
|
+
"spiffy-tw-border-[--spiffy-colors-border-light]": true,
|
|
16
|
+
"spiffy-tw-pb-2": true,
|
|
17
|
+
"spiffy-tw-flex": true,
|
|
18
|
+
"spiffy-tw-justify-between": true,
|
|
19
|
+
"spiffy-tw-items-center": true,
|
|
20
|
+
"spiffy-tw-w-full": true,
|
|
21
|
+
"spiffy-tw-group": true
|
|
22
|
+
});
|
|
23
|
+
const titleClasses = classNames({
|
|
24
|
+
"spiffy-tw-uppercase": true,
|
|
25
|
+
"spiffy-tw-text-[--spiffy-colors-text-primary]": true,
|
|
26
|
+
"!spiffy-tw-font-[400]": true,
|
|
27
|
+
"group-aria-expanded:!spiffy-tw-font-medium": true
|
|
28
|
+
});
|
|
29
|
+
const contentClasses = classNames({ "spiffy-tw-overflow-hidden": true });
|
|
30
|
+
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("button", {
|
|
31
|
+
"aria-expanded": isOpen,
|
|
32
|
+
type: "button",
|
|
33
|
+
className: titleWrapperClasses,
|
|
34
|
+
onClick: () => setIsOpen(!isOpen),
|
|
35
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
36
|
+
variant: "body4",
|
|
37
|
+
className: titleClasses,
|
|
38
|
+
children: title
|
|
39
|
+
}), /* @__PURE__ */ jsx(motion.div, {
|
|
40
|
+
variants: {
|
|
41
|
+
open: { rotate: 180 },
|
|
42
|
+
closed: { rotate: 360 }
|
|
43
|
+
},
|
|
44
|
+
animate: isOpen ? "open" : "closed",
|
|
45
|
+
transition: {
|
|
46
|
+
duration: ANIMATION_DURATION,
|
|
47
|
+
ease: "easeOut"
|
|
48
|
+
},
|
|
49
|
+
children: /* @__PURE__ */ jsx(ChevronDown, {})
|
|
50
|
+
})]
|
|
51
|
+
}), /* @__PURE__ */ jsx(motion.div, {
|
|
52
|
+
variants: {
|
|
53
|
+
open: {
|
|
54
|
+
height: "auto",
|
|
55
|
+
marginTop: "24px",
|
|
56
|
+
marginBottom: "24px"
|
|
57
|
+
},
|
|
58
|
+
closed: {
|
|
59
|
+
height: "0px",
|
|
60
|
+
marginTop: "0px",
|
|
61
|
+
marginBottom: "0px"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
className: contentClasses,
|
|
65
|
+
initial: { height: 0 },
|
|
66
|
+
animate: isOpen ? "open" : "closed",
|
|
67
|
+
transition: {
|
|
68
|
+
duration: ANIMATION_DURATION,
|
|
69
|
+
ease: "easeOut"
|
|
70
|
+
},
|
|
71
|
+
ref: contentRef,
|
|
72
|
+
children: content
|
|
73
|
+
})] });
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
//#endregion
|
|
77
|
+
export { Accordion };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
const require_ButtonBase = require('../ButtonBase-
|
|
1
|
+
const require_ButtonBase = require('../ButtonBase-DcyxOe2v.cjs');
|
|
2
2
|
require('../textVariantClasses-BnV4wXaw.cjs');
|
|
3
3
|
require('../Text-CgOYTs8D.cjs');
|
|
4
|
+
require('../ButtonBase-BleAVeo-.cjs');
|
|
4
5
|
|
|
5
6
|
exports.ButtonBase = require_ButtonBase.ButtonBase;
|
|
6
7
|
exports.ButtonBaseOverrides = require_ButtonBase.ButtonBaseOverrides;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TestProps } from "../types-BQYpWDJ4.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
3
3
|
import { ButtonHTMLAttributes, CSSProperties } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ButtonBase/types.d.ts
|
|
@@ -38,6 +38,6 @@ declare const ButtonBase: ({
|
|
|
38
38
|
dataTestId,
|
|
39
39
|
onClick,
|
|
40
40
|
disablePadding
|
|
41
|
-
}: ButtonBaseProps) =>
|
|
41
|
+
}: ButtonBaseProps) => react_jsx_runtime12.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { ButtonBase, ButtonBaseOverrides, ButtonBaseProps, ButtonHoverStyles };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TestProps } from "../types-
|
|
1
|
+
import { TestProps } from "../types-BruEHw-X.js";
|
|
2
2
|
import { ButtonHTMLAttributes, CSSProperties } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ButtonBase/types.d.ts
|
|
6
6
|
interface ButtonHoverStyles extends CSSProperties {
|
|
@@ -38,6 +38,6 @@ declare const ButtonBase: ({
|
|
|
38
38
|
dataTestId,
|
|
39
39
|
onClick,
|
|
40
40
|
disablePadding
|
|
41
|
-
}: ButtonBaseProps) =>
|
|
41
|
+
}: ButtonBaseProps) => react_jsx_runtime5.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { ButtonBase, ButtonBaseOverrides, ButtonBaseProps, ButtonHoverStyles };
|
package/dist/ButtonBase/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ButtonBase, ButtonBaseOverrides } from "../ButtonBase-
|
|
1
|
+
import { ButtonBase, ButtonBaseOverrides } from "../ButtonBase-BIAu5fIG.js";
|
|
2
2
|
import "../textVariantClasses-CnjwO2Fv.js";
|
|
3
3
|
import "../Text-BMg3d10t.js";
|
|
4
|
+
import "../ButtonBase-BRfuPPzN.js";
|
|
4
5
|
|
|
5
6
|
export { ButtonBase, ButtonBaseOverrides };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Text } from "./Text-BMg3d10t.js";
|
|
2
|
-
import classNames from "classnames";
|
|
3
2
|
import { createElement, useEffect, useRef } from "react";
|
|
3
|
+
import classNames from "classnames";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/ButtonBase/types.ts
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
2
|
const require_Text = require('./Text-CgOYTs8D.cjs');
|
|
3
|
-
let classnames = require("classnames");
|
|
4
|
-
classnames = require_chunk.__toESM(classnames);
|
|
5
3
|
let react = require("react");
|
|
6
4
|
react = require_chunk.__toESM(react);
|
|
5
|
+
let classnames = require("classnames");
|
|
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
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
require('../textVariantClasses-BnV4wXaw.cjs');
|
|
2
2
|
require('../Text-CgOYTs8D.cjs');
|
|
3
|
-
const require_DynamicFiltersScrollbar = require('../DynamicFiltersScrollbar-
|
|
3
|
+
const require_DynamicFiltersScrollbar = require('../DynamicFiltersScrollbar-BTopFhyl.cjs');
|
|
4
4
|
|
|
5
5
|
exports.AppliedFiltersScrollbar = require_DynamicFiltersScrollbar.AppliedFiltersScrollbar;
|
|
6
6
|
exports.DynamicFiltersScrollbar = require_DynamicFiltersScrollbar.DynamicFiltersScrollbar;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SelectedFilterOption } from "../types-C-Jrlw5Z.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FilterScrollbar/AppliedFiltersScrollbar.d.ts
|
|
5
5
|
interface AppliedFiltersScrollbarProps {
|
|
@@ -17,7 +17,7 @@ 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
|
//#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_runtime9.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SelectedFilterOption } from "../types-
|
|
2
|
-
import * as
|
|
1
|
+
import { SelectedFilterOption } from "../types-Bm-qQyO3.js";
|
|
2
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FilterScrollbar/AppliedFiltersScrollbar.d.ts
|
|
5
5
|
interface AppliedFiltersScrollbarProps {
|
|
@@ -17,7 +17,7 @@ declare const AppliedFiltersScrollbar: ({
|
|
|
17
17
|
filterHoverClasses,
|
|
18
18
|
appliedFilterBackgroundClasses,
|
|
19
19
|
onRemoveFilter
|
|
20
|
-
}: AppliedFiltersScrollbarProps) =>
|
|
20
|
+
}: AppliedFiltersScrollbarProps) => react_jsx_runtime13.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_runtime13.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../textVariantClasses-CnjwO2Fv.js";
|
|
2
2
|
import "../Text-BMg3d10t.js";
|
|
3
|
-
import { AppliedFiltersScrollbar, DynamicFiltersScrollbar } from "../DynamicFiltersScrollbar-
|
|
3
|
+
import { AppliedFiltersScrollbar, DynamicFiltersScrollbar } from "../DynamicFiltersScrollbar-BmPTqym5.js";
|
|
4
4
|
|
|
5
5
|
export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
|
package/dist/Headline/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/Headline/Headline.d.ts
|
|
4
4
|
type HeadlineVariant = 't1' | 't2' | 't3' | 'h1' | 'h2' | 'h3' | 'h4';
|
|
@@ -16,6 +16,6 @@ declare const Headline: ({
|
|
|
16
16
|
style,
|
|
17
17
|
testId,
|
|
18
18
|
variant
|
|
19
|
-
}: HeadlineProps) =>
|
|
19
|
+
}: HeadlineProps) => react_jsx_runtime0.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { Headline, HeadlineProps, HeadlineVariant };
|
package/dist/Headline/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/Headline/Headline.d.ts
|
|
4
4
|
type HeadlineVariant = 't1' | 't2' | 't3' | 'h1' | 'h2' | 'h3' | 'h4';
|
|
@@ -16,6 +16,6 @@ declare const Headline: ({
|
|
|
16
16
|
style,
|
|
17
17
|
testId,
|
|
18
18
|
variant
|
|
19
|
-
}: HeadlineProps) =>
|
|
19
|
+
}: HeadlineProps) => react_jsx_runtime1.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { Headline, HeadlineProps, HeadlineVariant };
|
package/dist/Headline/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime15 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_runtime15.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_runtime0 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_runtime0.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { ImageWithFallback, ImageWithFallbackProps };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
let classnames = require("classnames");
|
|
3
|
-
classnames = require_chunk.__toESM(classnames);
|
|
4
2
|
let react = require("react");
|
|
5
3
|
react = require_chunk.__toESM(react);
|
|
4
|
+
let classnames = require("classnames");
|
|
5
|
+
classnames = require_chunk.__toESM(classnames);
|
|
6
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
8
8
|
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
require('../textVariantClasses-BnV4wXaw.cjs');
|
|
2
2
|
require('../Text-CgOYTs8D.cjs');
|
|
3
|
-
require('../Headline-
|
|
4
|
-
require('../ImageWithFallback-
|
|
5
|
-
const require_ProductCard = require('../ProductCard-
|
|
6
|
-
require('../Spinner-
|
|
7
|
-
const require_ProductCardSkeleton = require('../ProductCardSkeleton-BzBK36m-.cjs');
|
|
3
|
+
require('../Headline-iP_MckEO.cjs');
|
|
4
|
+
require('../ImageWithFallback-1LqhQK1q.cjs');
|
|
5
|
+
const require_ProductCard = require('../ProductCard-DZZKutY-.cjs');
|
|
6
|
+
require('../Spinner-DzdIkS6t.cjs');
|
|
8
7
|
|
|
9
|
-
exports.AnimatedProductCardOverrides =
|
|
8
|
+
exports.AnimatedProductCardOverrides = require_ProductCard.AnimatedProductCardOverrides;
|
|
10
9
|
exports.PriceSection = require_ProductCard.PriceSection;
|
|
11
10
|
exports.ProductCard = require_ProductCard.ProductCard;
|
|
12
|
-
exports.ProductCardSkeleton =
|
|
13
|
-
exports.ProductCardSkeletonOverrides =
|
|
11
|
+
exports.ProductCardSkeleton = require_ProductCard.ProductCardSkeleton;
|
|
12
|
+
exports.ProductCardSkeletonOverrides = require_ProductCard.ProductCardSkeletonOverrides;
|
|
14
13
|
exports.RatingSummary = require_ProductCard.RatingSummary;
|
|
15
14
|
exports.productCardLayoutVariantClasses = require_ProductCard.productCardLayoutVariantClasses;
|
|
16
15
|
exports.variantClassMap = require_ProductCard.variantClassMap;
|
|
@@ -1,109 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { AnimatedProductCardOverrides, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, SearchResponseProductAttributes } from "../
|
|
3
|
-
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
4
|
-
import { FC } from "react";
|
|
5
|
-
|
|
6
|
-
//#region src/config/chatElementDisplayLocation.d.ts
|
|
7
|
-
declare enum ChatElementDisplayLocation {
|
|
8
|
-
IN_CHAT = "in_chat",
|
|
9
|
-
CHAT_PREVIEW = "chat_preview",
|
|
10
|
-
FLOATING_BUTTON = "floating_button",
|
|
11
|
-
HELP_ME_CHOOSE = "help_me_choose",
|
|
12
|
-
PLP_IMAGE_BANNER = "plp_image_banner",
|
|
13
|
-
TOP_REVIEWS_SNIPPET = "top_reviews_snippet",
|
|
14
|
-
BOTTOM_REVIEWS_SNIPPET = "bottom_reviews_snippet",
|
|
15
|
-
BLOCK_BACK_BUTTON = "block_back_button",
|
|
16
|
-
SWITCH_TO_AGENT = "switch_to_agent",
|
|
17
|
-
CONVERSATIONAL_SEARCH = "conversational_search",
|
|
18
|
-
GLOBAL_SEARCH_ENTRYPOINT = "global_search_entrypoint",
|
|
19
|
-
SEARCH_NAV_ENTRYPOINT = "search_nav_entrypoint",
|
|
20
|
-
SEARCH_PROMPT = "search_prompt",
|
|
21
|
-
SEARCH_PROMPT_BUTTON = "search_prompt_button",
|
|
22
|
-
PRODUCT_GRID = "product_grid",
|
|
23
|
-
UNSPECIFIED = "unspecified",
|
|
24
|
-
FILTER_MODAL = "filter_modal",
|
|
25
|
-
PROMPT_CARD = "prompt_card",
|
|
26
|
-
WINDOW_API_CALL = "window_api_call",
|
|
27
|
-
}
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region src/components/ProductCard/ProductCard.d.ts
|
|
30
|
-
interface RatingSummaryProps {
|
|
31
|
-
stars: number;
|
|
32
|
-
reviewCount: number;
|
|
33
|
-
className?: string;
|
|
34
|
-
}
|
|
35
|
-
declare const RatingSummary: ({
|
|
36
|
-
stars,
|
|
37
|
-
reviewCount,
|
|
38
|
-
className
|
|
39
|
-
}: RatingSummaryProps) => react_jsx_runtime12.JSX.Element;
|
|
40
|
-
interface PriceSectionProps {
|
|
41
|
-
originalPrice?: string;
|
|
42
|
-
salePrice?: string;
|
|
43
|
-
pricePrefix?: string;
|
|
44
|
-
}
|
|
45
|
-
declare const PriceSection: ({
|
|
46
|
-
originalPrice,
|
|
47
|
-
salePrice,
|
|
48
|
-
pricePrefix
|
|
49
|
-
}: PriceSectionProps) => react_jsx_runtime12.JSX.Element;
|
|
50
|
-
interface ProductCardProps extends TestProps {
|
|
51
|
-
productCardConfig?: ProductCardConfig;
|
|
52
|
-
merchantShortName: string;
|
|
53
|
-
title: string;
|
|
54
|
-
url?: string;
|
|
55
|
-
searchResponseId?: string;
|
|
56
|
-
productResponseId?: string;
|
|
57
|
-
cardDisplayLocation: ChatElementDisplayLocation.IN_CHAT | ChatElementDisplayLocation.PRODUCT_GRID;
|
|
58
|
-
imageUrl?: string;
|
|
59
|
-
originalPrice?: number;
|
|
60
|
-
averageRating?: number;
|
|
61
|
-
numberReviews?: number;
|
|
62
|
-
salePrice?: number;
|
|
63
|
-
variant?: ProductCardVariant;
|
|
64
|
-
hoverVariant?: ProductCardHoverVariant;
|
|
65
|
-
layoutVariant?: ProductCardLayoutVariant;
|
|
66
|
-
zoomOnHover?: boolean;
|
|
67
|
-
aspectRatio?: '3:4' | 'square' | 'none';
|
|
68
|
-
clickPosition?: number | null;
|
|
69
|
-
growWithContainer?: boolean;
|
|
70
|
-
handleClick: (clickedUrl: string) => void;
|
|
71
|
-
}
|
|
72
|
-
declare const ProductCard: ({
|
|
73
|
-
productCardConfig,
|
|
74
|
-
merchantShortName,
|
|
75
|
-
imageUrl,
|
|
76
|
-
title,
|
|
77
|
-
url,
|
|
78
|
-
originalPrice,
|
|
79
|
-
averageRating,
|
|
80
|
-
numberReviews,
|
|
81
|
-
salePrice,
|
|
82
|
-
variant,
|
|
83
|
-
hoverVariant,
|
|
84
|
-
dataTestId,
|
|
85
|
-
layoutVariant,
|
|
86
|
-
zoomOnHover,
|
|
87
|
-
aspectRatio,
|
|
88
|
-
growWithContainer,
|
|
89
|
-
handleClick
|
|
90
|
-
}: ProductCardProps) => react_jsx_runtime12.JSX.Element;
|
|
91
|
-
//#endregion
|
|
92
|
-
//#region src/components/ProductCard/ProductCardSkeleton.d.ts
|
|
93
|
-
interface ProductCardSkeletonProps$1 {
|
|
94
|
-
layoutVariant: ProductCardLayoutVariant;
|
|
95
|
-
aspectRatio?: '3:4' | 'square' | 'none';
|
|
96
|
-
growWithContainer?: boolean;
|
|
97
|
-
}
|
|
98
|
-
declare const ProductCardSkeleton: FC<ProductCardSkeletonProps$1>;
|
|
99
|
-
//#endregion
|
|
100
|
-
//#region src/components/ProductCard/productCardVariants.d.ts
|
|
101
|
-
/**
|
|
102
|
-
* Shared variant mapping configurations for ProductCard components
|
|
103
|
-
*/
|
|
104
|
-
declare const variantClassMap: Map<ProductCardVariant, string[]>;
|
|
105
|
-
declare const variantHoverClassMap: Map<ProductCardHoverVariant, string[]>;
|
|
106
|
-
declare const variantTitleColorMap: Map<ProductCardVariant, string>;
|
|
107
|
-
declare const productCardLayoutVariantClasses: Record<ProductCardLayoutVariant, Record<string, string[]>>;
|
|
108
|
-
//#endregion
|
|
1
|
+
import "../types-BQYpWDJ4.cjs";
|
|
2
|
+
import { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, RatingSummary, SearchResponseProductAttributes, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap } from "../index-wYn2mEDm.cjs";
|
|
109
3
|
export { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, RatingSummary, SearchResponseProductAttributes, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap };
|