@envive-ai/react-toolkit 0.2.6 → 0.2.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.
- 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.cts +2 -2
- 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 +1 -2
- package/dist/RadioButton/index.d.cts +2 -2
- package/dist/RadioButton/index.d.ts +2 -2
- package/dist/RadioButton/index.js +1 -2
- package/dist/{RadioButton-DT5srptW.cjs → RadioButton-BzZTrq-i.cjs} +37 -45
- package/dist/RadioButton-DRdlp-HC.js +67 -0
- package/dist/RadioButtonGroup/index.cjs +2 -3
- package/dist/RadioButtonGroup/index.d.cts +2 -2
- package/dist/RadioButtonGroup/index.d.ts +2 -2
- package/dist/RadioButtonGroup/index.js +2 -3
- package/dist/{RadioButtonGroup-Dgt2ub6s.js → RadioButtonGroup-BHfAwrH7.js} +1 -1
- package/dist/{RadioButtonGroup-BbVqccni.cjs → RadioButtonGroup-DU4_ZMJ2.cjs} +1 -1
- package/dist/SearchAutocomplete/index.cjs +1 -1
- package/dist/SearchAutocomplete/index.d.cts +2 -2
- package/dist/SearchAutocomplete/index.js +1 -1
- package/dist/SearchFilter/index.cjs +3 -3
- package/dist/SearchFilter/index.d.cts +5 -5
- package/dist/SearchFilter/index.d.ts +5 -5
- package/dist/SearchFilter/index.js +3 -3
- package/dist/{SearchFilter-BHFHWmpK.cjs → SearchFilter-Cph7S1yF.cjs} +1 -1
- package/dist/{SearchFilter-DWii-Y_g.js → SearchFilter-DWUm2sZH.js} +1 -1
- package/dist/SearchInput/index.cjs +3 -3
- package/dist/SearchInput/index.js +3 -3
- package/dist/{SearchInput-Bn6wD39s.cjs → SearchInput-CAqNnjuE.cjs} +2 -2
- package/dist/{SearchInput-DFoKyqJV.js → SearchInput-Jj8nxPA0.js} +2 -2
- package/dist/SearchInputForm/index.cjs +4 -4
- package/dist/SearchInputForm/index.d.cts +2 -2
- package/dist/SearchInputForm/index.d.ts +2 -2
- package/dist/SearchInputForm/index.js +4 -4
- 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 +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 +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-BJPkHdXG.cjs → SearchResultsStates-CG8-Ga-G.cjs} +2 -2
- package/dist/{SearchResultsStates-BiVIsfIe.js → SearchResultsStates-CTgVvFe9.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.d.ts +2 -2
- package/dist/{index--SpI4Sdw.d.ts → index-Br1B7Jta.d.cts} +2 -2
- package/dist/{index-DGfkVcQx.d.ts → index-CoKLba8Y.d.ts} +4 -4
- package/dist/{index-4oRWfY5a.d.cts → index-DZG-p0HX.d.cts} +4 -4
- package/dist/{index-Dfe_lkL2.d.cts → index-qY2eo4Dx.d.ts} +2 -2
- package/dist/{searchFilterSidebarVariants-B1P8YS86.cjs → searchFilterSidebarVariants-Bv_5N0Qd.cjs} +1 -1
- package/dist/{searchFilterSidebarVariants-CN9_kzJ8.js → searchFilterSidebarVariants-Dc0irQTl.js} +1 -1
- package/package.json +1 -1
- package/src/components/RadioButton/RadioButton.tsx +9 -12
- package/dist/RadioButton-BYq1JQtD.js +0 -75
- /package/dist/{ProductGrid-BfgnDGUq.cjs → ProductGrid-BeFeluHo.cjs} +0 -0
- /package/dist/{ProductGrid-BFFojT9P.js → ProductGrid-Cgkb4vNf.js} +0 -0
- /package/dist/{SearchAutocomplete-B690CIZB.js → SearchAutocomplete-BzMueTjs.js} +0 -0
- /package/dist/{SearchAutocomplete-DAEDHeqr.cjs → SearchAutocomplete-Dv2FQmZD.cjs} +0 -0
- /package/dist/{TextInput-BfUhaQUc.js → TextInput-C9wyXFlx.js} +0 -0
- /package/dist/{TextInput-BTTG_drp.cjs → TextInput-Cih-pWCJ.cjs} +0 -0
- /package/dist/{colorsConfig-BjmNL7s7.cjs → colorsConfig-CJTKbJsm.cjs} +0 -0
- /package/dist/{colorsConfig-E7w6Ol6W.js → colorsConfig-CYZ8f_gj.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime26 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_runtime26.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_runtime26.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
|
handleClick
|
|
311
|
-
}: ProductCardProps) =>
|
|
311
|
+
}: ProductCardProps) => react_jsx_runtime26.JSX.Element;
|
|
312
312
|
//#endregion
|
|
313
313
|
//#region src/components/ProductCard/ProductCardSkeleton.d.ts
|
|
314
314
|
declare const ProductCardSkeleton: FC<ProductCardSkeletonProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime19 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_runtime19.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_runtime19.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
|
handleClick
|
|
311
|
-
}: ProductCardProps) =>
|
|
311
|
+
}: ProductCardProps) => react_jsx_runtime19.JSX.Element;
|
|
312
312
|
//#endregion
|
|
313
313
|
//#region src/components/ProductCard/ProductCardSkeleton.d.ts
|
|
314
314
|
declare const ProductCardSkeleton: FC<ProductCardSkeletonProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime14 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
|
|
@@ -41,6 +41,6 @@ declare const SearchResultsFilter: ({
|
|
|
41
41
|
onSelectFilterItem,
|
|
42
42
|
onClearAllFilters,
|
|
43
43
|
filterButtonText
|
|
44
|
-
}: SearchResultsFilterProps) =>
|
|
44
|
+
}: SearchResultsFilterProps) => react_jsx_runtime14.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { CloseIconVariant$1 as CloseIconVariant, SearchFilterSidebarVariant, SearchResultsFilter, SearchResultsFilterProps, searchFilterSidebarVariantClasses };
|
package/dist/{searchFilterSidebarVariants-B1P8YS86.cjs → searchFilterSidebarVariants-Bv_5N0Qd.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_colorsConfig = require('./colorsConfig-
|
|
1
|
+
const require_colorsConfig = require('./colorsConfig-CJTKbJsm.cjs');
|
|
2
2
|
|
|
3
3
|
//#region src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts
|
|
4
4
|
const searchFilterSidebarVariantClasses = {
|
package/package.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import classNames from 'classnames';
|
|
2
|
-
import { Typography } from 'src/components/Typography';
|
|
3
2
|
import { useState } from 'react';
|
|
4
3
|
import { TestProps } from '@envive-ai/react-hooks/types';
|
|
5
4
|
|
|
@@ -57,16 +56,6 @@ export const RadioButton = ({
|
|
|
57
56
|
|
|
58
57
|
return (
|
|
59
58
|
<>
|
|
60
|
-
<label
|
|
61
|
-
className={containerClassName}
|
|
62
|
-
onMouseEnter={() => !isDisabled && setIsHovered(true)}
|
|
63
|
-
onMouseLeave={() => setIsHovered(false)}
|
|
64
|
-
aria-label={label}
|
|
65
|
-
htmlFor={id}
|
|
66
|
-
>
|
|
67
|
-
{label}
|
|
68
|
-
</label>
|
|
69
|
-
|
|
70
59
|
<div className="spiffy-tw-relative">
|
|
71
60
|
<input
|
|
72
61
|
type="radio"
|
|
@@ -91,7 +80,15 @@ export const RadioButton = ({
|
|
|
91
80
|
{checked && <circle cx="12" cy="12" r="9" fill={getFillColor()} />}
|
|
92
81
|
</svg>
|
|
93
82
|
</div>
|
|
94
|
-
<
|
|
83
|
+
<label
|
|
84
|
+
className={containerClassName}
|
|
85
|
+
onMouseEnter={() => !isDisabled && setIsHovered(true)}
|
|
86
|
+
onMouseLeave={() => setIsHovered(false)}
|
|
87
|
+
aria-label={label}
|
|
88
|
+
htmlFor={id}
|
|
89
|
+
>
|
|
90
|
+
{label}
|
|
91
|
+
</label>
|
|
95
92
|
</>
|
|
96
93
|
);
|
|
97
94
|
};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { Typography } from "./Typography-D3vDkBMS.js";
|
|
2
|
-
import { useState } from "react";
|
|
3
|
-
import classNames from "classnames";
|
|
4
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
|
|
6
|
-
//#region src/components/RadioButton/RadioButton.tsx
|
|
7
|
-
const RadioButton = ({ isDisabled = false, label, name, value, textButtonGap = "medium", fillColor, hoverColor, uncheckedBorderColor, checked = false, onChange, id }) => {
|
|
8
|
-
const [isHovered, setIsHovered] = useState(false);
|
|
9
|
-
const containerClassName = classNames({
|
|
10
|
-
"spiffy-tw-flex": true,
|
|
11
|
-
"spiffy-tw-items-center": true,
|
|
12
|
-
"spiffy-tw-group": true,
|
|
13
|
-
"spiffy-tw-gap-1": textButtonGap === "small",
|
|
14
|
-
"spiffy-tw-gap-2": textButtonGap === "medium",
|
|
15
|
-
"spiffy-tw-gap-4": textButtonGap === "large",
|
|
16
|
-
"spiffy-tw-cursor-pointer": !isDisabled,
|
|
17
|
-
"spiffy-tw-opacity-40": isDisabled
|
|
18
|
-
});
|
|
19
|
-
const getFillColor = () => {
|
|
20
|
-
if (isHovered && hoverColor) return hoverColor;
|
|
21
|
-
if (checked) return fillColor;
|
|
22
|
-
return uncheckedBorderColor;
|
|
23
|
-
};
|
|
24
|
-
const handleChange = () => {
|
|
25
|
-
if (!isDisabled) onChange(value);
|
|
26
|
-
};
|
|
27
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
28
|
-
/* @__PURE__ */ jsx("label", {
|
|
29
|
-
className: containerClassName,
|
|
30
|
-
onMouseEnter: () => !isDisabled && setIsHovered(true),
|
|
31
|
-
onMouseLeave: () => setIsHovered(false),
|
|
32
|
-
"aria-label": label,
|
|
33
|
-
htmlFor: id,
|
|
34
|
-
children: label
|
|
35
|
-
}),
|
|
36
|
-
/* @__PURE__ */ jsxs("div", {
|
|
37
|
-
className: "spiffy-tw-relative",
|
|
38
|
-
children: [/* @__PURE__ */ jsx("input", {
|
|
39
|
-
type: "radio",
|
|
40
|
-
id,
|
|
41
|
-
name,
|
|
42
|
-
value,
|
|
43
|
-
checked,
|
|
44
|
-
disabled: isDisabled,
|
|
45
|
-
onChange: handleChange,
|
|
46
|
-
className: "spiffy-tw-sr-only"
|
|
47
|
-
}), /* @__PURE__ */ jsxs("svg", {
|
|
48
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
49
|
-
width: "24",
|
|
50
|
-
height: "24",
|
|
51
|
-
viewBox: "0 0 24 24",
|
|
52
|
-
fill: "none",
|
|
53
|
-
children: [/* @__PURE__ */ jsx("circle", {
|
|
54
|
-
cx: "12",
|
|
55
|
-
cy: "12",
|
|
56
|
-
r: "11.5",
|
|
57
|
-
fill: "white",
|
|
58
|
-
stroke: getFillColor()
|
|
59
|
-
}), checked && /* @__PURE__ */ jsx("circle", {
|
|
60
|
-
cx: "12",
|
|
61
|
-
cy: "12",
|
|
62
|
-
r: "9",
|
|
63
|
-
fill: getFillColor()
|
|
64
|
-
})]
|
|
65
|
-
})]
|
|
66
|
-
}),
|
|
67
|
-
/* @__PURE__ */ jsx(Typography, {
|
|
68
|
-
variant: "body3",
|
|
69
|
-
children: label
|
|
70
|
-
})
|
|
71
|
-
] });
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
//#endregion
|
|
75
|
-
export { RadioButton };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|