@envive-ai/react-toolkit 0.1.12 → 0.1.13

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.
Files changed (181) hide show
  1. package/dist/Accordion/index.cjs +3 -3
  2. package/dist/Accordion/index.d.cts +2 -2
  3. package/dist/Accordion/index.d.ts +2 -2
  4. package/dist/Accordion/index.js +3 -3
  5. package/dist/{Accordion-DBZpiQe7.cjs → Accordion-D9gO9_y3.cjs} +1 -1
  6. package/dist/{Accordion-Cp3Hx2zm.js → Accordion-ZEdp99Ph.js} +1 -1
  7. package/dist/AppliedFiltersScrollbar/index.cjs +25 -27
  8. package/dist/AppliedFiltersScrollbar/index.d.cts +2 -2
  9. package/dist/AppliedFiltersScrollbar/index.d.ts +2 -2
  10. package/dist/AppliedFiltersScrollbar/index.js +25 -27
  11. package/dist/ButtonBase/index.cjs +3 -3
  12. package/dist/ButtonBase/index.d.cts +2 -3
  13. package/dist/ButtonBase/index.d.ts +2 -3
  14. package/dist/ButtonBase/index.js +3 -3
  15. package/dist/{ButtonBase-BAf-nlCm.js → ButtonBase-DgRupM53.js} +3 -3
  16. package/dist/{ButtonBase-Do88ndKa.cjs → ButtonBase-DrIwVGTR.cjs} +3 -3
  17. package/dist/DynamicFiltersScrollbar/index.cjs +23 -25
  18. package/dist/DynamicFiltersScrollbar/index.d.cts +2 -2
  19. package/dist/DynamicFiltersScrollbar/index.d.ts +2 -2
  20. package/dist/DynamicFiltersScrollbar/index.js +23 -25
  21. package/dist/DynamicFiltersScrollbar-B1j53y2q.cjs +81 -0
  22. package/dist/DynamicFiltersScrollbar-D7WYp6x9.js +66 -0
  23. package/dist/FilterScrollbar/index.cjs +3 -3
  24. package/dist/FilterScrollbar/index.d.cts +3 -3
  25. package/dist/FilterScrollbar/index.d.ts +3 -3
  26. package/dist/FilterScrollbar/index.js +3 -3
  27. package/dist/Headline/index.cjs +2 -2
  28. package/dist/Headline/index.d.cts +2 -2
  29. package/dist/Headline/index.d.ts +2 -2
  30. package/dist/Headline/index.js +2 -2
  31. package/dist/{Headline-DNEWF8ly.js → Headline-COv0Jbn8.js} +1 -1
  32. package/dist/{Headline-DTT4RSv2.cjs → Headline-Cp79THVF.cjs} +1 -1
  33. package/dist/ImageWithFallback/index.d.cts +2 -2
  34. package/dist/ImageWithFallback/index.d.ts +2 -2
  35. package/dist/ModalSheet/index.d.cts +2 -2
  36. package/dist/ModalSheet/index.d.ts +2 -2
  37. package/dist/ProductCard/index.cjs +4 -4
  38. package/dist/ProductCard/index.d.cts +1 -1
  39. package/dist/ProductCard/index.d.ts +1 -1
  40. package/dist/ProductCard/index.js +4 -4
  41. package/dist/{ProductCard-C3MjnfZJ.js → ProductCard-CNwmHggx.js} +32 -32
  42. package/dist/{ProductCard-FDyIMnZs.cjs → ProductCard-EmdDy2af.cjs} +32 -32
  43. package/dist/ProductGrid/index.cjs +5 -5
  44. package/dist/ProductGrid/index.d.cts +4 -8
  45. package/dist/ProductGrid/index.d.ts +4 -8
  46. package/dist/ProductGrid/index.js +5 -5
  47. package/dist/{ProductGrid-TlntVJ6h.cjs → ProductGrid-CMoomZLc.cjs} +3 -7
  48. package/dist/{ProductGrid-C9OKsyB2.js → ProductGrid-nmWSp0qX.js} +3 -7
  49. package/dist/RadioButton/index.cjs +3 -3
  50. package/dist/RadioButton/index.d.cts +5 -3
  51. package/dist/RadioButton/index.d.ts +5 -3
  52. package/dist/RadioButton/index.js +3 -3
  53. package/dist/{RadioButton-DZ6QXkrN.cjs → RadioButton-BdKJRzLM.cjs} +17 -10
  54. package/dist/{RadioButton-Bf68dZl7.js → RadioButton-S5dALI2f.js} +18 -11
  55. package/dist/RadioButtonGroup/index.cjs +4 -4
  56. package/dist/RadioButtonGroup/index.d.cts +2 -2
  57. package/dist/RadioButtonGroup/index.d.ts +2 -2
  58. package/dist/RadioButtonGroup/index.js +4 -4
  59. package/dist/{RadioButtonGroup-8k7hkJYB.js → RadioButtonGroup-BipNsoHL.js} +2 -1
  60. package/dist/{RadioButtonGroup-Dc_n5amh.cjs → RadioButtonGroup-TAJMA1j_.cjs} +2 -1
  61. package/dist/SearchAutocomplete/index.cjs +56 -2
  62. package/dist/SearchAutocomplete/index.js +49 -1
  63. package/dist/SearchFilter/index.cjs +8 -8
  64. package/dist/SearchFilter/index.d.cts +4 -4
  65. package/dist/SearchFilter/index.d.ts +4 -4
  66. package/dist/SearchFilter/index.js +8 -8
  67. package/dist/{SearchFilter-CTVBi5s3.cjs → SearchFilter-BcLc0TMq.cjs} +26 -16
  68. package/dist/{SearchFilter-DvqBIXa1.js → SearchFilter-w-0s2YVu.js} +26 -16
  69. package/dist/SearchInput/index.cjs +96 -6
  70. package/dist/SearchInput/index.d.cts +1 -1
  71. package/dist/SearchInput/index.d.ts +2 -2
  72. package/dist/SearchInput/index.js +88 -4
  73. package/dist/SearchInputForm/index.cjs +0 -39
  74. package/dist/SearchInputForm/index.d.cts +2 -2
  75. package/dist/SearchInputForm/index.d.ts +2 -2
  76. package/dist/SearchInputForm/index.js +1 -37
  77. package/dist/SearchResultsContent/index.cjs +34 -37
  78. package/dist/SearchResultsContent/index.d.cts +4 -6
  79. package/dist/SearchResultsContent/index.d.ts +4 -6
  80. package/dist/SearchResultsContent/index.js +34 -37
  81. package/dist/SearchResultsFilterSidebar/index.cjs +10 -10
  82. package/dist/SearchResultsFilterSidebar/index.d.cts +1 -1
  83. package/dist/SearchResultsFilterSidebar/index.d.ts +1 -1
  84. package/dist/SearchResultsFilterSidebar/index.js +10 -10
  85. package/dist/SearchResultsStates/index.cjs +10 -10
  86. package/dist/SearchResultsStates/index.d.cts +6 -8
  87. package/dist/SearchResultsStates/index.d.ts +6 -8
  88. package/dist/SearchResultsStates/index.js +10 -10
  89. package/dist/{SearchResultsStates-iKz64Pd4.js → SearchResultsStates-DlZz14yy.js} +8 -10
  90. package/dist/{SearchResultsStates-CH4agenX.cjs → SearchResultsStates-DwcPrsdd.cjs} +8 -10
  91. package/dist/SparkleAnimation/index.cjs +1 -1
  92. package/dist/SparkleAnimation/index.d.cts +2 -2
  93. package/dist/SparkleAnimation/index.d.ts +2 -2
  94. package/dist/SparkleAnimation/index.js +1 -1
  95. package/dist/{SparkleAnimation-qi5WCJ9B.cjs → SparkleAnimation-CvGlWUqv.cjs} +0 -1
  96. package/dist/{SparkleAnimation-BLfNojLv.js → SparkleAnimation-paLhSu5E.js} +0 -1
  97. package/dist/Spinner/index.d.cts +2 -2
  98. package/dist/SuggestionButton/index.cjs +3 -3
  99. package/dist/SuggestionButton/index.d.cts +2 -2
  100. package/dist/SuggestionButton/index.d.ts +2 -2
  101. package/dist/SuggestionButton/index.js +3 -3
  102. package/dist/Text/index.cjs +2 -2
  103. package/dist/Text/index.d.cts +2 -2
  104. package/dist/Text/index.d.ts +3 -3
  105. package/dist/Text/index.js +2 -2
  106. package/dist/{Text-Bod4OMPk.js → Text-BLzNhX4H.js} +1 -1
  107. package/dist/{Text-MQjxqgZZ.cjs → Text-DllCE9_D.cjs} +1 -1
  108. package/dist/TextInput/index.cjs +2 -2
  109. package/dist/TextInput/index.d.ts +1 -1
  110. package/dist/TextInput/index.js +2 -2
  111. package/dist/{TextInput-DoM41M53.js → TextInput-DmsOxxPN.js} +1 -1
  112. package/dist/{TextInput-B3dTeD3q.cjs → TextInput-HMW0hxLI.cjs} +1 -1
  113. package/dist/ToggleButton/index.cjs +3 -3
  114. package/dist/ToggleButton/index.d.cts +2 -2
  115. package/dist/ToggleButton/index.d.ts +2 -2
  116. package/dist/ToggleButton/index.js +3 -3
  117. package/dist/{ToggleButton-CK_vkMvt.cjs → ToggleButton-DblAj4Cd.cjs} +1 -1
  118. package/dist/{ToggleButton-GIVd2-Z4.js → ToggleButton-r7Y7Kzzo.js} +1 -1
  119. package/dist/index-BKvXn5sj.d.ts +4 -0
  120. package/dist/{index-B8l3muO3.d.ts → index-Br1B7Jta.d.cts} +2 -3
  121. package/dist/{index-CFH3KUVw.d.cts → index-DADHwW6M.d.ts} +5 -9
  122. package/dist/{index-Vck3pox6.d.ts → index-DDp-fLgm.d.cts} +5 -9
  123. package/dist/{index-BMt66uqr.d.cts → index-Dh8rcWev.d.ts} +2 -3
  124. package/dist/index-W1wCDiw_.d.cts +4 -0
  125. package/dist/{searchFilterSidebarVariants-CI782ylo.js → searchFilterSidebarVariants-J0FJ8pck.js} +1 -1
  126. package/dist/{searchFilterSidebarVariants-DFfOTqjc.cjs → searchFilterSidebarVariants-kkTjYEIF.cjs} +1 -1
  127. package/dist/{textVariantClasses-Dgz7Zaql.cjs → textVariantClasses-CBre7vXv.cjs} +5 -7
  128. package/dist/{textVariantClasses-D77TGEy1.js → textVariantClasses-CRrTb43V.js} +5 -7
  129. package/package.json +2 -6
  130. package/src/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.tsx +25 -27
  131. package/src/components/ButtonBase/ButtonBase.tsx +1 -2
  132. package/src/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.tsx +26 -28
  133. package/src/components/FilterScrollbar/AppliedFiltersScrollbar.tsx +25 -27
  134. package/src/components/FilterScrollbar/DynamicFiltersScrollbar.tsx +26 -28
  135. package/src/components/ModalSheet/ModalSheet.tsx +1 -1
  136. package/src/components/ModalSheet/common/closeIcon.tsx +2 -2
  137. package/src/components/ModalSheet/mobile/mobileHeader.tsx +1 -1
  138. package/src/components/ProductCard/ProductCard.tsx +5 -28
  139. package/src/components/ProductGrid/ProductGrid.tsx +3 -11
  140. package/src/components/RadioButton/RadioButton.tsx +15 -6
  141. package/src/components/RadioButtonGroup/RadioButtonGroup.tsx +1 -0
  142. package/src/components/SearchFilter/SearchFilter.tsx +2 -2
  143. package/src/components/SearchFilter/SearchFilterFooter.tsx +1 -1
  144. package/src/components/SearchFilter/SearchFilterHeader.tsx +6 -1
  145. package/src/components/SearchFilter/SearchFilterItem.tsx +17 -3
  146. package/src/components/SearchFilter/useHasFilterStateChanged.tsx +1 -0
  147. package/src/components/SearchFilter/utils.ts +4 -6
  148. package/src/components/SearchInput/SearchInput.tsx +2 -2
  149. package/src/components/SearchInputForm/index.ts +0 -1
  150. package/src/components/SearchResultsContent/SearchResultsContent.tsx +33 -38
  151. package/src/components/SearchResultsFilterSidebar/SearchResultsFilter.tsx +2 -3
  152. package/src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts +1 -1
  153. package/src/components/SearchResultsStates/SearchResultsGrid.tsx +4 -8
  154. package/src/components/SearchResultsStates/SearchResultsLoadingGrid.tsx +3 -3
  155. package/src/components/SparkleAnimation/SparkleAnimation.tsx +0 -1
  156. package/src/components/Spinner/Spinner.tsx +29 -14
  157. package/src/components/SuggestionButton/SuggestionButton.tsx +1 -1
  158. package/src/components/SuggestionButton/types.ts +1 -1
  159. package/src/components/Text/textVariantClasses.ts +12 -10
  160. package/src/components/TextInput/TextInput.tsx +1 -0
  161. package/src/util/camelCasedPropertiesDeep.ts +22 -22
  162. package/src/util/internal.ts +4 -2
  163. package/src/util/splitWords.ts +35 -31
  164. package/dist/DynamicFiltersScrollbar-C4kdNSJ9.js +0 -70
  165. package/dist/DynamicFiltersScrollbar-CVw1PINp.cjs +0 -85
  166. package/dist/SearchAutocomplete-BlpII8Xs.js +0 -51
  167. package/dist/SearchAutocomplete-DIEhLT4C.cjs +0 -62
  168. package/dist/SearchInput-CVaCPWCE.js +0 -89
  169. package/dist/SearchInput-vJMWoLzS.cjs +0 -106
  170. package/dist/Styles/index.cjs +0 -274
  171. package/dist/Styles/index.d.cts +0 -258
  172. package/dist/Styles/index.d.ts +0 -258
  173. package/dist/Styles/index.js +0 -274
  174. package/dist/index-H_9LhS_1.d.cts +0 -36
  175. package/dist/index-h-QwQNnu.d.ts +0 -36
  176. package/src/components/Styles/EnviveTailwindPreset.ts +0 -285
  177. package/src/components/Styles/index.ts +0 -2
  178. package/tailwind-preset.js +0 -3
  179. /package/dist/{colorsConfig-D-MZuBvt.cjs → colorsConfig-B3-SMUSx.cjs} +0 -0
  180. /package/dist/{colorsConfig-DEfiLHH0.js → colorsConfig-DZ-GSPWy.js} +0 -0
  181. /package/dist/{textVariantClasses-kyZtL8F5.d.ts → textVariantClasses-C8OCWZAw.d.ts} +0 -0
