@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.
Files changed (91) 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/AppliedFiltersScrollbar/index.d.ts +2 -2
  7. package/dist/ButtonBase/index.d.cts +2 -2
  8. package/dist/ButtonBase/index.d.ts +2 -2
  9. package/dist/DynamicFiltersScrollbar/index.d.cts +2 -2
  10. package/dist/DynamicFiltersScrollbar/index.d.ts +2 -2
  11. package/dist/FilterScrollbar/index.d.cts +3 -3
  12. package/dist/FilterScrollbar/index.d.ts +3 -3
  13. package/dist/ImageWithFallback/index.d.cts +2 -2
  14. package/dist/ImageWithFallback/index.d.ts +2 -2
  15. package/dist/ModalSheet/index.d.cts +2 -2
  16. package/dist/ModalSheet/index.d.ts +2 -2
  17. package/dist/ProductCard/index.d.cts +1 -1
  18. package/dist/ProductCard/index.d.ts +1 -1
  19. package/dist/ProductGrid/index.cjs +1 -1
  20. package/dist/ProductGrid/index.d.cts +3 -3
  21. package/dist/ProductGrid/index.d.ts +3 -3
  22. package/dist/ProductGrid/index.js +1 -1
  23. package/dist/RadioButton/index.cjs +1 -2
  24. package/dist/RadioButton/index.d.cts +2 -2
  25. package/dist/RadioButton/index.d.ts +2 -2
  26. package/dist/RadioButton/index.js +1 -2
  27. package/dist/{RadioButton-DT5srptW.cjs → RadioButton-BzZTrq-i.cjs} +37 -45
  28. package/dist/RadioButton-DRdlp-HC.js +67 -0
  29. package/dist/RadioButtonGroup/index.cjs +2 -3
  30. package/dist/RadioButtonGroup/index.d.cts +2 -2
  31. package/dist/RadioButtonGroup/index.d.ts +2 -2
  32. package/dist/RadioButtonGroup/index.js +2 -3
  33. package/dist/{RadioButtonGroup-Dgt2ub6s.js → RadioButtonGroup-BHfAwrH7.js} +1 -1
  34. package/dist/{RadioButtonGroup-BbVqccni.cjs → RadioButtonGroup-DU4_ZMJ2.cjs} +1 -1
  35. package/dist/SearchAutocomplete/index.cjs +1 -1
  36. package/dist/SearchAutocomplete/index.d.cts +2 -2
  37. package/dist/SearchAutocomplete/index.js +1 -1
  38. package/dist/SearchFilter/index.cjs +3 -3
  39. package/dist/SearchFilter/index.d.cts +5 -5
  40. package/dist/SearchFilter/index.d.ts +5 -5
  41. package/dist/SearchFilter/index.js +3 -3
  42. package/dist/{SearchFilter-BHFHWmpK.cjs → SearchFilter-Cph7S1yF.cjs} +1 -1
  43. package/dist/{SearchFilter-DWii-Y_g.js → SearchFilter-DWUm2sZH.js} +1 -1
  44. package/dist/SearchInput/index.cjs +3 -3
  45. package/dist/SearchInput/index.js +3 -3
  46. package/dist/{SearchInput-Bn6wD39s.cjs → SearchInput-CAqNnjuE.cjs} +2 -2
  47. package/dist/{SearchInput-DFoKyqJV.js → SearchInput-Jj8nxPA0.js} +2 -2
  48. package/dist/SearchInputForm/index.cjs +4 -4
  49. package/dist/SearchInputForm/index.d.cts +2 -2
  50. package/dist/SearchInputForm/index.d.ts +2 -2
  51. package/dist/SearchInputForm/index.js +4 -4
  52. package/dist/SearchResultsContent/index.cjs +4 -4
  53. package/dist/SearchResultsContent/index.d.cts +4 -4
  54. package/dist/SearchResultsContent/index.d.ts +4 -4
  55. package/dist/SearchResultsContent/index.js +4 -4
  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 +4 -4
  61. package/dist/SearchResultsStates/index.d.cts +6 -6
  62. package/dist/SearchResultsStates/index.d.ts +6 -6
  63. package/dist/SearchResultsStates/index.js +4 -4
  64. package/dist/{SearchResultsStates-BJPkHdXG.cjs → SearchResultsStates-CG8-Ga-G.cjs} +2 -2
  65. package/dist/{SearchResultsStates-BiVIsfIe.js → SearchResultsStates-CTgVvFe9.js} +2 -2
  66. package/dist/SparkleAnimation/index.d.cts +2 -2
  67. package/dist/SparkleAnimation/index.d.ts +2 -2
  68. package/dist/Spinner/index.d.cts +2 -2
  69. package/dist/Spinner/index.d.ts +2 -2
  70. package/dist/SuggestionButton/index.d.cts +2 -2
  71. package/dist/SuggestionButton/index.d.ts +2 -2
  72. package/dist/TextInput/index.cjs +1 -1
  73. package/dist/TextInput/index.js +1 -1
  74. package/dist/ToggleButton/index.d.ts +2 -2
  75. package/dist/{index--SpI4Sdw.d.ts → index-Br1B7Jta.d.cts} +2 -2
  76. package/dist/{index-DGfkVcQx.d.ts → index-CoKLba8Y.d.ts} +4 -4
  77. package/dist/{index-4oRWfY5a.d.cts → index-DZG-p0HX.d.cts} +4 -4
  78. package/dist/{index-Dfe_lkL2.d.cts → index-qY2eo4Dx.d.ts} +2 -2
  79. package/dist/{searchFilterSidebarVariants-B1P8YS86.cjs → searchFilterSidebarVariants-Bv_5N0Qd.cjs} +1 -1
  80. package/dist/{searchFilterSidebarVariants-CN9_kzJ8.js → searchFilterSidebarVariants-Dc0irQTl.js} +1 -1
  81. package/package.json +1 -1
  82. package/src/components/RadioButton/RadioButton.tsx +9 -12
  83. package/dist/RadioButton-BYq1JQtD.js +0 -75
  84. /package/dist/{ProductGrid-BfgnDGUq.cjs → ProductGrid-BeFeluHo.cjs} +0 -0
  85. /package/dist/{ProductGrid-BFFojT9P.js → ProductGrid-Cgkb4vNf.js} +0 -0
  86. /package/dist/{SearchAutocomplete-B690CIZB.js → SearchAutocomplete-BzMueTjs.js} +0 -0
  87. /package/dist/{SearchAutocomplete-DAEDHeqr.cjs → SearchAutocomplete-Dv2FQmZD.cjs} +0 -0
  88. /package/dist/{TextInput-BfUhaQUc.js → TextInput-C9wyXFlx.js} +0 -0
  89. /package/dist/{TextInput-BTTG_drp.cjs → TextInput-Cih-pWCJ.cjs} +0 -0
  90. /package/dist/{colorsConfig-BjmNL7s7.cjs → colorsConfig-CJTKbJsm.cjs} +0 -0
  91. /package/dist/{colorsConfig-E7w6Ol6W.js → colorsConfig-CYZ8f_gj.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { FC } from "react";
2
- import * as react_jsx_runtime12 from "react/jsx-runtime";
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) => react_jsx_runtime12.JSX.Element;
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) => react_jsx_runtime12.JSX.Element;
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) => react_jsx_runtime12.JSX.Element;
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 react_jsx_runtime21 from "react/jsx-runtime";
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) => react_jsx_runtime21.JSX.Element;
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) => react_jsx_runtime21.JSX.Element;
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) => react_jsx_runtime21.JSX.Element;
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 react_jsx_runtime1 from "react/jsx-runtime";
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) => react_jsx_runtime1.JSX.Element;
44
+ }: SearchResultsFilterProps) => react_jsx_runtime14.JSX.Element;
45
45
  //#endregion
46
46
  export { CloseIconVariant$1 as CloseIconVariant, SearchFilterSidebarVariant, SearchResultsFilter, SearchResultsFilterProps, searchFilterSidebarVariantClasses };
@@ -1,4 +1,4 @@
1
- const require_colorsConfig = require('./colorsConfig-BjmNL7s7.cjs');
1
+ const require_colorsConfig = require('./colorsConfig-CJTKbJsm.cjs');
2
2
 
3
3
  //#region src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts
4
4
  const searchFilterSidebarVariantClasses = {
@@ -1,4 +1,4 @@
1
- import { ColorNames, colorVar } from "./colorsConfig-E7w6Ol6W.js";
1
+ import { ColorNames, colorVar } from "./colorsConfig-CYZ8f_gj.js";
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.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "React component library for Envive services.",
5
5
  "keywords": [
6
6
  "react",
@@ -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
- <Typography variant="body3">{label}</Typography>
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 };