@envive-ai/react-toolkit 0.1.12 → 0.2.0
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 -3
- package/dist/Accordion/index.d.cts +2 -2
- package/dist/Accordion/index.d.ts +2 -2
- package/dist/Accordion/index.js +3 -3
- package/dist/{Accordion-DBZpiQe7.cjs → Accordion-D9gO9_y3.cjs} +1 -1
- package/dist/{Accordion-Cp3Hx2zm.js → Accordion-ZEdp99Ph.js} +1 -1
- package/dist/AnimatedChevron/index.cjs +3 -0
- package/dist/AnimatedChevron/index.d.cts +11 -0
- package/dist/AnimatedChevron/index.d.ts +11 -0
- package/dist/AnimatedChevron/index.js +3 -0
- package/dist/AnimatedChevron-CwuXgR2r.js +29 -0
- package/dist/AnimatedChevron-e_UzWBl0.cjs +37 -0
- package/dist/AppliedFiltersScrollbar/index.cjs +25 -27
- package/dist/AppliedFiltersScrollbar/index.d.ts +2 -2
- package/dist/AppliedFiltersScrollbar/index.js +25 -27
- package/dist/ButtonBase/index.cjs +4 -4
- package/dist/ButtonBase/index.d.cts +3 -4
- package/dist/ButtonBase/index.d.ts +2 -3
- package/dist/ButtonBase/index.js +4 -4
- package/dist/{ButtonBase-BAf-nlCm.js → ButtonBase-BJ0qXMWD.js} +3 -3
- package/dist/{ButtonBase-Do88ndKa.cjs → ButtonBase-VIv-tn7H.cjs} +3 -3
- package/dist/DynamicFiltersScrollbar/index.cjs +23 -25
- package/dist/DynamicFiltersScrollbar/index.d.cts +2 -2
- package/dist/DynamicFiltersScrollbar/index.d.ts +2 -2
- package/dist/DynamicFiltersScrollbar/index.js +23 -25
- package/dist/DynamicFiltersScrollbar-HCYZjI14.cjs +81 -0
- package/dist/DynamicFiltersScrollbar-O0ai3cIG.js +66 -0
- package/dist/FilterScrollbar/index.cjs +3 -3
- package/dist/FilterScrollbar/index.d.cts +3 -3
- package/dist/FilterScrollbar/index.d.ts +3 -3
- package/dist/FilterScrollbar/index.js +3 -3
- package/dist/Headline/index.cjs +2 -2
- package/dist/Headline/index.d.cts +2 -2
- package/dist/Headline/index.d.ts +2 -2
- package/dist/Headline/index.js +2 -2
- package/dist/{Headline-DTT4RSv2.cjs → Headline-CKJmd2w4.cjs} +1 -1
- package/dist/{Headline-DNEWF8ly.js → Headline-DtjTB4xS.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/ModalSheet/index.cjs +2 -1
- package/dist/ModalSheet/index.d.cts +2 -2
- package/dist/ModalSheet/index.d.ts +2 -2
- package/dist/ModalSheet/index.js +2 -1
- package/dist/{ModalSheet-Csz8HIxs.cjs → ModalSheet-DwnbbFh7.cjs} +2 -26
- package/dist/{ModalSheet-01pxpy_K.js → ModalSheet-sMg44OLz.js} +2 -26
- package/dist/ProductCard/index.cjs +6 -6
- package/dist/ProductCard/index.d.cts +1 -1
- package/dist/ProductCard/index.d.ts +1 -1
- package/dist/ProductCard/index.js +6 -6
- package/dist/{ProductCard-FDyIMnZs.cjs → ProductCard-BDz80MCQ.cjs} +34 -34
- package/dist/{ProductCard-C3MjnfZJ.js → ProductCard-CqhNJShq.js} +34 -34
- package/dist/ProductGrid/index.cjs +7 -7
- package/dist/ProductGrid/index.d.cts +4 -8
- package/dist/ProductGrid/index.d.ts +4 -8
- package/dist/ProductGrid/index.js +7 -7
- package/dist/{ProductGrid-C9OKsyB2.js → ProductGrid-8n4XgcMr.js} +3 -7
- package/dist/{ProductGrid-TlntVJ6h.cjs → ProductGrid-RRcdkY5J.cjs} +3 -7
- package/dist/RadioButton/index.cjs +3 -3
- package/dist/RadioButton/index.d.cts +5 -3
- package/dist/RadioButton/index.d.ts +5 -3
- package/dist/RadioButton/index.js +3 -3
- package/dist/{RadioButton-DZ6QXkrN.cjs → RadioButton-BWnaUI8o.cjs} +17 -10
- package/dist/{RadioButton-Bf68dZl7.js → RadioButton-CG8_M0hY.js} +18 -11
- package/dist/RadioButtonGroup/index.cjs +4 -4
- package/dist/RadioButtonGroup/index.d.cts +2 -2
- package/dist/RadioButtonGroup/index.d.ts +2 -2
- package/dist/RadioButtonGroup/index.js +4 -4
- package/dist/{RadioButtonGroup-8k7hkJYB.js → RadioButtonGroup-B7EuiEP1.js} +2 -1
- package/dist/{RadioButtonGroup-Dc_n5amh.cjs → RadioButtonGroup-ReQqakpS.cjs} +2 -1
- package/dist/SearchAutocomplete/index.cjs +1 -1
- package/dist/SearchAutocomplete/index.js +1 -1
- package/dist/SearchFilter/index.cjs +15 -11
- package/dist/SearchFilter/index.d.cts +20 -6
- package/dist/SearchFilter/index.d.ts +20 -6
- package/dist/SearchFilter/index.js +12 -11
- package/dist/{SearchFilter-DvqBIXa1.js → SearchFilter-C8mgj84o.js} +28 -18
- package/dist/{SearchFilter-CTVBi5s3.cjs → SearchFilter-FrdHPM5O.cjs} +45 -17
- package/dist/SearchInput/index.cjs +4 -4
- package/dist/SearchInput/index.d.cts +3 -2
- package/dist/SearchInput/index.d.ts +4 -3
- package/dist/SearchInput/index.js +4 -4
- package/dist/{SearchInput-vJMWoLzS.cjs → SearchInput--x9NTMTb.cjs} +2 -2
- package/dist/{SearchInput-CVaCPWCE.js → SearchInput-IBq83nqF.js} +2 -2
- package/dist/SearchInputForm/index.cjs +5 -5
- package/dist/SearchInputForm/index.d.cts +34 -2
- package/dist/SearchInputForm/index.d.ts +34 -2
- package/dist/SearchInputForm/index.js +5 -5
- package/dist/SearchResultsContent/index.cjs +36 -39
- package/dist/SearchResultsContent/index.d.cts +4 -6
- package/dist/SearchResultsContent/index.d.ts +4 -6
- package/dist/SearchResultsContent/index.js +36 -39
- package/dist/SearchResultsFilterSidebar/index.cjs +13 -12
- package/dist/SearchResultsFilterSidebar/index.d.cts +1 -1
- package/dist/SearchResultsFilterSidebar/index.d.ts +1 -1
- package/dist/SearchResultsFilterSidebar/index.js +13 -12
- package/dist/SearchResultsStates/index.cjs +12 -12
- package/dist/SearchResultsStates/index.d.cts +6 -8
- package/dist/SearchResultsStates/index.d.ts +6 -8
- package/dist/SearchResultsStates/index.js +12 -12
- package/dist/{SearchResultsStates-iKz64Pd4.js → SearchResultsStates-D7dM35qq.js} +8 -10
- package/dist/{SearchResultsStates-CH4agenX.cjs → SearchResultsStates-nlaPbkj3.cjs} +8 -10
- 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-qi5WCJ9B.cjs → SparkleAnimation-D1aZE-7A.cjs} +0 -1
- package/dist/{SparkleAnimation-BLfNojLv.js → SparkleAnimation-DtWkXmkN.js} +0 -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 +3 -3
- package/dist/SuggestionButton/index.d.ts +2 -2
- package/dist/SuggestionButton/index.js +3 -3
- package/dist/Text/index.cjs +2 -2
- package/dist/Text/index.d.cts +2 -2
- package/dist/Text/index.d.ts +3 -3
- package/dist/Text/index.js +2 -2
- package/dist/{Text-Bod4OMPk.js → Text-BLzNhX4H.js} +1 -1
- package/dist/{Text-MQjxqgZZ.cjs → Text-DllCE9_D.cjs} +1 -1
- package/dist/TextInput/index.cjs +2 -2
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +2 -2
- package/dist/{TextInput-DoM41M53.js → TextInput-BeHPlVHT.js} +1 -1
- package/dist/{TextInput-B3dTeD3q.cjs → TextInput-CGs4BY1q.cjs} +1 -1
- package/dist/ToggleButton/index.cjs +3 -3
- package/dist/ToggleButton/index.d.cts +2 -2
- package/dist/ToggleButton/index.d.ts +2 -2
- package/dist/ToggleButton/index.js +3 -3
- package/dist/{ToggleButton-GIVd2-Z4.js → ToggleButton-CRiPqTCb.js} +1 -1
- package/dist/{ToggleButton-CK_vkMvt.cjs → ToggleButton-DfJZ8POQ.cjs} +1 -1
- package/dist/{index-CFH3KUVw.d.cts → index-B9WeFNlO.d.cts} +5 -9
- package/dist/{index-B8l3muO3.d.ts → index-CLGe_Pam.d.cts} +2 -3
- package/dist/{index-Vck3pox6.d.ts → index-CeECGrFM.d.ts} +4 -8
- package/dist/{index-BMt66uqr.d.cts → index-PSzeHU2s.d.ts} +2 -3
- package/dist/{searchFilterSidebarVariants-CI782ylo.js → searchFilterSidebarVariants-B05f5SD5.js} +1 -1
- package/dist/{searchFilterSidebarVariants-DFfOTqjc.cjs → searchFilterSidebarVariants-NQhqq-NT.cjs} +1 -1
- package/dist/{textVariantClasses-Dgz7Zaql.cjs → textVariantClasses-CBre7vXv.cjs} +5 -7
- package/dist/{textVariantClasses-D77TGEy1.js → textVariantClasses-CRrTb43V.js} +5 -7
- package/dist/types-BhGjnuWx.d.cts +4 -0
- package/dist/types-CTOdb0G0.d.ts +4 -0
- package/package.json +7 -7
- package/src/atoms/search/types.ts +1 -5
- package/src/components/AnimatedChevron/index.ts +1 -0
- package/src/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.tsx +25 -27
- package/src/components/ButtonBase/ButtonBase.tsx +1 -2
- package/src/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.tsx +26 -28
- package/src/components/FilterScrollbar/AppliedFiltersScrollbar.tsx +25 -27
- package/src/components/FilterScrollbar/DynamicFiltersScrollbar.tsx +26 -28
- package/src/components/ModalSheet/ModalSheet.tsx +1 -1
- package/src/components/ModalSheet/common/closeIcon.tsx +2 -2
- package/src/components/ModalSheet/mobile/mobileHeader.tsx +1 -1
- package/src/components/ProductCard/ProductCard.tsx +5 -28
- package/src/components/ProductGrid/ProductGrid.tsx +3 -11
- package/src/components/RadioButton/RadioButton.tsx +15 -6
- package/src/components/RadioButtonGroup/RadioButtonGroup.tsx +1 -0
- package/src/components/SearchFilter/SearchFilter.tsx +2 -2
- package/src/components/SearchFilter/SearchFilterFooter.tsx +1 -1
- package/src/components/SearchFilter/SearchFilterHeader.tsx +6 -1
- package/src/components/SearchFilter/SearchFilterItem.tsx +17 -3
- package/src/components/SearchFilter/index.ts +4 -2
- package/src/components/SearchFilter/useHasFilterStateChanged.tsx +1 -0
- package/src/components/SearchFilter/utils.ts +4 -6
- package/src/components/SearchInput/SearchInput.tsx +2 -2
- package/src/components/SearchInput/searchInputVariants.ts +1 -1
- package/src/components/SearchInputForm/SearchInputForm.tsx +1 -1
- package/src/components/SearchInputForm/index.ts +0 -1
- package/src/components/SearchResultsContent/SearchResultsContent.tsx +33 -38
- package/src/components/SearchResultsFilterSidebar/SearchResultsFilter.tsx +2 -3
- package/src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts +1 -1
- package/src/components/SearchResultsStates/SearchResultsGrid.tsx +4 -8
- package/src/components/SearchResultsStates/SearchResultsLoadingGrid.tsx +3 -3
- package/src/components/SparkleAnimation/SparkleAnimation.tsx +0 -1
- package/src/components/Spinner/Spinner.tsx +29 -14
- package/src/components/SuggestionButton/SuggestionButton.tsx +1 -1
- package/src/components/SuggestionButton/types.ts +1 -1
- package/src/components/Text/textVariantClasses.ts +12 -10
- package/src/components/TextInput/TextInput.tsx +1 -0
- package/src/util/camelCasedPropertiesDeep.ts +22 -22
- package/src/util/internal.ts +4 -2
- package/src/util/splitWords.ts +35 -31
- package/dist/DynamicFiltersScrollbar-C4kdNSJ9.js +0 -70
- package/dist/DynamicFiltersScrollbar-CVw1PINp.cjs +0 -85
- package/dist/Styles/index.cjs +0 -274
- package/dist/Styles/index.d.cts +0 -258
- package/dist/Styles/index.d.ts +0 -258
- package/dist/Styles/index.js +0 -274
- package/dist/index-H_9LhS_1.d.cts +0 -36
- package/dist/index-h-QwQNnu.d.ts +0 -36
- package/src/components/SearchInputForm/types.ts +0 -1
- package/src/components/Styles/EnviveTailwindPreset.ts +0 -285
- package/src/components/Styles/index.ts +0 -2
- package/tailwind-preset.js +0 -3
- /package/dist/{ButtonBase-0NN6wmX-.js → ButtonBase-BktteD9c.js} +0 -0
- /package/dist/{ButtonBase-BIXx56hq.cjs → ButtonBase-Cb6Iec6f.cjs} +0 -0
- /package/dist/{ImageWithFallback-DqxjwO3i.js → ImageWithFallback-CbYsD1_a.js} +0 -0
- /package/dist/{ImageWithFallback-Cx-KNi-D.cjs → ImageWithFallback-Km9h16Vz.cjs} +0 -0
- /package/dist/{SearchAutocomplete-BlpII8Xs.js → SearchAutocomplete-BMNYZiJL.js} +0 -0
- /package/dist/{SearchAutocomplete-DIEhLT4C.cjs → SearchAutocomplete-BmHdijOv.cjs} +0 -0
- /package/dist/{Spinner-CjGLIRgs.js → Spinner-bg6jb_ks.js} +0 -0
- /package/dist/{Spinner-DFor2Szi.cjs → Spinner-rcWX566W.cjs} +0 -0
- /package/dist/{colorsConfig-DEfiLHH0.js → colorsConfig-Ck2jeqWe.js} +0 -0
- /package/dist/{colorsConfig-D-MZuBvt.cjs → colorsConfig-CqCKftuM.cjs} +0 -0
- /package/dist/{textVariantClasses-kyZtL8F5.d.ts → textVariantClasses-Bl8SAGwZ.d.ts} +0 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
const require_Text = require('./Text-DllCE9_D.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
|
+
let react_indiana_drag_scroll = require("react-indiana-drag-scroll");
|
|
8
|
+
react_indiana_drag_scroll = require_chunk.__toESM(react_indiana_drag_scroll);
|
|
9
|
+
|
|
10
|
+
//#region src/components/FilterScrollbar/AppliedFiltersScrollbar.tsx
|
|
11
|
+
const AppliedFiltersScrollbar = ({ selectedFilterOptions, filterBarClassNames, filterDefaultClasses, filterHoverClasses, appliedFilterBackgroundClasses, onRemoveFilter }) => {
|
|
12
|
+
if (selectedFilterOptions.length === 0) return null;
|
|
13
|
+
const filterDefaultWithoutBg = filterDefaultClasses.replace(/spiffy-tw-bg-\[--spiffy-colors-[^\]]+\]/g, "").trim();
|
|
14
|
+
const buttonClasses = (0, classnames.default)(" spiffy-tw-flex spiffy-tw-items-center spiffy-tw-rounded-full spiffy-tw-px-[8px] spiffy-tw-py-[4px] spiffy-tw-whitespace-nowrap", filterHoverClasses, filterDefaultWithoutBg, appliedFilterBackgroundClasses);
|
|
15
|
+
const iconColor = "currentColor";
|
|
16
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_indiana_drag_scroll.default, {
|
|
17
|
+
className: filterBarClassNames,
|
|
18
|
+
hideScrollbars: true,
|
|
19
|
+
children: selectedFilterOptions.map((filter) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
20
|
+
className: buttonClasses,
|
|
21
|
+
type: "button",
|
|
22
|
+
onClick: () => onRemoveFilter(filter),
|
|
23
|
+
"aria-label": `Remove filter: ${filter.displayName}`,
|
|
24
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
25
|
+
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-gap-[8px]",
|
|
26
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
|
|
27
|
+
variant: "body3",
|
|
28
|
+
children: filter.displayName
|
|
29
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
30
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
31
|
+
width: "10",
|
|
32
|
+
height: "10",
|
|
33
|
+
viewBox: "0 0 10 10",
|
|
34
|
+
fill: "none",
|
|
35
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
36
|
+
d: "M4.59766 4.29297L8.48535 0.405273L9.19238 1.1123L5.30469 5L9.19238 8.8877L8.48535 9.59473L4.59766 5.70703L0.707031 9.59766L0 8.89062L3.89062 5L0 1.10938L0.707031 0.402344L4.59766 4.29297Z",
|
|
37
|
+
fill: iconColor
|
|
38
|
+
})
|
|
39
|
+
})]
|
|
40
|
+
})
|
|
41
|
+
}, filter.id))
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/components/FilterScrollbar/DynamicFiltersScrollbar.tsx
|
|
47
|
+
const DynamicFiltersScrollbar = ({ availableDynamicFilters, filterBarClassNames, filterDefaultClasses, filterHoverClasses, onToggleDynamicFilter }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_indiana_drag_scroll.default, {
|
|
48
|
+
className: filterBarClassNames,
|
|
49
|
+
hideScrollbars: true,
|
|
50
|
+
children: availableDynamicFilters.map(({ name, displayName }) => {
|
|
51
|
+
const buttonClasses = (0, classnames.default)("spiffy-tw-px-[12px] spiffy-tw-py-2 spiffy-tw-rounded-full spiffy-tw-border spiffy-tw-whitespace-nowrap ", filterHoverClasses, filterDefaultClasses);
|
|
52
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
53
|
+
type: "button",
|
|
54
|
+
className: buttonClasses,
|
|
55
|
+
onClick: () => {
|
|
56
|
+
onToggleDynamicFilter({
|
|
57
|
+
filter: name,
|
|
58
|
+
dynamicFilterDisplayName: displayName
|
|
59
|
+
});
|
|
60
|
+
},
|
|
61
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
|
|
62
|
+
variant: "body3",
|
|
63
|
+
children: displayName
|
|
64
|
+
})
|
|
65
|
+
}, name);
|
|
66
|
+
})
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
//#endregion
|
|
70
|
+
Object.defineProperty(exports, 'AppliedFiltersScrollbar', {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function () {
|
|
73
|
+
return AppliedFiltersScrollbar;
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(exports, 'DynamicFiltersScrollbar', {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function () {
|
|
79
|
+
return DynamicFiltersScrollbar;
|
|
80
|
+
}
|
|
81
|
+
});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Text } from "./Text-BLzNhX4H.js";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import ScrollContainer from "react-indiana-drag-scroll";
|
|
5
|
+
|
|
6
|
+
//#region src/components/FilterScrollbar/AppliedFiltersScrollbar.tsx
|
|
7
|
+
const AppliedFiltersScrollbar = ({ selectedFilterOptions, filterBarClassNames, filterDefaultClasses, filterHoverClasses, appliedFilterBackgroundClasses, onRemoveFilter }) => {
|
|
8
|
+
if (selectedFilterOptions.length === 0) return null;
|
|
9
|
+
const filterDefaultWithoutBg = filterDefaultClasses.replace(/spiffy-tw-bg-\[--spiffy-colors-[^\]]+\]/g, "").trim();
|
|
10
|
+
const buttonClasses = classNames(" spiffy-tw-flex spiffy-tw-items-center spiffy-tw-rounded-full spiffy-tw-px-[8px] spiffy-tw-py-[4px] spiffy-tw-whitespace-nowrap", filterHoverClasses, filterDefaultWithoutBg, appliedFilterBackgroundClasses);
|
|
11
|
+
const iconColor = "currentColor";
|
|
12
|
+
return /* @__PURE__ */ jsx(ScrollContainer, {
|
|
13
|
+
className: filterBarClassNames,
|
|
14
|
+
hideScrollbars: true,
|
|
15
|
+
children: selectedFilterOptions.map((filter) => /* @__PURE__ */ jsx("button", {
|
|
16
|
+
className: buttonClasses,
|
|
17
|
+
type: "button",
|
|
18
|
+
onClick: () => onRemoveFilter(filter),
|
|
19
|
+
"aria-label": `Remove filter: ${filter.displayName}`,
|
|
20
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
21
|
+
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-gap-[8px]",
|
|
22
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
23
|
+
variant: "body3",
|
|
24
|
+
children: filter.displayName
|
|
25
|
+
}), /* @__PURE__ */ jsx("svg", {
|
|
26
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
27
|
+
width: "10",
|
|
28
|
+
height: "10",
|
|
29
|
+
viewBox: "0 0 10 10",
|
|
30
|
+
fill: "none",
|
|
31
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
32
|
+
d: "M4.59766 4.29297L8.48535 0.405273L9.19238 1.1123L5.30469 5L9.19238 8.8877L8.48535 9.59473L4.59766 5.70703L0.707031 9.59766L0 8.89062L3.89062 5L0 1.10938L0.707031 0.402344L4.59766 4.29297Z",
|
|
33
|
+
fill: iconColor
|
|
34
|
+
})
|
|
35
|
+
})]
|
|
36
|
+
})
|
|
37
|
+
}, filter.id))
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/components/FilterScrollbar/DynamicFiltersScrollbar.tsx
|
|
43
|
+
const DynamicFiltersScrollbar = ({ availableDynamicFilters, filterBarClassNames, filterDefaultClasses, filterHoverClasses, onToggleDynamicFilter }) => /* @__PURE__ */ jsx(ScrollContainer, {
|
|
44
|
+
className: filterBarClassNames,
|
|
45
|
+
hideScrollbars: true,
|
|
46
|
+
children: availableDynamicFilters.map(({ name, displayName }) => {
|
|
47
|
+
const buttonClasses = classNames("spiffy-tw-px-[12px] spiffy-tw-py-2 spiffy-tw-rounded-full spiffy-tw-border spiffy-tw-whitespace-nowrap ", filterHoverClasses, filterDefaultClasses);
|
|
48
|
+
return /* @__PURE__ */ jsx("button", {
|
|
49
|
+
type: "button",
|
|
50
|
+
className: buttonClasses,
|
|
51
|
+
onClick: () => {
|
|
52
|
+
onToggleDynamicFilter({
|
|
53
|
+
filter: name,
|
|
54
|
+
dynamicFilterDisplayName: displayName
|
|
55
|
+
});
|
|
56
|
+
},
|
|
57
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
58
|
+
variant: "body3",
|
|
59
|
+
children: displayName
|
|
60
|
+
})
|
|
61
|
+
}, name);
|
|
62
|
+
})
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
//#endregion
|
|
66
|
+
export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
require('../textVariantClasses-
|
|
2
|
-
require('../Text-
|
|
3
|
-
const require_DynamicFiltersScrollbar = require('../DynamicFiltersScrollbar-
|
|
1
|
+
require('../textVariantClasses-CBre7vXv.cjs');
|
|
2
|
+
require('../Text-DllCE9_D.cjs');
|
|
3
|
+
const require_DynamicFiltersScrollbar = require('../DynamicFiltersScrollbar-HCYZjI14.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_runtime19 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_runtime19.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_runtime19.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime3 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_runtime3.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_runtime3.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../textVariantClasses-
|
|
2
|
-
import "../Text-
|
|
3
|
-
import { AppliedFiltersScrollbar, DynamicFiltersScrollbar } from "../DynamicFiltersScrollbar-
|
|
1
|
+
import "../textVariantClasses-CRrTb43V.js";
|
|
2
|
+
import "../Text-BLzNhX4H.js";
|
|
3
|
+
import { AppliedFiltersScrollbar, DynamicFiltersScrollbar } from "../DynamicFiltersScrollbar-O0ai3cIG.js";
|
|
4
4
|
|
|
5
5
|
export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
|
package/dist/Headline/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require('../textVariantClasses-
|
|
2
|
-
const require_Headline = require('../Headline-
|
|
1
|
+
require('../textVariantClasses-CBre7vXv.cjs');
|
|
2
|
+
const require_Headline = require('../Headline-CKJmd2w4.cjs');
|
|
3
3
|
|
|
4
4
|
exports.Headline = require_Headline.Headline;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime13 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_runtime13.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_runtime16 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_runtime16.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { Headline, HeadlineProps, HeadlineVariant };
|
package/dist/Headline/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_textVariantClasses = require('./textVariantClasses-
|
|
2
|
+
const require_textVariantClasses = require('./textVariantClasses-CBre7vXv.cjs');
|
|
3
3
|
let classnames = require("classnames");
|
|
4
4
|
classnames = require_chunk.__toESM(classnames);
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime10 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_runtime10.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_runtime14 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_runtime14.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { ImageWithFallback, ImageWithFallbackProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/ModalSheet/types.d.ts
|
|
4
4
|
type ModalSheetProps = {
|
|
@@ -33,6 +33,6 @@ declare const ModalSheet: ({
|
|
|
33
33
|
desktopWidth,
|
|
34
34
|
headerProps,
|
|
35
35
|
footerProps
|
|
36
|
-
}: ModalSheetProps) =>
|
|
36
|
+
}: ModalSheetProps) => react_jsx_runtime7.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { ModalSheet };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/ModalSheet/types.d.ts
|
|
4
4
|
type ModalSheetProps = {
|
|
@@ -33,6 +33,6 @@ declare const ModalSheet: ({
|
|
|
33
33
|
desktopWidth,
|
|
34
34
|
headerProps,
|
|
35
35
|
footerProps
|
|
36
|
-
}: ModalSheetProps) =>
|
|
36
|
+
}: ModalSheetProps) => react_jsx_runtime12.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { ModalSheet };
|
package/dist/ModalSheet/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
const require_AnimatedChevron = require('./AnimatedChevron-e_UzWBl0.cjs');
|
|
2
3
|
let framer_motion = require("framer-motion");
|
|
3
4
|
framer_motion = require_chunk.__toESM(framer_motion);
|
|
4
5
|
let react = require("react");
|
|
@@ -10,31 +11,6 @@ react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
|
10
11
|
let __envive_ai_react_hooks_hooks_IsSmallScreen = require("@envive-ai/react-hooks/hooks/IsSmallScreen");
|
|
11
12
|
__envive_ai_react_hooks_hooks_IsSmallScreen = require_chunk.__toESM(__envive_ai_react_hooks_hooks_IsSmallScreen);
|
|
12
13
|
|
|
13
|
-
//#region src/components/AnimatedChevron/AnimatedChevron.tsx
|
|
14
|
-
const AnimatedChevron = ({ animationKey, chevronColor }) => {
|
|
15
|
-
const leftRotation = (0, framer_motion.useTransform)(animationKey, [300, 0], [-12, 0]);
|
|
16
|
-
const rightRotation = (0, framer_motion.useTransform)(animationKey, [300, 0], [12, 0]);
|
|
17
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
18
|
-
style: { display: "flex" },
|
|
19
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, { style: {
|
|
20
|
-
x: 1,
|
|
21
|
-
width: "25px",
|
|
22
|
-
height: "4px",
|
|
23
|
-
background: chevronColor,
|
|
24
|
-
borderRadius: "8px",
|
|
25
|
-
rotate: leftRotation
|
|
26
|
-
} }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, { style: {
|
|
27
|
-
x: -1,
|
|
28
|
-
width: "25px",
|
|
29
|
-
height: "4px",
|
|
30
|
-
background: chevronColor,
|
|
31
|
-
borderRadius: "8px",
|
|
32
|
-
rotate: rightRotation
|
|
33
|
-
} })]
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
//#endregion
|
|
38
14
|
//#region src/components/ModalSheet/mobile/mobileHeader.tsx
|
|
39
15
|
const modalSheetVariants$1 = { primary: {
|
|
40
16
|
"spiffy-tw-bg-[--spiffy-colors-background-primary]": true,
|
|
@@ -57,7 +33,7 @@ const ModalSheetMobileHeader = ({ headerVariant = "primary", headerContent, hand
|
|
|
57
33
|
className: headerClassName,
|
|
58
34
|
onTouchStart: handleHeaderClick,
|
|
59
35
|
onMouseDown: handleHeaderClick,
|
|
60
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(AnimatedChevron, {
|
|
36
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_AnimatedChevron.AnimatedChevron, {
|
|
61
37
|
animationKey,
|
|
62
38
|
chevronColor
|
|
63
39
|
}), headerContent]
|
|
@@ -1,34 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AnimatedChevron } from "./AnimatedChevron-CwuXgR2r.js";
|
|
2
|
+
import { motion, useMotionValue } from "framer-motion";
|
|
2
3
|
import { useEffect, useState } from "react";
|
|
3
4
|
import classNames from "classnames";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
6
|
import { useIsSmallScreen } from "@envive-ai/react-hooks/hooks/IsSmallScreen";
|
|
6
7
|
|
|
7
|
-
//#region src/components/AnimatedChevron/AnimatedChevron.tsx
|
|
8
|
-
const AnimatedChevron = ({ animationKey, chevronColor }) => {
|
|
9
|
-
const leftRotation = useTransform(animationKey, [300, 0], [-12, 0]);
|
|
10
|
-
const rightRotation = useTransform(animationKey, [300, 0], [12, 0]);
|
|
11
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
12
|
-
style: { display: "flex" },
|
|
13
|
-
children: [/* @__PURE__ */ jsx(motion.div, { style: {
|
|
14
|
-
x: 1,
|
|
15
|
-
width: "25px",
|
|
16
|
-
height: "4px",
|
|
17
|
-
background: chevronColor,
|
|
18
|
-
borderRadius: "8px",
|
|
19
|
-
rotate: leftRotation
|
|
20
|
-
} }), /* @__PURE__ */ jsx(motion.div, { style: {
|
|
21
|
-
x: -1,
|
|
22
|
-
width: "25px",
|
|
23
|
-
height: "4px",
|
|
24
|
-
background: chevronColor,
|
|
25
|
-
borderRadius: "8px",
|
|
26
|
-
rotate: rightRotation
|
|
27
|
-
} })]
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
//#endregion
|
|
32
8
|
//#region src/components/ModalSheet/mobile/mobileHeader.tsx
|
|
33
9
|
const modalSheetVariants$1 = { primary: {
|
|
34
10
|
"spiffy-tw-bg-[--spiffy-colors-background-primary]": true,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
require('../textVariantClasses-
|
|
2
|
-
require('../Text-
|
|
3
|
-
require('../Headline-
|
|
4
|
-
require('../ImageWithFallback-
|
|
5
|
-
const require_ProductCard = require('../ProductCard-
|
|
6
|
-
require('../Spinner-
|
|
1
|
+
require('../textVariantClasses-CBre7vXv.cjs');
|
|
2
|
+
require('../Text-DllCE9_D.cjs');
|
|
3
|
+
require('../Headline-CKJmd2w4.cjs');
|
|
4
|
+
require('../ImageWithFallback-Km9h16Vz.cjs');
|
|
5
|
+
const require_ProductCard = require('../ProductCard-BDz80MCQ.cjs');
|
|
6
|
+
require('../Spinner-rcWX566W.cjs');
|
|
7
7
|
|
|
8
8
|
exports.AnimatedProductCardOverrides = require_ProductCard.AnimatedProductCardOverrides;
|
|
9
9
|
exports.PriceSection = require_ProductCard.PriceSection;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, RatingSummary, RatingSummaryProps, SearchResponseProductAttributes, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap } from "../index-
|
|
1
|
+
import { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, RatingSummary, RatingSummaryProps, SearchResponseProductAttributes, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap } from "../index-B9WeFNlO.cjs";
|
|
2
2
|
export { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, RatingSummary, RatingSummaryProps, SearchResponseProductAttributes, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, RatingSummary, RatingSummaryProps, SearchResponseProductAttributes, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap } from "../index-
|
|
1
|
+
import { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, RatingSummary, RatingSummaryProps, SearchResponseProductAttributes, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap } from "../index-CeECGrFM.js";
|
|
2
2
|
export { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, RatingSummary, RatingSummaryProps, SearchResponseProductAttributes, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../textVariantClasses-
|
|
2
|
-
import "../Text-
|
|
3
|
-
import "../Headline-
|
|
4
|
-
import "../ImageWithFallback-
|
|
5
|
-
import { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardSkeleton, ProductCardSkeletonOverrides, RatingSummary, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap } from "../ProductCard-
|
|
6
|
-
import "../Spinner-
|
|
1
|
+
import "../textVariantClasses-CRrTb43V.js";
|
|
2
|
+
import "../Text-BLzNhX4H.js";
|
|
3
|
+
import "../Headline-DtjTB4xS.js";
|
|
4
|
+
import "../ImageWithFallback-CbYsD1_a.js";
|
|
5
|
+
import { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardSkeleton, ProductCardSkeletonOverrides, RatingSummary, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap } from "../ProductCard-CqhNJShq.js";
|
|
6
|
+
import "../Spinner-bg6jb_ks.js";
|
|
7
7
|
|
|
8
8
|
export { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardSkeleton, ProductCardSkeletonOverrides, RatingSummary, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_Text = require('./Text-
|
|
3
|
-
const require_Headline = require('./Headline-
|
|
4
|
-
const require_ImageWithFallback = require('./ImageWithFallback-
|
|
5
|
-
const require_Spinner = require('./Spinner-
|
|
2
|
+
const require_Text = require('./Text-DllCE9_D.cjs');
|
|
3
|
+
const require_Headline = require('./Headline-CKJmd2w4.cjs');
|
|
4
|
+
const require_ImageWithFallback = require('./ImageWithFallback-Km9h16Vz.cjs');
|
|
5
|
+
const require_Spinner = require('./Spinner-rcWX566W.cjs');
|
|
6
6
|
let classnames = require("classnames");
|
|
7
7
|
classnames = require_chunk.__toESM(classnames);
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -12,6 +12,36 @@ react_icons_md = require_chunk.__toESM(react_icons_md);
|
|
|
12
12
|
let __envive_ai_react_hooks_hooks_ImageResolver = require("@envive-ai/react-hooks/hooks/ImageResolver");
|
|
13
13
|
__envive_ai_react_hooks_hooks_ImageResolver = require_chunk.__toESM(__envive_ai_react_hooks_hooks_ImageResolver);
|
|
14
14
|
|
|
15
|
+
//#region src/logging/logger.ts
|
|
16
|
+
var Logger = class {
|
|
17
|
+
static logInfo(message, ...args) {
|
|
18
|
+
console.info(`INFO: ${message}`, ...args);
|
|
19
|
+
}
|
|
20
|
+
static logDebug(message, ...args) {
|
|
21
|
+
console.debug(`DEBUG: ${message}`, ...args);
|
|
22
|
+
}
|
|
23
|
+
static logError(message, error, ...args) {
|
|
24
|
+
console.error(`ERROR: ${message} error=${error}`, args);
|
|
25
|
+
}
|
|
26
|
+
static logWarn(message, error, ...args) {
|
|
27
|
+
console.warn(`WARN: ${message} error=${error}`, args);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
var logger_default = Logger;
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/util/formatPrice.ts
|
|
34
|
+
const formatPrice = (price, currency = "$") => {
|
|
35
|
+
if (price == null) return "";
|
|
36
|
+
const options = {};
|
|
37
|
+
if (!Number.isInteger(price)) {
|
|
38
|
+
options.minimumFractionDigits = 2;
|
|
39
|
+
options.maximumFractionDigits = 2;
|
|
40
|
+
}
|
|
41
|
+
return `${currency}${price.toLocaleString("en-US", options)}`;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
15
45
|
//#region src/components/ProductCard/productCardVariants.ts
|
|
16
46
|
/**
|
|
17
47
|
* Shared variant mapping configurations for ProductCard components
|
|
@@ -55,36 +85,6 @@ const productCardLayoutVariantClasses = {
|
|
|
55
85
|
}
|
|
56
86
|
};
|
|
57
87
|
|
|
58
|
-
//#endregion
|
|
59
|
-
//#region src/logging/logger.ts
|
|
60
|
-
var Logger = class {
|
|
61
|
-
static logInfo(message, ...args) {
|
|
62
|
-
console.info(`INFO: ${message}`, ...args);
|
|
63
|
-
}
|
|
64
|
-
static logDebug(message, ...args) {
|
|
65
|
-
console.debug(`DEBUG: ${message}`, ...args);
|
|
66
|
-
}
|
|
67
|
-
static logError(message, error, ...args) {
|
|
68
|
-
console.error(`ERROR: ${message} error=${error}`, args);
|
|
69
|
-
}
|
|
70
|
-
static logWarn(message, error, ...args) {
|
|
71
|
-
console.warn(`WARN: ${message} error=${error}`, args);
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
var logger_default = Logger;
|
|
75
|
-
|
|
76
|
-
//#endregion
|
|
77
|
-
//#region src/util/formatPrice.ts
|
|
78
|
-
const formatPrice = (price, currency = "$") => {
|
|
79
|
-
if (price == null) return "";
|
|
80
|
-
const options = {};
|
|
81
|
-
if (!Number.isInteger(price)) {
|
|
82
|
-
options.minimumFractionDigits = 2;
|
|
83
|
-
options.maximumFractionDigits = 2;
|
|
84
|
-
}
|
|
85
|
-
return `${currency}${price.toLocaleString("en-US", options)}`;
|
|
86
|
-
};
|
|
87
|
-
|
|
88
88
|
//#endregion
|
|
89
89
|
//#region src/components/ProductCard/ProductCard.tsx
|
|
90
90
|
const formatReviews = (stars) => String(Number(stars).toLocaleString("en-US", {
|