@envive-ai/react-toolkit 0.2.4 → 0.2.6

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 (112) hide show
  1. package/dist/Accordion/index.d.cts +2 -2
  2. package/dist/Accordion/index.d.ts +2 -2
  3. package/dist/AnimatedChevron/index.d.cts +2 -2
  4. package/dist/AnimatedChevron/index.d.ts +2 -2
  5. package/dist/AppliedFiltersScrollbar/index.d.cts +2 -2
  6. package/dist/ButtonBase/index.d.cts +2 -2
  7. package/dist/ButtonBase/index.d.ts +2 -2
  8. package/dist/DynamicFiltersScrollbar/index.d.cts +2 -2
  9. package/dist/DynamicFiltersScrollbar/index.d.ts +2 -2
  10. package/dist/FilterScrollbar/index.d.cts +3 -3
  11. package/dist/FilterScrollbar/index.d.ts +3 -3
  12. package/dist/ImageWithFallback/index.d.cts +2 -2
  13. package/dist/ImageWithFallback/index.d.ts +2 -2
  14. package/dist/ModalSheet/index.d.cts +2 -2
  15. package/dist/ProductCard/index.d.cts +1 -1
  16. package/dist/ProductCard/index.d.ts +1 -1
  17. package/dist/ProductGrid/index.cjs +1 -1
  18. package/dist/ProductGrid/index.d.cts +3 -3
  19. package/dist/ProductGrid/index.d.ts +3 -3
  20. package/dist/ProductGrid/index.js +1 -1
  21. package/dist/RadioButton/index.cjs +1 -1
  22. package/dist/RadioButton/index.d.cts +2 -2
  23. package/dist/RadioButton/index.d.ts +2 -2
  24. package/dist/RadioButton/index.js +1 -1
  25. package/dist/RadioButtonGroup/index.cjs +2 -2
  26. package/dist/RadioButtonGroup/index.d.cts +2 -2
  27. package/dist/RadioButtonGroup/index.d.ts +2 -2
  28. package/dist/RadioButtonGroup/index.js +2 -2
  29. package/dist/{RadioButtonGroup-3t2kqSFA.cjs → RadioButtonGroup-BbVqccni.cjs} +1 -1
  30. package/dist/{RadioButtonGroup-DMbVgPQH.js → RadioButtonGroup-Dgt2ub6s.js} +1 -1
  31. package/dist/SearchAutocomplete/index.cjs +2 -1
  32. package/dist/SearchAutocomplete/index.d.cts +10 -2
  33. package/dist/SearchAutocomplete/index.d.ts +10 -2
  34. package/dist/SearchAutocomplete/index.js +2 -1
  35. package/dist/SearchAutocomplete-B690CIZB.js +69 -0
  36. package/dist/{SearchAutocomplete-TX8UTczp.cjs → SearchAutocomplete-DAEDHeqr.cjs} +26 -8
  37. package/dist/SearchFilter/index.cjs +4 -4
  38. package/dist/SearchFilter/index.d.cts +5 -5
  39. package/dist/SearchFilter/index.d.ts +5 -5
  40. package/dist/SearchFilter/index.js +4 -4
  41. package/dist/{SearchFilter-t9or-lnj.cjs → SearchFilter-BHFHWmpK.cjs} +2 -2
  42. package/dist/{SearchFilter-BQW4o3Xf.js → SearchFilter-DWii-Y_g.js} +2 -2
  43. package/dist/SearchInput/index.cjs +3 -4
  44. package/dist/SearchInput/index.d.ts +2 -2
  45. package/dist/SearchInput/index.js +3 -4
  46. package/dist/{SearchInput-CO1poiit.cjs → SearchInput-Bn6wD39s.cjs} +5 -23
  47. package/dist/{SearchInput-BaiWd0_O.js → SearchInput-DFoKyqJV.js} +4 -23
  48. package/dist/SearchInputForm/index.cjs +49 -30
  49. package/dist/SearchInputForm/index.d.cts +9 -7
  50. package/dist/SearchInputForm/index.d.ts +10 -8
  51. package/dist/SearchInputForm/index.js +48 -31
  52. package/dist/SearchResultsContent/index.cjs +5 -5
  53. package/dist/SearchResultsContent/index.d.cts +3 -3
  54. package/dist/SearchResultsContent/index.d.ts +4 -4
  55. package/dist/SearchResultsContent/index.js +5 -5
  56. package/dist/SearchResultsFilterSidebar/index.cjs +74 -8
  57. package/dist/SearchResultsFilterSidebar/index.d.ts +1 -1
  58. package/dist/SearchResultsFilterSidebar/index.js +73 -7
  59. package/dist/SearchResultsStates/index.cjs +5 -5
  60. package/dist/SearchResultsStates/index.d.cts +5 -5
  61. package/dist/SearchResultsStates/index.d.ts +6 -6
  62. package/dist/SearchResultsStates/index.js +5 -5
  63. package/dist/{SearchResultsStates-Bv5NyxPn.cjs → SearchResultsStates-BJPkHdXG.cjs} +3 -3
  64. package/dist/{SearchResultsStates-DUG-117h.js → SearchResultsStates-BiVIsfIe.js} +3 -3
  65. package/dist/SparkleAnimation/index.cjs +1 -1
  66. package/dist/SparkleAnimation/index.d.cts +2 -2
  67. package/dist/SparkleAnimation/index.d.ts +2 -2
  68. package/dist/SparkleAnimation/index.js +1 -1
  69. package/dist/Spinner/index.d.cts +2 -2
  70. package/dist/Spinner/index.d.ts +2 -2
  71. package/dist/SuggestionButton/index.cjs +8 -0
  72. package/dist/SuggestionButton/index.d.cts +3 -3
  73. package/dist/SuggestionButton/index.d.ts +3 -3
  74. package/dist/SuggestionButton/index.js +8 -0
  75. package/dist/TextInput/index.cjs +1 -1
  76. package/dist/TextInput/index.d.ts +2 -2
  77. package/dist/TextInput/index.js +1 -1
  78. package/dist/ToggleButton/index.cjs +1 -1
  79. package/dist/ToggleButton/index.d.cts +2 -2
  80. package/dist/ToggleButton/index.d.ts +2 -2
  81. package/dist/ToggleButton/index.js +1 -1
  82. package/dist/Typography/index.d.ts +2 -2
  83. package/dist/{index-BcvJf9Sr.d.ts → index--SpI4Sdw.d.ts} +2 -2
  84. package/dist/{index-DDp-fLgm.d.cts → index-4oRWfY5a.d.cts} +4 -4
  85. package/dist/{index-B5p2z61Y.d.ts → index-DGfkVcQx.d.ts} +4 -4
  86. package/dist/{index-BH-QK27q.d.ts → index-Qtr26aUO.d.ts} +1 -1
  87. package/dist/{searchFilterSidebarVariants-DXabOauB.cjs → searchFilterSidebarVariants-B1P8YS86.cjs} +1 -1
  88. package/dist/{searchFilterSidebarVariants-BD4SYugF.js → searchFilterSidebarVariants-CN9_kzJ8.js} +1 -1
  89. package/package.json +1 -1
  90. package/src/components/SearchAutocomplete/SearchAutocomplete.tsx +51 -11
  91. package/src/components/SearchInput/SearchInput.tsx +1 -1
  92. package/src/components/SearchInputForm/SearchInputForm.tsx +52 -18
  93. package/src/components/SuggestionButton/SuggestionButton.tsx +15 -0
  94. package/src/components/SuggestionButton/types.ts +2 -1
  95. package/src/components/TextInput/TextInput.tsx +0 -4
  96. package/dist/SearchAutocomplete-obO19yzL.js +0 -51
  97. package/dist/SettingsVariant-BsBbdjV5.cjs +0 -63
  98. package/dist/SettingsVariant-CUSFlJEu.js +0 -55
  99. /package/dist/{ProductGrid-Cgkb4vNf.js → ProductGrid-BFFojT9P.js} +0 -0
  100. /package/dist/{ProductGrid-BeFeluHo.cjs → ProductGrid-BfgnDGUq.cjs} +0 -0
  101. /package/dist/{RadioButton-C_soBi7w.js → RadioButton-BYq1JQtD.js} +0 -0
  102. /package/dist/{RadioButton-DG0PgZbz.cjs → RadioButton-DT5srptW.cjs} +0 -0
  103. /package/dist/{SparkleAnimation-Bm3fk2FJ.cjs → SparkleAnimation-CvGlWUqv.cjs} +0 -0
  104. /package/dist/{SparkleAnimation-D1QjYho_.js → SparkleAnimation-paLhSu5E.js} +0 -0
  105. /package/dist/{TextInput-iAKCKHwT.cjs → TextInput-BTTG_drp.cjs} +0 -0
  106. /package/dist/{TextInput-B_4Bu2vf.js → TextInput-BfUhaQUc.js} +0 -0
  107. /package/dist/{ToggleButton-Br6MgjiG.js → ToggleButton-8P9eNKy1.js} +0 -0
  108. /package/dist/{ToggleButton-CJ74eu-N.cjs → ToggleButton-DCiR4sB5.cjs} +0 -0
  109. /package/dist/{colorsConfig-D-MZuBvt.cjs → colorsConfig-BjmNL7s7.cjs} +0 -0
  110. /package/dist/{colorsConfig-DEfiLHH0.js → colorsConfig-E7w6Ol6W.js} +0 -0
  111. /package/dist/{types-CGRog8XL.d.ts → types-DlqhqT_S.d.ts} +0 -0
  112. /package/dist/{typographyVariantClasses-COmQXqcN.d.ts → typographyVariantClasses-B6wiawat.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime20 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime28 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/Accordion/Accordion.d.ts
4
4
  interface AccordionProps {
@@ -8,6 +8,6 @@ interface AccordionProps {
8
8
  declare const Accordion: ({
9
9
  title,
10
10
  content
11
- }: AccordionProps) => react_jsx_runtime20.JSX.Element;
11
+ }: AccordionProps) => react_jsx_runtime28.JSX.Element;
12
12
  //#endregion
13
13
  export { Accordion };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime27 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime25 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/Accordion/Accordion.d.ts
4
4
  interface AccordionProps {
@@ -8,6 +8,6 @@ interface AccordionProps {
8
8
  declare const Accordion: ({
9
9
  title,
10
10
  content
11
- }: AccordionProps) => react_jsx_runtime27.JSX.Element;
11
+ }: AccordionProps) => react_jsx_runtime25.JSX.Element;
12
12
  //#endregion
13
13
  export { Accordion };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime18 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime20 from "react/jsx-runtime";
2
2
  import { MotionValue } from "framer-motion";
3
3
 
4
4
  //#region src/components/AnimatedChevron/AnimatedChevron.d.ts
@@ -9,6 +9,6 @@ interface AnimatedChevronProps {
9
9
  declare const AnimatedChevron: ({
10
10
  animationKey,
11
11
  chevronColor
12
- }: AnimatedChevronProps) => react_jsx_runtime18.JSX.Element;
12
+ }: AnimatedChevronProps) => react_jsx_runtime20.JSX.Element;
13
13
  //#endregion
