@envive-ai/react-toolkit 0.1.11 → 0.1.12

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 (105) hide show
  1. package/dist/Accordion/index.d.ts +2 -2
  2. package/dist/AppliedFiltersScrollbar/index.d.cts +2 -2
  3. package/dist/AppliedFiltersScrollbar/index.d.ts +2 -2
  4. package/dist/ButtonBase/index.d.cts +2 -2
  5. package/dist/ButtonBase/index.d.ts +2 -2
  6. package/dist/DynamicFiltersScrollbar/index.d.cts +2 -2
  7. package/dist/DynamicFiltersScrollbar/index.d.ts +2 -2
  8. package/dist/FilterScrollbar/index.d.cts +3 -3
  9. package/dist/FilterScrollbar/index.d.ts +3 -3
  10. package/dist/Headline/index.d.cts +2 -2
  11. package/dist/Headline/index.d.ts +2 -2
  12. package/dist/ImageWithFallback/index.d.cts +2 -2
  13. package/dist/ImageWithFallback/index.d.ts +2 -2
  14. package/dist/ModalSheet/index.cjs +1 -1
  15. package/dist/ModalSheet/index.d.cts +2 -2
  16. package/dist/ModalSheet/index.d.ts +2 -2
  17. package/dist/ModalSheet/index.js +1 -1
  18. package/dist/{ModalSheet-CZd5pssv.js → ModalSheet-01pxpy_K.js} +5 -3
  19. package/dist/{ModalSheet-CXZgyZ4a.cjs → ModalSheet-Csz8HIxs.cjs} +7 -5
  20. package/dist/ProductCard/index.cjs +1 -1
  21. package/dist/ProductCard/index.d.cts +1 -1
  22. package/dist/ProductCard/index.d.ts +1 -1
  23. package/dist/ProductCard/index.js +1 -1
  24. package/dist/{ProductCard-D-lyh8uV.js → ProductCard-C3MjnfZJ.js} +1 -1
  25. package/dist/{ProductCard-F49krjHk.cjs → ProductCard-FDyIMnZs.cjs} +3 -3
  26. package/dist/ProductGrid/index.cjs +2 -2
  27. package/dist/ProductGrid/index.d.cts +3 -3
  28. package/dist/ProductGrid/index.d.ts +3 -3
  29. package/dist/ProductGrid/index.js +2 -2
  30. package/dist/{ProductGrid-FIf5wFQx.js → ProductGrid-C9OKsyB2.js} +1 -1
  31. package/dist/{ProductGrid-QeoaIfcq.cjs → ProductGrid-TlntVJ6h.cjs} +1 -1
  32. package/dist/RadioButton/index.d.cts +2 -2
  33. package/dist/RadioButton/index.d.ts +2 -2
  34. package/dist/RadioButtonGroup/index.d.cts +2 -2
  35. package/dist/RadioButtonGroup/index.d.ts +2 -2
  36. package/dist/SearchAutocomplete/index.cjs +1 -1
  37. package/dist/SearchAutocomplete/index.js +1 -1
  38. package/dist/SearchFilter/index.cjs +3 -3
  39. package/dist/SearchFilter/index.d.cts +4 -4
  40. package/dist/SearchFilter/index.d.ts +4 -4
  41. package/dist/SearchFilter/index.js +3 -3
  42. package/dist/{SearchFilter-BtLKnFMm.cjs → SearchFilter-CTVBi5s3.cjs} +2 -2
  43. package/dist/{SearchFilter-BOwErEyI.js → SearchFilter-DvqBIXa1.js} +2 -2
  44. package/dist/SearchInput/index.cjs +3 -3
  45. package/dist/SearchInput/index.d.ts +1 -1
  46. package/dist/SearchInput/index.js +3 -3
  47. package/dist/{SearchInput-BBaYEwkR.js → SearchInput-CVaCPWCE.js} +2 -2
  48. package/dist/{SearchInput-BTNvgrIa.cjs → SearchInput-vJMWoLzS.cjs} +2 -2
  49. package/dist/SearchInputForm/index.cjs +4 -4
  50. package/dist/SearchInputForm/index.d.ts +1 -1
  51. package/dist/SearchInputForm/index.js +4 -4
  52. package/dist/SearchResultsContent/index.cjs +11 -11
  53. package/dist/SearchResultsContent/index.d.cts +5 -5
  54. package/dist/SearchResultsContent/index.d.ts +3 -3
  55. package/dist/SearchResultsContent/index.js +7 -7
  56. package/dist/SearchResultsFilterSidebar/index.cjs +5 -5
  57. package/dist/SearchResultsFilterSidebar/index.d.cts +1 -1
  58. package/dist/SearchResultsFilterSidebar/index.d.ts +1 -1
  59. package/dist/SearchResultsFilterSidebar/index.js +5 -5
  60. package/dist/SearchResultsStates/index.cjs +6 -6
  61. package/dist/SearchResultsStates/index.d.cts +6 -6
  62. package/dist/SearchResultsStates/index.d.ts +6 -6
  63. package/dist/SearchResultsStates/index.js +6 -6
  64. package/dist/{SearchResultsStates-DywK7vvp.cjs → SearchResultsStates-CH4agenX.cjs} +4 -4
  65. package/dist/{SearchResultsStates-CB5k1xkK.js → SearchResultsStates-iKz64Pd4.js} +4 -4
  66. package/dist/SparkleAnimation/index.cjs +1 -1
  67. package/dist/SparkleAnimation/index.d.cts +2 -2
  68. package/dist/SparkleAnimation/index.d.ts +2 -2
  69. package/dist/SparkleAnimation/index.js +1 -1
  70. package/dist/Spinner/index.d.cts +2 -2
  71. package/dist/Spinner/index.d.ts +2 -2
  72. package/dist/SuggestionButton/index.d.cts +2 -2
  73. package/dist/SuggestionButton/index.d.ts +2 -2
  74. package/dist/Text/index.d.cts +2 -2
  75. package/dist/Text/index.d.ts +2 -2
  76. package/dist/TextInput/index.cjs +1 -1
  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/{index-CgjZdKpL.d.cts → index-B8l3muO3.d.ts} +2 -2
  83. package/dist/{index-Cl4d_pDw.d.ts → index-BMt66uqr.d.cts} +2 -2
  84. package/dist/{index-1x_hMlEf.d.cts → index-CFH3KUVw.d.cts} +4 -4
  85. package/dist/{index-QMTPxKA9.d.ts → index-Vck3pox6.d.ts} +4 -4
  86. package/dist/{index-gfYBM7Ul.d.ts → index-h-QwQNnu.d.ts} +2 -2
  87. package/dist/{searchFilterSidebarVariants-CDFCHVeZ.js → searchFilterSidebarVariants-CI782ylo.js} +1 -1
  88. package/dist/{searchFilterSidebarVariants-CtmuwSBQ.cjs → searchFilterSidebarVariants-DFfOTqjc.cjs} +1 -1
  89. package/package.json +2 -2
  90. package/src/components/ModalSheet/ModalSheet.tsx +1 -1
  91. package/src/components/ModalSheet/desktop/index.tsx +1 -0
  92. package/src/components/ModalSheet/mobile/index.tsx +1 -0
  93. package/src/components/ProductCard/ProductCard.tsx +1 -1
  94. package/src/components/SearchResultsContent/SearchResultsContent.tsx +1 -1
  95. package/src/components/ModalSheet/common/enviveWatermark.tsx +0 -30
  96. /package/dist/{SearchAutocomplete-C6omCGJp.js → SearchAutocomplete-BlpII8Xs.js} +0 -0
  97. /package/dist/{SearchAutocomplete-Cofuvwwp.cjs → SearchAutocomplete-DIEhLT4C.cjs} +0 -0
  98. /package/dist/{SparkleAnimation-AM4XoegD.js → SparkleAnimation-BLfNojLv.js} +0 -0
  99. /package/dist/{SparkleAnimation-Edzqyb48.cjs → SparkleAnimation-qi5WCJ9B.cjs} +0 -0
  100. /package/dist/{TextInput-CnXhppYn.cjs → TextInput-B3dTeD3q.cjs} +0 -0
  101. /package/dist/{TextInput-BVPdz7e8.js → TextInput-DoM41M53.js} +0 -0
  102. /package/dist/{ToggleButton-D90UO4qv.cjs → ToggleButton-CK_vkMvt.cjs} +0 -0
  103. /package/dist/{ToggleButton-BKRR_-69.js → ToggleButton-GIVd2-Z4.js} +0 -0
  104. /package/dist/{colorsConfig-DFL3mBwB.cjs → colorsConfig-D-MZuBvt.cjs} +0 -0
  105. /package/dist/{colorsConfig-5Yf4nrEe.js → colorsConfig-DEfiLHH0.js} +0 -0
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime7 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/ToggleButton/ToggleButton.d.ts
4
4
  type ToggleButtonProps = {
@@ -25,6 +25,6 @@ declare const ToggleButton: ({
25
25
  icon,
26
26
  iconClassName,
27
27
  variant
28
- }: ToggleButtonProps) => react_jsx_runtime7.JSX.Element;
28
+ }: ToggleButtonProps) => react_jsx_runtime0.JSX.Element;
29
29
  //#endregion
