cherry-styled-components 0.1.11 → 0.1.12

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 (73) hide show
  1. package/README.md +2 -0
  2. package/dist/box.js +17 -0
  3. package/{src/lib/button.tsx → dist/button.js} +45 -98
  4. package/dist/col.js +25 -0
  5. package/dist/container.js +36 -0
  6. package/dist/flex.js +40 -0
  7. package/dist/grid.js +39 -0
  8. package/dist/icon.js +26 -0
  9. package/dist/index.js +89 -0
  10. package/{src/lib/input.tsx → dist/input.js} +95 -151
  11. package/dist/lib/button.d.ts +2 -3
  12. package/dist/lib/col.d.ts +0 -2
  13. package/dist/lib/container.d.ts +0 -2
  14. package/dist/lib/flex.d.ts +1 -3
  15. package/dist/lib/grid.d.ts +0 -2
  16. package/dist/lib/icon.d.ts +2 -1
  17. package/dist/lib/input.d.ts +0 -3
  18. package/dist/lib/range.d.ts +0 -2
  19. package/dist/lib/select.d.ts +0 -2
  20. package/dist/lib/styled-components/theme-provider.d.ts +1 -1
  21. package/dist/lib/textarea.d.ts +0 -2
  22. package/dist/lib/toggle.d.ts +0 -2
  23. package/dist/lib/utils/mixins.d.ts +2 -2
  24. package/dist/lib/utils/theme.d.ts +1 -2
  25. package/dist/lib/utils/typography.d.ts +3 -2
  26. package/dist/max-width.js +35 -0
  27. package/{src/lib/range.tsx → dist/range.js} +44 -71
  28. package/dist/select.js +108 -0
  29. package/dist/space.js +37 -0
  30. package/dist/styled-components/registry.js +25 -0
  31. package/dist/styled-components/theme-provider.js +35 -0
  32. package/dist/textarea.js +86 -0
  33. package/{src/lib/toggle.tsx → dist/toggle.js} +41 -67
  34. package/{src/lib/utils/global.tsx → dist/utils/global.js} +4 -5
  35. package/dist/utils/icons.js +86 -0
  36. package/{src/lib/utils/mixins.tsx → dist/utils/mixins.js} +23 -51
  37. package/dist/utils/theme.js +156 -0
  38. package/dist/utils/typography.js +51 -0
  39. package/package.json +25 -7
  40. package/.claude/settings.local.json +0 -21
  41. package/.eslintrc.cjs +0 -18
  42. package/.prettierignore +0 -5
  43. package/.prettierrc +0 -11
  44. package/.supermaven/config.json +0 -6
  45. package/CLAUDE.md +0 -70
  46. package/dist/cherry.js +0 -22802
  47. package/dist/cherry.umd.cjs +0 -1424
  48. package/index.html +0 -13
  49. package/pnpm-workspace.yaml +0 -3
  50. package/src/App.tsx +0 -311
  51. package/src/lib/box.tsx +0 -26
  52. package/src/lib/col.tsx +0 -48
  53. package/src/lib/container.tsx +0 -69
  54. package/src/lib/flex.tsx +0 -99
  55. package/src/lib/grid.tsx +0 -76
  56. package/src/lib/icon.tsx +0 -19
  57. package/src/lib/index.ts +0 -16
  58. package/src/lib/max-width.tsx +0 -53
  59. package/src/lib/select.tsx +0 -136
  60. package/src/lib/space.tsx +0 -55
  61. package/src/lib/styled-components/index.ts +0 -2
  62. package/src/lib/styled-components/registry.tsx +0 -29
  63. package/src/lib/styled-components/theme-provider.tsx +0 -50
  64. package/src/lib/textarea.tsx +0 -118
  65. package/src/lib/utils/icons.tsx +0 -84
  66. package/src/lib/utils/index.ts +0 -5
  67. package/src/lib/utils/theme.ts +0 -297
  68. package/src/lib/utils/typography.tsx +0 -204
  69. package/src/main.tsx +0 -19
  70. package/src/toggle-theme.tsx +0 -25
  71. package/src/vite-env.d.ts +0 -8
  72. package/tsconfig.json +0 -24
  73. package/vite.config.js +0 -24