14
14
  export { AnimatedChevron };
@@ -1,5 +1,5 @@
1
1
  import { MotionValue } from "framer-motion";
2
- import * as react_jsx_runtime19 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime27 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/AnimatedChevron/AnimatedChevron.d.ts
5
5
  interface AnimatedChevronProps {
@@ -9,6 +9,6 @@ interface AnimatedChevronProps {
9
9
  declare const AnimatedChevron: ({
10
10
  animationKey,
11
11
  chevronColor
12
- }: AnimatedChevronProps) => react_jsx_runtime19.JSX.Element;
12
+ }: AnimatedChevronProps) => react_jsx_runtime27.JSX.Element;
13
13
  //#endregion
14
14
  export { AnimatedChevron };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime21 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime26 from "react/jsx-runtime";
2
2
  import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
3
3
 
4
4
  //#region src/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.d.ts
@@ -17,6 +17,6 @@ declare const AppliedFiltersScrollbar: ({
17
17
  filterHoverClasses,
18
18
  appliedFilterBackgroundClasses,
19
19
  onRemoveFilter
20
- }: AppliedFiltersScrollbarProps) => react_jsx_runtime21.JSX.Element;
20
+ }: AppliedFiltersScrollbarProps) => react_jsx_runtime26.JSX.Element;
21
21
  //#endregion
