@envive-ai/react-toolkit 0.1.1 → 0.1.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 (257) hide show
  1. package/dist/AppliedFiltersScrollbar-BlcyhZkZ.cjs +53 -0
  2. package/dist/AppliedFiltersScrollbar-DFGzRemu.js +44 -0
  3. package/dist/ButtonBase-C1rsL9gO.js +60 -0
  4. package/dist/ButtonBase-a8uj6c2f.cjs +69 -0
  5. package/dist/DynamicFiltersScrollbar-B2Rr1KnJ.cjs +41 -0
  6. package/dist/DynamicFiltersScrollbar-Dys6geP0.js +32 -0
  7. package/dist/Headline-L7w3BsBF.cjs +72 -0
  8. package/dist/Headline-ro_Nigw5.js +64 -0
  9. package/dist/ImageWithFallback-CfmkC58B.js +42 -0
  10. package/dist/ImageWithFallback-P3AjyL2Y.cjs +51 -0
  11. package/dist/ProductCard-Btg8tHGc.js +172 -0
  12. package/dist/ProductCard-CS6DZAwO.cjs +193 -0
  13. package/dist/ProductCardSkeleton-BPfp6IOp.js +38 -0
  14. package/dist/ProductCardSkeleton-BgvDlaty.cjs +46 -0
  15. package/dist/ProductGrid-B7QZfW-v.cjs +77 -0
  16. package/dist/ProductGrid-DB_Uq5F-.js +69 -0
  17. package/dist/SearchAutocomplete-C5FL82xC.js +51 -0
  18. package/dist/SearchAutocomplete-wr18dJ8L.cjs +62 -0
  19. package/dist/SearchFilter-D-2IdBKS.js +62 -0
  20. package/dist/SearchFilter-D0IzBlG5.cjs +70 -0
  21. package/dist/SearchFilterHeader-BQT0-ssS.js +37 -0
  22. package/dist/SearchFilterHeader-C3EklfoO.cjs +45 -0
  23. package/dist/SearchFilterItem-BodtWLoP.js +26 -0
  24. package/dist/SearchFilterItem-DmMkiqNC.cjs +34 -0
  25. package/dist/SearchInput-BrcAgcvI.js +89 -0
  26. package/dist/SearchInput-DSB9CwIq.cjs +106 -0
  27. package/dist/SparkleAnimation-BpLwrEqM.cjs +96 -0
  28. package/dist/SparkleAnimation-CXs58sFd.js +85 -0
  29. package/dist/Spinner-BZ-kTOpm.js +38 -0
  30. package/dist/Spinner-CfQ85Ajl.cjs +46 -0
  31. package/dist/Text-Bdv7F5-u.js +42 -0
  32. package/dist/Text-C04c4Z93.cjs +50 -0
  33. package/dist/TextInput-BO80ixsV.cjs +40 -0
  34. package/dist/TextInput-CEGWfdPC.js +31 -0
  35. package/dist/chunk-CUT6urMc.cjs +30 -0
  36. package/dist/colorsConfig-TCONYTQ7.cjs +38 -0
  37. package/dist/colorsConfig-l0ODUVhu.js +26 -0
  38. package/dist/common/ButtonBase/ButtonBase.cjs +5 -0
  39. package/dist/common/ButtonBase/ButtonBase.d.cts +35 -0
  40. package/dist/common/ButtonBase/ButtonBase.d.ts +35 -0
  41. package/dist/common/ButtonBase/ButtonBase.js +5 -0
  42. package/dist/common/Headline/Headline.cjs +4 -0
  43. package/dist/common/Headline/Headline.d.cts +21 -0
  44. package/dist/common/Headline/Headline.d.ts +21 -0
  45. package/dist/common/Headline/Headline.js +4 -0
  46. package/dist/common/ImageWithFallback/ImageWithFallback.cjs +3 -0
  47. package/dist/common/ImageWithFallback/ImageWithFallback.d.cts +26 -0
  48. package/dist/common/ImageWithFallback/ImageWithFallback.d.ts +26 -0
  49. package/dist/common/ImageWithFallback/ImageWithFallback.js +3 -0
  50. package/dist/common/ProductCard/ProductCard.cjs +11 -0
  51. package/dist/common/ProductCard/ProductCard.d.cts +91 -0
  52. package/dist/common/ProductCard/ProductCard.d.ts +91 -0
  53. package/dist/common/ProductCard/ProductCard.js +9 -0
  54. package/dist/common/ProductCard/ProductCardSkeleton.cjs +4 -0
  55. package/dist/common/ProductCard/ProductCardSkeleton.d.cts +12 -0
  56. package/dist/common/ProductCard/ProductCardSkeleton.d.ts +12 -0
  57. package/dist/common/ProductCard/ProductCardSkeleton.js +4 -0
  58. package/dist/common/ProductGrid/ProductGrid.cjs +11 -0
  59. package/dist/common/ProductGrid/ProductGrid.d.cts +26 -0
  60. package/dist/common/ProductGrid/ProductGrid.d.ts +26 -0
  61. package/dist/common/ProductGrid/ProductGrid.js +11 -0
  62. package/dist/common/SparkleAnimation/SparkleAnimation.cjs +3 -0
  63. package/dist/common/SparkleAnimation/SparkleAnimation.d.cts +15 -0
  64. package/dist/common/SparkleAnimation/SparkleAnimation.d.ts +15 -0
  65. package/dist/common/SparkleAnimation/SparkleAnimation.js +3 -0
  66. package/dist/common/Spinner/Spinner.cjs +3 -0
  67. package/dist/common/Spinner/Spinner.d.cts +11 -0
  68. package/dist/common/Spinner/Spinner.d.ts +11 -0
  69. package/dist/common/Spinner/Spinner.js +3 -0
  70. package/dist/common/SuggestionButton/SuggestionButton.cjs +188 -0
  71. package/dist/common/SuggestionButton/SuggestionButton.d.cts +35 -0
  72. package/dist/common/SuggestionButton/SuggestionButton.d.ts +35 -0
  73. package/dist/common/SuggestionButton/SuggestionButton.js +180 -0
  74. package/dist/common/Text/Text.cjs +4 -0
  75. package/dist/common/Text/Text.d.cts +28 -0
  76. package/dist/common/Text/Text.d.ts +28 -0
  77. package/dist/common/Text/Text.js +4 -0
  78. package/dist/common/TextInput/TextInput.cjs +4 -0
  79. package/dist/common/TextInput/TextInput.d.cts +98 -0
  80. package/dist/common/TextInput/TextInput.d.ts +98 -0
  81. package/dist/common/TextInput/TextInput.js +4 -0
  82. package/dist/productCardVariants-C_QIZ-KF.js +45 -0
  83. package/dist/productCardVariants-Dd-wrJKP.cjs +69 -0
  84. package/dist/productGridVariants-CxCKx5Fq.js +20 -0
  85. package/dist/productGridVariants-DVzvjK9i.cjs +26 -0
  86. package/dist/search/FilterScrollbar/AppliedFiltersScrollbar.cjs +5 -0
  87. package/dist/search/FilterScrollbar/AppliedFiltersScrollbar.d.cts +22 -0
  88. package/dist/search/FilterScrollbar/AppliedFiltersScrollbar.d.ts +22 -0
  89. package/dist/search/FilterScrollbar/AppliedFiltersScrollbar.js +5 -0
  90. package/dist/search/FilterScrollbar/DynamicFiltersScrollbar.cjs +5 -0
  91. package/dist/search/FilterScrollbar/DynamicFiltersScrollbar.d.cts +28 -0
  92. package/dist/search/FilterScrollbar/DynamicFiltersScrollbar.d.ts +28 -0
  93. package/dist/search/FilterScrollbar/DynamicFiltersScrollbar.js +5 -0
  94. package/dist/search/SearchFilter/SearchFilter.cjs +7 -0
  95. package/dist/search/SearchFilter/SearchFilter.d.cts +18 -0
  96. package/dist/search/SearchFilter/SearchFilter.d.ts +18 -0
  97. package/dist/search/SearchFilter/SearchFilter.js +7 -0
  98. package/dist/search/SearchFilter/SearchFilterHeader.cjs +5 -0
  99. package/dist/search/SearchFilter/SearchFilterHeader.d.cts +12 -0
  100. package/dist/search/SearchFilter/SearchFilterHeader.d.ts +12 -0
  101. package/dist/search/SearchFilter/SearchFilterHeader.js +5 -0
  102. package/dist/search/SearchFilter/SearchFilterItem.cjs +5 -0
  103. package/dist/search/SearchFilter/SearchFilterItem.d.cts +13 -0
  104. package/dist/search/SearchFilter/SearchFilterItem.d.ts +13 -0
  105. package/dist/search/SearchFilter/SearchFilterItem.js +5 -0
  106. package/dist/search/SearchInput/SearchInput.cjs +6 -0
  107. package/dist/search/SearchInput/SearchInput.d.cts +20 -0
  108. package/dist/search/SearchInput/SearchInput.d.ts +20 -0
  109. package/dist/search/SearchInput/SearchInput.js +6 -0
  110. package/dist/search/SearchInputAutocomplete/SearchAutocomplete.cjs +3 -0
  111. package/dist/search/SearchInputAutocomplete/SearchAutocomplete.d.cts +13 -0
  112. package/dist/search/SearchInputAutocomplete/SearchAutocomplete.d.ts +13 -0
  113. package/dist/search/SearchInputAutocomplete/SearchAutocomplete.js +3 -0
  114. package/dist/search/SearchInputForm/SearchInputForm.cjs +38 -0
  115. package/dist/search/SearchInputForm/SearchInputForm.d.cts +32 -0
  116. package/dist/search/SearchInputForm/SearchInputForm.d.ts +32 -0
  117. package/dist/search/SearchInputForm/SearchInputForm.js +36 -0
  118. package/dist/search/SearchResultsFilterSidebar/SearchResultsFilter.cjs +52 -0
  119. package/dist/search/SearchResultsFilterSidebar/SearchResultsFilter.d.cts +28 -0
  120. package/dist/search/SearchResultsFilterSidebar/SearchResultsFilter.d.ts +28 -0
  121. package/dist/search/SearchResultsFilterSidebar/SearchResultsFilter.js +49 -0
  122. package/dist/search/SearchResultsStates/NoSearchResultsFound.cjs +30 -0
  123. package/dist/search/SearchResultsStates/NoSearchResultsFound.d.cts +17 -0
  124. package/dist/search/SearchResultsStates/NoSearchResultsFound.d.ts +17 -0
  125. package/dist/search/SearchResultsStates/NoSearchResultsFound.js +26 -0
  126. package/dist/search/SearchResultsStates/SearchResultsGrid.cjs +66 -0
  127. package/dist/search/SearchResultsStates/SearchResultsGrid.d.cts +41 -0
  128. package/dist/search/SearchResultsStates/SearchResultsGrid.d.ts +41 -0
  129. package/dist/search/SearchResultsStates/SearchResultsGrid.js +62 -0
  130. package/dist/search/SearchResultsStates/SearchResultsLoadingGrid.cjs +52 -0
  131. package/dist/search/SearchResultsStates/SearchResultsLoadingGrid.d.cts +15 -0
  132. package/dist/search/SearchResultsStates/SearchResultsLoadingGrid.d.ts +15 -0
  133. package/dist/search/SearchResultsStates/SearchResultsLoadingGrid.js +49 -0
  134. package/dist/searchFilterSidebarVariants-GfFbQzGf.cjs +39 -0
  135. package/dist/searchFilterSidebarVariants-lJVVZT_2.js +34 -0
  136. package/dist/textVariantClasses-5t3OricK.js +101 -0
  137. package/dist/textVariantClasses-Bhf4VY5z.cjs +125 -0
  138. package/dist/types-53zIialA.d.ts +35 -0
  139. package/dist/types-B4BGZSlV.d.cts +4 -0
  140. package/dist/types-BQNqA5xL.d.ts +46 -0
  141. package/dist/types-BRLWwGMI.d.ts +4 -0
  142. package/dist/types-CImLkcNh.d.cts +46 -0
  143. package/dist/types-Cph97xkm.d.ts +6 -0
  144. package/dist/types-CpiJO5UH.d.ts +4 -0
  145. package/dist/types-DFetqNL2.d.ts +8 -0
  146. package/dist/types-DaSkJnT_.d.cts +8 -0
  147. package/dist/types-Dy4_w6Cf.d.cts +4 -0
  148. package/dist/types-TYhhwWZw.d.cts +6 -0
  149. package/dist/types-aa4flfRE.d.cts +35 -0
  150. package/package.json +8 -8
  151. package/src/components/common/ButtonBase/ButtonBase.tsx +2 -2
  152. package/src/components/common/ButtonBase/types.ts +2 -3
  153. package/dist/src/atoms/search/types.d.ts +0 -5
  154. package/dist/src/atoms/search/types.js +0 -1
  155. package/dist/src/components/common/ButtonBase/ButtonBase.d.ts +0 -2
  156. package/dist/src/components/common/ButtonBase/ButtonBase.js +0 -41
  157. package/dist/src/components/common/ButtonBase/types.d.ts +0 -24
  158. package/dist/src/components/common/ButtonBase/types.js +0 -6
  159. package/dist/src/components/common/Headline/Headline.d.ts +0 -10
  160. package/dist/src/components/common/Headline/Headline.js +0 -34
  161. package/dist/src/components/common/ImageWithFallback/ImageWithFallback.d.ts +0 -12
  162. package/dist/src/components/common/ImageWithFallback/ImageWithFallback.js +0 -26
  163. package/dist/src/components/common/ProductCard/ProductCard.d.ts +0 -39
  164. package/dist/src/components/common/ProductCard/ProductCard.js +0 -84
  165. package/dist/src/components/common/ProductCard/ProductCardSkeleton.d.ts +0 -9
  166. package/dist/src/components/common/ProductCard/ProductCardSkeleton.js +0 -15
  167. package/dist/src/components/common/ProductCard/productCardVariants.d.ts +0 -8
  168. package/dist/src/components/common/ProductCard/productCardVariants.js +0 -50
  169. package/dist/src/components/common/ProductCard/types.d.ts +0 -39
  170. package/dist/src/components/common/ProductCard/types.js +0 -10
  171. package/dist/src/components/common/ProductGrid/ProductGrid.d.ts +0 -14
  172. package/dist/src/components/common/ProductGrid/ProductGrid.js +0 -13
  173. package/dist/src/components/common/ProductGrid/productGridVariants.d.ts +0 -10
  174. package/dist/src/components/common/ProductGrid/productGridVariants.js +0 -16
  175. package/dist/src/components/common/SparkleAnimation/SparkleAnimation.d.ts +0 -7
  176. package/dist/src/components/common/SparkleAnimation/SparkleAnimation.js +0 -40
  177. package/dist/src/components/common/SparkleAnimation/types.d.ts +0 -6
  178. package/dist/src/components/common/SparkleAnimation/types.js +0 -7
  179. package/dist/src/components/common/Spinner/Spinner.d.ts +0 -5
  180. package/dist/src/components/common/Spinner/Spinner.js +0 -16
  181. package/dist/src/components/common/SuggestionButton/SuggestionButton.d.ts +0 -18
  182. package/dist/src/components/common/SuggestionButton/SuggestionButton.js +0 -210
  183. package/dist/src/components/common/SuggestionButton/types.d.ts +0 -1
  184. package/dist/src/components/common/SuggestionButton/types.js +0 -1
  185. package/dist/src/components/common/Text/Text.d.ts +0 -12
  186. package/dist/src/components/common/Text/Text.js +0 -26
  187. package/dist/src/components/common/Text/textVariantClasses.d.ts +0 -171
  188. package/dist/src/components/common/Text/textVariantClasses.js +0 -103
  189. package/dist/src/components/common/Text/types.d.ts +0 -16
  190. package/dist/src/components/common/Text/types.js +0 -6
  191. package/dist/src/components/common/TextInput/TextInput.d.ts +0 -8
  192. package/dist/src/components/common/TextInput/TextInput.js +0 -25
  193. package/dist/src/components/models/colorsConfig.d.ts +0 -26
  194. package/dist/src/components/models/colorsConfig.js +0 -23
  195. package/dist/src/components/search/FilterScrollbar/AppliedFiltersScrollbar.d.ts +0 -11
  196. package/dist/src/components/search/FilterScrollbar/AppliedFiltersScrollbar.js +0 -18
  197. package/dist/src/components/search/FilterScrollbar/DynamicFiltersScrollbar.d.ts +0 -15
  198. package/dist/src/components/search/FilterScrollbar/DynamicFiltersScrollbar.js +0 -15
  199. package/dist/src/components/search/SearchFilter/SearchFilter.d.ts +0 -2
  200. package/dist/src/components/search/SearchFilter/SearchFilter.js +0 -24
  201. package/dist/src/components/search/SearchFilter/SearchFilterHeader.d.ts +0 -2
  202. package/dist/src/components/search/SearchFilter/SearchFilterHeader.js +0 -9
  203. package/dist/src/components/search/SearchFilter/SearchFilterItem.d.ts +0 -2
  204. package/dist/src/components/search/SearchFilter/SearchFilterItem.js +0 -13
  205. package/dist/src/components/search/SearchFilter/types.d.ts +0 -42
  206. package/dist/src/components/search/SearchFilter/types.js +0 -1
  207. package/dist/src/components/search/SearchInput/SearchInput.d.ts +0 -16
  208. package/dist/src/components/search/SearchInput/SearchInput.js +0 -38
  209. package/dist/src/components/search/SearchInput/searchInputVariants.d.ts +0 -13
  210. package/dist/src/components/search/SearchInput/searchInputVariants.js +0 -12
  211. package/dist/src/components/search/SearchInputAutocomplete/SearchAutocomplete.d.ts +0 -10
  212. package/dist/src/components/search/SearchInputAutocomplete/SearchAutocomplete.js +0 -14
  213. package/dist/src/components/search/SearchInputForm/SearchInputForm.d.ts +0 -16
  214. package/dist/src/components/search/SearchInputForm/SearchInputForm.js +0 -13
  215. package/dist/src/components/search/SearchInputForm/types.d.ts +0 -1
  216. package/dist/src/components/search/SearchInputForm/types.js +0 -1
  217. package/dist/src/components/search/SearchResultsFilterSidebar/SearchResultsFilter.d.ts +0 -14
  218. package/dist/src/components/search/SearchResultsFilterSidebar/SearchResultsFilter.js +0 -15
  219. package/dist/src/components/search/SearchResultsFilterSidebar/searchFilterSidebarVariants.d.ts +0 -16
  220. package/dist/src/components/search/SearchResultsFilterSidebar/searchFilterSidebarVariants.js +0 -29
  221. package/dist/src/components/search/SearchResultsFilterSidebar/types.d.ts +0 -2
  222. package/dist/src/components/search/SearchResultsFilterSidebar/types.js +0 -1
  223. package/dist/src/components/search/SearchResultsStates/NoSearchResultsFound.d.ts +0 -8
  224. package/dist/src/components/search/SearchResultsStates/NoSearchResultsFound.js +0 -10
  225. package/dist/src/components/search/SearchResultsStates/SearchResultsGrid.d.ts +0 -24
  226. package/dist/src/components/search/SearchResultsStates/SearchResultsGrid.js +0 -19
  227. package/dist/src/components/search/SearchResultsStates/SearchResultsLoadingGrid.d.ts +0 -6
  228. package/dist/src/components/search/SearchResultsStates/SearchResultsLoadingGrid.js +0 -10
  229. package/dist/src/components/search/types.d.ts +0 -5
  230. package/dist/src/components/search/types.js +0 -6
  231. package/dist/src/components/test/types.d.ts +0 -3
  232. package/dist/src/components/test/types.js +0 -1
  233. package/dist/src/config/chatElementDisplayLocation.d.ts +0 -21
  234. package/dist/src/config/chatElementDisplayLocation.js +0 -23
  235. package/dist/src/index.d.ts +0 -45
  236. package/dist/src/index.js +0 -49
  237. package/dist/src/logging/logger.d.ts +0 -7
  238. package/dist/src/logging/logger.js +0 -16
  239. package/dist/src/types/external.d.ts +0 -21
  240. package/dist/src/types/external.js +0 -5
  241. package/dist/src/util/camelCase.d.ts +0 -65
  242. package/dist/src/util/camelCase.js +0 -2
  243. package/dist/src/util/camelCasedPropertiesDeep.d.ts +0 -53
  244. package/dist/src/util/camelCasedPropertiesDeep.js +0 -1
  245. package/dist/src/util/formatPrice.d.ts +0 -1
  246. package/dist/src/util/formatPrice.js +0 -11
  247. package/dist/src/util/internal.d.ts +0 -27
  248. package/dist/src/util/internal.js +0 -4
  249. package/dist/src/util/primitive.d.ts +0 -6
  250. package/dist/src/util/primitive.js +0 -2
  251. package/dist/src/util/splitWords.d.ts +0 -55
  252. package/dist/src/util/splitWords.js +0 -2
  253. package/dist/src/util/trim.d.ts +0 -24
  254. package/dist/src/util/trim.js +0 -2
  255. package/dist/src/util/unknownArray.d.ts +0 -25
  256. package/dist/src/util/unknownArray.js +0 -1
  257. package/src/index.ts +0 -59