@@ -1,297 +0,0 @@
1
- "use client";
2
- export const breakpoints: Breakpoints = {
3
- xs: 0,
4
- sm: 576,
5
- md: 768,
6
- lg: 992,
7
- xl: 1200,
8
- xxl: 1440,
9
- xxxl: 1920,
10
- };
11
-
12
- export function mq(minWidth: keyof Breakpoints) {
13
- return `@media screen and (min-width: ${breakpoints[minWidth]}px)`;
14
- }
15
-
16
- export const spacing: Spacing = {
17
- maxWidth: { xs: "1280px", xxxl: "1440px" },
18
- padding: { xs: "20px", lg: "40px" },
19
- radius: { xs: "6px", lg: "12px", xl: "30px" },
20
- gridGap: { xs: "20px", lg: "40px" },
21
- };
22
-
23
- export const colors: Colors = {
24
- primaryLight: "#91aec4",
25
- primary: "#4d6f8b",
26
- primaryDark: "#194569",
27
-
28
- secondaryLight: "#a4b17b",
29
- secondary: "#5c6e46",
30
- secondaryDark: "#354c2b",
31
-
32
- tertiaryLight: "#ebccb9",
33
- tertiary: "#816b5a",
34
- tertiaryDark: "#675445",
35
-
36
- grayLight: "#e5e7eb",
37
- gray: "#9ca3af",
38
- grayDark: "#4b5563",
39
-
40
- success: "#84cc16",
41
- error: "#ef4444",
42
- warning: "#eab308",
43
- info: "#06b6d4",
44
-
45
- dark: "#000000",
46
- light: "#ffffff",
47
- };
48
-
49
- export const colorsDark: Colors = {
50
- primaryLight: "#79C5FF",
51
- primary: "#6198C6",
52
- primaryDark: "#339DF4",
53
-
54
- secondaryLight: "#a4b17b",
55
- secondary: "#5c6e46",
56
- secondaryDark: "#354c2b",
57
-
58
- tertiaryLight: "#ebccb9",
59
- tertiary: "#816b5a",
60
- tertiaryDark: "#675445",
61
-
62
- grayLight: "#1a1a1a",
63
- gray: "#454444",
64
- grayDark: "#808080",
65
-
66
- success: "#84cc16",
67
- error: "#ef4444",
68
- warning: "#eab308",
69
- info: "#06b6d4",
70
-
71
- dark: "#ffffff",
72
- light: "#000000",
73
- };
74
-
75
- export const shadows: Shadows = {
76
- xs: "0px 4px 4px 0px rgba(18, 18, 18, 0.04), 0px 1px 3px 0px rgba(39, 41, 45, 0.02)",
77
- sm: "0px 4px 4px 0px rgba(18, 18, 18, 0.08), 0px 1px 3px 0px rgba(39, 41, 45, 0.04)",
78
- md: "0px 8px 8px 0px rgba(18, 18, 18, 0.16), 0px 2px 3px 0px rgba(39, 41, 45, 0.06)",
79
- lg: "0px 16px 24px 0px rgba(18, 18, 18, 0.20), 0px 2px 3px 0px rgba(39, 41, 45, 0.08)",
80
- xl: "0px 24px 32px 0px rgba(18, 18, 18, 0.24), 0px 2px 3px 0px rgba(39, 41, 45, 0.12)",
81
- };
82
-
83
- export const shadowsDark: Shadows = {
84
- xs: "0px 4px 4px 0px rgba(255, 255, 255, 0.04), 0px 1px 3px 0px rgba(255, 255, 255, 0.02)",
85
- sm: "0px 4px 4px 0px rgba(255, 255, 255, 0.08), 0px 1px 3px 0px rgba(255, 255, 255, 0.04)",
86
- md: "0px 8px 8px 0px rgba(255, 255, 255, 0.16), 0px 2px 3px 0px rgba(255, 255, 255, 0.06)",
87
- lg: "0px 16px 24px 0px rgba(255, 255, 255, 0.20), 0px 2px 3px 0px rgba(255, 255, 255, 0.08)",
88
- xl: "0px 24px 32px 0px rgba(255, 255, 255, 0.24), 0px 2px 3px 0px rgba(255, 255, 255, 0.12)",
89
- };
90
-
91
- export const fonts: Fonts = {
92
- text: "Inter",
93
- head: "Inter",
94
- mono: "monospace",
95
- };
96
-
97
- export const fontSizes: FontSizes = {
98
- hero1: { xs: "72px", lg: "128px" },
99
- hero2: { xs: "60px", lg: "96px" },
100
- hero3: { xs: "36px", lg: "72px" },
101
-
102
- h1: { xs: "40px", lg: "60px" },
103
- h2: { xs: "30px", lg: "36px" },
104
- h3: { xs: "28px", lg: "30px" },
105
- h4: { xs: "26px", lg: "24px" },
106
- h5: { xs: "18px", lg: "20px" },
107
- h6: { xs: "16px", lg: "18px" },
108
-
109
- text: { xs: "14px", lg: "16px" },
110
- strong: { xs: "14px", lg: "16px" },
111
- small: { xs: "12px", lg: "14px" },
112
-
113
- blockquote: { xs: "16px", lg: "18px" },
114
- code: { xs: "14px", lg: "16px" },
115
-
116
- button: { xs: "16px", lg: "16px" },
117
- buttonBig: { xs: "18px", lg: "18px" },
118
- buttonSmall: { xs: "14px", lg: "14px" },
119
-
120
- input: { xs: "16px", lg: "16px" },
121
- inputBig: { xs: "18px", lg: "18px" },
122
- inputSmall: { xs: "14px", lg: "14px" },
123
- };
124
-
125
- export const lineHeights: LineHeights = {
126
- hero1: { xs: "1.10", lg: "1.10" },
127
- hero2: { xs: "1.10", lg: "1.10" },
128
- hero3: { xs: "1.20", lg: "1.10" },
129
-
130
- h1: { xs: "1.50", lg: "1.40" },
131
- h2: { xs: "1.50", lg: "1.50" },
132
- h3: { xs: "1.30", lg: "1.50" },
133
- h4: { xs: "1.30", lg: "1.50" },
134
- h5: { xs: "1.60", lg: "1.50" },
135
- h6: { xs: "1.60", lg: "1.60" },
136
-
137
- text: { xs: "1.70", lg: "1.70" },
138
- strong: { xs: "1.70", lg: "1.70" },
139
- small: { xs: "1.70", lg: "1.70" },
140
-
141
- blockquote: { xs: "1.70", lg: "1.70" },
142
- code: { xs: "1.70", lg: "1.70" },
143
-
144
- button: { xs: "1.00", lg: "1.00" },
145
- buttonBig: { xs: "1.00", lg: "1.00" },
146
- buttonSmall: { xs: "1.00", lg: "1.00" },
147
-
148
- input: { xs: "1.00", lg: "1.00" },
149
- inputBig: { xs: "1.00", lg: "1.00" },
150
- inputSmall: { xs: "1.00", lg: "1.00" },
151
- };
152
-
153
- export const theme: Theme = {
154
- breakpoints,
155
- spacing,
156
- colors,
157
- shadows,
158
- fonts,
159
- fontSizes,
160
- lineHeights,
161
- isDark: false,
162
- };
163
-
164
- export const themeDark: Theme = {
165
- breakpoints,
166
- spacing,
167
- colors: colorsDark,
168
- shadows: shadowsDark,
169
- fonts,
170
- fontSizes,
171
- lineHeights,
172
- isDark: true,
173
- };
174
-
175
- export interface Breakpoints<TNumber = number> {
176
- xs: TNumber;
177
- sm: TNumber;
178
- md: TNumber;
179
- lg: TNumber;
180
- xl: TNumber;
181
- xxl: TNumber;
182
- xxxl: TNumber;
183
- }
184
-
185
- export interface Spacing<TString = string> {
186
- maxWidth: { xs: TString; xxxl: TString };
187
- padding: { xs: TString; lg: TString };
188
- radius: { xs: TString; lg: TString; xl: TString };
189
- gridGap: { xs: TString; lg: TString };
190
- }
191
-
192
- export interface Colors<TString = string> {
193
- primaryLight: TString;
194
- primary: TString;
195
- primaryDark: TString;
196
-
197
- secondaryLight: TString;
198
- secondary: TString;
199
- secondaryDark: TString;
200
-
201
- tertiaryLight: TString;
202
- tertiary: TString;
203
- tertiaryDark: TString;
204
-
205
- grayLight: TString;
206
- gray: TString;
207
- grayDark: TString;
208
-
209
- success: TString;
210
- error: TString;
211
- warning: TString;
212
- info: TString;
213
-
214
- dark: TString;
215
- light: TString;
216
- }
217
-
218
- interface Shadows<TString = string> {
219
- xs: TString;
220
- sm: TString;
221
- md: TString;
222
- lg: TString;
223
- xl: TString;
224
- }
225
-
226
- export interface Fonts<TString = string> {
227
- head: TString;
228
- text: TString;
229
- mono: TString;
230
- }
231
-
232
- export interface FontSizes<TString = string> {
233
- hero1: { xs: TString; lg: TString };
234
- hero2: { xs: TString; lg: TString };
235
- hero3: { xs: TString; lg: TString };
236
-
237
- h1: { xs: TString; lg: TString };
238
- h2: { xs: TString; lg: TString };
239
- h3: { xs: TString; lg: TString };
240
- h4: { xs: TString; lg: TString };
241
- h5: { xs: TString; lg: TString };
242
- h6: { xs: TString; lg: TString };
243
-
244
- text: { xs: TString; lg: TString };
245
- strong: { xs: TString; lg: TString };
246
- small: { xs: TString; lg: TString };
247
-
248
- blockquote: { xs: TString; lg: TString };
249
- code: { xs: TString; lg: TString };
250
-
251
- button: { xs: TString; lg: TString };
252
- buttonBig: { xs: TString; lg: TString };
253
- buttonSmall: { xs: TString; lg: TString };
254
-
255
- input: { xs: TString; lg: TString };
256
- inputBig: { xs: TString; lg: TString };
257
- inputSmall: { xs: TString; lg: TString };
258
- }
259
-
260
- export interface LineHeights<TString = string> {
261
- hero1: { xs: TString; lg: TString };
262
- hero2: { xs: TString; lg: TString };
263
- hero3: { xs: TString; lg: TString };
264
-
265
- h1: { xs: TString; lg: TString };
266
- h2: { xs: TString; lg: TString };
267
- h3: { xs: TString; lg: TString };
268
- h4: { xs: TString; lg: TString };
269
- h5: { xs: TString; lg: TString };
270
- h6: { xs: TString; lg: TString };
271
-
272
- text: { xs: TString; lg: TString };
273
- strong: { xs: TString; lg: TString };
274
- small: { xs: TString; lg: TString };
275
-
276
- blockquote: { xs: TString; lg: TString };
277
- code: { xs: TString; lg: TString };
278
-
279
- button: { xs: TString; lg: TString };
280
- buttonBig: { xs: TString; lg: TString };
281
- buttonSmall: { xs: TString; lg: TString };
282
-
283
- input: { xs: TString; lg: TString };
284
- inputBig: { xs: TString; lg: TString };
285
- inputSmall: { xs: TString; lg: TString };
286
- }
287
-
288
- export interface Theme {
289
- breakpoints: Breakpoints;
290
- spacing: Spacing;
291
- colors: Colors;
292
- shadows: Shadows;
293
- fonts: Fonts;
294
- fontSizes: FontSizes;
295
- lineHeights: LineHeights;
296
- isDark: boolean;
297
- }
@@ -1,204 +0,0 @@
1
- "use client";
2
- import { css } from "styled-components";
3
- import { Theme, mq } from "./theme";
4
-
5
- const styledHero1 = (theme: Theme) => css`
6
- font-size: ${theme.fontSizes.hero1.xs};
7
- line-height: ${theme.lineHeights.hero1.xs};
8
-
9
- ${mq("lg")} {
10
- font-size: ${theme.fontSizes.hero1.lg};
11
- line-height: ${theme.lineHeights.hero1.lg};
12
- }
13
- `;
14
-
15
- const styledHero2 = (theme: Theme) => css`
16
- font-size: ${theme.fontSizes.hero2.xs};
17
- line-height: ${theme.lineHeights.hero2.xs};
18
-
19
- ${mq("lg")} {
20
- font-size: ${theme.fontSizes.hero2.lg};
21
- line-height: ${theme.lineHeights.hero2.lg};
22
- }
23
- `;
24
-
25
- const styledHero3 = (theme: Theme) => css`
26
- font-size: ${theme.fontSizes.hero3.xs};
27
- line-height: ${theme.lineHeights.hero3.xs};
28
-
29
- ${mq("lg")} {
30
- font-size: ${theme.fontSizes.hero3.lg};
31
- line-height: ${theme.lineHeights.hero3.lg};
32
- }
33
- `;
34
-
35
- const styledH1 = (theme: Theme) => css`
36
- font-size: ${theme.fontSizes.h1.xs};
37
- line-height: ${theme.lineHeights.h1.xs};
38
-
39
- ${mq("lg")} {
40
- font-size: ${theme.fontSizes.h1.lg};
41
- line-height: ${theme.lineHeights.h1.lg};
42
- }
43
- `;
44
-
45
- const styledH2 = (theme: Theme) => css`
46
- font-size: ${theme.fontSizes.h2.xs};
47
- line-height: ${theme.lineHeights.h2.xs};
48
-
49
- ${mq("lg")} {
50
- font-size: ${theme.fontSizes.h2.lg};
51
- line-height: ${theme.lineHeights.h2.lg};
52
- }
53
- `;
54
-
55
- const styledH3 = (theme: Theme) => css`
56
- font-size: ${theme.fontSizes.h3.xs};
57
- line-height: ${theme.lineHeights.h3.xs};
58
-
59
- ${mq("lg")} {
60
- font-size: ${theme.fontSizes.h3.lg};
61
- line-height: ${theme.lineHeights.h3.lg};
62
- }
63
- `;
64
-
65
- const styledH4 = (theme: Theme) => css`
66
- font-size: ${theme.fontSizes.h4.xs};
67
- line-height: ${theme.lineHeights.h4.xs};
68
-
69
- ${mq("lg")} {
70
- font-size: ${theme.fontSizes.h4.lg};
71
- line-height: ${theme.lineHeights.h4.lg};
72
- }
73
- `;
74
-
75
- const styledH5 = (theme: Theme) => css`
76
- font-size: ${theme.fontSizes.h5.xs};
77
- line-height: ${theme.lineHeights.h5.xs};
78
-
79
- ${mq("lg")} {
80
- font-size: ${theme.fontSizes.h5.lg};
81
- line-height: ${theme.lineHeights.h5.lg};
82
- }
83
- `;
84
-
85
- const styledH6 = (theme: Theme) => css`
86
- font-size: ${theme.fontSizes.h6.xs};
87
- line-height: ${theme.lineHeights.h6.xs};
88
-
89
- ${mq("lg")} {
90
- font-size: ${theme.fontSizes.h6.lg};
91
- line-height: ${theme.lineHeights.h6.lg};
92
- }
93
- `;
94
-
95
- const styledText = (theme: Theme) => css`
96
- font-size: ${theme.fontSizes.text.xs};
97
- line-height: ${theme.lineHeights.text.xs};
98
-
99
- ${mq("lg")} {
100
- font-size: ${theme.fontSizes.text.lg};
101
- line-height: ${theme.lineHeights.text.lg};
102
- }
103
- `;
104
-
105
- const styledStrong = (theme: Theme) => css`
106
- font-size: ${theme.fontSizes.strong.xs};
107
- line-height: ${theme.lineHeights.strong.xs};
108
-
109
- ${mq("lg")} {
110
- font-size: ${theme.fontSizes.strong.lg};
111
- line-height: ${theme.lineHeights.strong.lg};
112
- }
113
- `;
114
-
115
- const styledSmall = (theme: Theme) => css`
116
- font-size: ${theme.fontSizes.small.xs};
117
- line-height: ${theme.lineHeights.small.xs};
118
-
119
- ${mq("lg")} {
120
- font-size: ${theme.fontSizes.small.lg};
121
- line-height: ${theme.lineHeights.small.lg};
122
- }
123
- `;
124
-
125
- const styledBlockquote = (theme: Theme) => css`
126
- font-size: ${theme.fontSizes.blockquote.xs};
127
- line-height: ${theme.lineHeights.blockquote.xs};
128
-
129
- ${mq("lg")} {
130
- font-size: ${theme.fontSizes.blockquote.lg};
131
- line-height: ${theme.lineHeights.blockquote.lg};
132
- }
133
- `;
134
-
135
- const styledCode = (theme: Theme) => css`
136
- font-size: ${theme.fontSizes.code.xs};
137
- line-height: ${theme.lineHeights.code.xs};
138
-
139
- ${mq("lg")} {
140
- font-size: ${theme.fontSizes.code.lg};
141
- line-height: ${theme.lineHeights.code.lg};
142
- }
143
- `;
144
-
145
- const styledButton = (theme: Theme) => css`
146
- font-size: ${theme.fontSizes.button.xs};
147
- line-height: ${theme.lineHeights.button.xs};
148
-
149
- ${mq("lg")} {
150
- font-size: ${theme.fontSizes.button.lg};
151
- line-height: ${theme.lineHeights.button.lg};
152
- }
153
- `;
154
-
155
- const styledButtonBig = (theme: Theme) => css`
156
- font-size: ${theme.fontSizes.buttonBig.xs};
157
- line-height: ${theme.lineHeights.buttonBig.xs};
158
-
159
- ${mq("lg")} {
160
- font-size: ${theme.fontSizes.buttonBig.lg};
161
- line-height: ${theme.lineHeights.buttonBig.lg};
162
- }
163
- `;
164
-
165
- const styledInput = (theme: Theme) => css`
166
- font-size: ${theme.fontSizes.input.xs};
167
- line-height: ${theme.lineHeights.input.xs};
168
-
169
- ${mq("lg")} {
170
- font-size: ${theme.fontSizes.input.lg};
171
- line-height: ${theme.lineHeights.input.lg};
172
- }
173
- `;
174
-
175
- const styledInputBig = (theme: Theme) => css`
176
- font-size: ${theme.fontSizes.inputBig.xs};
177
- line-height: ${theme.lineHeights.inputBig.xs};
178
-
179
- ${mq("lg")} {
180
- font-size: ${theme.fontSizes.inputBig.lg};
181
- line-height: ${theme.lineHeights.inputBig.lg};
182
- }
183
- `;
184
-
185
- export {
186
- styledHero1,
187
- styledHero2,
188
- styledHero3,
189
- styledH1,
190
- styledH2,
191
- styledH3,
192
- styledH4,
193
- styledH5,
194
- styledH6,
195
- styledText,
196
- styledStrong,
197
- styledSmall,
198
- styledBlockquote,
199
- styledCode,
200
- styledButton,
201
- styledButtonBig,
202
- styledInput,
203
- styledInputBig,
204
- };
package/src/main.tsx DELETED
@@ -1,19 +0,0 @@
1
- import React from "react";
2
- import ReactDOM from "react-dom/client";
3
- import {
4
- CherryThemeProvider,
5
- StyledComponentsRegistry,
6
- theme,
7
- themeDark,
8
- } from "./lib/index.js";
9
- import App from "./App";
10
-
11
- ReactDOM.createRoot(document.getElementById("root")!).render(
12
- <React.StrictMode>
13
- <StyledComponentsRegistry>
14
- <CherryThemeProvider theme={theme} themeDark={themeDark}>
15
- <App />
16
- </CherryThemeProvider>
17
- </StyledComponentsRegistry>
18
- </React.StrictMode>,
19
- );
@@ -1,25 +0,0 @@
1
- import React, { useContext } from "react";
2
- import { useTheme } from "styled-components";
3
- import { theme as themeLight, themeDark, ThemeContext, Toggle } from "./lib";
4
-
5
- function ToggleTheme() {
6
- const theme = useTheme();
7
- const { setTheme } = useContext(ThemeContext);
8
-
9
- return (
10
- <Toggle
11
- $label="Toggle Theme"
12
- onChange={() => {
13
- if (theme.isDark) {
14
- setTheme(themeLight);
15
- localStorage.theme = "light";
16
- } else {
17
- setTheme(themeDark);
18
- localStorage.theme = "dark";
19
- }
20
- }}
21
- />
22
- );
23
- }
24
-
25
- export { ToggleTheme };
package/src/vite-env.d.ts DELETED
@@ -1,8 +0,0 @@
1
- /// <reference types="vite/client" />
2
-
3
- import "styled-components";
4
- import { Theme } from "./lib/utils/theme";
5
-
6
- declare module "styled-components" {
7
- export interface DefaultTheme extends Theme {}
8
- }
package/tsconfig.json DELETED
@@ -1,24 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "lib": ["dom", "dom.iterable"],
4
- "allowJs": true,
5
- "skipLibCheck": true,
6
- "strict": true,
7
- "noEmit": false,
8
- "declaration": true,
9
- "emitDeclarationOnly": true,
10
- "outDir": "./types",
11
- "esModuleInterop": true,
12
- "module": "ES6",
13
- "moduleResolution": "bundler",
14
- "resolveJsonModule": true,
15
- "isolatedModules": true,
16
- "jsx": "preserve",
17
- "incremental": true,
18
- "paths": {
19
- "@/*": ["./src/*"]
20
- }
21
- },
22
- "include": ["**/*.ts", "**/*.tsx"],
23
- "exclude": ["node_modules"]
24
- }
package/vite.config.js DELETED
@@ -1,24 +0,0 @@
1
- import { defineConfig } from "vite";
2
- import react from "@vitejs/plugin-react";
3
- import dts from "vite-plugin-dts";
4
-
5
- export default defineConfig({
6
- plugins: [react(), dts()],
7
- build: {
8
- lib: {
9
- entry: "src/lib/index.ts",
10
- name: "Cherry",
11
- formats: ["es", "umd"],
12
- fileName: "cherry",
13
- },
14
- rollupOptions: {
15
- external: ["react", "react-dom"],
16
- output: {
17
- globals: {
18
- react: "React",
19
- "react-dom": "ReactDOM",
20
- },
21
- },
22
- },
23
- },
24
- });