22
22
  export { AppliedFiltersScrollbar };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime19 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime24 from "react/jsx-runtime";
2
2
  import { TestProps } from "@envive-ai/react-hooks/types";
3
3
  import { ButtonHTMLAttributes, CSSProperties } from "react";
4
4
 
@@ -37,6 +37,6 @@ declare const ButtonBase: ({
37
37
  dataTestId,
38
38
  onClick,
39
39
  disablePadding
40
- }: ButtonBaseProps) => react_jsx_runtime19.JSX.Element;
40
+ }: ButtonBaseProps) => react_jsx_runtime24.JSX.Element;
41
41
  //#endregion
42
42
  export { ButtonBase, ButtonBaseOverrides, ButtonBaseProps, ButtonHoverStyles };
@@ -1,5 +1,5 @@
1
1
  import { ButtonHTMLAttributes, CSSProperties } from "react";
2
- import * as react_jsx_runtime15 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime24 from "react/jsx-runtime";
3
3
  import { TestProps } from "@envive-ai/react-hooks/types";
4
4
 
5
5
  //#region src/components/ButtonBase/types.d.ts
@@ -37,6 +37,6 @@ declare const ButtonBase: ({
37
37
  dataTestId,
38
38
  onClick,
39
39
  disablePadding
40
- }: ButtonBaseProps) => react_jsx_runtime15.JSX.Element;
40
+ }: ButtonBaseProps) => react_jsx_runtime24.JSX.Element;
41
41
  //#endregion
42
42
  export { ButtonBase, ButtonBaseOverrides, ButtonBaseProps, ButtonHoverStyles };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime0 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime19 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.d.ts
4
4
  interface DynamicFiltersScrollbarProps {
@@ -23,6 +23,6 @@ declare const DynamicFiltersScrollbar: ({
23
23
  filterDefaultClasses,
24
24
  filterHoverClasses,
25
25
  onToggleDynamicFilter
26
- }: DynamicFiltersScrollbarProps) => react_jsx_runtime0.JSX.Element;
26
+ }: DynamicFiltersScrollbarProps) => react_jsx_runtime19.JSX.Element;
27
27
  //#endregion
28
28
  export { DynamicFiltersScrollbar };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime17 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime15 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.d.ts
4
4
  interface DynamicFiltersScrollbarProps {
@@ -23,6 +23,6 @@ declare const DynamicFiltersScrollbar: ({
23
23
  filterDefaultClasses,
24
24
  filterHoverClasses,
25
25
  onToggleDynamicFilter
26
- }: DynamicFiltersScrollbarProps) => react_jsx_runtime17.JSX.Element;
26
+ }: DynamicFiltersScrollbarProps) => react_jsx_runtime15.JSX.Element;
27
27
  //#endregion
28
28
  export { DynamicFiltersScrollbar };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime23 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime18 from "react/jsx-runtime";
