@poodle-kit/ui 0.1.0

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/index.css ADDED
@@ -0,0 +1,461 @@
1
+ /* src/tailwind.css */
2
+ @layer properties;
3
+ @layer theme, base, components, utilities;
4
+ @layer theme {
5
+ :root,
6
+ :host {
7
+ --font-sans:
8
+ ui-sans-serif,
9
+ system-ui,
10
+ sans-serif,
11
+ "Apple Color Emoji",
12
+ "Segoe UI Emoji",
13
+ "Segoe UI Symbol",
14
+ "Noto Color Emoji";
15
+ --font-mono:
16
+ ui-monospace,
17
+ SFMono-Regular,
18
+ Menlo,
19
+ Monaco,
20
+ Consolas,
21
+ "Liberation Mono",
22
+ "Courier New",
23
+ monospace;
24
+ --color-red-600: oklch(57.7% 0.245 27.325);
25
+ --color-red-700: oklch(50.5% 0.213 27.518);
26
+ --color-blue-600: oklch(54.6% 0.245 262.881);
27
+ --color-blue-700: oklch(48.8% 0.243 264.376);
28
+ --color-gray-100: oklch(96.7% 0.003 264.542);
29
+ --color-gray-200: oklch(92.8% 0.006 264.531);
30
+ --color-gray-400: oklch(70.7% 0.022 261.325);
31
+ --color-gray-900: oklch(21% 0.034 264.665);
32
+ --color-white: #fff;
33
+ --spacing: 0.25rem;
34
+ --text-sm: 0.875rem;
35
+ --text-sm--line-height: calc(1.25 / 0.875);
36
+ --text-base: 1rem;
37
+ --text-base--line-height: calc(1.5 / 1);
38
+ --font-weight-semibold: 600;
39
+ --radius-lg: 0.5rem;
40
+ --default-transition-duration: 150ms;
41
+ --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
42
+ --default-font-family: var(--font-sans);
43
+ --default-mono-font-family: var(--font-mono);
44
+ }
45
+ }
46
+ @layer base {
47
+ *,
48
+ ::after,
49
+ ::before,
50
+ ::backdrop,
51
+ ::file-selector-button {
52
+ box-sizing: border-box;
53
+ margin: 0;
54
+ padding: 0;
55
+ border: 0 solid;
56
+ }
57
+ html,
58
+ :host {
59
+ line-height: 1.5;
60
+ -webkit-text-size-adjust: 100%;
61
+ tab-size: 4;
62
+ font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
63
+ font-feature-settings: var(--default-font-feature-settings, normal);
64
+ font-variation-settings: var(--default-font-variation-settings, normal);
65
+ -webkit-tap-highlight-color: transparent;
66
+ }
67
+ hr {
68
+ height: 0;
69
+ color: inherit;
70
+ border-top-width: 1px;
71
+ }
72
+ abbr:where([title]) {
73
+ -webkit-text-decoration: underline dotted;
74
+ text-decoration: underline dotted;
75
+ }
76
+ h1,
77
+ h2,
78
+ h3,
79
+ h4,
80
+ h5,
81
+ h6 {
82
+ font-size: inherit;
83
+ font-weight: inherit;
84
+ }
85
+ a {
86
+ color: inherit;
87
+ -webkit-text-decoration: inherit;
88
+ text-decoration: inherit;
89
+ }
90
+ b,
91
+ strong {
92
+ font-weight: bolder;
93
+ }
94
+ code,
95
+ kbd,
96
+ samp,
97
+ pre {
98
+ font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
99
+ font-feature-settings: var(--default-mono-font-feature-settings, normal);
100
+ font-variation-settings: var(--default-mono-font-variation-settings, normal);
101
+ font-size: 1em;
102
+ }
103
+ small {
104
+ font-size: 80%;
105
+ }
106
+ sub,
107
+ sup {
108
+ font-size: 75%;
109
+ line-height: 0;
110
+ position: relative;
111
+ vertical-align: baseline;
112
+ }
113
+ sub {
114
+ bottom: -0.25em;
115
+ }
116
+ sup {
117
+ top: -0.5em;
118
+ }
119
+ table {
120
+ text-indent: 0;
121
+ border-color: inherit;
122
+ border-collapse: collapse;
123
+ }
124
+ :-moz-focusring {
125
+ outline: auto;
126
+ }
127
+ progress {
128
+ vertical-align: baseline;
129
+ }
130
+ summary {
131
+ display: list-item;
132
+ }
133
+ ol,
134
+ ul,
135
+ menu {
136
+ list-style: none;
137
+ }
138
+ img,
139
+ svg,
140
+ video,
141
+ canvas,
142
+ audio,
143
+ iframe,
144
+ embed,
145
+ object {
146
+ display: block;
147
+ vertical-align: middle;
148
+ }
149
+ img,
150
+ video {
151
+ max-width: 100%;
152
+ height: auto;
153
+ }
154
+ button,
155
+ input,
156
+ select,
157
+ optgroup,
158
+ textarea,
159
+ ::file-selector-button {
160
+ font: inherit;
161
+ font-feature-settings: inherit;
162
+ font-variation-settings: inherit;
163
+ letter-spacing: inherit;
164
+ color: inherit;
165
+ border-radius: 0;
166
+ background-color: transparent;
167
+ opacity: 1;
168
+ }
169
+ :where(select:is([multiple], [size])) optgroup {
170
+ font-weight: bolder;
171
+ }
172
+ :where(select:is([multiple], [size])) optgroup option {
173
+ padding-inline-start: 20px;
174
+ }
175
+ ::file-selector-button {
176
+ margin-inline-end: 4px;
177
+ }
178
+ ::placeholder {
179
+ opacity: 1;
180
+ }
181
+ @supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
182
+ ::placeholder {
183
+ color: currentcolor;
184
+ @supports (color: color-mix(in lab, red, red)) {
185
+ color: color-mix(in oklab, currentcolor 50%, transparent);
186
+ }
187
+ }
188
+ }
189
+ textarea {
190
+ resize: vertical;
191
+ }
192
+ ::-webkit-search-decoration {
193
+ -webkit-appearance: none;
194
+ }
195
+ ::-webkit-date-and-time-value {
196
+ min-height: 1lh;
197
+ text-align: inherit;
198
+ }
199
+ ::-webkit-datetime-edit {
200
+ display: inline-flex;
201
+ }
202
+ ::-webkit-datetime-edit-fields-wrapper {
203
+ padding: 0;
204
+ }
205
+ ::-webkit-datetime-edit,
206
+ ::-webkit-datetime-edit-year-field,
207
+ ::-webkit-datetime-edit-month-field,
208
+ ::-webkit-datetime-edit-day-field,
209
+ ::-webkit-datetime-edit-hour-field,
210
+ ::-webkit-datetime-edit-minute-field,
211
+ ::-webkit-datetime-edit-second-field,
212
+ ::-webkit-datetime-edit-millisecond-field,
213
+ ::-webkit-datetime-edit-meridiem-field {
214
+ padding-block: 0;
215
+ }
216
+ ::-webkit-calendar-picker-indicator {
217
+ line-height: 1;
218
+ }
219
+ :-moz-ui-invalid {
220
+ box-shadow: none;
221
+ }
222
+ button,
223
+ input:where([type=button], [type=reset], [type=submit]),
224
+ ::file-selector-button {
225
+ appearance: button;
226
+ }
227
+ ::-webkit-inner-spin-button,
228
+ ::-webkit-outer-spin-button {
229
+ height: auto;
230
+ }
231
+ [hidden]:where(:not([hidden=until-found])) {
232
+ display: none !important;
233
+ }
234
+ }
235
+ @layer utilities {
236
+ .flex {
237
+ display: flex;
238
+ }
239
+ .grid {
240
+ display: grid;
241
+ }
242
+ .inline-flex {
243
+ display: inline-flex;
244
+ }
245
+ .h-8 {
246
+ height: calc(var(--spacing) * 8);
247
+ }
248
+ .h-10 {
249
+ height: calc(var(--spacing) * 10);
250
+ }
251
+ .h-12 {
252
+ height: calc(var(--spacing) * 12);
253
+ }
254
+ .w-full {
255
+ width: 100%;
256
+ }
257
+ .grid-cols-2 {
258
+ grid-template-columns: repeat(2, minmax(0, 1fr));
259
+ }
260
+ .items-center {
261
+ align-items: center;
262
+ }
263
+ .justify-center {
264
+ justify-content: center;
265
+ }
266
+ .gap-3 {
267
+ gap: calc(var(--spacing) * 3);
268
+ }
269
+ .rounded-lg {
270
+ border-radius: var(--radius-lg);
271
+ }
272
+ .border {
273
+ border-style: var(--tw-border-style);
274
+ border-width: 1px;
275
+ }
276
+ .border-gray-200 {
277
+ border-color: var(--color-gray-200);
278
+ }
279
+ .bg-blue-600 {
280
+ background-color: var(--color-blue-600);
281
+ }
282
+ .bg-gray-100 {
283
+ background-color: var(--color-gray-100);
284
+ }
285
+ .bg-red-600 {
286
+ background-color: var(--color-red-600);
287
+ }
288
+ .bg-transparent {
289
+ background-color: transparent;
290
+ }
291
+ .px-3 {
292
+ padding-inline: calc(var(--spacing) * 3);
293
+ }
294
+ .px-4 {
295
+ padding-inline: calc(var(--spacing) * 4);
296
+ }
297
+ .px-5 {
298
+ padding-inline: calc(var(--spacing) * 5);
299
+ }
300
+ .text-base {
301
+ font-size: var(--text-base);
302
+ line-height: var(--tw-leading, var(--text-base--line-height));
303
+ }
304
+ .text-sm {
305
+ font-size: var(--text-sm);
306
+ line-height: var(--tw-leading, var(--text-sm--line-height));
307
+ }
308
+ .font-semibold {
309
+ --tw-font-weight: var(--font-weight-semibold);
310
+ font-weight: var(--font-weight-semibold);
311
+ }
312
+ .text-gray-900 {
313
+ color: var(--color-gray-900);
314
+ }
315
+ .text-white {
316
+ color: var(--color-white);
317
+ }
318
+ .shadow-sm {
319
+ --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
320
+ box-shadow:
321
+ var(--tw-inset-shadow),
322
+ var(--tw-inset-ring-shadow),
323
+ var(--tw-ring-offset-shadow),
324
+ var(--tw-ring-shadow),
325
+ var(--tw-shadow);
326
+ }
327
+ .transition-colors {
328
+ transition-property:
329
+ color,
330
+ background-color,
331
+ border-color,
332
+ outline-color,
333
+ text-decoration-color,
334
+ fill,
335
+ stroke,
336
+ --tw-gradient-from,
337
+ --tw-gradient-via,
338
+ --tw-gradient-to;
339
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
340
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
341
+ }
342
+ .hover\:bg-blue-700 {
343
+ &:hover {
344
+ @media (hover: hover) {
345
+ background-color: var(--color-blue-700);
346
+ }
347
+ }
348
+ }
349
+ .hover\:bg-gray-100 {
350
+ &:hover {
351
+ @media (hover: hover) {
352
+ background-color: var(--color-gray-100);
353
+ }
354
+ }
355
+ }
356
+ .hover\:bg-gray-200 {
357
+ &:hover {
358
+ @media (hover: hover) {
359
+ background-color: var(--color-gray-200);
360
+ }
361
+ }
362
+ }
363
+ .hover\:bg-red-700 {
364
+ &:hover {
365
+ @media (hover: hover) {
366
+ background-color: var(--color-red-700);
367
+ }
368
+ }
369
+ }
370
+ .focus-visible\:ring-2 {
371
+ &:focus-visible {
372
+ --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
373
+ box-shadow:
374
+ var(--tw-inset-shadow),
375
+ var(--tw-inset-ring-shadow),
376
+ var(--tw-ring-offset-shadow),
377
+ var(--tw-ring-shadow),
378
+ var(--tw-shadow);
379
+ }
380
+ }
381
+ .focus-visible\:ring-blue-600 {
382
+ &:focus-visible {
383
+ --tw-ring-color: var(--color-blue-600);
384
+ }
385
+ }
386
+ .focus-visible\:ring-gray-400 {
387
+ &:focus-visible {
388
+ --tw-ring-color: var(--color-gray-400);
389
+ }
390
+ }
391
+ .focus-visible\:ring-red-600 {
392
+ &:focus-visible {
393
+ --tw-ring-color: var(--color-red-600);
394
+ }
395
+ }
396
+ .focus-visible\:ring-offset-2 {
397
+ &:focus-visible {
398
+ --tw-ring-offset-width: 2px;
399
+ --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
400
+ }
401
+ }
402
+ .focus-visible\:outline-none {
403
+ &:focus-visible {
404
+ --tw-outline-style: none;
405
+ outline-style: none;
406
+ }
407
+ }
408
+ .disabled\:cursor-not-allowed {
409
+ &:disabled {
410
+ cursor: not-allowed;
411
+ }
412
+ }
413
+ .disabled\:opacity-50 {
414
+ &:disabled {
415
+ opacity: 50%;
416
+ }
417
+ }
418
+ }
419
+ @property --tw-border-style { syntax: "*"; inherits: false; initial-value: solid; }
420
+ @property --tw-font-weight { syntax: "*"; inherits: false; }
421
+ @property --tw-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
422
+ @property --tw-shadow-color { syntax: "*"; inherits: false; }
423
+ @property --tw-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
424
+ @property --tw-inset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
425
+ @property --tw-inset-shadow-color { syntax: "*"; inherits: false; }
426
+ @property --tw-inset-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
427
+ @property --tw-ring-color { syntax: "*"; inherits: false; }
428
+ @property --tw-ring-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
429
+ @property --tw-inset-ring-color { syntax: "*"; inherits: false; }
430
+ @property --tw-inset-ring-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
431
+ @property --tw-ring-inset { syntax: "*"; inherits: false; }
432
+ @property --tw-ring-offset-width { syntax: "<length>"; inherits: false; initial-value: 0px; }
433
+ @property --tw-ring-offset-color { syntax: "*"; inherits: false; initial-value: #fff; }
434
+ @property --tw-ring-offset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
435
+ @layer properties {
436
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
437
+ *,
438
+ ::before,
439
+ ::after,
440
+ ::backdrop {
441
+ --tw-border-style: solid;
442
+ --tw-font-weight: initial;
443
+ --tw-shadow: 0 0 #0000;
444
+ --tw-shadow-color: initial;
445
+ --tw-shadow-alpha: 100%;
446
+ --tw-inset-shadow: 0 0 #0000;
447
+ --tw-inset-shadow-color: initial;
448
+ --tw-inset-shadow-alpha: 100%;
449
+ --tw-ring-color: initial;
450
+ --tw-ring-shadow: 0 0 #0000;
451
+ --tw-inset-ring-color: initial;
452
+ --tw-inset-ring-shadow: 0 0 #0000;
453
+ --tw-ring-inset: initial;
454
+ --tw-ring-offset-width: 0px;
455
+ --tw-ring-offset-color: #fff;
456
+ --tw-ring-offset-shadow: 0 0 #0000;
457
+ }
458
+ }
459
+ }
460
+ /*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
461
+ /*# sourceMappingURL=index.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/tailwind.css"],"sourcesContent":["/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */\n@layer properties;\n@layer theme, base, components, utilities;\n@layer theme {\n :root, :host {\n --font-sans: ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\",\n \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\",\n \"Courier New\", monospace;\n --color-red-600: oklch(57.7% 0.245 27.325);\n --color-red-700: oklch(50.5% 0.213 27.518);\n --color-blue-600: oklch(54.6% 0.245 262.881);\n --color-blue-700: oklch(48.8% 0.243 264.376);\n --color-gray-100: oklch(96.7% 0.003 264.542);\n --color-gray-200: oklch(92.8% 0.006 264.531);\n --color-gray-400: oklch(70.7% 0.022 261.325);\n --color-gray-900: oklch(21% 0.034 264.665);\n --color-white: #fff;\n --spacing: 0.25rem;\n --text-sm: 0.875rem;\n --text-sm--line-height: calc(1.25 / 0.875);\n --text-base: 1rem;\n --text-base--line-height: calc(1.5 / 1);\n --font-weight-semibold: 600;\n --radius-lg: 0.5rem;\n --default-transition-duration: 150ms;\n --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n --default-font-family: var(--font-sans);\n --default-mono-font-family: var(--font-mono);\n }\n}\n@layer base {\n *, ::after, ::before, ::backdrop, ::file-selector-button {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n border: 0 solid;\n }\n html, :host {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n tab-size: 4;\n font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");\n font-feature-settings: var(--default-font-feature-settings, normal);\n font-variation-settings: var(--default-font-variation-settings, normal);\n -webkit-tap-highlight-color: transparent;\n }\n hr {\n height: 0;\n color: inherit;\n border-top-width: 1px;\n }\n abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n h1, h2, h3, h4, h5, h6 {\n font-size: inherit;\n font-weight: inherit;\n }\n a {\n color: inherit;\n -webkit-text-decoration: inherit;\n text-decoration: inherit;\n }\n b, strong {\n font-weight: bolder;\n }\n code, kbd, samp, pre {\n font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);\n font-feature-settings: var(--default-mono-font-feature-settings, normal);\n font-variation-settings: var(--default-mono-font-variation-settings, normal);\n font-size: 1em;\n }\n small {\n font-size: 80%;\n }\n sub, sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n sub {\n bottom: -0.25em;\n }\n sup {\n top: -0.5em;\n }\n table {\n text-indent: 0;\n border-color: inherit;\n border-collapse: collapse;\n }\n :-moz-focusring {\n outline: auto;\n }\n progress {\n vertical-align: baseline;\n }\n summary {\n display: list-item;\n }\n ol, ul, menu {\n list-style: none;\n }\n img, svg, video, canvas, audio, iframe, embed, object {\n display: block;\n vertical-align: middle;\n }\n img, video {\n max-width: 100%;\n height: auto;\n }\n button, input, select, optgroup, textarea, ::file-selector-button {\n font: inherit;\n font-feature-settings: inherit;\n font-variation-settings: inherit;\n letter-spacing: inherit;\n color: inherit;\n border-radius: 0;\n background-color: transparent;\n opacity: 1;\n }\n :where(select:is([multiple], [size])) optgroup {\n font-weight: bolder;\n }\n :where(select:is([multiple], [size])) optgroup option {\n padding-inline-start: 20px;\n }\n ::file-selector-button {\n margin-inline-end: 4px;\n }\n ::placeholder {\n opacity: 1;\n }\n @supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {\n ::placeholder {\n color: currentcolor;\n @supports (color: color-mix(in lab, red, red)) {\n color: color-mix(in oklab, currentcolor 50%, transparent);\n }\n }\n }\n textarea {\n resize: vertical;\n }\n ::-webkit-search-decoration {\n -webkit-appearance: none;\n }\n ::-webkit-date-and-time-value {\n min-height: 1lh;\n text-align: inherit;\n }\n ::-webkit-datetime-edit {\n display: inline-flex;\n }\n ::-webkit-datetime-edit-fields-wrapper {\n padding: 0;\n }\n ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {\n padding-block: 0;\n }\n ::-webkit-calendar-picker-indicator {\n line-height: 1;\n }\n :-moz-ui-invalid {\n box-shadow: none;\n }\n button, input:where([type=\"button\"], [type=\"reset\"], [type=\"submit\"]), ::file-selector-button {\n appearance: button;\n }\n ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {\n height: auto;\n }\n [hidden]:where(:not([hidden=\"until-found\"])) {\n display: none !important;\n }\n}\n@layer utilities {\n .flex {\n display: flex;\n }\n .grid {\n display: grid;\n }\n .inline-flex {\n display: inline-flex;\n }\n .h-8 {\n height: calc(var(--spacing) * 8);\n }\n .h-10 {\n height: calc(var(--spacing) * 10);\n }\n .h-12 {\n height: calc(var(--spacing) * 12);\n }\n .w-full {\n width: 100%;\n }\n .grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n .items-center {\n align-items: center;\n }\n .justify-center {\n justify-content: center;\n }\n .gap-3 {\n gap: calc(var(--spacing) * 3);\n }\n .rounded-lg {\n border-radius: var(--radius-lg);\n }\n .border {\n border-style: var(--tw-border-style);\n border-width: 1px;\n }\n .border-gray-200 {\n border-color: var(--color-gray-200);\n }\n .bg-blue-600 {\n background-color: var(--color-blue-600);\n }\n .bg-gray-100 {\n background-color: var(--color-gray-100);\n }\n .bg-red-600 {\n background-color: var(--color-red-600);\n }\n .bg-transparent {\n background-color: transparent;\n }\n .px-3 {\n padding-inline: calc(var(--spacing) * 3);\n }\n .px-4 {\n padding-inline: calc(var(--spacing) * 4);\n }\n .px-5 {\n padding-inline: calc(var(--spacing) * 5);\n }\n .text-base {\n font-size: var(--text-base);\n line-height: var(--tw-leading, var(--text-base--line-height));\n }\n .text-sm {\n font-size: var(--text-sm);\n line-height: var(--tw-leading, var(--text-sm--line-height));\n }\n .font-semibold {\n --tw-font-weight: var(--font-weight-semibold);\n font-weight: var(--font-weight-semibold);\n }\n .text-gray-900 {\n color: var(--color-gray-900);\n }\n .text-white {\n color: var(--color-white);\n }\n .shadow-sm {\n --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n }\n .transition-colors {\n transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;\n transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));\n transition-duration: var(--tw-duration, var(--default-transition-duration));\n }\n .hover\\:bg-blue-700 {\n &:hover {\n @media (hover: hover) {\n background-color: var(--color-blue-700);\n }\n }\n }\n .hover\\:bg-gray-100 {\n &:hover {\n @media (hover: hover) {\n background-color: var(--color-gray-100);\n }\n }\n }\n .hover\\:bg-gray-200 {\n &:hover {\n @media (hover: hover) {\n background-color: var(--color-gray-200);\n }\n }\n }\n .hover\\:bg-red-700 {\n &:hover {\n @media (hover: hover) {\n background-color: var(--color-red-700);\n }\n }\n }\n .focus-visible\\:ring-2 {\n &:focus-visible {\n --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);\n box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);\n }\n }\n .focus-visible\\:ring-blue-600 {\n &:focus-visible {\n --tw-ring-color: var(--color-blue-600);\n }\n }\n .focus-visible\\:ring-gray-400 {\n &:focus-visible {\n --tw-ring-color: var(--color-gray-400);\n }\n }\n .focus-visible\\:ring-red-600 {\n &:focus-visible {\n --tw-ring-color: var(--color-red-600);\n }\n }\n .focus-visible\\:ring-offset-2 {\n &:focus-visible {\n --tw-ring-offset-width: 2px;\n --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n }\n }\n .focus-visible\\:outline-none {\n &:focus-visible {\n --tw-outline-style: none;\n outline-style: none;\n }\n }\n .disabled\\:cursor-not-allowed {\n &:disabled {\n cursor: not-allowed;\n }\n }\n .disabled\\:opacity-50 {\n &:disabled {\n opacity: 50%;\n }\n }\n}\n@property --tw-border-style {\n syntax: \"*\";\n inherits: false;\n initial-value: solid;\n}\n@property --tw-font-weight {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-shadow {\n syntax: \"*\";\n inherits: false;\n initial-value: 0 0 #0000;\n}\n@property --tw-shadow-color {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-shadow-alpha {\n syntax: \"<percentage>\";\n inherits: false;\n initial-value: 100%;\n}\n@property --tw-inset-shadow {\n syntax: \"*\";\n inherits: false;\n initial-value: 0 0 #0000;\n}\n@property --tw-inset-shadow-color {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-inset-shadow-alpha {\n syntax: \"<percentage>\";\n inherits: false;\n initial-value: 100%;\n}\n@property --tw-ring-color {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-ring-shadow {\n syntax: \"*\";\n inherits: false;\n initial-value: 0 0 #0000;\n}\n@property --tw-inset-ring-color {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-inset-ring-shadow {\n syntax: \"*\";\n inherits: false;\n initial-value: 0 0 #0000;\n}\n@property --tw-ring-inset {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-ring-offset-width {\n syntax: \"<length>\";\n inherits: false;\n initial-value: 0px;\n}\n@property --tw-ring-offset-color {\n syntax: \"*\";\n inherits: false;\n initial-value: #fff;\n}\n@property --tw-ring-offset-shadow {\n syntax: \"*\";\n inherits: false;\n initial-value: 0 0 #0000;\n}\n@layer properties {\n @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {\n *, ::before, ::after, ::backdrop {\n --tw-border-style: solid;\n --tw-font-weight: initial;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-color: initial;\n --tw-shadow-alpha: 100%;\n --tw-inset-shadow: 0 0 #0000;\n --tw-inset-shadow-color: initial;\n --tw-inset-shadow-alpha: 100%;\n --tw-ring-color: initial;\n --tw-ring-shadow: 0 0 #0000;\n --tw-inset-ring-color: initial;\n --tw-inset-ring-shadow: 0 0 #0000;\n --tw-ring-inset: initial;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-offset-shadow: 0 0 #0000;\n }\n }\n}\n"],"mappings":";AACA;AACA;AACA;AACE;AAAA,EAAO;AACL;AAAA,MAAa,aAAa;AAAA,MAAE,SAAS;AAAA,MAAE,UAAU;AAAA,MAAE,mBAAmB;AAAA,MACpE,gBAAgB;AAAA,MAAE,iBAAiB;AAAA,MAAE;AACvC;AAAA,MAAa,YAAY;AAAA,MAAE,cAAc;AAAA,MAAE,KAAK;AAAA,MAAE,MAAM;AAAA,MAAE,QAAQ;AAAA,MAAE,iBAAiB;AAAA,MACnF,aAAa;AAAA,MAAE;AACjB,qBAAiB,MAAM,MAAM,MAAM;AACnC,qBAAiB,MAAM,MAAM,MAAM;AACnC,sBAAkB,MAAM,MAAM,MAAM;AACpC,sBAAkB,MAAM,MAAM,MAAM;AACpC,sBAAkB,MAAM,MAAM,MAAM;AACpC,sBAAkB,MAAM,MAAM,MAAM;AACpC,sBAAkB,MAAM,MAAM,MAAM;AACpC,sBAAkB,MAAM,IAAI,MAAM;AAClC,mBAAe;AACf,eAAW;AACX,eAAW;AACX,4BAAwB,KAAK,KAAK,EAAE;AACpC,iBAAa;AACb,8BAA0B,KAAK,IAAI,EAAE;AACrC,4BAAwB;AACxB,iBAAa;AAC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AE,KAAK;AAE1B,UAAU,sBAAsB,EAC9B,MAAM,EAAE,GAAG,EACX,QAAQ,EAAE,KAAK;AAEjB,UAAU,uBAAuB,EAC/B,MAAM,EAAE,GAAG,EACX,QAAQ,EAAE,KAAK,EACf,aAAa,EAAE,EAAE,EAAE,KAAK;AAE1B,UAAU,gBAAgB,EACxB,MAAM,EAAE,GAAG,EACX,QAAQ,EAAE,KAAK;AAEjB,UAAU,uBAAuB,EAC/B,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,KAAK,EACf,aAAa,EAAE,GAAG;AAEpB,UAAU,uBAAuB,EAC/B,MAAM,EAAE,GAAG,EACX,QAAQ,EAAE,KAAK,EACf,aAAa,EAAE,IAAI;AAErB,UAAU,wBAAwB,EAChC,MAAM,EAAE,GAAG,EACX,QAAQ,EAAE,KAAK,EACf,aAAa,EAAE,EAAE,EAAE,KAAK;AAE1B;AACE,YAAU,CAAC,CAAC,eAAe,EAAE,MAAM,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,CAAC,CAAC,WAAW,EAAE,QAAQ,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,EAAE,EAAE;AAC7H;AAAA,IAAG;AAAA,IAAU;AAAA,IAAS;AACpB,yBAAmB;AACnB,wBAAkB;AAClB,mBAAa,EAAE,EAAE;AACjB,yBAAmB;AACnB,yBAAmB;AACnB,yBAAmB,EAAE,EAAE;AACvB,+BAAyB;AACzB,+BAAyB;AACzB,uBAAiB;AACjB,wBAAkB,EAAE,EAAE;AACtB,6BAAuB;AACvB,8BAAwB,EAAE,EAAE;AAC5B,uBAAiB;AACjB,8BAAwB;AACxB,8BAAwB;AACxB,+BAAyB,EAAE,EAAE;AAC/B;AACF;AACF;","names":[]}
@@ -0,0 +1,14 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ButtonHTMLAttributes } from 'react';
3
+
4
+ type Variant = "primary" | "secondary" | "ghost" | "danger";
5
+ type Size = "sm" | "md" | "lg";
6
+ type ButtonProps = {
7
+ label: string;
8
+ variant?: Variant;
9
+ size?: Size;
10
+ fullWidth?: boolean;
11
+ } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children">;
12
+ declare function Button({ label, variant, size, fullWidth, className, ...rest }: ButtonProps): react_jsx_runtime.JSX.Element;
13
+
14
+ export { Button, type ButtonProps };
@@ -0,0 +1,14 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ButtonHTMLAttributes } from 'react';
3
+
4
+ type Variant = "primary" | "secondary" | "ghost" | "danger";
5
+ type Size = "sm" | "md" | "lg";
6
+ type ButtonProps = {
7
+ label: string;
8
+ variant?: Variant;
9
+ size?: Size;
10
+ fullWidth?: boolean;
11
+ } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children">;
12
+ declare function Button({ label, variant, size, fullWidth, className, ...rest }: ButtonProps): react_jsx_runtime.JSX.Element;
13
+
14
+ export { Button, type ButtonProps };
package/dist/index.js ADDED
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ Button: () => Button
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+
27
+ // src/components/Button.tsx
28
+ var import_jsx_runtime = require("react/jsx-runtime");
29
+ var base = "inline-flex items-center justify-center rounded-lg font-semibold transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed";
30
+ var sizes = {
31
+ sm: "h-8 px-3 text-sm",
32
+ md: "h-10 px-4 text-sm",
33
+ lg: "h-12 px-5 text-base"
34
+ };
35
+ var variants = {
36
+ primary: "bg-blue-600 text-white hover:bg-blue-700 focus-visible:ring-blue-600 shadow-sm",
37
+ secondary: "bg-gray-100 text-gray-900 hover:bg-gray-200 focus-visible:ring-gray-400 border border-gray-200",
38
+ ghost: "bg-transparent text-gray-900 hover:bg-gray-100 focus-visible:ring-gray-400",
39
+ danger: "bg-red-600 text-white hover:bg-red-700 focus-visible:ring-red-600 shadow-sm"
40
+ };
41
+ function cx(...classes) {
42
+ return classes.filter(Boolean).join(" ");
43
+ }
44
+ function Button({
45
+ label,
46
+ variant = "primary",
47
+ size = "md",
48
+ fullWidth = false,
49
+ className,
50
+ ...rest
51
+ }) {
52
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
53
+ "button",
54
+ {
55
+ type: "button",
56
+ className: cx(
57
+ base,
58
+ sizes[size],
59
+ variants[variant],
60
+ fullWidth && "w-full",
61
+ className
62
+ ),
63
+ ...rest,
64
+ children: label
65
+ }
66
+ );
67
+ }
68
+ // Annotate the CommonJS export names for ESM import in node:
69
+ 0 && (module.exports = {
70
+ Button
71
+ });
72
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts","../src/components/Button.tsx"],"sourcesContent":["// Tailwind CSS\nimport './tailwind.css';\n\n// Components\nexport { Button } from './components/Button';\nexport type { ButtonProps } from './components/Button';\n","import type { ButtonHTMLAttributes } from \"react\";\n\ntype Variant = \"primary\" | \"secondary\" | \"ghost\" | \"danger\";\ntype Size = \"sm\" | \"md\" | \"lg\";\n\nexport type ButtonProps = {\n label: string;\n variant?: Variant;\n size?: Size;\n fullWidth?: boolean;\n} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, \"children\">;\n\nconst base =\n \"inline-flex items-center justify-center rounded-lg font-semibold \" +\n \"transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 \" +\n \"disabled:opacity-50 disabled:cursor-not-allowed\";\n\nconst sizes: Record<Size, string> = {\n sm: \"h-8 px-3 text-sm\",\n md: \"h-10 px-4 text-sm\",\n lg: \"h-12 px-5 text-base\",\n};\n\nconst variants: Record<Variant, string> = {\n primary:\n \"bg-blue-600 text-white hover:bg-blue-700 focus-visible:ring-blue-600 shadow-sm\",\n secondary:\n \"bg-gray-100 text-gray-900 hover:bg-gray-200 focus-visible:ring-gray-400 border border-gray-200\",\n ghost:\n \"bg-transparent text-gray-900 hover:bg-gray-100 focus-visible:ring-gray-400\",\n danger:\n \"bg-red-600 text-white hover:bg-red-700 focus-visible:ring-red-600 shadow-sm\",\n};\n\n// className 합치기(외부 라이브러리 없이)\nfunction cx(...classes: Array<string | undefined | false>) {\n return classes.filter(Boolean).join(\" \");\n}\n\nexport function Button({\n label,\n variant = \"primary\",\n size = \"md\",\n fullWidth = false,\n className,\n ...rest\n}: ButtonProps) {\n return (\n <button\n type=\"button\"\n className={cx(\n base,\n sizes[size],\n variants[variant],\n fullWidth && \"w-full\",\n className\n )}\n {...rest}\n >\n {label}\n </button>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACgDI;AApCJ,IAAM,OACJ;AAIF,IAAM,QAA8B;AAAA,EAClC,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEA,IAAM,WAAoC;AAAA,EACxC,SACE;AAAA,EACF,WACE;AAAA,EACF,OACE;AAAA,EACF,QACE;AACJ;AAGA,SAAS,MAAM,SAA4C;AACzD,SAAO,QAAQ,OAAO,OAAO,EAAE,KAAK,GAAG;AACzC;AAEO,SAAS,OAAO;AAAA,EACrB;AAAA,EACA,UAAU;AAAA,EACV,OAAO;AAAA,EACP,YAAY;AAAA,EACZ;AAAA,EACA,GAAG;AACL,GAAgB;AACd,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,WAAW;AAAA,QACT;AAAA,QACA,MAAM,IAAI;AAAA,QACV,SAAS,OAAO;AAAA,QAChB,aAAa;AAAA,QACb;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEH;AAAA;AAAA,EACH;AAEJ;","names":[]}
package/dist/index.mjs ADDED
@@ -0,0 +1,45 @@
1
+ // src/components/Button.tsx
2
+ import { jsx } from "react/jsx-runtime";
3
+ var base = "inline-flex items-center justify-center rounded-lg font-semibold transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed";
4
+ var sizes = {
5
+ sm: "h-8 px-3 text-sm",
6
+ md: "h-10 px-4 text-sm",
7
+ lg: "h-12 px-5 text-base"
8
+ };
9
+ var variants = {
10
+ primary: "bg-blue-600 text-white hover:bg-blue-700 focus-visible:ring-blue-600 shadow-sm",
11
+ secondary: "bg-gray-100 text-gray-900 hover:bg-gray-200 focus-visible:ring-gray-400 border border-gray-200",
12
+ ghost: "bg-transparent text-gray-900 hover:bg-gray-100 focus-visible:ring-gray-400",
13
+ danger: "bg-red-600 text-white hover:bg-red-700 focus-visible:ring-red-600 shadow-sm"
14
+ };
15
+ function cx(...classes) {
16
+ return classes.filter(Boolean).join(" ");
17
+ }
18
+ function Button({
19
+ label,
20
+ variant = "primary",
21
+ size = "md",
22
+ fullWidth = false,
23
+ className,
24
+ ...rest
25
+ }) {
26
+ return /* @__PURE__ */ jsx(
27
+ "button",
28
+ {
29
+ type: "button",
30
+ className: cx(
31
+ base,
32
+ sizes[size],
33
+ variants[variant],
34
+ fullWidth && "w-full",
35
+ className
36
+ ),
37
+ ...rest,
38
+ children: label
39
+ }
40
+ );
41
+ }
42
+ export {
43
+ Button
44
+ };
45
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Button.tsx"],"sourcesContent":["import type { ButtonHTMLAttributes } from \"react\";\n\ntype Variant = \"primary\" | \"secondary\" | \"ghost\" | \"danger\";\ntype Size = \"sm\" | \"md\" | \"lg\";\n\nexport type ButtonProps = {\n label: string;\n variant?: Variant;\n size?: Size;\n fullWidth?: boolean;\n} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, \"children\">;\n\nconst base =\n \"inline-flex items-center justify-center rounded-lg font-semibold \" +\n \"transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 \" +\n \"disabled:opacity-50 disabled:cursor-not-allowed\";\n\nconst sizes: Record<Size, string> = {\n sm: \"h-8 px-3 text-sm\",\n md: \"h-10 px-4 text-sm\",\n lg: \"h-12 px-5 text-base\",\n};\n\nconst variants: Record<Variant, string> = {\n primary:\n \"bg-blue-600 text-white hover:bg-blue-700 focus-visible:ring-blue-600 shadow-sm\",\n secondary:\n \"bg-gray-100 text-gray-900 hover:bg-gray-200 focus-visible:ring-gray-400 border border-gray-200\",\n ghost:\n \"bg-transparent text-gray-900 hover:bg-gray-100 focus-visible:ring-gray-400\",\n danger:\n \"bg-red-600 text-white hover:bg-red-700 focus-visible:ring-red-600 shadow-sm\",\n};\n\n// className 합치기(외부 라이브러리 없이)\nfunction cx(...classes: Array<string | undefined | false>) {\n return classes.filter(Boolean).join(\" \");\n}\n\nexport function Button({\n label,\n variant = \"primary\",\n size = \"md\",\n fullWidth = false,\n className,\n ...rest\n}: ButtonProps) {\n return (\n <button\n type=\"button\"\n className={cx(\n base,\n sizes[size],\n variants[variant],\n fullWidth && \"w-full\",\n className\n )}\n {...rest}\n >\n {label}\n </button>\n );\n}\n"],"mappings":";AAgDI;AApCJ,IAAM,OACJ;AAIF,IAAM,QAA8B;AAAA,EAClC,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEA,IAAM,WAAoC;AAAA,EACxC,SACE;AAAA,EACF,WACE;AAAA,EACF,OACE;AAAA,EACF,QACE;AACJ;AAGA,SAAS,MAAM,SAA4C;AACzD,SAAO,QAAQ,OAAO,OAAO,EAAE,KAAK,GAAG;AACzC;AAEO,SAAS,OAAO;AAAA,EACrB;AAAA,EACA,UAAU;AAAA,EACV,OAAO;AAAA,EACP,YAAY;AAAA,EACZ;AAAA,EACA,GAAG;AACL,GAAgB;AACd,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,WAAW;AAAA,QACT;AAAA,QACA,MAAM,IAAI;AAAA,QACV,SAAS,OAAO;AAAA,QAChB,aAAa;AAAA,QACb;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEH;AAAA;AAAA,EACH;AAEJ;","names":[]}
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@poodle-kit/ui",
3
+ "version": "0.1.0",
4
+ "description": "React UI component library with Tailwind CSS",
5
+ "author": "",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/poodle-kit/poodle-kit.git"
10
+ },
11
+ "keywords": [
12
+ "react",
13
+ "ui",
14
+ "components",
15
+ "tailwind"
16
+ ],
17
+ "main": "./dist/index.js",
18
+ "module": "./dist/index.mjs",
19
+ "types": "./dist/index.d.ts",
20
+ "exports": {
21
+ ".": {
22
+ "require": "./dist/index.js",
23
+ "import": "./dist/index.mjs",
24
+ "types": "./dist/index.d.ts"
25
+ },
26
+ "./styles.css": "./dist/index.css"
27
+ },
28
+ "files": [
29
+ "dist"
30
+ ],
31
+ "scripts": {
32
+ "build": "tsup",
33
+ "dev": "tsup --watch"
34
+ },
35
+ "peerDependencies": {
36
+ "react": ">=18",
37
+ "react-dom": ">=18"
38
+ },
39
+ "devDependencies": {
40
+ "@types/react": "^18.3.27",
41
+ "@types/react-dom": "^18.3.7",
42
+ "react": "^18.2.0",
43
+ "react-dom": "^18.2.0",
44
+ "tsup": "^8.5.1",
45
+ "typescript": "^5.9.3"
46
+ }
47
+ }