30
30
  export { ToggleButton, ToggleButtonProps, ToggleButtonVariant };
@@ -1,6 +1,6 @@
1
1
  import "../textVariantClasses-D77TGEy1.js";
2
2
  import "../Text-Bod4OMPk.js";
3
3
  import "../Text-BMsncrpY.js";
4
- import { ToggleButton } from "../ToggleButton-BKRR_-69.js";
4
+ import { ToggleButton } from "../ToggleButton-GIVd2-Z4.js";
5
5
 
6
6
  export { ToggleButton };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime20 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime5 from "react/jsx-runtime";
2
2
  import { SearchFilterDatum, SelectFilterItem } from "@envive-ai/react-hooks/types";
3
3
 
4
4
  //#region src/components/SearchResultsFilterSidebar/types.d.ts
@@ -42,6 +42,6 @@ declare const SearchResultsFilter: ({
42
42
  onSelectFilterItem,
43
43
  onClearAllFilters,
44
44
  filterButtonText
45
- }: SearchResultsFilterProps) => react_jsx_runtime20.JSX.Element;
45
+ }: SearchResultsFilterProps) => react_jsx_runtime5.JSX.Element;
46
46
  //#endregion
47
47
  export { CloseIconVariant$1 as CloseIconVariant, SearchFilterSidebarVariant, SearchResultsFilter, SearchResultsFilterProps, searchFilterSidebarVariantClasses };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime25 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime10 from "react/jsx-runtime";
