@brrritscold/core-react 1.0.0 → 1.2.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/README.md +37 -35
- package/dist/components/badge.js +1 -1
- package/dist/components/button.js +2 -2
- package/dist/components/checkbox.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/input-group.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/radio-group.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/textarea.js +1 -1
- package/dist/library.snapshot.json +21320 -0
- package/dist/styles.css +29 -6
- package/dist/tokens.json +71 -1
- package/package.json +7 -5
package/dist/styles.css
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/* Generated from tokens/tokens.json by scripts/build-styles.ts. Do not edit. */
|
|
2
2
|
@import "tailwindcss";
|
|
3
3
|
@import "tw-animate-css";
|
|
4
|
+
@import "@fontsource/inter/400.css";
|
|
5
|
+
@import "@fontsource/inter/500.css";
|
|
6
|
+
@import "@fontsource/inter/600.css";
|
|
7
|
+
@import "@fontsource/inter/700.css";
|
|
4
8
|
@source "./**/*.js";
|
|
5
9
|
|
|
6
10
|
@custom-variant dark (&:is(.dark *));
|
|
@@ -61,7 +65,7 @@
|
|
|
61
65
|
--border-radius-lg: 10px;
|
|
62
66
|
--border-radius-xl: 14px;
|
|
63
67
|
--border-radius-full: 9999px;
|
|
64
|
-
--font-family-sans: ui-sans-serif, system-ui, sans-serif;
|
|
68
|
+
--font-family-sans: Inter, ui-sans-serif, system-ui, sans-serif;
|
|
65
69
|
--font-family-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
66
70
|
--font-size-xs: 0.75rem;
|
|
67
71
|
--font-size-sm: 0.875rem;
|
|
@@ -89,6 +93,8 @@
|
|
|
89
93
|
--opacity-10: 10%;
|
|
90
94
|
--opacity-50: 50%;
|
|
91
95
|
--opacity-100: 100%;
|
|
96
|
+
--destructive-background: rgba(185, 28, 28, 0.1); /** The tint behind destructive text: Button and Badge `destructive`, a destructive menu item's highlight. `destructive` at 10% in light, 20% in dark. */
|
|
97
|
+
--input-background: transparent; /** The fill of a form field: Input, Textarea, Select's trigger, Combobox, InputGroup, Checkbox, RadioGroup. Transparent in light, `input` at 30% in dark. */
|
|
92
98
|
--background: var(--color-white);
|
|
93
99
|
--foreground: var(--color-neutral-950);
|
|
94
100
|
--card: var(--color-white);
|
|
@@ -108,9 +114,17 @@
|
|
|
108
114
|
--input: var(--color-neutral-200);
|
|
109
115
|
--ring: var(--color-neutral-400);
|
|
110
116
|
--radius: var(--border-radius-lg);
|
|
117
|
+
--radius-xs: var(--border-radius-xs);
|
|
118
|
+
--radius-sm: var(--border-radius-sm);
|
|
119
|
+
--radius-md: var(--border-radius-md);
|
|
120
|
+
--radius-lg: var(--border-radius-lg);
|
|
121
|
+
--radius-xl: var(--border-radius-xl);
|
|
122
|
+
--outline-background: var(--background); /** The fill of an outlined control raised on its surface: Button `outline`, the active tab. `background` in light, `input-background` in dark. */
|
|
111
123
|
}
|
|
112
124
|
|
|
113
125
|
.dark {
|
|
126
|
+
--destructive-background: rgba(248, 113, 113, 0.2); /** The tint behind destructive text: Button and Badge `destructive`, a destructive menu item's highlight. `destructive` at 10% in light, 20% in dark. */
|
|
127
|
+
--input-background: rgba(38, 38, 38, 0.3); /** The fill of a form field: Input, Textarea, Select's trigger, Combobox, InputGroup, Checkbox, RadioGroup. Transparent in light, `input` at 30% in dark. */
|
|
114
128
|
--background: var(--color-neutral-950);
|
|
115
129
|
--foreground: var(--color-neutral-50);
|
|
116
130
|
--card: var(--color-neutral-900);
|
|
@@ -128,8 +142,14 @@
|
|
|
128
142
|
--destructive: var(--color-red-400);
|
|
129
143
|
--border: var(--color-neutral-800);
|
|
130
144
|
--input: var(--color-neutral-800);
|
|
145
|
+
--outline-background: var(--input-background); /** The fill of an outlined control raised on its surface: Button `outline`, the active tab. `background` in light, `input-background` in dark. */
|
|
131
146
|
--ring: var(--color-neutral-500);
|
|
132
147
|
--radius: var(--border-radius-lg);
|
|
148
|
+
--radius-xs: var(--border-radius-xs);
|
|
149
|
+
--radius-sm: var(--border-radius-sm);
|
|
150
|
+
--radius-md: var(--border-radius-md);
|
|
151
|
+
--radius-lg: var(--border-radius-lg);
|
|
152
|
+
--radius-xl: var(--border-radius-xl);
|
|
133
153
|
}
|
|
134
154
|
|
|
135
155
|
@theme inline {
|
|
@@ -205,14 +225,12 @@
|
|
|
205
225
|
--color-accent: var(--accent);
|
|
206
226
|
--color-accent-foreground: var(--accent-foreground);
|
|
207
227
|
--color-destructive: var(--destructive);
|
|
228
|
+
--color-destructive-background: var(--destructive-background);
|
|
208
229
|
--color-border: var(--border);
|
|
209
230
|
--color-input: var(--input);
|
|
231
|
+
--color-input-background: var(--input-background);
|
|
232
|
+
--color-outline-background: var(--outline-background);
|
|
210
233
|
--color-ring: var(--ring);
|
|
211
|
-
--radius-xs: calc(var(--radius) - 8px);
|
|
212
|
-
--radius-sm: calc(var(--radius) - 4px);
|
|
213
|
-
--radius-md: calc(var(--radius) - 2px);
|
|
214
|
-
--radius-lg: var(--radius);
|
|
215
|
-
--radius-xl: calc(var(--radius) + 4px);
|
|
216
234
|
--radius-full: var(--border-radius-full);
|
|
217
235
|
}
|
|
218
236
|
|
|
@@ -229,6 +247,11 @@
|
|
|
229
247
|
--opacity-10: var(--opacity-10);
|
|
230
248
|
--opacity-50: var(--opacity-50);
|
|
231
249
|
--opacity-100: var(--opacity-100);
|
|
250
|
+
--radius-xs: var(--radius-xs);
|
|
251
|
+
--radius-sm: var(--radius-sm);
|
|
252
|
+
--radius-md: var(--radius-md);
|
|
253
|
+
--radius-lg: var(--radius-lg);
|
|
254
|
+
--radius-xl: var(--radius-xl);
|
|
232
255
|
}
|
|
233
256
|
|
|
234
257
|
@layer base {
|
package/dist/tokens.json
CHANGED
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
"font-family": {
|
|
236
236
|
"sans": {
|
|
237
237
|
"$type": "fontFamilies",
|
|
238
|
-
"$value": "ui-sans-serif, system-ui, sans-serif"
|
|
238
|
+
"$value": "Inter, ui-sans-serif, system-ui, sans-serif"
|
|
239
239
|
},
|
|
240
240
|
"mono": {
|
|
241
241
|
"$type": "fontFamilies",
|
|
@@ -471,6 +471,11 @@
|
|
|
471
471
|
"$type": "color",
|
|
472
472
|
"$value": "{color.red.700}"
|
|
473
473
|
},
|
|
474
|
+
"destructive-background": {
|
|
475
|
+
"$type": "color",
|
|
476
|
+
"$value": "rgba(185, 28, 28, 0.1)",
|
|
477
|
+
"$description": "The tint behind destructive text: Button and Badge `destructive`, a destructive menu item's highlight. `destructive` at 10% in light, 20% in dark."
|
|
478
|
+
},
|
|
474
479
|
"border": {
|
|
475
480
|
"$type": "color",
|
|
476
481
|
"$value": "{color.neutral.200}"
|
|
@@ -479,6 +484,16 @@
|
|
|
479
484
|
"$type": "color",
|
|
480
485
|
"$value": "{color.neutral.200}"
|
|
481
486
|
},
|
|
487
|
+
"input-background": {
|
|
488
|
+
"$type": "color",
|
|
489
|
+
"$value": "transparent",
|
|
490
|
+
"$description": "The fill of a form field: Input, Textarea, Select's trigger, Combobox, InputGroup, Checkbox, RadioGroup. Transparent in light, `input` at 30% in dark."
|
|
491
|
+
},
|
|
492
|
+
"outline-background": {
|
|
493
|
+
"$type": "color",
|
|
494
|
+
"$value": "{background}",
|
|
495
|
+
"$description": "The fill of an outlined control raised on its surface: Button `outline`, the active tab. `background` in light, `input-background` in dark."
|
|
496
|
+
},
|
|
482
497
|
"ring": {
|
|
483
498
|
"$type": "color",
|
|
484
499
|
"$value": "{color.neutral.400}"
|
|
@@ -486,6 +501,26 @@
|
|
|
486
501
|
"radius": {
|
|
487
502
|
"$type": "borderRadius",
|
|
488
503
|
"$value": "{border-radius.lg}"
|
|
504
|
+
},
|
|
505
|
+
"radius-xs": {
|
|
506
|
+
"$type": "borderRadius",
|
|
507
|
+
"$value": "{border-radius.xs}"
|
|
508
|
+
},
|
|
509
|
+
"radius-sm": {
|
|
510
|
+
"$type": "borderRadius",
|
|
511
|
+
"$value": "{border-radius.sm}"
|
|
512
|
+
},
|
|
513
|
+
"radius-md": {
|
|
514
|
+
"$type": "borderRadius",
|
|
515
|
+
"$value": "{border-radius.md}"
|
|
516
|
+
},
|
|
517
|
+
"radius-lg": {
|
|
518
|
+
"$type": "borderRadius",
|
|
519
|
+
"$value": "{border-radius.lg}"
|
|
520
|
+
},
|
|
521
|
+
"radius-xl": {
|
|
522
|
+
"$type": "borderRadius",
|
|
523
|
+
"$value": "{border-radius.xl}"
|
|
489
524
|
}
|
|
490
525
|
},
|
|
491
526
|
"dark": {
|
|
@@ -549,6 +584,11 @@
|
|
|
549
584
|
"$type": "color",
|
|
550
585
|
"$value": "{color.red.400}"
|
|
551
586
|
},
|
|
587
|
+
"destructive-background": {
|
|
588
|
+
"$type": "color",
|
|
589
|
+
"$value": "rgba(248, 113, 113, 0.2)",
|
|
590
|
+
"$description": "The tint behind destructive text: Button and Badge `destructive`, a destructive menu item's highlight. `destructive` at 10% in light, 20% in dark."
|
|
591
|
+
},
|
|
552
592
|
"border": {
|
|
553
593
|
"$type": "color",
|
|
554
594
|
"$value": "{color.neutral.800}"
|
|
@@ -557,6 +597,16 @@
|
|
|
557
597
|
"$type": "color",
|
|
558
598
|
"$value": "{color.neutral.800}"
|
|
559
599
|
},
|
|
600
|
+
"input-background": {
|
|
601
|
+
"$type": "color",
|
|
602
|
+
"$value": "rgba(38, 38, 38, 0.3)",
|
|
603
|
+
"$description": "The fill of a form field: Input, Textarea, Select's trigger, Combobox, InputGroup, Checkbox, RadioGroup. Transparent in light, `input` at 30% in dark."
|
|
604
|
+
},
|
|
605
|
+
"outline-background": {
|
|
606
|
+
"$type": "color",
|
|
607
|
+
"$value": "{input-background}",
|
|
608
|
+
"$description": "The fill of an outlined control raised on its surface: Button `outline`, the active tab. `background` in light, `input-background` in dark."
|
|
609
|
+
},
|
|
560
610
|
"ring": {
|
|
561
611
|
"$type": "color",
|
|
562
612
|
"$value": "{color.neutral.500}"
|
|
@@ -564,6 +614,26 @@
|
|
|
564
614
|
"radius": {
|
|
565
615
|
"$type": "borderRadius",
|
|
566
616
|
"$value": "{border-radius.lg}"
|
|
617
|
+
},
|
|
618
|
+
"radius-xs": {
|
|
619
|
+
"$type": "borderRadius",
|
|
620
|
+
"$value": "{border-radius.xs}"
|
|
621
|
+
},
|
|
622
|
+
"radius-sm": {
|
|
623
|
+
"$type": "borderRadius",
|
|
624
|
+
"$value": "{border-radius.sm}"
|
|
625
|
+
},
|
|
626
|
+
"radius-md": {
|
|
627
|
+
"$type": "borderRadius",
|
|
628
|
+
"$value": "{border-radius.md}"
|
|
629
|
+
},
|
|
630
|
+
"radius-lg": {
|
|
631
|
+
"$type": "borderRadius",
|
|
632
|
+
"$value": "{border-radius.lg}"
|
|
633
|
+
},
|
|
634
|
+
"radius-xl": {
|
|
635
|
+
"$type": "borderRadius",
|
|
636
|
+
"$value": "{border-radius.xl}"
|
|
567
637
|
}
|
|
568
638
|
}
|
|
569
639
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brrritscold/core-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "The component library: shadcn (Base UI) React components on Tailwind v4, themed from one design token file and linked to the design system library in Penpot.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Blaine Richardson",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"./styles.css": "./dist/styles.css",
|
|
38
38
|
"./tokens.json": "./dist/tokens.json",
|
|
39
|
+
"./library.snapshot.json": "./dist/library.snapshot.json",
|
|
39
40
|
"./testing": {
|
|
40
41
|
"types": "./dist/testing.d.ts",
|
|
41
42
|
"default": "./dist/testing.js"
|
|
@@ -54,11 +55,12 @@
|
|
|
54
55
|
},
|
|
55
56
|
"dependencies": {
|
|
56
57
|
"@base-ui/react": "^1.9.0",
|
|
58
|
+
"@fontsource/inter": "5.3.0",
|
|
57
59
|
"@tanstack/react-table": "^9.3.1",
|
|
58
60
|
"class-variance-authority": "^0.7.1",
|
|
59
61
|
"clsx": "^2.1.1",
|
|
60
62
|
"date-fns": "^4.4.0",
|
|
61
|
-
"lucide-react": "
|
|
63
|
+
"lucide-react": "1.68.0",
|
|
62
64
|
"react-day-picker": "^10.0.2",
|
|
63
65
|
"tailwind-merge": "^3.7.0",
|
|
64
66
|
"tw-animate-css": "^1.4.0"
|
|
@@ -89,8 +91,8 @@
|
|
|
89
91
|
"style-dictionary": "^5.8.0",
|
|
90
92
|
"tailwindcss": "^4.3.4",
|
|
91
93
|
"vite": "^8.3.5",
|
|
92
|
-
"@brrritscold/design-core-js": "0.1.
|
|
93
|
-
"@brrritscold/design-core-node": "0.1.
|
|
94
|
+
"@brrritscold/design-core-js": "0.1.1",
|
|
95
|
+
"@brrritscold/design-core-node": "0.1.2"
|
|
94
96
|
},
|
|
95
97
|
"scripts": {
|
|
96
98
|
"build": "rm -rf dist && pnpm build:styles && tsc -p tsconfig.build.json && tsx scripts/build-icons.ts",
|
|
@@ -103,7 +105,7 @@
|
|
|
103
105
|
"storybook": "pnpm build:styles && storybook dev -p 6006",
|
|
104
106
|
"storybook:build": "pnpm build:styles && storybook build",
|
|
105
107
|
"test:integration": "pnpm storybook:build && playwright test -c playwright.integration.config.ts",
|
|
106
|
-
"test:integration:ci": "pnpm test:integration:setup && pnpm test:integration
|
|
108
|
+
"test:integration:ci": "pnpm test:integration:setup && { pnpm test:integration; code=$?; pnpm test:integration:teardown; exit $code; }",
|
|
107
109
|
"test:integration:setup": "tsx ./tests/integration/__utils__/setup.ts",
|
|
108
110
|
"test:integration:teardown": "tsx ./tests/integration/__utils__/teardown.ts",
|
|
109
111
|
"test:integration:watch": "pnpm storybook:build && playwright test -c playwright.integration.config.ts --ui",
|