2
2
  import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
3
3
 
4
4
  //#region src/components/FilterScrollbar/AppliedFiltersScrollbar.d.ts
@@ -17,7 +17,7 @@ declare const AppliedFiltersScrollbar: ({
17
17
  filterHoverClasses,
18
18
  appliedFilterBackgroundClasses,
19
19
  onRemoveFilter
20
- }: AppliedFiltersScrollbarProps) => react_jsx_runtime23.JSX.Element;
20
+ }: AppliedFiltersScrollbarProps) => react_jsx_runtime18.JSX.Element;
21
21
  //#endregion
22
22
  //#region src/components/FilterScrollbar/DynamicFiltersScrollbar.d.ts
23
23
  interface DynamicFiltersScrollbarProps {
@@ -42,6 +42,6 @@ declare const DynamicFiltersScrollbar: ({
42
42
  filterDefaultClasses,
43
43
  filterHoverClasses,
44
44
  onToggleDynamicFilter
45
- }: DynamicFiltersScrollbarProps) => react_jsx_runtime23.JSX.Element;
45
+ }: DynamicFiltersScrollbarProps) => react_jsx_runtime18.JSX.Element;
46
46
  //#endregion
47
47
  export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime26 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime16 from "react/jsx-runtime";
2
2
  import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
3
3
 
4
4
  //#region src/components/FilterScrollbar/AppliedFiltersScrollbar.d.ts
@@ -17,7 +17,7 @@ declare const AppliedFiltersScrollbar: ({
17
17
  filterHoverClasses,
18
18
  appliedFilterBackgroundClasses,
19
19
  onRemoveFilter
20
- }: AppliedFiltersScrollbarProps) => react_jsx_runtime26.JSX.Element;
20
+ }: AppliedFiltersScrollbarProps) => react_jsx_runtime16.JSX.Element;
21
21
  //#endregion
22
22
  //#region src/components/FilterScrollbar/DynamicFiltersScrollbar.d.ts
23
23
  interface DynamicFiltersScrollbarProps {
@@ -42,6 +42,6 @@ declare const DynamicFiltersScrollbar: ({
42
42
  filterDefaultClasses,
43
43
  filterHoverClasses,
44
44
  onToggleDynamicFilter
45
- }: DynamicFiltersScrollbarProps) => react_jsx_runtime26.JSX.Element;
45
+ }: DynamicFiltersScrollbarProps) => react_jsx_runtime16.JSX.Element;
46
46
  //#endregion
47
47
  export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime9 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime25 from "react/jsx-runtime";
2
2
  import React from "react";
3
3
 
4
4
  //#region src/components/ImageWithFallback/ImageWithFallback.d.ts
@@ -21,6 +21,6 @@ declare const ImageWithFallback: ({
21
21
  imageClassnames,
22
22
  onLoad,
23
23
  onError
24
- }: ImageWithFallbackProps) => react_jsx_runtime9.JSX.Element;
24
+ }: ImageWithFallbackProps) => react_jsx_runtime25.JSX.Element;
25
25
  //#endregion
26
26
  export { ImageWithFallback, ImageWithFallbackProps };
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime20 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime26 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ImageWithFallback/ImageWithFallback.d.ts
5
5
  interface ImageWithFallbackProps {
@@ -21,6 +21,6 @@ declare const ImageWithFallback: ({
21
21
  imageClassnames,
22
22
  onLoad,
23
23
  onError
24
- }: ImageWithFallbackProps) => react_jsx_runtime20.JSX.Element;
24
+ }: ImageWithFallbackProps) => react_jsx_runtime26.JSX.Element;
25
25
  //#endregion
26
26
  export { ImageWithFallback, ImageWithFallbackProps };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime17 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime9 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/ModalSheet/types.d.ts
4
4
  type ModalSheetProps = {
@@ -33,6 +33,6 @@ declare const ModalSheet: ({
33
33
  desktopWidth,
34
34
  headerProps,
35
35
  footerProps
36
- }: ModalSheetProps) => react_jsx_runtime17.JSX.Element;
36
+ }: ModalSheetProps) => react_jsx_runtime9.JSX.Element;
37
37
  //#endregion
38
38
  export { ModalSheet };
@@ -1,2 +1,2 @@
1
- import { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, RatingSummary, RatingSummaryProps, SearchResponseProductAttributes, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap } from "../index-DDp-fLgm.cjs";
1
+ import { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, RatingSummary, RatingSummaryProps, SearchResponseProductAttributes, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap } from "../index-4oRWfY5a.cjs";
2
2
  export { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, RatingSummary, RatingSummaryProps, SearchResponseProductAttributes, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap };
@@ -1,2 +1,2 @@
1
- import { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, RatingSummary, RatingSummaryProps, SearchResponseProductAttributes, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap } from "../index-B5p2z61Y.js";
1
+ import { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, RatingSummary, RatingSummaryProps, SearchResponseProductAttributes, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap } from "../index-DGfkVcQx.js";
2
2
  export { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardConfig, ProductCardHoverVariant, ProductCardImageAspectRatio, ProductCardLayoutVariant, ProductCardSkeleton, ProductCardSkeletonOverrides, ProductCardSkeletonProps, ProductCardVariant, ProductGridProps, ProductGridVariant, RatingSummary, RatingSummaryProps, SearchResponseProductAttributes, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap };
