@envive-ai/react-toolkit 0.1.5 → 0.1.7

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 (160) hide show
  1. package/dist/Accordion/index.cjs +84 -0
  2. package/dist/Accordion/index.d.cts +13 -0
  3. package/dist/Accordion/index.d.ts +13 -0
  4. package/dist/Accordion/index.js +77 -0
  5. package/dist/AppliedFiltersScrollbar/index.cjs +49 -0
  6. package/dist/AppliedFiltersScrollbar/index.d.cts +22 -0
  7. package/dist/AppliedFiltersScrollbar/index.d.ts +22 -0
  8. package/dist/AppliedFiltersScrollbar/index.js +44 -0
  9. package/dist/ButtonBase/index.cjs +2 -1
  10. package/dist/ButtonBase/index.d.cts +3 -3
  11. package/dist/ButtonBase/index.d.ts +1 -1
  12. package/dist/ButtonBase/index.js +2 -1
  13. package/dist/{ButtonBase-CpmFsiUf.js → ButtonBase-BIAu5fIG.js} +1 -1
  14. package/dist/ButtonBase-BRfuPPzN.js +1 -0
  15. package/dist/ButtonBase-BleAVeo-.cjs +0 -0
  16. package/dist/{ButtonBase-Dlh3bpR3.cjs → ButtonBase-DcyxOe2v.cjs} +2 -2
  17. package/dist/DynamicFiltersScrollbar/index.cjs +37 -0
  18. package/dist/DynamicFiltersScrollbar/index.d.cts +28 -0
  19. package/dist/DynamicFiltersScrollbar/index.d.ts +28 -0
  20. package/dist/DynamicFiltersScrollbar/index.js +32 -0
  21. package/dist/FilterScrollbar/index.cjs +1 -1
  22. package/dist/FilterScrollbar/index.d.cts +4 -4
  23. package/dist/FilterScrollbar/index.d.ts +4 -4
  24. package/dist/FilterScrollbar/index.js +1 -1
  25. package/dist/Headline/index.cjs +1 -1
  26. package/dist/Headline/index.d.cts +2 -2
  27. package/dist/Headline/index.js +1 -1
  28. package/dist/ImageWithFallback/index.cjs +1 -1
  29. package/dist/ImageWithFallback/index.d.ts +2 -2
  30. package/dist/ImageWithFallback/index.js +1 -1
  31. package/dist/{ImageWithFallback-By6QdlCR.cjs → ImageWithFallback-1LqhQK1q.cjs} +2 -2
  32. package/dist/{ImageWithFallback-DtUrq_bk.js → ImageWithFallback-Ckwsmd8P.js} +1 -1
  33. package/dist/ProductCard/index.cjs +7 -8
  34. package/dist/ProductCard/index.d.cts +2 -108
  35. package/dist/ProductCard/index.d.ts +2 -108
  36. package/dist/ProductCard/index.js +4 -5
  37. package/dist/{ProductCard-CvTRvhm7.cjs → ProductCard-DZZKutY-.cjs} +64 -5
  38. package/dist/{ProductCard-aJbQz6Q7.js → ProductCard-SF8-lXlT.js} +46 -6
  39. package/dist/ProductGrid/index.cjs +5 -5
  40. package/dist/ProductGrid/index.d.cts +6 -6
  41. package/dist/ProductGrid/index.d.ts +6 -6
  42. package/dist/ProductGrid/index.js +5 -5
  43. package/dist/{ProductGrid-CSIH2_G9.cjs → ProductGrid-BSSmPr7K.cjs} +48 -46
  44. package/dist/{ProductGrid-NOCayW9O.js → ProductGrid-DTUhH219.js} +48 -46
  45. package/dist/{SearchInputAutocomplete → SearchAutocomplete}/index.cjs +1 -1
  46. package/dist/{SearchInputAutocomplete → SearchAutocomplete}/index.d.cts +1 -1
  47. package/dist/{SearchInputAutocomplete → SearchAutocomplete}/index.d.ts +1 -1
  48. package/dist/SearchAutocomplete/index.js +3 -0
  49. package/dist/{SearchAutocomplete-DCu9-Yfk.js → SearchAutocomplete-BPjlo6qq.js} +4 -4
  50. package/dist/{SearchAutocomplete-CQxxe5Op.cjs → SearchAutocomplete-BzaEXmRQ.cjs} +8 -8
  51. package/dist/SearchFilter/index.cjs +5 -5
  52. package/dist/SearchFilter/index.d.cts +1 -34
  53. package/dist/SearchFilter/index.d.ts +1 -34
  54. package/dist/SearchFilter/index.js +2 -2
  55. package/dist/{SearchFilterHeader-qkRVfAB5.cjs → SearchFilter-B15tybnV.cjs} +1 -1
  56. package/dist/{SearchFilterHeader-BDEcDc_4.js → SearchFilter-D427M2UE.js} +1 -1
  57. package/dist/SearchInput/index.cjs +3 -3
  58. package/dist/SearchInput/index.d.cts +4 -4
  59. package/dist/SearchInput/index.d.ts +5 -5
  60. package/dist/SearchInput/index.js +3 -3
  61. package/dist/{SearchInput-DxGvYGZO.js → SearchInput-C0wB4hSV.js} +6 -6
  62. package/dist/{SearchInput-Cdpwswyv.cjs → SearchInput-D6UW79wT.cjs} +10 -10
  63. package/dist/SearchInputForm/index.cjs +6 -5
  64. package/dist/SearchInputForm/index.d.cts +1 -31
  65. package/dist/SearchInputForm/index.d.ts +1 -31
  66. package/dist/SearchInputForm/index.js +6 -5
  67. package/dist/SearchResultsContent/index.cjs +64 -0
  68. package/dist/SearchResultsContent/index.d.cts +67 -0
  69. package/dist/SearchResultsContent/index.d.ts +67 -0
  70. package/dist/SearchResultsContent/index.js +60 -0
  71. package/dist/SearchResultsFilterSidebar/index.cjs +10 -6
  72. package/dist/SearchResultsFilterSidebar/index.d.cts +3 -44
  73. package/dist/SearchResultsFilterSidebar/index.d.ts +3 -44
  74. package/dist/SearchResultsFilterSidebar/index.js +7 -4
  75. package/dist/SearchResultsStates/index.cjs +15 -125
  76. package/dist/SearchResultsStates/index.d.cts +14 -7
  77. package/dist/SearchResultsStates/index.d.ts +14 -7
  78. package/dist/SearchResultsStates/index.js +12 -117
  79. package/dist/SearchResultsStates-CNp6YCqF.js +112 -0
  80. package/dist/SearchResultsStates-Du7HXBi8.cjs +135 -0
  81. package/dist/SparkleAnimation/index.cjs +1 -1
  82. package/dist/SparkleAnimation/index.d.cts +2 -2
  83. package/dist/SparkleAnimation/index.d.ts +2 -2
  84. package/dist/SparkleAnimation/index.js +1 -1
  85. package/dist/{SparkleAnimation-DfMCtvAQ.js → SparkleAnimation-B0u6JtO3.js} +2 -2
  86. package/dist/{SparkleAnimation-j-mAMEZZ.cjs → SparkleAnimation-D1QpGZIg.cjs} +4 -4
  87. package/dist/Spinner/index.cjs +1 -1
  88. package/dist/Spinner/index.d.cts +2 -2
  89. package/dist/Spinner/index.js +1 -1
  90. package/dist/SuggestionButton/index.cjs +3 -3
  91. package/dist/SuggestionButton/index.d.cts +3 -3
  92. package/dist/SuggestionButton/index.d.ts +3 -3
  93. package/dist/SuggestionButton/index.js +2 -2
  94. package/dist/Text/index.cjs +2 -10
  95. package/dist/Text/index.d.cts +2 -2
  96. package/dist/Text/index.d.ts +3 -3
  97. package/dist/Text/index.js +1 -9
  98. package/dist/Text-DkwDPbHy.js +10 -0
  99. package/dist/Text-Ji61nRRE.cjs +16 -0
  100. package/dist/TextInput/index.cjs +1 -1
  101. package/dist/TextInput/index.d.ts +1 -1
  102. package/dist/TextInput/index.js +1 -1
  103. package/dist/{TextInput-CObd_Wcw.cjs → TextInput-C6fF9cSB.cjs} +2 -2
  104. package/dist/{TextInput-ChPhL54o.js → TextInput-CRMqBW3X.js} +1 -1
  105. package/dist/index-14eDYe9f.d.ts +58 -0
  106. package/dist/{types-Dvgr3ZeV.d.cts → index-B3iEVxkL.d.cts} +108 -23
  107. package/dist/index-B8bifyF-.d.ts +36 -0
  108. package/dist/index-BFdFh46m.d.cts +58 -0
  109. package/dist/{types-B7hf-Lif.d.ts → index-ByucvlTy.d.ts} +108 -23
  110. package/dist/index-C2iKBk7w.d.cts +36 -0
  111. package/dist/index-DLbdcczl.d.ts +78 -0
  112. package/dist/index-DlvTcfAg.d.cts +78 -0
  113. package/dist/{searchFilterSidebarVariants-C_UTEIpZ.js → searchFilterSidebarVariants-CZT1frB-.js} +1 -1
  114. package/dist/{searchFilterSidebarVariants-DcQLi_TT.cjs → searchFilterSidebarVariants-xyhy0PmQ.cjs} +1 -1
  115. package/package.json +22 -5
  116. package/src/components/Accordion/Accordion.tsx +90 -0
  117. package/src/components/Accordion/index.ts +1 -0
  118. package/src/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.tsx +70 -0
  119. package/src/components/AppliedFiltersScrollbar/index.ts +1 -0
  120. package/src/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.tsx +52 -0
  121. package/src/components/DynamicFiltersScrollbar/index.ts +1 -0
  122. package/src/components/ProductCard/ProductCard.tsx +34 -17
  123. package/src/components/ProductCard/types.ts +1 -1
  124. package/src/components/ProductGrid/ProductGrid.tsx +33 -33
  125. package/src/components/{SearchInputAutocomplete → SearchAutocomplete}/SearchAutocomplete.tsx +1 -1
  126. package/src/components/SearchInput/SearchInput.tsx +6 -6
  127. package/src/components/SearchInput/searchInputVariants.ts +5 -5
  128. package/src/components/SearchInputForm/SearchInputForm.tsx +6 -4
  129. package/src/components/SearchResultsContent/SearchResultsContent.tsx +87 -0
  130. package/src/components/SearchResultsContent/index.ts +2 -0
  131. package/src/components/SearchResultsContent/utils.ts +28 -0
  132. package/src/components/SearchResultsFilterSidebar/SearchResultsFilter.tsx +5 -6
  133. package/src/components/SearchResultsFilterSidebar/types.ts +14 -1
  134. package/src/components/SearchResultsStates/NoSearchResultsFound.tsx +2 -2
  135. package/src/components/SearchResultsStates/SearchResultsGrid.tsx +14 -12
  136. package/src/components/SearchResultsStates/SearchResultsLoadingGrid.tsx +4 -5
  137. package/dist/ProductCardSkeleton-B6YetUCT.js +0 -43
  138. package/dist/ProductCardSkeleton-BzBK36m-.cjs +0 -63
  139. package/dist/SearchInputAutocomplete/index.js +0 -3
  140. package/dist/types-5luH4G-3.d.cts +0 -5
  141. package/dist/types-BCAU5OQD.d.cts +0 -46
  142. package/dist/types-BIPqyTOJ.d.ts +0 -5
  143. package/dist/types-BwPquD10.d.ts +0 -46
  144. package/dist/types-CosVh8Hj.d.cts +0 -4
  145. package/dist/types-nR3jHgIO.d.ts +0 -4
  146. package/src/types/external.ts +0 -24
  147. /package/dist/{DynamicFiltersScrollbar-D8Lms7Ox.cjs → DynamicFiltersScrollbar-BTopFhyl.cjs} +0 -0
  148. /package/dist/{DynamicFiltersScrollbar-t_JASmYC.js → DynamicFiltersScrollbar-BmPTqym5.js} +0 -0
  149. /package/dist/{Headline-COAnonc2.js → Headline-XpaAeTSR.js} +0 -0
  150. /package/dist/{Headline-CdddUGwy.cjs → Headline-iP_MckEO.cjs} +0 -0
  151. /package/dist/{Spinner-D9kkaM9d.js → Spinner-BgGihEfJ.js} +0 -0
  152. /package/dist/{Spinner-DX35Epv3.cjs → Spinner-DzdIkS6t.cjs} +0 -0
  153. /package/dist/{colorsConfig-CKiMYHO_.js → colorsConfig-BQlaCfxi.js} +0 -0
  154. /package/dist/{colorsConfig-DulwYRIk.cjs → colorsConfig-DCvy_dV4.cjs} +0 -0
  155. /package/dist/{textVariantClasses-sT9E8Uty.d.ts → textVariantClasses-C8OCWZAw.d.ts} +0 -0
  156. /package/dist/{types-B19i3fxM.d.ts → types-Bm-qQyO3.d.ts} +0 -0
  157. /package/dist/{types-BQYpWDJ4.d.cts → types-C0UWKVvw.d.ts} +0 -0
  158. /package/dist/{types-C-Jrlw5Z.d.cts → types-CZHc-1wI.d.cts} +0 -0
  159. /package/dist/{types-DpfHwTzY.d.ts → types-D2xCS4y9.d.cts} +0 -0
  160. /package/src/components/{SearchInputAutocomplete → SearchAutocomplete}/index.ts +0 -0
