@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.
- package/dist/Accordion/index.d.ts +2 -2
- package/dist/AppliedFiltersScrollbar/index.d.cts +2 -2
- package/dist/AppliedFiltersScrollbar/index.d.ts +2 -2
- package/dist/ButtonBase/index.d.cts +2 -2
- package/dist/ButtonBase/index.d.ts +2 -2
- package/dist/DynamicFiltersScrollbar/index.d.cts +2 -2
- package/dist/DynamicFiltersScrollbar/index.d.ts +2 -2
- package/dist/FilterScrollbar/index.d.cts +3 -3
- package/dist/FilterScrollbar/index.d.ts +3 -3
- package/dist/Headline/index.d.cts +2 -2
- package/dist/Headline/index.d.ts +2 -2
- package/dist/ImageWithFallback/index.d.cts +2 -2
- package/dist/ImageWithFallback/index.d.ts +2 -2
- package/dist/ModalSheet/index.cjs +1 -1
- package/dist/ModalSheet/index.d.cts +2 -2
- package/dist/ModalSheet/index.d.ts +2 -2
- package/dist/ModalSheet/index.js +1 -1
- package/dist/{ModalSheet-CZd5pssv.js → ModalSheet-01pxpy_K.js} +5 -3
- package/dist/{ModalSheet-CXZgyZ4a.cjs → ModalSheet-Csz8HIxs.cjs} +7 -5
- package/dist/ProductCard/index.cjs +1 -1
- package/dist/ProductCard/index.d.cts +1 -1
- package/dist/ProductCard/index.d.ts +1 -1
- package/dist/ProductCard/index.js +1 -1
- package/dist/{ProductCard-D-lyh8uV.js → ProductCard-C3MjnfZJ.js} +1 -1
- package/dist/{ProductCard-F49krjHk.cjs → ProductCard-FDyIMnZs.cjs} +3 -3
- package/dist/ProductGrid/index.cjs +2 -2
- package/dist/ProductGrid/index.d.cts +3 -3
- package/dist/ProductGrid/index.d.ts +3 -3
- package/dist/ProductGrid/index.js +2 -2
- package/dist/{ProductGrid-FIf5wFQx.js → ProductGrid-C9OKsyB2.js} +1 -1
- package/dist/{ProductGrid-QeoaIfcq.cjs → ProductGrid-TlntVJ6h.cjs} +1 -1
- package/dist/RadioButton/index.d.cts +2 -2
- package/dist/RadioButton/index.d.ts +2 -2
- package/dist/RadioButtonGroup/index.d.cts +2 -2
- package/dist/RadioButtonGroup/index.d.ts +2 -2
- package/dist/SearchAutocomplete/index.cjs +1 -1
- package/dist/SearchAutocomplete/index.js +1 -1
- package/dist/SearchFilter/index.cjs +3 -3
- package/dist/SearchFilter/index.d.cts +4 -4
- package/dist/SearchFilter/index.d.ts +4 -4
- package/dist/SearchFilter/index.js +3 -3
- package/dist/{SearchFilter-BtLKnFMm.cjs → SearchFilter-CTVBi5s3.cjs} +2 -2
- package/dist/{SearchFilter-BOwErEyI.js → SearchFilter-DvqBIXa1.js} +2 -2
- package/dist/SearchInput/index.cjs +3 -3
- package/dist/SearchInput/index.d.ts +1 -1
- package/dist/SearchInput/index.js +3 -3
- package/dist/{SearchInput-BBaYEwkR.js → SearchInput-CVaCPWCE.js} +2 -2
- package/dist/{SearchInput-BTNvgrIa.cjs → SearchInput-vJMWoLzS.cjs} +2 -2
- package/dist/SearchInputForm/index.cjs +4 -4
- package/dist/SearchInputForm/index.d.ts +1 -1
- package/dist/SearchInputForm/index.js +4 -4
- package/dist/SearchResultsContent/index.cjs +11 -11
- package/dist/SearchResultsContent/index.d.cts +5 -5
- package/dist/SearchResultsContent/index.d.ts +3 -3
- package/dist/SearchResultsContent/index.js +7 -7
- package/dist/SearchResultsFilterSidebar/index.cjs +5 -5
- package/dist/SearchResultsFilterSidebar/index.d.cts +1 -1
- package/dist/SearchResultsFilterSidebar/index.d.ts +1 -1
- package/dist/SearchResultsFilterSidebar/index.js +5 -5
- package/dist/SearchResultsStates/index.cjs +6 -6
- package/dist/SearchResultsStates/index.d.cts +6 -6
- package/dist/SearchResultsStates/index.d.ts +6 -6
- package/dist/SearchResultsStates/index.js +6 -6
- package/dist/{SearchResultsStates-DywK7vvp.cjs → SearchResultsStates-CH4agenX.cjs} +4 -4
- package/dist/{SearchResultsStates-CB5k1xkK.js → SearchResultsStates-iKz64Pd4.js} +4 -4
- package/dist/SparkleAnimation/index.cjs +1 -1
- package/dist/SparkleAnimation/index.d.cts +2 -2
- package/dist/SparkleAnimation/index.d.ts +2 -2
- package/dist/SparkleAnimation/index.js +1 -1
- package/dist/Spinner/index.d.cts +2 -2
- package/dist/Spinner/index.d.ts +2 -2
- package/dist/SuggestionButton/index.d.cts +2 -2
- package/dist/SuggestionButton/index.d.ts +2 -2
- package/dist/Text/index.d.cts +2 -2
- package/dist/Text/index.d.ts +2 -2
- package/dist/TextInput/index.cjs +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/ToggleButton/index.cjs +1 -1
- package/dist/ToggleButton/index.d.cts +2 -2
- package/dist/ToggleButton/index.d.ts +2 -2
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{index-CgjZdKpL.d.cts → index-B8l3muO3.d.ts} +2 -2
- package/dist/{index-Cl4d_pDw.d.ts → index-BMt66uqr.d.cts} +2 -2
- package/dist/{index-1x_hMlEf.d.cts → index-CFH3KUVw.d.cts} +4 -4
- package/dist/{index-QMTPxKA9.d.ts → index-Vck3pox6.d.ts} +4 -4
- package/dist/{index-gfYBM7Ul.d.ts → index-h-QwQNnu.d.ts} +2 -2
- package/dist/{searchFilterSidebarVariants-CDFCHVeZ.js → searchFilterSidebarVariants-CI782ylo.js} +1 -1
- package/dist/{searchFilterSidebarVariants-CtmuwSBQ.cjs → searchFilterSidebarVariants-DFfOTqjc.cjs} +1 -1
- package/package.json +2 -2
- package/src/components/ModalSheet/ModalSheet.tsx +1 -1
- package/src/components/ModalSheet/desktop/index.tsx +1 -0
- package/src/components/ModalSheet/mobile/index.tsx +1 -0
- package/src/components/ProductCard/ProductCard.tsx +1 -1
- package/src/components/SearchResultsContent/SearchResultsContent.tsx +1 -1
- package/src/components/ModalSheet/common/enviveWatermark.tsx +0 -30
- /package/dist/{SearchAutocomplete-C6omCGJp.js → SearchAutocomplete-BlpII8Xs.js} +0 -0
- /package/dist/{SearchAutocomplete-Cofuvwwp.cjs → SearchAutocomplete-DIEhLT4C.cjs} +0 -0
- /package/dist/{SparkleAnimation-AM4XoegD.js → SparkleAnimation-BLfNojLv.js} +0 -0
- /package/dist/{SparkleAnimation-Edzqyb48.cjs → SparkleAnimation-qi5WCJ9B.cjs} +0 -0
- /package/dist/{TextInput-CnXhppYn.cjs → TextInput-B3dTeD3q.cjs} +0 -0
- /package/dist/{TextInput-BVPdz7e8.js → TextInput-DoM41M53.js} +0 -0
- /package/dist/{ToggleButton-D90UO4qv.cjs → ToggleButton-CK_vkMvt.cjs} +0 -0
- /package/dist/{ToggleButton-BKRR_-69.js → ToggleButton-GIVd2-Z4.js} +0 -0
- /package/dist/{colorsConfig-DFL3mBwB.cjs → colorsConfig-D-MZuBvt.cjs} +0 -0
- /package/dist/{colorsConfig-5Yf4nrEe.js → colorsConfig-DEfiLHH0.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
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) =>
|
|
28
|
+
}: ToggleButtonProps) => react_jsx_runtime0.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { ToggleButton, ToggleButtonProps, ToggleButtonVariant };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
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) =>
|
|
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
|
|
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) =>
|
|
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
|
|
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) =>
|
|
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) =>
|
|
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) =>
|
|
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
|
|
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) =>
|
|
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) =>
|
|
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) =>
|
|
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
|
|
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) =>
|
|
34
|
+
}: SearchInputFormProps) => react_jsx_runtime14.JSX.Element;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { SearchInputForm, SearchInputVariant };
|
package/dist/{searchFilterSidebarVariants-CtmuwSBQ.cjs → searchFilterSidebarVariants-DFfOTqjc.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_colorsConfig = require('./colorsConfig-
|
|
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.
|
|
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.
|
|
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
|
|
|
@@ -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
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|