@@ -2,7 +2,7 @@ require('../Typography-CFNWgbM5.cjs');
2
2
  require('../ImageWithFallback-1LqhQK1q.cjs');
3
3
  require('../ProductCard-CByKIsUN.cjs');
4
4
  require('../Spinner-DjK8ts9E.cjs');
5
- const require_ProductGrid = require('../ProductGrid-BeFeluHo.cjs');
5
+ const require_ProductGrid = require('../ProductGrid-BfgnDGUq.cjs');
6
6
 
7
7
  exports.ProductGrid = require_ProductGrid.ProductGrid;
8
8
  exports.productGridVariantClasses = require_ProductGrid.productGridVariantClasses;
@@ -1,5 +1,5 @@
1
- import { ProductCardConfig, ProductCardHoverVariant, ProductCardLayoutVariant, ProductCardVariant, ProductGridVariant } from "../index-DDp-fLgm.cjs";
2
- import * as react_jsx_runtime11 from "react/jsx-runtime";
1
+ import { ProductCardConfig, ProductCardHoverVariant, ProductCardLayoutVariant, ProductCardVariant, ProductGridVariant } from "../index-4oRWfY5a.cjs";
2
+ import * as react_jsx_runtime10 from "react/jsx-runtime";
3
3
  import { SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
4
4
 
5
5
  //#region src/components/ProductGrid/ProductGrid.d.ts
@@ -18,7 +18,7 @@ declare const ProductGrid: ({
18
18
  productCardConfig,
19
19
  merchantShortName,
20
20
  cardsGrowWithContainer
21
- }: ProductGridProps) => react_jsx_runtime11.JSX.Element;
21
+ }: ProductGridProps) => react_jsx_runtime10.JSX.Element;
22
22
  //#endregion
23
23
  //#region src/components/ProductGrid/productGridVariants.d.ts
24
24
  interface ProductGridVariantClasses {
@@ -1,5 +1,5 @@
1
- import { ProductCardConfig, ProductCardHoverVariant, ProductCardLayoutVariant, ProductCardVariant, ProductGridVariant } from "../index-B5p2z61Y.js";
2
- import * as react_jsx_runtime22 from "react/jsx-runtime";
1
+ import { ProductCardConfig, ProductCardHoverVariant, ProductCardLayoutVariant, ProductCardVariant, ProductGridVariant } from "../index-DGfkVcQx.js";
2
+ import * as react_jsx_runtime19 from "react/jsx-runtime";
3
3
  import { SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
4
4
 
5
5
  //#region src/components/ProductGrid/ProductGrid.d.ts
@@ -18,7 +18,7 @@ declare const ProductGrid: ({
18
18
  productCardConfig,
19
19
  merchantShortName,
20
20
  cardsGrowWithContainer
21
- }: ProductGridProps) => react_jsx_runtime22.JSX.Element;
21
+ }: ProductGridProps) => react_jsx_runtime19.JSX.Element;
22
22
  //#endregion
23
23
  //#region src/components/ProductGrid/productGridVariants.d.ts
24
24
  interface ProductGridVariantClasses {
@@ -2,6 +2,6 @@ import "../Typography-D3vDkBMS.js";
2
2
  import "../ImageWithFallback-Ckwsmd8P.js";
3
3
  import "../ProductCard-BIlnM2nV.js";
4
4
  import "../Spinner-BqTt55uu.js";
5
- import { ProductGrid, productGridVariantClasses } from "../ProductGrid-Cgkb4vNf.js";
5
+ import { ProductGrid, productGridVariantClasses } from "../ProductGrid-BFFojT9P.js";
6
6
 
7
7
  export { ProductGrid, productGridVariantClasses };
@@ -1,4 +1,4 @@
1
1
  require('../Typography-CFNWgbM5.cjs');
2
- const require_RadioButton = require('../RadioButton-DG0PgZbz.cjs');
2
+ const require_RadioButton = require('../RadioButton-DT5srptW.cjs');
3
3
 
4
4
  exports.RadioButton = require_RadioButton.RadioButton;
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime16 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime12 from "react/jsx-runtime";
2
2
  import { TestProps } from "@envive-ai/react-hooks/types";
3
3
 
4
4
  //#region src/components/RadioButton/RadioButton.d.ts
@@ -27,6 +27,6 @@ declare const RadioButton: ({
27
27
  checked,
28
28
  onChange,
29
29
  id
30
- }: RadioButtonProps) => react_jsx_runtime16.JSX.Element;
30
+ }: RadioButtonProps) => react_jsx_runtime12.JSX.Element;
31
31
  //#endregion
32
32
  export { RadioButton };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime18 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime22 from "react/jsx-runtime";
2
2
  import { TestProps } from "@envive-ai/react-hooks/types";
3
3
 
4
4
  //#region src/components/RadioButton/RadioButton.d.ts
