@envive-ai/react-toolkit 0.2.0 → 0.2.2

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.
Files changed (190) hide show
  1. package/package.json +10 -13
  2. package/src/components/Accordion/Accordion.tsx +3 -3
  3. package/src/components/AnimatedChevron/AnimatedChevron.tsx +1 -2
  4. package/src/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.tsx +2 -2
  5. package/src/components/ButtonBase/ButtonBase.tsx +2 -2
  6. package/src/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.tsx +2 -2
  7. package/src/components/FilterScrollbar/AppliedFiltersScrollbar.tsx +2 -2
  8. package/src/components/FilterScrollbar/DynamicFiltersScrollbar.tsx +2 -2
  9. package/src/components/ProductCard/ProductCard.tsx +10 -9
  10. package/src/components/RadioButton/RadioButton.tsx +2 -2
  11. package/src/components/SearchFilter/SearchFilterHeader.tsx +3 -3
  12. package/src/components/SearchFilter/SearchFilterItem.tsx +2 -2
  13. package/src/components/SearchInput/searchInputVariants.ts +2 -2
  14. package/src/components/SearchResultsStates/NoSearchResultsFound.tsx +3 -3
  15. package/src/components/SearchResultsStates/SearchResultsLoadingGrid.tsx +2 -2
  16. package/src/components/TextInput/TextInput.tsx +4 -3
  17. package/src/components/ToggleButton/ToggleButton.tsx +5 -5
  18. package/src/components/Typography/Typography.spec.tsx +22 -0
  19. package/src/components/Typography/Typography.tsx +73 -0
  20. package/src/components/Typography/index.ts +2 -0
  21. package/src/components/{Text/textVariantClasses.ts → Typography/typographyVariantClasses.ts} +36 -38
  22. package/src/components/Typography/util.ts +19 -0
  23. package/dist/Accordion/index.cjs +0 -6
  24. package/dist/Accordion/index.d.cts +0 -13
  25. package/dist/Accordion/index.d.ts +0 -13
  26. package/dist/Accordion/index.js +0 -6
  27. package/dist/Accordion-D9gO9_y3.cjs +0 -88
  28. package/dist/Accordion-ZEdp99Ph.js +0 -77
  29. package/dist/AnimatedChevron/index.cjs +0 -3
  30. package/dist/AnimatedChevron/index.d.cts +0 -11
  31. package/dist/AnimatedChevron/index.d.ts +0 -11
  32. package/dist/AnimatedChevron/index.js +0 -3
  33. package/dist/AnimatedChevron-CwuXgR2r.js +0 -29
  34. package/dist/AnimatedChevron-e_UzWBl0.cjs +0 -37
  35. package/dist/AppliedFiltersScrollbar/index.cjs +0 -48
  36. package/dist/AppliedFiltersScrollbar/index.d.cts +0 -22
  37. package/dist/AppliedFiltersScrollbar/index.d.ts +0 -22
  38. package/dist/AppliedFiltersScrollbar/index.js +0 -44
  39. package/dist/ButtonBase/index.cjs +0 -7
  40. package/dist/ButtonBase/index.d.cts +0 -42
  41. package/dist/ButtonBase/index.d.ts +0 -42
  42. package/dist/ButtonBase/index.js +0 -6
  43. package/dist/ButtonBase-BJ0qXMWD.js +0 -60
  44. package/dist/ButtonBase-BktteD9c.js +0 -1
  45. package/dist/ButtonBase-Cb6Iec6f.cjs +0 -0
  46. package/dist/ButtonBase-VIv-tn7H.cjs +0 -75
  47. package/dist/DynamicFiltersScrollbar/index.cjs +0 -36
  48. package/dist/DynamicFiltersScrollbar/index.d.cts +0 -28
  49. package/dist/DynamicFiltersScrollbar/index.d.ts +0 -28
  50. package/dist/DynamicFiltersScrollbar/index.js +0 -32
  51. package/dist/DynamicFiltersScrollbar-HCYZjI14.cjs +0 -81
  52. package/dist/DynamicFiltersScrollbar-O0ai3cIG.js +0 -66
  53. package/dist/FilterScrollbar/index.cjs +0 -6
  54. package/dist/FilterScrollbar/index.d.cts +0 -47
  55. package/dist/FilterScrollbar/index.d.ts +0 -47
  56. package/dist/FilterScrollbar/index.js +0 -5
  57. package/dist/Headline/index.cjs +0 -4
  58. package/dist/Headline/index.d.cts +0 -21
  59. package/dist/Headline/index.d.ts +0 -21
  60. package/dist/Headline/index.js +0 -4
  61. package/dist/Headline-CKJmd2w4.cjs +0 -72
  62. package/dist/Headline-DtjTB4xS.js +0 -64
  63. package/dist/ImageWithFallback/index.cjs +0 -3
  64. package/dist/ImageWithFallback/index.d.cts +0 -26
  65. package/dist/ImageWithFallback/index.d.ts +0 -26
  66. package/dist/ImageWithFallback/index.js +0 -3
  67. package/dist/ImageWithFallback-CbYsD1_a.js +0 -42
  68. package/dist/ImageWithFallback-Km9h16Vz.cjs +0 -51
  69. package/dist/ModalSheet/index.cjs +0 -4
  70. package/dist/ModalSheet/index.d.cts +0 -38
  71. package/dist/ModalSheet/index.d.ts +0 -38
  72. package/dist/ModalSheet/index.js +0 -4
  73. package/dist/ModalSheet-DwnbbFh7.cjs +0 -313
  74. package/dist/ModalSheet-sMg44OLz.js +0 -302
  75. package/dist/ProductCard/index.cjs +0 -17
  76. package/dist/ProductCard/index.d.cts +0 -2
  77. package/dist/ProductCard/index.d.ts +0 -2
  78. package/dist/ProductCard/index.js +0 -8
  79. package/dist/ProductCard-BDz80MCQ.cjs +0 -319
  80. package/dist/ProductCard-CqhNJShq.js +0 -255
  81. package/dist/ProductGrid/index.cjs +0 -10
  82. package/dist/ProductGrid/index.d.cts +0 -33
  83. package/dist/ProductGrid/index.d.ts +0 -33
  84. package/dist/ProductGrid/index.js +0 -9
  85. package/dist/ProductGrid-8n4XgcMr.js +0 -60
  86. package/dist/ProductGrid-RRcdkY5J.cjs +0 -74
  87. package/dist/RadioButton/index.cjs +0 -6
  88. package/dist/RadioButton/index.d.cts +0 -32
  89. package/dist/RadioButton/index.d.ts +0 -32
  90. package/dist/RadioButton/index.js +0 -6
  91. package/dist/RadioButton-BWnaUI8o.cjs +0 -84
  92. package/dist/RadioButton-CG8_M0hY.js +0 -75
  93. package/dist/RadioButtonGroup/index.cjs +0 -8
  94. package/dist/RadioButtonGroup/index.d.cts +0 -36
  95. package/dist/RadioButtonGroup/index.d.ts +0 -36
  96. package/dist/RadioButtonGroup/index.js +0 -7
  97. package/dist/RadioButtonGroup-B7EuiEP1.js +0 -38
  98. package/dist/RadioButtonGroup-ReQqakpS.cjs +0 -52
  99. package/dist/SearchAutocomplete/index.cjs +0 -3
  100. package/dist/SearchAutocomplete/index.d.cts +0 -13
  101. package/dist/SearchAutocomplete/index.d.ts +0 -13
  102. package/dist/SearchAutocomplete/index.js +0 -3
  103. package/dist/SearchAutocomplete-BMNYZiJL.js +0 -51
  104. package/dist/SearchAutocomplete-BmHdijOv.cjs +0 -62
  105. package/dist/SearchFilter/index.cjs +0 -19
  106. package/dist/SearchFilter/index.d.cts +0 -91
  107. package/dist/SearchFilter/index.d.ts +0 -91
  108. package/dist/SearchFilter/index.js +0 -14
  109. package/dist/SearchFilter-C8mgj84o.js +0 -268
  110. package/dist/SearchFilter-FrdHPM5O.cjs +0 -307
  111. package/dist/SearchInput/index.cjs +0 -7
  112. package/dist/SearchInput/index.d.cts +0 -34
  113. package/dist/SearchInput/index.d.ts +0 -34
  114. package/dist/SearchInput/index.js +0 -6
  115. package/dist/SearchInput--x9NTMTb.cjs +0 -106
  116. package/dist/SearchInput-IBq83nqF.js +0 -89
  117. package/dist/SearchInputForm/index.cjs +0 -39
  118. package/dist/SearchInputForm/index.d.cts +0 -34
  119. package/dist/SearchInputForm/index.d.ts +0 -34
  120. package/dist/SearchInputForm/index.js +0 -37
  121. package/dist/SearchResultsContent/index.cjs +0 -47
  122. package/dist/SearchResultsContent/index.d.cts +0 -48
  123. package/dist/SearchResultsContent/index.d.ts +0 -48
  124. package/dist/SearchResultsContent/index.js +0 -44
  125. package/dist/SearchResultsFilterSidebar/index.cjs +0 -62
  126. package/dist/SearchResultsFilterSidebar/index.d.cts +0 -2
  127. package/dist/SearchResultsFilterSidebar/index.d.ts +0 -2
  128. package/dist/SearchResultsFilterSidebar/index.js +0 -57
  129. package/dist/SearchResultsStates/index.cjs +0 -17
  130. package/dist/SearchResultsStates/index.d.cts +0 -69
  131. package/dist/SearchResultsStates/index.d.ts +0 -69
  132. package/dist/SearchResultsStates/index.js +0 -15
  133. package/dist/SearchResultsStates-D7dM35qq.js +0 -110
  134. package/dist/SearchResultsStates-nlaPbkj3.cjs +0 -132
  135. package/dist/SparkleAnimation/index.cjs +0 -4
  136. package/dist/SparkleAnimation/index.d.cts +0 -23
  137. package/dist/SparkleAnimation/index.d.ts +0 -23
  138. package/dist/SparkleAnimation/index.js +0 -3
  139. package/dist/SparkleAnimation-D1aZE-7A.cjs +0 -101
  140. package/dist/SparkleAnimation-DtWkXmkN.js +0 -84
  141. package/dist/Spinner/index.cjs +0 -3
  142. package/dist/Spinner/index.d.cts +0 -11
  143. package/dist/Spinner/index.d.ts +0 -11
  144. package/dist/Spinner/index.js +0 -3
  145. package/dist/Spinner-bg6jb_ks.js +0 -38
  146. package/dist/Spinner-rcWX566W.cjs +0 -46
  147. package/dist/SuggestionButton/index.cjs +0 -188
  148. package/dist/SuggestionButton/index.d.cts +0 -35
  149. package/dist/SuggestionButton/index.d.ts +0 -35
  150. package/dist/SuggestionButton/index.js +0 -180
  151. package/dist/Text/index.cjs +0 -10
  152. package/dist/Text/index.d.cts +0 -42
  153. package/dist/Text/index.d.ts +0 -42
  154. package/dist/Text/index.js +0 -5
  155. package/dist/Text-BLzNhX4H.js +0 -42
  156. package/dist/Text-BMsncrpY.js +0 -10
  157. package/dist/Text-C8t_iEj6.cjs +0 -16
  158. package/dist/Text-DllCE9_D.cjs +0 -50
  159. package/dist/TextInput/index.cjs +0 -4
  160. package/dist/TextInput/index.d.cts +0 -12
  161. package/dist/TextInput/index.d.ts +0 -12
  162. package/dist/TextInput/index.js +0 -4
  163. package/dist/TextInput-BeHPlVHT.js +0 -31
  164. package/dist/TextInput-CGs4BY1q.cjs +0 -40
  165. package/dist/ToggleButton/index.cjs +0 -6
  166. package/dist/ToggleButton/index.d.cts +0 -30
  167. package/dist/ToggleButton/index.d.ts +0 -30
  168. package/dist/ToggleButton/index.js +0 -6
  169. package/dist/ToggleButton-CRiPqTCb.js +0 -60
  170. package/dist/ToggleButton-DfJZ8POQ.cjs +0 -68
  171. package/dist/chunk-CUT6urMc.cjs +0 -30
  172. package/dist/colorsConfig-Ck2jeqWe.js +0 -26
  173. package/dist/colorsConfig-CqCKftuM.cjs +0 -38
  174. package/dist/index-B9WeFNlO.d.cts +0 -325
  175. package/dist/index-CLGe_Pam.d.cts +0 -46
  176. package/dist/index-CeECGrFM.d.ts +0 -325
  177. package/dist/index-PSzeHU2s.d.ts +0 -46
  178. package/dist/searchFilterSidebarVariants-B05f5SD5.js +0 -34
  179. package/dist/searchFilterSidebarVariants-NQhqq-NT.cjs +0 -39
  180. package/dist/textVariantClasses-B0gNjzl4.d.cts +0 -174
  181. package/dist/textVariantClasses-Bl8SAGwZ.d.ts +0 -174
  182. package/dist/textVariantClasses-CBre7vXv.cjs +0 -123
  183. package/dist/textVariantClasses-CRrTb43V.js +0 -99
  184. package/dist/types-BhGjnuWx.d.cts +0 -4
  185. package/dist/types-CTOdb0G0.d.ts +0 -4
  186. package/src/components/Headline/Headline.tsx +0 -81
  187. package/src/components/Headline/index.ts +0 -1
  188. package/src/components/Text/Text.tsx +0 -58
  189. package/src/components/Text/index.ts +0 -3
  190. package/src/components/Text/types.ts +0 -23
