@envive-ai/react-toolkit 0.2.4 → 0.2.6
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/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/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 -1
- package/dist/RadioButton/index.d.cts +2 -2
- package/dist/RadioButton/index.d.ts +2 -2
- package/dist/RadioButton/index.js +1 -1
- package/dist/RadioButtonGroup/index.cjs +2 -2
- package/dist/RadioButtonGroup/index.d.cts +2 -2
- package/dist/RadioButtonGroup/index.d.ts +2 -2
- package/dist/RadioButtonGroup/index.js +2 -2
- package/dist/{RadioButtonGroup-3t2kqSFA.cjs → RadioButtonGroup-BbVqccni.cjs} +1 -1
- package/dist/{RadioButtonGroup-DMbVgPQH.js → RadioButtonGroup-Dgt2ub6s.js} +1 -1
- package/dist/SearchAutocomplete/index.cjs +2 -1
- package/dist/SearchAutocomplete/index.d.cts +10 -2
- package/dist/SearchAutocomplete/index.d.ts +10 -2
- package/dist/SearchAutocomplete/index.js +2 -1
- package/dist/SearchAutocomplete-B690CIZB.js +69 -0
- package/dist/{SearchAutocomplete-TX8UTczp.cjs → SearchAutocomplete-DAEDHeqr.cjs} +26 -8
- 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-t9or-lnj.cjs → SearchFilter-BHFHWmpK.cjs} +2 -2
- package/dist/{SearchFilter-BQW4o3Xf.js → SearchFilter-DWii-Y_g.js} +2 -2
- package/dist/SearchInput/index.cjs +3 -4
- package/dist/SearchInput/index.d.ts +2 -2
- package/dist/SearchInput/index.js +3 -4
- package/dist/{SearchInput-CO1poiit.cjs → SearchInput-Bn6wD39s.cjs} +5 -23
- package/dist/{SearchInput-BaiWd0_O.js → SearchInput-DFoKyqJV.js} +4 -23
- package/dist/SearchInputForm/index.cjs +49 -30
- package/dist/SearchInputForm/index.d.cts +9 -7
- package/dist/SearchInputForm/index.d.ts +10 -8
- package/dist/SearchInputForm/index.js +48 -31
- package/dist/SearchResultsContent/index.cjs +5 -5
- package/dist/SearchResultsContent/index.d.cts +3 -3
- package/dist/SearchResultsContent/index.d.ts +4 -4
- package/dist/SearchResultsContent/index.js +5 -5
- package/dist/SearchResultsFilterSidebar/index.cjs +74 -8
- package/dist/SearchResultsFilterSidebar/index.d.ts +1 -1
- package/dist/SearchResultsFilterSidebar/index.js +73 -7
- package/dist/SearchResultsStates/index.cjs +5 -5
- package/dist/SearchResultsStates/index.d.cts +5 -5
- package/dist/SearchResultsStates/index.d.ts +6 -6
- package/dist/SearchResultsStates/index.js +5 -5
- package/dist/{SearchResultsStates-Bv5NyxPn.cjs → SearchResultsStates-BJPkHdXG.cjs} +3 -3
- package/dist/{SearchResultsStates-DUG-117h.js → SearchResultsStates-BiVIsfIe.js} +3 -3
- 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.cjs +8 -0
- package/dist/SuggestionButton/index.d.cts +3 -3
- package/dist/SuggestionButton/index.d.ts +3 -3
- package/dist/SuggestionButton/index.js +8 -0
- package/dist/TextInput/index.cjs +1 -1
- package/dist/TextInput/index.d.ts +2 -2
- 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/Typography/index.d.ts +2 -2
- package/dist/{index-BcvJf9Sr.d.ts → index--SpI4Sdw.d.ts} +2 -2
- package/dist/{index-DDp-fLgm.d.cts → index-4oRWfY5a.d.cts} +4 -4
- package/dist/{index-B5p2z61Y.d.ts → index-DGfkVcQx.d.ts} +4 -4
- package/dist/{index-BH-QK27q.d.ts → index-Qtr26aUO.d.ts} +1 -1
- package/dist/{searchFilterSidebarVariants-DXabOauB.cjs → searchFilterSidebarVariants-B1P8YS86.cjs} +1 -1
- package/dist/{searchFilterSidebarVariants-BD4SYugF.js → searchFilterSidebarVariants-CN9_kzJ8.js} +1 -1
- package/package.json +1 -1
- package/src/components/SearchAutocomplete/SearchAutocomplete.tsx +51 -11
- package/src/components/SearchInput/SearchInput.tsx +1 -1
- package/src/components/SearchInputForm/SearchInputForm.tsx +52 -18
- package/src/components/SuggestionButton/SuggestionButton.tsx +15 -0
- package/src/components/SuggestionButton/types.ts +2 -1
- package/src/components/TextInput/TextInput.tsx +0 -4
- package/dist/SearchAutocomplete-obO19yzL.js +0 -51
- package/dist/SettingsVariant-BsBbdjV5.cjs +0 -63
- package/dist/SettingsVariant-CUSFlJEu.js +0 -55
- /package/dist/{ProductGrid-Cgkb4vNf.js → ProductGrid-BFFojT9P.js} +0 -0
- /package/dist/{ProductGrid-BeFeluHo.cjs → ProductGrid-BfgnDGUq.cjs} +0 -0
- /package/dist/{RadioButton-C_soBi7w.js → RadioButton-BYq1JQtD.js} +0 -0
- /package/dist/{RadioButton-DG0PgZbz.cjs → RadioButton-DT5srptW.cjs} +0 -0
- /package/dist/{SparkleAnimation-Bm3fk2FJ.cjs → SparkleAnimation-CvGlWUqv.cjs} +0 -0
- /package/dist/{SparkleAnimation-D1QjYho_.js → SparkleAnimation-paLhSu5E.js} +0 -0
- /package/dist/{TextInput-iAKCKHwT.cjs → TextInput-BTTG_drp.cjs} +0 -0
- /package/dist/{TextInput-B_4Bu2vf.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-D-MZuBvt.cjs → colorsConfig-BjmNL7s7.cjs} +0 -0
- /package/dist/{colorsConfig-DEfiLHH0.js → colorsConfig-E7w6Ol6W.js} +0 -0
- /package/dist/{types-CGRog8XL.d.ts → types-DlqhqT_S.d.ts} +0 -0
- /package/dist/{typographyVariantClasses-COmQXqcN.d.ts → typographyVariantClasses-B6wiawat.d.ts} +0 -0
|
@@ -5,18 +5,84 @@ require('../AnimatedChevron-Q96FneFy.cjs');
|
|
|
5
5
|
const require_ButtonBase = require('../ButtonBase-AU23oGQr.cjs');
|
|
6
6
|
require('../ButtonBase-DbWQ25n-.cjs');
|
|
7
7
|
require('../ModalSheet-CcthFeMD.cjs');
|
|
8
|
-
require('../RadioButton-
|
|
9
|
-
require('../RadioButtonGroup-
|
|
10
|
-
|
|
11
|
-
require('../
|
|
12
|
-
|
|
13
|
-
require('../
|
|
14
|
-
const require_searchFilterSidebarVariants = require('../searchFilterSidebarVariants-DXabOauB.cjs');
|
|
8
|
+
require('../RadioButton-DT5srptW.cjs');
|
|
9
|
+
require('../RadioButtonGroup-BbVqccni.cjs');
|
|
10
|
+
require('../colorsConfig-BjmNL7s7.cjs');
|
|
11
|
+
const require_SearchFilter = require('../SearchFilter-BHFHWmpK.cjs');
|
|
12
|
+
require('../ToggleButton-DCiR4sB5.cjs');
|
|
13
|
+
const require_searchFilterSidebarVariants = require('../searchFilterSidebarVariants-B1P8YS86.cjs');
|
|
15
14
|
let react = require("react");
|
|
16
15
|
react = require_chunk.__toESM(react);
|
|
17
16
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
18
17
|
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
19
18
|
|
|
19
|
+
//#region ../icons/src/SettingsVariant.tsx
|
|
20
|
+
const SvgSettingsVariant = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
21
|
+
width: 28,
|
|
22
|
+
height: 28,
|
|
23
|
+
viewBox: "0 0 28 28",
|
|
24
|
+
fill: "none",
|
|
25
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
26
|
+
...props,
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
|
|
29
|
+
cx: 3.5,
|
|
30
|
+
cy: 3.5,
|
|
31
|
+
r: 3.03346,
|
|
32
|
+
transform: "matrix(-1 0 0 1 22.4004 0)",
|
|
33
|
+
stroke: "#767676",
|
|
34
|
+
strokeWidth: .933083
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
37
|
+
d: "M14 3.5L0 3.5",
|
|
38
|
+
stroke: "#767676",
|
|
39
|
+
strokeWidth: .933083
|
|
40
|
+
}),
|
|
41
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
42
|
+
d: "M28 3.5L23.5 3.5",
|
|
43
|
+
stroke: "#767676",
|
|
44
|
+
strokeWidth: .933083
|
|
45
|
+
}),
|
|
46
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
|
|
47
|
+
cx: 9.09961,
|
|
48
|
+
cy: 13.5,
|
|
49
|
+
r: 3.03346,
|
|
50
|
+
stroke: "#767676",
|
|
51
|
+
strokeWidth: .933083
|
|
52
|
+
}),
|
|
53
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
54
|
+
d: "M14 13.5L28 13.5",
|
|
55
|
+
stroke: "#767676",
|
|
56
|
+
strokeWidth: .933083
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
59
|
+
d: "M0 13.5L4.5 13.5",
|
|
60
|
+
stroke: "#767676",
|
|
61
|
+
strokeWidth: .933083
|
|
62
|
+
}),
|
|
63
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
|
|
64
|
+
cx: 3.5,
|
|
65
|
+
cy: 3.5,
|
|
66
|
+
r: 3.03346,
|
|
67
|
+
transform: "matrix(-1 0 0 1 22.4004 20)",
|
|
68
|
+
stroke: "#767676",
|
|
69
|
+
strokeWidth: .933083
|
|
70
|
+
}),
|
|
71
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
72
|
+
d: "M14 23.5H0",
|
|
73
|
+
stroke: "#767676",
|
|
74
|
+
strokeWidth: .933083
|
|
75
|
+
}),
|
|
76
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
77
|
+
d: "M28 23.5L23.5 23.5",
|
|
78
|
+
stroke: "#767676",
|
|
79
|
+
strokeWidth: .933083
|
|
80
|
+
})
|
|
81
|
+
]
|
|
82
|
+
});
|
|
83
|
+
var SettingsVariant_default = SvgSettingsVariant;
|
|
84
|
+
|
|
85
|
+
//#endregion
|
|
20
86
|
//#region src/components/SearchResultsFilterSidebar/SearchResultsFilter.tsx
|
|
21
87
|
const SearchResultsFilter = ({ productCount, isOpen, setIsOpen, searchFilters, searchFilterSidebarVariant, onSelectFilterItem, onClearAllFilters, filterButtonText }) => {
|
|
22
88
|
const { applyFiltersUnchangedClasses, applyFiltersChangedClasses, searchFilterHeaderClasses, radioButtonFillColor, radioButtonHoverColor, radioButtonUncheckedBorderColor, filterCloseIconVariant } = require_searchFilterSidebarVariants.searchFilterSidebarVariantClasses[searchFilterSidebarVariant];
|
|
@@ -45,7 +111,7 @@ const SearchResultsFilter = ({ productCount, isOpen, setIsOpen, searchFilters, s
|
|
|
45
111
|
})
|
|
46
112
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ButtonBase.ButtonBase, {
|
|
47
113
|
onClick: openFilter,
|
|
48
|
-
icon:
|
|
114
|
+
icon: SettingsVariant_default,
|
|
49
115
|
iconClass: "spiffy-tw-w-[28px] spiffy-tw-h-[28px] spiffy-tw-object-center",
|
|
50
116
|
text: filterButtonText,
|
|
51
117
|
textClass: "spiffy-tw-uppercase spiffy-tw-text-[--spiffy-colors-text-primary] spiffy-tw-hidden md:spiffy-tw-block",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CloseIconVariant, SearchFilterSidebarVariant, SearchResultsFilter, SearchResultsFilterProps, searchFilterSidebarVariantClasses } from "../index
|
|
1
|
+
import { CloseIconVariant, SearchFilterSidebarVariant, SearchResultsFilter, SearchResultsFilterProps, searchFilterSidebarVariantClasses } from "../index--SpI4Sdw.js";
|
|
2
2
|
export { CloseIconVariant, SearchFilterSidebarVariant, SearchResultsFilter, SearchResultsFilterProps, searchFilterSidebarVariantClasses };
|
|
@@ -4,16 +4,82 @@ import "../AnimatedChevron-Bik7GMSe.js";
|
|
|
4
4
|
import { ButtonBase } from "../ButtonBase-6wjsZ1tU.js";
|
|
5
5
|
import "../ButtonBase-C_uKnl48.js";
|
|
6
6
|
import "../ModalSheet-BSj_g9JF.js";
|
|
7
|
-
import "../RadioButton-
|
|
8
|
-
import "../RadioButtonGroup-
|
|
9
|
-
import
|
|
10
|
-
import "../
|
|
11
|
-
import
|
|
12
|
-
import "../
|
|
13
|
-
import { searchFilterSidebarVariantClasses } from "../searchFilterSidebarVariants-BD4SYugF.js";
|
|
7
|
+
import "../RadioButton-BYq1JQtD.js";
|
|
8
|
+
import "../RadioButtonGroup-Dgt2ub6s.js";
|
|
9
|
+
import "../colorsConfig-E7w6Ol6W.js";
|
|
10
|
+
import { SearchFilter, SearchFilterHeader } from "../SearchFilter-DWii-Y_g.js";
|
|
11
|
+
import "../ToggleButton-8P9eNKy1.js";
|
|
12
|
+
import { searchFilterSidebarVariantClasses } from "../searchFilterSidebarVariants-CN9_kzJ8.js";
|
|
14
13
|
import { useCallback } from "react";
|
|
15
14
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
16
15
|
|
|
16
|
+
//#region ../icons/src/SettingsVariant.tsx
|
|
17
|
+
const SvgSettingsVariant = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
18
|
+
width: 28,
|
|
19
|
+
height: 28,
|
|
20
|
+
viewBox: "0 0 28 28",
|
|
21
|
+
fill: "none",
|
|
22
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
+
...props,
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ jsx("circle", {
|
|
26
|
+
cx: 3.5,
|
|
27
|
+
cy: 3.5,
|
|
28
|
+
r: 3.03346,
|
|
29
|
+
transform: "matrix(-1 0 0 1 22.4004 0)",
|
|
30
|
+
stroke: "#767676",
|
|
31
|
+
strokeWidth: .933083
|
|
32
|
+
}),
|
|
33
|
+
/* @__PURE__ */ jsx("path", {
|
|
34
|
+
d: "M14 3.5L0 3.5",
|
|
35
|
+
stroke: "#767676",
|
|
36
|
+
strokeWidth: .933083
|
|
37
|
+
}),
|
|
38
|
+
/* @__PURE__ */ jsx("path", {
|
|
39
|
+
d: "M28 3.5L23.5 3.5",
|
|
40
|
+
stroke: "#767676",
|
|
41
|
+
strokeWidth: .933083
|
|
42
|
+
}),
|
|
43
|
+
/* @__PURE__ */ jsx("circle", {
|
|
44
|
+
cx: 9.09961,
|
|
45
|
+
cy: 13.5,
|
|
46
|
+
r: 3.03346,
|
|
47
|
+
stroke: "#767676",
|
|
48
|
+
strokeWidth: .933083
|
|
49
|
+
}),
|
|
50
|
+
/* @__PURE__ */ jsx("path", {
|
|
51
|
+
d: "M14 13.5L28 13.5",
|
|
52
|
+
stroke: "#767676",
|
|
53
|
+
strokeWidth: .933083
|
|
54
|
+
}),
|
|
55
|
+
/* @__PURE__ */ jsx("path", {
|
|
56
|
+
d: "M0 13.5L4.5 13.5",
|
|
57
|
+
stroke: "#767676",
|
|
58
|
+
strokeWidth: .933083
|
|
59
|
+
}),
|
|
60
|
+
/* @__PURE__ */ jsx("circle", {
|
|
61
|
+
cx: 3.5,
|
|
62
|
+
cy: 3.5,
|
|
63
|
+
r: 3.03346,
|
|
64
|
+
transform: "matrix(-1 0 0 1 22.4004 20)",
|
|
65
|
+
stroke: "#767676",
|
|
66
|
+
strokeWidth: .933083
|
|
67
|
+
}),
|
|
68
|
+
/* @__PURE__ */ jsx("path", {
|
|
69
|
+
d: "M14 23.5H0",
|
|
70
|
+
stroke: "#767676",
|
|
71
|
+
strokeWidth: .933083
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ jsx("path", {
|
|
74
|
+
d: "M28 23.5L23.5 23.5",
|
|
75
|
+
stroke: "#767676",
|
|
76
|
+
strokeWidth: .933083
|
|
77
|
+
})
|
|
78
|
+
]
|
|
79
|
+
});
|
|
80
|
+
var SettingsVariant_default = SvgSettingsVariant;
|
|
81
|
+
|
|
82
|
+
//#endregion
|
|
17
83
|
//#region src/components/SearchResultsFilterSidebar/SearchResultsFilter.tsx
|
|
18
84
|
const SearchResultsFilter = ({ productCount, isOpen, setIsOpen, searchFilters, searchFilterSidebarVariant, onSelectFilterItem, onClearAllFilters, filterButtonText }) => {
|
|
19
85
|
const { applyFiltersUnchangedClasses, applyFiltersChangedClasses, searchFilterHeaderClasses, radioButtonFillColor, radioButtonHoverColor, radioButtonUncheckedBorderColor, filterCloseIconVariant } = searchFilterSidebarVariantClasses[searchFilterSidebarVariant];
|
|
@@ -3,11 +3,11 @@ require('../DynamicFiltersScrollbar-50i_InZz.cjs');
|
|
|
3
3
|
require('../ImageWithFallback-1LqhQK1q.cjs');
|
|
4
4
|
require('../ProductCard-CByKIsUN.cjs');
|
|
5
5
|
require('../Spinner-DjK8ts9E.cjs');
|
|
6
|
-
require('../ProductGrid-
|
|
7
|
-
require('../colorsConfig-
|
|
8
|
-
const require_SearchResultsStates = require('../SearchResultsStates-
|
|
9
|
-
require('../searchFilterSidebarVariants-
|
|
10
|
-
require('../SparkleAnimation-
|
|
6
|
+
require('../ProductGrid-BfgnDGUq.cjs');
|
|
7
|
+
require('../colorsConfig-BjmNL7s7.cjs');
|
|
8
|
+
const require_SearchResultsStates = require('../SearchResultsStates-BJPkHdXG.cjs');
|
|
9
|
+
require('../searchFilterSidebarVariants-B1P8YS86.cjs');
|
|
10
|
+
require('../SparkleAnimation-CvGlWUqv.cjs');
|
|
11
11
|
|
|
12
12
|
exports.NoSearchResultsFound = require_SearchResultsStates.NoSearchResultsFound;
|
|
13
13
|
exports.SearchResultsGrid = require_SearchResultsStates.SearchResultsGrid;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ProductCardConfig, ProductGridVariant } from "../index-
|
|
1
|
+
import { ProductCardConfig, ProductGridVariant } from "../index-4oRWfY5a.cjs";
|
|
2
2
|
import { SearchFilterSidebarVariant } from "../index-Dfe_lkL2.cjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
4
4
|
import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
|
|
5
5
|
import { SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
|
|
6
6
|
|
|
@@ -16,7 +16,7 @@ declare const NoSearchResultsFound: ({
|
|
|
16
16
|
includeBottomMargin,
|
|
17
17
|
noResultsFoundText,
|
|
18
18
|
sparkleIconColor
|
|
19
|
-
}: NoSearchResultsFoundProps) =>
|
|
19
|
+
}: NoSearchResultsFoundProps) => react_jsx_runtime15.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
//#region src/components/SearchResultsStates/SearchResultsGrid.d.ts
|
|
22
22
|
interface SearchResultsGridProps {
|
|
@@ -53,7 +53,7 @@ declare const SearchResultsGrid: ({
|
|
|
53
53
|
productGridClasses,
|
|
54
54
|
onRemoveFilter,
|
|
55
55
|
onToggleDynamicFilter
|
|
56
|
-
}: SearchResultsGridProps) =>
|
|
56
|
+
}: SearchResultsGridProps) => react_jsx_runtime15.JSX.Element;
|
|
57
57
|
//#endregion
|
|
58
58
|
//#region src/components/SearchResultsStates/SearchResultsLoadingGrid.d.ts
|
|
59
59
|
declare const SearchResultsLoadingGrid: ({
|
|
@@ -64,6 +64,6 @@ declare const SearchResultsLoadingGrid: ({
|
|
|
64
64
|
productGridVariant: ProductGridVariant;
|
|
65
65
|
productGridClasses: string;
|
|
66
66
|
sparkleIconColor?: string;
|
|
67
|
-
}) =>
|
|
67
|
+
}) => react_jsx_runtime15.JSX.Element;
|
|
68
68
|
//#endregion
|
|
69
69
|
export { NoSearchResultsFound, SearchResultsGrid, SearchResultsLoadingGrid };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ProductCardConfig, ProductGridVariant } from "../index-
|
|
2
|
-
import { SearchFilterSidebarVariant } from "../index
|
|
3
|
-
import * as
|
|
1
|
+
import { ProductCardConfig, ProductGridVariant } from "../index-DGfkVcQx.js";
|
|
2
|
+
import { SearchFilterSidebarVariant } from "../index--SpI4Sdw.js";
|
|
3
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
4
4
|
import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
|
|
5
5
|
import { SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
|
|
6
6
|
|
|
@@ -16,7 +16,7 @@ declare const NoSearchResultsFound: ({
|
|
|
16
16
|
includeBottomMargin,
|
|
17
17
|
noResultsFoundText,
|
|
18
18
|
sparkleIconColor
|
|
19
|
-
}: NoSearchResultsFoundProps) =>
|
|
19
|
+
}: NoSearchResultsFoundProps) => react_jsx_runtime4.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
//#region src/components/SearchResultsStates/SearchResultsGrid.d.ts
|
|
22
22
|
interface SearchResultsGridProps {
|
|
@@ -53,7 +53,7 @@ declare const SearchResultsGrid: ({
|
|
|
53
53
|
productGridClasses,
|
|
54
54
|
onRemoveFilter,
|
|
55
55
|
onToggleDynamicFilter
|
|
56
|
-
}: SearchResultsGridProps) =>
|
|
56
|
+
}: SearchResultsGridProps) => react_jsx_runtime4.JSX.Element;
|
|
57
57
|
//#endregion
|
|
58
58
|
//#region src/components/SearchResultsStates/SearchResultsLoadingGrid.d.ts
|
|
59
59
|
declare const SearchResultsLoadingGrid: ({
|
|
@@ -64,6 +64,6 @@ declare const SearchResultsLoadingGrid: ({
|
|
|
64
64
|
productGridVariant: ProductGridVariant;
|
|
65
65
|
productGridClasses: string;
|
|
66
66
|
sparkleIconColor?: string;
|
|
67
|
-
}) =>
|
|
67
|
+
}) => react_jsx_runtime4.JSX.Element;
|
|
68
68
|
//#endregion
|
|
69
69
|
export { NoSearchResultsFound, SearchResultsGrid, SearchResultsLoadingGrid };
|
|
@@ -3,10 +3,10 @@ import "../DynamicFiltersScrollbar-AhyHehrB.js";
|
|
|
3
3
|
import "../ImageWithFallback-Ckwsmd8P.js";
|
|
4
4
|
import "../ProductCard-BIlnM2nV.js";
|
|
5
5
|
import "../Spinner-BqTt55uu.js";
|
|
6
|
-
import "../ProductGrid-
|
|
7
|
-
import "../colorsConfig-
|
|
8
|
-
import { NoSearchResultsFound, SearchResultsGrid, SearchResultsLoadingGrid } from "../SearchResultsStates-
|
|
9
|
-
import "../searchFilterSidebarVariants-
|
|
10
|
-
import "../SparkleAnimation-
|
|
6
|
+
import "../ProductGrid-BFFojT9P.js";
|
|
7
|
+
import "../colorsConfig-E7w6Ol6W.js";
|
|
8
|
+
import { NoSearchResultsFound, SearchResultsGrid, SearchResultsLoadingGrid } from "../SearchResultsStates-BiVIsfIe.js";
|
|
9
|
+
import "../searchFilterSidebarVariants-CN9_kzJ8.js";
|
|
10
|
+
import "../SparkleAnimation-paLhSu5E.js";
|
|
11
11
|
|
|
12
12
|
export { NoSearchResultsFound, SearchResultsGrid, SearchResultsLoadingGrid };
|
|
@@ -2,9 +2,9 @@ const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
|
2
2
|
const require_Typography = require('./Typography-CFNWgbM5.cjs');
|
|
3
3
|
const require_DynamicFiltersScrollbar = require('./DynamicFiltersScrollbar-50i_InZz.cjs');
|
|
4
4
|
const require_ProductCard = require('./ProductCard-CByKIsUN.cjs');
|
|
5
|
-
const require_ProductGrid = require('./ProductGrid-
|
|
6
|
-
const require_searchFilterSidebarVariants = require('./searchFilterSidebarVariants-
|
|
7
|
-
const require_SparkleAnimation = require('./SparkleAnimation-
|
|
5
|
+
const require_ProductGrid = require('./ProductGrid-BfgnDGUq.cjs');
|
|
6
|
+
const require_searchFilterSidebarVariants = require('./searchFilterSidebarVariants-B1P8YS86.cjs');
|
|
7
|
+
const require_SparkleAnimation = require('./SparkleAnimation-CvGlWUqv.cjs');
|
|
8
8
|
let framer_motion = require("framer-motion");
|
|
9
9
|
framer_motion = require_chunk.__toESM(framer_motion);
|
|
10
10
|
let classnames = require("classnames");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Typography } from "./Typography-D3vDkBMS.js";
|
|
2
2
|
import { AppliedFiltersScrollbar, DynamicFiltersScrollbar } from "./DynamicFiltersScrollbar-AhyHehrB.js";
|
|
3
3
|
import { ProductCardSkeleton } from "./ProductCard-BIlnM2nV.js";
|
|
4
|
-
import { ProductGrid, productGridVariantClasses } from "./ProductGrid-
|
|
5
|
-
import { searchFilterSidebarVariantClasses } from "./searchFilterSidebarVariants-
|
|
6
|
-
import { SparkleAnimation } from "./SparkleAnimation-
|
|
4
|
+
import { ProductGrid, productGridVariantClasses } from "./ProductGrid-BFFojT9P.js";
|
|
5
|
+
import { searchFilterSidebarVariantClasses } from "./searchFilterSidebarVariants-CN9_kzJ8.js";
|
|
6
|
+
import { SparkleAnimation } from "./SparkleAnimation-paLhSu5E.js";
|
|
7
7
|
import { motion } from "framer-motion";
|
|
8
8
|
import classNames from "classnames";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_SparkleAnimation = require('../SparkleAnimation-
|
|
1
|
+
const require_SparkleAnimation = require('../SparkleAnimation-CvGlWUqv.cjs');
|
|
2
2
|
|
|
3
3
|
exports.SparkleAnimation = require_SparkleAnimation.SparkleAnimation;
|
|
4
4
|
exports.SparkleAnimationOverride = require_SparkleAnimation.SparkleAnimationOverride;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SparkleAnimation/SparkleAnimation.d.ts
|
|
4
4
|
interface SparkleAnimationProps {
|
|
@@ -10,7 +10,7 @@ declare const SparkleAnimation: ({
|
|
|
10
10
|
color,
|
|
11
11
|
className,
|
|
12
12
|
animate
|
|
13
|
-
}: SparkleAnimationProps) =>
|
|
13
|
+
}: SparkleAnimationProps) => react_jsx_runtime7.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/components/SparkleAnimation/types.d.ts
|
|
16
16
|
declare enum SparkleAnimationOverride {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SparkleAnimation/SparkleAnimation.d.ts
|
|
4
4
|
interface SparkleAnimationProps {
|
|
@@ -10,7 +10,7 @@ declare const SparkleAnimation: ({
|
|
|
10
10
|
color,
|
|
11
11
|
className,
|
|
12
12
|
animate
|
|
13
|
-
}: SparkleAnimationProps) =>
|
|
13
|
+
}: SparkleAnimationProps) => react_jsx_runtime1.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/components/SparkleAnimation/types.d.ts
|
|
16
16
|
declare enum SparkleAnimationOverride {
|
package/dist/Spinner/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/Spinner/Spinner.d.ts
|
|
4
4
|
type SpinnerProps = {
|
|
@@ -6,6 +6,6 @@ type SpinnerProps = {
|
|
|
6
6
|
};
|
|
7
7
|
declare const Spinner: ({
|
|
8
8
|
className
|
|
9
|
-
}: SpinnerProps) =>
|
|
9
|
+
}: SpinnerProps) => react_jsx_runtime2.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Spinner };
|
package/dist/Spinner/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/Spinner/Spinner.d.ts
|
|
4
4
|
type SpinnerProps = {
|
|
@@ -6,6 +6,6 @@ type SpinnerProps = {
|
|
|
6
6
|
};
|
|
7
7
|
declare const Spinner: ({
|
|
8
8
|
className
|
|
9
|
-
}: SpinnerProps) =>
|
|
9
|
+
}: SpinnerProps) => react_jsx_runtime0.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Spinner };
|
|
@@ -78,6 +78,13 @@ const variantClassMap = new Map([
|
|
|
78
78
|
"spiffy-tw-stroke-[--spiffy-colors-text-accent]",
|
|
79
79
|
BORDER_CLASS
|
|
80
80
|
]],
|
|
81
|
+
["darkAccentContrast", [
|
|
82
|
+
...DARK_BACKGROUND_CLASSES,
|
|
83
|
+
"spiffy-tw-text-[--spiffy-colors-text-light]",
|
|
84
|
+
"spiffy-tw-fill-[--spiffy-colors-accent-primary]",
|
|
85
|
+
"spiffy-tw-stroke-[--spiffy-colors-accent-primary]",
|
|
86
|
+
BORDER_CLASS
|
|
87
|
+
]],
|
|
81
88
|
["transparent", [
|
|
82
89
|
"spiffy-tw-bg-transparent",
|
|
83
90
|
"spiffy-tw-border-[--spiffy-colors-background-light]",
|
|
@@ -120,6 +127,7 @@ const borderedVariants = [
|
|
|
120
127
|
"tertiary",
|
|
121
128
|
"dark",
|
|
122
129
|
"darkAccent",
|
|
130
|
+
"darkAccentContrast",
|
|
123
131
|
"darkPrimary",
|
|
124
132
|
"transparent",
|
|
125
133
|
"transparentDark",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime27 from "react/jsx-runtime";
|
|
2
2
|
import { TestProps } from "@envive-ai/react-hooks/types";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SuggestionButton/types.d.ts
|
|
5
|
-
type SuggestionButtonVariant = 'outlined' | 'outlinedLight' | 'primary' | 'secondary' | 'tertiary' | 'dark' | 'darkAccent' | 'darkPrimary' | 'secondaryDark' | 'secondaryAccent' | 'transparent' | 'transparentDark' | 'lightDark';
|
|
5
|
+
type SuggestionButtonVariant = 'outlined' | 'outlinedLight' | 'primary' | 'secondary' | 'tertiary' | 'dark' | 'darkAccent' | 'darkAccentContrast' | 'darkPrimary' | 'secondaryDark' | 'secondaryAccent' | 'transparent' | 'transparentDark' | 'lightDark';
|
|
6
6
|
//#endregion
|
|
7
7
|
//#region src/components/SuggestionButton/SuggestionButton.d.ts
|
|
8
8
|
declare const SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = "spiffy-suggestion-button-question-class";
|
|
@@ -30,6 +30,6 @@ declare const SuggestionButton: ({
|
|
|
30
30
|
dataAttributes,
|
|
31
31
|
dataTestId,
|
|
32
32
|
onClick
|
|
33
|
-
}: SuggestionButtonProps) =>
|
|
33
|
+
}: SuggestionButtonProps) => react_jsx_runtime27.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS, SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS, SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS, SuggestionButton, SuggestionButtonVariant };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
2
2
|
import { TestProps } from "@envive-ai/react-hooks/types";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SuggestionButton/types.d.ts
|
|
5
|
-
type SuggestionButtonVariant = 'outlined' | 'outlinedLight' | 'primary' | 'secondary' | 'tertiary' | 'dark' | 'darkAccent' | 'darkPrimary' | 'secondaryDark' | 'secondaryAccent' | 'transparent' | 'transparentDark' | 'lightDark';
|
|
5
|
+
type SuggestionButtonVariant = 'outlined' | 'outlinedLight' | 'primary' | 'secondary' | 'tertiary' | 'dark' | 'darkAccent' | 'darkAccentContrast' | 'darkPrimary' | 'secondaryDark' | 'secondaryAccent' | 'transparent' | 'transparentDark' | 'lightDark';
|
|
6
6
|
//#endregion
|
|
7
7
|
//#region src/components/SuggestionButton/SuggestionButton.d.ts
|
|
8
8
|
declare const SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = "spiffy-suggestion-button-question-class";
|
|
@@ -30,6 +30,6 @@ declare const SuggestionButton: ({
|
|
|
30
30
|
dataAttributes,
|
|
31
31
|
dataTestId,
|
|
32
32
|
onClick
|
|
33
|
-
}: SuggestionButtonProps) =>
|
|
33
|
+
}: SuggestionButtonProps) => react_jsx_runtime28.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS, SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS, SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS, SuggestionButton, SuggestionButtonVariant };
|
|
@@ -73,6 +73,13 @@ const variantClassMap = new Map([
|
|
|
73
73
|
"spiffy-tw-stroke-[--spiffy-colors-text-accent]",
|
|
74
74
|
BORDER_CLASS
|
|
75
75
|
]],
|
|
76
|
+
["darkAccentContrast", [
|
|
77
|
+
...DARK_BACKGROUND_CLASSES,
|
|
78
|
+
"spiffy-tw-text-[--spiffy-colors-text-light]",
|
|
79
|
+
"spiffy-tw-fill-[--spiffy-colors-accent-primary]",
|
|
80
|
+
"spiffy-tw-stroke-[--spiffy-colors-accent-primary]",
|
|
81
|
+
BORDER_CLASS
|
|
82
|
+
]],
|
|
76
83
|
["transparent", [
|
|
77
84
|
"spiffy-tw-bg-transparent",
|
|
78
85
|
"spiffy-tw-border-[--spiffy-colors-background-light]",
|
|
@@ -115,6 +122,7 @@ const borderedVariants = [
|
|
|
115
122
|
"tertiary",
|
|
116
123
|
"dark",
|
|
117
124
|
"darkAccent",
|
|
125
|
+
"darkAccentContrast",
|
|
118
126
|
"darkPrimary",
|
|
119
127
|
"transparent",
|
|
120
128
|
"transparentDark",
|
package/dist/TextInput/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TypographyVariantMap } from "../typographyVariantClasses-
|
|
2
|
-
import "../index-
|
|
1
|
+
import { TypographyVariantMap } from "../typographyVariantClasses-B6wiawat.js";
|
|
2
|
+
import "../index-Qtr26aUO.js";
|
|
3
3
|
import React from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/TextInput/TextInput.d.ts
|
package/dist/TextInput/index.js
CHANGED
|
@@ -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_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,3 +1,3 @@
|
|
|
1
|
-
import { ElementTypes, TypographyDomVariantMap, TypographyVariantMap, getVariantPlaceholderClassNames } from "../typographyVariantClasses-
|
|
2
|
-
import { Typography, TypographyProps } from "../index-
|
|
1
|
+
import { ElementTypes, TypographyDomVariantMap, TypographyVariantMap, getVariantPlaceholderClassNames } from "../typographyVariantClasses-B6wiawat.js";
|
|
2
|
+
import { Typography, TypographyProps } from "../index-Qtr26aUO.js";
|
|
3
3
|
export { ElementTypes, Typography, TypographyDomVariantMap, TypographyProps, TypographyVariantMap, getVariantPlaceholderClassNames };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime7 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_runtime7.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { CloseIconVariant$1 as CloseIconVariant, SearchFilterSidebarVariant, SearchResultsFilter, SearchResultsFilterProps, searchFilterSidebarVariantClasses };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime21 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_runtime21.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_runtime21.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_runtime21.JSX.Element;
|
|
312
312
|
//#endregion
|
|
313
313
|
//#region src/components/ProductCard/ProductCardSkeleton.d.ts
|
|
314
314
|
declare const ProductCardSkeleton: FC<ProductCardSkeletonProps>;
|