@@ -27,6 +27,6 @@ declare const RadioButton: ({
27
27
  checked,
28
28
  onChange,
29
29
  id
30
- }: RadioButtonProps) => react_jsx_runtime18.JSX.Element;
30
+ }: RadioButtonProps) => react_jsx_runtime22.JSX.Element;
31
31
  //#endregion
32
32
  export { RadioButton };
@@ -1,4 +1,4 @@
1
1
  import "../Typography-D3vDkBMS.js";
2
- import { RadioButton } from "../RadioButton-C_soBi7w.js";
2
+ import { RadioButton } from "../RadioButton-BYq1JQtD.js";
3
3
 
4
4
  export { RadioButton };
@@ -1,6 +1,6 @@
1
1
  require('../Typography-CFNWgbM5.cjs');
2
- require('../RadioButton-DG0PgZbz.cjs');
3
- const require_RadioButtonGroup = require('../RadioButtonGroup-3t2kqSFA.cjs');
2
+ require('../RadioButton-DT5srptW.cjs');
3
+ const require_RadioButtonGroup = require('../RadioButtonGroup-BbVqccni.cjs');
4
4
 
5
5
  exports.RadioButtonGroup = require_RadioButtonGroup.RadioButtonGroup;
6
6
  exports.SPIFFY_RADIO_BUTTON_GROUP_CLASS = require_RadioButtonGroup.SPIFFY_RADIO_BUTTON_GROUP_CLASS;
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime6 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
  import { TestProps } from "@envive-ai/react-hooks/types";
3
3
 
4
4
  //#region src/components/RadioButtonGroup/RadioButtonGroup.d.ts
@@ -31,6 +31,6 @@ declare const RadioButtonGroup: ({
31
31
  gap,
32
32
  textButtonGap,
33
33
  onChange
34
- }: RadioButtonGroupProps) => react_jsx_runtime6.JSX.Element;
34
+ }: RadioButtonGroupProps) => react_jsx_runtime0.JSX.Element;
35
35
  //#endregion
36
36
  export { RadioButtonGroup, SPIFFY_RADIO_BUTTON_GROUP_CLASS };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime24 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime18 from "react/jsx-runtime";
2
2
  import { TestProps } from "@envive-ai/react-hooks/types";
3
3
 
4
4
  //#region src/components/RadioButtonGroup/RadioButtonGroup.d.ts
@@ -31,6 +31,6 @@ declare const RadioButtonGroup: ({
31
31
  gap,
32
32
  textButtonGap,
33
33
  onChange
34
- }: RadioButtonGroupProps) => react_jsx_runtime24.JSX.Element;
34
+ }: RadioButtonGroupProps) => react_jsx_runtime18.JSX.Element;
35
35
  //#endregion
36
36
  export { RadioButtonGroup, SPIFFY_RADIO_BUTTON_GROUP_CLASS };
@@ -1,5 +1,5 @@
1
1
  import "../Typography-D3vDkBMS.js";
2
- import "../RadioButton-C_soBi7w.js";
3
- import { RadioButtonGroup, SPIFFY_RADIO_BUTTON_GROUP_CLASS } from "../RadioButtonGroup-DMbVgPQH.js";
2
+ import "../RadioButton-BYq1JQtD.js";
3
+ import { RadioButtonGroup, SPIFFY_RADIO_BUTTON_GROUP_CLASS } from "../RadioButtonGroup-Dgt2ub6s.js";
4
4
 
5
5
  export { RadioButtonGroup, SPIFFY_RADIO_BUTTON_GROUP_CLASS };
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('./chunk-CUT6urMc.cjs');
2
- const require_RadioButton = require('./RadioButton-DG0PgZbz.cjs');
2
+ const require_RadioButton = require('./RadioButton-DT5srptW.cjs');
3
3
  let classnames = require("classnames");
4
4
  classnames = require_chunk.__toESM(classnames);
5
5
  let react_jsx_runtime = require("react/jsx-runtime");
@@ -1,4 +1,4 @@
1
- import { RadioButton } from "./RadioButton-C_soBi7w.js";
1
+ import { RadioButton } from "./RadioButton-BYq1JQtD.js";
2
2
  import classNames from "classnames";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
 
@@ -1,3 +1,4 @@
1
- const require_SearchAutocomplete = require('../SearchAutocomplete-TX8UTczp.cjs');
1
+ require('../Typography-CFNWgbM5.cjs');
2
+ const require_SearchAutocomplete = require('../SearchAutocomplete-DAEDHeqr.cjs');
2
3
 
3
4
  exports.SearchAutocomplete = require_SearchAutocomplete.SearchAutocomplete;
@@ -1,13 +1,21 @@
1
- import React from "react";
1
+ import * as react_jsx_runtime8 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/SearchAutocomplete/SearchAutocomplete.d.ts
4
4
  interface GlobalSearchAutocompleteProps {
5
5
  id: string;
6
6
  results: string[];
7
7
  focusedIndex: number;
8
+ searchText?: string;
8
9
  onSuggestionSelect: (suggestion: string, rankPosition: number) => void;
9
10
  iconColor?: string;
10
11
  }