@@ -0,0 +1,91 @@
1
+ import { TestProps } from "../../types-TYhhwWZw.cjs";
2
+ import { ProductCardConfig, ProductCardHoverVariant, ProductCardLayoutVariant, ProductCardVariant } from "../../types-aa4flfRE.cjs";
3
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
4
+
5
+ //#region src/config/chatElementDisplayLocation.d.ts
6
+ declare enum ChatElementDisplayLocation {
7
+ IN_CHAT = "in_chat",
8
+ CHAT_PREVIEW = "chat_preview",
9
+ FLOATING_BUTTON = "floating_button",
10
+ HELP_ME_CHOOSE = "help_me_choose",
11
+ PLP_IMAGE_BANNER = "plp_image_banner",
12
+ TOP_REVIEWS_SNIPPET = "top_reviews_snippet",
13
+ BOTTOM_REVIEWS_SNIPPET = "bottom_reviews_snippet",
14
+ BLOCK_BACK_BUTTON = "block_back_button",
15
+ SWITCH_TO_AGENT = "switch_to_agent",
16
+ CONVERSATIONAL_SEARCH = "conversational_search",
17
+ GLOBAL_SEARCH_ENTRYPOINT = "global_search_entrypoint",
18
+ SEARCH_NAV_ENTRYPOINT = "search_nav_entrypoint",
19
+ SEARCH_PROMPT = "search_prompt",
20
+ SEARCH_PROMPT_BUTTON = "search_prompt_button",
21
+ PRODUCT_GRID = "product_grid",
22
+ UNSPECIFIED = "unspecified",
23
+ FILTER_MODAL = "filter_modal",
24
+ PROMPT_CARD = "prompt_card",
25
+ WINDOW_API_CALL = "window_api_call",
26
+ }
27
+ //#endregion
28
+ //#region src/components/common/ProductCard/ProductCard.d.ts
29
+ interface RatingSummaryProps {
30
+ stars: number;
31
+ reviewCount: number;
32
+ className?: string;
33
+ }
34
+ declare const RatingSummary: ({
35
+ stars,
36
+ reviewCount,
37
+ className
38
+ }: RatingSummaryProps) => react_jsx_runtime3.JSX.Element;
39
+ interface PriceSectionProps {
40
+ originalPrice?: string;
41
+ salePrice?: string;
42
+ pricePrefix?: string;
43
+ }
44
+ declare const PriceSection: ({
45
+ originalPrice,
46
+ salePrice,
47
+ pricePrefix
48
+ }: PriceSectionProps) => react_jsx_runtime3.JSX.Element;
49
+ interface ProductCardProps extends TestProps {
50
+ productCardConfig?: ProductCardConfig;
51
+ merchantShortName: string;
52
+ title: string;
53
+ url?: string;
54
+ searchResponseId?: string;
55
+ productResponseId?: string;
56
+ cardDisplayLocation: ChatElementDisplayLocation.IN_CHAT | ChatElementDisplayLocation.PRODUCT_GRID;
57
+ imageUrl?: string;
58
+ originalPrice?: number;
59
+ averageRating?: number;
60
+ numberReviews?: number;
61
+ salePrice?: number;
62
+ variant?: ProductCardVariant;
63
+ hoverVariant?: ProductCardHoverVariant;
64
+ layoutVariant?: ProductCardLayoutVariant;
65
+ zoomOnHover?: boolean;
66
+ aspectRatio?: '3:4' | 'square' | 'none';
67
+ clickPosition?: number | null;
68
+ growWithContainer?: boolean;
69
+ handleClick: (clickedUrl: string) => void;
70
+ }
71
+ declare const ProductCard: ({
72
+ productCardConfig,
73
+ merchantShortName,
74
+ imageUrl,
75
+ title,
76
+ url,
77
+ originalPrice,
78
+ averageRating,
79
+ numberReviews,
80
+ salePrice,
81
+ variant,
82
+ hoverVariant,
83
+ dataTestId,
84
+ layoutVariant,
85
+ zoomOnHover,
86
+ aspectRatio,
87
+ growWithContainer,
88
+ handleClick
89
+ }: ProductCardProps) => react_jsx_runtime3.JSX.Element;
90
+ //#endregion
91
+ export { PriceSection, ProductCard, RatingSummary };
@@ -0,0 +1,91 @@
1
+ import { TestProps } from "../../types-Cph97xkm.js";
2
+ import { ProductCardConfig, ProductCardHoverVariant, ProductCardLayoutVariant, ProductCardVariant } from "../../types-53zIialA.js";
3
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
4
+
5
+ //#region src/config/chatElementDisplayLocation.d.ts
6
+ declare enum ChatElementDisplayLocation {
7
+ IN_CHAT = "in_chat",
8
+ CHAT_PREVIEW = "chat_preview",
9
+ FLOATING_BUTTON = "floating_button",
10
+ HELP_ME_CHOOSE = "help_me_choose",
11
+ PLP_IMAGE_BANNER = "plp_image_banner",
12
+ TOP_REVIEWS_SNIPPET = "top_reviews_snippet",
13
+ BOTTOM_REVIEWS_SNIPPET = "bottom_reviews_snippet",
14
+ BLOCK_BACK_BUTTON = "block_back_button",
15
+ SWITCH_TO_AGENT = "switch_to_agent",
16
+ CONVERSATIONAL_SEARCH = "conversational_search",
17
+ GLOBAL_SEARCH_ENTRYPOINT = "global_search_entrypoint",
18
+ SEARCH_NAV_ENTRYPOINT = "search_nav_entrypoint",
19
+ SEARCH_PROMPT = "search_prompt",
20
+ SEARCH_PROMPT_BUTTON = "search_prompt_button",
21
+ PRODUCT_GRID = "product_grid",
22
+ UNSPECIFIED = "unspecified",
23
+ FILTER_MODAL = "filter_modal",
24
+ PROMPT_CARD = "prompt_card",
25
+ WINDOW_API_CALL = "window_api_call",
26
+ }
27
+ //#endregion
28
+ //#region src/components/common/ProductCard/ProductCard.d.ts
29
+ interface RatingSummaryProps {
30
+ stars: number;
31
+ reviewCount: number;
32
+ className?: string;
33
+ }
34
+ declare const RatingSummary: ({
35
+ stars,
36
+ reviewCount,
37
+ className
38
+ }: RatingSummaryProps) => react_jsx_runtime0.JSX.Element;
39
+ interface PriceSectionProps {
40
+ originalPrice?: string;
41
+ salePrice?: string;
42
+ pricePrefix?: string;
43
+ }
44
+ declare const PriceSection: ({
45
+ originalPrice,
46
+ salePrice,
47
+ pricePrefix
48
+ }: PriceSectionProps) => react_jsx_runtime0.JSX.Element;
49
+ interface ProductCardProps extends TestProps {
50
+ productCardConfig?: ProductCardConfig;
51
+ merchantShortName: string;
52
+ title: string;
53
+ url?: string;
54
+ searchResponseId?: string;
55
+ productResponseId?: string;
56
+ cardDisplayLocation: ChatElementDisplayLocation.IN_CHAT | ChatElementDisplayLocation.PRODUCT_GRID;
57
+ imageUrl?: string;
58
+ originalPrice?: number;
59
+ averageRating?: number;
60
+ numberReviews?: number;
61
+ salePrice?: number;
62
+ variant?: ProductCardVariant;
63
+ hoverVariant?: ProductCardHoverVariant;
64
+ layoutVariant?: ProductCardLayoutVariant;
65
+ zoomOnHover?: boolean;
66
+ aspectRatio?: '3:4' | 'square' | 'none';
67
+ clickPosition?: number | null;
68
+ growWithContainer?: boolean;
69
+ handleClick: (clickedUrl: string) => void;
70
+ }
71
+ declare const ProductCard: ({
72
+ productCardConfig,
73
+ merchantShortName,
74
+ imageUrl,
75
+ title,
76
+ url,
77
+ originalPrice,
78
+ averageRating,
79
+ numberReviews,
80
+ salePrice,
81
+ variant,
82
+ hoverVariant,
83
+ dataTestId,
84
+ layoutVariant,
85
+ zoomOnHover,
86
+ aspectRatio,
87
+ growWithContainer,
88
+ handleClick
89
+ }: ProductCardProps) => react_jsx_runtime0.JSX.Element;
90
+ //#endregion
91
+ export { PriceSection, ProductCard, RatingSummary };
@@ -0,0 +1,9 @@
1
+ import "../../textVariantClasses-5t3OricK.js";
2
+ import "../../Text-Bdv7F5-u.js";
3
+ import "../../Headline-ro_Nigw5.js";
4
+ import "../../ImageWithFallback-CfmkC58B.js";
5
+ import "../../productCardVariants-C_QIZ-KF.js";
6
+ import { PriceSection, ProductCard, RatingSummary } from "../../ProductCard-Btg8tHGc.js";
7
+ import "../../Spinner-BZ-kTOpm.js";
8
+
9
+ export { PriceSection, ProductCard, RatingSummary };
@@ -0,0 +1,4 @@
1
+ require('../../productCardVariants-Dd-wrJKP.cjs');
2
+ const require_ProductCardSkeleton = require('../../ProductCardSkeleton-BgvDlaty.cjs');
3
+
4
+ exports.ProductCardSkeleton = require_ProductCardSkeleton.ProductCardSkeleton;
@@ -0,0 +1,12 @@
1
+ import { ProductCardLayoutVariant } from "../../types-aa4flfRE.cjs";
2
+ import { FC } from "react";
3
+
4
+ //#region src/components/common/ProductCard/ProductCardSkeleton.d.ts
5
+ interface ProductCardSkeletonProps {
6
+ layoutVariant: ProductCardLayoutVariant;
7
+ aspectRatio?: '3:4' | 'square' | 'none';
8
+ growWithContainer?: boolean;
9
+ }
10
+ declare const ProductCardSkeleton: FC<ProductCardSkeletonProps>;
11
+ //#endregion
12
+ export { ProductCardSkeleton };
@@ -0,0 +1,12 @@
1
+ import { ProductCardLayoutVariant } from "../../types-53zIialA.js";
2
+ import { FC } from "react";
3
+
4
+ //#region src/components/common/ProductCard/ProductCardSkeleton.d.ts
5
+ interface ProductCardSkeletonProps {
6
+ layoutVariant: ProductCardLayoutVariant;
7
+ aspectRatio?: '3:4' | 'square' | 'none';
8
+ growWithContainer?: boolean;
9
+ }
10
+ declare const ProductCardSkeleton: FC<ProductCardSkeletonProps>;
11
+ //#endregion
12
+ export { ProductCardSkeleton };
@@ -0,0 +1,4 @@
1
+ import "../../productCardVariants-C_QIZ-KF.js";
2
+ import { ProductCardSkeleton } from "../../ProductCardSkeleton-BPfp6IOp.js";
3
+
4
+ export { ProductCardSkeleton };
@@ -0,0 +1,11 @@
1
+ require('../../textVariantClasses-Bhf4VY5z.cjs');
2
+ require('../../Text-C04c4Z93.cjs');
3
+ require('../../Headline-L7w3BsBF.cjs');
4
+ require('../../ImageWithFallback-P3AjyL2Y.cjs');
5
+ require('../../productCardVariants-Dd-wrJKP.cjs');
6
+ require('../../ProductCard-CS6DZAwO.cjs');
7
+ require('../../Spinner-CfQ85Ajl.cjs');
8
+ require('../../productGridVariants-DVzvjK9i.cjs');
9
+ const require_ProductGrid = require('../../ProductGrid-B7QZfW-v.cjs');
10
+
11
+ exports.ProductGrid = require_ProductGrid.ProductGrid;
@@ -0,0 +1,26 @@
1
+ import { ProductCardConfig, ProductGridVariant, SearchResponseProduct } from "../../types-aa4flfRE.cjs";
2
+ import * as react_jsx_runtime6 from "react/jsx-runtime";
3
+
4
+ //#region src/components/common/ProductGrid/ProductGrid.d.ts
5
+ interface ProductGridProps {
6
+ productList: SearchResponseProduct[];
7
+ productGridVariant: ProductGridVariant;
8
+ productGridClasses: string;
9
+ productCardConfig?: ProductCardConfig;
10
+ merchantShortName: string;
11
+ searchResponseId: string;
12
+ cardsGrowWithContainer?: boolean;
13
+ handleClick: (clickedUrl: string) => void;
14
+ }
15
+ declare const ProductGrid: ({
16
+ productList,
17
+ productGridVariant,
18
+ productGridClasses,
19
+ productCardConfig,
20
+ merchantShortName,
21
+ searchResponseId,
22
+ cardsGrowWithContainer,
23
+ handleClick
24
+ }: ProductGridProps) => react_jsx_runtime6.JSX.Element;
25
+ //#endregion
26
+ export { ProductGrid };
@@ -0,0 +1,26 @@
1
+ import { ProductCardConfig, ProductGridVariant, SearchResponseProduct } from "../../types-53zIialA.js";
2
+ import * as react_jsx_runtime13 from "react/jsx-runtime";
3
+
4
+ //#region src/components/common/ProductGrid/ProductGrid.d.ts
5
+ interface ProductGridProps {
6
+ productList: SearchResponseProduct[];
7
+ productGridVariant: ProductGridVariant;
8
+ productGridClasses: string;
9
+ productCardConfig?: ProductCardConfig;
10
+ merchantShortName: string;
11
+ searchResponseId: string;
12
+ cardsGrowWithContainer?: boolean;
13
+ handleClick: (clickedUrl: string) => void;
14
+ }
15
+ declare const ProductGrid: ({
16
+ productList,
17
+ productGridVariant,
18
+ productGridClasses,
19
+ productCardConfig,
20
+ merchantShortName,
21
+ searchResponseId,
22
+ cardsGrowWithContainer,
23
+ handleClick
24
+ }: ProductGridProps) => react_jsx_runtime13.JSX.Element;
25
+ //#endregion
26
+ export { ProductGrid };
@@ -0,0 +1,11 @@
1
+ import "../../textVariantClasses-5t3OricK.js";
2
+ import "../../Text-Bdv7F5-u.js";
3
+ import "../../Headline-ro_Nigw5.js";
4
+ import "../../ImageWithFallback-CfmkC58B.js";
5
+ import "../../productCardVariants-C_QIZ-KF.js";
6
+ import "../../ProductCard-Btg8tHGc.js";
7
+ import "../../Spinner-BZ-kTOpm.js";
8
+ import "../../productGridVariants-CxCKx5Fq.js";
9
+ import { ProductGrid } from "../../ProductGrid-DB_Uq5F-.js";
10
+
11
+ export { ProductGrid };
@@ -0,0 +1,3 @@
1
+ const require_SparkleAnimation = require('../../SparkleAnimation-BpLwrEqM.cjs');
2
+
3
+ exports.SparkleAnimation = require_SparkleAnimation.SparkleAnimation;
@@ -0,0 +1,15 @@
1
+ import * as react_jsx_runtime10 from "react/jsx-runtime";
2
+
3
+ //#region src/components/common/SparkleAnimation/SparkleAnimation.d.ts
4
+ interface SparkleAnimationProps {
5
+ color: string;
6
+ className?: string;
7
+ animate?: boolean;
8
+ }
9
+ declare const SparkleAnimation: ({
10
+ color,
11
+ className,
12
+ animate
13
+ }: SparkleAnimationProps) => react_jsx_runtime10.JSX.Element;
14
+ //#endregion
15
+ export { SparkleAnimation };
@@ -0,0 +1,15 @@
1
+ import * as react_jsx_runtime7 from "react/jsx-runtime";
2
+
3
+ //#region src/components/common/SparkleAnimation/SparkleAnimation.d.ts
4
+ interface SparkleAnimationProps {
5
+ color: string;
6
+ className?: string;
7
+ animate?: boolean;
8
+ }
9
+ declare const SparkleAnimation: ({
10
+ color,
11
+ className,
12
+ animate
13
+ }: SparkleAnimationProps) => react_jsx_runtime7.JSX.Element;
14
+ //#endregion
15
+ export { SparkleAnimation };
@@ -0,0 +1,3 @@
1
+ import { SparkleAnimation } from "../../SparkleAnimation-CXs58sFd.js";
2
+
3
+ export { SparkleAnimation };
@@ -0,0 +1,3 @@
1
+ const require_Spinner = require('../../Spinner-CfQ85Ajl.cjs');
2
+
3
+ exports.Spinner = require_Spinner.Spinner;
@@ -0,0 +1,11 @@
1
+ import * as react_jsx_runtime12 from "react/jsx-runtime";
2
+
3
+ //#region src/components/common/Spinner/Spinner.d.ts
4
+ type SpinnerProps = {
5
+ className?: string;
6
+ };
7
+ declare const Spinner: ({
8
+ className
9
+ }: SpinnerProps) => react_jsx_runtime12.JSX.Element;
10
+ //#endregion
11
+ export { Spinner };
@@ -0,0 +1,11 @@
1
+ import * as react_jsx_runtime9 from "react/jsx-runtime";
2
+
3
+ //#region src/components/common/Spinner/Spinner.d.ts
4
+ type SpinnerProps = {
5
+ className?: string;
6
+ };
7
+ declare const Spinner: ({
8
+ className
9
+ }: SpinnerProps) => react_jsx_runtime9.JSX.Element;
10
+ //#endregion
11
+ export { Spinner };
@@ -0,0 +1,3 @@
1
+ import { Spinner } from "../../Spinner-BZ-kTOpm.js";
2
+
3
+ export { Spinner };
@@ -0,0 +1,188 @@
1
+ const require_chunk = require('../../chunk-CUT6urMc.cjs');
2
+ const require_ButtonBase = require('../../ButtonBase-a8uj6c2f.cjs');
3
+ require('../../textVariantClasses-Bhf4VY5z.cjs');
4
+ require('../../Text-C04c4Z93.cjs');
5
+ let classnames = require("classnames");
6
+ classnames = require_chunk.__toESM(classnames);
7
+ let react_jsx_runtime = require("react/jsx-runtime");
8
+ react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
9
+ let __envive_ai_react_icons_src_FourPointStar = require("@envive-ai/react-icons/src/FourPointStar");
10
+ __envive_ai_react_icons_src_FourPointStar = require_chunk.__toESM(__envive_ai_react_icons_src_FourPointStar);
11
+ let __envive_ai_react_icons_src_OutlinedStar = require("@envive-ai/react-icons/src/OutlinedStar");
12
+ __envive_ai_react_icons_src_OutlinedStar = require_chunk.__toESM(__envive_ai_react_icons_src_OutlinedStar);
13
+
14
+ //#region src/components/common/SuggestionButton/SuggestionButton.tsx
15
+ const SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = "spiffy-suggestion-button-question-class";
16
+ const SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS = "spiffy-suggestion-button-answer-class";
17
+ const SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS = "spiffy-suggestion-button-text-class";
18
+ const BORDER_CLASS = "spiffy-tw-border";
19
+ const TEXT_LINK_CLASSES = [
20
+ "spiffy-tw-text-[--spiffy-colors-text-link]",
21
+ "spiffy-tw-fill-[--spiffy-colors-text-link]",
22
+ "spiffy-tw-stroke-[--spiffy-colors-text-link]"
23
+ ];
24
+ const TEXT_LIGHT_CLASSES = [
25
+ "spiffy-tw-text-[--spiffy-colors-text-light]",
26
+ "spiffy-tw-fill-[--spiffy-colors-text-light]",
27
+ "spiffy-tw-stroke-[--spiffy-colors-text-light]"
28
+ ];
29
+ const TEXT_PRIMARY_CLASSES = [
30
+ "spiffy-tw-text-[--spiffy-colors-text-primary]",
31
+ "spiffy-tw-fill-[--spiffy-colors-text-primary]",
32
+ "spiffy-tw-stroke-[--spiffy-colors-text-primary]"
33
+ ];
34
+ const ACCENT_PRIMARY_CLASSES = ["spiffy-tw-fill-[--spiffy-colors-accent-primary]", "spiffy-tw-stroke-[--spiffy-colors-accent-primary]"];
35
+ const DARK_BACKGROUND_CLASSES = ["spiffy-tw-bg-[--spiffy-colors-background-dark]", "spiffy-tw-border-[--spiffy-colors-background-dark]"];
36
+ const SECONDARY_DARK_BACKGROUND_CLASSES = ["spiffy-tw-bg-[--spiffy-colors-background-secondary-dark]", "spiffy-tw-border-[--spiffy-colors-background-secondary-dark]"];
37
+ const variantClassMap = new Map([
38
+ ["outlined", ["spiffy-tw-border-[--spiffy-colors-border-outline]", ...TEXT_LINK_CLASSES]],
39
+ ["outlinedLight", [
40
+ "spiffy-tw-border-[--spiffy-colors-border-outline]",
41
+ "spiffy-tw-bg-[--spiffy-colors-background-light]",
42
+ ...TEXT_LINK_CLASSES,
43
+ BORDER_CLASS
44
+ ]],
45
+ ["primary", [
46
+ "spiffy-tw-bg-[--spiffy-colors-background-primary]",
47
+ "spiffy-tw-border-[--spiffy-colors-background-primary]",
48
+ ...TEXT_LIGHT_CLASSES,
49
+ BORDER_CLASS
50
+ ]],
51
+ ["secondary", [
52
+ "spiffy-tw-bg-[--spiffy-colors-background-secondary]",
53
+ "spiffy-tw-text-[--spiffy-colors-text-link]",
54
+ "spiffy-tw-border-[--spiffy-colors-background-secondary]",
55
+ ...ACCENT_PRIMARY_CLASSES,
56
+ BORDER_CLASS
57
+ ]],
58
+ ["tertiary", [
59
+ "spiffy-tw-bg-[--spiffy-colors-background-tertiary]",
60
+ "spiffy-tw-border-[--spiffy-colors-background-tertiary]",
61
+ ...TEXT_LINK_CLASSES,
62
+ BORDER_CLASS
63
+ ]],
64
+ ["dark", [
65
+ ...DARK_BACKGROUND_CLASSES,
66
+ ...TEXT_LIGHT_CLASSES,
67
+ BORDER_CLASS
68
+ ]],
69
+ ["darkPrimary", [
70
+ ...DARK_BACKGROUND_CLASSES,
71
+ "spiffy-tw-text-[--spiffy-colors-text-light]",
72
+ ...ACCENT_PRIMARY_CLASSES,
73
+ BORDER_CLASS
74
+ ]],
75
+ ["darkAccent", [
76
+ ...DARK_BACKGROUND_CLASSES,
77
+ "spiffy-tw-text-[--spiffy-colors-text-light]",
78
+ "spiffy-tw-fill-[--spiffy-colors-text-accent]",
79
+ "spiffy-tw-stroke-[--spiffy-colors-text-accent]",
80
+ BORDER_CLASS
81
+ ]],
82
+ ["transparent", [
83
+ "spiffy-tw-bg-transparent",
84
+ "spiffy-tw-border-[--spiffy-colors-background-light]",
85
+ "spiffy-tw-text-[--spiffy-colors-text-light]",
86
+ "spiffy-tw-fill-transparent",
87
+ "spiffy-tw-stroke-[--spiffy-colors-text-light]",
88
+ BORDER_CLASS
89
+ ]],
90
+ ["transparentDark", [
91
+ "spiffy-tw-bg-transparent",
92
+ "spiffy-tw-border-[--spiffy-colors-border-light]",
93
+ "spiffy-tw-text-[--spiffy-colors-text-primary]",
94
+ "spiffy-tw-fill-transparent",
95
+ "spiffy-tw-stroke-[--spiffy-colors-text-primary]",
96
+ BORDER_CLASS
97
+ ]],
98
+ ["secondaryDark", [
99
+ ...SECONDARY_DARK_BACKGROUND_CLASSES,
100
+ ...TEXT_LINK_CLASSES,
101
+ BORDER_CLASS
102
+ ]],
103
+ ["secondaryAccent", [
104
+ ...SECONDARY_DARK_BACKGROUND_CLASSES,
105
+ "spiffy-tw-text-[--spiffy-colors-text-link]",
106
+ ...ACCENT_PRIMARY_CLASSES,
107
+ BORDER_CLASS
108
+ ]],
109
+ ["lightDark", [
110
+ "spiffy-tw-bg-[--spiffy-colors-background-light]",
111
+ "spiffy-tw-border-[--spiffy-colors-background-dark]",
112
+ ...TEXT_PRIMARY_CLASSES,
113
+ BORDER_CLASS
114
+ ]]
115
+ ]);
116
+ const borderedVariants = [
117
+ "outlined",
118
+ "outlinedLight",
119
+ "primary",
120
+ "secondary",
121
+ "tertiary",
122
+ "dark",
123
+ "darkAccent",
124
+ "darkPrimary",
125
+ "transparent",
126
+ "transparentDark",
127
+ "secondaryDark",
128
+ "secondaryAccent",
129
+ "lightDark"
130
+ ];
131
+ const hoverTransform = (variantClass) => variantClass?.map((className) => `hover:${className}`);
132
+ const SuggestionButton = ({ variant, hoverVariant, isDisabled, content, boldText, borderRadius = "lg", isAnswer = false, dataAttributes, dataTestId, onClick }) => {
133
+ const buttonClassName = (0, classnames.default)({
134
+ [SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS]: !isAnswer,
135
+ [SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS]: isAnswer,
136
+ "!spiffy-tw-rounded-[20px]": borderRadius === "lg",
137
+ "!spiffy-tw-rounded-[8px]": borderRadius === "md",
138
+ "!spiffy-tw-rounded-[0px]": borderRadius === "sm",
139
+ "spiffy-tw-border-[1px]": borderedVariants.includes(variant),
140
+ "spiffy-tw-border-solid": borderedVariants.includes(variant)
141
+ });
142
+ const textClassName = (0, classnames.default)({
143
+ "spiffy-tw-text-[14px]": true,
144
+ "spiffy-tw-leading-[100%]": true,
145
+ "!spiffy-tw-font-bold": boldText
146
+ });
147
+ const iconClass = (0, classnames.default)({
148
+ "spiffy-tw-w-[11px]": true,
149
+ "spiffy-tw-h-[11px]": true,
150
+ "spiffy-tw-stroke-inherit": true,
151
+ "spiffy-tw-fill-inherit": true
152
+ });
153
+ const baseClasses = variantClassMap.get(variant) ?? [];
154
+ const hoverClasses = variantClassMap.get(hoverVariant) ?? [];
155
+ const baseBorderClasses = baseClasses.filter((cls) => cls.includes("border"));
156
+ const baseNonBorderClasses = baseClasses.filter((cls) => !cls.includes("border"));
157
+ const hoverBorderClasses = hoverClasses.filter((cls) => cls.includes("border"));
158
+ const hoverNonBorderClasses = hoverClasses.filter((cls) => !cls.includes("border"));
159
+ const variantClasses = [
160
+ ...baseNonBorderClasses,
161
+ ...hoverTransform(hoverNonBorderClasses),
162
+ ...baseBorderClasses,
163
+ ...hoverTransform(hoverBorderClasses)
164
+ ];
165
+ const buttonClass = `${buttonClassName} ${variantClasses.join(" ")}`;
166
+ const getIcon = () => {
167
+ if (isAnswer) return void 0;
168
+ if (variant === "transparentDark") return __envive_ai_react_icons_src_OutlinedStar.default;
169
+ return __envive_ai_react_icons_src_FourPointStar.default;
170
+ };
171
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ButtonBase.ButtonBase, {
172
+ text: content,
173
+ dataAttributes,
174
+ dataTestId,
175
+ isDisabled,
176
+ icon: getIcon(),
177
+ iconClass: isAnswer ? void 0 : iconClass,
178
+ textClass: `${SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS} ${textClassName}`,
179
+ buttonClass,
180
+ onClick
181
+ });
182
+ };
183
+
184
+ //#endregion
185
+ exports.SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS = SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS;
186
+ exports.SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS;
187
+ exports.SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS = SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS;
188
+ exports.SuggestionButton = SuggestionButton;
@@ -0,0 +1,35 @@
1
+ import { TestProps } from "../../types-TYhhwWZw.cjs";
2
+ import * as react_jsx_runtime14 from "react/jsx-runtime";
3
+
4
+ //#region src/components/common/SuggestionButton/types.d.ts
5
+ type SuggestionButtonVariant = 'outlined' | 'outlinedLight' | 'primary' | 'secondary' | 'tertiary' | 'dark' | 'darkAccent' | 'darkPrimary' | 'secondaryDark' | 'secondaryAccent' | 'transparent' | 'transparentDark' | 'lightDark';
6
+ //#endregion
7
+ //#region src/components/common/SuggestionButton/SuggestionButton.d.ts
8
+ declare const SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = "spiffy-suggestion-button-question-class";
9
+ declare const SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS = "spiffy-suggestion-button-answer-class";
10
+ declare const SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS = "spiffy-suggestion-button-text-class";
11
+ interface SuggestionButtonProps extends TestProps {
12
+ variant: SuggestionButtonVariant;
13
+ hoverVariant: SuggestionButtonVariant;
14
+ isDisabled: boolean;
15
+ content: string;
16
+ boldText?: boolean;
17
+ borderRadius?: 'sm' | 'md' | 'lg';
18
+ isAnswer?: boolean;
19
+ dataAttributes?: Record<string, string>;
20
+ onClick: () => void;
21
+ }
22
+ declare const SuggestionButton: ({
23
+ variant,
24
+ hoverVariant,
25
+ isDisabled,
26
+ content,
27
+ boldText,
28
+ borderRadius,
29
+ isAnswer,
30
+ dataAttributes,
31
+ dataTestId,
32
+ onClick
33
+ }: SuggestionButtonProps) => react_jsx_runtime14.JSX.Element;
34
+ //#endregion
35
+ export { SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS, SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS, SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS, SuggestionButton };
@@ -0,0 +1,35 @@
1
+ import { TestProps } from "../../types-Cph97xkm.js";
2
+ import * as react_jsx_runtime14 from "react/jsx-runtime";
3
+
4
+ //#region src/components/common/SuggestionButton/types.d.ts
5
+ type SuggestionButtonVariant = 'outlined' | 'outlinedLight' | 'primary' | 'secondary' | 'tertiary' | 'dark' | 'darkAccent' | 'darkPrimary' | 'secondaryDark' | 'secondaryAccent' | 'transparent' | 'transparentDark' | 'lightDark';
6
+ //#endregion
7
+ //#region src/components/common/SuggestionButton/SuggestionButton.d.ts
8
+ declare const SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = "spiffy-suggestion-button-question-class";
9
+ declare const SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS = "spiffy-suggestion-button-answer-class";
10
+ declare const SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS = "spiffy-suggestion-button-text-class";
11
+ interface SuggestionButtonProps extends TestProps {
12
+ variant: SuggestionButtonVariant;
13
+ hoverVariant: SuggestionButtonVariant;
14
+ isDisabled: boolean;
15
+ content: string;
16
+ boldText?: boolean;
17
+ borderRadius?: 'sm' | 'md' | 'lg';
18
+ isAnswer?: boolean;
19
+ dataAttributes?: Record<string, string>;
20
+ onClick: () => void;
21
+ }
22
+ declare const SuggestionButton: ({
23
+ variant,
24
+ hoverVariant,
25
+ isDisabled,
26
+ content,
27
+ boldText,
28
+ borderRadius,
29
+ isAnswer,
30
+ dataAttributes,
31
+ dataTestId,
32
+ onClick
33
+ }: SuggestionButtonProps) => react_jsx_runtime14.JSX.Element;
34
+ //#endregion
35
+ export { SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS, SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS, SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS, SuggestionButton };