@envive-ai/react-toolkit 0.3.65 → 0.3.67
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/components/Accordion/Accordion.d.cts +2 -2
- package/dist/components/Accordion/Accordion.d.ts +2 -2
- package/dist/components/AnimatedChevron/AnimatedChevron.d.cts +2 -2
- package/dist/components/AnimatedChevron/AnimatedChevron.d.ts +2 -2
- package/dist/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.d.cts +2 -2
- package/dist/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.d.ts +2 -2
- package/dist/components/ButtonBase/ButtonBase.cjs +3 -1
- package/dist/components/ButtonBase/ButtonBase.d.cts +5 -3
- package/dist/components/ButtonBase/ButtonBase.d.ts +5 -3
- package/dist/components/ButtonBase/ButtonBase.js +3 -1
- package/dist/components/ButtonBase/types.d.cts +4 -0
- package/dist/components/ButtonBase/types.d.ts +4 -0
- package/dist/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.d.ts +2 -2
- package/dist/components/FilterScrollbar/AppliedFiltersScrollbar.d.cts +2 -2
- package/dist/components/FilterScrollbar/AppliedFiltersScrollbar.d.ts +2 -2
- package/dist/components/FilterScrollbar/DynamicFiltersScrollbar.d.cts +2 -2
- package/dist/components/FilterScrollbar/DynamicFiltersScrollbar.d.ts +2 -2
- package/dist/components/ImageWithFallback/ImageWithFallback.d.cts +2 -2
- package/dist/components/ImageWithFallback/ImageWithFallback.d.ts +2 -2
- package/dist/components/ModalSheet/ModalSheet.d.ts +2 -2
- package/dist/components/ProductCard/ProductCard.d.cts +4 -4
- package/dist/components/ProductCard/ProductCard.d.ts +4 -4
- package/dist/components/ProductGrid/ProductGrid.cjs +1 -1
- package/dist/components/ProductGrid/ProductGrid.d.cts +2 -2
- package/dist/components/ProductGrid/ProductGrid.d.ts +2 -2
- package/dist/components/ProductGrid/ProductGrid.js +1 -1
- package/dist/components/RadioButton/RadioButton.d.cts +2 -2
- package/dist/components/RadioButton/RadioButton.d.ts +2 -2
- package/dist/components/RadioButtonGroup/RadioButtonGroup.d.cts +2 -2
- package/dist/components/RadioButtonGroup/RadioButtonGroup.d.ts +2 -2
- package/dist/components/SearchAutocomplete/SearchAutocomplete.d.cts +2 -2
- package/dist/components/SearchAutocomplete/SearchAutocomplete.d.ts +2 -2
- package/dist/components/SearchFilter/SearchFilter.d.cts +2 -2
- package/dist/components/SearchFilter/SearchFilter.d.ts +2 -2
- package/dist/components/SearchFilter/SearchFilterFooter.d.cts +2 -2
- package/dist/components/SearchFilter/SearchFilterFooter.d.ts +2 -2
- package/dist/components/SearchFilter/SearchFilterHeader.d.cts +2 -2
- package/dist/components/SearchFilter/SearchFilterHeader.d.ts +2 -2
- package/dist/components/SearchFilter/SearchFilterItem.d.cts +2 -2
- package/dist/components/SearchFilter/SearchFilterItem.d.ts +2 -2
- package/dist/components/SearchInputForm/SearchInputForm.d.cts +2 -2
- package/dist/components/SearchInputForm/SearchInputForm.d.ts +2 -2
- package/dist/components/SearchResultsContent/SearchResultsContent.d.cts +2 -2
- package/dist/components/SearchResultsContent/SearchResultsContent.d.ts +2 -2
- package/dist/components/SearchResultsFilterButton/SearchResultsFilterButton.d.cts +2 -2
- package/dist/components/SearchResultsFilterButton/SearchResultsFilterButton.d.ts +2 -2
- package/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.d.cts +2 -2
- package/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.d.ts +2 -2
- package/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.d.cts +2 -2
- package/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.d.ts +2 -2
- package/dist/components/SearchResultsStates/NoSearchResultsFound.d.cts +2 -2
- package/dist/components/SearchResultsStates/NoSearchResultsFound.d.ts +2 -2
- package/dist/components/SearchResultsStates/SearchResultsGrid.d.cts +2 -2
- package/dist/components/SearchResultsStates/SearchResultsGrid.d.ts +2 -2
- package/dist/components/SearchResultsStates/SearchResultsLoadingGrid.cjs +1 -1
- package/dist/components/SearchResultsStates/SearchResultsLoadingGrid.d.cts +2 -2
- package/dist/components/SearchResultsStates/SearchResultsLoadingGrid.d.ts +2 -2
- package/dist/components/SearchResultsStates/SearchResultsLoadingGrid.js +1 -1
- package/dist/components/SearchResultsToolbar/SearchResultsToolbar.d.cts +2 -2
- package/dist/components/SearchResultsToolbar/SearchResultsToolbar.d.ts +2 -2
- package/dist/components/SparkleAnimation/SparkleAnimation.d.cts +2 -2
- package/dist/components/SparkleAnimation/SparkleAnimation.d.ts +2 -2
- package/dist/components/Spinner/Spinner.d.cts +2 -2
- package/dist/components/Spinner/Spinner.d.ts +2 -2
- package/dist/components/SuggestionButton/SuggestionButton.cjs +8 -138
- package/dist/components/SuggestionButton/SuggestionButton.d.cts +7 -3
- package/dist/components/SuggestionButton/SuggestionButton.d.ts +7 -3
- package/dist/components/SuggestionButton/SuggestionButton.js +6 -136
- package/dist/components/SuggestionButton/index.cjs +3 -1
- package/dist/components/SuggestionButton/index.d.cts +2 -1
- package/dist/components/SuggestionButton/index.d.ts +2 -1
- package/dist/components/SuggestionButton/index.js +2 -1
- package/dist/components/SuggestionButton/variantClasses.cjs +148 -0
- package/dist/components/SuggestionButton/variantClasses.d.cts +12 -0
- package/dist/components/SuggestionButton/variantClasses.d.ts +12 -0
- package/dist/components/SuggestionButton/variantClasses.js +146 -0
- package/dist/components/ToggleButton/ToggleButton.d.cts +2 -2
- package/dist/components/ToggleButton/ToggleButton.d.ts +2 -2
- package/package.json +1 -1
- package/src/components/ButtonBase/ButtonBase.tsx +4 -0
- package/src/components/ButtonBase/types.ts +4 -0
- package/src/components/SuggestionButton/SuggestionButton.tsx +9 -190
- package/src/components/SuggestionButton/index.ts +1 -0
- package/src/components/SuggestionButton/variantClasses.ts +204 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SearchInputVariant } from "../../atoms/search/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SearchInputForm/SearchInputForm.d.ts
|
|
5
5
|
interface SearchInputFormProps {
|
|
@@ -33,6 +33,6 @@ declare const SearchInputForm: ({
|
|
|
33
33
|
onSearchInputFocus,
|
|
34
34
|
onSearchInputBlur,
|
|
35
35
|
searchInputRef
|
|
36
|
-
}: SearchInputFormProps) =>
|
|
36
|
+
}: SearchInputFormProps) => react_jsx_runtime21.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { SearchInputForm };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SearchInputVariant } from "../../atoms/search/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SearchInputForm/SearchInputForm.d.ts
|
|
5
5
|
interface SearchInputFormProps {
|
|
@@ -33,6 +33,6 @@ declare const SearchInputForm: ({
|
|
|
33
33
|
onSearchInputFocus,
|
|
34
34
|
onSearchInputBlur,
|
|
35
35
|
searchInputRef
|
|
36
|
-
}: SearchInputFormProps) =>
|
|
36
|
+
}: SearchInputFormProps) => react_jsx_runtime0.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { SearchInputForm };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProductCardConfig, ProductGridVariant, SearchResponseProductAttributes } from "../ProductCard/types.cjs";
|
|
2
2
|
import { SearchFilterSidebarVariant } from "../SearchResultsFilterSidebar/types.cjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime9 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
|
import { SearchResultsState } from "@envive-ai/react-hooks/hooks/utils";
|
|
@@ -52,6 +52,6 @@ declare const SearchResultsContent: ({
|
|
|
52
52
|
searchResultsRef,
|
|
53
53
|
toolbarHeight,
|
|
54
54
|
query
|
|
55
|
-
}: SearchResultsContentProps) =>
|
|
55
|
+
}: SearchResultsContentProps) => react_jsx_runtime9.JSX.Element;
|
|
56
56
|
//#endregion
|
|
57
57
|
export { SearchResultsContent };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProductCardConfig, ProductGridVariant, SearchResponseProductAttributes } from "../ProductCard/types.js";
|
|
2
2
|
import { SearchFilterSidebarVariant } from "../SearchResultsFilterSidebar/types.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
4
4
|
import { SearchResultsState } from "@envive-ai/react-hooks/hooks/utils";
|
|
5
5
|
import { SelectedFilterOption } from "@envive-ai/react-hooks/atoms/search";
|
|
6
6
|
import { SearchResponseProduct } from "@spiffy-ai/commerce-api-client";
|
|
@@ -52,6 +52,6 @@ declare const SearchResultsContent: ({
|
|
|
52
52
|
searchResultsRef,
|
|
53
53
|
toolbarHeight,
|
|
54
54
|
query
|
|
55
|
-
}: SearchResultsContentProps) =>
|
|
55
|
+
}: SearchResultsContentProps) => react_jsx_runtime5.JSX.Element;
|
|
56
56
|
//#endregion
|
|
57
57
|
export { SearchResultsContent };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SearchResultsFilterButton/SearchResultsFilterButton.d.ts
|
|
4
4
|
type SearchResultsFilterButtonProps = {
|
|
@@ -8,6 +8,6 @@ type SearchResultsFilterButtonProps = {
|
|
|
8
8
|
declare const SearchResultsFilterButton: ({
|
|
9
9
|
setIsOpen,
|
|
10
10
|
filterButtonText
|
|
11
|
-
}: SearchResultsFilterButtonProps) =>
|
|
11
|
+
}: SearchResultsFilterButtonProps) => react_jsx_runtime15.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { SearchResultsFilterButton, SearchResultsFilterButtonProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SearchResultsFilterButton/SearchResultsFilterButton.d.ts
|
|
4
4
|
type SearchResultsFilterButtonProps = {
|
|
@@ -8,6 +8,6 @@ type SearchResultsFilterButtonProps = {
|
|
|
8
8
|
declare const SearchResultsFilterButton: ({
|
|
9
9
|
setIsOpen,
|
|
10
10
|
filterButtonText
|
|
11
|
-
}: SearchResultsFilterButtonProps) =>
|
|
11
|
+
}: SearchResultsFilterButtonProps) => react_jsx_runtime0.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { SearchResultsFilterButton, SearchResultsFilterButtonProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SearchFilterSidebarVariant } from "../SearchResultsFilterSidebar/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
import { SearchFilterDatum, SelectFilterItem } from "@envive-ai/react-hooks/types";
|
|
4
4
|
|
|
5
5
|
//#region src/components/SearchResultsFilterModal/SearchResultsFilterModal.d.ts
|
|
@@ -22,6 +22,6 @@ declare const SearchResultsFilterModal: ({
|
|
|
22
22
|
onSelectFilterItem,
|
|
23
23
|
onClearAllFilters,
|
|
24
24
|
filterButtonText
|
|
25
|
-
}: SearchResultsFilterModalProps) =>
|
|
25
|
+
}: SearchResultsFilterModalProps) => react_jsx_runtime0.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { SearchResultsFilterModal, SearchResultsFilterModalProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SearchFilterSidebarVariant } from "../SearchResultsFilterSidebar/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
3
3
|
import { SearchFilterDatum, SelectFilterItem } from "@envive-ai/react-hooks/types";
|
|
4
4
|
|
|
5
5
|
//#region src/components/SearchResultsFilterModal/SearchResultsFilterModal.d.ts
|
|
@@ -22,6 +22,6 @@ declare const SearchResultsFilterModal: ({
|
|
|
22
22
|
onSelectFilterItem,
|
|
23
23
|
onClearAllFilters,
|
|
24
24
|
filterButtonText
|
|
25
|
-
}: SearchResultsFilterModalProps) =>
|
|
25
|
+
}: SearchResultsFilterModalProps) => react_jsx_runtime20.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { SearchResultsFilterModal, SearchResultsFilterModalProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SearchFilterSidebarVariant } from "./types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
3
3
|
import { SearchFilterDatum, SelectFilterItem } from "@envive-ai/react-hooks/types";
|
|
4
4
|
|
|
5
5
|
//#region src/components/SearchResultsFilterSidebar/SearchResultsFilter.d.ts
|
|
@@ -22,6 +22,6 @@ declare const SearchResultsFilter: ({
|
|
|
22
22
|
onSelectFilterItem,
|
|
23
23
|
onClearAllFilters,
|
|
24
24
|
filterButtonText
|
|
25
|
-
}: SearchResultsFilterProps) =>
|
|
25
|
+
}: SearchResultsFilterProps) => react_jsx_runtime8.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { SearchResultsFilter, SearchResultsFilterProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SearchFilterSidebarVariant } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
3
3
|
import { SearchFilterDatum, SelectFilterItem } from "@envive-ai/react-hooks/types";
|
|
4
4
|
|
|
5
5
|
//#region src/components/SearchResultsFilterSidebar/SearchResultsFilter.d.ts
|
|
@@ -22,6 +22,6 @@ declare const SearchResultsFilter: ({
|
|
|
22
22
|
onSelectFilterItem,
|
|
23
23
|
onClearAllFilters,
|
|
24
24
|
filterButtonText
|
|
25
|
-
}: SearchResultsFilterProps) =>
|
|
25
|
+
}: SearchResultsFilterProps) => react_jsx_runtime4.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { SearchResultsFilter, SearchResultsFilterProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProductGridVariant } from "../ProductCard/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
3
3
|
import { SearchResponseProductAttributes } from "@envive-ai/react-hooks/application/models";
|
|
4
4
|
|
|
5
5
|
//#region src/components/SearchResultsStates/NoSearchResultsFound.d.ts
|
|
@@ -20,6 +20,6 @@ declare const NoSearchResultsFound: ({
|
|
|
20
20
|
searchText,
|
|
21
21
|
merchantShortName,
|
|
22
22
|
productGridVariant
|
|
23
|
-
}: NoSearchResultsFoundProps) =>
|
|
23
|
+
}: NoSearchResultsFoundProps) => react_jsx_runtime3.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { NoSearchResultsFound };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProductGridVariant } from "../ProductCard/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
3
3
|
import { SearchResponseProductAttributes } from "@envive-ai/react-hooks/application/models";
|
|
4
4
|
|
|
5
5
|
//#region src/components/SearchResultsStates/NoSearchResultsFound.d.ts
|
|
@@ -20,6 +20,6 @@ declare const NoSearchResultsFound: ({
|
|
|
20
20
|
searchText,
|
|
21
21
|
merchantShortName,
|
|
22
22
|
productGridVariant
|
|
23
|
-
}: NoSearchResultsFoundProps) =>
|
|
23
|
+
}: NoSearchResultsFoundProps) => react_jsx_runtime14.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { NoSearchResultsFound };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProductCardConfig, ProductGridVariant } from "../ProductCard/types.cjs";
|
|
2
2
|
import { SearchFilterSidebarVariant } from "../SearchResultsFilterSidebar/types.cjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime2 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
|
|
|
@@ -41,6 +41,6 @@ declare const SearchResultsGrid: ({
|
|
|
41
41
|
onRemoveFilter,
|
|
42
42
|
onToggleDynamicFilter,
|
|
43
43
|
onProductClick
|
|
44
|
-
}: SearchResultsGridProps) =>
|
|
44
|
+
}: SearchResultsGridProps) => react_jsx_runtime2.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { SearchResultsGrid };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProductCardConfig, ProductGridVariant } from "../ProductCard/types.js";
|
|
2
2
|
import { SearchFilterSidebarVariant } from "../SearchResultsFilterSidebar/types.js";
|
|
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
|
|
|
@@ -41,6 +41,6 @@ declare const SearchResultsGrid: ({
|
|
|
41
41
|
onRemoveFilter,
|
|
42
42
|
onToggleDynamicFilter,
|
|
43
43
|
onProductClick
|
|
44
|
-
}: SearchResultsGridProps) =>
|
|
44
|
+
}: SearchResultsGridProps) => react_jsx_runtime15.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { SearchResultsGrid };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_Typography = require('../Typography/Typography.cjs');
|
|
3
3
|
require('../Typography/index.cjs');
|
|
4
|
-
const require_productGridVariants = require('../ProductGrid/productGridVariants.cjs');
|
|
5
4
|
const require_ProductCardSkeleton = require('../ProductCard/ProductCardSkeleton.cjs');
|
|
6
5
|
require('../ProductCard/index.cjs');
|
|
6
|
+
const require_productGridVariants = require('../ProductGrid/productGridVariants.cjs');
|
|
7
7
|
require('../ProductGrid/index.cjs');
|
|
8
8
|
const require_SparkleAnimation = require('../SparkleAnimation/SparkleAnimation.cjs');
|
|
9
9
|
require('../SparkleAnimation/index.cjs');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProductGridVariant } from "../ProductCard/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SearchResultsStates/SearchResultsLoadingGrid.d.ts
|
|
5
5
|
declare const SearchResultsLoadingGrid: ({
|
|
@@ -10,6 +10,6 @@ declare const SearchResultsLoadingGrid: ({
|
|
|
10
10
|
productGridVariant: ProductGridVariant;
|
|
11
11
|
productGridClasses: string;
|
|
12
12
|
sparkleIconColor?: string;
|
|
13
|
-
}) =>
|
|
13
|
+
}) => react_jsx_runtime1.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { SearchResultsLoadingGrid };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProductGridVariant } from "../ProductCard/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime17 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SearchResultsStates/SearchResultsLoadingGrid.d.ts
|
|
5
5
|
declare const SearchResultsLoadingGrid: ({
|
|
@@ -10,6 +10,6 @@ declare const SearchResultsLoadingGrid: ({
|
|
|
10
10
|
productGridVariant: ProductGridVariant;
|
|
11
11
|
productGridClasses: string;
|
|
12
12
|
sparkleIconColor?: string;
|
|
13
|
-
}) =>
|
|
13
|
+
}) => react_jsx_runtime17.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { SearchResultsLoadingGrid };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Typography } from "../Typography/Typography.js";
|
|
2
2
|
import "../Typography/index.js";
|
|
3
|
-
import { productGridVariantClasses } from "../ProductGrid/productGridVariants.js";
|
|
4
3
|
import { ProductCardSkeleton } from "../ProductCard/ProductCardSkeleton.js";
|
|
5
4
|
import "../ProductCard/index.js";
|
|
5
|
+
import { productGridVariantClasses } from "../ProductGrid/productGridVariants.js";
|
|
6
6
|
import "../ProductGrid/index.js";
|
|
7
7
|
import { SparkleAnimation } from "../SparkleAnimation/SparkleAnimation.js";
|
|
8
8
|
import "../SparkleAnimation/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { SearchInputVariant } from "@envive-ai/react-hooks/contexts/types";
|
|
4
4
|
|
|
@@ -44,6 +44,6 @@ declare const SearchResultsToolbar: ({
|
|
|
44
44
|
toolbarRef,
|
|
45
45
|
isVisible,
|
|
46
46
|
className
|
|
47
|
-
}: SearchResultsToolbarProps) =>
|
|
47
|
+
}: SearchResultsToolbarProps) => react_jsx_runtime0.JSX.Element;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { SearchResultsToolbar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime18 from "react/jsx-runtime";
|
|
3
3
|
import { SearchInputVariant } from "@envive-ai/react-hooks/contexts/types";
|
|
4
4
|
|
|
5
5
|
//#region src/components/SearchResultsToolbar/SearchResultsToolbar.d.ts
|
|
@@ -44,6 +44,6 @@ declare const SearchResultsToolbar: ({
|
|
|
44
44
|
toolbarRef,
|
|
45
45
|
isVisible,
|
|
46
46
|
className
|
|
47
|
-
}: SearchResultsToolbarProps) =>
|
|
47
|
+
}: SearchResultsToolbarProps) => react_jsx_runtime18.JSX.Element;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { SearchResultsToolbar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SparkleAnimation/SparkleAnimation.d.ts
|
|
4
4
|
interface SparkleAnimationProps {
|
|
@@ -10,6 +10,6 @@ declare const SparkleAnimation: ({
|
|
|
10
10
|
color,
|
|
11
11
|
className,
|
|
12
12
|
animate
|
|
13
|
-
}: SparkleAnimationProps) =>
|
|
13
|
+
}: SparkleAnimationProps) => react_jsx_runtime4.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { SparkleAnimation };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SparkleAnimation/SparkleAnimation.d.ts
|
|
4
4
|
interface SparkleAnimationProps {
|
|
@@ -10,6 +10,6 @@ declare const SparkleAnimation: ({
|
|
|
10
10
|
color,
|
|
11
11
|
className,
|
|
12
12
|
animate
|
|
13
|
-
}: SparkleAnimationProps) =>
|
|
13
|
+
}: SparkleAnimationProps) => react_jsx_runtime10.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { SparkleAnimation };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime31 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_runtime31.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Spinner };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime31 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_runtime31.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Spinner };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_ButtonBase = require('../ButtonBase/ButtonBase.cjs');
|
|
3
|
+
const require_variantClasses = require('./variantClasses.cjs');
|
|
3
4
|
let classnames = require("classnames");
|
|
4
5
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
5
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -12,142 +13,20 @@ __envive_ai_react_icons_FourPointStar = require_rolldown_runtime.__toESM(__enviv
|
|
|
12
13
|
const SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = "spiffy-suggestion-button-question-class";
|
|
13
14
|
const SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS = "spiffy-suggestion-button-answer-class";
|
|
14
15
|
const SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS = "spiffy-suggestion-button-text-class";
|
|
15
|
-
const BORDER_CLASS = "spiffy-tw-border";
|
|
16
|
-
const TEXT_LINK_CLASSES = [
|
|
17
|
-
"spiffy-tw-text-[--spiffy-colors-text-link]",
|
|
18
|
-
"spiffy-tw-fill-[--spiffy-colors-text-link]",
|
|
19
|
-
"spiffy-tw-stroke-[--spiffy-colors-text-link]"
|
|
20
|
-
];
|
|
21
|
-
const TEXT_LIGHT_CLASSES = [
|
|
22
|
-
"spiffy-tw-text-[--spiffy-colors-text-light]",
|
|
23
|
-
"spiffy-tw-fill-[--spiffy-colors-text-light]",
|
|
24
|
-
"spiffy-tw-stroke-[--spiffy-colors-text-light]"
|
|
25
|
-
];
|
|
26
|
-
const TEXT_PRIMARY_CLASSES = [
|
|
27
|
-
"spiffy-tw-text-[--spiffy-colors-text-primary]",
|
|
28
|
-
"spiffy-tw-fill-[--spiffy-colors-text-primary]",
|
|
29
|
-
"spiffy-tw-stroke-[--spiffy-colors-text-primary]"
|
|
30
|
-
];
|
|
31
|
-
const ACCENT_PRIMARY_CLASSES = ["spiffy-tw-fill-[--spiffy-colors-accent-primary]", "spiffy-tw-stroke-[--spiffy-colors-accent-primary]"];
|
|
32
|
-
const DARK_BACKGROUND_CLASSES = ["spiffy-tw-bg-[--spiffy-colors-background-dark]", "spiffy-tw-border-[--spiffy-colors-background-dark]"];
|
|
33
|
-
const SECONDARY_DARK_BACKGROUND_CLASSES = ["spiffy-tw-bg-[--spiffy-colors-background-secondary-dark]", "spiffy-tw-border-[--spiffy-colors-background-secondary-dark]"];
|
|
34
|
-
const variantClassMap = new Map([
|
|
35
|
-
["outlined", ["spiffy-tw-border-[--spiffy-colors-border-outline]", ...TEXT_LINK_CLASSES]],
|
|
36
|
-
["outlinedLight", [
|
|
37
|
-
"spiffy-tw-border-[--spiffy-colors-border-outline]",
|
|
38
|
-
"spiffy-tw-bg-[--spiffy-colors-background-light]",
|
|
39
|
-
...TEXT_LINK_CLASSES,
|
|
40
|
-
BORDER_CLASS
|
|
41
|
-
]],
|
|
42
|
-
["primary", [
|
|
43
|
-
"spiffy-tw-bg-[--spiffy-colors-background-primary]",
|
|
44
|
-
"spiffy-tw-border-[--spiffy-colors-background-primary]",
|
|
45
|
-
...TEXT_LIGHT_CLASSES,
|
|
46
|
-
BORDER_CLASS
|
|
47
|
-
]],
|
|
48
|
-
["secondary", [
|
|
49
|
-
"spiffy-tw-bg-[--spiffy-colors-background-secondary]",
|
|
50
|
-
"spiffy-tw-text-[--spiffy-colors-text-link]",
|
|
51
|
-
"spiffy-tw-border-[--spiffy-colors-background-secondary]",
|
|
52
|
-
...ACCENT_PRIMARY_CLASSES,
|
|
53
|
-
BORDER_CLASS
|
|
54
|
-
]],
|
|
55
|
-
["tertiary", [
|
|
56
|
-
"spiffy-tw-bg-[--spiffy-colors-background-tertiary]",
|
|
57
|
-
"spiffy-tw-border-[--spiffy-colors-background-tertiary]",
|
|
58
|
-
...TEXT_LINK_CLASSES,
|
|
59
|
-
BORDER_CLASS
|
|
60
|
-
]],
|
|
61
|
-
["dark", [
|
|
62
|
-
...DARK_BACKGROUND_CLASSES,
|
|
63
|
-
...TEXT_LIGHT_CLASSES,
|
|
64
|
-
BORDER_CLASS
|
|
65
|
-
]],
|
|
66
|
-
["darkPrimary", [
|
|
67
|
-
...DARK_BACKGROUND_CLASSES,
|
|
68
|
-
"spiffy-tw-text-[--spiffy-colors-text-light]",
|
|
69
|
-
...ACCENT_PRIMARY_CLASSES,
|
|
70
|
-
BORDER_CLASS
|
|
71
|
-
]],
|
|
72
|
-
["darkAccent", [
|
|
73
|
-
...DARK_BACKGROUND_CLASSES,
|
|
74
|
-
"spiffy-tw-text-[--spiffy-colors-text-light]",
|
|
75
|
-
"spiffy-tw-fill-[--spiffy-colors-text-accent]",
|
|
76
|
-
"spiffy-tw-stroke-[--spiffy-colors-text-accent]",
|
|
77
|
-
BORDER_CLASS
|
|
78
|
-
]],
|
|
79
|
-
["darkAccentContrast", [
|
|
80
|
-
...DARK_BACKGROUND_CLASSES,
|
|
81
|
-
"spiffy-tw-text-[--spiffy-colors-text-light]",
|
|
82
|
-
"spiffy-tw-fill-[--spiffy-colors-accent-primary]",
|
|
83
|
-
"spiffy-tw-stroke-[--spiffy-colors-accent-primary]",
|
|
84
|
-
BORDER_CLASS
|
|
85
|
-
]],
|
|
86
|
-
["transparent", [
|
|
87
|
-
"spiffy-tw-bg-transparent",
|
|
88
|
-
"spiffy-tw-border-[--spiffy-colors-background-light]",
|
|
89
|
-
"spiffy-tw-text-[--spiffy-colors-text-light]",
|
|
90
|
-
"spiffy-tw-fill-transparent",
|
|
91
|
-
"spiffy-tw-stroke-[--spiffy-colors-text-light]",
|
|
92
|
-
BORDER_CLASS
|
|
93
|
-
]],
|
|
94
|
-
["transparentDark", [
|
|
95
|
-
"spiffy-tw-bg-transparent",
|
|
96
|
-
"spiffy-tw-border-[--spiffy-colors-border-light]",
|
|
97
|
-
"spiffy-tw-text-[--spiffy-colors-text-primary]",
|
|
98
|
-
"spiffy-tw-fill-transparent",
|
|
99
|
-
"spiffy-tw-stroke-[--spiffy-colors-text-primary]",
|
|
100
|
-
BORDER_CLASS
|
|
101
|
-
]],
|
|
102
|
-
["secondaryDark", [
|
|
103
|
-
...SECONDARY_DARK_BACKGROUND_CLASSES,
|
|
104
|
-
...TEXT_LINK_CLASSES,
|
|
105
|
-
BORDER_CLASS
|
|
106
|
-
]],
|
|
107
|
-
["secondaryAccent", [
|
|
108
|
-
...SECONDARY_DARK_BACKGROUND_CLASSES,
|
|
109
|
-
"spiffy-tw-text-[--spiffy-colors-text-link]",
|
|
110
|
-
...ACCENT_PRIMARY_CLASSES,
|
|
111
|
-
BORDER_CLASS
|
|
112
|
-
]],
|
|
113
|
-
["lightDark", [
|
|
114
|
-
"spiffy-tw-bg-[--spiffy-colors-background-light]",
|
|
115
|
-
"spiffy-tw-border-[--spiffy-colors-background-dark]",
|
|
116
|
-
...TEXT_PRIMARY_CLASSES,
|
|
117
|
-
BORDER_CLASS
|
|
118
|
-
]]
|
|
119
|
-
]);
|
|
120
16
|
const Icon = ({ isAnswer, variant }) => {
|
|
121
17
|
if (isAnswer) return void 0;
|
|
122
18
|
if (variant === "transparentDark") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_OutlinedStar.default, {});
|
|
123
19
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_FourPointStar.default, {});
|
|
124
20
|
};
|
|
125
|
-
const
|
|
126
|
-
"outlined",
|
|
127
|
-
"outlinedLight",
|
|
128
|
-
"primary",
|
|
129
|
-
"secondary",
|
|
130
|
-
"tertiary",
|
|
131
|
-
"dark",
|
|
132
|
-
"darkAccent",
|
|
133
|
-
"darkAccentContrast",
|
|
134
|
-
"darkPrimary",
|
|
135
|
-
"transparent",
|
|
136
|
-
"transparentDark",
|
|
137
|
-
"secondaryDark",
|
|
138
|
-
"secondaryAccent",
|
|
139
|
-
"lightDark"
|
|
140
|
-
];
|
|
141
|
-
const hoverTransform = (variantClass) => variantClass?.map((className) => `hover:${className}`);
|
|
142
|
-
const SuggestionButton = ({ variant, hoverVariant, isDisabled, content, boldText, borderRadius = "lg", isAnswer = false, dataAttributes, dataTestId, onClick }) => {
|
|
21
|
+
const SuggestionButton = ({ variant, hoverVariant, isDisabled, content, boldText, borderRadius = "lg", isAnswer = false, dataAttributes, dataTestId, onClick, ariaHidden, tabIndex }) => {
|
|
143
22
|
const buttonClassName = (0, classnames.default)({
|
|
144
23
|
[SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS]: !isAnswer,
|
|
145
24
|
[SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS]: isAnswer,
|
|
146
25
|
"!spiffy-tw-rounded-[20px]": borderRadius === "lg",
|
|
147
26
|
"!spiffy-tw-rounded-[8px]": borderRadius === "md",
|
|
148
27
|
"!spiffy-tw-rounded-[0px]": borderRadius === "sm",
|
|
149
|
-
"spiffy-tw-border-[1px]": borderedVariants.includes(variant),
|
|
150
|
-
"spiffy-tw-border-solid": borderedVariants.includes(variant)
|
|
28
|
+
"spiffy-tw-border-[1px]": require_variantClasses.borderedVariants.includes(variant),
|
|
29
|
+
"spiffy-tw-border-solid": require_variantClasses.borderedVariants.includes(variant)
|
|
151
30
|
});
|
|
152
31
|
const textClassName = (0, classnames.default)({
|
|
153
32
|
"spiffy-tw-text-[14px]": true,
|
|
@@ -160,18 +39,7 @@ const SuggestionButton = ({ variant, hoverVariant, isDisabled, content, boldText
|
|
|
160
39
|
"spiffy-tw-stroke-inherit": true,
|
|
161
40
|
"spiffy-tw-fill-inherit": true
|
|
162
41
|
});
|
|
163
|
-
const
|
|
164
|
-
const hoverClasses = variantClassMap.get(hoverVariant) ?? [];
|
|
165
|
-
const baseBorderClasses = baseClasses.filter((cls) => cls.includes("border"));
|
|
166
|
-
const baseNonBorderClasses = baseClasses.filter((cls) => !cls.includes("border"));
|
|
167
|
-
const hoverBorderClasses = hoverClasses.filter((cls) => cls.includes("border"));
|
|
168
|
-
const hoverNonBorderClasses = hoverClasses.filter((cls) => !cls.includes("border"));
|
|
169
|
-
const buttonClass = `${buttonClassName} ${[
|
|
170
|
-
...baseNonBorderClasses,
|
|
171
|
-
...hoverTransform(hoverNonBorderClasses),
|
|
172
|
-
...baseBorderClasses,
|
|
173
|
-
...hoverTransform(hoverBorderClasses)
|
|
174
|
-
].join(" ")}`;
|
|
42
|
+
const buttonClass = `${buttonClassName} ${require_variantClasses.getSuggestionButtonVariantClasses(variant, hoverVariant)}`;
|
|
175
43
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ButtonBase.ButtonBase, {
|
|
176
44
|
text: content,
|
|
177
45
|
dataAttributes,
|
|
@@ -184,7 +52,9 @@ const SuggestionButton = ({ variant, hoverVariant, isDisabled, content, boldText
|
|
|
184
52
|
iconClass: isAnswer ? void 0 : iconClass,
|
|
185
53
|
textClass: `${SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS} ${textClassName}`,
|
|
186
54
|
buttonClass,
|
|
187
|
-
onClick
|
|
55
|
+
onClick,
|
|
56
|
+
ariaHidden,
|
|
57
|
+
tabIndex
|
|
188
58
|
});
|
|
189
59
|
};
|
|
190
60
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SuggestionButtonVariant } from "./types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SuggestionButton/SuggestionButton.d.ts
|
|
5
5
|
declare const SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = "spiffy-suggestion-button-question-class";
|
|
@@ -16,6 +16,8 @@ interface SuggestionButtonProps {
|
|
|
16
16
|
dataAttributes?: Record<string, string>;
|
|
17
17
|
onClick: () => void;
|
|
18
18
|
dataTestId?: string;
|
|
19
|
+
ariaHidden?: boolean;
|
|
20
|
+
tabIndex?: number;
|
|
19
21
|
}
|
|
20
22
|
declare const SuggestionButton: ({
|
|
21
23
|
variant,
|
|
@@ -27,7 +29,9 @@ declare const SuggestionButton: ({
|
|
|
27
29
|
isAnswer,
|
|
28
30
|
dataAttributes,
|
|
29
31
|
dataTestId,
|
|
30
|
-
onClick
|
|
31
|
-
|
|
32
|
+
onClick,
|
|
33
|
+
ariaHidden,
|
|
34
|
+
tabIndex
|
|
35
|
+
}: SuggestionButtonProps) => react_jsx_runtime10.JSX.Element;
|
|
32
36
|
//#endregion
|
|
33
37
|
export { SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS, SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS, SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS, SuggestionButton };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SuggestionButtonVariant } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SuggestionButton/SuggestionButton.d.ts
|
|
5
5
|
declare const SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS = "spiffy-suggestion-button-question-class";
|
|
@@ -16,6 +16,8 @@ interface SuggestionButtonProps {
|
|
|
16
16
|
dataAttributes?: Record<string, string>;
|
|
17
17
|
onClick: () => void;
|
|
18
18
|
dataTestId?: string;
|
|
19
|
+
ariaHidden?: boolean;
|
|
20
|
+
tabIndex?: number;
|
|
19
21
|
}
|
|
20
22
|
declare const SuggestionButton: ({
|
|
21
23
|
variant,
|
|
@@ -27,7 +29,9 @@ declare const SuggestionButton: ({
|
|
|
27
29
|
isAnswer,
|
|
28
30
|
dataAttributes,
|
|
29
31
|
dataTestId,
|
|
30
|
-
onClick
|
|
31
|
-
|
|
32
|
+
onClick,
|
|
33
|
+
ariaHidden,
|
|
34
|
+
tabIndex
|
|
35
|
+
}: SuggestionButtonProps) => react_jsx_runtime16.JSX.Element;
|
|
32
36
|
//#endregion
|
|
33
37
|
export { SPIFFY_SUGGESTION_BUTTON_ANSWER_CLASS, SPIFFY_SUGGESTION_BUTTON_QUESTION_CLASS, SPIFFY_SUGGESTION_BUTTON_TEXT_CLASS, SuggestionButton };
|