11
- declare const SearchAutocomplete: React.FC<GlobalSearchAutocompleteProps>;
12
+ declare const SearchAutocomplete: ({
13
+ id,
14
+ results,
15
+ focusedIndex,
16
+ searchText,
17
+ onSuggestionSelect,
18
+ iconColor
19
+ }: GlobalSearchAutocompleteProps) => react_jsx_runtime8.JSX.Element;
12
20
  //#endregion
13
21
  export { SearchAutocomplete };
@@ -1,13 +1,21 @@
1
- import React from "react";
1
+ import * as react_jsx_runtime20 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/SearchAutocomplete/SearchAutocomplete.d.ts
4
4
  interface GlobalSearchAutocompleteProps {
5
5
  id: string;
6
6
  results: string[];
7
7
  focusedIndex: number;
8
+ searchText?: string;
8
9
  onSuggestionSelect: (suggestion: string, rankPosition: number) => void;
9
10
  iconColor?: string;
10
11
  }
11
- declare const SearchAutocomplete: React.FC<GlobalSearchAutocompleteProps>;
12
+ declare const SearchAutocomplete: ({
13
+ id,
14
+ results,
15
+ focusedIndex,
16
+ searchText,
17
+ onSuggestionSelect,
18
+ iconColor
19
+ }: GlobalSearchAutocompleteProps) => react_jsx_runtime20.JSX.Element;
12
20
  //#endregion
13
21
  export { SearchAutocomplete };
@@ -1,3 +1,4 @@
1
- import { SearchAutocomplete } from "../SearchAutocomplete-obO19yzL.js";
1
+ import "../Typography-D3vDkBMS.js";
2
+ import { SearchAutocomplete } from "../SearchAutocomplete-B690CIZB.js";
2
3
 
3
4
  export { SearchAutocomplete };
@@ -0,0 +1,69 @@
1
+ import { Typography } from "./Typography-D3vDkBMS.js";
2
+ import { motion } from "framer-motion";
3
+ import React from "react";
4
+ import classNames from "classnames";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ import OutlinedStar from "@envive-ai/react-icons/OutlinedStar";
7
+
8
+ //#region src/components/SearchAutocomplete/SearchAutocomplete.tsx
9
+ const SearchAutocomplete = ({ id, results, focusedIndex, searchText = "", onSuggestionSelect, iconColor }) => {
10
+ if (results.length === 0) return null;
11
+ const highlightMatchingText = (text, searchQuery) => {
12
+ if (!searchQuery.trim()) return /* @__PURE__ */ jsx(Typography, {
13
+ variant: "body3",
14
+ children: text
15
+ });
16
+ const escapedQuery = searchQuery.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
17
+ const regex = new RegExp(`(${escapedQuery})`, "gi");
18
+ const parts = text.split(regex);
19
+ return /* @__PURE__ */ jsx(Typography, {
20
+ variant: "body3",
21
+ children: parts.map((part, index) => {
22
+ return part.toLowerCase() === searchQuery.toLowerCase() ? /* @__PURE__ */ jsx("strong", {
23
+ className: "spiffy-tw-font-bold",
24
+ children: part
25
+ }, index) : /* @__PURE__ */ jsx("span", { children: part }, index);
26
+ })
27
+ });
28
+ };
29
+ const containerClasses = classNames("spiffy-tw-mt-[16px]", "spiffy-tw-mb-[8px]");
30
+ const getListElementClasses = (index) => classNames("spiffy-tw-flex", "spiffy-tw-items-center", "spiffy-tw-cursor-pointer", "spiffy-tw-py-[8px]", "spiffy-tw-pl-[16px]", "spiffy-tw-text-[--spiffy-colors-text-primary]", "hover:spiffy-tw-bg-neutral-100", { "spiffy-tw-bg-neutral-200": focusedIndex === index });
31
+ return /* @__PURE__ */ jsx(motion.div, {
32
+ className: "spiffy-tw-h-full",
33
+ initial: {
34
+ opacity: 0,
35
+ y: -10
36
+ },
37
+ animate: {
38
+ opacity: 1,
39
+ y: 0
40
+ },
41
+ exit: {
42
+ opacity: 0,
43
+ y: -10
44
+ },
45
+ transition: { duration: .2 },
46
+ children: /* @__PURE__ */ jsx("ul", {
47
+ id,
48
+ role: "listbox",
49
+ className: containerClasses,
50
+ children: results.map((result, index) => /* @__PURE__ */ jsxs("li", {
51
+ id: `option-${index}`,
52
+ role: "option",
53
+ "aria-selected": index === focusedIndex,
54
+ className: getListElementClasses(index),
55
+ onClick: () => onSuggestionSelect(result, index),
56
+ onKeyDown: (event) => {
57
+ if (event.key === "Enter" || event.keyCode === 13) onSuggestionSelect(result, index);
58
+ },
59
+ children: [/* @__PURE__ */ jsx(OutlinedStar, {
60
+ className: "spiffy-tw-w-[16px] spiffy-tw-h-[16px] spiffy-tw-mr-[16px]",
61
+ fill: iconColor
62
+ }), highlightMatchingText(result, searchText)]
63
+ }, index))
64
+ })
65
+ });
66
+ };
67
+
68
+ //#endregion
69
+ export { SearchAutocomplete };
@@ -1,4 +1,5 @@
1
1
  const require_chunk = require('./chunk-CUT6urMc.cjs');
