@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,85 @@
|
|
|
1
|
+
import classNames from "classnames";
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { motion } from "framer-motion";
|
|
5
|
+
import FourPointStar from "@envive-ai/react-icons/src/FourPointStar";
|
|
6
|
+
|
|
7
|
+
//#region src/components/common/SparkleAnimation/types.ts
|
|
8
|
+
let SparkleAnimationOverride = /* @__PURE__ */ function(SparkleAnimationOverride$1) {
|
|
9
|
+
SparkleAnimationOverride$1["CONTAINER"] = "spiffy-sparkle-animation-container";
|
|
10
|
+
SparkleAnimationOverride$1["STAR_ONE_CONTAINER"] = "spiffy-sparkle-animation-star-one-container";
|
|
11
|
+
SparkleAnimationOverride$1["STAR_TWO_CONTAINER"] = "spiffy-sparkle-animation-star-two-container";
|
|
12
|
+
SparkleAnimationOverride$1["STAR_THREE_CONTAINER"] = "spiffy-sparkle-animation-star-three-container";
|
|
13
|
+
return SparkleAnimationOverride$1;
|
|
14
|
+
}({});
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/components/common/SparkleAnimation/SparkleAnimation.tsx
|
|
18
|
+
const ANIMATION_CYCLE_TIME = 1e3;
|
|
19
|
+
const STAR_DELAY_OFFSET = 250;
|
|
20
|
+
const SparkleAnimation = ({ color, className, animate = true }) => {
|
|
21
|
+
const [mainStarScale, setMainStarScale] = useState(animate ? 0 : 1);
|
|
22
|
+
const [smallStar1Scale, setSmallStar1Scale] = useState(animate ? 0 : 1);
|
|
23
|
+
const [smallStar2Scale, setSmallStar2Scale] = useState(animate ? 0 : 1);
|
|
24
|
+
const containerClasses = classNames(SparkleAnimationOverride.CONTAINER, "spiffy-tw-w-6 spiffy-tw-h-6 spiffy-tw-relative", className);
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
if (!animate) {
|
|
27
|
+
setMainStarScale(1);
|
|
28
|
+
setSmallStar1Scale(1);
|
|
29
|
+
setSmallStar2Scale(1);
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
}, [animate]);
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
if (!animate) return;
|
|
35
|
+
const newScale = mainStarScale === 1 ? 0 : 1;
|
|
36
|
+
setTimeout(() => setMainStarScale(newScale), ANIMATION_CYCLE_TIME);
|
|
37
|
+
setTimeout(() => setSmallStar1Scale(newScale), ANIMATION_CYCLE_TIME + STAR_DELAY_OFFSET);
|
|
38
|
+
setTimeout(() => setSmallStar2Scale(newScale), ANIMATION_CYCLE_TIME + 2 * STAR_DELAY_OFFSET);
|
|
39
|
+
}, [mainStarScale, animate]);
|
|
40
|
+
const starTransition = {
|
|
41
|
+
duration: .3,
|
|
42
|
+
ease: "easeOut"
|
|
43
|
+
};
|
|
44
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
45
|
+
className: containerClasses,
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ jsx("div", {
|
|
48
|
+
className: classNames(SparkleAnimationOverride.STAR_ONE_CONTAINER, "spiffy-tw-absolute -spiffy-tw-top-[2px] spiffy-tw-left-0"),
|
|
49
|
+
children: /* @__PURE__ */ jsx(motion.div, {
|
|
50
|
+
animate: { scale: mainStarScale },
|
|
51
|
+
transition: starTransition,
|
|
52
|
+
children: /* @__PURE__ */ jsx(FourPointStar, {
|
|
53
|
+
fill: color,
|
|
54
|
+
className: "spiffy-tw-w-4 spiffy-tw-h-4 spiffy-tw-inline-block"
|
|
55
|
+
})
|
|
56
|
+
})
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ jsx("div", {
|
|
59
|
+
className: classNames(SparkleAnimationOverride.STAR_TWO_CONTAINER, "spiffy-tw-absolute -spiffy-tw-top-[7px] spiffy-tw-left-[10px]"),
|
|
60
|
+
children: /* @__PURE__ */ jsx(motion.div, {
|
|
61
|
+
animate: { scale: smallStar1Scale },
|
|
62
|
+
transition: starTransition,
|
|
63
|
+
children: /* @__PURE__ */ jsx(FourPointStar, {
|
|
64
|
+
fill: color,
|
|
65
|
+
className: "spiffy-tw-w-2 spiffy-tw-h-2 spiffy-tw-inline-block"
|
|
66
|
+
})
|
|
67
|
+
})
|
|
68
|
+
}),
|
|
69
|
+
/* @__PURE__ */ jsx("div", {
|
|
70
|
+
className: classNames(SparkleAnimationOverride.STAR_THREE_CONTAINER, "spiffy-tw-absolute spiffy-tw-top-[1px] spiffy-tw-left-[12px]"),
|
|
71
|
+
children: /* @__PURE__ */ jsx(motion.div, {
|
|
72
|
+
animate: { scale: smallStar2Scale },
|
|
73
|
+
transition: starTransition,
|
|
74
|
+
children: /* @__PURE__ */ jsx(FourPointStar, {
|
|
75
|
+
fill: color,
|
|
76
|
+
className: "spiffy-tw-w-2 spiffy-tw-h-2 spiffy-tw-inline-block"
|
|
77
|
+
})
|
|
78
|
+
})
|
|
79
|
+
})
|
|
80
|
+
]
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
//#endregion
|
|
85
|
+
export { SparkleAnimation };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import classNames from "classnames";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/common/Spinner/Spinner.tsx
|
|
5
|
+
const Spinner = ({ className }) => {
|
|
6
|
+
const svgClassnames = classNames({
|
|
7
|
+
"spiffy-tw-w-4": true,
|
|
8
|
+
"spiffy-tw-h-4": true,
|
|
9
|
+
"spiffy-tw-text-gray-200": true,
|
|
10
|
+
"spiffy-tw-animate-spin": true,
|
|
11
|
+
"spiffy-tw-dark:text-gray-600": true,
|
|
12
|
+
"spiffy-tw-fill-black": true
|
|
13
|
+
}, className);
|
|
14
|
+
const spanClassnames = classNames({ "spiffy-tw-sr-only": true });
|
|
15
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
16
|
+
role: "status",
|
|
17
|
+
children: [/* @__PURE__ */ jsxs("svg", {
|
|
18
|
+
"aria-hidden": "true",
|
|
19
|
+
className: svgClassnames,
|
|
20
|
+
viewBox: "0 0 100 101",
|
|
21
|
+
fill: "none",
|
|
22
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
+
children: [/* @__PURE__ */ jsx("path", {
|
|
24
|
+
d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",
|
|
25
|
+
fill: "currentColor"
|
|
26
|
+
}), /* @__PURE__ */ jsx("path", {
|
|
27
|
+
d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",
|
|
28
|
+
fill: "currentFill"
|
|
29
|
+
})]
|
|
30
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
31
|
+
className: spanClassnames,
|
|
32
|
+
children: "Loading..."
|
|
33
|
+
})]
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
export { Spinner };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
let classnames = require("classnames");
|
|
3
|
+
classnames = require_chunk.__toESM(classnames);
|
|
4
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
+
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
6
|
+
|
|
7
|
+
//#region src/components/common/Spinner/Spinner.tsx
|
|
8
|
+
const Spinner = ({ className }) => {
|
|
9
|
+
const svgClassnames = (0, classnames.default)({
|
|
10
|
+
"spiffy-tw-w-4": true,
|
|
11
|
+
"spiffy-tw-h-4": true,
|
|
12
|
+
"spiffy-tw-text-gray-200": true,
|
|
13
|
+
"spiffy-tw-animate-spin": true,
|
|
14
|
+
"spiffy-tw-dark:text-gray-600": true,
|
|
15
|
+
"spiffy-tw-fill-black": true
|
|
16
|
+
}, className);
|
|
17
|
+
const spanClassnames = (0, classnames.default)({ "spiffy-tw-sr-only": true });
|
|
18
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
19
|
+
role: "status",
|
|
20
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
21
|
+
"aria-hidden": "true",
|
|
22
|
+
className: svgClassnames,
|
|
23
|
+
viewBox: "0 0 100 101",
|
|
24
|
+
fill: "none",
|
|
25
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
26
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
27
|
+
d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",
|
|
28
|
+
fill: "currentColor"
|
|
29
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
30
|
+
d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",
|
|
31
|
+
fill: "currentFill"
|
|
32
|
+
})]
|
|
33
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
34
|
+
className: spanClassnames,
|
|
35
|
+
children: "Loading..."
|
|
36
|
+
})]
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
Object.defineProperty(exports, 'Spinner', {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function () {
|
|
44
|
+
return Spinner;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { TextVariantMap } from "./textVariantClasses-5t3OricK.js";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/common/Text/Text.tsx
|
|
6
|
+
const Text = ({ children, className, style, noOfLines, testId, type = "span", variant = "body3" }) => {
|
|
7
|
+
const variantClassNames = variant ? TextVariantMap[variant] : {};
|
|
8
|
+
const textClassNames = classNames(className, variantClassNames, {
|
|
9
|
+
"spiffy-tw-font-[\"Inter Variable,sans-serif\"]": true,
|
|
10
|
+
"spiffy-tw-line-clamp-1": noOfLines === 1,
|
|
11
|
+
"spiffy-tw-line-clamp-2": noOfLines === 2,
|
|
12
|
+
"spiffy-tw-line-clamp-3": noOfLines === 3,
|
|
13
|
+
"spiffy-tw-line-clamp-4": noOfLines === 4,
|
|
14
|
+
"spiffy-tw-line-clamp-5": noOfLines === 5,
|
|
15
|
+
"spiffy-tw-line-clamp-6": noOfLines === 6,
|
|
16
|
+
"spiffy-tw-line-clamp-7": noOfLines === 7
|
|
17
|
+
});
|
|
18
|
+
switch (type) {
|
|
19
|
+
case "p": return /* @__PURE__ */ jsx("p", {
|
|
20
|
+
"data-testid": testId,
|
|
21
|
+
className: textClassNames,
|
|
22
|
+
style,
|
|
23
|
+
children
|
|
24
|
+
});
|
|
25
|
+
case "span": return /* @__PURE__ */ jsx("span", {
|
|
26
|
+
"data-testid": testId,
|
|
27
|
+
className: textClassNames,
|
|
28
|
+
style,
|
|
29
|
+
children
|
|
30
|
+
});
|
|
31
|
+
case "sub": return /* @__PURE__ */ jsx("sub", {
|
|
32
|
+
"data-testid": testId,
|
|
33
|
+
className: textClassNames,
|
|
34
|
+
style,
|
|
35
|
+
children
|
|
36
|
+
});
|
|
37
|
+
default: throw new Error(`Invalid text type: ${type}`);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
export { Text };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
const require_textVariantClasses = require('./textVariantClasses-Bhf4VY5z.cjs');
|
|
3
|
+
let classnames = require("classnames");
|
|
4
|
+
classnames = require_chunk.__toESM(classnames);
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
+
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
7
|
+
|
|
8
|
+
//#region src/components/common/Text/Text.tsx
|
|
9
|
+
const Text = ({ children, className, style, noOfLines, testId, type = "span", variant = "body3" }) => {
|
|
10
|
+
const variantClassNames = variant ? require_textVariantClasses.TextVariantMap[variant] : {};
|
|
11
|
+
const textClassNames = (0, classnames.default)(className, variantClassNames, {
|
|
12
|
+
"spiffy-tw-font-[\"Inter Variable,sans-serif\"]": true,
|
|
13
|
+
"spiffy-tw-line-clamp-1": noOfLines === 1,
|
|
14
|
+
"spiffy-tw-line-clamp-2": noOfLines === 2,
|
|
15
|
+
"spiffy-tw-line-clamp-3": noOfLines === 3,
|
|
16
|
+
"spiffy-tw-line-clamp-4": noOfLines === 4,
|
|
17
|
+
"spiffy-tw-line-clamp-5": noOfLines === 5,
|
|
18
|
+
"spiffy-tw-line-clamp-6": noOfLines === 6,
|
|
19
|
+
"spiffy-tw-line-clamp-7": noOfLines === 7
|
|
20
|
+
});
|
|
21
|
+
switch (type) {
|
|
22
|
+
case "p": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
23
|
+
"data-testid": testId,
|
|
24
|
+
className: textClassNames,
|
|
25
|
+
style,
|
|
26
|
+
children
|
|
27
|
+
});
|
|
28
|
+
case "span": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
29
|
+
"data-testid": testId,
|
|
30
|
+
className: textClassNames,
|
|
31
|
+
style,
|
|
32
|
+
children
|
|
33
|
+
});
|
|
34
|
+
case "sub": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("sub", {
|
|
35
|
+
"data-testid": testId,
|
|
36
|
+
className: textClassNames,
|
|
37
|
+
style,
|
|
38
|
+
children
|
|
39
|
+
});
|
|
40
|
+
default: throw new Error(`Invalid text type: ${type}`);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
Object.defineProperty(exports, 'Text', {
|
|
46
|
+
enumerable: true,
|
|
47
|
+
get: function () {
|
|
48
|
+
return Text;
|
|
49
|
+
}
|
|
50
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
const require_textVariantClasses = require('./textVariantClasses-Bhf4VY5z.cjs');
|
|
3
|
+
let classnames = require("classnames");
|
|
4
|
+
classnames = require_chunk.__toESM(classnames);
|
|
5
|
+
let react = require("react");
|
|
6
|
+
react = require_chunk.__toESM(react);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
9
|
+
|
|
10
|
+
//#region src/components/common/TextInput/TextInput.tsx
|
|
11
|
+
const TextInput = react.default.forwardRef(({ className, borderRadius, borderColorClass, placeholderVariant,...rest }, ref) => {
|
|
12
|
+
const variantClassNames = placeholderVariant ? require_textVariantClasses.TextStyleVariantMap[placeholderVariant] : {};
|
|
13
|
+
const placeholderVariantClassNames = require_textVariantClasses.getVariantPlaceholderClassNames(variantClassNames);
|
|
14
|
+
const inputClasses = (0, classnames.default)([
|
|
15
|
+
{
|
|
16
|
+
"spiffy-text-input": true,
|
|
17
|
+
"spiffy-tw-outline-none": true,
|
|
18
|
+
"spiffy-tw-rounded-[64px]": borderRadius === "xl",
|
|
19
|
+
"spiffy-tw-rounded-[20px]": borderRadius === "lg",
|
|
20
|
+
"spiffy-tw-rounded-[8px]": borderRadius === "md",
|
|
21
|
+
"spiffy-tw-rounded-[0px]": borderRadius === "sm",
|
|
22
|
+
...placeholderVariantClassNames
|
|
23
|
+
},
|
|
24
|
+
borderColorClass,
|
|
25
|
+
className
|
|
26
|
+
]);
|
|
27
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
28
|
+
ref,
|
|
29
|
+
...rest,
|
|
30
|
+
className: inputClasses
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
Object.defineProperty(exports, 'TextInput', {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () {
|
|
38
|
+
return TextInput;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { TextStyleVariantMap, getVariantPlaceholderClassNames } from "./textVariantClasses-5t3OricK.js";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/common/TextInput/TextInput.tsx
|
|
7
|
+
const TextInput = React.forwardRef(({ className, borderRadius, borderColorClass, placeholderVariant,...rest }, ref) => {
|
|
8
|
+
const variantClassNames = placeholderVariant ? TextStyleVariantMap[placeholderVariant] : {};
|
|
9
|
+
const placeholderVariantClassNames = getVariantPlaceholderClassNames(variantClassNames);
|
|
10
|
+
const inputClasses = classNames([
|
|
11
|
+
{
|
|
12
|
+
"spiffy-text-input": true,
|
|
13
|
+
"spiffy-tw-outline-none": true,
|
|
14
|
+
"spiffy-tw-rounded-[64px]": borderRadius === "xl",
|
|
15
|
+
"spiffy-tw-rounded-[20px]": borderRadius === "lg",
|
|
16
|
+
"spiffy-tw-rounded-[8px]": borderRadius === "md",
|
|
17
|
+
"spiffy-tw-rounded-[0px]": borderRadius === "sm",
|
|
18
|
+
...placeholderVariantClassNames
|
|
19
|
+
},
|
|
20
|
+
borderColorClass,
|
|
21
|
+
className
|
|
22
|
+
]);
|
|
23
|
+
return /* @__PURE__ */ jsx("input", {
|
|
24
|
+
ref,
|
|
25
|
+
...rest,
|
|
26
|
+
className: inputClasses
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
export { TextInput };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//#region rolldown:runtime
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
+
key = keys[i];
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
+
get: ((k) => from[k]).bind(null, key),
|
|
13
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
+
value: mod,
|
|
20
|
+
enumerable: true
|
|
21
|
+
}) : target, mod));
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
|
|
25
|
+
Object.defineProperty(exports, '__toESM', {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return __toESM;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/components/models/colorsConfig.ts
|
|
3
|
+
var ColorNames = /* @__PURE__ */ function(ColorNames$1) {
|
|
4
|
+
ColorNames$1["TextPrimary"] = "text-primary";
|
|
5
|
+
ColorNames$1["TextSecondary"] = "text-secondary";
|
|
6
|
+
ColorNames$1["TextAccent"] = "text-accent";
|
|
7
|
+
ColorNames$1["TextLink"] = "text-link";
|
|
8
|
+
ColorNames$1["TextLight"] = "text-light";
|
|
9
|
+
ColorNames$1["BackgroundPrimary"] = "background-primary";
|
|
10
|
+
ColorNames$1["BackgroundSecondary"] = "background-secondary";
|
|
11
|
+
ColorNames$1["BackgroundSecondaryDark"] = "background-secondary-dark";
|
|
12
|
+
ColorNames$1["BackgroundTertiary"] = "background-tertiary";
|
|
13
|
+
ColorNames$1["BackgroundDark"] = "background-dark";
|
|
14
|
+
ColorNames$1["BackgroundLight"] = "background-light";
|
|
15
|
+
ColorNames$1["BackgroundSaturated"] = "background-saturated";
|
|
16
|
+
ColorNames$1["BorderLight"] = "border-light";
|
|
17
|
+
ColorNames$1["BorderMedium"] = "border-medium";
|
|
18
|
+
ColorNames$1["BorderDark"] = "border-dark";
|
|
19
|
+
ColorNames$1["BorderOutline"] = "border-outline";
|
|
20
|
+
ColorNames$1["AccentPrimary"] = "accent-primary";
|
|
21
|
+
ColorNames$1["AccentSecondary"] = "accent-secondary";
|
|
22
|
+
return ColorNames$1;
|
|
23
|
+
}(ColorNames || {});
|
|
24
|
+
const colorVar = (color) => `var(--spiffy-colors-${color})`;
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
Object.defineProperty(exports, 'ColorNames', {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () {
|
|
30
|
+
return ColorNames;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(exports, 'colorVar', {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () {
|
|
36
|
+
return colorVar;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region src/components/models/colorsConfig.ts
|
|
2
|
+
var ColorNames = /* @__PURE__ */ function(ColorNames$1) {
|
|
3
|
+
ColorNames$1["TextPrimary"] = "text-primary";
|
|
4
|
+
ColorNames$1["TextSecondary"] = "text-secondary";
|
|
5
|
+
ColorNames$1["TextAccent"] = "text-accent";
|
|
6
|
+
ColorNames$1["TextLink"] = "text-link";
|
|
7
|
+
ColorNames$1["TextLight"] = "text-light";
|
|
8
|
+
ColorNames$1["BackgroundPrimary"] = "background-primary";
|
|
9
|
+
ColorNames$1["BackgroundSecondary"] = "background-secondary";
|
|
10
|
+
ColorNames$1["BackgroundSecondaryDark"] = "background-secondary-dark";
|
|
11
|
+
ColorNames$1["BackgroundTertiary"] = "background-tertiary";
|
|
12
|
+
ColorNames$1["BackgroundDark"] = "background-dark";
|
|
13
|
+
ColorNames$1["BackgroundLight"] = "background-light";
|
|
14
|
+
ColorNames$1["BackgroundSaturated"] = "background-saturated";
|
|
15
|
+
ColorNames$1["BorderLight"] = "border-light";
|
|
16
|
+
ColorNames$1["BorderMedium"] = "border-medium";
|
|
17
|
+
ColorNames$1["BorderDark"] = "border-dark";
|
|
18
|
+
ColorNames$1["BorderOutline"] = "border-outline";
|
|
19
|
+
ColorNames$1["AccentPrimary"] = "accent-primary";
|
|
20
|
+
ColorNames$1["AccentSecondary"] = "accent-secondary";
|
|
21
|
+
return ColorNames$1;
|
|
22
|
+
}(ColorNames || {});
|
|
23
|
+
const colorVar = (color) => `var(--spiffy-colors-${color})`;
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { ColorNames, colorVar };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { TestProps } from "../../types-TYhhwWZw.cjs";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import { ButtonHTMLAttributes } from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/common/ButtonBase/types.d.ts
|
|
6
|
+
|
|
7
|
+
interface ButtonBaseProps extends TestProps {
|
|
8
|
+
type?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
|
|
9
|
+
isDisabled?: boolean;
|
|
10
|
+
dataAttributes?: Record<string, string>;
|
|
11
|
+
buttonClass?: string;
|
|
12
|
+
text: string;
|
|
13
|
+
textClass?: string;
|
|
14
|
+
icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
15
|
+
iconClass?: string;
|
|
16
|
+
onClick?: () => void;
|
|
17
|
+
disablePadding?: boolean;
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/components/common/ButtonBase/ButtonBase.d.ts
|
|
21
|
+
declare const ButtonBase: ({
|
|
22
|
+
type,
|
|
23
|
+
isDisabled,
|
|
24
|
+
dataAttributes,
|
|
25
|
+
buttonClass,
|
|
26
|
+
text,
|
|
27
|
+
textClass,
|
|
28
|
+
icon,
|
|
29
|
+
iconClass,
|
|
30
|
+
dataTestId,
|
|
31
|
+
onClick,
|
|
32
|
+
disablePadding
|
|
33
|
+
}: ButtonBaseProps) => react_jsx_runtime0.JSX.Element;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { ButtonBase };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { TestProps } from "../../types-Cph97xkm.js";
|
|
2
|
+
import { ButtonHTMLAttributes } from "react";
|
|
3
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/common/ButtonBase/types.d.ts
|
|
6
|
+
|
|
7
|
+
interface ButtonBaseProps extends TestProps {
|
|
8
|
+
type?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
|
|
9
|
+
isDisabled?: boolean;
|
|
10
|
+
dataAttributes?: Record<string, string>;
|
|
11
|
+
buttonClass?: string;
|
|
12
|
+
text: string;
|
|
13
|
+
textClass?: string;
|
|
14
|
+
icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
15
|
+
iconClass?: string;
|
|
16
|
+
onClick?: () => void;
|
|
17
|
+
disablePadding?: boolean;
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/components/common/ButtonBase/ButtonBase.d.ts
|
|
21
|
+
declare const ButtonBase: ({
|
|
22
|
+
type,
|
|
23
|
+
isDisabled,
|
|
24
|
+
dataAttributes,
|
|
25
|
+
buttonClass,
|
|
26
|
+
text,
|
|
27
|
+
textClass,
|
|
28
|
+
icon,
|
|
29
|
+
iconClass,
|
|
30
|
+
dataTestId,
|
|
31
|
+
onClick,
|
|
32
|
+
disablePadding
|
|
33
|
+
}: ButtonBaseProps) => react_jsx_runtime6.JSX.Element;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { ButtonBase };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/common/Headline/Headline.d.ts
|
|
4
|
+
type HeadlineVariant = 't1' | 't2' | 't3' | 'h1' | 'h2' | 'h3' | 'h4';
|
|
5
|
+
type HeadlineProps = {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
variant?: HeadlineVariant;
|
|
10
|
+
testId?: string;
|
|
11
|
+
id?: string;
|
|
12
|
+
};
|
|
13
|
+
declare const Headline: ({
|
|
14
|
+
children,
|
|
15
|
+
className,
|
|
16
|
+
style,
|
|
17
|
+
testId,
|
|
18
|
+
variant
|
|
19
|
+
}: HeadlineProps) => react_jsx_runtime1.JSX.Element;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Headline, HeadlineProps, HeadlineVariant };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/common/Headline/Headline.d.ts
|
|
4
|
+
type HeadlineVariant = 't1' | 't2' | 't3' | 'h1' | 'h2' | 'h3' | 'h4';
|
|
5
|
+
type HeadlineProps = {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
variant?: HeadlineVariant;
|
|
10
|
+
testId?: string;
|
|
11
|
+
id?: string;
|
|
12
|
+
};
|
|
13
|
+
declare const Headline: ({
|
|
14
|
+
children,
|
|
15
|
+
className,
|
|
16
|
+
style,
|
|
17
|
+
testId,
|
|
18
|
+
variant
|
|
19
|
+
}: HeadlineProps) => react_jsx_runtime4.JSX.Element;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Headline, HeadlineProps, HeadlineVariant };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/common/ImageWithFallback/ImageWithFallback.d.ts
|
|
5
|
+
interface ImageWithFallbackProps {
|
|
6
|
+
src: string | undefined;
|
|
7
|
+
alt: string;
|
|
8
|
+
fallbackClassnames?: string;
|
|
9
|
+
fallback: React.ReactNode;
|
|
10
|
+
dataTestId?: string;
|
|
11
|
+
imageClassnames: string;
|
|
12
|
+
onLoad?: () => void;
|
|
13
|
+
onError?: () => void;
|
|
14
|
+
}
|
|
15
|
+
declare const ImageWithFallback: ({
|
|
16
|
+
src,
|
|
17
|
+
alt,
|
|
18
|
+
dataTestId,
|
|
19
|
+
fallbackClassnames,
|
|
20
|
+
fallback,
|
|
21
|
+
imageClassnames,
|
|
22
|
+
onLoad,
|
|
23
|
+
onError
|
|
24
|
+
}: ImageWithFallbackProps) => react_jsx_runtime0.JSX.Element;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { ImageWithFallback, ImageWithFallbackProps };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/common/ImageWithFallback/ImageWithFallback.d.ts
|
|
5
|
+
interface ImageWithFallbackProps {
|
|
6
|
+
src: string | undefined;
|
|
7
|
+
alt: string;
|
|
8
|
+
fallbackClassnames?: string;
|
|
9
|
+
fallback: React.ReactNode;
|
|
10
|
+
dataTestId?: string;
|
|
11
|
+
imageClassnames: string;
|
|
12
|
+
onLoad?: () => void;
|
|
13
|
+
onError?: () => void;
|
|
14
|
+
}
|
|
15
|
+
declare const ImageWithFallback: ({
|
|
16
|
+
src,
|
|
17
|
+
alt,
|
|
18
|
+
dataTestId,
|
|
19
|
+
fallbackClassnames,
|
|
20
|
+
fallback,
|
|
21
|
+
imageClassnames,
|
|
22
|
+
onLoad,
|
|
23
|
+
onError
|
|
24
|
+
}: ImageWithFallbackProps) => react_jsx_runtime8.JSX.Element;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { ImageWithFallback, ImageWithFallbackProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
require('../../textVariantClasses-Bhf4VY5z.cjs');
|
|
2
|
+
require('../../Text-C04c4Z93.cjs');
|
|
3
|
+
require('../../Headline-L7w3BsBF.cjs');
|
|
4
|
+
require('../../ImageWithFallback-P3AjyL2Y.cjs');
|
|
5
|
+
require('../../productCardVariants-Dd-wrJKP.cjs');
|
|
6
|
+
const require_ProductCard = require('../../ProductCard-CS6DZAwO.cjs');
|
|
7
|
+
require('../../Spinner-CfQ85Ajl.cjs');
|
|
8
|
+
|
|
9
|
+
exports.PriceSection = require_ProductCard.PriceSection;
|
|
10
|
+
exports.ProductCard = require_ProductCard.ProductCard;
|
|
11
|
+
exports.RatingSummary = require_ProductCard.RatingSummary;
|