@@ -1,10 +1,10 @@
1
- import { ButtonBase } from "../ButtonBase-CpmFsiUf.js";
1
+ import { ButtonBase } from "../ButtonBase-BIAu5fIG.js";
2
2
  import "../textVariantClasses-CnjwO2Fv.js";
3
3
  import "../Text-BMg3d10t.js";
4
4
  import classNames from "classnames";
5
5
  import { jsx } from "react/jsx-runtime";
6
- import OutlinedStar from "@envive-ai/react-icons/src/OutlinedStar";
7
6
  import FourPointStar from "@envive-ai/react-icons/src/FourPointStar";
7
+ import OutlinedStar from "@envive-ai/react-icons/src/OutlinedStar";
8
8
 
9
9
  //#region src/components/SuggestionButton/SuggestionButton.tsx
10
10
  const SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = "spiffy-suggestion-button-question-class";
@@ -1,16 +1,8 @@
1
1
  const require_textVariantClasses = require('../textVariantClasses-BnV4wXaw.cjs');
2
2
  const require_Text = require('../Text-CgOYTs8D.cjs');
3
+ const require_Text$1 = require('../Text-Ji61nRRE.cjs');
3
4
 
4
- //#region src/components/Text/types.ts
5
- let ExpandableTextOverrides = /* @__PURE__ */ function(ExpandableTextOverrides$1) {
6
- ExpandableTextOverrides$1["EXPANDABLE_TEXT_CONTAINER"] = "spiffy-expandable-text-container";
7
- ExpandableTextOverrides$1["EXPANDABLE_TEXT"] = "spiffy-expandable-text";
8
- ExpandableTextOverrides$1["EXPANDABLE_BUTTON"] = "spiffy-expandable-button";
9
- return ExpandableTextOverrides$1;
10
- }({});
11
-
12
- //#endregion
13
- exports.ExpandableTextOverrides = ExpandableTextOverrides;
5
+ exports.ExpandableTextOverrides = require_Text$1.ExpandableTextOverrides;
14
6
  exports.HeadlineVariantMap = require_textVariantClasses.HeadlineVariantMap;
