@envive-ai/react-toolkit 0.1.1 → 0.1.2
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/AppliedFiltersScrollbar-BlcyhZkZ.cjs +53 -0
- package/dist/AppliedFiltersScrollbar-DFGzRemu.js +44 -0
- package/dist/ButtonBase-C1rsL9gO.js +60 -0
- package/dist/ButtonBase-a8uj6c2f.cjs +69 -0
- package/dist/DynamicFiltersScrollbar-B2Rr1KnJ.cjs +41 -0
- package/dist/DynamicFiltersScrollbar-Dys6geP0.js +32 -0
- package/dist/Headline-L7w3BsBF.cjs +72 -0
- package/dist/Headline-ro_Nigw5.js +64 -0
- package/dist/ImageWithFallback-CfmkC58B.js +42 -0
- package/dist/ImageWithFallback-P3AjyL2Y.cjs +51 -0
- package/dist/ProductCard-Btg8tHGc.js +172 -0
- package/dist/ProductCard-CS6DZAwO.cjs +193 -0
- package/dist/ProductCardSkeleton-BPfp6IOp.js +38 -0
- package/dist/ProductCardSkeleton-BgvDlaty.cjs +46 -0
- package/dist/ProductGrid-B7QZfW-v.cjs +77 -0
- package/dist/ProductGrid-DB_Uq5F-.js +69 -0
- package/dist/SearchAutocomplete-C5FL82xC.js +51 -0
- package/dist/SearchAutocomplete-wr18dJ8L.cjs +62 -0
- package/dist/SearchFilter-D-2IdBKS.js +62 -0
- package/dist/SearchFilter-D0IzBlG5.cjs +70 -0
- package/dist/SearchFilterHeader-BQT0-ssS.js +37 -0
- package/dist/SearchFilterHeader-C3EklfoO.cjs +45 -0
- package/dist/SearchFilterItem-BodtWLoP.js +26 -0
- package/dist/SearchFilterItem-DmMkiqNC.cjs +34 -0
- package/dist/SearchInput-BrcAgcvI.js +89 -0
- package/dist/SearchInput-DSB9CwIq.cjs +106 -0
- package/dist/SparkleAnimation-BpLwrEqM.cjs +96 -0
- package/dist/SparkleAnimation-CXs58sFd.js +85 -0
- package/dist/Spinner-BZ-kTOpm.js +38 -0
- package/dist/Spinner-CfQ85Ajl.cjs +46 -0
- package/dist/Text-Bdv7F5-u.js +42 -0
- package/dist/Text-C04c4Z93.cjs +50 -0
- package/dist/TextInput-BO80ixsV.cjs +40 -0
- package/dist/TextInput-CEGWfdPC.js +31 -0
- package/dist/chunk-CUT6urMc.cjs +30 -0
- package/dist/colorsConfig-TCONYTQ7.cjs +38 -0
- package/dist/colorsConfig-l0ODUVhu.js +26 -0
- package/dist/common/ButtonBase/ButtonBase.cjs +5 -0
- package/dist/common/ButtonBase/ButtonBase.d.cts +35 -0
- package/dist/common/ButtonBase/ButtonBase.d.ts +35 -0
- package/dist/common/ButtonBase/ButtonBase.js +5 -0
- package/dist/common/Headline/Headline.cjs +4 -0
- package/dist/common/Headline/Headline.d.cts +21 -0
- package/dist/common/Headline/Headline.d.ts +21 -0
- package/dist/common/Headline/Headline.js +4 -0
- package/dist/common/ImageWithFallback/ImageWithFallback.cjs +3 -0
- package/dist/common/ImageWithFallback/ImageWithFallback.d.cts +26 -0
- package/dist/common/ImageWithFallback/ImageWithFallback.d.ts +26 -0
- package/dist/common/ImageWithFallback/ImageWithFallback.js +3 -0
- package/dist/common/ProductCard/ProductCard.cjs +11 -0
- package/dist/common/ProductCard/ProductCard.d.cts +91 -0
- package/dist/common/ProductCard/ProductCard.d.ts +91 -0
- package/dist/common/ProductCard/ProductCard.js +9 -0
- package/dist/common/ProductCard/ProductCardSkeleton.cjs +4 -0
- package/dist/common/ProductCard/ProductCardSkeleton.d.cts +12 -0
- package/dist/common/ProductCard/ProductCardSkeleton.d.ts +12 -0
- package/dist/common/ProductCard/ProductCardSkeleton.js +4 -0
- package/dist/common/ProductGrid/ProductGrid.cjs +11 -0
- package/dist/common/ProductGrid/ProductGrid.d.cts +26 -0
- package/dist/common/ProductGrid/ProductGrid.d.ts +26 -0
- package/dist/common/ProductGrid/ProductGrid.js +11 -0
- package/dist/common/SparkleAnimation/SparkleAnimation.cjs +3 -0
- package/dist/common/SparkleAnimation/SparkleAnimation.d.cts +15 -0
- package/dist/common/SparkleAnimation/SparkleAnimation.d.ts +15 -0
- package/dist/common/SparkleAnimation/SparkleAnimation.js +3 -0
- package/dist/common/Spinner/Spinner.cjs +3 -0
- package/dist/common/Spinner/Spinner.d.cts +11 -0
- package/dist/common/Spinner/Spinner.d.ts +11 -0
- package/dist/common/Spinner/Spinner.js +3 -0
- package/dist/common/SuggestionButton/SuggestionButton.cjs +188 -0
- package/dist/common/SuggestionButton/SuggestionButton.d.cts +35 -0
- package/dist/common/SuggestionButton/SuggestionButton.d.ts +35 -0
- package/dist/common/SuggestionButton/SuggestionButton.js +180 -0
- package/dist/common/Text/Text.cjs +4 -0
- package/dist/common/Text/Text.d.cts +28 -0
- package/dist/common/Text/Text.d.ts +28 -0
- package/dist/common/Text/Text.js +4 -0
- package/dist/common/TextInput/TextInput.cjs +4 -0
- package/dist/common/TextInput/TextInput.d.cts +98 -0
- package/dist/common/TextInput/TextInput.d.ts +98 -0
- package/dist/common/TextInput/TextInput.js +4 -0
- package/dist/productCardVariants-C_QIZ-KF.js +45 -0
- package/dist/productCardVariants-Dd-wrJKP.cjs +69 -0
- package/dist/productGridVariants-CxCKx5Fq.js +20 -0
- package/dist/productGridVariants-DVzvjK9i.cjs +26 -0
- package/dist/search/FilterScrollbar/AppliedFiltersScrollbar.cjs +5 -0
- package/dist/search/FilterScrollbar/AppliedFiltersScrollbar.d.cts +22 -0
- package/dist/search/FilterScrollbar/AppliedFiltersScrollbar.d.ts +22 -0
- package/dist/search/FilterScrollbar/AppliedFiltersScrollbar.js +5 -0
- package/dist/search/FilterScrollbar/DynamicFiltersScrollbar.cjs +5 -0
- package/dist/search/FilterScrollbar/DynamicFiltersScrollbar.d.cts +28 -0
- package/dist/search/FilterScrollbar/DynamicFiltersScrollbar.d.ts +28 -0
- package/dist/search/FilterScrollbar/DynamicFiltersScrollbar.js +5 -0
- package/dist/search/SearchFilter/SearchFilter.cjs +7 -0
- package/dist/search/SearchFilter/SearchFilter.d.cts +18 -0
- package/dist/search/SearchFilter/SearchFilter.d.ts +18 -0
- package/dist/search/SearchFilter/SearchFilter.js +7 -0
- package/dist/search/SearchFilter/SearchFilterHeader.cjs +5 -0
- package/dist/search/SearchFilter/SearchFilterHeader.d.cts +12 -0
- package/dist/search/SearchFilter/SearchFilterHeader.d.ts +12 -0
- package/dist/search/SearchFilter/SearchFilterHeader.js +5 -0
- package/dist/search/SearchFilter/SearchFilterItem.cjs +5 -0
- package/dist/search/SearchFilter/SearchFilterItem.d.cts +13 -0
- package/dist/search/SearchFilter/SearchFilterItem.d.ts +13 -0
- package/dist/search/SearchFilter/SearchFilterItem.js +5 -0
- package/dist/search/SearchInput/SearchInput.cjs +6 -0
- package/dist/search/SearchInput/SearchInput.d.cts +20 -0
- package/dist/search/SearchInput/SearchInput.d.ts +20 -0
- package/dist/search/SearchInput/SearchInput.js +6 -0
- package/dist/search/SearchInputAutocomplete/SearchAutocomplete.cjs +3 -0
- package/dist/search/SearchInputAutocomplete/SearchAutocomplete.d.cts +13 -0
- package/dist/search/SearchInputAutocomplete/SearchAutocomplete.d.ts +13 -0
- package/dist/search/SearchInputAutocomplete/SearchAutocomplete.js +3 -0
- package/dist/search/SearchInputForm/SearchInputForm.cjs +38 -0
- package/dist/search/SearchInputForm/SearchInputForm.d.cts +32 -0
- package/dist/search/SearchInputForm/SearchInputForm.d.ts +32 -0
- package/dist/search/SearchInputForm/SearchInputForm.js +36 -0
- package/dist/search/SearchResultsFilterSidebar/SearchResultsFilter.cjs +52 -0
- package/dist/search/SearchResultsFilterSidebar/SearchResultsFilter.d.cts +28 -0
- package/dist/search/SearchResultsFilterSidebar/SearchResultsFilter.d.ts +28 -0
- package/dist/search/SearchResultsFilterSidebar/SearchResultsFilter.js +49 -0
- package/dist/search/SearchResultsStates/NoSearchResultsFound.cjs +30 -0
- package/dist/search/SearchResultsStates/NoSearchResultsFound.d.cts +17 -0
- package/dist/search/SearchResultsStates/NoSearchResultsFound.d.ts +17 -0
- package/dist/search/SearchResultsStates/NoSearchResultsFound.js +26 -0
- package/dist/search/SearchResultsStates/SearchResultsGrid.cjs +66 -0
- package/dist/search/SearchResultsStates/SearchResultsGrid.d.cts +41 -0
- package/dist/search/SearchResultsStates/SearchResultsGrid.d.ts +41 -0
- package/dist/search/SearchResultsStates/SearchResultsGrid.js +62 -0
- package/dist/search/SearchResultsStates/SearchResultsLoadingGrid.cjs +52 -0
- package/dist/search/SearchResultsStates/SearchResultsLoadingGrid.d.cts +15 -0
- package/dist/search/SearchResultsStates/SearchResultsLoadingGrid.d.ts +15 -0
- package/dist/search/SearchResultsStates/SearchResultsLoadingGrid.js +49 -0
- package/dist/searchFilterSidebarVariants-GfFbQzGf.cjs +39 -0
- package/dist/searchFilterSidebarVariants-lJVVZT_2.js +34 -0
- package/dist/textVariantClasses-5t3OricK.js +101 -0
- package/dist/textVariantClasses-Bhf4VY5z.cjs +125 -0
- package/dist/types-53zIialA.d.ts +35 -0
- package/dist/types-B4BGZSlV.d.cts +4 -0
- package/dist/types-BQNqA5xL.d.ts +46 -0
- package/dist/types-BRLWwGMI.d.ts +4 -0
- package/dist/types-CImLkcNh.d.cts +46 -0
- package/dist/types-Cph97xkm.d.ts +6 -0
- package/dist/types-CpiJO5UH.d.ts +4 -0
- package/dist/types-DFetqNL2.d.ts +8 -0
- package/dist/types-DaSkJnT_.d.cts +8 -0
- package/dist/types-Dy4_w6Cf.d.cts +4 -0
- package/dist/types-TYhhwWZw.d.cts +6 -0
- package/dist/types-aa4flfRE.d.cts +35 -0
- package/package.json +8 -8
- package/src/components/common/ButtonBase/ButtonBase.tsx +2 -2
- package/src/components/common/ButtonBase/types.ts +2 -3
- package/dist/src/atoms/search/types.d.ts +0 -5
- package/dist/src/atoms/search/types.js +0 -1
- package/dist/src/components/common/ButtonBase/ButtonBase.d.ts +0 -2
- package/dist/src/components/common/ButtonBase/ButtonBase.js +0 -41
- package/dist/src/components/common/ButtonBase/types.d.ts +0 -24
- package/dist/src/components/common/ButtonBase/types.js +0 -6
- package/dist/src/components/common/Headline/Headline.d.ts +0 -10
- package/dist/src/components/common/Headline/Headline.js +0 -34
- package/dist/src/components/common/ImageWithFallback/ImageWithFallback.d.ts +0 -12
- package/dist/src/components/common/ImageWithFallback/ImageWithFallback.js +0 -26
- package/dist/src/components/common/ProductCard/ProductCard.d.ts +0 -39
- package/dist/src/components/common/ProductCard/ProductCard.js +0 -84
- package/dist/src/components/common/ProductCard/ProductCardSkeleton.d.ts +0 -9
- package/dist/src/components/common/ProductCard/ProductCardSkeleton.js +0 -15
- package/dist/src/components/common/ProductCard/productCardVariants.d.ts +0 -8
- package/dist/src/components/common/ProductCard/productCardVariants.js +0 -50
- package/dist/src/components/common/ProductCard/types.d.ts +0 -39
- package/dist/src/components/common/ProductCard/types.js +0 -10
- package/dist/src/components/common/ProductGrid/ProductGrid.d.ts +0 -14
- package/dist/src/components/common/ProductGrid/ProductGrid.js +0 -13
- package/dist/src/components/common/ProductGrid/productGridVariants.d.ts +0 -10
- package/dist/src/components/common/ProductGrid/productGridVariants.js +0 -16
- package/dist/src/components/common/SparkleAnimation/SparkleAnimation.d.ts +0 -7
- package/dist/src/components/common/SparkleAnimation/SparkleAnimation.js +0 -40
- package/dist/src/components/common/SparkleAnimation/types.d.ts +0 -6
- package/dist/src/components/common/SparkleAnimation/types.js +0 -7
- package/dist/src/components/common/Spinner/Spinner.d.ts +0 -5
- package/dist/src/components/common/Spinner/Spinner.js +0 -16
- package/dist/src/components/common/SuggestionButton/SuggestionButton.d.ts +0 -18
- package/dist/src/components/common/SuggestionButton/SuggestionButton.js +0 -210
- package/dist/src/components/common/SuggestionButton/types.d.ts +0 -1
- package/dist/src/components/common/SuggestionButton/types.js +0 -1
- package/dist/src/components/common/Text/Text.d.ts +0 -12
- package/dist/src/components/common/Text/Text.js +0 -26
- package/dist/src/components/common/Text/textVariantClasses.d.ts +0 -171
- package/dist/src/components/common/Text/textVariantClasses.js +0 -103
- package/dist/src/components/common/Text/types.d.ts +0 -16
- package/dist/src/components/common/Text/types.js +0 -6
- package/dist/src/components/common/TextInput/TextInput.d.ts +0 -8
- package/dist/src/components/common/TextInput/TextInput.js +0 -25
- package/dist/src/components/models/colorsConfig.d.ts +0 -26
- package/dist/src/components/models/colorsConfig.js +0 -23
- package/dist/src/components/search/FilterScrollbar/AppliedFiltersScrollbar.d.ts +0 -11
- package/dist/src/components/search/FilterScrollbar/AppliedFiltersScrollbar.js +0 -18
- package/dist/src/components/search/FilterScrollbar/DynamicFiltersScrollbar.d.ts +0 -15
- package/dist/src/components/search/FilterScrollbar/DynamicFiltersScrollbar.js +0 -15
- package/dist/src/components/search/SearchFilter/SearchFilter.d.ts +0 -2
- package/dist/src/components/search/SearchFilter/SearchFilter.js +0 -24
- package/dist/src/components/search/SearchFilter/SearchFilterHeader.d.ts +0 -2
- package/dist/src/components/search/SearchFilter/SearchFilterHeader.js +0 -9
- package/dist/src/components/search/SearchFilter/SearchFilterItem.d.ts +0 -2
- package/dist/src/components/search/SearchFilter/SearchFilterItem.js +0 -13
- package/dist/src/components/search/SearchFilter/types.d.ts +0 -42
- package/dist/src/components/search/SearchFilter/types.js +0 -1
- package/dist/src/components/search/SearchInput/SearchInput.d.ts +0 -16
- package/dist/src/components/search/SearchInput/SearchInput.js +0 -38
- package/dist/src/components/search/SearchInput/searchInputVariants.d.ts +0 -13
- package/dist/src/components/search/SearchInput/searchInputVariants.js +0 -12
- package/dist/src/components/search/SearchInputAutocomplete/SearchAutocomplete.d.ts +0 -10
- package/dist/src/components/search/SearchInputAutocomplete/SearchAutocomplete.js +0 -14
- package/dist/src/components/search/SearchInputForm/SearchInputForm.d.ts +0 -16
- package/dist/src/components/search/SearchInputForm/SearchInputForm.js +0 -13
- package/dist/src/components/search/SearchInputForm/types.d.ts +0 -1
- package/dist/src/components/search/SearchInputForm/types.js +0 -1
- package/dist/src/components/search/SearchResultsFilterSidebar/SearchResultsFilter.d.ts +0 -14
- package/dist/src/components/search/SearchResultsFilterSidebar/SearchResultsFilter.js +0 -15
- package/dist/src/components/search/SearchResultsFilterSidebar/searchFilterSidebarVariants.d.ts +0 -16
- package/dist/src/components/search/SearchResultsFilterSidebar/searchFilterSidebarVariants.js +0 -29
- package/dist/src/components/search/SearchResultsFilterSidebar/types.d.ts +0 -2
- package/dist/src/components/search/SearchResultsFilterSidebar/types.js +0 -1
- package/dist/src/components/search/SearchResultsStates/NoSearchResultsFound.d.ts +0 -8
- package/dist/src/components/search/SearchResultsStates/NoSearchResultsFound.js +0 -10
- package/dist/src/components/search/SearchResultsStates/SearchResultsGrid.d.ts +0 -24
- package/dist/src/components/search/SearchResultsStates/SearchResultsGrid.js +0 -19
- package/dist/src/components/search/SearchResultsStates/SearchResultsLoadingGrid.d.ts +0 -6
- package/dist/src/components/search/SearchResultsStates/SearchResultsLoadingGrid.js +0 -10
- package/dist/src/components/search/types.d.ts +0 -5
- package/dist/src/components/search/types.js +0 -6
- package/dist/src/components/test/types.d.ts +0 -3
- package/dist/src/components/test/types.js +0 -1
- package/dist/src/config/chatElementDisplayLocation.d.ts +0 -21
- package/dist/src/config/chatElementDisplayLocation.js +0 -23
- package/dist/src/index.d.ts +0 -45
- package/dist/src/index.js +0 -49
- package/dist/src/logging/logger.d.ts +0 -7
- package/dist/src/logging/logger.js +0 -16
- package/dist/src/types/external.d.ts +0 -21
- package/dist/src/types/external.js +0 -5
- package/dist/src/util/camelCase.d.ts +0 -65
- package/dist/src/util/camelCase.js +0 -2
- package/dist/src/util/camelCasedPropertiesDeep.d.ts +0 -53
- package/dist/src/util/camelCasedPropertiesDeep.js +0 -1
- package/dist/src/util/formatPrice.d.ts +0 -1
- package/dist/src/util/formatPrice.js +0 -11
- package/dist/src/util/internal.d.ts +0 -27
- package/dist/src/util/internal.js +0 -4
- package/dist/src/util/primitive.d.ts +0 -6
- package/dist/src/util/primitive.js +0 -2
- package/dist/src/util/splitWords.d.ts +0 -55
- package/dist/src/util/splitWords.js +0 -2
- package/dist/src/util/trim.d.ts +0 -24
- package/dist/src/util/trim.js +0 -2
- package/dist/src/util/unknownArray.d.ts +0 -25
- package/dist/src/util/unknownArray.js +0 -1
- package/src/index.ts +0 -59
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/search/SearchResultsStates/NoSearchResultsFound.d.ts
|
|
4
|
+
interface NoSearchResultsFoundProps {
|
|
5
|
+
containerPaddingClasses: string;
|
|
6
|
+
includeBottomMargin?: boolean;
|
|
7
|
+
noResultsFoundText?: string;
|
|
8
|
+
sparkleIconColor?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const NoSearchResultsFound: ({
|
|
11
|
+
containerPaddingClasses,
|
|
12
|
+
includeBottomMargin,
|
|
13
|
+
noResultsFoundText,
|
|
14
|
+
sparkleIconColor
|
|
15
|
+
}: NoSearchResultsFoundProps) => react_jsx_runtime16.JSX.Element;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { NoSearchResultsFound };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/search/SearchResultsStates/NoSearchResultsFound.d.ts
|
|
4
|
+
interface NoSearchResultsFoundProps {
|
|
5
|
+
containerPaddingClasses: string;
|
|
6
|
+
includeBottomMargin?: boolean;
|
|
7
|
+
noResultsFoundText?: string;
|
|
8
|
+
sparkleIconColor?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const NoSearchResultsFound: ({
|
|
11
|
+
containerPaddingClasses,
|
|
12
|
+
includeBottomMargin,
|
|
13
|
+
noResultsFoundText,
|
|
14
|
+
sparkleIconColor
|
|
15
|
+
}: NoSearchResultsFoundProps) => react_jsx_runtime11.JSX.Element;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { NoSearchResultsFound };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import "../../textVariantClasses-5t3OricK.js";
|
|
2
|
+
import { Text } from "../../Text-Bdv7F5-u.js";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import Sparkles from "@envive-ai/react-icons/src/Sparkles";
|
|
6
|
+
|
|
7
|
+
//#region src/components/search/SearchResultsStates/NoSearchResultsFound.tsx
|
|
8
|
+
const NoSearchResultsFound = ({ containerPaddingClasses, includeBottomMargin = false, noResultsFoundText, sparkleIconColor = "var(--spiffy-colors-accent-primary)" }) => {
|
|
9
|
+
const containerClasses = classNames(containerPaddingClasses, includeBottomMargin ? "spiffy-tw-mb-[100vh]" : "", "spiffy-tw-mt-6");
|
|
10
|
+
return /* @__PURE__ */ jsx("div", {
|
|
11
|
+
className: containerClasses,
|
|
12
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
13
|
+
className: "spiffy-tw-flex spiffy-tw-items-start spiffy-tw-gap-2",
|
|
14
|
+
children: [/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Sparkles, {
|
|
15
|
+
className: "spiffy-tw-w-[24px] spiffy-tw-h-[24px]",
|
|
16
|
+
style: { color: sparkleIconColor }
|
|
17
|
+
}) }), /* @__PURE__ */ jsx(Text, {
|
|
18
|
+
variant: "body2",
|
|
19
|
+
children: noResultsFoundText || "I’m sorry, I wasn’t able to find an exact match. Try changing your filters or adjusting your search query."
|
|
20
|
+
})]
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { NoSearchResultsFound };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
const require_chunk = require('../../chunk-CUT6urMc.cjs');
|
|
2
|
+
require('../../textVariantClasses-Bhf4VY5z.cjs');
|
|
3
|
+
require('../../Text-C04c4Z93.cjs');
|
|
4
|
+
require('../../Headline-L7w3BsBF.cjs');
|
|
5
|
+
require('../../ImageWithFallback-P3AjyL2Y.cjs');
|
|
6
|
+
require('../../productCardVariants-Dd-wrJKP.cjs');
|
|
7
|
+
require('../../ProductCard-CS6DZAwO.cjs');
|
|
8
|
+
require('../../Spinner-CfQ85Ajl.cjs');
|
|
9
|
+
require('../../productGridVariants-DVzvjK9i.cjs');
|
|
10
|
+
const require_ProductGrid = require('../../ProductGrid-B7QZfW-v.cjs');
|
|
11
|
+
const require_AppliedFiltersScrollbar = require('../../AppliedFiltersScrollbar-BlcyhZkZ.cjs');
|
|
12
|
+
const require_DynamicFiltersScrollbar = require('../../DynamicFiltersScrollbar-B2Rr1KnJ.cjs');
|
|
13
|
+
require('../../colorsConfig-TCONYTQ7.cjs');
|
|
14
|
+
const require_searchFilterSidebarVariants = require('../../searchFilterSidebarVariants-GfFbQzGf.cjs');
|
|
15
|
+
let classnames = require("classnames");
|
|
16
|
+
classnames = require_chunk.__toESM(classnames);
|
|
17
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
18
|
+
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
19
|
+
let framer_motion = require("framer-motion");
|
|
20
|
+
framer_motion = require_chunk.__toESM(framer_motion);
|
|
21
|
+
|
|
22
|
+
//#region src/components/search/SearchResultsStates/SearchResultsGrid.tsx
|
|
23
|
+
const SearchResultsGrid = ({ productList, availableDynamicFilters, searchFilterSidebarVariant, productGridVariant, selectedFilterOptions, searchResponseId, containerXPaddingClasses, productGridClasses, onRemoveFilter, onToggleDynamicFilter }) => {
|
|
24
|
+
const sharedFilterBarClasses = (0, classnames.default)("spiffy-suggestion-bar", "spiffy-tw-no-scrollbar", "spiffy-tw-flex", "spiffy-tw-flex-row", "spiffy-tw-gap-2", "spiffy-tw-mb-[16px]", "spiffy-tw-overflow-x-scroll", containerXPaddingClasses);
|
|
25
|
+
const filterBarClasses = (0, classnames.default)(sharedFilterBarClasses, "spiffy-tw-mt-[24px]");
|
|
26
|
+
const appliedFilterBarClasses = (0, classnames.default)(sharedFilterBarClasses, "spiffy-tw-mb-[32px]", "spiffy-tw-mt-[8px]");
|
|
27
|
+
const { filterDefaultClasses, filterHoverClasses, appliedFilterBackgroundClasses } = require_searchFilterSidebarVariants.searchFilterSidebarVariantClasses[searchFilterSidebarVariant];
|
|
28
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(framer_motion.motion.div, {
|
|
29
|
+
className: "spiffy-tw-justify-center spiffy-tw-w-full spiffy-tw-overflow-hidden",
|
|
30
|
+
initial: { opacity: 0 },
|
|
31
|
+
animate: { opacity: 1 },
|
|
32
|
+
exit: { opacity: 0 },
|
|
33
|
+
transition: { duration: .2 },
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_AppliedFiltersScrollbar.AppliedFiltersScrollbar, {
|
|
36
|
+
selectedFilterOptions,
|
|
37
|
+
filterBarClassNames: appliedFilterBarClasses,
|
|
38
|
+
filterDefaultClasses,
|
|
39
|
+
filterHoverClasses,
|
|
40
|
+
appliedFilterBackgroundClasses,
|
|
41
|
+
onRemoveFilter
|
|
42
|
+
}),
|
|
43
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_DynamicFiltersScrollbar.DynamicFiltersScrollbar, {
|
|
44
|
+
availableDynamicFilters,
|
|
45
|
+
filterBarClassNames: filterBarClasses,
|
|
46
|
+
filterDefaultClasses,
|
|
47
|
+
filterHoverClasses,
|
|
48
|
+
onToggleDynamicFilter
|
|
49
|
+
}),
|
|
50
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProductGrid.ProductGrid, {
|
|
51
|
+
productList,
|
|
52
|
+
productGridVariant,
|
|
53
|
+
productGridClasses,
|
|
54
|
+
searchResponseId,
|
|
55
|
+
merchantShortName: "",
|
|
56
|
+
handleClick: function(clickedUrl) {
|
|
57
|
+
console.log(clickedUrl);
|
|
58
|
+
throw new Error("Function not implemented.");
|
|
59
|
+
}
|
|
60
|
+
})
|
|
61
|
+
]
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
//#endregion
|
|
66
|
+
exports.SearchResultsGrid = SearchResultsGrid;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ProductGridVariant, SearchResponseProduct } from "../../types-aa4flfRE.cjs";
|
|
2
|
+
import { SelectedFilterOption } from "../../types-DaSkJnT_.cjs";
|
|
3
|
+
import { SearchFilterSidebarVariant } from "../../types-B4BGZSlV.cjs";
|
|
4
|
+
import * as react_jsx_runtime18 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/search/SearchResultsStates/SearchResultsGrid.d.ts
|
|
7
|
+
interface SearchResultsGridProps {
|
|
8
|
+
productList: SearchResponseProduct[];
|
|
9
|
+
availableDynamicFilters: {
|
|
10
|
+
name: string;
|
|
11
|
+
displayName: string;
|
|
12
|
+
}[];
|
|
13
|
+
searchFilterSidebarVariant: SearchFilterSidebarVariant;
|
|
14
|
+
productGridVariant: ProductGridVariant;
|
|
15
|
+
selectedFilterOptions: SelectedFilterOption[];
|
|
16
|
+
searchResponseId: string;
|
|
17
|
+
containerXPaddingClasses: string;
|
|
18
|
+
productGridClasses: string;
|
|
19
|
+
onRemoveFilter: (filter: SelectedFilterOption) => void;
|
|
20
|
+
onToggleDynamicFilter: ({
|
|
21
|
+
filter,
|
|
22
|
+
dynamicFilterDisplayName
|
|
23
|
+
}: {
|
|
24
|
+
filter: string;
|
|
25
|
+
dynamicFilterDisplayName: string;
|
|
26
|
+
}) => void;
|
|
27
|
+
}
|
|
28
|
+
declare const SearchResultsGrid: ({
|
|
29
|
+
productList,
|
|
30
|
+
availableDynamicFilters,
|
|
31
|
+
searchFilterSidebarVariant,
|
|
32
|
+
productGridVariant,
|
|
33
|
+
selectedFilterOptions,
|
|
34
|
+
searchResponseId,
|
|
35
|
+
containerXPaddingClasses,
|
|
36
|
+
productGridClasses,
|
|
37
|
+
onRemoveFilter,
|
|
38
|
+
onToggleDynamicFilter
|
|
39
|
+
}: SearchResultsGridProps) => react_jsx_runtime18.JSX.Element;
|
|
40
|
+
//#endregion
|
|
41
|
+
export { SearchResultsGrid };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ProductGridVariant, SearchResponseProduct } from "../../types-53zIialA.js";
|
|
2
|
+
import { SelectedFilterOption } from "../../types-DFetqNL2.js";
|
|
3
|
+
import { SearchFilterSidebarVariant } from "../../types-CpiJO5UH.js";
|
|
4
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/search/SearchResultsStates/SearchResultsGrid.d.ts
|
|
7
|
+
interface SearchResultsGridProps {
|
|
8
|
+
productList: SearchResponseProduct[];
|
|
9
|
+
availableDynamicFilters: {
|
|
10
|
+
name: string;
|
|
11
|
+
displayName: string;
|
|
12
|
+
}[];
|
|
13
|
+
searchFilterSidebarVariant: SearchFilterSidebarVariant;
|
|
14
|
+
productGridVariant: ProductGridVariant;
|
|
15
|
+
selectedFilterOptions: SelectedFilterOption[];
|
|
16
|
+
searchResponseId: string;
|
|
17
|
+
containerXPaddingClasses: string;
|
|
18
|
+
productGridClasses: string;
|
|
19
|
+
onRemoveFilter: (filter: SelectedFilterOption) => void;
|
|
20
|
+
onToggleDynamicFilter: ({
|
|
21
|
+
filter,
|
|
22
|
+
dynamicFilterDisplayName
|
|
23
|
+
}: {
|
|
24
|
+
filter: string;
|
|
25
|
+
dynamicFilterDisplayName: string;
|
|
26
|
+
}) => void;
|
|
27
|
+
}
|
|
28
|
+
declare const SearchResultsGrid: ({
|
|
29
|
+
productList,
|
|
30
|
+
availableDynamicFilters,
|
|
31
|
+
searchFilterSidebarVariant,
|
|
32
|
+
productGridVariant,
|
|
33
|
+
selectedFilterOptions,
|
|
34
|
+
searchResponseId,
|
|
35
|
+
containerXPaddingClasses,
|
|
36
|
+
productGridClasses,
|
|
37
|
+
onRemoveFilter,
|
|
38
|
+
onToggleDynamicFilter
|
|
39
|
+
}: SearchResultsGridProps) => react_jsx_runtime5.JSX.Element;
|
|
40
|
+
//#endregion
|
|
41
|
+
export { SearchResultsGrid };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import "../../textVariantClasses-5t3OricK.js";
|
|
2
|
+
import "../../Text-Bdv7F5-u.js";
|
|
3
|
+
import "../../Headline-ro_Nigw5.js";
|
|
4
|
+
import "../../ImageWithFallback-CfmkC58B.js";
|
|
5
|
+
import "../../productCardVariants-C_QIZ-KF.js";
|
|
6
|
+
import "../../ProductCard-Btg8tHGc.js";
|
|
7
|
+
import "../../Spinner-BZ-kTOpm.js";
|
|
8
|
+
import "../../productGridVariants-CxCKx5Fq.js";
|
|
9
|
+
import { ProductGrid } from "../../ProductGrid-DB_Uq5F-.js";
|
|
10
|
+
import { AppliedFiltersScrollbar } from "../../AppliedFiltersScrollbar-DFGzRemu.js";
|
|
11
|
+
import { DynamicFiltersScrollbar } from "../../DynamicFiltersScrollbar-Dys6geP0.js";
|
|
12
|
+
import "../../colorsConfig-l0ODUVhu.js";
|
|
13
|
+
import { searchFilterSidebarVariantClasses } from "../../searchFilterSidebarVariants-lJVVZT_2.js";
|
|
14
|
+
import classNames from "classnames";
|
|
15
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
import { motion } from "framer-motion";
|
|
17
|
+
|
|
18
|
+
//#region src/components/search/SearchResultsStates/SearchResultsGrid.tsx
|
|
19
|
+
const SearchResultsGrid = ({ productList, availableDynamicFilters, searchFilterSidebarVariant, productGridVariant, selectedFilterOptions, searchResponseId, containerXPaddingClasses, productGridClasses, onRemoveFilter, onToggleDynamicFilter }) => {
|
|
20
|
+
const sharedFilterBarClasses = classNames("spiffy-suggestion-bar", "spiffy-tw-no-scrollbar", "spiffy-tw-flex", "spiffy-tw-flex-row", "spiffy-tw-gap-2", "spiffy-tw-mb-[16px]", "spiffy-tw-overflow-x-scroll", containerXPaddingClasses);
|
|
21
|
+
const filterBarClasses = classNames(sharedFilterBarClasses, "spiffy-tw-mt-[24px]");
|
|
22
|
+
const appliedFilterBarClasses = classNames(sharedFilterBarClasses, "spiffy-tw-mb-[32px]", "spiffy-tw-mt-[8px]");
|
|
23
|
+
const { filterDefaultClasses, filterHoverClasses, appliedFilterBackgroundClasses } = searchFilterSidebarVariantClasses[searchFilterSidebarVariant];
|
|
24
|
+
return /* @__PURE__ */ jsxs(motion.div, {
|
|
25
|
+
className: "spiffy-tw-justify-center spiffy-tw-w-full spiffy-tw-overflow-hidden",
|
|
26
|
+
initial: { opacity: 0 },
|
|
27
|
+
animate: { opacity: 1 },
|
|
28
|
+
exit: { opacity: 0 },
|
|
29
|
+
transition: { duration: .2 },
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ jsx(AppliedFiltersScrollbar, {
|
|
32
|
+
selectedFilterOptions,
|
|
33
|
+
filterBarClassNames: appliedFilterBarClasses,
|
|
34
|
+
filterDefaultClasses,
|
|
35
|
+
filterHoverClasses,
|
|
36
|
+
appliedFilterBackgroundClasses,
|
|
37
|
+
onRemoveFilter
|
|
38
|
+
}),
|
|
39
|
+
/* @__PURE__ */ jsx(DynamicFiltersScrollbar, {
|
|
40
|
+
availableDynamicFilters,
|
|
41
|
+
filterBarClassNames: filterBarClasses,
|
|
42
|
+
filterDefaultClasses,
|
|
43
|
+
filterHoverClasses,
|
|
44
|
+
onToggleDynamicFilter
|
|
45
|
+
}),
|
|
46
|
+
/* @__PURE__ */ jsx(ProductGrid, {
|
|
47
|
+
productList,
|
|
48
|
+
productGridVariant,
|
|
49
|
+
productGridClasses,
|
|
50
|
+
searchResponseId,
|
|
51
|
+
merchantShortName: "",
|
|
52
|
+
handleClick: function(clickedUrl) {
|
|
53
|
+
console.log(clickedUrl);
|
|
54
|
+
throw new Error("Function not implemented.");
|
|
55
|
+
}
|
|
56
|
+
})
|
|
57
|
+
]
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
//#endregion
|
|
62
|
+
export { SearchResultsGrid };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
const require_chunk = require('../../chunk-CUT6urMc.cjs');
|
|
2
|
+
require('../../textVariantClasses-Bhf4VY5z.cjs');
|
|
3
|
+
const require_Text = require('../../Text-C04c4Z93.cjs');
|
|
4
|
+
require('../../productCardVariants-Dd-wrJKP.cjs');
|
|
5
|
+
const require_ProductCardSkeleton = require('../../ProductCardSkeleton-BgvDlaty.cjs');
|
|
6
|
+
const require_SparkleAnimation = require('../../SparkleAnimation-BpLwrEqM.cjs');
|
|
7
|
+
const require_productGridVariants = require('../../productGridVariants-DVzvjK9i.cjs');
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
+
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
10
|
+
let framer_motion = require("framer-motion");
|
|
11
|
+
framer_motion = require_chunk.__toESM(framer_motion);
|
|
12
|
+
|
|
13
|
+
//#region src/components/search/SearchResultsStates/SearchResultsLoadingGrid.tsx
|
|
14
|
+
const SearchResultsLoadingGrid = ({ productGridVariant, productGridClasses, sparkleIconColor = "var(--spiffy-colors-accent-primary)" }) => {
|
|
15
|
+
const { productCardLayoutVariant, productCardImageAspectRatio } = require_productGridVariants.productGridVariantClasses[productGridVariant];
|
|
16
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
17
|
+
className: "spiffy-tw-justify-center spiffy-tw-w-full spiffy-tw-overflow-hidden",
|
|
18
|
+
initial: { opacity: 0 },
|
|
19
|
+
animate: { opacity: 1 },
|
|
20
|
+
exit: { opacity: 0 },
|
|
21
|
+
transition: { duration: .2 },
|
|
22
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
23
|
+
className: "spiffy-tw-mt-6 spiffy-tw-w-full",
|
|
24
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
25
|
+
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-justify-between spiffy-tw-mb-4",
|
|
26
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
27
|
+
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-gap-2 spiffy-tw-ml-[16px] md:spiffy-tw-ml-[80px]",
|
|
28
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
29
|
+
className: "spiffy-tw-width-[24px]",
|
|
30
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SparkleAnimation.SparkleAnimation, {
|
|
31
|
+
color: sparkleIconColor,
|
|
32
|
+
animate: true
|
|
33
|
+
})
|
|
34
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
|
|
35
|
+
variant: "body2",
|
|
36
|
+
children: "Finding the best options for you..."
|
|
37
|
+
})]
|
|
38
|
+
})
|
|
39
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
40
|
+
className: productGridClasses,
|
|
41
|
+
children: Array.from({ length: 8 }).map((_, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProductCardSkeleton.ProductCardSkeleton, {
|
|
42
|
+
layoutVariant: productCardLayoutVariant,
|
|
43
|
+
aspectRatio: productCardImageAspectRatio,
|
|
44
|
+
growWithContainer: true
|
|
45
|
+
}, index))
|
|
46
|
+
})]
|
|
47
|
+
})
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
exports.SearchResultsLoadingGrid = SearchResultsLoadingGrid;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ProductGridVariant } from "../../types-aa4flfRE.cjs";
|
|
2
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/search/SearchResultsStates/SearchResultsLoadingGrid.d.ts
|
|
5
|
+
declare const SearchResultsLoadingGrid: ({
|
|
6
|
+
productGridVariant,
|
|
7
|
+
productGridClasses,
|
|
8
|
+
sparkleIconColor
|
|
9
|
+
}: {
|
|
10
|
+
productGridVariant: ProductGridVariant;
|
|
11
|
+
productGridClasses: string;
|
|
12
|
+
sparkleIconColor?: string;
|
|
13
|
+
}) => react_jsx_runtime19.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { SearchResultsLoadingGrid };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ProductGridVariant } from "../../types-53zIialA.js";
|
|
2
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/search/SearchResultsStates/SearchResultsLoadingGrid.d.ts
|
|
5
|
+
declare const SearchResultsLoadingGrid: ({
|
|
6
|
+
productGridVariant,
|
|
7
|
+
productGridClasses,
|
|
8
|
+
sparkleIconColor
|
|
9
|
+
}: {
|
|
10
|
+
productGridVariant: ProductGridVariant;
|
|
11
|
+
productGridClasses: string;
|
|
12
|
+
sparkleIconColor?: string;
|
|
13
|
+
}) => react_jsx_runtime10.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { SearchResultsLoadingGrid };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import "../../textVariantClasses-5t3OricK.js";
|
|
2
|
+
import { Text } from "../../Text-Bdv7F5-u.js";
|
|
3
|
+
import "../../productCardVariants-C_QIZ-KF.js";
|
|
4
|
+
import { ProductCardSkeleton } from "../../ProductCardSkeleton-BPfp6IOp.js";
|
|
5
|
+
import { SparkleAnimation } from "../../SparkleAnimation-CXs58sFd.js";
|
|
6
|
+
import { productGridVariantClasses } from "../../productGridVariants-CxCKx5Fq.js";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { motion } from "framer-motion";
|
|
9
|
+
|
|
10
|
+
//#region src/components/search/SearchResultsStates/SearchResultsLoadingGrid.tsx
|
|
11
|
+
const SearchResultsLoadingGrid = ({ productGridVariant, productGridClasses, sparkleIconColor = "var(--spiffy-colors-accent-primary)" }) => {
|
|
12
|
+
const { productCardLayoutVariant, productCardImageAspectRatio } = productGridVariantClasses[productGridVariant];
|
|
13
|
+
return /* @__PURE__ */ jsx(motion.div, {
|
|
14
|
+
className: "spiffy-tw-justify-center spiffy-tw-w-full spiffy-tw-overflow-hidden",
|
|
15
|
+
initial: { opacity: 0 },
|
|
16
|
+
animate: { opacity: 1 },
|
|
17
|
+
exit: { opacity: 0 },
|
|
18
|
+
transition: { duration: .2 },
|
|
19
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
20
|
+
className: "spiffy-tw-mt-6 spiffy-tw-w-full",
|
|
21
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
22
|
+
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-justify-between spiffy-tw-mb-4",
|
|
23
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
24
|
+
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-gap-2 spiffy-tw-ml-[16px] md:spiffy-tw-ml-[80px]",
|
|
25
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
26
|
+
className: "spiffy-tw-width-[24px]",
|
|
27
|
+
children: /* @__PURE__ */ jsx(SparkleAnimation, {
|
|
28
|
+
color: sparkleIconColor,
|
|
29
|
+
animate: true
|
|
30
|
+
})
|
|
31
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
32
|
+
variant: "body2",
|
|
33
|
+
children: "Finding the best options for you..."
|
|
34
|
+
})]
|
|
35
|
+
})
|
|
36
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
37
|
+
className: productGridClasses,
|
|
38
|
+
children: Array.from({ length: 8 }).map((_, index) => /* @__PURE__ */ jsx(ProductCardSkeleton, {
|
|
39
|
+
layoutVariant: productCardLayoutVariant,
|
|
40
|
+
aspectRatio: productCardImageAspectRatio,
|
|
41
|
+
growWithContainer: true
|
|
42
|
+
}, index))
|
|
43
|
+
})]
|
|
44
|
+
})
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
//#endregion
|
|
49
|
+
export { SearchResultsLoadingGrid };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const require_colorsConfig = require('./colorsConfig-TCONYTQ7.cjs');
|
|
2
|
+
|
|
3
|
+
//#region src/components/search/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts
|
|
4
|
+
const searchFilterSidebarVariantClasses = {
|
|
5
|
+
darkButton: {
|
|
6
|
+
radioButtonFillColor: require_colorsConfig.colorVar(require_colorsConfig.ColorNames.BackgroundDark),
|
|
7
|
+
radioButtonHoverColor: require_colorsConfig.colorVar(require_colorsConfig.ColorNames.BackgroundSecondaryDark),
|
|
8
|
+
radioButtonUncheckedBorderColor: require_colorsConfig.colorVar(require_colorsConfig.ColorNames.BorderMedium),
|
|
9
|
+
searchFilterHeaderClasses: "spiffy-tw-text-[--spiffy-colors-text-light]",
|
|
10
|
+
filterDefaultClasses: "spiffy-tw-border-[--spiffy-colors-border-medium] spiffy-tw-bg-[--spiffy-colors-background-light] spiffy-tw-text-[--spiffy-colors-text-secondary]",
|
|
11
|
+
filterHoverClasses: "hover:spiffy-tw-border-[--spiffy-colors-background-secondary-dark] hover:spiffy-tw-bg-[--spiffy-colors-background-secondary-dark] hover:spiffy-tw-text-[--spiffy-colors-text-primary]",
|
|
12
|
+
filterActiveClasses: "spiffy-tw-border-[--spiffy-colors-border-outline] spiffy-tw-bg-[--spiffy-colors-background-dark] spiffy-tw-text-[--spiffy-colors-text-light]",
|
|
13
|
+
appliedFilterBackgroundClasses: "spiffy-tw-bg-[--spiffy-colors-border-light]",
|
|
14
|
+
applyFiltersUnchangedClasses: "spiffy-tw-bg-[--spiffy-colors-border-light] spiffy-tw-text-[--spiffy-colors-text-secondary]",
|
|
15
|
+
applyFiltersChangedClasses: "spiffy-tw-bg-[--spiffy-colors-background-dark] spiffy-tw-text-[--spiffy-colors-text-light]",
|
|
16
|
+
filterCloseIconVariant: "light"
|
|
17
|
+
},
|
|
18
|
+
lightButton: {
|
|
19
|
+
radioButtonFillColor: require_colorsConfig.colorVar(require_colorsConfig.ColorNames.BackgroundDark),
|
|
20
|
+
radioButtonHoverColor: require_colorsConfig.colorVar(require_colorsConfig.ColorNames.BackgroundSecondaryDark),
|
|
21
|
+
radioButtonUncheckedBorderColor: require_colorsConfig.colorVar(require_colorsConfig.ColorNames.BorderMedium),
|
|
22
|
+
searchFilterHeaderClasses: "spiffy-tw-text-[--spiffy-colors-text-primary]",
|
|
23
|
+
filterDefaultClasses: "spiffy-tw-border-[--spiffy-colors-border-medium] spiffy-tw-bg-[--spiffy-colors-background-light] spiffy-tw-text-[--spiffy-colors-text-secondary]",
|
|
24
|
+
filterHoverClasses: "hover:spiffy-tw-border-[--spiffy-colors-background-secondary-dark] hover:spiffy-tw-bg-[--spiffy-colors-background-secondary-dark] hover:spiffy-tw-text-[--spiffy-colors-text-primary]",
|
|
25
|
+
filterActiveClasses: "spiffy-tw-border-[--spiffy-colors-border-outline] spiffy-tw-bg-[--spiffy-colors-background-dark] spiffy-tw-text-[--spiffy-colors-text-light]",
|
|
26
|
+
appliedFilterBackgroundClasses: "spiffy-tw-bg-[--spiffy-colors-border-light]",
|
|
27
|
+
applyFiltersUnchangedClasses: "spiffy-tw-bg-[--spiffy-colors-border-light] spiffy-tw-text-[--spiffy-colors-text-secondary]",
|
|
28
|
+
applyFiltersChangedClasses: "spiffy-tw-bg-[--spiffy-colors-background-primary] spiffy-tw-text-[--spiffy-colors-text-link]",
|
|
29
|
+
filterCloseIconVariant: "dark"
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
Object.defineProperty(exports, 'searchFilterSidebarVariantClasses', {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function () {
|
|
37
|
+
return searchFilterSidebarVariantClasses;
|
|
38
|
+
}
|
|
39
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ColorNames, colorVar } from "./colorsConfig-l0ODUVhu.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/search/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts
|
|
4
|
+
const searchFilterSidebarVariantClasses = {
|
|
5
|
+
darkButton: {
|
|
6
|
+
radioButtonFillColor: colorVar(ColorNames.BackgroundDark),
|
|
7
|
+
radioButtonHoverColor: colorVar(ColorNames.BackgroundSecondaryDark),
|
|
8
|
+
radioButtonUncheckedBorderColor: colorVar(ColorNames.BorderMedium),
|
|
9
|
+
searchFilterHeaderClasses: "spiffy-tw-text-[--spiffy-colors-text-light]",
|
|
10
|
+
filterDefaultClasses: "spiffy-tw-border-[--spiffy-colors-border-medium] spiffy-tw-bg-[--spiffy-colors-background-light] spiffy-tw-text-[--spiffy-colors-text-secondary]",
|
|
11
|
+
filterHoverClasses: "hover:spiffy-tw-border-[--spiffy-colors-background-secondary-dark] hover:spiffy-tw-bg-[--spiffy-colors-background-secondary-dark] hover:spiffy-tw-text-[--spiffy-colors-text-primary]",
|
|
12
|
+
filterActiveClasses: "spiffy-tw-border-[--spiffy-colors-border-outline] spiffy-tw-bg-[--spiffy-colors-background-dark] spiffy-tw-text-[--spiffy-colors-text-light]",
|
|
13
|
+
appliedFilterBackgroundClasses: "spiffy-tw-bg-[--spiffy-colors-border-light]",
|
|
14
|
+
applyFiltersUnchangedClasses: "spiffy-tw-bg-[--spiffy-colors-border-light] spiffy-tw-text-[--spiffy-colors-text-secondary]",
|
|
15
|
+
applyFiltersChangedClasses: "spiffy-tw-bg-[--spiffy-colors-background-dark] spiffy-tw-text-[--spiffy-colors-text-light]",
|
|
16
|
+
filterCloseIconVariant: "light"
|
|
17
|
+
},
|
|
18
|
+
lightButton: {
|
|
19
|
+
radioButtonFillColor: colorVar(ColorNames.BackgroundDark),
|
|
20
|
+
radioButtonHoverColor: colorVar(ColorNames.BackgroundSecondaryDark),
|
|
21
|
+
radioButtonUncheckedBorderColor: colorVar(ColorNames.BorderMedium),
|
|
22
|
+
searchFilterHeaderClasses: "spiffy-tw-text-[--spiffy-colors-text-primary]",
|
|
23
|
+
filterDefaultClasses: "spiffy-tw-border-[--spiffy-colors-border-medium] spiffy-tw-bg-[--spiffy-colors-background-light] spiffy-tw-text-[--spiffy-colors-text-secondary]",
|
|
24
|
+
filterHoverClasses: "hover:spiffy-tw-border-[--spiffy-colors-background-secondary-dark] hover:spiffy-tw-bg-[--spiffy-colors-background-secondary-dark] hover:spiffy-tw-text-[--spiffy-colors-text-primary]",
|
|
25
|
+
filterActiveClasses: "spiffy-tw-border-[--spiffy-colors-border-outline] spiffy-tw-bg-[--spiffy-colors-background-dark] spiffy-tw-text-[--spiffy-colors-text-light]",
|
|
26
|
+
appliedFilterBackgroundClasses: "spiffy-tw-bg-[--spiffy-colors-border-light]",
|
|
27
|
+
applyFiltersUnchangedClasses: "spiffy-tw-bg-[--spiffy-colors-border-light] spiffy-tw-text-[--spiffy-colors-text-secondary]",
|
|
28
|
+
applyFiltersChangedClasses: "spiffy-tw-bg-[--spiffy-colors-background-primary] spiffy-tw-text-[--spiffy-colors-text-link]",
|
|
29
|
+
filterCloseIconVariant: "dark"
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
export { searchFilterSidebarVariantClasses };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
//#region src/components/common/Text/textVariantClasses.ts
|
|
2
|
+
const HeadlineVariantMap = {
|
|
3
|
+
t1: {
|
|
4
|
+
"spiffy-headline": true,
|
|
5
|
+
"spiffy-headline-1": true,
|
|
6
|
+
"spiffy-tw-text-[32px]": true,
|
|
7
|
+
"spiffy-tw-font-medium": true,
|
|
8
|
+
"spiffy-tw-leading-[124%]": true
|
|
9
|
+
},
|
|
10
|
+
t2: {
|
|
11
|
+
"spiffy-headline": true,
|
|
12
|
+
"spiffy-headline-1": true,
|
|
13
|
+
"spiffy-tw-text-[16px]": true,
|
|
14
|
+
"spiffy-tw-font-medium": true,
|
|
15
|
+
"spiffy-tw-leading-[124%]": true
|
|
16
|
+
},
|
|
17
|
+
t3: {
|
|
18
|
+
"spiffy-headline": true,
|
|
19
|
+
"spiffy-headline-1": true,
|
|
20
|
+
"spiffy-tw-text-[24px]": true,
|
|
21
|
+
"spiffy-tw-leading-[120%]": true
|
|
22
|
+
},
|
|
23
|
+
h1: {
|
|
24
|
+
"spiffy-headline": true,
|
|
25
|
+
"spiffy-headline-1": true,
|
|
26
|
+
"spiffy-tw-text-[20px]": true,
|
|
27
|
+
"spiffy-tw-font-normal": true,
|
|
28
|
+
"spiffy-tw-leading-[120%]": true
|
|
29
|
+
},
|
|
30
|
+
h2: {
|
|
31
|
+
"spiffy-headline": true,
|
|
32
|
+
"spiffy-headline-2": true,
|
|
33
|
+
"spiffy-tw-text-[16px]": true,
|
|
34
|
+
"spiffy-tw-font-normal": true,
|
|
35
|
+
"spiffy-tw-leading-[124%]": true
|
|
36
|
+
},
|
|
37
|
+
h3: {
|
|
38
|
+
"spiffy-headline": true,
|
|
39
|
+
"spiffy-headline-3": true,
|
|
40
|
+
"spiffy-tw-text-[15px]": true,
|
|
41
|
+
"spiffy-tw-font-medium": true,
|
|
42
|
+
"spiffy-tw-leading-[124%]": true
|
|
43
|
+
},
|
|
44
|
+
h4: {
|
|
45
|
+
"spiffy-headline": true,
|
|
46
|
+
"spiffy-headline-4": true,
|
|
47
|
+
"spiffy-tw-text-[14px]": true,
|
|
48
|
+
"spiffy-tw-font-medium": true,
|
|
49
|
+
"spiffy-tw-leading-[124%]": true
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const TextVariantMap = {
|
|
53
|
+
body1: {
|
|
54
|
+
"spiffy-body-text": true,
|
|
55
|
+
"spiffy-body-1": true,
|
|
56
|
+
"spiffy-tw-text-[20px]": true,
|
|
57
|
+
"spiffy-tw-font-normal": true,
|
|
58
|
+
"spiffy-tw-line-height-[120%]": true
|
|
59
|
+
},
|
|
60
|
+
body2: {
|
|
61
|
+
"spiffy-body-text": true,
|
|
62
|
+
"spiffy-body-2": true,
|
|
63
|
+
"spiffy-tw-text-[16px]": true,
|
|
64
|
+
"spiffy-tw-font-normal": true,
|
|
65
|
+
"spiffy-tw-line-height-[148%]": true
|
|
66
|
+
},
|
|
67
|
+
body3: {
|
|
68
|
+
"spiffy-body-text": true,
|
|
69
|
+
"spiffy-body-3": true,
|
|
70
|
+
"spiffy-tw-text-sm": true,
|
|
71
|
+
"spiffy-tw-font-normal": true,
|
|
72
|
+
"spiffy-tw-leading-[140%]": true
|
|
73
|
+
},
|
|
74
|
+
body4: {
|
|
75
|
+
"spiffy-body-text": true,
|
|
76
|
+
"spiffy-body-4": true,
|
|
77
|
+
"spiffy-tw-text-xs": true,
|
|
78
|
+
"spiffy-tw-font-medium": true,
|
|
79
|
+
"spiffy-tw-leading-[130%]": true
|
|
80
|
+
},
|
|
81
|
+
body5: {
|
|
82
|
+
"spiffy-body-text": true,
|
|
83
|
+
"spiffy-body-5": true,
|
|
84
|
+
"spiffy-tw-text-[10px]": true,
|
|
85
|
+
"spiffy-tw-font-normal": true
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
const TextStyleVariantMap = {
|
|
89
|
+
...TextVariantMap,
|
|
90
|
+
...HeadlineVariantMap
|
|
91
|
+
};
|
|
92
|
+
const getVariantPlaceholderClassNames = (classes) => {
|
|
93
|
+
return Object.keys(classes).reduce((acc, key) => {
|
|
94
|
+
if (key.includes("spiffy-tw")) acc[`placeholder:${key}`] = classes[key];
|
|
95
|
+
else acc[`${key}-placeholder`] = classes[key];
|
|
96
|
+
return acc;
|
|
97
|
+
}, {});
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
//#endregion
|
|
101
|
+
export { HeadlineVariantMap, TextStyleVariantMap, TextVariantMap, getVariantPlaceholderClassNames };
|