@envive-ai/react-toolkit 0.2.8 → 0.2.9
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.cts +2 -2
- package/dist/Accordion/index.d.ts +2 -2
- package/dist/AnimatedChevron/index.d.cts +2 -2
- package/dist/AnimatedChevron/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/ImageWithFallback/index.d.ts +2 -2
- package/dist/ModalSheet/index.d.cts +2 -2
- package/dist/ModalSheet/index.d.ts +2 -2
- package/dist/ProductCard/index.d.cts +1 -1
- package/dist/ProductCard/index.d.ts +1 -1
- package/dist/ProductGrid/index.cjs +1 -1
- package/dist/ProductGrid/index.d.cts +3 -3
- package/dist/ProductGrid/index.d.ts +3 -3
- package/dist/ProductGrid/index.js +1 -1
- package/dist/RadioButton/index.cjs +2 -1
- package/dist/RadioButton/index.d.cts +2 -2
- package/dist/RadioButton/index.d.ts +2 -2
- package/dist/RadioButton/index.js +2 -1
- package/dist/{RadioButton-DRdlp-HC.js → RadioButton-DoqlQgeW.js} +38 -34
- package/dist/{RadioButton-BzZTrq-i.cjs → RadioButton-OqwNhq7S.cjs} +37 -33
- package/dist/RadioButtonGroup/index.cjs +3 -2
- package/dist/RadioButtonGroup/index.d.cts +2 -2
- package/dist/RadioButtonGroup/index.d.ts +2 -2
- package/dist/RadioButtonGroup/index.js +3 -2
- package/dist/{RadioButtonGroup-BHfAwrH7.js → RadioButtonGroup-BP4aECu6.js} +1 -1
- package/dist/{RadioButtonGroup-DU4_ZMJ2.cjs → RadioButtonGroup-DwMWFYga.cjs} +1 -1
- package/dist/SearchAutocomplete/index.d.cts +2 -2
- package/dist/SearchAutocomplete/index.d.ts +2 -2
- package/dist/SearchFilter/index.cjs +4 -4
- package/dist/SearchFilter/index.d.cts +5 -5
- package/dist/SearchFilter/index.d.ts +5 -5
- package/dist/SearchFilter/index.js +4 -4
- package/dist/{SearchFilter-wjDCnNiW.js → SearchFilter-X18X1iOO.js} +2 -2
- package/dist/{SearchFilter-y4vrVBUC.cjs → SearchFilter-Yk01V_VO.cjs} +2 -2
- package/dist/SearchInput/index.cjs +3 -3
- package/dist/SearchInput/index.js +3 -3
- package/dist/{SearchInput-Yy6NIiSk.cjs → SearchInput-Bn6wD39s.cjs} +2 -2
- package/dist/{SearchInput-Q3knp7tj.js → SearchInput-DFoKyqJV.js} +2 -2
- package/dist/SearchInputForm/index.cjs +3 -3
- package/dist/SearchInputForm/index.d.ts +2 -2
- package/dist/SearchInputForm/index.js +3 -3
- package/dist/SearchResultsContent/index.cjs +4 -4
- package/dist/SearchResultsContent/index.d.cts +4 -4
- package/dist/SearchResultsContent/index.d.ts +4 -4
- package/dist/SearchResultsContent/index.js +4 -4
- package/dist/SearchResultsFilterSidebar/index.cjs +6 -6
- package/dist/SearchResultsFilterSidebar/index.d.cts +1 -1
- package/dist/SearchResultsFilterSidebar/index.d.ts +1 -1
- package/dist/SearchResultsFilterSidebar/index.js +6 -6
- package/dist/SearchResultsStates/index.cjs +4 -4
- package/dist/SearchResultsStates/index.d.cts +6 -6
- package/dist/SearchResultsStates/index.d.ts +6 -6
- package/dist/SearchResultsStates/index.js +4 -4
- package/dist/{SearchResultsStates-CP3HKZao.cjs → SearchResultsStates-CKoDWkXP.cjs} +2 -2
- package/dist/{SearchResultsStates-DUSTcTQK.js → SearchResultsStates-DF65ZU2r.js} +2 -2
- package/dist/SparkleAnimation/index.d.cts +2 -2
- package/dist/SparkleAnimation/index.d.ts +2 -2
- 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/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.js +1 -1
- package/dist/{index-OpwPXBH6.d.ts → index-DL1kptAp.d.ts} +2 -2
- package/dist/{index-4KapT-qa.d.cts → index-Dfe_lkL2.d.cts} +2 -2
- package/dist/{index-DELwJODl.d.ts → index-Dz7MKQfH.d.cts} +5 -5
- package/dist/{index-CY3-7i6i.d.cts → index-Wd_cQHmW.d.ts} +5 -5
- package/dist/{searchFilterSidebarVariants-DzCf_sfh.cjs → searchFilterSidebarVariants-B1P8YS86.cjs} +1 -1
- package/dist/{searchFilterSidebarVariants-f9PS9fl6.js → searchFilterSidebarVariants-CN9_kzJ8.js} +1 -1
- package/package.json +1 -1
- package/src/components/RadioButton/RadioButton.tsx +10 -11
- /package/dist/{ProductGrid-CGHDHthe.js → ProductGrid-B36atUp5.js} +0 -0
- /package/dist/{ProductGrid-DxbFvnNs.cjs → ProductGrid-CStAsiRj.cjs} +0 -0
- /package/dist/{TextInput-B70n36-J.cjs → TextInput-BTTG_drp.cjs} +0 -0
- /package/dist/{TextInput-y6nNxaTI.js → TextInput-BfUhaQUc.js} +0 -0
- /package/dist/{ToggleButton-Br6MgjiG.js → ToggleButton-8P9eNKy1.js} +0 -0
- /package/dist/{ToggleButton-CJ74eu-N.cjs → ToggleButton-DCiR4sB5.cjs} +0 -0
- /package/dist/{colorsConfig-B3-SMUSx.cjs → colorsConfig-BjmNL7s7.cjs} +0 -0
- /package/dist/{colorsConfig-DZ-GSPWy.js → colorsConfig-E7w6Ol6W.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
1
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
3
2
|
import { TestProps } from "@envive-ai/react-hooks/types";
|
|
3
|
+
import { FC } from "react";
|
|
4
4
|
import { ResponseCategory, SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
|
|
5
5
|
|
|
6
6
|
//#region src/util/trim.d.ts
|
|
@@ -261,7 +261,7 @@ declare const RatingSummary: ({
|
|
|
261
261
|
stars,
|
|
262
262
|
reviewCount,
|
|
263
263
|
className
|
|
264
|
-
}: RatingSummaryProps) =>
|
|
264
|
+
}: RatingSummaryProps) => react_jsx_runtime20.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_runtime20.JSX.Element;
|
|
275
275
|
interface ProductCardProps extends TestProps {
|
|
276
276
|
productCardConfig?: ProductCardConfig;
|
|
277
277
|
merchantShortName: string;
|
|
@@ -308,7 +308,7 @@ declare const ProductCard: ({
|
|
|
308
308
|
aspectRatio,
|
|
309
309
|
growWithContainer,
|
|
310
310
|
onClick
|
|
311
|
-
}: ProductCardProps) =>
|
|
311
|
+
}: ProductCardProps) => react_jsx_runtime20.JSX.Element;
|
|
312
312
|
//#endregion
|
|
313
313
|
//#region src/components/ProductCard/ProductCardSkeleton.d.ts
|
|
314
314
|
declare const ProductCardSkeleton: FC<ProductCardSkeletonProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as react_jsx_runtime22 from "react/jsx-runtime";
|
|
2
|
-
import { TestProps } from "@envive-ai/react-hooks/types";
|
|
3
1
|
import { FC } from "react";
|
|
2
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
3
|
+
import { TestProps } from "@envive-ai/react-hooks/types";
|
|
4
4
|
import { ResponseCategory, SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
|
|
5
5
|
|
|
6
6
|
//#region src/util/trim.d.ts
|
|
@@ -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;
|
|
@@ -308,7 +308,7 @@ declare const ProductCard: ({
|
|
|
308
308
|
aspectRatio,
|
|
309
309
|
growWithContainer,
|
|
310
310
|
onClick
|
|
311
|
-
}: ProductCardProps) =>
|
|
311
|
+
}: ProductCardProps) => react_jsx_runtime6.JSX.Element;
|
|
312
312
|
//#endregion
|
|
313
313
|
//#region src/components/ProductCard/ProductCardSkeleton.d.ts
|
|
314
314
|
declare const ProductCardSkeleton: FC<ProductCardSkeletonProps>;
|
package/dist/{searchFilterSidebarVariants-DzCf_sfh.cjs → searchFilterSidebarVariants-B1P8YS86.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_colorsConfig = require('./colorsConfig-
|
|
1
|
+
const require_colorsConfig = require('./colorsConfig-BjmNL7s7.cjs');
|
|
2
2
|
|
|
3
3
|
//#region src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts
|
|
4
4
|
const searchFilterSidebarVariantClasses = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import classNames from 'classnames';
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { TestProps } from '@envive-ai/react-hooks/types';
|
|
4
|
+
import { Typography } from '../Typography';
|
|
4
5
|
|
|
5
6
|
interface RadioButtonProps extends TestProps {
|
|
6
7
|
isDisabled?: boolean;
|
|
@@ -55,7 +56,13 @@ export const RadioButton = ({
|
|
|
55
56
|
};
|
|
56
57
|
|
|
57
58
|
return (
|
|
58
|
-
|
|
59
|
+
<label
|
|
60
|
+
className={containerClassName}
|
|
61
|
+
onMouseEnter={() => !isDisabled && setIsHovered(true)}
|
|
62
|
+
onMouseLeave={() => setIsHovered(false)}
|
|
63
|
+
aria-label={label}
|
|
64
|
+
htmlFor={id}
|
|
65
|
+
>
|
|
59
66
|
<div className="spiffy-tw-relative">
|
|
60
67
|
<input
|
|
61
68
|
type="radio"
|
|
@@ -80,15 +87,7 @@ export const RadioButton = ({
|
|
|
80
87
|
{checked && <circle cx="12" cy="12" r="9" fill={getFillColor()} />}
|
|
81
88
|
</svg>
|
|
82
89
|
</div>
|
|
83
|
-
<label
|
|
84
|
-
|
|
85
|
-
onMouseEnter={() => !isDisabled && setIsHovered(true)}
|
|
86
|
-
onMouseLeave={() => setIsHovered(false)}
|
|
87
|
-
aria-label={label}
|
|
88
|
-
htmlFor={id}
|
|
89
|
-
>
|
|
90
|
-
{label}
|
|
91
|
-
</label>
|
|
92
|
-
</>
|
|
90
|
+
<Typography variant="body3">{label}</Typography>
|
|
91
|
+
</label>
|
|
93
92
|
);
|
|
94
93
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|