2
+ const require_Typography = require('./Typography-CFNWgbM5.cjs');
2
3
  let framer_motion = require("framer-motion");
3
4
  framer_motion = require_chunk.__toESM(framer_motion);
4
5
  let react = require("react");
@@ -11,8 +12,28 @@ let __envive_ai_react_icons_OutlinedStar = require("@envive-ai/react-icons/Outli
11
12
  __envive_ai_react_icons_OutlinedStar = require_chunk.__toESM(__envive_ai_react_icons_OutlinedStar);
12
13
 
13
14
  //#region src/components/SearchAutocomplete/SearchAutocomplete.tsx
14
- const SearchAutocomplete = ({ id, results, focusedIndex, onSuggestionSelect, iconColor }) => {
15
+ const SearchAutocomplete = ({ id, results, focusedIndex, searchText = "", onSuggestionSelect, iconColor }) => {
15
16
  if (results.length === 0) return null;
17
+ const highlightMatchingText = (text, searchQuery) => {
18
+ if (!searchQuery.trim()) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
19
+ variant: "body3",
20
+ children: text
21
+ });
22
+ const escapedQuery = searchQuery.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
23
+ const regex = new RegExp(`(${escapedQuery})`, "gi");
24
+ const parts = text.split(regex);
25
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
26
+ variant: "body3",
27
+ children: parts.map((part, index) => {
28
+ return part.toLowerCase() === searchQuery.toLowerCase() ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", {
29
+ className: "spiffy-tw-font-bold",
30
+ children: part
31
+ }, index) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: part }, index);
32
+ })
33
+ });
34
+ };
35
+ const containerClasses = (0, classnames.default)("spiffy-tw-mt-[16px]", "spiffy-tw-mb-[8px]");
36
+ const getListElementClasses = (index) => (0, classnames.default)("spiffy-tw-flex", "spiffy-tw-items-center", "spiffy-tw-cursor-pointer", "spiffy-tw-py-[8px]", "spiffy-tw-pl-[16px]", "spiffy-tw-text-[--spiffy-colors-text-primary]", "hover:spiffy-tw-bg-neutral-100", { "spiffy-tw-bg-neutral-200": focusedIndex === index });
16
37
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
17
38
  className: "spiffy-tw-h-full",
18
39
  initial: {
@@ -31,23 +52,20 @@ const SearchAutocomplete = ({ id, results, focusedIndex, onSuggestionSelect, ico
31
52
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
32
53
  id,
33
54
  role: "listbox",
34
- className: "spiffy-tw-mt-4 spiffy-tw-space-y-2",
55
+ className: containerClasses,
35
56
  children: results.map((result, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
36
57
  id: `option-${index}`,
37
58
  role: "option",
38
59
  "aria-selected": index === focusedIndex,
39
- className: (0, classnames.default)("spiffy-tw-flex spiffy-tw-items-center spiffy-tw-cursor-pointer spiffy-tw-py-1", { "spiffy-tw-bg-neutral-200": index === focusedIndex }, "hover:spiffy-tw-bg-neutral-100"),
60
+ className: getListElementClasses(index),
40
61
  onClick: () => onSuggestionSelect(result, index),
41
62
  onKeyDown: (event) => {
42
63
  if (event.key === "Enter" || event.keyCode === 13) onSuggestionSelect(result, index);
43
64
  },
44
65
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_OutlinedStar.default, {
45
- className: "spiffy-tw-w-[16px] spiffy-tw-h-[16px] spiffy-tw-mr-2",
66
+ className: "spiffy-tw-w-[16px] spiffy-tw-h-[16px] spiffy-tw-mr-[16px]",
46
67
  fill: iconColor
47
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
48
- className: "spiffy-tw-font-bold",
49
- children: result
50
- })]
68
+ }), highlightMatchingText(result, searchText)]
51
69
  }, index))
52
70
  })
53
71
  });
@@ -4,10 +4,10 @@ require('../AnimatedChevron-Q96FneFy.cjs');
4
4
  require('../ButtonBase-AU23oGQr.cjs');
5
5
  require('../ButtonBase-DbWQ25n-.cjs');
6
6
  require('../ModalSheet-CcthFeMD.cjs');
7
- require('../RadioButton-DG0PgZbz.cjs');
8
- require('../RadioButtonGroup-3t2kqSFA.cjs');
9
- const require_SearchFilter = require('../SearchFilter-t9or-lnj.cjs');
10
- require('../ToggleButton-CJ74eu-N.cjs');
7
+ require('../RadioButton-DT5srptW.cjs');
8
+ require('../RadioButtonGroup-BbVqccni.cjs');
9
+ const require_SearchFilter = require('../SearchFilter-BHFHWmpK.cjs');
10
+ require('../ToggleButton-DCiR4sB5.cjs');
11
11
 
12
12
  exports.SearchFilter = require_SearchFilter.SearchFilter;
13
13
  exports.SearchFilterFooter = require_SearchFilter.SearchFilterFooter;