@jakeseanp/socrates-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.cjs ADDED
@@ -0,0 +1,154 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/index.ts
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
+ Button: () => Button,
34
+ Stack: () => Stack
35
+ });
36
+ module.exports = __toCommonJS(index_exports);
37
+
38
+ // src/atoms/button.tsx
39
+ var React = __toESM(require("react"), 1);
40
+ var import_react_slot = require("@radix-ui/react-slot");
41
+ var import_class_variance_authority = require("class-variance-authority");
42
+
43
+ // src/lib/utils.ts
44
+ var import_clsx = require("clsx");
45
+ var import_tailwind_merge = require("tailwind-merge");
46
+ var cn = (...inputs) => (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
47
+
48
+ // src/atoms/button.tsx
49
+ var import_jsx_runtime = require("react/jsx-runtime");
50
+ var buttonVariants = (0, import_class_variance_authority.cva)(
51
+ "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
52
+ {
53
+ variants: {
54
+ variant: {
55
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
56
+ destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
57
+ outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
58
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
59
+ ghost: "hover:bg-accent hover:text-accent-foreground",
60
+ link: "text-primary underline-offset-4 hover:underline"
61
+ },
62
+ size: {
63
+ default: "h-10 px-4 py-2",
64
+ sm: "h-9 rounded-md px-3",
65
+ lg: "h-11 rounded-md px-8",
66
+ icon: "h-10 w-10"
67
+ }
68
+ },
69
+ defaultVariants: {
70
+ variant: "default",
71
+ size: "default"
72
+ }
73
+ }
74
+ );
75
+ var Button = React.forwardRef(
76
+ ({ className, variant, size, asChild = false, ...props }, ref) => {
77
+ const Comp = asChild ? import_react_slot.Slot : "button";
78
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
79
+ Comp,
80
+ {
81
+ className: cn(buttonVariants({ variant, size, className })),
82
+ ref,
83
+ ...props
84
+ }
85
+ );
86
+ }
87
+ );
88
+ Button.displayName = "Button";
89
+
90
+ // src/layouts/stack.tsx
91
+ var React2 = __toESM(require("react"), 1);
92
+ var import_jsx_runtime2 = require("react/jsx-runtime");
93
+ var dirClasses = {
94
+ col: "flex-col",
95
+ row: "flex-row"
96
+ };
97
+ var gapClasses = {
98
+ 0: "gap-0",
99
+ 1: "gap-1",
100
+ 2: "gap-2",
101
+ 3: "gap-3",
102
+ 4: "gap-4",
103
+ 5: "gap-5",
104
+ 6: "gap-6",
105
+ 7: "gap-7",
106
+ 8: "gap-8",
107
+ 9: "gap-9",
108
+ 10: "gap-10",
109
+ 11: "gap-11",
110
+ 12: "gap-12",
111
+ 14: "gap-14",
112
+ 16: "gap-16"
113
+ };
114
+ var justifyClasses = {
115
+ start: "justify-start",
116
+ end: "justify-end",
117
+ center: "justify-center",
118
+ between: "justify-between"
119
+ };
120
+ var alignClasses = {
121
+ start: "items-start",
122
+ end: "items-end",
123
+ center: "items-center"
124
+ };
125
+ var Stack = React2.forwardRef(
126
+ ({
127
+ className,
128
+ dir = "col",
129
+ gap = 0,
130
+ justify = "start",
131
+ align = "start",
132
+ ...props
133
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
134
+ "div",
135
+ {
136
+ ref,
137
+ className: cn(
138
+ "flex",
139
+ dirClasses[dir],
140
+ gapClasses[gap],
141
+ justifyClasses[justify],
142
+ alignClasses[align],
143
+ className
144
+ ),
145
+ ...props
146
+ }
147
+ )
148
+ );
149
+ Stack.displayName = "Stack";
150
+ // Annotate the CommonJS export names for ESM import in node:
151
+ 0 && (module.exports = {
152
+ Button,
153
+ Stack
154
+ });
package/dist/index.css ADDED
@@ -0,0 +1,963 @@
1
+ *, ::before, ::after {
2
+ --tw-border-spacing-x: 0;
3
+ --tw-border-spacing-y: 0;
4
+ --tw-translate-x: 0;
5
+ --tw-translate-y: 0;
6
+ --tw-rotate: 0;
7
+ --tw-skew-x: 0;
8
+ --tw-skew-y: 0;
9
+ --tw-scale-x: 1;
10
+ --tw-scale-y: 1;
11
+ --tw-pan-x: ;
12
+ --tw-pan-y: ;
13
+ --tw-pinch-zoom: ;
14
+ --tw-scroll-snap-strictness: proximity;
15
+ --tw-gradient-from-position: ;
16
+ --tw-gradient-via-position: ;
17
+ --tw-gradient-to-position: ;
18
+ --tw-ordinal: ;
19
+ --tw-slashed-zero: ;
20
+ --tw-numeric-figure: ;
21
+ --tw-numeric-spacing: ;
22
+ --tw-numeric-fraction: ;
23
+ --tw-ring-inset: ;
24
+ --tw-ring-offset-width: 0px;
25
+ --tw-ring-offset-color: #fff;
26
+ --tw-ring-color: rgb(59 130 246 / 0.5);
27
+ --tw-ring-offset-shadow: 0 0 #0000;
28
+ --tw-ring-shadow: 0 0 #0000;
29
+ --tw-shadow: 0 0 #0000;
30
+ --tw-shadow-colored: 0 0 #0000;
31
+ --tw-blur: ;
32
+ --tw-brightness: ;
33
+ --tw-contrast: ;
34
+ --tw-grayscale: ;
35
+ --tw-hue-rotate: ;
36
+ --tw-invert: ;
37
+ --tw-saturate: ;
38
+ --tw-sepia: ;
39
+ --tw-drop-shadow: ;
40
+ --tw-backdrop-blur: ;
41
+ --tw-backdrop-brightness: ;
42
+ --tw-backdrop-contrast: ;
43
+ --tw-backdrop-grayscale: ;
44
+ --tw-backdrop-hue-rotate: ;
45
+ --tw-backdrop-invert: ;
46
+ --tw-backdrop-opacity: ;
47
+ --tw-backdrop-saturate: ;
48
+ --tw-backdrop-sepia: ;
49
+ --tw-contain-size: ;
50
+ --tw-contain-layout: ;
51
+ --tw-contain-paint: ;
52
+ --tw-contain-style: ;
53
+ }
54
+
55
+ ::backdrop {
56
+ --tw-border-spacing-x: 0;
57
+ --tw-border-spacing-y: 0;
58
+ --tw-translate-x: 0;
59
+ --tw-translate-y: 0;
60
+ --tw-rotate: 0;
61
+ --tw-skew-x: 0;
62
+ --tw-skew-y: 0;
63
+ --tw-scale-x: 1;
64
+ --tw-scale-y: 1;
65
+ --tw-pan-x: ;
66
+ --tw-pan-y: ;
67
+ --tw-pinch-zoom: ;
68
+ --tw-scroll-snap-strictness: proximity;
69
+ --tw-gradient-from-position: ;
70
+ --tw-gradient-via-position: ;
71
+ --tw-gradient-to-position: ;
72
+ --tw-ordinal: ;
73
+ --tw-slashed-zero: ;
74
+ --tw-numeric-figure: ;
75
+ --tw-numeric-spacing: ;
76
+ --tw-numeric-fraction: ;
77
+ --tw-ring-inset: ;
78
+ --tw-ring-offset-width: 0px;
79
+ --tw-ring-offset-color: #fff;
80
+ --tw-ring-color: rgb(59 130 246 / 0.5);
81
+ --tw-ring-offset-shadow: 0 0 #0000;
82
+ --tw-ring-shadow: 0 0 #0000;
83
+ --tw-shadow: 0 0 #0000;
84
+ --tw-shadow-colored: 0 0 #0000;
85
+ --tw-blur: ;
86
+ --tw-brightness: ;
87
+ --tw-contrast: ;
88
+ --tw-grayscale: ;
89
+ --tw-hue-rotate: ;
90
+ --tw-invert: ;
91
+ --tw-saturate: ;
92
+ --tw-sepia: ;
93
+ --tw-drop-shadow: ;
94
+ --tw-backdrop-blur: ;
95
+ --tw-backdrop-brightness: ;
96
+ --tw-backdrop-contrast: ;
97
+ --tw-backdrop-grayscale: ;
98
+ --tw-backdrop-hue-rotate: ;
99
+ --tw-backdrop-invert: ;
100
+ --tw-backdrop-opacity: ;
101
+ --tw-backdrop-saturate: ;
102
+ --tw-backdrop-sepia: ;
103
+ --tw-contain-size: ;
104
+ --tw-contain-layout: ;
105
+ --tw-contain-paint: ;
106
+ --tw-contain-style: ;
107
+ }
108
+
109
+ /*
110
+ ! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com
111
+ */
112
+
113
+ /*
114
+ 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
115
+ 2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
116
+ */
117
+
118
+ *,
119
+ ::before,
120
+ ::after {
121
+ box-sizing: border-box;
122
+ /* 1 */
123
+ border-width: 0;
124
+ /* 2 */
125
+ border-style: solid;
126
+ /* 2 */
127
+ border-color: #e5e7eb;
128
+ /* 2 */
129
+ }
130
+
131
+ ::before,
132
+ ::after {
133
+ --tw-content: '';
134
+ }
135
+
136
+ /*
137
+ 1. Use a consistent sensible line-height in all browsers.
138
+ 2. Prevent adjustments of font size after orientation changes in iOS.
139
+ 3. Use a more readable tab size.
140
+ 4. Use the user's configured `sans` font-family by default.
141
+ 5. Use the user's configured `sans` font-feature-settings by default.
142
+ 6. Use the user's configured `sans` font-variation-settings by default.
143
+ 7. Disable tap highlights on iOS
144
+ */
145
+
146
+ html,
147
+ :host {
148
+ line-height: 1.5;
149
+ /* 1 */
150
+ -webkit-text-size-adjust: 100%;
151
+ /* 2 */
152
+ -moz-tab-size: 4;
153
+ /* 3 */
154
+ -o-tab-size: 4;
155
+ tab-size: 4;
156
+ /* 3 */
157
+ font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
158
+ /* 4 */
159
+ font-feature-settings: normal;
160
+ /* 5 */
161
+ font-variation-settings: normal;
162
+ /* 6 */
163
+ -webkit-tap-highlight-color: transparent;
164
+ /* 7 */
165
+ }
166
+
167
+ /*
168
+ 1. Remove the margin in all browsers.
169
+ 2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
170
+ */
171
+
172
+ body {
173
+ margin: 0;
174
+ /* 1 */
175
+ line-height: inherit;
176
+ /* 2 */
177
+ }
178
+
179
+ /*
180
+ 1. Add the correct height in Firefox.
181
+ 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
182
+ 3. Ensure horizontal rules are visible by default.
183
+ */
184
+
185
+ hr {
186
+ height: 0;
187
+ /* 1 */
188
+ color: inherit;
189
+ /* 2 */
190
+ border-top-width: 1px;
191
+ /* 3 */
192
+ }
193
+
194
+ /*
195
+ Add the correct text decoration in Chrome, Edge, and Safari.
196
+ */
197
+
198
+ abbr:where([title]) {
199
+ -webkit-text-decoration: underline dotted;
200
+ text-decoration: underline dotted;
201
+ }
202
+
203
+ /*
204
+ Remove the default font size and weight for headings.
205
+ */
206
+
207
+ h1,
208
+ h2,
209
+ h3,
210
+ h4,
211
+ h5,
212
+ h6 {
213
+ font-size: inherit;
214
+ font-weight: inherit;
215
+ }
216
+
217
+ /*
218
+ Reset links to optimize for opt-in styling instead of opt-out.
219
+ */
220
+
221
+ a {
222
+ color: inherit;
223
+ text-decoration: inherit;
224
+ }
225
+
226
+ /*
227
+ Add the correct font weight in Edge and Safari.
228
+ */
229
+
230
+ b,
231
+ strong {
232
+ font-weight: bolder;
233
+ }
234
+
235
+ /*
236
+ 1. Use the user's configured `mono` font-family by default.
237
+ 2. Use the user's configured `mono` font-feature-settings by default.
238
+ 3. Use the user's configured `mono` font-variation-settings by default.
239
+ 4. Correct the odd `em` font sizing in all browsers.
240
+ */
241
+
242
+ code,
243
+ kbd,
244
+ samp,
245
+ pre {
246
+ font-family: var(--font-mono), ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
247
+ /* 1 */
248
+ font-feature-settings: normal;
249
+ /* 2 */
250
+ font-variation-settings: normal;
251
+ /* 3 */
252
+ font-size: 1em;
253
+ /* 4 */
254
+ }
255
+
256
+ /*
257
+ Add the correct font size in all browsers.
258
+ */
259
+
260
+ small {
261
+ font-size: 80%;
262
+ }
263
+
264
+ /*
265
+ Prevent `sub` and `sup` elements from affecting the line height in all browsers.
266
+ */
267
+
268
+ sub,
269
+ sup {
270
+ font-size: 75%;
271
+ line-height: 0;
272
+ position: relative;
273
+ vertical-align: baseline;
274
+ }
275
+
276
+ sub {
277
+ bottom: -0.25em;
278
+ }
279
+
280
+ sup {
281
+ top: -0.5em;
282
+ }
283
+
284
+ /*
285
+ 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
286
+ 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
287
+ 3. Remove gaps between table borders by default.
288
+ */
289
+
290
+ table {
291
+ text-indent: 0;
292
+ /* 1 */
293
+ border-color: inherit;
294
+ /* 2 */
295
+ border-collapse: collapse;
296
+ /* 3 */
297
+ }
298
+
299
+ /*
300
+ 1. Change the font styles in all browsers.
301
+ 2. Remove the margin in Firefox and Safari.
302
+ 3. Remove default padding in all browsers.
303
+ */
304
+
305
+ button,
306
+ input,
307
+ optgroup,
308
+ select,
309
+ textarea {
310
+ font-family: inherit;
311
+ /* 1 */
312
+ font-feature-settings: inherit;
313
+ /* 1 */
314
+ font-variation-settings: inherit;
315
+ /* 1 */
316
+ font-size: 100%;
317
+ /* 1 */
318
+ font-weight: inherit;
319
+ /* 1 */
320
+ line-height: inherit;
321
+ /* 1 */
322
+ letter-spacing: inherit;
323
+ /* 1 */
324
+ color: inherit;
325
+ /* 1 */
326
+ margin: 0;
327
+ /* 2 */
328
+ padding: 0;
329
+ /* 3 */
330
+ }
331
+
332
+ /*
333
+ Remove the inheritance of text transform in Edge and Firefox.
334
+ */
335
+
336
+ button,
337
+ select {
338
+ text-transform: none;
339
+ }
340
+
341
+ /*
342
+ 1. Correct the inability to style clickable types in iOS and Safari.
343
+ 2. Remove default button styles.
344
+ */
345
+
346
+ button,
347
+ input:where([type='button']),
348
+ input:where([type='reset']),
349
+ input:where([type='submit']) {
350
+ -webkit-appearance: button;
351
+ /* 1 */
352
+ background-color: transparent;
353
+ /* 2 */
354
+ background-image: none;
355
+ /* 2 */
356
+ }
357
+
358
+ /*
359
+ Use the modern Firefox focus style for all focusable elements.
360
+ */
361
+
362
+ :-moz-focusring {
363
+ outline: auto;
364
+ }
365
+
366
+ /*
367
+ Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
368
+ */
369
+
370
+ :-moz-ui-invalid {
371
+ box-shadow: none;
372
+ }
373
+
374
+ /*
375
+ Add the correct vertical alignment in Chrome and Firefox.
376
+ */
377
+
378
+ progress {
379
+ vertical-align: baseline;
380
+ }
381
+
382
+ /*
383
+ Correct the cursor style of increment and decrement buttons in Safari.
384
+ */
385
+
386
+ ::-webkit-inner-spin-button,
387
+ ::-webkit-outer-spin-button {
388
+ height: auto;
389
+ }
390
+
391
+ /*
392
+ 1. Correct the odd appearance in Chrome and Safari.
393
+ 2. Correct the outline style in Safari.
394
+ */
395
+
396
+ [type='search'] {
397
+ -webkit-appearance: textfield;
398
+ /* 1 */
399
+ outline-offset: -2px;
400
+ /* 2 */
401
+ }
402
+
403
+ /*
404
+ Remove the inner padding in Chrome and Safari on macOS.
405
+ */
406
+
407
+ ::-webkit-search-decoration {
408
+ -webkit-appearance: none;
409
+ }
410
+
411
+ /*
412
+ 1. Correct the inability to style clickable types in iOS and Safari.
413
+ 2. Change font properties to `inherit` in Safari.
414
+ */
415
+
416
+ ::-webkit-file-upload-button {
417
+ -webkit-appearance: button;
418
+ /* 1 */
419
+ font: inherit;
420
+ /* 2 */
421
+ }
422
+
423
+ /*
424
+ Add the correct display in Chrome and Safari.
425
+ */
426
+
427
+ summary {
428
+ display: list-item;
429
+ }
430
+
431
+ /*
432
+ Removes the default spacing and border for appropriate elements.
433
+ */
434
+
435
+ blockquote,
436
+ dl,
437
+ dd,
438
+ h1,
439
+ h2,
440
+ h3,
441
+ h4,
442
+ h5,
443
+ h6,
444
+ hr,
445
+ figure,
446
+ p,
447
+ pre {
448
+ margin: 0;
449
+ }
450
+
451
+ fieldset {
452
+ margin: 0;
453
+ padding: 0;
454
+ }
455
+
456
+ legend {
457
+ padding: 0;
458
+ }
459
+
460
+ ol,
461
+ ul,
462
+ menu {
463
+ list-style: none;
464
+ margin: 0;
465
+ padding: 0;
466
+ }
467
+
468
+ /*
469
+ Reset default styling for dialogs.
470
+ */
471
+
472
+ dialog {
473
+ padding: 0;
474
+ }
475
+
476
+ /*
477
+ Prevent resizing textareas horizontally by default.
478
+ */
479
+
480
+ textarea {
481
+ resize: vertical;
482
+ }
483
+
484
+ /*
485
+ 1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
486
+ 2. Set the default placeholder color to the user's configured gray 400 color.
487
+ */
488
+
489
+ input::-moz-placeholder, textarea::-moz-placeholder {
490
+ opacity: 1;
491
+ /* 1 */
492
+ color: #9ca3af;
493
+ /* 2 */
494
+ }
495
+
496
+ input::placeholder,
497
+ textarea::placeholder {
498
+ opacity: 1;
499
+ /* 1 */
500
+ color: #9ca3af;
501
+ /* 2 */
502
+ }
503
+
504
+ /*
505
+ Set the default cursor for buttons.
506
+ */
507
+
508
+ button,
509
+ [role="button"] {
510
+ cursor: pointer;
511
+ }
512
+
513
+ /*
514
+ Make sure disabled buttons don't get the pointer cursor.
515
+ */
516
+
517
+ :disabled {
518
+ cursor: default;
519
+ }
520
+
521
+ /*
522
+ 1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
523
+ 2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
524
+ This can trigger a poorly considered lint error in some tools but is included by design.
525
+ */
526
+
527
+ img,
528
+ svg,
529
+ video,
530
+ canvas,
531
+ audio,
532
+ iframe,
533
+ embed,
534
+ object {
535
+ display: block;
536
+ /* 1 */
537
+ vertical-align: middle;
538
+ /* 2 */
539
+ }
540
+
541
+ /*
542
+ Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
543
+ */
544
+
545
+ img,
546
+ video {
547
+ max-width: 100%;
548
+ height: auto;
549
+ }
550
+
551
+ /* Make elements with the HTML hidden attribute stay hidden by default */
552
+
553
+ [hidden]:where(:not([hidden="until-found"])) {
554
+ display: none;
555
+ }
556
+
557
+ :root {
558
+ --font-sans: "Geist", "Geist Fallback", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
559
+ --font-mono: "Geist Mono", "Geist Mono Fallback", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
560
+ --background: 1 0 0;
561
+ --foreground: 0.145 0 0;
562
+ --card: 1 0 0;
563
+ --card-foreground: 0.145 0 0;
564
+ --popover: 1 0 0;
565
+ --popover-foreground: 0.145 0 0;
566
+ --primary: 0.5 0.134 242.749;
567
+ --primary-foreground: 0.977 0.013 236.62;
568
+ --secondary: 0.967 0.001 286.375;
569
+ --secondary-foreground: 0.21 0.006 285.885;
570
+ --muted: 0.97 0 0;
571
+ --muted-foreground: 0.556 0 0;
572
+ --accent: 0.97 0 0;
573
+ --accent-foreground: 0.205 0 0;
574
+ --destructive: 0.577 0.245 27.325;
575
+ --destructive-foreground: 0.985 0 0;
576
+ --border: 0.922 0 0;
577
+ --input: 0.922 0 0;
578
+ --ring: 0.708 0 0;
579
+ --chart-1: 0.87 0 0;
580
+ --chart-2: 0.556 0 0;
581
+ --chart-3: 0.439 0 0;
582
+ --chart-4: 0.371 0 0;
583
+ --chart-5: 0.269 0 0;
584
+ --radius: 0.625rem;
585
+ --sidebar: 0.985 0 0;
586
+ --sidebar-foreground: 0.145 0 0;
587
+ --sidebar-primary: 0.588 0.158 241.966;
588
+ --sidebar-primary-foreground: 0.977 0.013 236.62;
589
+ --sidebar-accent: 0.97 0 0;
590
+ --sidebar-accent-foreground: 0.205 0 0;
591
+ --sidebar-border: 0.922 0 0;
592
+ --sidebar-ring: 0.708 0 0;
593
+ }
594
+
595
+ .dark {
596
+ --background: 0.145 0 0;
597
+ --foreground: 0.985 0 0;
598
+ --card: 0.205 0 0;
599
+ --card-foreground: 0.985 0 0;
600
+ --popover: 0.205 0 0;
601
+ --popover-foreground: 0.985 0 0;
602
+ --primary: 0.443 0.11 240.79;
603
+ --primary-foreground: 0.977 0.013 236.62;
604
+ --secondary: 0.274 0.006 286.033;
605
+ --secondary-foreground: 0.985 0 0;
606
+ --muted: 0.269 0 0;
607
+ --muted-foreground: 0.708 0 0;
608
+ --accent: 0.269 0 0;
609
+ --accent-foreground: 0.985 0 0;
610
+ --destructive: 0.704 0.191 22.216;
611
+ --destructive-foreground: 0.985 0 0;
612
+ --border: 0.23 0 0;
613
+ --input: 0.273 0 0;
614
+ --ring: 0.556 0 0;
615
+ --chart-1: 0.87 0 0;
616
+ --chart-2: 0.556 0 0;
617
+ --chart-3: 0.439 0 0;
618
+ --chart-4: 0.371 0 0;
619
+ --chart-5: 0.269 0 0;
620
+ --sidebar: 0.205 0 0;
621
+ --sidebar-foreground: 0.985 0 0;
622
+ --sidebar-primary: 0.685 0.169 237.323;
623
+ --sidebar-primary-foreground: 0.293 0.066 243.157;
624
+ --sidebar-accent: 0.269 0 0;
625
+ --sidebar-accent-foreground: 0.985 0 0;
626
+ --sidebar-border: 0.23 0 0;
627
+ --sidebar-ring: 0.556 0 0;
628
+ }
629
+
630
+ * {
631
+ --tw-border-opacity: 1;
632
+ border-color: oklch(var(--border) / var(--tw-border-opacity, 1));
633
+ outline-color: oklch(var(--ring) / 0.5);
634
+ }
635
+
636
+ body {
637
+ --tw-bg-opacity: 1;
638
+ background-color: oklch(var(--background) / var(--tw-bg-opacity, 1));
639
+ --tw-text-opacity: 1;
640
+ color: oklch(var(--foreground) / var(--tw-text-opacity, 1));
641
+ }
642
+
643
+ button:not(:disabled),
644
+ [role="button"]:not(:disabled) {
645
+ cursor: pointer;
646
+ }
647
+
648
+ html {
649
+ font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
650
+ }
651
+
652
+ .flex {
653
+ display: flex;
654
+ }
655
+
656
+ .inline-flex {
657
+ display: inline-flex;
658
+ }
659
+
660
+ .h-10 {
661
+ height: 2.5rem;
662
+ }
663
+
664
+ .h-11 {
665
+ height: 2.75rem;
666
+ }
667
+
668
+ .h-9 {
669
+ height: 2.25rem;
670
+ }
671
+
672
+ .w-10 {
673
+ width: 2.5rem;
674
+ }
675
+
676
+ .flex-row {
677
+ flex-direction: row;
678
+ }
679
+
680
+ .flex-col {
681
+ flex-direction: column;
682
+ }
683
+
684
+ .items-start {
685
+ align-items: flex-start;
686
+ }
687
+
688
+ .items-end {
689
+ align-items: flex-end;
690
+ }
691
+
692
+ .items-center {
693
+ align-items: center;
694
+ }
695
+
696
+ .justify-start {
697
+ justify-content: flex-start;
698
+ }
699
+
700
+ .justify-end {
701
+ justify-content: flex-end;
702
+ }
703
+
704
+ .justify-center {
705
+ justify-content: center;
706
+ }
707
+
708
+ .justify-between {
709
+ justify-content: space-between;
710
+ }
711
+
712
+ .gap-0 {
713
+ gap: 0px;
714
+ }
715
+
716
+ .gap-1 {
717
+ gap: 0.25rem;
718
+ }
719
+
720
+ .gap-10 {
721
+ gap: 2.5rem;
722
+ }
723
+
724
+ .gap-11 {
725
+ gap: 2.75rem;
726
+ }
727
+
728
+ .gap-12 {
729
+ gap: 3rem;
730
+ }
731
+
732
+ .gap-14 {
733
+ gap: 3.5rem;
734
+ }
735
+
736
+ .gap-16 {
737
+ gap: 4rem;
738
+ }
739
+
740
+ .gap-2 {
741
+ gap: 0.5rem;
742
+ }
743
+
744
+ .gap-3 {
745
+ gap: 0.75rem;
746
+ }
747
+
748
+ .gap-4 {
749
+ gap: 1rem;
750
+ }
751
+
752
+ .gap-5 {
753
+ gap: 1.25rem;
754
+ }
755
+
756
+ .gap-6 {
757
+ gap: 1.5rem;
758
+ }
759
+
760
+ .gap-7 {
761
+ gap: 1.75rem;
762
+ }
763
+
764
+ .gap-8 {
765
+ gap: 2rem;
766
+ }
767
+
768
+ .gap-9 {
769
+ gap: 2.25rem;
770
+ }
771
+
772
+ .whitespace-nowrap {
773
+ white-space: nowrap;
774
+ }
775
+
776
+ .rounded-md {
777
+ border-radius: calc(var(--radius) - 2px);
778
+ }
779
+
780
+ .border {
781
+ border-width: 1px;
782
+ }
783
+
784
+ .border-input {
785
+ --tw-border-opacity: 1;
786
+ border-color: oklch(var(--input) / var(--tw-border-opacity, 1));
787
+ }
788
+
789
+ .bg-background {
790
+ --tw-bg-opacity: 1;
791
+ background-color: oklch(var(--background) / var(--tw-bg-opacity, 1));
792
+ }
793
+
794
+ .bg-card {
795
+ --tw-bg-opacity: 1;
796
+ background-color: oklch(var(--card) / var(--tw-bg-opacity, 1));
797
+ }
798
+
799
+ .bg-destructive {
800
+ --tw-bg-opacity: 1;
801
+ background-color: oklch(var(--destructive) / var(--tw-bg-opacity, 1));
802
+ }
803
+
804
+ .bg-primary {
805
+ --tw-bg-opacity: 1;
806
+ background-color: oklch(var(--primary) / var(--tw-bg-opacity, 1));
807
+ }
808
+
809
+ .bg-secondary {
810
+ --tw-bg-opacity: 1;
811
+ background-color: oklch(var(--secondary) / var(--tw-bg-opacity, 1));
812
+ }
813
+
814
+ .px-3 {
815
+ padding-left: 0.75rem;
816
+ padding-right: 0.75rem;
817
+ }
818
+
819
+ .px-4 {
820
+ padding-left: 1rem;
821
+ padding-right: 1rem;
822
+ }
823
+
824
+ .px-8 {
825
+ padding-left: 2rem;
826
+ padding-right: 2rem;
827
+ }
828
+
829
+ .py-2 {
830
+ padding-top: 0.5rem;
831
+ padding-bottom: 0.5rem;
832
+ }
833
+
834
+ .py-3 {
835
+ padding-top: 0.75rem;
836
+ padding-bottom: 0.75rem;
837
+ }
838
+
839
+ .text-sm {
840
+ font-size: 0.875rem;
841
+ line-height: 1.25rem;
842
+ }
843
+
844
+ .font-medium {
845
+ font-weight: 500;
846
+ }
847
+
848
+ .text-card-foreground {
849
+ --tw-text-opacity: 1;
850
+ color: oklch(var(--card-foreground) / var(--tw-text-opacity, 1));
851
+ }
852
+
853
+ .text-destructive-foreground {
854
+ --tw-text-opacity: 1;
855
+ color: oklch(var(--destructive-foreground) / var(--tw-text-opacity, 1));
856
+ }
857
+
858
+ .text-primary {
859
+ --tw-text-opacity: 1;
860
+ color: oklch(var(--primary) / var(--tw-text-opacity, 1));
861
+ }
862
+
863
+ .text-primary-foreground {
864
+ --tw-text-opacity: 1;
865
+ color: oklch(var(--primary-foreground) / var(--tw-text-opacity, 1));
866
+ }
867
+
868
+ .text-secondary-foreground {
869
+ --tw-text-opacity: 1;
870
+ color: oklch(var(--secondary-foreground) / var(--tw-text-opacity, 1));
871
+ }
872
+
873
+ .underline-offset-4 {
874
+ text-underline-offset: 4px;
875
+ }
876
+
877
+ .shadow-sm {
878
+ --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
879
+ --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
880
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
881
+ }
882
+
883
+ .outline {
884
+ outline-style: solid;
885
+ }
886
+
887
+ .ring-offset-background {
888
+ --tw-ring-offset-color: oklch(var(--background) / 1);
889
+ }
890
+
891
+ .transition-colors {
892
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
893
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
894
+ transition-duration: 150ms;
895
+ }
896
+
897
+ @keyframes enter {
898
+ from {
899
+ opacity: var(--tw-enter-opacity, 1);
900
+ transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));
901
+ }
902
+ }
903
+
904
+ @keyframes exit {
905
+ to {
906
+ opacity: var(--tw-exit-opacity, 1);
907
+ transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));
908
+ }
909
+ }
910
+
911
+ .hover\:bg-accent:hover {
912
+ --tw-bg-opacity: 1;
913
+ background-color: oklch(var(--accent) / var(--tw-bg-opacity, 1));
914
+ }
915
+
916
+ .hover\:bg-destructive\/90:hover {
917
+ background-color: oklch(var(--destructive) / 0.9);
918
+ }
919
+
920
+ .hover\:bg-primary\/90:hover {
921
+ background-color: oklch(var(--primary) / 0.9);
922
+ }
923
+
924
+ .hover\:bg-secondary\/80:hover {
925
+ background-color: oklch(var(--secondary) / 0.8);
926
+ }
927
+
928
+ .hover\:text-accent-foreground:hover {
929
+ --tw-text-opacity: 1;
930
+ color: oklch(var(--accent-foreground) / var(--tw-text-opacity, 1));
931
+ }
932
+
933
+ .hover\:underline:hover {
934
+ text-decoration-line: underline;
935
+ }
936
+
937
+ .focus-visible\:outline-none:focus-visible {
938
+ outline: 2px solid transparent;
939
+ outline-offset: 2px;
940
+ }
941
+
942
+ .focus-visible\:ring-2:focus-visible {
943
+ --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
944
+ --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
945
+ box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
946
+ }
947
+
948
+ .focus-visible\:ring-ring:focus-visible {
949
+ --tw-ring-opacity: 1;
950
+ --tw-ring-color: oklch(var(--ring) / var(--tw-ring-opacity, 1));
951
+ }
952
+
953
+ .focus-visible\:ring-offset-2:focus-visible {
954
+ --tw-ring-offset-width: 2px;
955
+ }
956
+
957
+ .disabled\:pointer-events-none:disabled {
958
+ pointer-events: none;
959
+ }
960
+
961
+ .disabled\:opacity-50:disabled {
962
+ opacity: 0.5;
963
+ }
@@ -0,0 +1,54 @@
1
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import * as React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+
5
+ declare const buttonVariants: (props?: ({
6
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
7
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
8
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
9
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
10
+ asChild?: boolean;
11
+ }
12
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
13
+
14
+ declare const dirClasses: {
15
+ readonly col: "flex-col";
16
+ readonly row: "flex-row";
17
+ };
18
+ declare const gapClasses: {
19
+ readonly 0: "gap-0";
20
+ readonly 1: "gap-1";
21
+ readonly 2: "gap-2";
22
+ readonly 3: "gap-3";
23
+ readonly 4: "gap-4";
24
+ readonly 5: "gap-5";
25
+ readonly 6: "gap-6";
26
+ readonly 7: "gap-7";
27
+ readonly 8: "gap-8";
28
+ readonly 9: "gap-9";
29
+ readonly 10: "gap-10";
30
+ readonly 11: "gap-11";
31
+ readonly 12: "gap-12";
32
+ readonly 14: "gap-14";
33
+ readonly 16: "gap-16";
34
+ };
35
+ declare const justifyClasses: {
36
+ readonly start: "justify-start";
37
+ readonly end: "justify-end";
38
+ readonly center: "justify-center";
39
+ readonly between: "justify-between";
40
+ };
41
+ declare const alignClasses: {
42
+ readonly start: "items-start";
43
+ readonly end: "items-end";
44
+ readonly center: "items-center";
45
+ };
46
+ interface StackProps extends React.HTMLAttributes<HTMLDivElement> {
47
+ dir?: keyof typeof dirClasses;
48
+ gap?: keyof typeof gapClasses;
49
+ justify?: keyof typeof justifyClasses;
50
+ align?: keyof typeof alignClasses;
51
+ }
52
+ declare const Stack: React.ForwardRefExoticComponent<StackProps & React.RefAttributes<HTMLDivElement>>;
53
+
54
+ export { Button, type ButtonProps, Stack, type StackProps };
@@ -0,0 +1,54 @@
1
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import * as React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+
5
+ declare const buttonVariants: (props?: ({
6
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
7
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
8
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
9
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
10
+ asChild?: boolean;
11
+ }
12
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
13
+
14
+ declare const dirClasses: {
15
+ readonly col: "flex-col";
16
+ readonly row: "flex-row";
17
+ };
18
+ declare const gapClasses: {
19
+ readonly 0: "gap-0";
20
+ readonly 1: "gap-1";
21
+ readonly 2: "gap-2";
22
+ readonly 3: "gap-3";
23
+ readonly 4: "gap-4";
24
+ readonly 5: "gap-5";
25
+ readonly 6: "gap-6";
26
+ readonly 7: "gap-7";
27
+ readonly 8: "gap-8";
28
+ readonly 9: "gap-9";
29
+ readonly 10: "gap-10";
30
+ readonly 11: "gap-11";
31
+ readonly 12: "gap-12";
32
+ readonly 14: "gap-14";
33
+ readonly 16: "gap-16";
34
+ };
35
+ declare const justifyClasses: {
36
+ readonly start: "justify-start";
37
+ readonly end: "justify-end";
38
+ readonly center: "justify-center";
39
+ readonly between: "justify-between";
40
+ };
41
+ declare const alignClasses: {
42
+ readonly start: "items-start";
43
+ readonly end: "items-end";
44
+ readonly center: "items-center";
45
+ };
46
+ interface StackProps extends React.HTMLAttributes<HTMLDivElement> {
47
+ dir?: keyof typeof dirClasses;
48
+ gap?: keyof typeof gapClasses;
49
+ justify?: keyof typeof justifyClasses;
50
+ align?: keyof typeof alignClasses;
51
+ }
52
+ declare const Stack: React.ForwardRefExoticComponent<StackProps & React.RefAttributes<HTMLDivElement>>;
53
+
54
+ export { Button, type ButtonProps, Stack, type StackProps };
package/dist/index.js ADDED
@@ -0,0 +1,116 @@
1
+ // src/atoms/button.tsx
2
+ import * as React from "react";
3
+ import { Slot } from "@radix-ui/react-slot";
4
+ import { cva } from "class-variance-authority";
5
+
6
+ // src/lib/utils.ts
7
+ import { clsx } from "clsx";
8
+ import { twMerge } from "tailwind-merge";
9
+ var cn = (...inputs) => twMerge(clsx(inputs));
10
+
11
+ // src/atoms/button.tsx
12
+ import { jsx } from "react/jsx-runtime";
13
+ var buttonVariants = cva(
14
+ "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
15
+ {
16
+ variants: {
17
+ variant: {
18
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
19
+ destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
20
+ outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
21
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
22
+ ghost: "hover:bg-accent hover:text-accent-foreground",
23
+ link: "text-primary underline-offset-4 hover:underline"
24
+ },
25
+ size: {
26
+ default: "h-10 px-4 py-2",
27
+ sm: "h-9 rounded-md px-3",
28
+ lg: "h-11 rounded-md px-8",
29
+ icon: "h-10 w-10"
30
+ }
31
+ },
32
+ defaultVariants: {
33
+ variant: "default",
34
+ size: "default"
35
+ }
36
+ }
37
+ );
38
+ var Button = React.forwardRef(
39
+ ({ className, variant, size, asChild = false, ...props }, ref) => {
40
+ const Comp = asChild ? Slot : "button";
41
+ return /* @__PURE__ */ jsx(
42
+ Comp,
43
+ {
44
+ className: cn(buttonVariants({ variant, size, className })),
45
+ ref,
46
+ ...props
47
+ }
48
+ );
49
+ }
50
+ );
51
+ Button.displayName = "Button";
52
+
53
+ // src/layouts/stack.tsx
54
+ import * as React2 from "react";
55
+ import { jsx as jsx2 } from "react/jsx-runtime";
56
+ var dirClasses = {
57
+ col: "flex-col",
58
+ row: "flex-row"
59
+ };
60
+ var gapClasses = {
61
+ 0: "gap-0",
62
+ 1: "gap-1",
63
+ 2: "gap-2",
64
+ 3: "gap-3",
65
+ 4: "gap-4",
66
+ 5: "gap-5",
67
+ 6: "gap-6",
68
+ 7: "gap-7",
69
+ 8: "gap-8",
70
+ 9: "gap-9",
71
+ 10: "gap-10",
72
+ 11: "gap-11",
73
+ 12: "gap-12",
74
+ 14: "gap-14",
75
+ 16: "gap-16"
76
+ };
77
+ var justifyClasses = {
78
+ start: "justify-start",
79
+ end: "justify-end",
80
+ center: "justify-center",
81
+ between: "justify-between"
82
+ };
83
+ var alignClasses = {
84
+ start: "items-start",
85
+ end: "items-end",
86
+ center: "items-center"
87
+ };
88
+ var Stack = React2.forwardRef(
89
+ ({
90
+ className,
91
+ dir = "col",
92
+ gap = 0,
93
+ justify = "start",
94
+ align = "start",
95
+ ...props
96
+ }, ref) => /* @__PURE__ */ jsx2(
97
+ "div",
98
+ {
99
+ ref,
100
+ className: cn(
101
+ "flex",
102
+ dirClasses[dir],
103
+ gapClasses[gap],
104
+ justifyClasses[justify],
105
+ alignClasses[align],
106
+ className
107
+ ),
108
+ ...props
109
+ }
110
+ )
111
+ );
112
+ Stack.displayName = "Stack";
113
+ export {
114
+ Button,
115
+ Stack
116
+ };
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@jakeseanp/socrates-ui",
3
+ "version": "0.1.0",
4
+ "description": "Socrates component library.",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.cjs"
14
+ },
15
+ "./styles.css": "./dist/index.css"
16
+ },
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "sideEffects": [
21
+ "**/*.css"
22
+ ],
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "peerDependencies": {
27
+ "react": ">=18",
28
+ "react-dom": ">=18"
29
+ },
30
+ "devDependencies": {
31
+ "@types/react": "^18.3.26",
32
+ "@types/react-dom": "^18.3.7",
33
+ "react": "^18.3.1",
34
+ "react-dom": "^18.3.1",
35
+ "tsup": "^8.5.1",
36
+ "typescript": "5.9.3"
37
+ },
38
+ "dependencies": {
39
+ "@radix-ui/react-slot": "1.1.2",
40
+ "class-variance-authority": "0.7.1",
41
+ "clsx": "2.1.1",
42
+ "tailwind-merge": "2.6.0"
43
+ },
44
+ "scripts": {
45
+ "build": "tsup src/index.ts --format esm,cjs --dts --external react --external react-dom && tailwindcss -c ../../tailwind.config.cjs -i src/styles.css -o dist/index.css"
46
+ }
47
+ }