15
7
  exports.Text = require_Text.Text;
16
8
  exports.TextStyleVariantMap = require_textVariantClasses.TextStyleVariantMap;
@@ -1,5 +1,5 @@
1
1
  import { HeadlineVariantMap, TextStyleVariantMap, TextVariantMap, getVariantPlaceholderClassNames } from "../textVariantClasses-DwnnFNBf.cjs";
2
- import * as react_jsx_runtime5 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime10 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/Text/types.d.ts
5
5
  declare enum ExpandableTextOverrides {
@@ -37,6 +37,6 @@ declare const Text: ({
37
37
  testId,
38
38
  type,
39
39
  variant
40
- }: TextProps) => react_jsx_runtime5.JSX.Element;
40
+ }: TextProps) => react_jsx_runtime10.JSX.Element;
41
41
  //#endregion
42
42
  export { ExpandableTextOverrides, HeadlineProps, HeadlineVariant, HeadlineVariantMap, Text, TextStyleVariantMap, TextType, TextVariant, TextVariantMap, getVariantPlaceholderClassNames };
@@ -1,5 +1,5 @@
1
- import { HeadlineVariantMap, TextStyleVariantMap, TextVariantMap, getVariantPlaceholderClassNames } from "../textVariantClasses-sT9E8Uty.js";
2
- import * as react_jsx_runtime11 from "react/jsx-runtime";
1
+ import { HeadlineVariantMap, TextStyleVariantMap, TextVariantMap, getVariantPlaceholderClassNames } from "../textVariantClasses-C8OCWZAw.js";
2
+ import * as react_jsx_runtime19 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/Text/types.d.ts
5
5
  declare enum ExpandableTextOverrides {
@@ -37,6 +37,6 @@ declare const Text: ({
37
37
  testId,
38
38
  type,
39
39
  variant
40
- }: TextProps) => react_jsx_runtime11.JSX.Element;
40
+ }: TextProps) => react_jsx_runtime19.JSX.Element;
41
41
  //#endregion
