@envive-ai/react-toolkit 0.1.9 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion/index.cjs +3 -82
- package/dist/Accordion/index.d.cts +2 -2
- package/dist/Accordion/index.d.ts +2 -2
- package/dist/Accordion/index.js +2 -75
- package/dist/Accordion-Cp3Hx2zm.js +77 -0
- package/dist/Accordion-DBZpiQe7.cjs +88 -0
- package/dist/AppliedFiltersScrollbar/index.d.ts +2 -2
- package/dist/ButtonBase/index.cjs +2 -2
- package/dist/ButtonBase/index.d.cts +2 -2
- package/dist/ButtonBase/index.d.ts +2 -2
- package/dist/ButtonBase/index.js +2 -2
- package/dist/DynamicFiltersScrollbar/index.d.cts +2 -2
- package/dist/DynamicFiltersScrollbar/index.d.ts +2 -2
- package/dist/FilterScrollbar/index.cjs +1 -1
- package/dist/FilterScrollbar/index.d.cts +3 -3
- package/dist/FilterScrollbar/index.d.ts +3 -3
- package/dist/FilterScrollbar/index.js +1 -1
- package/dist/Headline/index.cjs +1 -1
- package/dist/Headline/index.d.cts +2 -2
- package/dist/Headline/index.d.ts +2 -2
- package/dist/Headline/index.js +1 -1
- package/dist/ImageWithFallback/index.cjs +1 -1
- package/dist/ImageWithFallback/index.d.cts +2 -2
- package/dist/ImageWithFallback/index.d.ts +2 -2
- package/dist/ImageWithFallback/index.js +1 -1
- package/dist/ModalSheet/index.cjs +3 -0
- package/dist/ModalSheet/index.d.cts +38 -0
- package/dist/ModalSheet/index.d.ts +38 -0
- package/dist/ModalSheet/index.js +3 -0
- package/dist/ModalSheet-CXZgyZ4a.cjs +335 -0
- package/dist/ModalSheet-CZd5pssv.js +324 -0
- package/dist/ProductCard/index.cjs +4 -4
- package/dist/ProductCard/index.d.cts +1 -1
- package/dist/ProductCard/index.d.ts +1 -1
- package/dist/ProductCard/index.js +4 -4
- package/dist/{ProductCard-D44lhkxO.js → ProductCard-D-lyh8uV.js} +4 -4
- package/dist/{ProductCard-BcQBegyj.cjs → ProductCard-F49krjHk.cjs} +5 -5
- package/dist/ProductGrid/index.cjs +5 -5
- package/dist/ProductGrid/index.d.cts +3 -3
- package/dist/ProductGrid/index.d.ts +3 -3
- package/dist/ProductGrid/index.js +5 -5
- package/dist/{ProductGrid-ZXF7LBVG.js → ProductGrid-FIf5wFQx.js} +1 -1
- package/dist/{ProductGrid-50PmrwA4.cjs → ProductGrid-QeoaIfcq.cjs} +1 -1
- package/dist/RadioButton/index.cjs +6 -0
- package/dist/RadioButton/index.d.cts +30 -0
- package/dist/RadioButton/index.d.ts +30 -0
- package/dist/RadioButton/index.js +6 -0
- package/dist/RadioButton-Bf68dZl7.js +68 -0
- package/dist/RadioButton-DZ6QXkrN.cjs +77 -0
- package/dist/RadioButtonGroup/index.cjs +8 -0
- package/dist/RadioButtonGroup/index.d.cts +36 -0
- package/dist/RadioButtonGroup/index.d.ts +36 -0
- package/dist/RadioButtonGroup/index.js +7 -0
- package/dist/RadioButtonGroup-8k7hkJYB.js +37 -0
- package/dist/RadioButtonGroup-Dc_n5amh.cjs +51 -0
- package/dist/SearchAutocomplete/index.cjs +1 -1
- package/dist/SearchAutocomplete/index.js +1 -1
- package/dist/SearchFilter/index.cjs +9 -2
- package/dist/SearchFilter/index.d.cts +15 -9
- package/dist/SearchFilter/index.d.ts +15 -9
- package/dist/SearchFilter/index.js +9 -2
- package/dist/SearchFilter-BOwErEyI.js +258 -0
- package/dist/SearchFilter-BtLKnFMm.cjs +279 -0
- package/dist/SearchInput/index.cjs +3 -3
- package/dist/SearchInput/index.d.cts +1 -1
- package/dist/SearchInput/index.d.ts +2 -2
- package/dist/SearchInput/index.js +3 -3
- package/dist/{SearchInput-DxDC1mcq.js → SearchInput-BBaYEwkR.js} +2 -2
- package/dist/{SearchInput-BFlu_3iT.cjs → SearchInput-BTNvgrIa.cjs} +2 -2
- package/dist/SearchInputForm/index.cjs +4 -4
- package/dist/SearchInputForm/index.d.cts +1 -1
- package/dist/SearchInputForm/index.d.ts +1 -1
- package/dist/SearchInputForm/index.js +4 -4
- package/dist/SearchResultsContent/index.cjs +16 -30
- package/dist/SearchResultsContent/index.d.cts +6 -21
- package/dist/SearchResultsContent/index.d.ts +6 -21
- package/dist/SearchResultsContent/index.js +12 -25
- package/dist/SearchResultsFilterSidebar/index.cjs +15 -8
- package/dist/SearchResultsFilterSidebar/index.d.cts +1 -1
- package/dist/SearchResultsFilterSidebar/index.d.ts +1 -1
- package/dist/SearchResultsFilterSidebar/index.js +13 -6
- package/dist/SearchResultsStates/index.cjs +10 -10
- package/dist/SearchResultsStates/index.d.cts +6 -6
- package/dist/SearchResultsStates/index.d.ts +6 -6
- package/dist/SearchResultsStates/index.js +10 -10
- package/dist/{SearchResultsStates-T--7xKI7.js → SearchResultsStates-CB5k1xkK.js} +5 -5
- package/dist/{SearchResultsStates-B7a6B6-P.cjs → SearchResultsStates-DywK7vvp.cjs} +5 -5
- package/dist/SparkleAnimation/index.cjs +1 -1
- package/dist/SparkleAnimation/index.d.cts +2 -2
- package/dist/SparkleAnimation/index.d.ts +2 -2
- package/dist/SparkleAnimation/index.js +1 -1
- package/dist/Spinner/index.cjs +1 -1
- package/dist/Spinner/index.d.cts +2 -2
- package/dist/Spinner/index.d.ts +2 -2
- package/dist/Spinner/index.js +1 -1
- package/dist/Styles/index.cjs +274 -0
- package/dist/Styles/index.d.cts +258 -0
- package/dist/Styles/index.d.ts +258 -0
- package/dist/Styles/index.js +274 -0
- package/dist/SuggestionButton/index.cjs +1 -1
- package/dist/SuggestionButton/index.d.cts +2 -2
- package/dist/SuggestionButton/index.d.ts +2 -2
- package/dist/SuggestionButton/index.js +1 -1
- package/dist/Text/index.d.cts +2 -2
- package/dist/Text/index.d.ts +3 -3
- package/dist/TextInput/index.cjs +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/ToggleButton/index.cjs +6 -0
- package/dist/ToggleButton/index.d.cts +30 -0
- package/dist/ToggleButton/index.d.ts +30 -0
- package/dist/ToggleButton/index.js +6 -0
- package/dist/ToggleButton-BKRR_-69.js +60 -0
- package/dist/ToggleButton-D90UO4qv.cjs +68 -0
- package/dist/{index-vrOLXtJO.d.ts → index-1x_hMlEf.d.cts} +5 -5
- package/dist/{index-ozZ5JSZp.d.cts → index-CgjZdKpL.d.cts} +5 -5
- package/dist/{index-CC5ru80z.d.ts → index-Cl4d_pDw.d.ts} +5 -5
- package/dist/{index-Bl5T42aR.d.ts → index-H_9LhS_1.d.cts} +2 -2
- package/dist/{index-C5sr5-A0.d.cts → index-QMTPxKA9.d.ts} +5 -5
- package/dist/{index-BkxuyRJ6.d.cts → index-gfYBM7Ul.d.ts} +2 -2
- package/dist/{searchFilterSidebarVariants-B8nMp970.js → searchFilterSidebarVariants-CDFCHVeZ.js} +1 -1
- package/dist/{searchFilterSidebarVariants-BMZs5kyL.cjs → searchFilterSidebarVariants-CtmuwSBQ.cjs} +1 -1
- package/package.json +30 -4
- package/src/components/AnimatedChevron/AnimatedChevron.tsx +37 -0
- package/src/components/ModalSheet/ModalSheet.tsx +42 -0
- package/src/components/ModalSheet/common/closeIcon.tsx +40 -0
- package/src/components/ModalSheet/common/enviveWatermark.tsx +30 -0
- package/src/components/ModalSheet/desktop/desktopHeader.tsx +24 -0
- package/src/components/ModalSheet/desktop/index.tsx +118 -0
- package/src/components/ModalSheet/index.ts +1 -0
- package/src/components/ModalSheet/mobile/index.tsx +117 -0
- package/src/components/ModalSheet/mobile/mobileHeader.tsx +42 -0
- package/src/components/ModalSheet/types.ts +33 -0
- package/src/components/RadioButton/RadioButton.tsx +88 -0
- package/src/components/RadioButton/index.ts +1 -0
- package/src/components/RadioButtonGroup/RadioButtonGroup.tsx +72 -0
- package/src/components/RadioButtonGroup/index.ts +1 -0
- package/src/components/SearchFilter/SearchFilter.tsx +161 -64
- package/src/components/SearchFilter/SearchFilterFooter.tsx +55 -0
- package/src/components/SearchFilter/types.ts +2 -1
- package/src/components/SearchFilter/useHasFilterStateChanged.tsx +40 -0
- package/src/components/SearchFilter/utils.ts +15 -0
- package/src/components/SearchResultsContent/SearchResultsContent.tsx +1 -1
- package/src/components/SearchResultsContent/index.ts +0 -1
- package/src/components/SearchResultsFilterSidebar/SearchResultsFilter.tsx +2 -2
- package/src/components/Styles/EnviveTailwindPreset.ts +285 -0
- package/src/components/Styles/index.ts +2 -0
- package/src/components/ToggleButton/ToggleButton.tsx +98 -0
- package/src/components/ToggleButton/index.ts +1 -0
- package/tailwind-preset.js +3 -0
- package/dist/SearchFilter-B3vl3aWK.js +0 -117
- package/dist/SearchFilter-QV5AH7gk.cjs +0 -137
- package/src/components/SearchResultsContent/utils.ts +0 -28
- /package/dist/{ButtonBase-C_uKnl48.js → ButtonBase-0NN6wmX-.js} +0 -0
- /package/dist/{ButtonBase-DGbSm0SJ.js → ButtonBase-BAf-nlCm.js} +0 -0
- /package/dist/{ButtonBase-DbWQ25n-.cjs → ButtonBase-BIXx56hq.cjs} +0 -0
- /package/dist/{ButtonBase-DGpQBeLR.cjs → ButtonBase-Do88ndKa.cjs} +0 -0
- /package/dist/{DynamicFiltersScrollbar-D4d6pGke.js → DynamicFiltersScrollbar-C4kdNSJ9.js} +0 -0
- /package/dist/{DynamicFiltersScrollbar-DCElnZJa.cjs → DynamicFiltersScrollbar-CVw1PINp.cjs} +0 -0
- /package/dist/{Headline-BkOW1lQj.js → Headline-DNEWF8ly.js} +0 -0
- /package/dist/{Headline-QpruZlcg.cjs → Headline-DTT4RSv2.cjs} +0 -0
- /package/dist/{ImageWithFallback-1LqhQK1q.cjs → ImageWithFallback-Cx-KNi-D.cjs} +0 -0
- /package/dist/{ImageWithFallback-Ckwsmd8P.js → ImageWithFallback-DqxjwO3i.js} +0 -0
- /package/dist/{SearchAutocomplete-C4RY0IoT.js → SearchAutocomplete-C6omCGJp.js} +0 -0
- /package/dist/{SearchAutocomplete-hQDnKtwQ.cjs → SearchAutocomplete-Cofuvwwp.cjs} +0 -0
- /package/dist/{SparkleAnimation-DT3coYkB.js → SparkleAnimation-AM4XoegD.js} +0 -0
- /package/dist/{SparkleAnimation-2m4gwmrY.cjs → SparkleAnimation-Edzqyb48.cjs} +0 -0
- /package/dist/{Spinner-BqTt55uu.js → Spinner-CjGLIRgs.js} +0 -0
- /package/dist/{Spinner-DjK8ts9E.cjs → Spinner-DFor2Szi.cjs} +0 -0
- /package/dist/{TextInput-BFPXhSAY.js → TextInput-BVPdz7e8.js} +0 -0
- /package/dist/{TextInput-DLSgpP6b.cjs → TextInput-CnXhppYn.cjs} +0 -0
- /package/dist/{colorsConfig-BQlaCfxi.js → colorsConfig-5Yf4nrEe.js} +0 -0
- /package/dist/{colorsConfig-DCvy_dV4.cjs → colorsConfig-DFL3mBwB.cjs} +0 -0
- /package/dist/{textVariantClasses-ypYGLq0h.d.ts → textVariantClasses-kyZtL8F5.d.ts} +0 -0
package/dist/Spinner/index.js
CHANGED
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
+
const require_chunk = require('../chunk-CUT6urMc.cjs');
|
|
3
|
+
let __tailwindcss_typography = require("@tailwindcss/typography");
|
|
4
|
+
__tailwindcss_typography = require_chunk.__toESM(__tailwindcss_typography);
|
|
5
|
+
|
|
6
|
+
//#region src/components/Styles/EnviveTailwindPreset.ts
|
|
7
|
+
/**
|
|
8
|
+
* Helper function to create content paths for the Envive React Toolkit
|
|
9
|
+
* This should be used in the consuming application's tailwind.config.js
|
|
10
|
+
*
|
|
11
|
+
* @param additionalPaths - Additional content paths to include
|
|
12
|
+
* @returns Array of content paths including the toolkit components
|
|
13
|
+
*/
|
|
14
|
+
const createEnviveContentPaths = (additionalPaths = []) => {
|
|
15
|
+
let toolkitPath;
|
|
16
|
+
try {
|
|
17
|
+
if (typeof require !== "undefined" && typeof require.resolve === "function") {
|
|
18
|
+
const path = require("path");
|
|
19
|
+
toolkitPath = path.join(path.dirname(require.resolve("@envive-ai/react-toolkit/package.json")), "dist/**/*.{js,cjs}");
|
|
20
|
+
} else toolkitPath = "./node_modules/@envive-ai/react-toolkit/dist/**/*.{js,cjs}";
|
|
21
|
+
} catch {
|
|
22
|
+
toolkitPath = "./node_modules/@envive-ai/react-toolkit/dist/**/*.{js,cjs}";
|
|
23
|
+
}
|
|
24
|
+
return [toolkitPath, ...additionalPaths];
|
|
25
|
+
};
|
|
26
|
+
/** @type {import('tailwindcss').Config} */
|
|
27
|
+
const EnviveTailwindPreset = {
|
|
28
|
+
future: { hoverOnlyWhenSupported: true },
|
|
29
|
+
prefix: "spiffy-tw-",
|
|
30
|
+
theme: {
|
|
31
|
+
screens: {
|
|
32
|
+
sm: "480px",
|
|
33
|
+
md: "768px",
|
|
34
|
+
lg: "976px",
|
|
35
|
+
xl: "1440px"
|
|
36
|
+
},
|
|
37
|
+
fontFamily: { sans: [
|
|
38
|
+
"Inter Variable",
|
|
39
|
+
"Poppins",
|
|
40
|
+
"sans-serif"
|
|
41
|
+
] },
|
|
42
|
+
fontSize: {
|
|
43
|
+
xs: "12px",
|
|
44
|
+
sm: "14px",
|
|
45
|
+
md: "16px",
|
|
46
|
+
lg: "18px",
|
|
47
|
+
xl: "20px"
|
|
48
|
+
},
|
|
49
|
+
fontWeight: {
|
|
50
|
+
normal: 400,
|
|
51
|
+
medium: 500,
|
|
52
|
+
semibold: 600,
|
|
53
|
+
bold: 700
|
|
54
|
+
},
|
|
55
|
+
spacing: {
|
|
56
|
+
px: "1px",
|
|
57
|
+
.5: "2px",
|
|
58
|
+
1: "4px",
|
|
59
|
+
1.5: "6px",
|
|
60
|
+
2: "8px",
|
|
61
|
+
2.5: "10px",
|
|
62
|
+
3: "12px",
|
|
63
|
+
3.5: "14px",
|
|
64
|
+
4: "16px",
|
|
65
|
+
5: "20px",
|
|
66
|
+
6: "24px",
|
|
67
|
+
7: "28px",
|
|
68
|
+
8: "32px",
|
|
69
|
+
9: "36px",
|
|
70
|
+
10: "40px",
|
|
71
|
+
12: "48px",
|
|
72
|
+
14: "56px",
|
|
73
|
+
16: "64px",
|
|
74
|
+
20: "80px",
|
|
75
|
+
24: "96px",
|
|
76
|
+
28: "112px",
|
|
77
|
+
32: "128px",
|
|
78
|
+
36: "144px",
|
|
79
|
+
40: "160px",
|
|
80
|
+
44: "176px",
|
|
81
|
+
48: "192px",
|
|
82
|
+
52: "208px",
|
|
83
|
+
56: "224px",
|
|
84
|
+
60: "240px",
|
|
85
|
+
64: "256px",
|
|
86
|
+
72: "288px",
|
|
87
|
+
80: "320px",
|
|
88
|
+
96: "384px"
|
|
89
|
+
},
|
|
90
|
+
borderRadius: {
|
|
91
|
+
none: "0",
|
|
92
|
+
sm: "2px",
|
|
93
|
+
base: "4px",
|
|
94
|
+
md: "6px",
|
|
95
|
+
lg: "8px",
|
|
96
|
+
xl: "12px",
|
|
97
|
+
"2xl": "16px",
|
|
98
|
+
"3xl": "24px",
|
|
99
|
+
full: "9999px"
|
|
100
|
+
},
|
|
101
|
+
extend: {
|
|
102
|
+
keyframes: {
|
|
103
|
+
pulse: {
|
|
104
|
+
"0%": {
|
|
105
|
+
borderColor: "#EDF2F7",
|
|
106
|
+
background: "#EDF2F7"
|
|
107
|
+
},
|
|
108
|
+
"50%": {},
|
|
109
|
+
"100%": {
|
|
110
|
+
borderColor: "#A0AEC0",
|
|
111
|
+
background: "#A0AEC0"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
ellipse_162_1_flow_1: {
|
|
115
|
+
from: {
|
|
116
|
+
transform: "translate(0px, 0px) rotate(0deg)",
|
|
117
|
+
transformOrigin: "8.5px 9.5px",
|
|
118
|
+
cy: "9.5px"
|
|
119
|
+
},
|
|
120
|
+
to: {
|
|
121
|
+
transform: "translate(0px, 0px) rotate(0deg)",
|
|
122
|
+
transformOrigin: "8.5px 7.5px",
|
|
123
|
+
cy: "7.5px"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
ellipse_162_1_flow_2: {
|
|
127
|
+
from: {
|
|
128
|
+
transform: "translate(0px, 0px) rotate(0deg)",
|
|
129
|
+
transformOrigin: "8.5px 7.5px",
|
|
130
|
+
cy: "7.5px"
|
|
131
|
+
},
|
|
132
|
+
to: {
|
|
133
|
+
transform: "translate(0px, 0px) rotate(0deg)",
|
|
134
|
+
transformOrigin: "8.5px 9.5px",
|
|
135
|
+
cy: "9.5px"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
ellipse_162_1_flow_5: {
|
|
139
|
+
from: {
|
|
140
|
+
transform: "translate(0px, 0px) rotate(0deg)",
|
|
141
|
+
transformOrigin: "8.5px 9.5px",
|
|
142
|
+
cy: "9.5px"
|
|
143
|
+
},
|
|
144
|
+
to: {
|
|
145
|
+
transform: "translate(0px, 0px) rotate(0deg)",
|
|
146
|
+
transformOrigin: "8.5px 7.5px",
|
|
147
|
+
cy: "7.5px"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
ellipse_162_1_flow_6: {
|
|
151
|
+
from: {
|
|
152
|
+
transform: "translate(0px, 0px) rotate(0deg)",
|
|
153
|
+
transformOrigin: "8.5px 7.5px",
|
|
154
|
+
cy: "7.5px"
|
|
155
|
+
},
|
|
156
|
+
to: {
|
|
157
|
+
transform: "translate(0px, 0px) rotate(0deg)",
|
|
158
|
+
transformOrigin: "8.5px 9.5px",
|
|
159
|
+
cy: "9.5px"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
ellipse_163_2_flow_2: {
|
|
163
|
+
from: {
|
|
164
|
+
transform: "translate(0px, 0px) rotate(0deg)",
|
|
165
|
+
transformOrigin: "16.5px 9.5px",
|
|
166
|
+
cy: "9.5px"
|
|
167
|
+
},
|
|
168
|
+
to: {
|
|
169
|
+
transform: "translate(0px, 0px) rotate(0deg)",
|
|
170
|
+
transformOrigin: "16.5px 7.5px",
|
|
171
|
+
cy: "7.5px"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
ellipse_163_2_flow_3: {
|
|
175
|
+
from: {
|
|
176
|
+
transform: "translate(0px, 0px) rotate(0deg)",
|
|
177
|
+
transformOrigin: "16.5px 7.5px",
|
|
178
|
+
cy: "7.5px"
|
|
179
|
+
},
|
|
180
|
+
to: {
|
|
181
|
+
transform: "translate(0px, 0px) rotate(0deg)",
|
|
182
|
+
transformOrigin: "16.5px 9.5px",
|
|
183
|
+
cy: "9.5px"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
ellipse_163_2_flow_6: {
|
|
187
|
+
from: {
|
|
188
|
+
transform: "translate(0px, 0px) rotate(0deg)",
|
|
189
|
+
transformOrigin: "16.5px 9.5px",
|
|
190
|
+
cy: "9.5px"
|
|
191
|
+
},
|
|
192
|
+
to: {
|
|
193
|
+
transform: "translate(0px, 0px) rotate(0deg)",
|
|
194
|
+
transformOrigin: "16.5px 7.5px",
|
|
195
|
+
cy: "7.5px"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
ellipse_163_2_flow_7: {
|
|
199
|
+
from: {
|
|
200
|
+
transform: "translate(0px, 0px) rotate(0deg)",
|
|
201
|
+
transformOrigin: "16.5px 7.5px",
|
|
202
|
+
cy: "7.5px"
|
|
203
|
+
},
|
|
204
|
+
to: {
|
|
205
|
+
transform: "translate(0px, 0px) rotate(0deg)",
|
|
206
|
+
transformOrigin: "16.5px 9.5px",
|
|
207
|
+
cy: "9.5px"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
ellipse_164_3_flow_3: {
|
|
211
|
+
from: {
|
|
212
|
+
transform: "translate(0px, 0px) rotate(0deg)",
|
|
213
|
+
transformOrigin: "24.5px 9.5px",
|
|
214
|
+
cy: "9.5px"
|
|
215
|
+
},
|
|
216
|
+
to: {
|
|
217
|
+
transform: "translate(0px, 0px) rotate(0deg)",
|
|
218
|
+
transformOrigin: "24.5px 7.5px",
|
|
219
|
+
cy: "7.5px"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
ellipse_164_3_flow_4: {
|
|
223
|
+
from: {
|
|
224
|
+
transform: "translate(0px, 0px) rotate(0deg)",
|
|
225
|
+
transformOrigin: "24.5px 7.5px",
|
|
226
|
+
cy: "7.5px"
|
|
227
|
+
},
|
|
228
|
+
to: {
|
|
229
|
+
transform: "translate(0px, 0px) rotate(0deg)",
|
|
230
|
+
transformOrigin: "24.5px 9.5px",
|
|
231
|
+
cy: "9.5px"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
ellipse_164_3_flow_7: {
|
|
235
|
+
from: {
|
|
236
|
+
transform: "translate(0px, 0px) rotate(0deg)",
|
|
237
|
+
transformOrigin: "24.5px 9.5px",
|
|
238
|
+
cy: "9.5px"
|
|
239
|
+
},
|
|
240
|
+
to: {
|
|
241
|
+
transform: "translate(0px, 0px) rotate(0deg)",
|
|
242
|
+
transformOrigin: "24.5px 7.5px",
|
|
243
|
+
cy: "7.5px"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
ellipse_164_3_flow_8: {
|
|
247
|
+
from: {
|
|
248
|
+
transform: "translate(0px, 0px) rotate(0deg)",
|
|
249
|
+
transformOrigin: "24.5px 7.5px",
|
|
250
|
+
cy: "7.5px"
|
|
251
|
+
},
|
|
252
|
+
to: {
|
|
253
|
+
transform: "translate(0px, 0px) rotate(0deg)",
|
|
254
|
+
transformOrigin: "24.5px 9.5px",
|
|
255
|
+
cy: "9.5px"
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
animation: {
|
|
260
|
+
pulse: "pulse 0.8s linear infinite alternate",
|
|
261
|
+
"ellipse-1-complete": "ellipse_162_1_flow_1 0.3s ease-out 0s forwards, ellipse_162_1_flow_2 0.2s ease-out 0.3s forwards, ellipse_162_1_flow_5 0.2s ease-out 0.91s forwards, ellipse_162_1_flow_6 0.2s ease-out 1.11s forwards",
|
|
262
|
+
"ellipse-2-complete": "ellipse_163_2_flow_2 0.2s ease-out 0.3s forwards, ellipse_163_2_flow_3 0.2s ease-out 0.5s forwards, ellipse_163_2_flow_6 0.2s ease-out 1.11s forwards, ellipse_163_2_flow_7 0.2s ease-out 1.31s forwards",
|
|
263
|
+
"ellipse-3-complete": "ellipse_164_3_flow_3 0.2s ease-out 0.5s forwards, ellipse_164_3_flow_4 0.2s ease-out 0.7s forwards, ellipse_164_3_flow_7 0.2s ease-out 1.31s forwards, ellipse_164_3_flow_8 0.2s ease-out 1.51s forwards"
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
content: [createEnviveContentPaths(["./index.html", "./src/**/*.{js,ts,jsx,tsx}"])],
|
|
268
|
+
plugins: [__tailwindcss_typography.default]
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
//#endregion
|
|
272
|
+
exports.EnviveTailwindPreset = EnviveTailwindPreset;
|
|
273
|
+
exports.createEnviveContentPaths = createEnviveContentPaths;
|
|
274
|
+
exports.default = EnviveTailwindPreset;
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import typography from "@tailwindcss/typography";
|
|
2
|
+
|
|
3
|
+
//#region src/components/Styles/EnviveTailwindPreset.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Helper function to create content paths for the Envive React Toolkit
|
|
7
|
+
* This should be used in the consuming application's tailwind.config.js
|
|
8
|
+
*
|
|
9
|
+
* @param additionalPaths - Additional content paths to include
|
|
10
|
+
* @returns Array of content paths including the toolkit components
|
|
11
|
+
*/
|
|
12
|
+
declare const createEnviveContentPaths: (additionalPaths?: string[]) => string[];
|
|
13
|
+
/** @type {import('tailwindcss').Config} */
|
|
14
|
+
declare const EnviveTailwindPreset: {
|
|
15
|
+
future: {
|
|
16
|
+
hoverOnlyWhenSupported: boolean;
|
|
17
|
+
};
|
|
18
|
+
prefix: string;
|
|
19
|
+
theme: {
|
|
20
|
+
screens: {
|
|
21
|
+
sm: string;
|
|
22
|
+
md: string;
|
|
23
|
+
lg: string;
|
|
24
|
+
xl: string;
|
|
25
|
+
};
|
|
26
|
+
fontFamily: {
|
|
27
|
+
sans: string[];
|
|
28
|
+
};
|
|
29
|
+
fontSize: {
|
|
30
|
+
xs: string;
|
|
31
|
+
sm: string;
|
|
32
|
+
md: string;
|
|
33
|
+
lg: string;
|
|
34
|
+
xl: string;
|
|
35
|
+
};
|
|
36
|
+
fontWeight: {
|
|
37
|
+
normal: number;
|
|
38
|
+
medium: number;
|
|
39
|
+
semibold: number;
|
|
40
|
+
bold: number;
|
|
41
|
+
};
|
|
42
|
+
spacing: {
|
|
43
|
+
px: string;
|
|
44
|
+
0.5: string;
|
|
45
|
+
1: string;
|
|
46
|
+
1.5: string;
|
|
47
|
+
2: string;
|
|
48
|
+
2.5: string;
|
|
49
|
+
3: string;
|
|
50
|
+
3.5: string;
|
|
51
|
+
4: string;
|
|
52
|
+
5: string;
|
|
53
|
+
6: string;
|
|
54
|
+
7: string;
|
|
55
|
+
8: string;
|
|
56
|
+
9: string;
|
|
57
|
+
10: string;
|
|
58
|
+
12: string;
|
|
59
|
+
14: string;
|
|
60
|
+
16: string;
|
|
61
|
+
20: string;
|
|
62
|
+
24: string;
|
|
63
|
+
28: string;
|
|
64
|
+
32: string;
|
|
65
|
+
36: string;
|
|
66
|
+
40: string;
|
|
67
|
+
44: string;
|
|
68
|
+
48: string;
|
|
69
|
+
52: string;
|
|
70
|
+
56: string;
|
|
71
|
+
60: string;
|
|
72
|
+
64: string;
|
|
73
|
+
72: string;
|
|
74
|
+
80: string;
|
|
75
|
+
96: string;
|
|
76
|
+
};
|
|
77
|
+
borderRadius: {
|
|
78
|
+
none: string;
|
|
79
|
+
sm: string;
|
|
80
|
+
base: string;
|
|
81
|
+
md: string;
|
|
82
|
+
lg: string;
|
|
83
|
+
xl: string;
|
|
84
|
+
'2xl': string;
|
|
85
|
+
'3xl': string;
|
|
86
|
+
full: string;
|
|
87
|
+
};
|
|
88
|
+
extend: {
|
|
89
|
+
keyframes: {
|
|
90
|
+
pulse: {
|
|
91
|
+
'0%': {
|
|
92
|
+
borderColor: string;
|
|
93
|
+
background: string;
|
|
94
|
+
};
|
|
95
|
+
'50%': {};
|
|
96
|
+
'100%': {
|
|
97
|
+
borderColor: string;
|
|
98
|
+
background: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
ellipse_162_1_flow_1: {
|
|
102
|
+
from: {
|
|
103
|
+
transform: string;
|
|
104
|
+
transformOrigin: string;
|
|
105
|
+
cy: string;
|
|
106
|
+
};
|
|
107
|
+
to: {
|
|
108
|
+
transform: string;
|
|
109
|
+
transformOrigin: string;
|
|
110
|
+
cy: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
ellipse_162_1_flow_2: {
|
|
114
|
+
from: {
|
|
115
|
+
transform: string;
|
|
116
|
+
transformOrigin: string;
|
|
117
|
+
cy: string;
|
|
118
|
+
};
|
|
119
|
+
to: {
|
|
120
|
+
transform: string;
|
|
121
|
+
transformOrigin: string;
|
|
122
|
+
cy: string;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
ellipse_162_1_flow_5: {
|
|
126
|
+
from: {
|
|
127
|
+
transform: string;
|
|
128
|
+
transformOrigin: string;
|
|
129
|
+
cy: string;
|
|
130
|
+
};
|
|
131
|
+
to: {
|
|
132
|
+
transform: string;
|
|
133
|
+
transformOrigin: string;
|
|
134
|
+
cy: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
ellipse_162_1_flow_6: {
|
|
138
|
+
from: {
|
|
139
|
+
transform: string;
|
|
140
|
+
transformOrigin: string;
|
|
141
|
+
cy: string;
|
|
142
|
+
};
|
|
143
|
+
to: {
|
|
144
|
+
transform: string;
|
|
145
|
+
transformOrigin: string;
|
|
146
|
+
cy: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
ellipse_163_2_flow_2: {
|
|
150
|
+
from: {
|
|
151
|
+
transform: string;
|
|
152
|
+
transformOrigin: string;
|
|
153
|
+
cy: string;
|
|
154
|
+
};
|
|
155
|
+
to: {
|
|
156
|
+
transform: string;
|
|
157
|
+
transformOrigin: string;
|
|
158
|
+
cy: string;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
ellipse_163_2_flow_3: {
|
|
162
|
+
from: {
|
|
163
|
+
transform: string;
|
|
164
|
+
transformOrigin: string;
|
|
165
|
+
cy: string;
|
|
166
|
+
};
|
|
167
|
+
to: {
|
|
168
|
+
transform: string;
|
|
169
|
+
transformOrigin: string;
|
|
170
|
+
cy: string;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
ellipse_163_2_flow_6: {
|
|
174
|
+
from: {
|
|
175
|
+
transform: string;
|
|
176
|
+
transformOrigin: string;
|
|
177
|
+
cy: string;
|
|
178
|
+
};
|
|
179
|
+
to: {
|
|
180
|
+
transform: string;
|
|
181
|
+
transformOrigin: string;
|
|
182
|
+
cy: string;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
ellipse_163_2_flow_7: {
|
|
186
|
+
from: {
|
|
187
|
+
transform: string;
|
|
188
|
+
transformOrigin: string;
|
|
189
|
+
cy: string;
|
|
190
|
+
};
|
|
191
|
+
to: {
|
|
192
|
+
transform: string;
|
|
193
|
+
transformOrigin: string;
|
|
194
|
+
cy: string;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
ellipse_164_3_flow_3: {
|
|
198
|
+
from: {
|
|
199
|
+
transform: string;
|
|
200
|
+
transformOrigin: string;
|
|
201
|
+
cy: string;
|
|
202
|
+
};
|
|
203
|
+
to: {
|
|
204
|
+
transform: string;
|
|
205
|
+
transformOrigin: string;
|
|
206
|
+
cy: string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
ellipse_164_3_flow_4: {
|
|
210
|
+
from: {
|
|
211
|
+
transform: string;
|
|
212
|
+
transformOrigin: string;
|
|
213
|
+
cy: string;
|
|
214
|
+
};
|
|
215
|
+
to: {
|
|
216
|
+
transform: string;
|
|
217
|
+
transformOrigin: string;
|
|
218
|
+
cy: string;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
ellipse_164_3_flow_7: {
|
|
222
|
+
from: {
|
|
223
|
+
transform: string;
|
|
224
|
+
transformOrigin: string;
|
|
225
|
+
cy: string;
|
|
226
|
+
};
|
|
227
|
+
to: {
|
|
228
|
+
transform: string;
|
|
229
|
+
transformOrigin: string;
|
|
230
|
+
cy: string;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
ellipse_164_3_flow_8: {
|
|
234
|
+
from: {
|
|
235
|
+
transform: string;
|
|
236
|
+
transformOrigin: string;
|
|
237
|
+
cy: string;
|
|
238
|
+
};
|
|
239
|
+
to: {
|
|
240
|
+
transform: string;
|
|
241
|
+
transformOrigin: string;
|
|
242
|
+
cy: string;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
animation: {
|
|
247
|
+
pulse: string;
|
|
248
|
+
'ellipse-1-complete': string;
|
|
249
|
+
'ellipse-2-complete': string;
|
|
250
|
+
'ellipse-3-complete': string;
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
content: string[][];
|
|
255
|
+
plugins: (typeof typography)[];
|
|
256
|
+
};
|
|
257
|
+
//#endregion
|
|
258
|
+
export { EnviveTailwindPreset, createEnviveContentPaths, EnviveTailwindPreset as default };
|