@envive-ai/react-toolkit 0.2.1 → 0.2.3
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 +4 -0
- package/dist/Accordion/index.d.cts +13 -0
- package/dist/Accordion/index.d.ts +13 -0
- package/dist/Accordion/index.js +4 -0
- package/dist/Accordion-DxtXK__u.js +77 -0
- package/dist/Accordion-RpyCFs2a.cjs +88 -0
- package/dist/AnimatedChevron/index.cjs +3 -0
- package/dist/AnimatedChevron/index.d.cts +14 -0
- package/dist/AnimatedChevron/index.d.ts +14 -0
- package/dist/AnimatedChevron/index.js +3 -0
- package/dist/AnimatedChevron-Bik7GMSe.js +29 -0
- package/dist/AnimatedChevron-Q96FneFy.cjs +37 -0
- package/dist/AppliedFiltersScrollbar/index.cjs +46 -0
- package/dist/AppliedFiltersScrollbar/index.d.cts +22 -0
- package/dist/AppliedFiltersScrollbar/index.d.ts +22 -0
- package/dist/AppliedFiltersScrollbar/index.js +42 -0
- package/dist/ButtonBase/index.cjs +6 -0
- package/dist/ButtonBase/index.d.cts +42 -0
- package/dist/ButtonBase/index.d.ts +42 -0
- package/dist/ButtonBase/index.js +5 -0
- package/dist/ButtonBase-6wjsZ1tU.js +60 -0
- package/dist/ButtonBase-AU23oGQr.cjs +75 -0
- package/dist/ButtonBase-C_uKnl48.js +1 -0
- package/dist/ButtonBase-DbWQ25n-.cjs +0 -0
- package/dist/DynamicFiltersScrollbar/index.cjs +34 -0
- package/dist/DynamicFiltersScrollbar/index.d.cts +28 -0
- package/dist/DynamicFiltersScrollbar/index.d.ts +28 -0
- package/dist/DynamicFiltersScrollbar/index.js +30 -0
- package/dist/DynamicFiltersScrollbar-50i_InZz.cjs +81 -0
- package/dist/DynamicFiltersScrollbar-AhyHehrB.js +66 -0
- package/dist/FilterScrollbar/index.cjs +5 -0
- package/dist/FilterScrollbar/index.d.cts +47 -0
- package/dist/FilterScrollbar/index.d.ts +47 -0
- package/dist/FilterScrollbar/index.js +4 -0
- package/dist/ImageWithFallback/index.cjs +3 -0
- package/dist/ImageWithFallback/index.d.cts +26 -0
- package/dist/ImageWithFallback/index.d.ts +26 -0
- package/dist/ImageWithFallback/index.js +3 -0
- package/dist/ImageWithFallback-1LqhQK1q.cjs +51 -0
- package/dist/ImageWithFallback-Ckwsmd8P.js +42 -0
- package/dist/ModalSheet/index.cjs +4 -0
- package/dist/ModalSheet/index.d.cts +38 -0
- package/dist/ModalSheet/index.d.ts +38 -0
- package/dist/ModalSheet/index.js +4 -0
- package/dist/ModalSheet-BSj_g9JF.js +302 -0
- package/dist/ModalSheet-CcthFeMD.cjs +313 -0
- package/dist/ProductCard/index.cjs +15 -0
- package/dist/ProductCard/index.d.cts +2 -0
- package/dist/ProductCard/index.d.ts +2 -0
- package/dist/ProductCard/index.js +6 -0
- package/dist/ProductCard-2aPkjS8z.js +254 -0
- package/dist/ProductCard-D1F9A8Rw.cjs +318 -0
- package/dist/ProductGrid/index.cjs +8 -0
- package/dist/ProductGrid/index.d.cts +33 -0
- package/dist/ProductGrid/index.d.ts +33 -0
- package/dist/ProductGrid/index.js +7 -0
- package/dist/ProductGrid-Dcy7JxVN.cjs +74 -0
- package/dist/ProductGrid-NtuMrOtp.js +60 -0
- package/dist/RadioButton/index.cjs +4 -0
- package/dist/RadioButton/index.d.cts +32 -0
- package/dist/RadioButton/index.d.ts +32 -0
- package/dist/RadioButton/index.js +4 -0
- package/dist/RadioButton-C_soBi7w.js +75 -0
- package/dist/RadioButton-DG0PgZbz.cjs +84 -0
- package/dist/RadioButtonGroup/index.cjs +6 -0
- package/dist/RadioButtonGroup/index.d.cts +36 -0
- package/dist/RadioButtonGroup/index.d.ts +36 -0
- package/dist/RadioButtonGroup/index.js +5 -0
- package/dist/RadioButtonGroup-3t2kqSFA.cjs +52 -0
- package/dist/RadioButtonGroup-DMbVgPQH.js +38 -0
- package/dist/SearchAutocomplete/index.cjs +3 -0
- package/dist/SearchAutocomplete/index.d.cts +13 -0
- package/dist/SearchAutocomplete/index.d.ts +13 -0
- package/dist/SearchAutocomplete/index.js +3 -0
- package/dist/SearchAutocomplete-TX8UTczp.cjs +62 -0
- package/dist/SearchAutocomplete-obO19yzL.js +51 -0
- package/dist/SearchFilter/index.cjs +17 -0
- package/dist/SearchFilter/index.d.cts +91 -0
- package/dist/SearchFilter/index.d.ts +91 -0
- package/dist/SearchFilter/index.js +12 -0
- package/dist/SearchFilter-BQW4o3Xf.js +268 -0
- package/dist/SearchFilter-t9or-lnj.cjs +307 -0
- package/dist/SearchInput/index.cjs +8 -0
- package/dist/SearchInput/index.d.cts +34 -0
- package/dist/SearchInput/index.d.ts +34 -0
- package/dist/SearchInput/index.js +7 -0
- package/dist/SearchInput-BaiWd0_O.js +108 -0
- package/dist/SearchInput-CO1poiit.cjs +124 -0
- package/dist/SearchInputForm/index.cjs +40 -0
- package/dist/SearchInputForm/index.d.cts +34 -0
- package/dist/SearchInputForm/index.d.ts +34 -0
- package/dist/SearchInputForm/index.js +38 -0
- package/dist/SearchResultsContent/index.cjs +44 -0
- package/dist/SearchResultsContent/index.d.cts +48 -0
- package/dist/SearchResultsContent/index.d.ts +48 -0
- package/dist/SearchResultsContent/index.js +41 -0
- package/dist/SearchResultsFilterSidebar/index.cjs +59 -0
- package/dist/SearchResultsFilterSidebar/index.d.cts +2 -0
- package/dist/SearchResultsFilterSidebar/index.d.ts +2 -0
- package/dist/SearchResultsFilterSidebar/index.js +55 -0
- package/dist/SearchResultsStates/index.cjs +14 -0
- package/dist/SearchResultsStates/index.d.cts +69 -0
- package/dist/SearchResultsStates/index.d.ts +69 -0
- package/dist/SearchResultsStates/index.js +12 -0
- package/dist/SearchResultsStates-CalOf6QP.js +110 -0
- package/dist/SearchResultsStates-DQlstrHd.cjs +132 -0
- package/dist/SettingsVariant-BsBbdjV5.cjs +63 -0
- package/dist/SettingsVariant-CUSFlJEu.js +55 -0
- package/dist/SparkleAnimation/index.cjs +4 -0
- package/dist/SparkleAnimation/index.d.cts +23 -0
- package/dist/SparkleAnimation/index.d.ts +23 -0
- package/dist/SparkleAnimation/index.js +3 -0
- package/dist/SparkleAnimation-Bm3fk2FJ.cjs +101 -0
- package/dist/SparkleAnimation-D1QjYho_.js +84 -0
- package/dist/Spinner/index.cjs +3 -0
- package/dist/Spinner/index.d.cts +11 -0
- package/dist/Spinner/index.d.ts +11 -0
- package/dist/Spinner/index.js +3 -0
- package/dist/Spinner-B1IEMa00.cjs +46 -0
- package/dist/Spinner-BrHoB-Zg.js +38 -0
- package/dist/SuggestionButton/index.cjs +187 -0
- package/dist/SuggestionButton/index.d.cts +35 -0
- package/dist/SuggestionButton/index.d.ts +35 -0
- package/dist/SuggestionButton/index.js +179 -0
- package/dist/TextInput/index.cjs +4 -0
- package/dist/TextInput/index.d.cts +13 -0
- package/dist/TextInput/index.d.ts +13 -0
- package/dist/TextInput/index.js +4 -0
- package/dist/TextInput-B_4Bu2vf.js +31 -0
- package/dist/TextInput-iAKCKHwT.cjs +40 -0
- package/dist/ToggleButton/index.cjs +4 -0
- package/dist/ToggleButton/index.d.cts +30 -0
- package/dist/ToggleButton/index.d.ts +30 -0
- package/dist/ToggleButton/index.js +4 -0
- package/dist/ToggleButton-Br6MgjiG.js +60 -0
- package/dist/ToggleButton-CJ74eu-N.cjs +68 -0
- package/dist/Typography/index.cjs +6 -0
- package/dist/Typography/index.d.cts +3 -0
- package/dist/Typography/index.d.ts +3 -0
- package/dist/Typography/index.js +3 -0
- package/dist/Typography-CFNWgbM5.cjs +176 -0
- package/dist/Typography-D3vDkBMS.js +150 -0
- package/dist/chunk-CUT6urMc.cjs +30 -0
- package/dist/colorsConfig-D-MZuBvt.cjs +38 -0
- package/dist/colorsConfig-DEfiLHH0.js +26 -0
- package/dist/index-B-5pBFE7.d.cts +46 -0
- package/dist/index-BH-QK27q.d.ts +31 -0
- package/dist/index-BMHF0IWd.d.cts +31 -0
- package/dist/index-BcvJf9Sr.d.ts +46 -0
- package/dist/index-BzY_al-V.d.ts +325 -0
- package/dist/index-cx3r6TgQ.d.cts +325 -0
- package/dist/searchFilterSidebarVariants-BD4SYugF.js +34 -0
- package/dist/searchFilterSidebarVariants-DXabOauB.cjs +39 -0
- package/dist/types-BhGjnuWx.d.cts +4 -0
- package/dist/types-CGRog8XL.d.ts +4 -0
- package/dist/typographyVariantClasses-COmQXqcN.d.ts +119 -0
- package/dist/typographyVariantClasses-DTSltxPN.d.cts +119 -0
- package/package.json +3 -3
- package/src/components/AnimatedChevron/AnimatedChevron.tsx +1 -2
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as react_jsx_runtime27 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/ToggleButton/ToggleButton.d.ts
|
|
4
|
+
type ToggleButtonProps = {
|
|
5
|
+
isSelected: boolean;
|
|
6
|
+
variant: ToggleButtonVariant;
|
|
7
|
+
onClick: () => void;
|
|
8
|
+
label: string;
|
|
9
|
+
buttonClassName?: string;
|
|
10
|
+
labelClassName?: string;
|
|
11
|
+
secondaryLabel?: string;
|
|
12
|
+
secondaryLabelClassName?: string;
|
|
13
|
+
icon?: React.ReactNode;
|
|
14
|
+
iconClassName?: string;
|
|
15
|
+
};
|
|
16
|
+
type ToggleButtonVariant = 'default';
|
|
17
|
+
declare const ToggleButton: ({
|
|
18
|
+
isSelected,
|
|
19
|
+
onClick,
|
|
20
|
+
label,
|
|
21
|
+
buttonClassName,
|
|
22
|
+
labelClassName,
|
|
23
|
+
secondaryLabel,
|
|
24
|
+
secondaryLabelClassName,
|
|
25
|
+
icon,
|
|
26
|
+
iconClassName,
|
|
27
|
+
variant
|
|
28
|
+
}: ToggleButtonProps) => react_jsx_runtime27.JSX.Element;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { ToggleButton, ToggleButtonProps, ToggleButtonVariant };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Typography } from "./Typography-D3vDkBMS.js";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ToggleButton/ToggleButton.tsx
|
|
6
|
+
const toggleButtonVariants = { default: {
|
|
7
|
+
button: ({ isSelected }) => classNames({
|
|
8
|
+
"spiffy-tw-bg-[--spiffy-colors-background-dark]": isSelected,
|
|
9
|
+
"spiffy-tw-border-[--spiffy-colors-background-dark]": isSelected,
|
|
10
|
+
"spiffy-tw-text-[--spiffy-colors-text-light]": isSelected,
|
|
11
|
+
"hover:spiffy-tw-bg-[--spiffy-colors-background-secondary-dark]": true,
|
|
12
|
+
"hover:spiffy-tw-text-[--spiffy-colors-text-primary]": isSelected,
|
|
13
|
+
"spiffy-tw-bg-[--spiffy-colors-background-light]": !isSelected,
|
|
14
|
+
"spiffy-tw-border-[--spiffy-colors-border-light]": !isSelected,
|
|
15
|
+
"spiffy-tw-text-[--spiffy-colors-text-primary]": !isSelected
|
|
16
|
+
}),
|
|
17
|
+
label: () => "",
|
|
18
|
+
secondaryLabel: ({ isSelected }) => classNames({
|
|
19
|
+
"spiffy-tw-text-[--spiffy-colors-text-secondary]": !isSelected,
|
|
20
|
+
"hover:spiffy-tw-text-[--spiffy-colors-text-secondary]": !isSelected
|
|
21
|
+
})
|
|
22
|
+
} };
|
|
23
|
+
const ToggleButton = ({ isSelected, onClick, label, buttonClassName, labelClassName, secondaryLabel, secondaryLabelClassName, icon, iconClassName, variant }) => {
|
|
24
|
+
const buttonClassNames = classNames({
|
|
25
|
+
"spiffy-tw-flex": true,
|
|
26
|
+
"spiffy-tw-items-center": true,
|
|
27
|
+
"spiffy-tw-gap-[4px]": true,
|
|
28
|
+
"spiffy-tw-cursor-pointer": true,
|
|
29
|
+
"spiffy-tw-py-[8px]": true,
|
|
30
|
+
"spiffy-tw-px-[12px]": true,
|
|
31
|
+
"spiffy-tw-rounded-[200px]": true,
|
|
32
|
+
"spiffy-tw-border": true
|
|
33
|
+
}, toggleButtonVariants?.[variant]?.button({ isSelected }), buttonClassName);
|
|
34
|
+
const labelClassNames = classNames({}, toggleButtonVariants?.[variant]?.label({ isSelected }), labelClassName);
|
|
35
|
+
const secondaryLabelClassNames = classNames({}, toggleButtonVariants?.[variant]?.secondaryLabel({ isSelected }), secondaryLabelClassName);
|
|
36
|
+
return /* @__PURE__ */ jsxs("button", {
|
|
37
|
+
className: buttonClassNames,
|
|
38
|
+
onClick,
|
|
39
|
+
type: "button",
|
|
40
|
+
children: [
|
|
41
|
+
icon && /* @__PURE__ */ jsx("div", {
|
|
42
|
+
className: iconClassName,
|
|
43
|
+
children: icon
|
|
44
|
+
}),
|
|
45
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
46
|
+
variant: "body3",
|
|
47
|
+
className: labelClassNames,
|
|
48
|
+
children: label
|
|
49
|
+
}),
|
|
50
|
+
secondaryLabel && /* @__PURE__ */ jsx(Typography, {
|
|
51
|
+
variant: "body4",
|
|
52
|
+
className: secondaryLabelClassNames,
|
|
53
|
+
children: secondaryLabel
|
|
54
|
+
})
|
|
55
|
+
]
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
//#endregion
|
|
60
|
+
export { ToggleButton };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
const require_Typography = require('./Typography-CFNWgbM5.cjs');
|
|
3
|
+
let classnames = require("classnames");
|
|
4
|
+
classnames = require_chunk.__toESM(classnames);
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
+
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
7
|
+
|
|
8
|
+
//#region src/components/ToggleButton/ToggleButton.tsx
|
|
9
|
+
const toggleButtonVariants = { default: {
|
|
10
|
+
button: ({ isSelected }) => (0, classnames.default)({
|
|
11
|
+
"spiffy-tw-bg-[--spiffy-colors-background-dark]": isSelected,
|
|
12
|
+
"spiffy-tw-border-[--spiffy-colors-background-dark]": isSelected,
|
|
13
|
+
"spiffy-tw-text-[--spiffy-colors-text-light]": isSelected,
|
|
14
|
+
"hover:spiffy-tw-bg-[--spiffy-colors-background-secondary-dark]": true,
|
|
15
|
+
"hover:spiffy-tw-text-[--spiffy-colors-text-primary]": isSelected,
|
|
16
|
+
"spiffy-tw-bg-[--spiffy-colors-background-light]": !isSelected,
|
|
17
|
+
"spiffy-tw-border-[--spiffy-colors-border-light]": !isSelected,
|
|
18
|
+
"spiffy-tw-text-[--spiffy-colors-text-primary]": !isSelected
|
|
19
|
+
}),
|
|
20
|
+
label: () => "",
|
|
21
|
+
secondaryLabel: ({ isSelected }) => (0, classnames.default)({
|
|
22
|
+
"spiffy-tw-text-[--spiffy-colors-text-secondary]": !isSelected,
|
|
23
|
+
"hover:spiffy-tw-text-[--spiffy-colors-text-secondary]": !isSelected
|
|
24
|
+
})
|
|
25
|
+
} };
|
|
26
|
+
const ToggleButton = ({ isSelected, onClick, label, buttonClassName, labelClassName, secondaryLabel, secondaryLabelClassName, icon, iconClassName, variant }) => {
|
|
27
|
+
const buttonClassNames = (0, classnames.default)({
|
|
28
|
+
"spiffy-tw-flex": true,
|
|
29
|
+
"spiffy-tw-items-center": true,
|
|
30
|
+
"spiffy-tw-gap-[4px]": true,
|
|
31
|
+
"spiffy-tw-cursor-pointer": true,
|
|
32
|
+
"spiffy-tw-py-[8px]": true,
|
|
33
|
+
"spiffy-tw-px-[12px]": true,
|
|
34
|
+
"spiffy-tw-rounded-[200px]": true,
|
|
35
|
+
"spiffy-tw-border": true
|
|
36
|
+
}, toggleButtonVariants?.[variant]?.button({ isSelected }), buttonClassName);
|
|
37
|
+
const labelClassNames = (0, classnames.default)({}, toggleButtonVariants?.[variant]?.label({ isSelected }), labelClassName);
|
|
38
|
+
const secondaryLabelClassNames = (0, classnames.default)({}, toggleButtonVariants?.[variant]?.secondaryLabel({ isSelected }), secondaryLabelClassName);
|
|
39
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
40
|
+
className: buttonClassNames,
|
|
41
|
+
onClick,
|
|
42
|
+
type: "button",
|
|
43
|
+
children: [
|
|
44
|
+
icon && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
45
|
+
className: iconClassName,
|
|
46
|
+
children: icon
|
|
47
|
+
}),
|
|
48
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
49
|
+
variant: "body3",
|
|
50
|
+
className: labelClassNames,
|
|
51
|
+
children: label
|
|
52
|
+
}),
|
|
53
|
+
secondaryLabel && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
54
|
+
variant: "body4",
|
|
55
|
+
className: secondaryLabelClassNames,
|
|
56
|
+
children: secondaryLabel
|
|
57
|
+
})
|
|
58
|
+
]
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
//#endregion
|
|
63
|
+
Object.defineProperty(exports, 'ToggleButton', {
|
|
64
|
+
enumerable: true,
|
|
65
|
+
get: function () {
|
|
66
|
+
return ToggleButton;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
const require_Typography = require('../Typography-CFNWgbM5.cjs');
|
|
2
|
+
|
|
3
|
+
exports.Typography = require_Typography.Typography;
|
|
4
|
+
exports.TypographyDomVariantMap = require_Typography.TypographyDomVariantMap;
|
|
5
|
+
exports.TypographyVariantMap = require_Typography.TypographyVariantMap;
|
|
6
|
+
exports.getVariantPlaceholderClassNames = require_Typography.getVariantPlaceholderClassNames;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ElementTypes, TypographyDomVariantMap, TypographyVariantMap, getVariantPlaceholderClassNames } from "../typographyVariantClasses-DTSltxPN.cjs";
|
|
2
|
+
import { Typography, TypographyProps } from "../index-BMHF0IWd.cjs";
|
|
3
|
+
export { ElementTypes, Typography, TypographyDomVariantMap, TypographyProps, TypographyVariantMap, getVariantPlaceholderClassNames };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ElementTypes, TypographyDomVariantMap, TypographyVariantMap, getVariantPlaceholderClassNames } from "../typographyVariantClasses-COmQXqcN.js";
|
|
2
|
+
import { Typography, TypographyProps } from "../index-BH-QK27q.js";
|
|
3
|
+
export { ElementTypes, Typography, TypographyDomVariantMap, TypographyProps, TypographyVariantMap, getVariantPlaceholderClassNames };
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
let react = require("react");
|
|
3
|
+
react = require_chunk.__toESM(react);
|
|
4
|
+
let classnames = require("classnames");
|
|
5
|
+
classnames = require_chunk.__toESM(classnames);
|
|
6
|
+
|
|
7
|
+
//#region src/components/Typography/typographyVariantClasses.ts
|
|
8
|
+
const TypographyDomVariantMap = {
|
|
9
|
+
["h1"]: {
|
|
10
|
+
"spiffy-headline": true,
|
|
11
|
+
"spiffy-headline-1": true,
|
|
12
|
+
"spiffy-tw-text-[20px]": true,
|
|
13
|
+
"spiffy-tw-font-normal": true,
|
|
14
|
+
"spiffy-tw-leading-[120%]": true
|
|
15
|
+
},
|
|
16
|
+
["h2"]: {
|
|
17
|
+
"spiffy-headline": true,
|
|
18
|
+
"spiffy-headline-2": true,
|
|
19
|
+
"spiffy-tw-text-[16px]": true,
|
|
20
|
+
"spiffy-tw-font-normal": true,
|
|
21
|
+
"spiffy-tw-leading-[124%]": true
|
|
22
|
+
},
|
|
23
|
+
["h3"]: {
|
|
24
|
+
"spiffy-headline": true,
|
|
25
|
+
"spiffy-headline-3": true,
|
|
26
|
+
"spiffy-tw-text-[15px]": true,
|
|
27
|
+
"spiffy-tw-font-medium": true,
|
|
28
|
+
"spiffy-tw-leading-[124%]": true
|
|
29
|
+
},
|
|
30
|
+
["h4"]: {
|
|
31
|
+
"spiffy-headline": true,
|
|
32
|
+
"spiffy-headline-4": true,
|
|
33
|
+
"spiffy-tw-text-[14px]": true,
|
|
34
|
+
"spiffy-tw-font-medium": true,
|
|
35
|
+
"spiffy-tw-leading-[124%]": true
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
const TypographyVariantMap = {
|
|
39
|
+
...TypographyDomVariantMap,
|
|
40
|
+
["t1"]: {
|
|
41
|
+
"spiffy-headline": true,
|
|
42
|
+
"spiffy-headline-1": true,
|
|
43
|
+
"spiffy-tw-text-[32px]": true,
|
|
44
|
+
"spiffy-tw-font-medium": true,
|
|
45
|
+
"spiffy-tw-leading-[124%]": true
|
|
46
|
+
},
|
|
47
|
+
["t2"]: {
|
|
48
|
+
"spiffy-headline": true,
|
|
49
|
+
"spiffy-headline-1": true,
|
|
50
|
+
"spiffy-tw-text-[16px]": true,
|
|
51
|
+
"spiffy-tw-font-medium": true,
|
|
52
|
+
"spiffy-tw-leading-[124%]": true
|
|
53
|
+
},
|
|
54
|
+
["t3"]: {
|
|
55
|
+
"spiffy-headline": true,
|
|
56
|
+
"spiffy-headline-1": true,
|
|
57
|
+
"spiffy-tw-text-[24px]": true,
|
|
58
|
+
"spiffy-tw-leading-[120%]": true
|
|
59
|
+
},
|
|
60
|
+
["body1"]: {
|
|
61
|
+
"spiffy-body-text": true,
|
|
62
|
+
"spiffy-body-1": true,
|
|
63
|
+
"spiffy-tw-text-[20px]": true,
|
|
64
|
+
"spiffy-tw-font-normal": true,
|
|
65
|
+
"spiffy-tw-line-height-[120%]": true
|
|
66
|
+
},
|
|
67
|
+
["body2"]: {
|
|
68
|
+
"spiffy-body-text": true,
|
|
69
|
+
"spiffy-body-2": true,
|
|
70
|
+
"spiffy-tw-text-[16px]": true,
|
|
71
|
+
"spiffy-tw-font-normal": true,
|
|
72
|
+
"spiffy-tw-line-height-[148%]": true
|
|
73
|
+
},
|
|
74
|
+
["body3"]: {
|
|
75
|
+
"spiffy-body-text": true,
|
|
76
|
+
"spiffy-body-3": true,
|
|
77
|
+
"spiffy-tw-text-sm": true,
|
|
78
|
+
"spiffy-tw-font-normal": true,
|
|
79
|
+
"spiffy-tw-leading-[140%]": true
|
|
80
|
+
},
|
|
81
|
+
["body4"]: {
|
|
82
|
+
"spiffy-body-text": true,
|
|
83
|
+
"spiffy-body-4": true,
|
|
84
|
+
"spiffy-tw-text-xs": true,
|
|
85
|
+
"spiffy-tw-font-medium": true,
|
|
86
|
+
"spiffy-tw-leading-[130%]": true
|
|
87
|
+
},
|
|
88
|
+
["body5"]: {
|
|
89
|
+
"spiffy-body-text": true,
|
|
90
|
+
"spiffy-body-5": true,
|
|
91
|
+
"spiffy-tw-text-[10px]": true,
|
|
92
|
+
"spiffy-tw-font-normal": true
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
const getVariantPlaceholderClassNames = (classes) => Object.keys(classes).reduce((acc, key) => {
|
|
96
|
+
if (key.includes("spiffy-tw")) acc[`placeholder:${key}`] = classes[key];
|
|
97
|
+
else acc[`${key}-placeholder`] = classes[key];
|
|
98
|
+
return acc;
|
|
99
|
+
}, {});
|
|
100
|
+
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region src/components/Typography/util.ts
|
|
103
|
+
const getElementTypeFromVariant = (variant, isHeadline) => {
|
|
104
|
+
if (isHeadline) return (TypographyDomVariantMap[variant] ? variant : null) || "h3";
|
|
105
|
+
return "span";
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/components/Typography/Typography.tsx
|
|
110
|
+
const Typography = ({ children, className, style, noOfLines, testId, elementType, variant = "body3", id }) => {
|
|
111
|
+
const variantClassNames = variant ? TypographyVariantMap[variant] : {};
|
|
112
|
+
const isHeadline = (0, react.useCallback)(() => [
|
|
113
|
+
"t1",
|
|
114
|
+
"t2",
|
|
115
|
+
"t3",
|
|
116
|
+
"h1",
|
|
117
|
+
"h2",
|
|
118
|
+
"h3",
|
|
119
|
+
"h4"
|
|
120
|
+
].includes(variant), [variant]);
|
|
121
|
+
const renderedElementType = (0, react.useMemo)(() => {
|
|
122
|
+
if (elementType) return elementType;
|
|
123
|
+
if (!elementType) {
|
|
124
|
+
if (isHeadline()) return getElementTypeFromVariant(variant, isHeadline());
|
|
125
|
+
}
|
|
126
|
+
return "span";
|
|
127
|
+
}, [
|
|
128
|
+
isHeadline,
|
|
129
|
+
variant,
|
|
130
|
+
elementType
|
|
131
|
+
]);
|
|
132
|
+
const textClassNames = (0, classnames.default)(className, variantClassNames, {
|
|
133
|
+
"spiffy-tw-font-[Poppins,sans-serif]": isHeadline(),
|
|
134
|
+
"spiffy-tw-font-[\"Inter Variable,sans-serif\"]": !isHeadline(),
|
|
135
|
+
"spiffy-tw-line-clamp-1": noOfLines === 1,
|
|
136
|
+
"spiffy-tw-line-clamp-2": noOfLines === 2,
|
|
137
|
+
"spiffy-tw-line-clamp-3": noOfLines === 3,
|
|
138
|
+
"spiffy-tw-line-clamp-4": noOfLines === 4,
|
|
139
|
+
"spiffy-tw-line-clamp-5": noOfLines === 5,
|
|
140
|
+
"spiffy-tw-line-clamp-6": noOfLines === 6,
|
|
141
|
+
"spiffy-tw-line-clamp-7": noOfLines === 7
|
|
142
|
+
});
|
|
143
|
+
const renderElement = (elementTypeToRender) => react.default.createElement(elementTypeToRender, {
|
|
144
|
+
"data-testid": testId,
|
|
145
|
+
className: textClassNames,
|
|
146
|
+
style,
|
|
147
|
+
id
|
|
148
|
+
}, children);
|
|
149
|
+
return renderElement(renderedElementType);
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
//#endregion
|
|
153
|
+
Object.defineProperty(exports, 'Typography', {
|
|
154
|
+
enumerable: true,
|
|
155
|
+
get: function () {
|
|
156
|
+
return Typography;
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
Object.defineProperty(exports, 'TypographyDomVariantMap', {
|
|
160
|
+
enumerable: true,
|
|
161
|
+
get: function () {
|
|
162
|
+
return TypographyDomVariantMap;
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
Object.defineProperty(exports, 'TypographyVariantMap', {
|
|
166
|
+
enumerable: true,
|
|
167
|
+
get: function () {
|
|
168
|
+
return TypographyVariantMap;
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
Object.defineProperty(exports, 'getVariantPlaceholderClassNames', {
|
|
172
|
+
enumerable: true,
|
|
173
|
+
get: function () {
|
|
174
|
+
return getVariantPlaceholderClassNames;
|
|
175
|
+
}
|
|
176
|
+
});
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import React, { useCallback, useMemo } from "react";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
|
|
4
|
+
//#region src/components/Typography/typographyVariantClasses.ts
|
|
5
|
+
const TypographyDomVariantMap = {
|
|
6
|
+
["h1"]: {
|
|
7
|
+
"spiffy-headline": true,
|
|
8
|
+
"spiffy-headline-1": true,
|
|
9
|
+
"spiffy-tw-text-[20px]": true,
|
|
10
|
+
"spiffy-tw-font-normal": true,
|
|
11
|
+
"spiffy-tw-leading-[120%]": true
|
|
12
|
+
},
|
|
13
|
+
["h2"]: {
|
|
14
|
+
"spiffy-headline": true,
|
|
15
|
+
"spiffy-headline-2": true,
|
|
16
|
+
"spiffy-tw-text-[16px]": true,
|
|
17
|
+
"spiffy-tw-font-normal": true,
|
|
18
|
+
"spiffy-tw-leading-[124%]": true
|
|
19
|
+
},
|
|
20
|
+
["h3"]: {
|
|
21
|
+
"spiffy-headline": true,
|
|
22
|
+
"spiffy-headline-3": true,
|
|
23
|
+
"spiffy-tw-text-[15px]": true,
|
|
24
|
+
"spiffy-tw-font-medium": true,
|
|
25
|
+
"spiffy-tw-leading-[124%]": true
|
|
26
|
+
},
|
|
27
|
+
["h4"]: {
|
|
28
|
+
"spiffy-headline": true,
|
|
29
|
+
"spiffy-headline-4": true,
|
|
30
|
+
"spiffy-tw-text-[14px]": true,
|
|
31
|
+
"spiffy-tw-font-medium": true,
|
|
32
|
+
"spiffy-tw-leading-[124%]": true
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const TypographyVariantMap = {
|
|
36
|
+
...TypographyDomVariantMap,
|
|
37
|
+
["t1"]: {
|
|
38
|
+
"spiffy-headline": true,
|
|
39
|
+
"spiffy-headline-1": true,
|
|
40
|
+
"spiffy-tw-text-[32px]": true,
|
|
41
|
+
"spiffy-tw-font-medium": true,
|
|
42
|
+
"spiffy-tw-leading-[124%]": true
|
|
43
|
+
},
|
|
44
|
+
["t2"]: {
|
|
45
|
+
"spiffy-headline": true,
|
|
46
|
+
"spiffy-headline-1": true,
|
|
47
|
+
"spiffy-tw-text-[16px]": true,
|
|
48
|
+
"spiffy-tw-font-medium": true,
|
|
49
|
+
"spiffy-tw-leading-[124%]": true
|
|
50
|
+
},
|
|
51
|
+
["t3"]: {
|
|
52
|
+
"spiffy-headline": true,
|
|
53
|
+
"spiffy-headline-1": true,
|
|
54
|
+
"spiffy-tw-text-[24px]": true,
|
|
55
|
+
"spiffy-tw-leading-[120%]": true
|
|
56
|
+
},
|
|
57
|
+
["body1"]: {
|
|
58
|
+
"spiffy-body-text": true,
|
|
59
|
+
"spiffy-body-1": true,
|
|
60
|
+
"spiffy-tw-text-[20px]": true,
|
|
61
|
+
"spiffy-tw-font-normal": true,
|
|
62
|
+
"spiffy-tw-line-height-[120%]": true
|
|
63
|
+
},
|
|
64
|
+
["body2"]: {
|
|
65
|
+
"spiffy-body-text": true,
|
|
66
|
+
"spiffy-body-2": true,
|
|
67
|
+
"spiffy-tw-text-[16px]": true,
|
|
68
|
+
"spiffy-tw-font-normal": true,
|
|
69
|
+
"spiffy-tw-line-height-[148%]": true
|
|
70
|
+
},
|
|
71
|
+
["body3"]: {
|
|
72
|
+
"spiffy-body-text": true,
|
|
73
|
+
"spiffy-body-3": true,
|
|
74
|
+
"spiffy-tw-text-sm": true,
|
|
75
|
+
"spiffy-tw-font-normal": true,
|
|
76
|
+
"spiffy-tw-leading-[140%]": true
|
|
77
|
+
},
|
|
78
|
+
["body4"]: {
|
|
79
|
+
"spiffy-body-text": true,
|
|
80
|
+
"spiffy-body-4": true,
|
|
81
|
+
"spiffy-tw-text-xs": true,
|
|
82
|
+
"spiffy-tw-font-medium": true,
|
|
83
|
+
"spiffy-tw-leading-[130%]": true
|
|
84
|
+
},
|
|
85
|
+
["body5"]: {
|
|
86
|
+
"spiffy-body-text": true,
|
|
87
|
+
"spiffy-body-5": true,
|
|
88
|
+
"spiffy-tw-text-[10px]": true,
|
|
89
|
+
"spiffy-tw-font-normal": true
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
const getVariantPlaceholderClassNames = (classes) => Object.keys(classes).reduce((acc, key) => {
|
|
93
|
+
if (key.includes("spiffy-tw")) acc[`placeholder:${key}`] = classes[key];
|
|
94
|
+
else acc[`${key}-placeholder`] = classes[key];
|
|
95
|
+
return acc;
|
|
96
|
+
}, {});
|
|
97
|
+
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/components/Typography/util.ts
|
|
100
|
+
const getElementTypeFromVariant = (variant, isHeadline) => {
|
|
101
|
+
if (isHeadline) return (TypographyDomVariantMap[variant] ? variant : null) || "h3";
|
|
102
|
+
return "span";
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region src/components/Typography/Typography.tsx
|
|
107
|
+
const Typography = ({ children, className, style, noOfLines, testId, elementType, variant = "body3", id }) => {
|
|
108
|
+
const variantClassNames = variant ? TypographyVariantMap[variant] : {};
|
|
109
|
+
const isHeadline = useCallback(() => [
|
|
110
|
+
"t1",
|
|
111
|
+
"t2",
|
|
112
|
+
"t3",
|
|
113
|
+
"h1",
|
|
114
|
+
"h2",
|
|
115
|
+
"h3",
|
|
116
|
+
"h4"
|
|
117
|
+
].includes(variant), [variant]);
|
|
118
|
+
const renderedElementType = useMemo(() => {
|
|
119
|
+
if (elementType) return elementType;
|
|
120
|
+
if (!elementType) {
|
|
121
|
+
if (isHeadline()) return getElementTypeFromVariant(variant, isHeadline());
|
|
122
|
+
}
|
|
123
|
+
return "span";
|
|
124
|
+
}, [
|
|
125
|
+
isHeadline,
|
|
126
|
+
variant,
|
|
127
|
+
elementType
|
|
128
|
+
]);
|
|
129
|
+
const textClassNames = classNames(className, variantClassNames, {
|
|
130
|
+
"spiffy-tw-font-[Poppins,sans-serif]": isHeadline(),
|
|
131
|
+
"spiffy-tw-font-[\"Inter Variable,sans-serif\"]": !isHeadline(),
|
|
132
|
+
"spiffy-tw-line-clamp-1": noOfLines === 1,
|
|
133
|
+
"spiffy-tw-line-clamp-2": noOfLines === 2,
|
|
134
|
+
"spiffy-tw-line-clamp-3": noOfLines === 3,
|
|
135
|
+
"spiffy-tw-line-clamp-4": noOfLines === 4,
|
|
136
|
+
"spiffy-tw-line-clamp-5": noOfLines === 5,
|
|
137
|
+
"spiffy-tw-line-clamp-6": noOfLines === 6,
|
|
138
|
+
"spiffy-tw-line-clamp-7": noOfLines === 7
|
|
139
|
+
});
|
|
140
|
+
const renderElement = (elementTypeToRender) => React.createElement(elementTypeToRender, {
|
|
141
|
+
"data-testid": testId,
|
|
142
|
+
className: textClassNames,
|
|
143
|
+
style,
|
|
144
|
+
id
|
|
145
|
+
}, children);
|
|
146
|
+
return renderElement(renderedElementType);
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
//#endregion
|
|
150
|
+
export { Typography, TypographyDomVariantMap, TypographyVariantMap, getVariantPlaceholderClassNames };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//#region rolldown:runtime
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
+
key = keys[i];
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
+
get: ((k) => from[k]).bind(null, key),
|
|
13
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
+
value: mod,
|
|
20
|
+
enumerable: true
|
|
21
|
+
}) : target, mod));
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
|
|
25
|
+
Object.defineProperty(exports, '__toESM', {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return __toESM;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/models/colorsConfig.ts
|
|
3
|
+
var ColorNames = /* @__PURE__ */ function(ColorNames$1) {
|
|
4
|
+
ColorNames$1["TextPrimary"] = "text-primary";
|
|
5
|
+
ColorNames$1["TextSecondary"] = "text-secondary";
|
|
6
|
+
ColorNames$1["TextAccent"] = "text-accent";
|
|
7
|
+
ColorNames$1["TextLink"] = "text-link";
|
|
8
|
+
ColorNames$1["TextLight"] = "text-light";
|
|
9
|
+
ColorNames$1["BackgroundPrimary"] = "background-primary";
|
|
10
|
+
ColorNames$1["BackgroundSecondary"] = "background-secondary";
|
|
11
|
+
ColorNames$1["BackgroundSecondaryDark"] = "background-secondary-dark";
|
|
12
|
+
ColorNames$1["BackgroundTertiary"] = "background-tertiary";
|
|
13
|
+
ColorNames$1["BackgroundDark"] = "background-dark";
|
|
14
|
+
ColorNames$1["BackgroundLight"] = "background-light";
|
|
15
|
+
ColorNames$1["BackgroundSaturated"] = "background-saturated";
|
|
16
|
+
ColorNames$1["BorderLight"] = "border-light";
|
|
17
|
+
ColorNames$1["BorderMedium"] = "border-medium";
|
|
18
|
+
ColorNames$1["BorderDark"] = "border-dark";
|
|
19
|
+
ColorNames$1["BorderOutline"] = "border-outline";
|
|
20
|
+
ColorNames$1["AccentPrimary"] = "accent-primary";
|
|
21
|
+
ColorNames$1["AccentSecondary"] = "accent-secondary";
|
|
22
|
+
return ColorNames$1;
|
|
23
|
+
}(ColorNames || {});
|
|
24
|
+
const colorVar = (color) => `var(--spiffy-colors-${color})`;
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
Object.defineProperty(exports, 'ColorNames', {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () {
|
|
30
|
+
return ColorNames;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(exports, 'colorVar', {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () {
|
|
36
|
+
return colorVar;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region src/models/colorsConfig.ts
|
|
2
|
+
var ColorNames = /* @__PURE__ */ function(ColorNames$1) {
|
|
3
|
+
ColorNames$1["TextPrimary"] = "text-primary";
|
|
4
|
+
ColorNames$1["TextSecondary"] = "text-secondary";
|
|
5
|
+
ColorNames$1["TextAccent"] = "text-accent";
|
|
6
|
+
ColorNames$1["TextLink"] = "text-link";
|
|
7
|
+
ColorNames$1["TextLight"] = "text-light";
|
|
8
|
+
ColorNames$1["BackgroundPrimary"] = "background-primary";
|
|
9
|
+
ColorNames$1["BackgroundSecondary"] = "background-secondary";
|
|
10
|
+
ColorNames$1["BackgroundSecondaryDark"] = "background-secondary-dark";
|
|
11
|
+
ColorNames$1["BackgroundTertiary"] = "background-tertiary";
|
|
12
|
+
ColorNames$1["BackgroundDark"] = "background-dark";
|
|
13
|
+
ColorNames$1["BackgroundLight"] = "background-light";
|
|
14
|
+
ColorNames$1["BackgroundSaturated"] = "background-saturated";
|
|
15
|
+
ColorNames$1["BorderLight"] = "border-light";
|
|
16
|
+
ColorNames$1["BorderMedium"] = "border-medium";
|
|
17
|
+
ColorNames$1["BorderDark"] = "border-dark";
|
|
18
|
+
ColorNames$1["BorderOutline"] = "border-outline";
|
|
19
|
+
ColorNames$1["AccentPrimary"] = "accent-primary";
|
|
20
|
+
ColorNames$1["AccentSecondary"] = "accent-secondary";
|
|
21
|
+
return ColorNames$1;
|
|
22
|
+
}(ColorNames || {});
|
|
23
|
+
const colorVar = (color) => `var(--spiffy-colors-${color})`;
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { ColorNames, colorVar };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
2
|
+
import { SearchFilterDatum, SelectFilterItem } from "@envive-ai/react-hooks/types";
|
|
3
|
+
|
|
4
|
+
//#region src/components/SearchResultsFilterSidebar/types.d.ts
|
|
5
|
+
type SearchFilterSidebarVariant = 'darkButton' | 'lightButton';
|
|
6
|
+
type CloseIconVariant$1 = 'light' | 'tertiary' | 'dark';
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.d.ts
|
|
9
|
+
interface SearchFilterSidebarVariantClasses {
|
|
10
|
+
searchFilterHeaderClasses: string;
|
|
11
|
+
radioButtonFillColor: string;
|
|
12
|
+
radioButtonHoverColor: string;
|
|
13
|
+
radioButtonUncheckedBorderColor: string;
|
|
14
|
+
filterDefaultClasses: string;
|
|
15
|
+
filterActiveClasses: string;
|
|
16
|
+
filterHoverClasses: string;
|
|
17
|
+
appliedFilterBackgroundClasses: string;
|
|
18
|
+
applyFiltersUnchangedClasses: string;
|
|
19
|
+
applyFiltersChangedClasses: string;
|
|
20
|
+
filterCloseIconVariant: CloseIconVariant$1;
|
|
21
|
+
}
|
|
22
|
+
declare const searchFilterSidebarVariantClasses: Record<SearchFilterSidebarVariant, SearchFilterSidebarVariantClasses>;
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/components/SearchResultsFilterSidebar/SearchResultsFilter.d.ts
|
|
25
|
+
type SearchResultsFilterProps = {
|
|
26
|
+
productCount: number;
|
|
27
|
+
isOpen: boolean;
|
|
28
|
+
setIsOpen: (isOpen: boolean) => void;
|
|
29
|
+
searchFilters: SearchFilterDatum[];
|
|
30
|
+
searchFilterSidebarVariant: SearchFilterSidebarVariant;
|
|
31
|
+
onSelectFilterItem: SelectFilterItem;
|
|
32
|
+
onClearAllFilters: () => void;
|
|
33
|
+
filterButtonText: string;
|
|
34
|
+
};
|
|
35
|
+
declare const SearchResultsFilter: ({
|
|
36
|
+
productCount,
|
|
37
|
+
isOpen,
|
|
38
|
+
setIsOpen,
|
|
39
|
+
searchFilters,
|
|
40
|
+
searchFilterSidebarVariant,
|
|
41
|
+
onSelectFilterItem,
|
|
42
|
+
onClearAllFilters,
|
|
43
|
+
filterButtonText
|
|
44
|
+
}: SearchResultsFilterProps) => react_jsx_runtime15.JSX.Element;
|
|
45
|
+
//#endregion
|
|
46
|
+
export { CloseIconVariant$1 as CloseIconVariant, SearchFilterSidebarVariant, SearchResultsFilter, SearchResultsFilterProps, searchFilterSidebarVariantClasses };
|