@@ -1,274 +0,0 @@
1
- import { createRequire } from "node:module";
2
- import typography from "@tailwindcss/typography";
3
-
4
- //#region rolldown:runtime
5
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
6
-
7
- //#endregion
8
- //#region src/components/Styles/EnviveTailwindPreset.ts
9
- /**
10
- * Helper function to create content paths for the Envive React Toolkit
11
- * This should be used in the consuming application's tailwind.config.js
12
- *
13
- * @param additionalPaths - Additional content paths to include
14
- * @returns Array of content paths including the toolkit components
15
- */
16
- const createEnviveContentPaths = (additionalPaths = []) => {
17
- let toolkitPath;
18
- try {
19
- if (typeof __require !== "undefined" && typeof __require.resolve === "function") {
20
- const path = __require("path");
21
- toolkitPath = path.join(path.dirname(__require.resolve("@envive-ai/react-toolkit/package.json")), "dist/**/*.{js,cjs}");
22
- } else toolkitPath = "./node_modules/@envive-ai/react-toolkit/dist/**/*.{js,cjs}";
23
- } catch {
24
- toolkitPath = "./node_modules/@envive-ai/react-toolkit/dist/**/*.{js,cjs}";
25
- }
26
- return [toolkitPath, ...additionalPaths];
27
- };
28
- /** @type {import('tailwindcss').Config} */
29
- const EnviveTailwindPreset = {
30
- future: { hoverOnlyWhenSupported: true },
31
- prefix: "spiffy-tw-",
32
- theme: {
33
- screens: {
34
- sm: "480px",
35
- md: "768px",
36
- lg: "976px",
37
- xl: "1440px"
38
- },
39
- fontFamily: { sans: [
40
- "Inter Variable",
41
- "Poppins",
42
- "sans-serif"
43
- ] },
44
- fontSize: {
45
- xs: "12px",
46
- sm: "14px",
47
- md: "16px",
48
- lg: "18px",
49
- xl: "20px"
50
- },
51
- fontWeight: {
52
- normal: 400,
53
- medium: 500,
54
- semibold: 600,
55
- bold: 700
56
- },
57
- spacing: {
58
- px: "1px",
59
- .5: "2px",
60
- 1: "4px",
61
- 1.5: "6px",
62
- 2: "8px",
63
- 2.5: "10px",
64
- 3: "12px",
65
- 3.5: "14px",
66
- 4: "16px",
67
- 5: "20px",
68
- 6: "24px",
69
- 7: "28px",
70
- 8: "32px",
71
- 9: "36px",
72
- 10: "40px",
73
- 12: "48px",
74
- 14: "56px",
75
- 16: "64px",
76
- 20: "80px",
77
- 24: "96px",
78
- 28: "112px",
79
- 32: "128px",
80
- 36: "144px",
81
- 40: "160px",
82
- 44: "176px",
83
- 48: "192px",
84
- 52: "208px",
85
- 56: "224px",
86
- 60: "240px",
87
- 64: "256px",
88
- 72: "288px",
89
- 80: "320px",
90
- 96: "384px"
91
- },
92
- borderRadius: {
93
- none: "0",
94
- sm: "2px",
95
- base: "4px",
96
- md: "6px",
97
- lg: "8px",
98
- xl: "12px",
99
- "2xl": "16px",
100
- "3xl": "24px",
101
- full: "9999px"
102
- },
103
- extend: {
104
- keyframes: {
105
- pulse: {
106
- "0%": {
107
- borderColor: "#EDF2F7",
108
- background: "#EDF2F7"
109
- },
110
- "50%": {},
111
- "100%": {
112
- borderColor: "#A0AEC0",
113
- background: "#A0AEC0"
114
- }
115
- },
116
- ellipse_162_1_flow_1: {
117
- from: {
118
- transform: "translate(0px, 0px) rotate(0deg)",
119
- transformOrigin: "8.5px 9.5px",
120
- cy: "9.5px"
121
- },
122
- to: {
123
- transform: "translate(0px, 0px) rotate(0deg)",
124
- transformOrigin: "8.5px 7.5px",
125
- cy: "7.5px"
126
- }
127
- },
128
- ellipse_162_1_flow_2: {
129
- from: {
130
- transform: "translate(0px, 0px) rotate(0deg)",
131
- transformOrigin: "8.5px 7.5px",
132
- cy: "7.5px"
133
- },
134
- to: {
135
- transform: "translate(0px, 0px) rotate(0deg)",
136
- transformOrigin: "8.5px 9.5px",
137
- cy: "9.5px"
138
- }
139
- },
140
- ellipse_162_1_flow_5: {
141
- from: {
142
- transform: "translate(0px, 0px) rotate(0deg)",
143
- transformOrigin: "8.5px 9.5px",
144
- cy: "9.5px"
145
- },
146
- to: {
147
- transform: "translate(0px, 0px) rotate(0deg)",
148
- transformOrigin: "8.5px 7.5px",
149
- cy: "7.5px"
150
- }
151
- },
152
- ellipse_162_1_flow_6: {
153
- from: {
154
- transform: "translate(0px, 0px) rotate(0deg)",
155
- transformOrigin: "8.5px 7.5px",
156
- cy: "7.5px"
157
- },
158
- to: {
159
- transform: "translate(0px, 0px) rotate(0deg)",
160
- transformOrigin: "8.5px 9.5px",
161
- cy: "9.5px"
162
- }
163
- },
164
- ellipse_163_2_flow_2: {
165
- from: {
166
- transform: "translate(0px, 0px) rotate(0deg)",
167
- transformOrigin: "16.5px 9.5px",
168
- cy: "9.5px"
169
- },
170
- to: {
171
- transform: "translate(0px, 0px) rotate(0deg)",
172
- transformOrigin: "16.5px 7.5px",
173
- cy: "7.5px"
174
- }
175
- },
176
- ellipse_163_2_flow_3: {
177
- from: {
178
- transform: "translate(0px, 0px) rotate(0deg)",
179
- transformOrigin: "16.5px 7.5px",
180
- cy: "7.5px"
181
- },
182
- to: {
183
- transform: "translate(0px, 0px) rotate(0deg)",
184
- transformOrigin: "16.5px 9.5px",
185
- cy: "9.5px"
186
- }
187
- },
188
- ellipse_163_2_flow_6: {
189
- from: {
190
- transform: "translate(0px, 0px) rotate(0deg)",
191
- transformOrigin: "16.5px 9.5px",
192
- cy: "9.5px"
193
- },
194
- to: {
195
- transform: "translate(0px, 0px) rotate(0deg)",
196
- transformOrigin: "16.5px 7.5px",
197
- cy: "7.5px"
198
- }
199
- },
200
- ellipse_163_2_flow_7: {
201
- from: {
202
- transform: "translate(0px, 0px) rotate(0deg)",
203
- transformOrigin: "16.5px 7.5px",
204
- cy: "7.5px"
205
- },
206
- to: {
207
- transform: "translate(0px, 0px) rotate(0deg)",
208
- transformOrigin: "16.5px 9.5px",
209
- cy: "9.5px"
210
- }
211
- },
212
- ellipse_164_3_flow_3: {
213
- from: {
214
- transform: "translate(0px, 0px) rotate(0deg)",
215
- transformOrigin: "24.5px 9.5px",
216
- cy: "9.5px"
217
- },
218
- to: {
219
- transform: "translate(0px, 0px) rotate(0deg)",
220
- transformOrigin: "24.5px 7.5px",
221
- cy: "7.5px"
222
- }
223
- },
224
- ellipse_164_3_flow_4: {
225
- from: {
226
- transform: "translate(0px, 0px) rotate(0deg)",
227
- transformOrigin: "24.5px 7.5px",
228
- cy: "7.5px"
229
- },
230
- to: {
231
- transform: "translate(0px, 0px) rotate(0deg)",
232
- transformOrigin: "24.5px 9.5px",
233
- cy: "9.5px"
234
- }
235
- },
236
- ellipse_164_3_flow_7: {
237
- from: {
238
- transform: "translate(0px, 0px) rotate(0deg)",
239
- transformOrigin: "24.5px 9.5px",
240
- cy: "9.5px"
241
- },
242
- to: {
243
- transform: "translate(0px, 0px) rotate(0deg)",
244
- transformOrigin: "24.5px 7.5px",
245
- cy: "7.5px"
246
- }
247
- },
248
- ellipse_164_3_flow_8: {
249
- from: {
250
- transform: "translate(0px, 0px) rotate(0deg)",
251
- transformOrigin: "24.5px 7.5px",
252
- cy: "7.5px"
253
- },
254
- to: {
255
- transform: "translate(0px, 0px) rotate(0deg)",
256
- transformOrigin: "24.5px 9.5px",
257
- cy: "9.5px"
258
- }
259
- }
260
- },
261
- animation: {
262
- pulse: "pulse 0.8s linear infinite alternate",
263
- "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",
264
- "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",
265
- "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"
266
- }
267
- }
268
- },
269
- content: [createEnviveContentPaths(["./index.html", "./src/**/*.{js,ts,jsx,tsx}"])],
270
- plugins: [typography]
271
- };
272
-
273
- //#endregion
274
- export { EnviveTailwindPreset, createEnviveContentPaths, EnviveTailwindPreset as default };
@@ -1,36 +0,0 @@
1
- import * as react_jsx_runtime11 from "react/jsx-runtime";
2
-
3
- //#region src/components/SearchInputForm/types.d.ts
4
- type SearchInputVariant = 'standard';
5
- //#endregion
6
- //#region src/components/SearchInputForm/SearchInputForm.d.ts
7
- interface SearchInputFormProps {
8
- searchInputVariant: SearchInputVariant;
9
- searchText: string;
10
- autocompleteResults: string[];
11
- searchBoxPlaceholder: string;
12
- focusedOptionId: string | undefined;
13
- isDirty: boolean;
14
- focusedIndex: number;
15
- onKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
16
- onAutocompleteSelect: (suggestion: string) => void;
17
- onSearchInputChange: (value: string) => void;
18
- onSearchSubmit: () => void;
19
- searchInputDataTestId?: string;
20
- }
21
- declare const SearchInputForm: ({
22
- searchInputVariant,
23
- searchText,
24
- autocompleteResults,
25
- searchBoxPlaceholder,
26
- focusedOptionId,
27
- isDirty,
28
- focusedIndex,
29
- onKeyDown,
30
- onAutocompleteSelect,
31
- onSearchInputChange,
32
- onSearchSubmit,
33
- searchInputDataTestId
34
- }: SearchInputFormProps) => react_jsx_runtime11.JSX.Element;
35
- //#endregion
36
- export { SearchInputForm, SearchInputVariant };
@@ -1,36 +0,0 @@
1
- import * as react_jsx_runtime14 from "react/jsx-runtime";
2
-
3
- //#region src/components/SearchInputForm/types.d.ts
4
- type SearchInputVariant = 'standard';
5
- //#endregion
6
- //#region src/components/SearchInputForm/SearchInputForm.d.ts
7
- interface SearchInputFormProps {
8
- searchInputVariant: SearchInputVariant;
9
- searchText: string;
10
- autocompleteResults: string[];
11
- searchBoxPlaceholder: string;
12
- focusedOptionId: string | undefined;
13
- isDirty: boolean;
14
- focusedIndex: number;
15
- onKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
16
- onAutocompleteSelect: (suggestion: string) => void;
17
- onSearchInputChange: (value: string) => void;
18
- onSearchSubmit: () => void;
19
- searchInputDataTestId?: string;
20
- }
21
- declare const SearchInputForm: ({
22
- searchInputVariant,
23
- searchText,
24
- autocompleteResults,
25
- searchBoxPlaceholder,
26
- focusedOptionId,
27
- isDirty,
28
- focusedIndex,
29
- onKeyDown,
30
- onAutocompleteSelect,
31
- onSearchInputChange,
32
- onSearchSubmit,
33
- searchInputDataTestId
34
- }: SearchInputFormProps) => react_jsx_runtime14.JSX.Element;
35
- //#endregion
36
- export { SearchInputForm, SearchInputVariant };
@@ -1,285 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-require-imports */
2
- import typography from '@tailwindcss/typography';
3
-
4
- /**
5
- * Helper function to create content paths for the Envive React Toolkit
6
- * This should be used in the consuming application's tailwind.config.js
7
- *
8
- * @param additionalPaths - Additional content paths to include
9
- * @returns Array of content paths including the toolkit components
10
- */
11
- export const createEnviveContentPaths = (additionalPaths: string[] = []): string[] => {
12
- // Dynamically resolve the path to the toolkit's dist directory
13
- let toolkitPath: string;
14
-
15
- try {
16
- // This will work in Node.js environments (build time)
17
- if (typeof require !== 'undefined' && typeof require.resolve === 'function') {
18
- // eslint-disable-next-line @typescript-eslint/no-var-requires
19
- const path = require('path');
20
- toolkitPath = path.join(
21
- // eslint-disable-next-line @typescript-eslint/no-var-requires
22
- path.dirname(require.resolve('@envive-ai/react-toolkit/package.json')),
23
- 'dist/**/*.{js,cjs}',
24
- );
25
- } else {
26
- // Fallback for environments where require is not available
27
- toolkitPath = './node_modules/@envive-ai/react-toolkit/dist/**/*.{js,cjs}';
28
- }
29
- } catch {
30
- // Fallback if resolution fails
31
- toolkitPath = './node_modules/@envive-ai/react-toolkit/dist/**/*.{js,cjs}';
32
- }
33
-
34
- return [
35
- // Include the toolkit's built components
36
- toolkitPath,
37
- // Include any additional paths provided by the consuming application
38
- ...additionalPaths,
39
- ];
40
- };
41
-
42
- /** @type {import('tailwindcss').Config} */
43
- export const EnviveTailwindPreset = {
44
- future: {
45
- hoverOnlyWhenSupported: true,
46
- },
47
- prefix: 'spiffy-tw-',
48
- theme: {
49
- screens: {
50
- sm: '480px',
51
- md: '768px',
52
- lg: '976px',
53
- xl: '1440px',
54
- },
55
- fontFamily: {
56
- sans: ['Inter Variable', 'Poppins', 'sans-serif'],
57
- },
58
- fontSize: {
59
- xs: '12px',
60
- sm: '14px',
61
- md: '16px',
62
- lg: '18px',
63
- xl: '20px',
64
- },
65
- fontWeight: {
66
- normal: 400,
67
- medium: 500,
68
- semibold: 600,
69
- bold: 700,
70
- },
71
- spacing: {
72
- px: '1px',
73
- 0.5: '2px',
74
- 1: '4px',
75
- 1.5: '6px',
76
- 2: '8px',
77
- 2.5: '10px',
78
- 3: '12px',
79
- 3.5: '14px',
80
- 4: '16px',
81
- 5: '20px',
82
- 6: '24px',
83
- 7: '28px',
84
- 8: '32px',
85
- 9: '36px',
86
- 10: '40px',
87
- 12: '48px',
88
- 14: '56px',
89
- 16: '64px',
90
- 20: '80px',
91
- 24: '96px',
92
- 28: '112px',
93
- 32: '128px',
94
- 36: '144px',
95
- 40: '160px',
96
- 44: '176px',
97
- 48: '192px',
98
- 52: '208px',
99
- 56: '224px',
100
- 60: '240px',
101
- 64: '256px',
102
- 72: '288px',
103
- 80: '320px',
104
- 96: '384px',
105
- },
106
- borderRadius: {
107
- none: '0',
108
- sm: '2px',
109
- base: '4px',
110
- md: '6px',
111
- lg: '8px',
112
- xl: '12px',
113
- '2xl': '16px',
114
- '3xl': '24px',
115
- full: '9999px',
116
- },
117
- extend: {
118
- keyframes: {
119
- pulse: {
120
- '0%': { borderColor: '#EDF2F7', background: '#EDF2F7' },
121
- '50%': {},
122
- '100%': { borderColor: '#A0AEC0', background: '#A0AEC0' },
123
- },
124
- ellipse_162_1_flow_1: {
125
- from: {
126
- transform: 'translate(0px, 0px) rotate(0deg)',
127
- transformOrigin: '8.5px 9.5px',
128
- cy: '9.5px',
129
- },
130
- to: {
131
- transform: 'translate(0px, 0px) rotate(0deg)',
132
- transformOrigin: '8.5px 7.5px',
133
- cy: '7.5px',
134
- },
135
- },
136
- ellipse_162_1_flow_2: {
137
- from: {
138
- transform: 'translate(0px, 0px) rotate(0deg)',
139
- transformOrigin: '8.5px 7.5px',
140
- cy: '7.5px',
141
- },
142
- to: {
143
- transform: 'translate(0px, 0px) rotate(0deg)',
144
- transformOrigin: '8.5px 9.5px',
145
- cy: '9.5px',
146
- },
147
- },
148
- ellipse_162_1_flow_5: {
149
- from: {
150
- transform: 'translate(0px, 0px) rotate(0deg)',
151
- transformOrigin: '8.5px 9.5px',
152
- cy: '9.5px',
153
- },
154
- to: {
155
- transform: 'translate(0px, 0px) rotate(0deg)',
156
- transformOrigin: '8.5px 7.5px',
157
- cy: '7.5px',
158
- },
159
- },
160
- ellipse_162_1_flow_6: {
161
- from: {
162
- transform: 'translate(0px, 0px) rotate(0deg)',
163
- transformOrigin: '8.5px 7.5px',
164
- cy: '7.5px',
165
- },
166
- to: {
167
- transform: 'translate(0px, 0px) rotate(0deg)',
168
- transformOrigin: '8.5px 9.5px',
169
- cy: '9.5px',
170
- },
171
- },
172
- // Ellipse 163_2 animations
173
- ellipse_163_2_flow_2: {
174
- from: {
175
- transform: 'translate(0px, 0px) rotate(0deg)',
176
- transformOrigin: '16.5px 9.5px',
177
- cy: '9.5px',
178
- },
179
- to: {
180
- transform: 'translate(0px, 0px) rotate(0deg)',
181
- transformOrigin: '16.5px 7.5px',
182
- cy: '7.5px',
183
- },
184
- },
185
- ellipse_163_2_flow_3: {
186
- from: {
187
- transform: 'translate(0px, 0px) rotate(0deg)',
188
- transformOrigin: '16.5px 7.5px',
189
- cy: '7.5px',
190
- },
191
- to: {
192
- transform: 'translate(0px, 0px) rotate(0deg)',
193
- transformOrigin: '16.5px 9.5px',
194
- cy: '9.5px',
195
- },
196
- },
197
- ellipse_163_2_flow_6: {
198
- from: {
199
- transform: 'translate(0px, 0px) rotate(0deg)',
200
- transformOrigin: '16.5px 9.5px',
201
- cy: '9.5px',
202
- },
203
- to: {
204
- transform: 'translate(0px, 0px) rotate(0deg)',
205
- transformOrigin: '16.5px 7.5px',
206
- cy: '7.5px',
207
- },
208
- },
209
- ellipse_163_2_flow_7: {
210
- from: {
211
- transform: 'translate(0px, 0px) rotate(0deg)',
212
- transformOrigin: '16.5px 7.5px',
213
- cy: '7.5px',
214
- },
215
- to: {
216
- transform: 'translate(0px, 0px) rotate(0deg)',
217
- transformOrigin: '16.5px 9.5px',
218
- cy: '9.5px',
219
- },
220
- },
221
- // Ellipse 164_3 animations
222
- ellipse_164_3_flow_3: {
223
- from: {
224
- transform: 'translate(0px, 0px) rotate(0deg)',
225
- transformOrigin: '24.5px 9.5px',
226
- cy: '9.5px',
227
- },
228
- to: {
229
- transform: 'translate(0px, 0px) rotate(0deg)',
230
- transformOrigin: '24.5px 7.5px',
231
- cy: '7.5px',
232
- },
233
- },
234
- ellipse_164_3_flow_4: {
235
- from: {
236
- transform: 'translate(0px, 0px) rotate(0deg)',
237
- transformOrigin: '24.5px 7.5px',
238
- cy: '7.5px',
239
- },
240
- to: {
241
- transform: 'translate(0px, 0px) rotate(0deg)',
242
- transformOrigin: '24.5px 9.5px',
243
- cy: '9.5px',
244
- },
245
- },
246
- ellipse_164_3_flow_7: {
247
- from: {
248
- transform: 'translate(0px, 0px) rotate(0deg)',
249
- transformOrigin: '24.5px 9.5px',
250
- cy: '9.5px',
251
- },
252
- to: {
253
- transform: 'translate(0px, 0px) rotate(0deg)',
254
- transformOrigin: '24.5px 7.5px',
255
- cy: '7.5px',
256
- },
257
- },
258
- ellipse_164_3_flow_8: {
259
- from: {
260
- transform: 'translate(0px, 0px) rotate(0deg)',
261
- transformOrigin: '24.5px 7.5px',
262
- cy: '7.5px',
263
- },
264
- to: {
265
- transform: 'translate(0px, 0px) rotate(0deg)',
266
- transformOrigin: '24.5px 9.5px',
267
- cy: '9.5px',
268
- },
269
- },
270
- },
271
- animation: {
272
- pulse: 'pulse 0.8s linear infinite alternate',
273
- 'ellipse-1-complete':
274
- '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',
275
- 'ellipse-2-complete':
276
- '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',
277
- 'ellipse-3-complete':
278
- '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',
279
- },
280
- },
281
- },
282
- // Content should be defined by the consuming application
283
- content: [createEnviveContentPaths(['./index.html', './src/**/*.{js,ts,jsx,tsx}'])],
284
- plugins: [typography],
285
- };
@@ -1,2 +0,0 @@
1
- export * from './EnviveTailwindPreset';
2
- export { EnviveTailwindPreset as default } from './EnviveTailwindPreset';
@@ -1,3 +0,0 @@
1
- const { EnviveTailwindPreset } = require('./dist/Styles/index.cjs');
2
-
3
- module.exports = EnviveTailwindPreset;