2
2
  import { SearchFilterDatum, SelectFilterItem } from "@envive-ai/react-hooks/types";
3
3
 
4
4
  //#region src/components/SearchResultsFilterSidebar/types.d.ts
@@ -42,6 +42,6 @@ declare const SearchResultsFilter: ({
42
42
  onSelectFilterItem,
43
43
  onClearAllFilters,
44
44
  filterButtonText
45
- }: SearchResultsFilterProps) => react_jsx_runtime25.JSX.Element;
45
+ }: SearchResultsFilterProps) => react_jsx_runtime10.JSX.Element;
46
46
  //#endregion
47
47
  export { CloseIconVariant$1 as CloseIconVariant, SearchFilterSidebarVariant, SearchResultsFilter, SearchResultsFilterProps, searchFilterSidebarVariantClasses };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime5 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime6 from "react/jsx-runtime";
2
2
  import { TestProps } from "@envive-ai/react-hooks/types";
3
3
  import { FC } from "react";
4
4
  import { ResponseCategory, SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
@@ -261,7 +261,7 @@ declare const RatingSummary: ({
261
261
  stars,
262
262
  reviewCount,
263
263
  className
264
- }: RatingSummaryProps) => react_jsx_runtime5.JSX.Element;
264
+ }: RatingSummaryProps) => react_jsx_runtime6.JSX.Element;
265
265
  interface PriceSectionProps {
266
266
  originalPrice?: string;
267
267
  salePrice?: string;
@@ -271,7 +271,7 @@ declare const PriceSection: ({
271
271
  originalPrice,
272
272
  salePrice,
273
273
  pricePrefix
274
- }: PriceSectionProps) => react_jsx_runtime5.JSX.Element;
274
+ }: PriceSectionProps) => react_jsx_runtime6.JSX.Element;
275
275
  interface ProductCardProps extends TestProps {
276
276
  productCardConfig?: ProductCardConfig;
277
277
  merchantShortName: string;
@@ -312,7 +312,7 @@ declare const ProductCard: ({
312
312
  aspectRatio,
313
313
  growWithContainer,
314
314
  handleClick
315
- }: ProductCardProps) => react_jsx_runtime5.JSX.Element;
315
+ }: ProductCardProps) => react_jsx_runtime6.JSX.Element;
316
316
  //#endregion