@@ -1,302 +0,0 @@
1
- import { AnimatedChevron } from "./AnimatedChevron-CwuXgR2r.js";
2
- import { motion, useMotionValue } from "framer-motion";
3
- import { useEffect, useState } from "react";
4
- import classNames from "classnames";
5
- import { jsx, jsxs } from "react/jsx-runtime";
6
- import { useIsSmallScreen } from "@envive-ai/react-hooks/hooks/IsSmallScreen";
7
-
8
- //#region src/components/ModalSheet/mobile/mobileHeader.tsx
9
- const modalSheetVariants$1 = { primary: {
10
- "spiffy-tw-bg-[--spiffy-colors-background-primary]": true,
11
- "spiffy-tw-text-[--spiffy-colors-text-light]": true
12
- } };
13
- const ModalSheetMobileHeader = ({ headerVariant = "primary", headerContent, handleHeaderClick, chevronColor }) => {
14
- const animationKey = useMotionValue(-1);
15
- const headerClassName = classNames({
16
- "spiffy-modal-sheet-header": true,
17
- "spiffy-tw-flex": true,
18
- "spiffy-tw-items-center": true,
19
- "spiffy-tw-justify-between": true,
20
- "spiffy-tw-w-full": true,
21
- "spiffy-tw-flex-col": true,
22
- "spiffy-tw-pt-[16px]": true,
23
- "spiffy-tw-shadow-[0px_-8px_16px_0px_#0000001A]": true,
24
- ...modalSheetVariants$1[headerVariant]
25
- });
26
- return /* @__PURE__ */ jsxs(motion.div, {
27
- className: headerClassName,
28
- onTouchStart: handleHeaderClick,
29
- onMouseDown: handleHeaderClick,
30
- children: [/* @__PURE__ */ jsx(AnimatedChevron, {
31
- animationKey,
32
- chevronColor
33
- }), headerContent]
34
- });
35
- };
36
-
37
- //#endregion
38
- //#region src/components/ModalSheet/mobile/index.tsx
39
- const ModalSheetMobile = ({ children, isOpen, closeModal, mobileFullHeight = 180, animationDuration, headerProps, footerProps }) => {
40
- const [isHidden, setIsHidden] = useState(isOpen ? "block" : "none");
41
- const [bottom, setBottom] = useState(isOpen ? 0 : 0 - mobileFullHeight);
42
- const [overlayOpacity, setOverlayOpacity] = useState(isOpen ? 1 : 0);
43
- useEffect(() => {
44
- setIsHidden(isOpen ? "block" : "none");
45
- setBottom(isOpen ? 0 : 0 - mobileFullHeight);
46
- setOverlayOpacity(isOpen ? 1 : 0);
47
- }, [mobileFullHeight, isOpen]);
48
- const overlayClassNames = classNames({
49
- "spiffy-modal-sheet-overlay": true,
50
- "spiffy-tw-fixed": true,
51
- "spiffy-tw-inset-0": true,
52
- "spiffy-tw-top-[0]": true,
53
- "spiffy-tw-bottom-[0]": true,
54
- "spiffy-tw-left-[0]": true,
55
- "spiffy-tw-right-[0]": true,
56
- "spiffy-tw-bg-black/30": true,
57
- "spiffy-tw-z-[100]": true
58
- });
59
- const modalClassNames = classNames({
60
- "spiffy-modal-sheet": true,
61
- "spiffy-modal-sheet-open": isOpen,
62
- "spiffy-tw-w-full": true,
63
- "spiffy-tw-overflow-y-auto": true,
64
- "spiffy-tw-shadow-lg": true,
65
- "spiffy-tw-fixed": true,
66
- "spiffy-tw-bg-white": true,
67
- "spiffy-tw-border-box": true,
68
- "spiffy-tw-rounded-t-[16px]": true,
69
- "spiffy-tw-h-[89%]": true,
70
- "spiffy-tw-max-h-[89%]": true
71
- });
72
- const contentClassNames = classNames({
73
- "spiffy-modal-sheet-content": true,
74
- "spiffy-tw-flex": true,
75
- "spiffy-tw-flex-col": true,
76
- "spiffy-tw-w-full": true,
77
- "spiffy-tw-h-full": true
78
- });
79
- const headerClassNames = classNames({
80
- "spiffy-tw-sticky": true,
81
- "spiffy-tw-top-[0px]": true,
82
- "spiffy-tw-flex": true,
83
- "spiffy-tw-flex-col": true
84
- });
85
- const { footerContent, footerClassName } = footerProps || {};
86
- const footerClassNames = classNames({
87
- "spiffy-tw-sticky": true,
88
- "spiffy-tw-bottom-[0px]": true,
89
- "spiffy-modal-sheet-footer": true,
90
- "spiffy-tw-flex": true,
91
- "spiffy-tw-flex-col": true
92
- }, footerClassName);
93
- return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(motion.div, {
94
- className: overlayClassNames,
95
- animate: {
96
- opacity: overlayOpacity,
97
- display: isHidden
98
- },
99
- onClick: closeModal,
100
- children: /* @__PURE__ */ jsx(motion.div, {
101
- role: "dialog",
102
- className: modalClassNames,
103
- initial: {
104
- bottom,
105
- display: isHidden
106
- },
107
- animate: {
108
- bottom,
109
- display: isHidden
110
- },
111
- exit: {
112
- bottom,
113
- display: isHidden
114
- },
115
- transition: {
116
- duration: animationDuration,
117
- ease: "easeIn"
118
- },
119
- onClick: (e) => e.stopPropagation(),
120
- children: /* @__PURE__ */ jsxs("div", {
121
- className: contentClassNames,
122
- children: [
123
- /* @__PURE__ */ jsx("div", {
124
- className: headerClassNames,
125
- children: /* @__PURE__ */ jsx(ModalSheetMobileHeader, {
126
- headerContent: headerProps.headerContent,
127
- headerVariant: headerProps?.headerVariant,
128
- handleHeaderClick: closeModal,
129
- chevronColor: "#000"
130
- })
131
- }),
132
- children,
133
- /* @__PURE__ */ jsx("div", { className: "spiffy-tw-flex-grow" }),
134
- footerContent && /* @__PURE__ */ jsx("div", {
135
- className: footerClassNames,
136
- children: footerContent
137
- })
138
- ]
139
- })
140
- })
141
- }) });
142
- };
143
-
144
- //#endregion
145
- //#region src/components/ModalSheet/desktop/desktopHeader.tsx
146
- const modalSheetVariants = { primary: {
147
- "spiffy-tw-bg-[--spiffy-colors-background-primary]": true,
148
- "spiffy-tw-text-[--spiffy-colors-text-light]": true
149
- } };
150
- const ModalSheetDesktopHeader = ({ headerVariant = "primary", headerContent }) => {
151
- const headerStyles = classNames({
152
- "spiffy-modal-sheet-header": true,
153
- "spiffy-tw-flex": true,
154
- "spiffy-tw-items-center": true,
155
- "spiffy-tw-justify-between": true,
156
- "spiffy-tw-w-full": true,
157
- ...modalSheetVariants[headerVariant]
158
- });
159
- return /* @__PURE__ */ jsx("div", {
160
- className: headerStyles,
161
- children: headerContent
162
- });
163
- };
164
-
165
- //#endregion
166
- //#region src/components/ModalSheet/desktop/index.tsx
167
- const ModalSheetDesktop = ({ children, isOpen, closeModal, desktopWidth = 512, animationDuration, headerProps, footerProps, showOverlay = false }) => {
168
- const [isHidden, setIsHidden] = useState(isOpen ? "block" : "none");
169
- const [right, setRight] = useState(isOpen ? 0 : 0 - desktopWidth);
170
- const [overlayOpacity, setOverlayOpacity] = useState(0);
171
- useEffect(() => {
172
- setIsHidden(isOpen ? "block" : "none");
173
- setRight(isOpen ? 0 : 0 - desktopWidth);
174
- setOverlayOpacity(isOpen ? 1 : 0);
175
- }, [desktopWidth, isOpen]);
176
- const overlayClassNames = classNames({
177
- "spiffy-modal-sheet-overlay": true,
178
- "spiffy-tw-fixed": true,
179
- "spiffy-tw-inset-0": true,
180
- "spiffy-tw-top-[0]": true,
181
- "spiffy-tw-bottom-[0]": true,
182
- "spiffy-tw-left-[0]": true,
183
- "spiffy-tw-right-[0]": true,
184
- "spiffy-tw-z-[2147483647]": true,
185
- "spiffy-tw-bg-black/30": showOverlay
186
- });
187
- const modalClassNames = classNames({
188
- "spiffy-modal-sheet": true,
189
- "spiffy-modal-sheet-open": isOpen,
190
- "spiffy-tw-max-h-full": true,
191
- "spiffy-tw-h-screen": true,
192
- "spiffy-tw-w-[512px]": true,
193
- "spiffy-tw-shadow-lg": true,
194
- "spiffy-tw-top-[0]": true,
195
- "spiffy-tw-bottom-[0]": true,
196
- "spiffy-tw-fixed": true,
197
- "spiffy-tw-bg-white": true,
198
- "spiffy-tw-border-box": true
199
- });
200
- const contentClassNames = classNames({
201
- "spiffy-modal-sheet-content": true,
202
- "spiffy-tw-overflow-y-auto": true,
203
- "spiffy-tw-overflow-x-hidden": true,
204
- "spiffy-tw-flex": true,
205
- "spiffy-tw-flex-col": true,
206
- "spiffy-tw-h-full": true,
207
- "spiffy-tw-w-full": true
208
- });
209
- const headerClassNames = classNames({
210
- "spiffy-tw-sticky": true,
211
- "spiffy-tw-top-0": true,
212
- "spiffy-tw-flex": true,
213
- "spiffy-tw-flex-col": true
214
- });
215
- const { footerContent, footerClassName } = footerProps || {};
216
- const footerClassNames = classNames({
217
- "spiffy-tw-sticky": true,
218
- "spiffy-tw-bottom-0": true,
219
- "spiffy-modal-sheet-footer": true,
220
- "spiffy-tw-flex": true,
221
- "spiffy-tw-flex-col": true
222
- }, footerClassName);
223
- return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(motion.div, {
224
- className: overlayClassNames,
225
- initial: {
226
- opacity: 0,
227
- display: "none"
228
- },
229
- animate: {
230
- opacity: overlayOpacity,
231
- display: isHidden
232
- },
233
- onClick: closeModal,
234
- children: /* @__PURE__ */ jsx(motion.div, {
235
- role: "dialog",
236
- className: modalClassNames,
237
- initial: {
238
- right,
239
- display: isHidden
240
- },
241
- animate: {
242
- right,
243
- display: isHidden
244
- },
245
- exit: {
246
- right,
247
- display: isHidden
248
- },
249
- transition: {
250
- duration: animationDuration,
251
- ease: "easeIn"
252
- },
253
- style: { width: desktopWidth },
254
- onClick: (e) => e.stopPropagation(),
255
- children: /* @__PURE__ */ jsxs("div", {
256
- className: contentClassNames,
257
- children: [
258
- /* @__PURE__ */ jsx("div", {
259
- className: headerClassNames,
260
- children: /* @__PURE__ */ jsx(ModalSheetDesktopHeader, {
261
- headerContent: headerProps.headerContent,
262
- headerVariant: headerProps?.headerVariant,
263
- chevronColor: "#000"
264
- })
265
- }),
266
- children,
267
- /* @__PURE__ */ jsx("div", { className: "spiffy-tw-flex-grow" }),
268
- footerContent && /* @__PURE__ */ jsx("div", {
269
- className: footerClassNames,
270
- children: footerContent
271
- })
272
- ]
273
- })
274
- })
275
- }) });
276
- };
277
-
278
- //#endregion
279
- //#region src/components/ModalSheet/ModalSheet.tsx
280
- const ANIMATION_DURATION = .3;
281
- const ModalSheet = ({ children, isOpen, closeModal, animationDuration = ANIMATION_DURATION, desktopWidth = 512, headerProps, footerProps }) => {
282
- return useIsSmallScreen() ? /* @__PURE__ */ jsx(ModalSheetMobile, {
283
- isOpen,
284
- closeModal,
285
- desktopWidth,
286
- animationDuration,
287
- headerProps,
288
- footerProps,
289
- children
290
- }) : /* @__PURE__ */ jsx(ModalSheetDesktop, {
291
- isOpen,
292
- closeModal,
293
- desktopWidth,
294
- animationDuration,
295
- headerProps,
296
- footerProps,
297
- children
298
- });
299
- };
300
-
301
- //#endregion
302
- export { ModalSheet };
@@ -1,17 +0,0 @@
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
-
8
- exports.AnimatedProductCardOverrides = require_ProductCard.AnimatedProductCardOverrides;
9
- exports.PriceSection = require_ProductCard.PriceSection;
10
- exports.ProductCard = require_ProductCard.ProductCard;
11
- exports.ProductCardSkeleton = require_ProductCard.ProductCardSkeleton;
12
- exports.ProductCardSkeletonOverrides = require_ProductCard.ProductCardSkeletonOverrides;
13
- exports.RatingSummary = require_ProductCard.RatingSummary;
14
- exports.productCardLayoutVariantClasses = require_ProductCard.productCardLayoutVariantClasses;
15
- exports.variantClassMap = require_ProductCard.variantClassMap;
16
- exports.variantHoverClassMap = require_ProductCard.variantHoverClassMap;
17
- exports.variantTitleColorMap = require_ProductCard.variantTitleColorMap;
@@ -1,2 +0,0 @@
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
- export { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, RatingSummary, RatingSummaryProps, SearchResponseProductAttributes, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap };
@@ -1,2 +0,0 @@
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
- export { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, RatingSummary, RatingSummaryProps, SearchResponseProductAttributes, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap };
@@ -1,8 +0,0 @@
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
-
8
- export { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardSkeleton, ProductCardSkeletonOverrides, RatingSummary, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap };
@@ -1,319 +0,0 @@
1
- const require_chunk = require('./chunk-CUT6urMc.cjs');
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
- let classnames = require("classnames");
7
- classnames = require_chunk.__toESM(classnames);
8
- let react_jsx_runtime = require("react/jsx-runtime");
9
- react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
10
- let react_icons_md = require("react-icons/md");
11
- react_icons_md = require_chunk.__toESM(react_icons_md);
12
- let __envive_ai_react_hooks_hooks_ImageResolver = require("@envive-ai/react-hooks/hooks/ImageResolver");
13
- __envive_ai_react_hooks_hooks_ImageResolver = require_chunk.__toESM(__envive_ai_react_hooks_hooks_ImageResolver);
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
45
- //#region src/components/ProductCard/productCardVariants.ts
46
- /**
47
- * Shared variant mapping configurations for ProductCard components
48
- */
49
- const variantClassMap = new Map([
50
- ["filled", ["spiffy-tw-bg-[--spiffy-colors-background-secondary]", "spiffy-tw-shadow-md"]],
51
- ["bordered", [
52
- "spiffy-tw-bg-[--spiffy-colors-background-secondary]",
53
- "spiffy-tw-border",
54
- "spiffy-tw-border-[--spiffy-colors-border-light]"
55
- ]],
56
- ["minimal", ["spiffy-tw-bg-transparent"]],
57
- ["transparentBordered", [
58
- "spiffy-tw-bg-transparent",
59
- "spiffy-tw-border",
60
- "spiffy-tw-border-[--spiffy-colors-border-light]"
61
- ]]
62
- ]);
63
- const variantHoverClassMap = new Map([["backgroundDark", ["hover:spiffy-tw-bg-[--spiffy-colors-background-secondary-dark]"]], ["none", []]]);
64
- const variantTitleColorMap = new Map([
65
- ["filled", "spiffy-tw-text-[--spiffy-colors-text-link]"],
66
- ["bordered", "spiffy-tw-text-[--spiffy-colors-text-primary]"],
67
- ["minimal", "spiffy-tw-text-[--spiffy-colors-text-primary]"],
68
- ["transparentBordered", "spiffy-tw-text-[--spiffy-colors-text-primary]"]
69
- ]);
70
- const productCardLayoutVariantClasses = {
71
- normal: {
72
- productTitle: ["spiffy-product-card-title"],
73
- container: ["spiffy-tw-w-[208px]"],
74
- verticalContainer: ["spiffy-tw-rounded-[8px]", "spiffy-tw-h-[268px]"]
75
- },
76
- tall: {
77
- productTitle: ["spiffy-product-card-title-tall", "spiffy-tw-pt-[8px]"],
78
- container: ["spiffy-tw-w-[160px] lg:spiffy-tw-w-[300px]"],
79
- verticalContainer: ["lg:spiffy-tw-h-[496px]"]
80
- },
81
- square: {
82
- productTitle: ["spiffy-product-card-title-tall", "spiffy-tw-pt-[8px]"],
83
- container: ["spiffy-tw-w-[160px] lg:spiffy-tw-w-[280px]"],
84
- verticalContainer: ["lg:spiffy-tw-h-[400px]"]
85
- }
86
- };
87
-
88
- //#endregion
89
- //#region src/components/ProductCard/ProductCard.tsx
90
- const formatReviews = (stars) => String(Number(stars).toLocaleString("en-US", {
91
- minimumFractionDigits: 1,
92
- maximumFractionDigits: 1
93
- }));
94
- const RatingSummary = ({ stars, reviewCount, className }) => {
95
- const group = (0, classnames.default)("spiffy-product-card-rating", "spiffy-product-card-text-color", "spiffy-tw-flex", "spiffy-tw-flex-row", "spiffy-tw-items-center", "spiffy-tw-gap-1", "spiffy-tw-text-[--spiffy-colors-text-primary]", "spiffy-tw-tracking-[0.8px]");
96
- const starClassnames = (0, classnames.default)("spiffy-product-card-rating-star-color", "spiffy-tw-fill-[--spiffy-colors-accent-primary]", "spiffy-tw-w-[14px]", "spiffy-tw-h-[14px]");
97
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
98
- className,
99
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
100
- className: group,
101
- children: [
102
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_icons_md.MdStar, { className: starClassnames }),
103
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
104
- variant: "body3",
105
- children: formatReviews(stars)
106
- }),
107
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Text.Text, {
108
- variant: "body3",
109
- children: [
110
- "(",
111
- reviewCount,
112
- ")"
113
- ]
114
- })
115
- ]
116
- })
117
- });
118
- };
119
- const PriceSection = ({ originalPrice, salePrice, pricePrefix }) => {
120
- if (!originalPrice) return null;
121
- const priceClassName = (0, classnames.default)("spiffy-product-card-price", "spiffy-product-card-text-color", "spiffy-tw-font-regular", "spiffy-tw-flex", "spiffy-tw-flex-wrap", "spiffy-tw-gap-1", "spiffy-tw-text-sm", "spiffy-tw-font-[400]", "spiffy-tw-leading-[100%]", "spiffy-tw-tracking-[0.8px]", "spiffy-tw-text-[--spiffy-colors-text-primary]");
122
- const showSalePrice = salePrice && originalPrice !== salePrice;
123
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
124
- className: priceClassName,
125
- children: [
126
- pricePrefix && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, { children: pricePrefix }),
127
- showSalePrice && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, { children: salePrice }),
128
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
129
- className: showSalePrice ? "spiffy-tw-line-through" : "",
130
- children: originalPrice
131
- })
132
- ]
133
- });
134
- };
135
- const ProductCard = ({ productCardConfig, merchantShortName, imageUrl, title, url, originalPrice, averageRating, numberReviews, salePrice, variant, hoverVariant, dataTestId, layoutVariant = "normal", zoomOnHover = false, aspectRatio = "none", growWithContainer = false, handleClick }) => {
136
- const { resolve } = (0, __envive_ai_react_hooks_hooks_ImageResolver.useImageResolver)();
137
- const finalVariant = variant ?? productCardConfig?.variant ?? "filled";
138
- const finalHoverVariant = hoverVariant ?? productCardConfig?.hoverVariant ?? "backgroundDark";
139
- const finalLayoutVariant = layoutVariant ?? productCardConfig?.layoutVariant ?? "normal";
140
- const pricePrefix = productCardConfig?.pricePrefix;
141
- if (productCardConfig == null) {
142
- logger_default.logError("[ProductCard] productCardConfig is null", void 0, { merchant: merchantShortName });
143
- return null;
144
- }
145
- const layoutClasses = productCardLayoutVariantClasses[finalLayoutVariant];
146
- const containerClassnames = (0, classnames.default)("spiffy-tw-cursor-pointer", "spiffy-tw-flex", "spiffy-tw-flex-col", "spiffy-tw-gap-inherit", "spiffy-tw-overflow-hidden", {
147
- "spiffy-tw-h-full": growWithContainer,
148
- "spiffy-tw-w-full": growWithContainer,
149
- "spiffy-tw-max-w-full": growWithContainer
150
- }, !growWithContainer && layoutClasses.container, variantClassMap.get(finalVariant) ?? [], variantHoverClassMap.get(finalHoverVariant) ?? []);
151
- const verticalContainerVariantClasses = productCardLayoutVariantClasses[layoutVariant].verticalContainer;
152
- const verticalContainerClassnames = (0, classnames.default)("spiffy-tw-flex", "spiffy-tw-flex-col", "spiffy-tw-overflow-hidden", "spiffy-tw-gap-inherit", {
153
- "spiffy-tw-h-full": growWithContainer,
154
- "spiffy-tw-w-full": growWithContainer,
155
- "spiffy-tw-flex-1": growWithContainer
156
- }, ...!growWithContainer && layoutVariant ? verticalContainerVariantClasses : []);
157
- const linkClassnames = (0, classnames.default)({
158
- "spiffy-tw-w-full": true,
159
- "spiffy-tw-h-full": true,
160
- "spiffy-tw-overflow-hidden": true,
161
- "spiffy-tw-select-none": true
162
- });
163
- const imageClipContainerClassnames = (0, classnames.default)("spiffy-tw-w-full", "spiffy-tw-overflow-hidden", {
164
- "spiffy-tw-flex-shrink-0": growWithContainer,
165
- "spiffy-tw-tw-h-full": !growWithContainer
166
- }, aspectRatio === "3:4" ? "spiffy-tw-aspect-[3/4]" : "", aspectRatio === "square" ? "spiffy-tw-aspect-square" : "");
167
- const imageContainerClassnames = (0, classnames.default)(linkClassnames, zoomOnHover ? [
168
- "spiffy-tw-transition-transform",
169
- "spiffy-tw-duration-200",
170
- "spiffy-tw-origin-top",
171
- "hover:spiffy-tw-scale-105"
172
- ] : []);
173
- const contentClassnames = (0, classnames.default)("spiffy-tw-flex", "spiffy-tw-flex-col", "spiffy-tw-p-2", "spiffy-tw-pr-2", "spiffy-tw-items-start", "spiffy-tw-justify-end", { "spiffy-tw-flex-grow-0": layoutVariant === "tall" || layoutVariant === "square" });
174
- const productTitleClassnames = (0, classnames.default)("spiffy-tw-line-clamp-2", "spiffy-tw-overflow-clip", "spiffy-tw-tracking-[0.8px]", "spiffy-tw-whitespace-normal", "spiffy-tw-normal-case", variantTitleColorMap.get(finalVariant) ?? "spiffy-tw-text-[--spiffy-colors-text-primary]", ...layoutClasses.productTitle);
175
- const priceAndRatingContainerClassnames = (0, classnames.default)("spiffy-tw-flex", "spiffy-tw-flex-row", "spiffy-tw-justify-between", "spiffy-tw-items-center", "spiffy-tw-w-full", "spiffy-tw-pt-2", "spiffy-tw-gap-2");
176
- const imageClassnames = (0, classnames.default)("spiffy-tw-bg-transparent", "spiffy-tw-w-full", "spiffy-tw-h-full", "spiffy-tw-object-cover", "spiffy-tw-object-top", "spiffy-tw-select-none", "spiffy-tw-pointer-events-none");
177
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
178
- className: containerClassnames,
179
- "data-testid": dataTestId,
180
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
181
- href: url,
182
- onClick: () => handleClick(url),
183
- target: "_self",
184
- draggable: false,
185
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
186
- className: verticalContainerClassnames,
187
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
188
- className: imageClipContainerClassnames,
189
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
190
- className: imageContainerClassnames,
191
- children: imageUrl && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ImageWithFallback.ImageWithFallback, {
192
- src: resolve(imageUrl, layoutVariant === "tall" ? 300 : 178),
193
- alt: title,
194
- fallback: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Spinner.Spinner, { className: "spiffy-tw-w-6 spiffy-tw-h-6" }),
195
- imageClassnames
196
- })
197
- })
198
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
199
- className: contentClassnames,
200
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Headline.Headline, {
201
- variant: "h4",
202
- className: productTitleClassnames,
203
- children: title
204
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
205
- className: priceAndRatingContainerClassnames,
206
- children: [(originalPrice || salePrice) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PriceSection, {
207
- originalPrice: formatPrice(originalPrice),
208
- salePrice: formatPrice(salePrice),
209
- pricePrefix
210
- }), averageRating && numberReviews && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RatingSummary, {
211
- stars: averageRating,
212
- reviewCount: numberReviews
213
- })]
214
- })]
215
- })]
216
- })
217
- })
218
- });
219
- };
220
-
221
- //#endregion
222
- //#region src/components/ProductCard/types.ts
223
- let ProductCardSkeletonOverrides = /* @__PURE__ */ function(ProductCardSkeletonOverrides$1) {
224
- ProductCardSkeletonOverrides$1["PRODUCT_CARD_SKELETON_CONTAINER"] = "spiffy-product-card-skeleton-container";
225
- ProductCardSkeletonOverrides$1["PRODUCT_CARD_SKELETON"] = "spiffy-product-card-skeleton";
226
- return ProductCardSkeletonOverrides$1;
227
- }({});
228
- let AnimatedProductCardOverrides = /* @__PURE__ */ function(AnimatedProductCardOverrides$1) {
229
- AnimatedProductCardOverrides$1["PRODUCT_CARD_ANIMATED_CONTAINER"] = "spiffy-product-card-animated-container";
230
- AnimatedProductCardOverrides$1["PRODUCT_CARD_ANIMATED_IMAGE_CONTAINER"] = "spiffy-product-card-animated";
231
- return AnimatedProductCardOverrides$1;
232
- }({});
233
-
234
- //#endregion
235
- //#region src/components/ProductCard/ProductCardSkeleton.tsx
236
- const ProductCardSkeleton = ({ layoutVariant, aspectRatio, growWithContainer = false }) => {
237
- const layoutClasses = productCardLayoutVariantClasses[layoutVariant || "normal"];
238
- const containerClasses = (0, classnames.default)(ProductCardSkeletonOverrides.PRODUCT_CARD_SKELETON_CONTAINER, "spiffy-tw-flex", "spiffy-tw-flex-col", "spiffy-tw-gap-inherit", "spiffy-tw-bg-transparent", !growWithContainer ? layoutClasses.container : "");
239
- const verticalContainerClasses = (0, classnames.default)("spiffy-tw-flex", "spiffy-tw-flex-col", "spiffy-tw-overflow-hidden", "spiffy-tw-gap-inherit", !growWithContainer ? layoutClasses.verticalContainer : "");
240
- const imageClipContainerClasses = (0, classnames.default)("spiffy-tw-w-full", aspectRatio === "3:4" ? "spiffy-tw-aspect-[3/4]" : "", aspectRatio === "square" ? "spiffy-tw-aspect-square" : "", "spiffy-tw-overflow-hidden");
241
- const imageSkeletonClasses = (0, classnames.default)("spiffy-tw-bg-[#F4F4F6]", "spiffy-tw-animate-pulse", "spiffy-tw-opacity-70", "spiffy-tw-w-full", "spiffy-tw-h-full");
242
- const contentContainerClasses = (0, classnames.default)("spiffy-tw-flex", "spiffy-tw-flex-col", "spiffy-tw-gap-2", "spiffy-tw-w-full", "spiffy-tw-p-2");
243
- const textSkeletonClasses = (0, classnames.default)(ProductCardSkeletonOverrides.PRODUCT_CARD_SKELETON, "spiffy-tw-h-[15px]", "spiffy-tw-block", "spiffy-tw-rounded-sm", "spiffy-tw-animate-pulse", "spiffy-tw-opacity-70", "spiffy-tw-bg-[#F4F4F6]");
244
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
245
- className: containerClasses,
246
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
247
- className: verticalContainerClasses,
248
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
249
- className: imageClipContainerClasses,
250
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: imageSkeletonClasses })
251
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
252
- className: contentContainerClasses,
253
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: (0, classnames.default)(textSkeletonClasses, "spiffy-tw-w-full") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: (0, classnames.default)(textSkeletonClasses, "spiffy-tw-w-[60%]") })]
254
- })]
255
- })
256
- });
257
- };
258
-
259
- //#endregion
260
- Object.defineProperty(exports, 'AnimatedProductCardOverrides', {
261
- enumerable: true,
262
- get: function () {
263
- return AnimatedProductCardOverrides;
264
- }
265
- });
266
- Object.defineProperty(exports, 'PriceSection', {
267
- enumerable: true,
268
- get: function () {
269
- return PriceSection;
270
- }
271
- });
272
- Object.defineProperty(exports, 'ProductCard', {
273
- enumerable: true,
274
- get: function () {
275
- return ProductCard;
276
- }
277
- });
278
- Object.defineProperty(exports, 'ProductCardSkeleton', {
279
- enumerable: true,
280
- get: function () {
281
- return ProductCardSkeleton;
282
- }
283
- });
284
- Object.defineProperty(exports, 'ProductCardSkeletonOverrides', {
285
- enumerable: true,
286
- get: function () {
287
- return ProductCardSkeletonOverrides;
288
- }
289
- });
290
- Object.defineProperty(exports, 'RatingSummary', {
291
- enumerable: true,
292
- get: function () {
293
- return RatingSummary;
294
- }
295
- });
296
- Object.defineProperty(exports, 'productCardLayoutVariantClasses', {
297
- enumerable: true,
298
- get: function () {
299
- return productCardLayoutVariantClasses;
300
- }
301
- });
302
- Object.defineProperty(exports, 'variantClassMap', {
303
- enumerable: true,
304
- get: function () {
305
- return variantClassMap;
306
- }
307
- });
308
- Object.defineProperty(exports, 'variantHoverClassMap', {
309
- enumerable: true,
310
- get: function () {
311
- return variantHoverClassMap;
312
- }
313
- });
314
- Object.defineProperty(exports, 'variantTitleColorMap', {
315
- enumerable: true,
316
- get: function () {
317
- return variantTitleColorMap;
318
- }
319
- });