@envive-ai/react-toolkit 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion/index.cjs +3 -82
- package/dist/Accordion/index.d.cts +2 -2
- package/dist/Accordion/index.d.ts +2 -2
- package/dist/Accordion/index.js +2 -75
- package/dist/Accordion-Cp3Hx2zm.js +77 -0
- package/dist/Accordion-DBZpiQe7.cjs +88 -0
- package/dist/AppliedFiltersScrollbar/index.d.cts +2 -2
- package/dist/AppliedFiltersScrollbar/index.d.ts +2 -2
- package/dist/ButtonBase/index.cjs +2 -2
- package/dist/ButtonBase/index.js +2 -2
- package/dist/DynamicFiltersScrollbar/index.d.cts +2 -2
- package/dist/DynamicFiltersScrollbar/index.d.ts +2 -2
- package/dist/FilterScrollbar/index.cjs +1 -1
- package/dist/FilterScrollbar/index.d.cts +3 -3
- package/dist/FilterScrollbar/index.d.ts +3 -3
- 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.d.cts +2 -2
- package/dist/ImageWithFallback/index.d.ts +2 -2
- package/dist/ModalSheet/index.cjs +3 -0
- package/dist/ModalSheet/index.d.cts +38 -0
- package/dist/ModalSheet/index.d.ts +38 -0
- package/dist/ModalSheet/index.js +3 -0
- package/dist/ModalSheet-CXZgyZ4a.cjs +335 -0
- package/dist/ModalSheet-CZd5pssv.js +324 -0
- package/dist/ProductCard/index.cjs +3 -3
- package/dist/ProductCard/index.d.cts +1 -1
- package/dist/ProductCard/index.d.ts +1 -1
- package/dist/ProductCard/index.js +3 -3
- package/dist/{ProductCard-Dkkhl9pk.js → ProductCard-D-lyh8uV.js} +3 -3
- package/dist/{ProductCard-CymUvJnC.cjs → ProductCard-F49krjHk.cjs} +4 -4
- package/dist/ProductGrid/index.cjs +4 -4
- package/dist/ProductGrid/index.d.cts +3 -3
- package/dist/ProductGrid/index.d.ts +3 -3
- package/dist/ProductGrid/index.js +4 -4
- package/dist/{ProductGrid-B3Ypqh7j.js → ProductGrid-FIf5wFQx.js} +1 -1
- package/dist/{ProductGrid-ZNRujkuN.cjs → ProductGrid-QeoaIfcq.cjs} +1 -1
- package/dist/RadioButton/index.cjs +6 -0
- package/dist/RadioButton/index.d.cts +30 -0
- package/dist/RadioButton/index.d.ts +30 -0
- package/dist/RadioButton/index.js +6 -0
- package/dist/RadioButton-Bf68dZl7.js +68 -0
- package/dist/RadioButton-DZ6QXkrN.cjs +77 -0
- package/dist/RadioButtonGroup/index.cjs +8 -0
- package/dist/RadioButtonGroup/index.d.cts +36 -0
- package/dist/RadioButtonGroup/index.d.ts +36 -0
- package/dist/RadioButtonGroup/index.js +7 -0
- package/dist/RadioButtonGroup-8k7hkJYB.js +37 -0
- package/dist/RadioButtonGroup-Dc_n5amh.cjs +51 -0
- package/dist/SearchAutocomplete/index.cjs +1 -1
- package/dist/SearchAutocomplete/index.js +1 -1
- package/dist/SearchFilter/index.cjs +9 -2
- package/dist/SearchFilter/index.d.cts +15 -9
- package/dist/SearchFilter/index.d.ts +11 -5
- package/dist/SearchFilter/index.js +9 -2
- package/dist/SearchFilter-BOwErEyI.js +258 -0
- package/dist/SearchFilter-BtLKnFMm.cjs +279 -0
- package/dist/SearchInput/index.cjs +3 -3
- package/dist/SearchInput/index.d.cts +1 -1
- package/dist/SearchInput/index.d.ts +2 -2
- package/dist/SearchInput/index.js +3 -3
- package/dist/{SearchInput-BT1rrc4F.js → SearchInput-BBaYEwkR.js} +2 -2
- package/dist/{SearchInput-CdR_nsR3.cjs → SearchInput-BTNvgrIa.cjs} +2 -2
- package/dist/SearchInputForm/index.cjs +4 -4
- package/dist/SearchInputForm/index.d.cts +1 -1
- package/dist/SearchInputForm/index.d.ts +1 -1
- package/dist/SearchInputForm/index.js +4 -4
- package/dist/SearchResultsContent/index.cjs +9 -9
- package/dist/SearchResultsContent/index.d.cts +4 -4
- package/dist/SearchResultsContent/index.d.ts +4 -4
- package/dist/SearchResultsContent/index.js +9 -9
- package/dist/SearchResultsFilterSidebar/index.cjs +15 -8
- package/dist/SearchResultsFilterSidebar/index.d.cts +1 -1
- package/dist/SearchResultsFilterSidebar/index.d.ts +1 -1
- package/dist/SearchResultsFilterSidebar/index.js +13 -6
- package/dist/SearchResultsStates/index.cjs +9 -9
- package/dist/SearchResultsStates/index.d.cts +6 -6
- package/dist/SearchResultsStates/index.d.ts +6 -6
- package/dist/SearchResultsStates/index.js +9 -9
- package/dist/{SearchResultsStates-BxJphoL-.js → SearchResultsStates-CB5k1xkK.js} +5 -5
- package/dist/{SearchResultsStates-ESlrrf20.cjs → SearchResultsStates-DywK7vvp.cjs} +5 -5
- package/dist/SparkleAnimation/index.cjs +1 -1
- package/dist/SparkleAnimation/index.d.cts +2 -2
- package/dist/SparkleAnimation/index.d.ts +2 -2
- package/dist/SparkleAnimation/index.js +1 -1
- package/dist/Spinner/index.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 +1 -1
- package/dist/SuggestionButton/index.d.cts +2 -2
- package/dist/SuggestionButton/index.d.ts +2 -2
- package/dist/SuggestionButton/index.js +1 -1
- package/dist/Text/index.d.cts +2 -2
- package/dist/Text/index.d.ts +3 -3
- package/dist/TextInput/index.cjs +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/ToggleButton/index.cjs +6 -0
- package/dist/ToggleButton/index.d.cts +30 -0
- package/dist/ToggleButton/index.d.ts +30 -0
- package/dist/ToggleButton/index.js +6 -0
- package/dist/ToggleButton-BKRR_-69.js +60 -0
- package/dist/ToggleButton-D90UO4qv.cjs +68 -0
- package/dist/{index-b4yAASuy.d.cts → index-1x_hMlEf.d.cts} +4 -4
- package/dist/{index-DV2K-9lE.d.cts → index-CgjZdKpL.d.cts} +5 -5
- package/dist/{index-agU5rfIs.d.ts → index-Cl4d_pDw.d.ts} +5 -5
- package/dist/{index-uU3sIiRx.d.ts → index-H_9LhS_1.d.cts} +2 -2
- package/dist/{index-DggZTKvc.d.ts → index-QMTPxKA9.d.ts} +4 -4
- package/dist/{index-Bpjv4lP2.d.cts → index-gfYBM7Ul.d.ts} +2 -2
- package/dist/{searchFilterSidebarVariants-BnIcOVWR.js → searchFilterSidebarVariants-CDFCHVeZ.js} +1 -1
- package/dist/{searchFilterSidebarVariants-DVZ7wRlb.cjs → searchFilterSidebarVariants-CtmuwSBQ.cjs} +1 -1
- package/package.json +20 -3
- package/src/components/AnimatedChevron/AnimatedChevron.tsx +37 -0
- package/src/components/ModalSheet/ModalSheet.tsx +42 -0
- package/src/components/ModalSheet/common/closeIcon.tsx +40 -0
- package/src/components/ModalSheet/common/enviveWatermark.tsx +30 -0
- package/src/components/ModalSheet/desktop/desktopHeader.tsx +24 -0
- package/src/components/ModalSheet/desktop/index.tsx +118 -0
- package/src/components/ModalSheet/index.ts +1 -0
- package/src/components/ModalSheet/mobile/index.tsx +117 -0
- package/src/components/ModalSheet/mobile/mobileHeader.tsx +42 -0
- package/src/components/ModalSheet/types.ts +33 -0
- package/src/components/RadioButton/RadioButton.tsx +88 -0
- package/src/components/RadioButton/index.ts +1 -0
- package/src/components/RadioButtonGroup/RadioButtonGroup.tsx +72 -0
- package/src/components/RadioButtonGroup/index.ts +1 -0
- package/src/components/SearchFilter/SearchFilter.tsx +161 -64
- package/src/components/SearchFilter/SearchFilterFooter.tsx +55 -0
- package/src/components/SearchFilter/types.ts +2 -1
- package/src/components/SearchFilter/useHasFilterStateChanged.tsx +40 -0
- package/src/components/SearchFilter/utils.ts +15 -0
- package/src/components/SearchResultsFilterSidebar/SearchResultsFilter.tsx +2 -2
- package/src/components/ToggleButton/ToggleButton.tsx +98 -0
- package/src/components/ToggleButton/index.ts +1 -0
- package/dist/SearchFilter-CLYCSNAa.cjs +0 -137
- package/dist/SearchFilter-qQPpx-34.js +0 -117
- /package/dist/{ButtonBase-C_uKnl48.js → ButtonBase-0NN6wmX-.js} +0 -0
- /package/dist/{ButtonBase-DGbSm0SJ.js → ButtonBase-BAf-nlCm.js} +0 -0
- /package/dist/{ButtonBase-DbWQ25n-.cjs → ButtonBase-BIXx56hq.cjs} +0 -0
- /package/dist/{ButtonBase-DGpQBeLR.cjs → ButtonBase-Do88ndKa.cjs} +0 -0
- /package/dist/{DynamicFiltersScrollbar-Dev5vGsW.js → DynamicFiltersScrollbar-C4kdNSJ9.js} +0 -0
- /package/dist/{DynamicFiltersScrollbar-ChvmEiPB.cjs → DynamicFiltersScrollbar-CVw1PINp.cjs} +0 -0
- /package/dist/{Headline-DTaT30_m.js → Headline-DNEWF8ly.js} +0 -0
- /package/dist/{Headline-DSmu5Mg8.cjs → Headline-DTT4RSv2.cjs} +0 -0
- /package/dist/{SearchAutocomplete-C4RY0IoT.js → SearchAutocomplete-C6omCGJp.js} +0 -0
- /package/dist/{SearchAutocomplete-hQDnKtwQ.cjs → SearchAutocomplete-Cofuvwwp.cjs} +0 -0
- /package/dist/{SparkleAnimation-fQHP7b-R.js → SparkleAnimation-AM4XoegD.js} +0 -0
- /package/dist/{SparkleAnimation-BY5iw7s0.cjs → SparkleAnimation-Edzqyb48.cjs} +0 -0
- /package/dist/{Spinner-BqTt55uu.js → Spinner-CjGLIRgs.js} +0 -0
- /package/dist/{Spinner-DjK8ts9E.cjs → Spinner-DFor2Szi.cjs} +0 -0
- /package/dist/{TextInput-DIjjsSMg.js → TextInput-BVPdz7e8.js} +0 -0
- /package/dist/{TextInput-BJrdkZsM.cjs → TextInput-CnXhppYn.cjs} +0 -0
- /package/dist/{colorsConfig-CYZ8f_gj.js → colorsConfig-5Yf4nrEe.js} +0 -0
- /package/dist/{colorsConfig-CJTKbJsm.cjs → colorsConfig-DFL3mBwB.cjs} +0 -0
- /package/dist/{textVariantClasses-ypYGLq0h.d.ts → textVariantClasses-kyZtL8F5.d.ts} +0 -0
package/dist/Accordion/index.cjs
CHANGED
|
@@ -1,85 +1,6 @@
|
|
|
1
|
-
const require_chunk = require('../chunk-CUT6urMc.cjs');
|
|
2
1
|
require('../textVariantClasses-Dgz7Zaql.cjs');
|
|
3
|
-
|
|
2
|
+
require('../Text-MQjxqgZZ.cjs');
|
|
4
3
|
require('../Text-C8t_iEj6.cjs');
|
|
5
|
-
|
|
6
|
-
framer_motion = require_chunk.__toESM(framer_motion);
|
|
7
|
-
let react = require("react");
|
|
8
|
-
react = require_chunk.__toESM(react);
|
|
9
|
-
let classnames = require("classnames");
|
|
10
|
-
classnames = require_chunk.__toESM(classnames);
|
|
11
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
12
|
-
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
13
|
-
let __envive_ai_react_icons_ChevronDown = require("@envive-ai/react-icons/ChevronDown");
|
|
14
|
-
__envive_ai_react_icons_ChevronDown = require_chunk.__toESM(__envive_ai_react_icons_ChevronDown);
|
|
4
|
+
const require_Accordion = require('../Accordion-DBZpiQe7.cjs');
|
|
15
5
|
|
|
16
|
-
|
|
17
|
-
const ANIMATION_DURATION = .3;
|
|
18
|
-
const Accordion = ({ title, content }) => {
|
|
19
|
-
const [isOpen, setIsOpen] = (0, react.useState)(false);
|
|
20
|
-
const contentRef = (0, react.useRef)(null);
|
|
21
|
-
const titleWrapperClasses = (0, classnames.default)({
|
|
22
|
-
"spiffy-tw-border-b": true,
|
|
23
|
-
"spiffy-tw-border-[--spiffy-colors-border-light]": true,
|
|
24
|
-
"spiffy-tw-pb-2": true,
|
|
25
|
-
"spiffy-tw-flex": true,
|
|
26
|
-
"spiffy-tw-justify-between": true,
|
|
27
|
-
"spiffy-tw-items-center": true,
|
|
28
|
-
"spiffy-tw-w-full": true,
|
|
29
|
-
"spiffy-tw-group": true
|
|
30
|
-
});
|
|
31
|
-
const titleClasses = (0, classnames.default)({
|
|
32
|
-
"spiffy-tw-uppercase": true,
|
|
33
|
-
"spiffy-tw-text-[--spiffy-colors-text-primary]": true,
|
|
34
|
-
"!spiffy-tw-font-[400]": true,
|
|
35
|
-
"group-aria-expanded:!spiffy-tw-font-medium": true
|
|
36
|
-
});
|
|
37
|
-
const contentClasses = (0, classnames.default)({ "spiffy-tw-overflow-hidden": true });
|
|
38
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
39
|
-
"aria-expanded": isOpen,
|
|
40
|
-
type: "button",
|
|
41
|
-
className: titleWrapperClasses,
|
|
42
|
-
onClick: () => setIsOpen(!isOpen),
|
|
43
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
|
|
44
|
-
variant: "body4",
|
|
45
|
-
className: titleClasses,
|
|
46
|
-
children: title
|
|
47
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
48
|
-
variants: {
|
|
49
|
-
open: { rotate: 180 },
|
|
50
|
-
closed: { rotate: 360 }
|
|
51
|
-
},
|
|
52
|
-
animate: isOpen ? "open" : "closed",
|
|
53
|
-
transition: {
|
|
54
|
-
duration: ANIMATION_DURATION,
|
|
55
|
-
ease: "easeOut"
|
|
56
|
-
},
|
|
57
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_ChevronDown.default, {})
|
|
58
|
-
})]
|
|
59
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
60
|
-
variants: {
|
|
61
|
-
open: {
|
|
62
|
-
height: "auto",
|
|
63
|
-
marginTop: "24px",
|
|
64
|
-
marginBottom: "24px"
|
|
65
|
-
},
|
|
66
|
-
closed: {
|
|
67
|
-
height: "0px",
|
|
68
|
-
marginTop: "0px",
|
|
69
|
-
marginBottom: "0px"
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
className: contentClasses,
|
|
73
|
-
initial: { height: 0 },
|
|
74
|
-
animate: isOpen ? "open" : "closed",
|
|
75
|
-
transition: {
|
|
76
|
-
duration: ANIMATION_DURATION,
|
|
77
|
-
ease: "easeOut"
|
|
78
|
-
},
|
|
79
|
-
ref: contentRef,
|
|
80
|
-
children: content
|
|
81
|
-
})] });
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
//#endregion
|
|
85
|
-
exports.Accordion = Accordion;
|
|
6
|
+
exports.Accordion = require_Accordion.Accordion;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime4 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_runtime4.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Accordion };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime9 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_runtime9.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Accordion };
|
package/dist/Accordion/index.js
CHANGED
|
@@ -1,79 +1,6 @@
|
|
|
1
1
|
import "../textVariantClasses-D77TGEy1.js";
|
|
2
|
-
import
|
|
2
|
+
import "../Text-Bod4OMPk.js";
|
|
3
3
|
import "../Text-BMsncrpY.js";
|
|
4
|
-
import {
|
|
5
|
-
import { useRef, useState } from "react";
|
|
6
|
-
import classNames from "classnames";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import ChevronDown from "@envive-ai/react-icons/ChevronDown";
|
|
4
|
+
import { Accordion } from "../Accordion-Cp3Hx2zm.js";
|
|
9
5
|
|
|
10
|
-
//#region src/components/Accordion/Accordion.tsx
|
|
11
|
-
const ANIMATION_DURATION = .3;
|
|
12
|
-
const Accordion = ({ title, content }) => {
|
|
13
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
14
|
-
const contentRef = useRef(null);
|
|
15
|
-
const titleWrapperClasses = classNames({
|
|
16
|
-
"spiffy-tw-border-b": true,
|
|
17
|
-
"spiffy-tw-border-[--spiffy-colors-border-light]": true,
|
|
18
|
-
"spiffy-tw-pb-2": true,
|
|
19
|
-
"spiffy-tw-flex": true,
|
|
20
|
-
"spiffy-tw-justify-between": true,
|
|
21
|
-
"spiffy-tw-items-center": true,
|
|
22
|
-
"spiffy-tw-w-full": true,
|
|
23
|
-
"spiffy-tw-group": true
|
|
24
|
-
});
|
|
25
|
-
const titleClasses = classNames({
|
|
26
|
-
"spiffy-tw-uppercase": true,
|
|
27
|
-
"spiffy-tw-text-[--spiffy-colors-text-primary]": true,
|
|
28
|
-
"!spiffy-tw-font-[400]": true,
|
|
29
|
-
"group-aria-expanded:!spiffy-tw-font-medium": true
|
|
30
|
-
});
|
|
31
|
-
const contentClasses = classNames({ "spiffy-tw-overflow-hidden": true });
|
|
32
|
-
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("button", {
|
|
33
|
-
"aria-expanded": isOpen,
|
|
34
|
-
type: "button",
|
|
35
|
-
className: titleWrapperClasses,
|
|
36
|
-
onClick: () => setIsOpen(!isOpen),
|
|
37
|
-
children: [/* @__PURE__ */ jsx(Text, {
|
|
38
|
-
variant: "body4",
|
|
39
|
-
className: titleClasses,
|
|
40
|
-
children: title
|
|
41
|
-
}), /* @__PURE__ */ jsx(motion.div, {
|
|
42
|
-
variants: {
|
|
43
|
-
open: { rotate: 180 },
|
|
44
|
-
closed: { rotate: 360 }
|
|
45
|
-
},
|
|
46
|
-
animate: isOpen ? "open" : "closed",
|
|
47
|
-
transition: {
|
|
48
|
-
duration: ANIMATION_DURATION,
|
|
49
|
-
ease: "easeOut"
|
|
50
|
-
},
|
|
51
|
-
children: /* @__PURE__ */ jsx(ChevronDown, {})
|
|
52
|
-
})]
|
|
53
|
-
}), /* @__PURE__ */ jsx(motion.div, {
|
|
54
|
-
variants: {
|
|
55
|
-
open: {
|
|
56
|
-
height: "auto",
|
|
57
|
-
marginTop: "24px",
|
|
58
|
-
marginBottom: "24px"
|
|
59
|
-
},
|
|
60
|
-
closed: {
|
|
61
|
-
height: "0px",
|
|
62
|
-
marginTop: "0px",
|
|
63
|
-
marginBottom: "0px"
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
className: contentClasses,
|
|
67
|
-
initial: { height: 0 },
|
|
68
|
-
animate: isOpen ? "open" : "closed",
|
|
69
|
-
transition: {
|
|
70
|
-
duration: ANIMATION_DURATION,
|
|
71
|
-
ease: "easeOut"
|
|
72
|
-
},
|
|
73
|
-
ref: contentRef,
|
|
74
|
-
children: content
|
|
75
|
-
})] });
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
//#endregion
|
|
79
6
|
export { Accordion };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Text } from "./Text-Bod4OMPk.js";
|
|
2
|
+
import { motion } from "framer-motion";
|
|
3
|
+
import { useRef, useState } from "react";
|
|
4
|
+
import classNames from "classnames";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import ChevronDown from "@envive-ai/react-icons/ChevronDown";
|
|
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 };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
const require_Text = require('./Text-MQjxqgZZ.cjs');
|
|
3
|
+
let framer_motion = require("framer-motion");
|
|
4
|
+
framer_motion = require_chunk.__toESM(framer_motion);
|
|
5
|
+
let react = require("react");
|
|
6
|
+
react = require_chunk.__toESM(react);
|
|
7
|
+
let classnames = require("classnames");
|
|
8
|
+
classnames = require_chunk.__toESM(classnames);
|
|
9
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
|
+
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
11
|
+
let __envive_ai_react_icons_ChevronDown = require("@envive-ai/react-icons/ChevronDown");
|
|
12
|
+
__envive_ai_react_icons_ChevronDown = require_chunk.__toESM(__envive_ai_react_icons_ChevronDown);
|
|
13
|
+
|
|
14
|
+
//#region src/components/Accordion/Accordion.tsx
|
|
15
|
+
const ANIMATION_DURATION = .3;
|
|
16
|
+
const Accordion = ({ title, content }) => {
|
|
17
|
+
const [isOpen, setIsOpen] = (0, react.useState)(false);
|
|
18
|
+
const contentRef = (0, react.useRef)(null);
|
|
19
|
+
const titleWrapperClasses = (0, classnames.default)({
|
|
20
|
+
"spiffy-tw-border-b": true,
|
|
21
|
+
"spiffy-tw-border-[--spiffy-colors-border-light]": true,
|
|
22
|
+
"spiffy-tw-pb-2": true,
|
|
23
|
+
"spiffy-tw-flex": true,
|
|
24
|
+
"spiffy-tw-justify-between": true,
|
|
25
|
+
"spiffy-tw-items-center": true,
|
|
26
|
+
"spiffy-tw-w-full": true,
|
|
27
|
+
"spiffy-tw-group": true
|
|
28
|
+
});
|
|
29
|
+
const titleClasses = (0, classnames.default)({
|
|
30
|
+
"spiffy-tw-uppercase": true,
|
|
31
|
+
"spiffy-tw-text-[--spiffy-colors-text-primary]": true,
|
|
32
|
+
"!spiffy-tw-font-[400]": true,
|
|
33
|
+
"group-aria-expanded:!spiffy-tw-font-medium": true
|
|
34
|
+
});
|
|
35
|
+
const contentClasses = (0, classnames.default)({ "spiffy-tw-overflow-hidden": true });
|
|
36
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
37
|
+
"aria-expanded": isOpen,
|
|
38
|
+
type: "button",
|
|
39
|
+
className: titleWrapperClasses,
|
|
40
|
+
onClick: () => setIsOpen(!isOpen),
|
|
41
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
|
|
42
|
+
variant: "body4",
|
|
43
|
+
className: titleClasses,
|
|
44
|
+
children: title
|
|
45
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
46
|
+
variants: {
|
|
47
|
+
open: { rotate: 180 },
|
|
48
|
+
closed: { rotate: 360 }
|
|
49
|
+
},
|
|
50
|
+
animate: isOpen ? "open" : "closed",
|
|
51
|
+
transition: {
|
|
52
|
+
duration: ANIMATION_DURATION,
|
|
53
|
+
ease: "easeOut"
|
|
54
|
+
},
|
|
55
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_ChevronDown.default, {})
|
|
56
|
+
})]
|
|
57
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
58
|
+
variants: {
|
|
59
|
+
open: {
|
|
60
|
+
height: "auto",
|
|
61
|
+
marginTop: "24px",
|
|
62
|
+
marginBottom: "24px"
|
|
63
|
+
},
|
|
64
|
+
closed: {
|
|
65
|
+
height: "0px",
|
|
66
|
+
marginTop: "0px",
|
|
67
|
+
marginBottom: "0px"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
className: contentClasses,
|
|
71
|
+
initial: { height: 0 },
|
|
72
|
+
animate: isOpen ? "open" : "closed",
|
|
73
|
+
transition: {
|
|
74
|
+
duration: ANIMATION_DURATION,
|
|
75
|
+
ease: "easeOut"
|
|
76
|
+
},
|
|
77
|
+
ref: contentRef,
|
|
78
|
+
children: content
|
|
79
|
+
})] });
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
//#endregion
|
|
83
|
+
Object.defineProperty(exports, 'Accordion', {
|
|
84
|
+
enumerable: true,
|
|
85
|
+
get: function () {
|
|
86
|
+
return Accordion;
|
|
87
|
+
}
|
|
88
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 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_runtime0.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { AppliedFiltersScrollbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime4 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_runtime4.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { AppliedFiltersScrollbar };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../textVariantClasses-Dgz7Zaql.cjs');
|
|
2
2
|
require('../Text-MQjxqgZZ.cjs');
|
|
3
|
-
const require_ButtonBase = require('../ButtonBase-
|
|
4
|
-
require('../ButtonBase-
|
|
3
|
+
const require_ButtonBase = require('../ButtonBase-Do88ndKa.cjs');
|
|
4
|
+
require('../ButtonBase-BIXx56hq.cjs');
|
|
5
5
|
|
|
6
6
|
exports.ButtonBase = require_ButtonBase.ButtonBase;
|
|
7
7
|
exports.ButtonBaseOverrides = require_ButtonBase.ButtonBaseOverrides;
|
package/dist/ButtonBase/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../textVariantClasses-D77TGEy1.js";
|
|
2
2
|
import "../Text-Bod4OMPk.js";
|
|
3
|
-
import { ButtonBase, ButtonBaseOverrides } from "../ButtonBase-
|
|
4
|
-
import "../ButtonBase-
|
|
3
|
+
import { ButtonBase, ButtonBaseOverrides } from "../ButtonBase-BAf-nlCm.js";
|
|
4
|
+
import "../ButtonBase-0NN6wmX-.js";
|
|
5
5
|
|
|
6
6
|
export { ButtonBase, ButtonBaseOverrides };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime8 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_runtime8.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { DynamicFiltersScrollbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime11 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_runtime11.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { DynamicFiltersScrollbar };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
require('../textVariantClasses-Dgz7Zaql.cjs');
|
|
2
2
|
require('../Text-MQjxqgZZ.cjs');
|
|
3
|
-
const require_DynamicFiltersScrollbar = require('../DynamicFiltersScrollbar-
|
|
3
|
+
const require_DynamicFiltersScrollbar = require('../DynamicFiltersScrollbar-CVw1PINp.cjs');
|
|
4
4
|
|
|
5
5
|
exports.AppliedFiltersScrollbar = require_DynamicFiltersScrollbar.AppliedFiltersScrollbar;
|
|
6
6
|
exports.DynamicFiltersScrollbar = require_DynamicFiltersScrollbar.DynamicFiltersScrollbar;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime17 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_runtime17.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_runtime17.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime21 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_runtime21.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_runtime21.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../textVariantClasses-D77TGEy1.js";
|
|
2
2
|
import "../Text-Bod4OMPk.js";
|
|
3
|
-
import { AppliedFiltersScrollbar, DynamicFiltersScrollbar } from "../DynamicFiltersScrollbar-
|
|
3
|
+
import { AppliedFiltersScrollbar, DynamicFiltersScrollbar } from "../DynamicFiltersScrollbar-C4kdNSJ9.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_runtime19 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_runtime19.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_runtime8 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_runtime8.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_runtime9 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_runtime9.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_runtime10 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_runtime10.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { ImageWithFallback, ImageWithFallbackProps };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/ModalSheet/types.d.ts
|
|
4
|
+
type ModalSheetProps = {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
closeModal: () => void;
|
|
8
|
+
desktopWidth?: number;
|
|
9
|
+
mobileFullHeight?: number;
|
|
10
|
+
animationDuration?: number;
|
|
11
|
+
headerProps: ModalSheetHeaderProps;
|
|
12
|
+
footerProps?: ModalSheetFooterProps;
|
|
13
|
+
showOverlay?: boolean;
|
|
14
|
+
};
|
|
15
|
+
type ModalSheetHeaderProps = {
|
|
16
|
+
headerVariant?: ModalSheetHeaderVariant;
|
|
17
|
+
headerContent: React.ReactNode;
|
|
18
|
+
handleHeaderClick?: () => void;
|
|
19
|
+
chevronColor: string;
|
|
20
|
+
};
|
|
21
|
+
type ModalSheetFooterProps = {
|
|
22
|
+
footerContent: React.ReactNode;
|
|
23
|
+
footerClassName?: string;
|
|
24
|
+
};
|
|
25
|
+
type ModalSheetHeaderVariant = 'primary';
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/components/ModalSheet/ModalSheet.d.ts
|
|
28
|
+
declare const ModalSheet: ({
|
|
29
|
+
children,
|
|
30
|
+
isOpen,
|
|
31
|
+
closeModal,
|
|
32
|
+
animationDuration,
|
|
33
|
+
desktopWidth,
|
|
34
|
+
headerProps,
|
|
35
|
+
footerProps
|
|
36
|
+
}: ModalSheetProps) => react_jsx_runtime13.JSX.Element;
|
|
37
|
+
//#endregion
|
|
38
|
+
export { ModalSheet };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/ModalSheet/types.d.ts
|
|
4
|
+
type ModalSheetProps = {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
closeModal: () => void;
|
|
8
|
+
desktopWidth?: number;
|
|
9
|
+
mobileFullHeight?: number;
|
|
10
|
+
animationDuration?: number;
|
|
11
|
+
headerProps: ModalSheetHeaderProps;
|
|
12
|
+
footerProps?: ModalSheetFooterProps;
|
|
13
|
+
showOverlay?: boolean;
|
|
14
|
+
};
|
|
15
|
+
type ModalSheetHeaderProps = {
|
|
16
|
+
headerVariant?: ModalSheetHeaderVariant;
|
|
17
|
+
headerContent: React.ReactNode;
|
|
18
|
+
handleHeaderClick?: () => void;
|
|
19
|
+
chevronColor: string;
|
|
20
|
+
};
|
|
21
|
+
type ModalSheetFooterProps = {
|
|
22
|
+
footerContent: React.ReactNode;
|
|
23
|
+
footerClassName?: string;
|
|
24
|
+
};
|
|
25
|
+
type ModalSheetHeaderVariant = 'primary';
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/components/ModalSheet/ModalSheet.d.ts
|
|
28
|
+
declare const ModalSheet: ({
|
|
29
|
+
children,
|
|
30
|
+
isOpen,
|
|
31
|
+
closeModal,
|
|
32
|
+
animationDuration,
|
|
33
|
+
desktopWidth,
|
|
34
|
+
headerProps,
|
|
35
|
+
footerProps
|
|
36
|
+
}: ModalSheetProps) => react_jsx_runtime13.JSX.Element;
|
|
37
|
+
//#endregion
|
|
38
|
+
export { ModalSheet };
|