42
42
  export { ExpandableTextOverrides, HeadlineProps, HeadlineVariant, HeadlineVariantMap, Text, TextStyleVariantMap, TextType, TextVariant, TextVariantMap, getVariantPlaceholderClassNames };
@@ -1,13 +1,5 @@
1
1
  import { HeadlineVariantMap, TextStyleVariantMap, TextVariantMap, getVariantPlaceholderClassNames } from "../textVariantClasses-CnjwO2Fv.js";
2
2
  import { Text } from "../Text-BMg3d10t.js";
3
+ import { ExpandableTextOverrides } from "../Text-DkwDPbHy.js";
3
4
 
4
- //#region src/components/Text/types.ts
5
- let ExpandableTextOverrides = /* @__PURE__ */ function(ExpandableTextOverrides$1) {
6
- ExpandableTextOverrides$1["EXPANDABLE_TEXT_CONTAINER"] = "spiffy-expandable-text-container";
7
- ExpandableTextOverrides$1["EXPANDABLE_TEXT"] = "spiffy-expandable-text";
8
- ExpandableTextOverrides$1["EXPANDABLE_BUTTON"] = "spiffy-expandable-button";
9
- return ExpandableTextOverrides$1;
10
- }({});
11
-
12
- //#endregion
13
5
  export { ExpandableTextOverrides, HeadlineVariantMap, Text, TextStyleVariantMap, TextVariantMap, getVariantPlaceholderClassNames };
@@ -0,0 +1,10 @@
1
+ //#region src/components/Text/types.ts
2
+ let ExpandableTextOverrides = /* @__PURE__ */ function(ExpandableTextOverrides$1) {
3
+ ExpandableTextOverrides$1["EXPANDABLE_TEXT_CONTAINER"] = "spiffy-expandable-text-container";
4
+ ExpandableTextOverrides$1["EXPANDABLE_TEXT"] = "spiffy-expandable-text";
5
+ ExpandableTextOverrides$1["EXPANDABLE_BUTTON"] = "spiffy-expandable-button";
6
+ return ExpandableTextOverrides$1;
7
+ }({});
8
+
9
+ //#endregion
10
+ export { ExpandableTextOverrides };
@@ -0,0 +1,16 @@
1
+
2
+ //#region src/components/Text/types.ts
3
+ let ExpandableTextOverrides = /* @__PURE__ */ function(ExpandableTextOverrides$1) {
4
+ ExpandableTextOverrides$1["EXPANDABLE_TEXT_CONTAINER"] = "spiffy-expandable-text-container";
5
+ ExpandableTextOverrides$1["EXPANDABLE_TEXT"] = "spiffy-expandable-text";
6
+ ExpandableTextOverrides$1["EXPANDABLE_BUTTON"] = "spiffy-expandable-button";
7
+ return ExpandableTextOverrides$1;
8
+ }({});
9
+
10
+ //#endregion
11
+ Object.defineProperty(exports, 'ExpandableTextOverrides', {
12
+ enumerable: true,
13
+ get: function () {
14
+ return ExpandableTextOverrides;
15
+ }
16
+ });
@@ -1,4 +1,4 @@
1
1
  require('../textVariantClasses-BnV4wXaw.cjs');
2
- const require_TextInput = require('../TextInput-CObd_Wcw.cjs');
2
+ const require_TextInput = require('../TextInput-C6fF9cSB.cjs');
3
3
 
4
4
  exports.TextInput = require_TextInput.TextInput;
@@ -1,4 +1,4 @@
1
- import { TextStyleVariantMap } from "../textVariantClasses-sT9E8Uty.js";
1
+ import { TextStyleVariantMap } from "../textVariantClasses-C8OCWZAw.js";
2
2
  import React from "react";
3
3
 
4
4
  //#region src/components/TextInput/TextInput.d.ts
@@ -1,4 +1,4 @@
1
1
  import "../textVariantClasses-CnjwO2Fv.js";
2
- import { TextInput } from "../TextInput-ChPhL54o.js";
2
+ import { TextInput } from "../TextInput-CRMqBW3X.js";
3
3
 
4
4
  export { TextInput };
@@ -1,9 +1,9 @@
1
1
  const require_chunk = require('./chunk-CUT6urMc.cjs');
2
2
  const require_textVariantClasses = require('./textVariantClasses-BnV4wXaw.cjs');
3
- let classnames = require("classnames");
4
- classnames = require_chunk.__toESM(classnames);
5
3
  let react = require("react");
6
4
  react = require_chunk.__toESM(react);
5
+ let classnames = require("classnames");
6
+ classnames = require_chunk.__toESM(classnames);
7
7
  let react_jsx_runtime = require("react/jsx-runtime");