317
317
  //#region src/components/ProductCard/ProductCardSkeleton.d.ts
318
318
  declare const ProductCardSkeleton: FC<ProductCardSkeletonProps>;
@@ -1,5 +1,5 @@
1
1
  import { FC } from "react";
2
- import * as react_jsx_runtime14 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime16 from "react/jsx-runtime";
3
3
  import { TestProps } from "@envive-ai/react-hooks/types";
4
4
  import { ResponseCategory, SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
5
5
 
@@ -261,7 +261,7 @@ declare const RatingSummary: ({
261
261
  stars,
262
262
  reviewCount,
263
263
  className
264
- }: RatingSummaryProps) => react_jsx_runtime14.JSX.Element;
264
+ }: RatingSummaryProps) => react_jsx_runtime16.JSX.Element;
265
265
  interface PriceSectionProps {
266
266
  originalPrice?: string;
267
267
  salePrice?: string;
@@ -271,7 +271,7 @@ declare const PriceSection: ({
271
271
  originalPrice,
272
272
  salePrice,
273
273
  pricePrefix
274
- }: PriceSectionProps) => react_jsx_runtime14.JSX.Element;
274
+ }: PriceSectionProps) => react_jsx_runtime16.JSX.Element;
275
275
  interface ProductCardProps extends TestProps {
276
276
  productCardConfig?: ProductCardConfig;
277
277
  merchantShortName: string;
@@ -312,7 +312,7 @@ declare const ProductCard: ({
312
312
  aspectRatio,
313
313
  growWithContainer,
314
314
  handleClick
315
- }: ProductCardProps) => react_jsx_runtime14.JSX.Element;
315
+ }: ProductCardProps) => react_jsx_runtime16.JSX.Element;
316
316
  //#endregion
317
317
  //#region src/components/ProductCard/ProductCardSkeleton.d.ts
318
318
  declare const ProductCardSkeleton: FC<ProductCardSkeletonProps>;
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime0 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime14 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/components/SearchInputForm/types.d.ts
4
4
  type SearchInputVariant = 'standard';
@@ -31,6 +31,6 @@ declare const SearchInputForm: ({
31
31
  onSearchInputChange,
32
32
  onSearchSubmit,
33
33
  searchInputDataTestId
34
- }: SearchInputFormProps) => react_jsx_runtime0.JSX.Element;
34
+ }: SearchInputFormProps) => react_jsx_runtime14.JSX.Element;
35
35
  //#endregion
36
36
  export { SearchInputForm, SearchInputVariant };
@@ -1,4 +1,4 @@
1
- import { ColorNames, colorVar } from "./colorsConfig-5Yf4nrEe.js";
1
+ import { ColorNames, colorVar } from "./colorsConfig-DEfiLHH0.js";
2
2
 
3
3
  //#region src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts
4
4
  const searchFilterSidebarVariantClasses = {
@@ -1,4 +1,4 @@
1
- const require_colorsConfig = require('./colorsConfig-DFL3mBwB.cjs');
1
+ const require_colorsConfig = require('./colorsConfig-D-MZuBvt.cjs');
2
2
 
3
3
  //#region src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts
4
4
  const searchFilterSidebarVariantClasses = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@envive-ai/react-toolkit",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "React component library for Envive services.",
5
5
  "keywords": [
6
6
  "react",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@envive-ai/react-icons": "0.1.1",
31
- "@envive-ai/react-hooks": "^0.1.6",
31
+ "@envive-ai/react-hooks": "^0.1.8",
32
32
  "@tailwindcss/typography": "^0.5.15",
33
33
  "classnames": "^2.5.1",
34
34
  "framer-motion": "^12.23.12",
@@ -1,7 +1,7 @@
1
1
  import { ModalSheetMobile } from './mobile';
2
2
  import { ModalSheetDesktop } from './desktop';
3
3
  import { ModalSheetProps } from './types';
4
- import { useIsSmallScreen } from '@envive-ai/react-hooks/hooks';
4
+ import { useIsSmallScreen } from '@envive-ai/react-hooks/hooks/IsSmallScreen';
5
5
 
6
6
  const ANIMATION_DURATION = 0.3;
7
7
 
@@ -104,6 +104,7 @@ export const ModalSheetDesktop = ({
104
104
  <ModalSheetDesktopHeader
105
105
  headerContent={headerProps.headerContent}
106
106
  headerVariant={headerProps?.headerVariant}
107
+ chevronColor="#000"
107
108
  />
108
109
  </div>
109
110
  {children}
@@ -102,6 +102,7 @@ export const ModalSheetMobile = ({
102
102
  headerContent={headerProps.headerContent}
103
103
  headerVariant={headerProps?.headerVariant}
104
104
  handleHeaderClick={closeModal}
105
+ chevronColor="#000"
105
106
  />
106
107
  </div>
107
108
  {children}
@@ -18,8 +18,8 @@ import {
18
18
  } from './types';
19
19
  import { Text } from 'src/components/Text/Text';
20
20
  import { formatPrice } from 'src/util/formatPrice';
21
- import { useImageResolver } from '@envive-ai/react-hooks/hooks';
22
21
  import { TestProps } from '@envive-ai/react-hooks/types';
22
+ import { useImageResolver } from '@envive-ai/react-hooks/hooks/ImageResolver';
23
23
 
24
24
  const formatReviews = (stars: number) =>
25
25
  String(
@@ -10,7 +10,7 @@ import {
10
10
  SearchResultsGrid,
11
11
  SearchResultsLoadingGrid,
12
12
  } from '../SearchResultsStates';
13
- import { SearchResultsState } from '@envive-ai/react-hooks/hooks';
13
+ import { SearchResultsState } from '@envive-ai/react-hooks/hooks/utils';
14
14
 
15
15
  interface SearchResultsContentProps {
16
16
  searchResultsState: SearchResultsState;
@@ -1,30 +0,0 @@
1
- import classNames from 'classnames';
2
- import { useAtomValue } from 'jotai';
3
- import { WatermarkLogo } from 'src/assets';
4
- import { orgUIConfigAtom } from 'src/atoms/org/orgUIConfig';
5
-
6
- export const EnviveWatermark = () => {
7
- const { floatingChatConfig } = useAtomValue(orgUIConfigAtom);
8
- if (!floatingChatConfig.enableWatermark) {
9
- return null;
10
- }
11
- const wrapperClasses = classNames({
12
- 'spiffy-watermark-wrapper': true,
13
- 'spiffy-tw-flex': true,
14
- 'spiffy-tw-align-middle': true,
15
- 'spiffy-tw-pt-[4px]': true,
16
- 'spiffy-tw-justify-center': true,
17
- });
18
- const watermarkClasses = classNames({
19
- 'spiffy-watermark-logo': true,
20
- 'spiffy-tw-py-[4px]': true,
21
- 'spiffy-tw-px-[8px]': true,
22
- });
23
- return (
24
- <a className={wrapperClasses} target="_blank" rel="noreferrer" href="https://www.envive.ai/">
25
- <div title="Powered by Envive" className={watermarkClasses}>
26
- <WatermarkLogo />
27
- </div>
28
- </a>
29
- );
30
- };