8
8
  react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
9
9
 
@@ -1,6 +1,6 @@
1
1
  import { TextStyleVariantMap, getVariantPlaceholderClassNames } from "./textVariantClasses-CnjwO2Fv.js";
2
- import classNames from "classnames";
3
2
  import React from "react";
3
+ import classNames from "classnames";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
 
6
6
  //#region src/components/TextInput/TextInput.tsx
@@ -0,0 +1,58 @@
1
+ import { SelectFilterItem } from "./index-DLbdcczl.js";
2
+ import * as react_jsx_runtime11 from "react/jsx-runtime";
3
+
4
+ //#region src/components/SearchResultsFilterSidebar/types.d.ts
5
+ type SearchFilterSidebarVariant = 'darkButton' | 'lightButton';
6
+ type CloseIconVariant = 'light' | 'tertiary' | 'dark';
7
+ type SearchFilter = {
8
+ id: string;
9
+ displayName: string;
10
+ items: SearchFilterItem[];
11
+ };
12
+ type SearchFilterItem = {
13
+ id: string;
14
+ displayName: string;
15
+ value: string;
16
+ isSelected: boolean;
17
+ };
18
+ //#endregion
19
+ //#region src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.d.ts
20
+ interface SearchFilterSidebarVariantClasses {
21
+ searchFilterHeaderClasses: string;
22
+ radioButtonFillColor: string;
23
+ radioButtonHoverColor: string;
24
+ radioButtonUncheckedBorderColor: string;
25
+ filterDefaultClasses: string;
26
+ filterActiveClasses: string;
27
+ filterHoverClasses: string;
28
+ appliedFilterBackgroundClasses: string;
29
+ applyFiltersUnchangedClasses: string;
30
+ applyFiltersChangedClasses: string;
31
+ filterCloseIconVariant: CloseIconVariant;
32
+ }
33
+ declare const searchFilterSidebarVariantClasses: Record<SearchFilterSidebarVariant, SearchFilterSidebarVariantClasses>;
34
+ //#endregion
35
+ //#region src/components/SearchResultsFilterSidebar/SearchResultsFilter.d.ts
36
+ type SearchResultsFilterProps = {
37
+ productCount: number;
38
+ isOpen: boolean;
39
+ setIsOpen: (isOpen: boolean) => void;
40
+ searchFilters: SearchFilter[];
41
+ searchFilterSidebarVariant: SearchFilterSidebarVariant;
42
+ searchText: string;
43
+ onSelectFilterItem: SelectFilterItem;
44
+ onClearAllFilters: () => void;
45
+ filterButtonText: string;
46
+ };
47
+ declare const SearchResultsFilter: ({
48
+ productCount,
49
+ isOpen,
50
+ setIsOpen,
51
+ searchFilters,
52
+ searchFilterSidebarVariant,
53
+ onSelectFilterItem,
54
+ onClearAllFilters,
55
+ filterButtonText
56
+ }: SearchResultsFilterProps) => react_jsx_runtime11.JSX.Element;
57
+ //#endregion
58
+ export { CloseIconVariant, SearchFilter, SearchFilterItem, SearchFilterSidebarVariant, SearchResultsFilter, SearchResultsFilterProps, searchFilterSidebarVariantClasses };
@@ -1,24 +1,29 @@
1
- //#region src/types/external.d.ts
2
- declare enum ResponseCategory {
3
- Product = "product",
4
- }
5
- interface SearchResponseProduct {
6
- id: string;
7
- title: string;
8
- description?: string;
9
- price?: number;
10
- currency?: string;
11
- imageUrl?: string;
12
- brand?: string;
13
- category?: string;
14
- availability?: string;
15
- url?: string;
16
- responseId?: string;
17
- originalPrice?: number;
18
- salePrice?: number;
19
- averageRating?: number;
20
- numberReviews?: number;
21
- [key: string]: unknown;
1
+ import { TestProps } from "./types-D2xCS4y9.cjs";
2
+ import * as react_jsx_runtime19 from "react/jsx-runtime";
3
+ import { FC } from "react";
4
+ import { ResponseCategory, SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
5
+
6
+ //#region src/config/chatElementDisplayLocation.d.ts
7
+ declare enum ChatElementDisplayLocation {
8
+ IN_CHAT = "in_chat",
9
+ CHAT_PREVIEW = "chat_preview",
10
+ FLOATING_BUTTON = "floating_button",
11
+ HELP_ME_CHOOSE = "help_me_choose",
12
+ PLP_IMAGE_BANNER = "plp_image_banner",
13
+ TOP_REVIEWS_SNIPPET = "top_reviews_snippet",
14
+ BOTTOM_REVIEWS_SNIPPET = "bottom_reviews_snippet",
15
+ BLOCK_BACK_BUTTON = "block_back_button",
16
+ SWITCH_TO_AGENT = "switch_to_agent",
17
+ CONVERSATIONAL_SEARCH = "conversational_search",
18
+ GLOBAL_SEARCH_ENTRYPOINT = "global_search_entrypoint",
19
+ SEARCH_NAV_ENTRYPOINT = "search_nav_entrypoint",
20
+ SEARCH_PROMPT = "search_prompt",
21
+ SEARCH_PROMPT_BUTTON = "search_prompt_button",
22
+ PRODUCT_GRID = "product_grid",
23
+ UNSPECIFIED = "unspecified",
24
+ FILTER_MODAL = "filter_modal",
25
+ PROMPT_CARD = "prompt_card",
26
+ WINDOW_API_CALL = "window_api_call",
22
27
  }
23
28
  //#endregion
24
29
  //#region src/util/trim.d.ts
@@ -254,7 +259,7 @@ interface SearchResponseProductAttributes {
254
259
  category: ResponseCategory.Product;
255
260
  attributes: CamelCasedPropertiesDeep<SearchResponseProduct>;
256
261
  }
257
- interface ProductCardSkeletonProps {
262
+ interface ProductCardSkeletonProps$1 {
258
263
  layoutVariant: ProductCardLayoutVariant;
259
264
  aspectRatio: ProductCardImageAspectRatio;
260
265
  growWithContainer?: boolean;
@@ -269,4 +274,84 @@ interface ProductGridProps {
269
274
  cardsGrowWithContainer?: boolean;
270
275
  }
271
276
  //#endregion
272
- export { AnimatedProductCardOverrides, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, SearchResponseProduct, SearchResponseProductAttributes };
277
+ //#region src/components/ProductCard/ProductCard.d.ts
278
+ interface RatingSummaryProps {
279
+ stars: number;
280
+ reviewCount: number;
281
+ className?: string;
282
+ }
283
+ declare const RatingSummary: ({
284
+ stars,
285
+ reviewCount,
286
+ className
287
+ }: RatingSummaryProps) => react_jsx_runtime19.JSX.Element;
288
+ interface PriceSectionProps {
289
+ originalPrice?: string;
290
+ salePrice?: string;
291
+ pricePrefix?: string;
292
+ }
293
+ declare const PriceSection: ({
294
+ originalPrice,
295
+ salePrice,
296
+ pricePrefix
297
+ }: PriceSectionProps) => react_jsx_runtime19.JSX.Element;
298
+ interface ProductCardProps extends TestProps {
299
+ productCardConfig?: ProductCardConfig;
300
+ merchantShortName: string;
301
+ title: string;
302
+ url: string;
303
+ searchResponseId?: string;
304
+ productResponseId?: string;
305
+ cardDisplayLocation: ChatElementDisplayLocation.IN_CHAT | ChatElementDisplayLocation.PRODUCT_GRID;
306
+ imageUrl?: string;
307
+ originalPrice?: number;
308
+ averageRating?: number;
309
+ numberReviews?: number;
310
+ salePrice?: number;
311
+ variant?: ProductCardVariant;
312
+ hoverVariant?: ProductCardHoverVariant;
313
+ layoutVariant?: ProductCardLayoutVariant;
314
+ zoomOnHover?: boolean;
315
+ aspectRatio?: '3:4' | 'square' | 'none';
316
+ clickPosition?: number | null;
317
+ growWithContainer?: boolean;
318
+ handleClick?: (clickedUrl: string) => void;
319
+ }
320
+ declare const ProductCard: ({
321
+ productCardConfig,
322
+ merchantShortName,
323
+ imageUrl,
324
+ title,
325
+ url,
326
+ originalPrice,
327
+ averageRating,
328
+ numberReviews,
329
+ salePrice,
330
+ variant,
331
+ hoverVariant,
332
+ dataTestId,
333
+ layoutVariant,
334
+ zoomOnHover,
335
+ aspectRatio,
336
+ growWithContainer,
337
+ handleClick
338
+ }: ProductCardProps) => react_jsx_runtime19.JSX.Element;
339
+ //#endregion
340
+ //#region src/components/ProductCard/ProductCardSkeleton.d.ts
341
+ interface ProductCardSkeletonProps {
342
+ layoutVariant: ProductCardLayoutVariant;
343
+ aspectRatio?: '3:4' | 'square' | 'none';
344
+ growWithContainer?: boolean;
345
+ }
346
+ declare const ProductCardSkeleton: FC<ProductCardSkeletonProps>;
347
+ //#endregion
348
+ //#region src/components/ProductCard/productCardVariants.d.ts
349
+ /**
350
+ * Shared variant mapping configurations for ProductCard components
351
+ */
352
+ declare const variantClassMap: Map<ProductCardVariant, string[]>;
353
+ declare const variantHoverClassMap: Map<ProductCardHoverVariant, string[]>;
354
+ declare const variantTitleColorMap: Map<ProductCardVariant, string>;
355
+ declare const productCardLayoutVariantClasses: Record<ProductCardLayoutVariant, Record<string, string[]>>;
356
+ //#endregion
357
+ export { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps$1 as ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, RatingSummary, SearchResponseProductAttributes, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap };
@@ -0,0 +1,36 @@
1
+ import * as react_jsx_runtime8 from "react/jsx-runtime";
2
+
3
+ //#region src/components/SearchInputForm/types.d.ts
4
+ type SearchInputVariant = 'standard';
5
+ //#endregion
6
+ //#region src/components/SearchInputForm/SearchInputForm.d.ts
7
+ interface SearchInputFormProps {
8
+ searchInputVariant: SearchInputVariant;
9
+ searchText: string;
10
+ autocompleteResults: string[];
11
+ searchBoxPlaceholder: string;
12
+ focusedOptionId: string | undefined;
13
+ isDirty: boolean;
14
+ focusedIndex: number;
15
+ onKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
16
+ onAutocompleteSelect: (suggestion: string) => void;
17
+ onSearchInputChange: (value: string) => void;
18
+ onSearchSubmit: () => void;
19
+ searchInputDataTestId?: string;
20
+ }
21
+ declare const SearchInputForm: ({
22
+ searchInputVariant,
23
+ searchText,
24
+ autocompleteResults,
25
+ searchBoxPlaceholder,
26
+ focusedOptionId,
27
+ isDirty,
28
+ focusedIndex,
29
+ onKeyDown,
30
+ onAutocompleteSelect,
31
+ onSearchInputChange,
32
+ onSearchSubmit,
33
+ searchInputDataTestId
34
+ }: SearchInputFormProps) => react_jsx_runtime8.JSX.Element;
35
+ //#endregion
36
+ export { SearchInputForm, SearchInputVariant };
@@ -0,0 +1,58 @@
1
+ import { SelectFilterItem } from "./index-DlvTcfAg.cjs";
2
+ import * as react_jsx_runtime23 from "react/jsx-runtime";
3
+
4
+ //#region src/components/SearchResultsFilterSidebar/types.d.ts
5
+ type SearchFilterSidebarVariant = 'darkButton' | 'lightButton';
6
+ type CloseIconVariant = 'light' | 'tertiary' | 'dark';
7
+ type SearchFilter = {
8
+ id: string;
9
+ displayName: string;
10
+ items: SearchFilterItem[];
11
+ };
12
+ type SearchFilterItem = {
13
+ id: string;
14
+ displayName: string;
15
+ value: string;
16
+ isSelected: boolean;
17
+ };
18
+ //#endregion
19
+ //#region src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.d.ts
20
+ interface SearchFilterSidebarVariantClasses {
21
+ searchFilterHeaderClasses: string;
22
+ radioButtonFillColor: string;
23
+ radioButtonHoverColor: string;
24
+ radioButtonUncheckedBorderColor: string;
25
+ filterDefaultClasses: string;
26
+ filterActiveClasses: string;
27
+ filterHoverClasses: string;
28
+ appliedFilterBackgroundClasses: string;
29
+ applyFiltersUnchangedClasses: string;
30
+ applyFiltersChangedClasses: string;
31
+ filterCloseIconVariant: CloseIconVariant;
32
+ }
33
+ declare const searchFilterSidebarVariantClasses: Record<SearchFilterSidebarVariant, SearchFilterSidebarVariantClasses>;
34
+ //#endregion
35
+ //#region src/components/SearchResultsFilterSidebar/SearchResultsFilter.d.ts
36
+ type SearchResultsFilterProps = {
37
+ productCount: number;
38
+ isOpen: boolean;
39
+ setIsOpen: (isOpen: boolean) => void;
40
+ searchFilters: SearchFilter[];
41
+ searchFilterSidebarVariant: SearchFilterSidebarVariant;
42
+ searchText: string;
43
+ onSelectFilterItem: SelectFilterItem;
44
+ onClearAllFilters: () => void;
45
+ filterButtonText: string;
46
+ };
47
+ declare const SearchResultsFilter: ({
48
+ productCount,
49
+ isOpen,
50
+ setIsOpen,
51
+ searchFilters,
52
+ searchFilterSidebarVariant,
53
+ onSelectFilterItem,
54
+ onClearAllFilters,
55
+ filterButtonText
56
+ }: SearchResultsFilterProps) => react_jsx_runtime23.JSX.Element;
57
+ //#endregion
58
+ export { CloseIconVariant, SearchFilter, SearchFilterItem, SearchFilterSidebarVariant, SearchResultsFilter, SearchResultsFilterProps, searchFilterSidebarVariantClasses };
@@ -1,24 +1,29 @@
1
- //#region src/types/external.d.ts
2
- declare enum ResponseCategory {
3
- Product = "product",
4
- }
5
- interface SearchResponseProduct {
6
- id: string;
7
- title: string;
8
- description?: string;
9
- price?: number;
10
- currency?: string;
11
- imageUrl?: string;
12
- brand?: string;
13
- category?: string;
14
- availability?: string;
15
- url?: string;
16
- responseId?: string;
17
- originalPrice?: number;
18
- salePrice?: number;
19
- averageRating?: number;
20
- numberReviews?: number;
21
- [key: string]: unknown;
1
+ import { TestProps } from "./types-C0UWKVvw.js";
2
+ import { FC } from "react";
3
+ import * as react_jsx_runtime20 from "react/jsx-runtime";
4
+ import { ResponseCategory, SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
5
+
6
+ //#region src/config/chatElementDisplayLocation.d.ts
7
+ declare enum ChatElementDisplayLocation {
8
+ IN_CHAT = "in_chat",
9
+ CHAT_PREVIEW = "chat_preview",
10
+ FLOATING_BUTTON = "floating_button",
11
+ HELP_ME_CHOOSE = "help_me_choose",
12
+ PLP_IMAGE_BANNER = "plp_image_banner",
13
+ TOP_REVIEWS_SNIPPET = "top_reviews_snippet",
14
+ BOTTOM_REVIEWS_SNIPPET = "bottom_reviews_snippet",
15
+ BLOCK_BACK_BUTTON = "block_back_button",
16
+ SWITCH_TO_AGENT = "switch_to_agent",
17
+ CONVERSATIONAL_SEARCH = "conversational_search",
18
+ GLOBAL_SEARCH_ENTRYPOINT = "global_search_entrypoint",
19
+ SEARCH_NAV_ENTRYPOINT = "search_nav_entrypoint",
20
+ SEARCH_PROMPT = "search_prompt",
21
+ SEARCH_PROMPT_BUTTON = "search_prompt_button",
22
+ PRODUCT_GRID = "product_grid",
23
+ UNSPECIFIED = "unspecified",
24
+ FILTER_MODAL = "filter_modal",
25
+ PROMPT_CARD = "prompt_card",
26
+ WINDOW_API_CALL = "window_api_call",
22
27
  }
23
28
  //#endregion
24
29
  //#region src/util/trim.d.ts
@@ -254,7 +259,7 @@ interface SearchResponseProductAttributes {
254
259
  category: ResponseCategory.Product;
255
260
  attributes: CamelCasedPropertiesDeep<SearchResponseProduct>;
256
261
  }
257
- interface ProductCardSkeletonProps {
262
+ interface ProductCardSkeletonProps$1 {
258
263
  layoutVariant: ProductCardLayoutVariant;
259
264
  aspectRatio: ProductCardImageAspectRatio;
260
265
  growWithContainer?: boolean;
@@ -269,4 +274,84 @@ interface ProductGridProps {
269
274
  cardsGrowWithContainer?: boolean;
270
275
  }
271
276
  //#endregion
272
- export { AnimatedProductCardOverrides, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, SearchResponseProduct, SearchResponseProductAttributes };
277
+ //#region src/components/ProductCard/ProductCard.d.ts
278
+ interface RatingSummaryProps {
279
+ stars: number;
280
+ reviewCount: number;
281
+ className?: string;
282
+ }
283
+ declare const RatingSummary: ({
284
+ stars,
285
+ reviewCount,
286
+ className
287
+ }: RatingSummaryProps) => react_jsx_runtime20.JSX.Element;
288
+ interface PriceSectionProps {
289
+ originalPrice?: string;
290
+ salePrice?: string;
291
+ pricePrefix?: string;
292
+ }
293
+ declare const PriceSection: ({
294
+ originalPrice,
295
+ salePrice,
296
+ pricePrefix
297
+ }: PriceSectionProps) => react_jsx_runtime20.JSX.Element;
298
+ interface ProductCardProps extends TestProps {
299
+ productCardConfig?: ProductCardConfig;
300
+ merchantShortName: string;
301
+ title: string;
302
+ url: string;
303
+ searchResponseId?: string;
304
+ productResponseId?: string;
305
+ cardDisplayLocation: ChatElementDisplayLocation.IN_CHAT | ChatElementDisplayLocation.PRODUCT_GRID;
306
+ imageUrl?: string;
307
+ originalPrice?: number;
308
+ averageRating?: number;
309
+ numberReviews?: number;
310
+ salePrice?: number;
311
+ variant?: ProductCardVariant;
312
+ hoverVariant?: ProductCardHoverVariant;
313
+ layoutVariant?: ProductCardLayoutVariant;
314
+ zoomOnHover?: boolean;
315
+ aspectRatio?: '3:4' | 'square' | 'none';
316
+ clickPosition?: number | null;
317
+ growWithContainer?: boolean;
318
+ handleClick?: (clickedUrl: string) => void;
319
+ }
320
+ declare const ProductCard: ({
321
+ productCardConfig,
322
+ merchantShortName,
323
+ imageUrl,
324
+ title,
325
+ url,
326
+ originalPrice,
327
+ averageRating,
328
+ numberReviews,
329
+ salePrice,
330
+ variant,
331
+ hoverVariant,
332
+ dataTestId,
333
+ layoutVariant,
334
+ zoomOnHover,
335
+ aspectRatio,
336
+ growWithContainer,
337
+ handleClick
338
+ }: ProductCardProps) => react_jsx_runtime20.JSX.Element;
339
+ //#endregion
340
+ //#region src/components/ProductCard/ProductCardSkeleton.d.ts
341
+ interface ProductCardSkeletonProps {
342
+ layoutVariant: ProductCardLayoutVariant;
343
+ aspectRatio?: '3:4' | 'square' | 'none';
344
+ growWithContainer?: boolean;
345
+ }
346
+ declare const ProductCardSkeleton: FC<ProductCardSkeletonProps>;
347
+ //#endregion
348
+ //#region src/components/ProductCard/productCardVariants.d.ts
349
+ /**
350
+ * Shared variant mapping configurations for ProductCard components
351
+ */
352
+ declare const variantClassMap: Map<ProductCardVariant, string[]>;
353
+ declare const variantHoverClassMap: Map<ProductCardHoverVariant, string[]>;
354
+ declare const variantTitleColorMap: Map<ProductCardVariant, string>;
355
+ declare const productCardLayoutVariantClasses: Record<ProductCardLayoutVariant, Record<string, string[]>>;
356
+ //#endregion
357
+ export { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps$1 as ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, RatingSummary, SearchResponseProductAttributes, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap };
@@ -0,0 +1,36 @@
1
+ import * as react_jsx_runtime4 from "react/jsx-runtime";
2
+
3
+ //#region src/components/SearchInputForm/types.d.ts
4
+ type SearchInputVariant = 'standard';
5
+ //#endregion
6
+ //#region src/components/SearchInputForm/SearchInputForm.d.ts
7
+ interface SearchInputFormProps {
8
+ searchInputVariant: SearchInputVariant;
9
+ searchText: string;
10
+ autocompleteResults: string[];
11
+ searchBoxPlaceholder: string;
12
+ focusedOptionId: string | undefined;
13
+ isDirty: boolean;
14
+ focusedIndex: number;
15
+ onKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
16
+ onAutocompleteSelect: (suggestion: string) => void;
17
+ onSearchInputChange: (value: string) => void;
18
+ onSearchSubmit: () => void;
19
+ searchInputDataTestId?: string;
20
+ }
21
+ declare const SearchInputForm: ({
22
+ searchInputVariant,
23
+ searchText,
24
+ autocompleteResults,
25
+ searchBoxPlaceholder,
26
+ focusedOptionId,
27
+ isDirty,
28
+ focusedIndex,
29
+ onKeyDown,
30
+ onAutocompleteSelect,
31
+ onSearchInputChange,
32
+ onSearchSubmit,
33
+ searchInputDataTestId
34
+ }: SearchInputFormProps) => react_jsx_runtime4.JSX.Element;
35
+ //#endregion
36
+ export { SearchInputForm, SearchInputVariant };