@machinemetrics/mm-react-components 0.2.3-1 → 0.2.3-11
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 +96 -30
- package/agent-docs/agent-documentation-reference.md +247 -0
- package/agent-docs/ai-agent-guide.md +554 -0
- package/agent-docs/ai-agent-init-guide.md +461 -0
- package/agent-docs/chakra-migration-readme.md +265 -0
- package/agent-docs/chakra-migration-troubleshooting.md +649 -0
- package/agent-docs/component-mapping-reference.md +466 -0
- package/agent-docs/init-readme.md +283 -0
- package/agent-docs/init-troubleshooting.md +550 -0
- package/agent-docs/setup-reference.md +365 -0
- package/dist/App.d.ts.map +1 -1
- package/dist/README.md +96 -30
- package/dist/components/ui/alert-dialog.d.ts +15 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert.d.ts +10 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/avatar.d.ts +7 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb.d.ts +12 -0
- package/dist/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/card.d.ts +10 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/chart.d.ts +41 -0
- package/dist/components/ui/chart.d.ts.map +1 -0
- package/dist/components/ui/form.d.ts +25 -0
- package/dist/components/ui/form.d.ts.map +1 -0
- package/dist/components/ui/progress.d.ts +1 -0
- package/dist/components/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/separator.d.ts +5 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/sonner.d.ts +4 -0
- package/dist/components/ui/sonner.d.ts.map +1 -0
- package/dist/components/ui/textarea.d.ts +4 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/docs/GETTING_STARTED.md +293 -0
- package/dist/index.d.ts +14 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/lib/mm-react-components.css +1 -0
- package/dist/main.d.ts +0 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/mm-react-components.es.js +10964 -927
- package/dist/mm-react-components.es.js.map +1 -1
- package/dist/mm-react-components.umd.js +27 -9
- package/dist/mm-react-components.umd.js.map +1 -1
- package/dist/preview/AlertDialogPreview.d.ts +2 -0
- package/dist/preview/AlertDialogPreview.d.ts.map +1 -0
- package/dist/preview/AlertPreview.d.ts +2 -0
- package/dist/preview/AlertPreview.d.ts.map +1 -0
- package/dist/preview/AvatarPreview.d.ts +2 -0
- package/dist/preview/AvatarPreview.d.ts.map +1 -0
- package/dist/preview/BreadcrumbPreview.d.ts +2 -0
- package/dist/preview/BreadcrumbPreview.d.ts.map +1 -0
- package/dist/preview/CardPreview.d.ts +2 -0
- package/dist/preview/CardPreview.d.ts.map +1 -0
- package/dist/preview/ChartPreview.d.ts +2 -0
- package/dist/preview/ChartPreview.d.ts.map +1 -0
- package/dist/preview/CheckboxPreview.d.ts.map +1 -1
- package/dist/preview/DataTablePreview.d.ts.map +1 -1
- package/dist/preview/FormPreview.d.ts +2 -0
- package/dist/preview/FormPreview.d.ts.map +1 -0
- package/dist/preview/InputPreview.d.ts.map +1 -1
- package/dist/preview/LabelPreview.d.ts.map +1 -1
- package/dist/preview/RadioGroupPreview.d.ts.map +1 -1
- package/dist/preview/SeparatorPreview.d.ts +2 -0
- package/dist/preview/SeparatorPreview.d.ts.map +1 -0
- package/dist/preview/SonnerPreview.d.ts +2 -0
- package/dist/preview/SonnerPreview.d.ts.map +1 -0
- package/dist/preview/TabsPreview.d.ts.map +1 -1
- package/dist/preview/TextareaPreview.d.ts +2 -0
- package/dist/preview/TextareaPreview.d.ts.map +1 -0
- package/dist/preview/data-table/data-table-preview_column-content.d.ts +1 -1
- package/dist/preview/data-table/data-table-preview_column-content.d.ts.map +1 -1
- package/dist/preview/page-header/PageHeaderPreview.d.ts.map +1 -1
- package/dist/scripts/chakra-to-shadcn-migrator/chakra-to-shadcn.config.json +512 -0
- package/dist/scripts/chakra-to-shadcn-migrator/lib/args.js +63 -0
- package/dist/scripts/chakra-to-shadcn-migrator/lib/colors.js +14 -0
- package/dist/scripts/chakra-to-shadcn-migrator/lib/config.js +15 -0
- package/dist/scripts/chakra-to-shadcn-migrator/lib/deps.js +125 -0
- package/dist/scripts/chakra-to-shadcn-migrator/lib/file-io.js +44 -0
- package/dist/scripts/chakra-to-shadcn-migrator/lib/render.js +89 -0
- package/dist/scripts/chakra-to-shadcn-migrator/lib/transform.js +550 -0
- package/dist/scripts/chakra-to-shadcn-migrator/package.json +11 -0
- package/dist/scripts/init.cjs +208 -0
- package/dist/scripts/npx-init.cjs +409 -0
- package/dist/tailwind.base.config.js +88 -0
- package/dist/themes/carbide.css +187 -32
- package/package.json +58 -10
- package/src/index.css +99 -498
- package/dist/index.css +0 -536
- package/dist/tailwind.config.export.js +0 -153
- package/dist/themes/complete.css +0 -8
- package/scripts/README.md +0 -171
- package/scripts/chakra-to-shadcn-migrator/README.md +0 -107
- package/src/themes/carbide.css +0 -1257
- package/src/themes/complete.css +0 -8
- package/tailwind.config.export.js +0 -153
- /package/{scripts → dist/scripts}/chakra-to-shadcn-migrator/bin/chakra-to-shadcn.js +0 -0
package/dist/themes/carbide.css
CHANGED
|
@@ -1,7 +1,162 @@
|
|
|
1
|
+
/* Note: Font imports are now handled in src/lib/styles.css to avoid @import ordering issues */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--radius: 0.5rem;
|
|
5
|
+
--radius-sm: 4px;
|
|
6
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
7
|
+
--radius-lg: var(--radius);
|
|
8
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
9
|
+
--background: oklch(1 0 0);
|
|
10
|
+
--foreground: oklch(0.145 0 0);
|
|
11
|
+
--card: oklch(1 0 0);
|
|
12
|
+
--card-foreground: oklch(0.145 0 0);
|
|
13
|
+
--popover: oklch(1 0 0);
|
|
14
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
15
|
+
--primary: oklch(0.205 0 0);
|
|
16
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
17
|
+
--secondary: oklch(0.97 0 0);
|
|
18
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
19
|
+
--muted: oklch(0.97 0 0);
|
|
20
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
21
|
+
--accent: oklch(0.97 0 0);
|
|
22
|
+
--accent-foreground: oklch(0.205 0 0);
|
|
23
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
24
|
+
--border: oklch(0.922 0 0);
|
|
25
|
+
--input: oklch(0.922 0 0);
|
|
26
|
+
--ring: oklch(0.708 0 0);
|
|
27
|
+
--chart-1: #5a67d8;
|
|
28
|
+
--chart-2: #319795;
|
|
29
|
+
--chart-3: #38a169;
|
|
30
|
+
--chart-4: #dd6b20;
|
|
31
|
+
--chart-5: #805ad5;
|
|
32
|
+
--sidebar: oklch(0.985 0 0);
|
|
33
|
+
--sidebar-foreground: oklch(0.145 0 0);
|
|
34
|
+
--sidebar-primary: oklch(0.205 0 0);
|
|
35
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
36
|
+
--sidebar-accent: oklch(0.97 0 0);
|
|
37
|
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
38
|
+
--sidebar-border: oklch(0.922 0 0);
|
|
39
|
+
--sidebar-ring: oklch(0.708 0 0);
|
|
40
|
+
|
|
41
|
+
/* Overlay token (base) */
|
|
42
|
+
--overlay-bg: rgba(0, 0, 0, 0.8);
|
|
43
|
+
|
|
44
|
+
/* --- Typography tokens (shadcn/ui reference) --- */
|
|
45
|
+
--font-sans:
|
|
46
|
+
ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
47
|
+
Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
|
|
48
|
+
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
|
49
|
+
--font-mono:
|
|
50
|
+
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
|
|
51
|
+
'Courier New', monospace;
|
|
52
|
+
--font-heading: var(--font-sans);
|
|
53
|
+
--font-body: var(--font-sans);
|
|
54
|
+
|
|
55
|
+
--text-base-size: 1rem; /* 16px */
|
|
56
|
+
--text-sm-size: 0.875rem; /* 14px */
|
|
57
|
+
--text-lg-size: 1.125rem; /* 18px */
|
|
58
|
+
|
|
59
|
+
--font-weight-normal: 400;
|
|
60
|
+
--font-weight-medium: 500;
|
|
61
|
+
--font-weight-bold: 700;
|
|
62
|
+
|
|
63
|
+
--leading-tight: 1.25;
|
|
64
|
+
--leading-normal: 1.5;
|
|
65
|
+
|
|
66
|
+
--tracking-tight: -0.015em;
|
|
67
|
+
--tracking-normal: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.dark {
|
|
71
|
+
--background: oklch(0.145 0 0);
|
|
72
|
+
--foreground: oklch(0.985 0 0);
|
|
73
|
+
--card: oklch(0.205 0 0);
|
|
74
|
+
--card-foreground: oklch(0.985 0 0);
|
|
75
|
+
--popover: oklch(0.205 0 0);
|
|
76
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
77
|
+
--primary: oklch(0.922 0 0);
|
|
78
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
79
|
+
--secondary: oklch(0.269 0 0);
|
|
80
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
81
|
+
--muted: oklch(0.269 0 0);
|
|
82
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
83
|
+
--accent: oklch(0.269 0 0);
|
|
84
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
85
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
86
|
+
--border: oklch(1 0 0 / 10%);
|
|
87
|
+
--input: oklch(1 0 0 / 15%);
|
|
88
|
+
--ring: oklch(0.556 0 0);
|
|
89
|
+
--chart-1: #667eea;
|
|
90
|
+
--chart-2: #4fd1c5;
|
|
91
|
+
--chart-3: #48bb78;
|
|
92
|
+
--chart-4: #ed8936;
|
|
93
|
+
--chart-5: #9f7aea;
|
|
94
|
+
--sidebar: oklch(0.205 0 0);
|
|
95
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
96
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
97
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
98
|
+
--sidebar-accent: oklch(0.269 0 0);
|
|
99
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
100
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
101
|
+
--sidebar-ring: oklch(0.556 0 0);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* Collapsible animations using Radix-provided height variable */
|
|
105
|
+
@keyframes mm-collapsible-down {
|
|
106
|
+
from {
|
|
107
|
+
height: 0;
|
|
108
|
+
opacity: 0;
|
|
109
|
+
}
|
|
110
|
+
to {
|
|
111
|
+
height: var(--radix-collapsible-content-height);
|
|
112
|
+
opacity: 1;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@keyframes mm-collapsible-up {
|
|
117
|
+
from {
|
|
118
|
+
height: var(--radix-collapsible-content-height);
|
|
119
|
+
opacity: 1;
|
|
120
|
+
}
|
|
121
|
+
to {
|
|
122
|
+
height: 0;
|
|
123
|
+
opacity: 0;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* Accordion animations (core theme) */
|
|
128
|
+
@keyframes accordion-down {
|
|
129
|
+
from {
|
|
130
|
+
height: 0;
|
|
131
|
+
}
|
|
132
|
+
to {
|
|
133
|
+
height: var(--radix-accordion-content-height);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@keyframes accordion-up {
|
|
138
|
+
from {
|
|
139
|
+
height: var(--radix-accordion-content-height);
|
|
140
|
+
}
|
|
141
|
+
to {
|
|
142
|
+
height: 0;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/* JS-driven height animation now handles height. Keep only overflow hidden. */
|
|
147
|
+
[data-slot='collapsible-content'] {
|
|
148
|
+
overflow: hidden;
|
|
149
|
+
}
|
|
150
|
+
/* Radix sets hidden on closed when forceMount is used; override to enable CSS animation */
|
|
151
|
+
[data-slot='collapsible-content'][hidden] {
|
|
152
|
+
display: block !important;
|
|
153
|
+
}
|
|
154
|
+
/* JS controls height now; avoid conflicting state heights */
|
|
155
|
+
|
|
1
156
|
.carbide {
|
|
2
157
|
/* =============================
|
|
3
|
-
|
|
4
|
-
============================= */
|
|
158
|
+
TYPOGRAPHY
|
|
159
|
+
============================= */
|
|
5
160
|
|
|
6
161
|
/* Core Fonts */
|
|
7
162
|
--font-sans:
|
|
@@ -17,8 +172,8 @@
|
|
|
17
172
|
--font-weight-bold: 600;
|
|
18
173
|
|
|
19
174
|
/* =============================
|
|
20
|
-
|
|
21
|
-
============================= */
|
|
175
|
+
COLORS
|
|
176
|
+
============================= */
|
|
22
177
|
|
|
23
178
|
/* Brand */
|
|
24
179
|
--brand-green: #15a500;
|
|
@@ -193,13 +348,13 @@
|
|
|
193
348
|
|
|
194
349
|
/* =============================
|
|
195
350
|
SURFACES (GENERIC)
|
|
196
|
-
|
|
351
|
+
============================= */
|
|
197
352
|
/* Neutral control rail/background surface used across components */
|
|
198
353
|
--surface-neutral: var(--grey-300);
|
|
199
354
|
|
|
200
355
|
/* =============================
|
|
201
356
|
TABLIST
|
|
202
|
-
|
|
357
|
+
============================= */
|
|
203
358
|
--tablist-bg: var(--grey-200);
|
|
204
359
|
--tablist-fg: var(--grey-700);
|
|
205
360
|
--tablist-active-bg: var(--grey-00);
|
|
@@ -208,14 +363,14 @@
|
|
|
208
363
|
|
|
209
364
|
/* =============================
|
|
210
365
|
TABLE HEADER
|
|
211
|
-
|
|
366
|
+
============================= */
|
|
212
367
|
--tablehead-bg: var(--muted);
|
|
213
368
|
--tablehead-fg: var(--foreground);
|
|
214
369
|
--tablehead-border: var(--border);
|
|
215
370
|
|
|
216
371
|
/* =============================
|
|
217
372
|
BUTTONS
|
|
218
|
-
|
|
373
|
+
============================= */
|
|
219
374
|
--button-secondary-bg: transparent;
|
|
220
375
|
--button-secondary-border: var(--grey-700);
|
|
221
376
|
--button-secondary-hover-bg: var(--grey-150);
|
|
@@ -234,7 +389,7 @@
|
|
|
234
389
|
|
|
235
390
|
/* =============================
|
|
236
391
|
INPUT/OUTLINE/OVERLAY SURFACES
|
|
237
|
-
|
|
392
|
+
============================= */
|
|
238
393
|
--input-surface-bg: #202734;
|
|
239
394
|
--input-surface-border: #2d3748;
|
|
240
395
|
--input-surface-hover-bg: #242c3a;
|
|
@@ -242,14 +397,14 @@
|
|
|
242
397
|
|
|
243
398
|
/* =============================
|
|
244
399
|
BADGE: TYPOGRAPHY
|
|
245
|
-
|
|
400
|
+
============================= */
|
|
246
401
|
.carbide [data-slot='badge'] {
|
|
247
402
|
font-weight: 400;
|
|
248
403
|
}
|
|
249
404
|
|
|
250
405
|
/* =============================
|
|
251
406
|
KNOWLEDGE HUB STATUS BADGES
|
|
252
|
-
|
|
407
|
+
============================= */
|
|
253
408
|
.carbide .mmc-khub [data-slot='badge'] {
|
|
254
409
|
border-radius: 9999px;
|
|
255
410
|
}
|
|
@@ -312,7 +467,7 @@
|
|
|
312
467
|
|
|
313
468
|
/* =============================
|
|
314
469
|
BUTTON: ICON SIZE DEFAULT
|
|
315
|
-
|
|
470
|
+
============================= */
|
|
316
471
|
/* Default all button icons to 16px; :where() keeps specificity low so consumers can override */
|
|
317
472
|
.carbide [data-slot='button'] svg {
|
|
318
473
|
width: 16px;
|
|
@@ -321,7 +476,7 @@
|
|
|
321
476
|
|
|
322
477
|
/* =============================
|
|
323
478
|
BUTTON VARIANTS (LIGHT)
|
|
324
|
-
|
|
479
|
+
============================= */
|
|
325
480
|
.carbide [data-slot='button'][data-variant='default']:not([disabled]) {
|
|
326
481
|
background-color: var(--primary);
|
|
327
482
|
color: var(--primary-foreground);
|
|
@@ -457,7 +612,7 @@
|
|
|
457
612
|
|
|
458
613
|
/* =============================
|
|
459
614
|
BUTTON VARIANTS (DARK)
|
|
460
|
-
|
|
615
|
+
============================= */
|
|
461
616
|
.carbide.dark [data-slot='button'][data-variant='default']:not([disabled]) {
|
|
462
617
|
background-color: var(--primary);
|
|
463
618
|
color: var(--primary-foreground);
|
|
@@ -514,7 +669,7 @@
|
|
|
514
669
|
|
|
515
670
|
/* =============================
|
|
516
671
|
INPUT
|
|
517
|
-
|
|
672
|
+
============================= */
|
|
518
673
|
.carbide [data-slot='input'] {
|
|
519
674
|
background-color: var(--bg-input);
|
|
520
675
|
border-color: var(--border-input);
|
|
@@ -575,7 +730,7 @@
|
|
|
575
730
|
|
|
576
731
|
/* =============================
|
|
577
732
|
SELECT
|
|
578
|
-
|
|
733
|
+
============================= */
|
|
579
734
|
.carbide [data-slot='select-trigger'] {
|
|
580
735
|
background-color: var(--bg-input);
|
|
581
736
|
border-color: var(--border-input);
|
|
@@ -648,7 +803,7 @@
|
|
|
648
803
|
|
|
649
804
|
/* =============================
|
|
650
805
|
DROPDOWN MENU
|
|
651
|
-
|
|
806
|
+
============================= */
|
|
652
807
|
.carbide [data-slot='dropdown-menu-content'] {
|
|
653
808
|
background-color: var(--popover);
|
|
654
809
|
color: var(--popover-foreground);
|
|
@@ -736,7 +891,7 @@
|
|
|
736
891
|
|
|
737
892
|
/* =============================
|
|
738
893
|
TOOLTIP
|
|
739
|
-
|
|
894
|
+
============================= */
|
|
740
895
|
.carbide [data-slot='tooltip-content'] {
|
|
741
896
|
background-color: var(--foreground);
|
|
742
897
|
color: var(--background);
|
|
@@ -755,7 +910,7 @@
|
|
|
755
910
|
|
|
756
911
|
/* =============================
|
|
757
912
|
OVERLAYS & DIALOG/SHEET/DRAWER
|
|
758
|
-
|
|
913
|
+
============================= */
|
|
759
914
|
.carbide [data-slot='dialog-overlay'],
|
|
760
915
|
.carbide [data-slot='sheet-overlay'],
|
|
761
916
|
.carbide [data-slot='drawer-overlay'] {
|
|
@@ -838,7 +993,7 @@
|
|
|
838
993
|
|
|
839
994
|
/* =============================
|
|
840
995
|
TABLE
|
|
841
|
-
|
|
996
|
+
============================= */
|
|
842
997
|
.carbide [data-slot='table-wrapper'] {
|
|
843
998
|
background-color: var(--card);
|
|
844
999
|
color: var(--card-foreground);
|
|
@@ -852,7 +1007,7 @@
|
|
|
852
1007
|
|
|
853
1008
|
/* =============================
|
|
854
1009
|
TABS
|
|
855
|
-
|
|
1010
|
+
============================= */
|
|
856
1011
|
.carbide [data-slot='tabs-list'][data-variant='default'] {
|
|
857
1012
|
background-color: var(--tablist-bg);
|
|
858
1013
|
color: var(--tablist-fg);
|
|
@@ -905,7 +1060,7 @@
|
|
|
905
1060
|
}
|
|
906
1061
|
/* =============================
|
|
907
1062
|
UTILITY OVERRIDES
|
|
908
|
-
============================= */
|
|
1063
|
+
============================= */
|
|
909
1064
|
|
|
910
1065
|
/*
|
|
911
1066
|
Force correct text color for destructive badges and elements using text-destructive-foreground.
|
|
@@ -932,7 +1087,7 @@
|
|
|
932
1087
|
|
|
933
1088
|
/* =============================
|
|
934
1089
|
PROGRESS (SEMANTIC HOOK)
|
|
935
|
-
|
|
1090
|
+
============================= */
|
|
936
1091
|
.carbide [data-slot='progress'] {
|
|
937
1092
|
background-color: var(--surface-neutral);
|
|
938
1093
|
}
|
|
@@ -943,7 +1098,7 @@
|
|
|
943
1098
|
|
|
944
1099
|
/* =============================
|
|
945
1100
|
ACCORDION
|
|
946
|
-
|
|
1101
|
+
============================= */
|
|
947
1102
|
.carbide [data-slot='accordion'] [data-slot='accordion-item'] {
|
|
948
1103
|
border-bottom: 1px solid var(--border);
|
|
949
1104
|
}
|
|
@@ -953,7 +1108,7 @@
|
|
|
953
1108
|
|
|
954
1109
|
/* =============================
|
|
955
1110
|
POPOVER
|
|
956
|
-
|
|
1111
|
+
============================= */
|
|
957
1112
|
.carbide [data-slot='popover-content'] {
|
|
958
1113
|
background-color: var(--popover);
|
|
959
1114
|
color: var(--popover-foreground);
|
|
@@ -969,10 +1124,10 @@
|
|
|
969
1124
|
|
|
970
1125
|
/* =============================
|
|
971
1126
|
SLIDER (SEMANTIC HOOK)
|
|
972
|
-
|
|
1127
|
+
============================= */
|
|
973
1128
|
/* =============================
|
|
974
1129
|
CHECKBOX (SEMANTIC HOOK)
|
|
975
|
-
|
|
1130
|
+
============================= */
|
|
976
1131
|
.carbide [data-slot='checkbox'] {
|
|
977
1132
|
border-color: var(--border-input) !important;
|
|
978
1133
|
background-color: var(--bg-input);
|
|
@@ -998,7 +1153,7 @@
|
|
|
998
1153
|
|
|
999
1154
|
/* =============================
|
|
1000
1155
|
RADIO GROUP ITEM
|
|
1001
|
-
|
|
1156
|
+
============================= */
|
|
1002
1157
|
.carbide [data-slot='radio-group-item'] {
|
|
1003
1158
|
border-color: var(--border-input);
|
|
1004
1159
|
background-color: var(--bg-input);
|
|
@@ -1023,7 +1178,7 @@
|
|
|
1023
1178
|
|
|
1024
1179
|
/* =============================
|
|
1025
1180
|
FORM CONTROL FOCUS + INVALID STATES
|
|
1026
|
-
|
|
1181
|
+
============================= */
|
|
1027
1182
|
.carbide [data-slot='checkbox']:focus-visible,
|
|
1028
1183
|
.carbide [data-slot='radio-group-item']:focus-visible,
|
|
1029
1184
|
.carbide [data-slot='switch']:focus-visible {
|
|
@@ -1046,7 +1201,7 @@
|
|
|
1046
1201
|
|
|
1047
1202
|
/* =============================
|
|
1048
1203
|
SWITCH (SEMANTIC HOOK)
|
|
1049
|
-
|
|
1204
|
+
============================= */
|
|
1050
1205
|
.carbide [data-slot='switch'] {
|
|
1051
1206
|
border-color: transparent;
|
|
1052
1207
|
}
|
|
@@ -1074,7 +1229,7 @@
|
|
|
1074
1229
|
|
|
1075
1230
|
/* =============================
|
|
1076
1231
|
CALENDAR (SEMANTIC HOOK)
|
|
1077
|
-
|
|
1232
|
+
============================= */
|
|
1078
1233
|
.carbide [data-slot='calendar'] {
|
|
1079
1234
|
background-color: var(--card);
|
|
1080
1235
|
color: var(--card-foreground);
|
|
@@ -1125,7 +1280,7 @@
|
|
|
1125
1280
|
|
|
1126
1281
|
/* =============================
|
|
1127
1282
|
DATA TABLE: ALIGNMENT BASELINE FIX
|
|
1128
|
-
|
|
1283
|
+
============================= */
|
|
1129
1284
|
/* Unify left-aligned body cells to the sortable-header baseline (0.25rem) */
|
|
1130
1285
|
.carbide
|
|
1131
1286
|
td.text-left[data-col-id]:not([data-col-id='select']):not(
|
package/package.json
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@machinemetrics/mm-react-components",
|
|
3
|
-
"version": "0.2.3-
|
|
3
|
+
"version": "0.2.3-11",
|
|
4
|
+
"description": "Industrial-grade React components for manufacturing applications",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react",
|
|
7
|
+
"components",
|
|
8
|
+
"industrial",
|
|
9
|
+
"manufacturing",
|
|
10
|
+
"tailwind",
|
|
11
|
+
"shadcn"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://github.com/machinemetrics/mm-react-components#readme",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/machinemetrics/mm-react-components.git"
|
|
17
|
+
},
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/machinemetrics/mm-react-components/issues"
|
|
20
|
+
},
|
|
4
21
|
"license": "MIT",
|
|
5
22
|
"type": "module",
|
|
6
23
|
"main": "dist/mm-react-components.umd.js",
|
|
@@ -12,19 +29,39 @@
|
|
|
12
29
|
"import": "./dist/mm-react-components.es.js",
|
|
13
30
|
"require": "./dist/mm-react-components.umd.js"
|
|
14
31
|
},
|
|
15
|
-
"./styles": "./dist/
|
|
16
|
-
"./themes/base": "./dist/index.css",
|
|
32
|
+
"./styles": "./dist/lib/mm-react-components.css",
|
|
17
33
|
"./themes/carbide": "./dist/themes/carbide.css",
|
|
18
|
-
"./
|
|
19
|
-
"./tailwind.config": "./tailwind.config.export.js",
|
|
34
|
+
"./tailwind.config": "./dist/tailwind.base.config.js",
|
|
20
35
|
"./docs/tailwind-setup": "./docs/TAILWIND_SETUP.md",
|
|
21
|
-
"./
|
|
36
|
+
"./docs/getting-started": "./dist/docs/GETTING_STARTED.md",
|
|
37
|
+
"./README": "./dist/README.md",
|
|
38
|
+
"./migration/config": "./dist/scripts/chakra-to-shadcn-migrator/chakra-to-shadcn.config.json",
|
|
39
|
+
"./agent-docs": "./agent-docs/"
|
|
22
40
|
},
|
|
23
41
|
"engines": {
|
|
24
42
|
"node": ">=20"
|
|
25
43
|
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"react": "^19.1.1",
|
|
46
|
+
"react-dom": "^19.1.1",
|
|
47
|
+
"tailwindcss": "^4.0.0",
|
|
48
|
+
"postcss": "^8.5.6",
|
|
49
|
+
"autoprefixer": "^10.0.0"
|
|
50
|
+
},
|
|
51
|
+
"peerDependenciesMeta": {
|
|
52
|
+
"tailwindcss": {
|
|
53
|
+
"optional": true
|
|
54
|
+
},
|
|
55
|
+
"postcss": {
|
|
56
|
+
"optional": true
|
|
57
|
+
},
|
|
58
|
+
"autoprefixer": {
|
|
59
|
+
"optional": true
|
|
60
|
+
}
|
|
61
|
+
},
|
|
26
62
|
"bin": {
|
|
27
|
-
"chakra-to-shadcn": "scripts/chakra-to-shadcn-migrator/bin/chakra-to-shadcn.js"
|
|
63
|
+
"chakra-to-shadcn": "dist/scripts/chakra-to-shadcn-migrator/bin/chakra-to-shadcn.js",
|
|
64
|
+
"mm-init": "dist/scripts/npx-init.cjs"
|
|
28
65
|
},
|
|
29
66
|
"scripts": {
|
|
30
67
|
"build": "vite build --mode production && tsc --project tsconfig.build.json",
|
|
@@ -64,7 +101,10 @@
|
|
|
64
101
|
"@dnd-kit/modifiers": "9.0.0",
|
|
65
102
|
"@dnd-kit/sortable": "10.0.0",
|
|
66
103
|
"@dnd-kit/utilities": "3.2.2",
|
|
104
|
+
"@hookform/resolvers": "^5.2.2",
|
|
67
105
|
"@radix-ui/react-accordion": "^1.2.12",
|
|
106
|
+
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
107
|
+
"@radix-ui/react-avatar": "^1.1.10",
|
|
68
108
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
69
109
|
"@radix-ui/react-collapsible": "^1.1.12",
|
|
70
110
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
@@ -74,6 +114,7 @@
|
|
|
74
114
|
"@radix-ui/react-progress": "^1.1.7",
|
|
75
115
|
"@radix-ui/react-radio-group": "^1.3.8",
|
|
76
116
|
"@radix-ui/react-select": "^2.2.6",
|
|
117
|
+
"@radix-ui/react-separator": "^1.1.7",
|
|
77
118
|
"@radix-ui/react-slider": "^1.3.6",
|
|
78
119
|
"@radix-ui/react-slot": "^1.2.3",
|
|
79
120
|
"@radix-ui/react-switch": "^1.2.6",
|
|
@@ -86,17 +127,23 @@
|
|
|
86
127
|
"clsx": "^2.1.1",
|
|
87
128
|
"date-fns": "^4.1.0",
|
|
88
129
|
"lucide-react": "^0.544.0",
|
|
130
|
+
"next-themes": "^0.4.6",
|
|
89
131
|
"react": "^19.1.1",
|
|
90
132
|
"react-day-picker": "^9.11.0",
|
|
91
133
|
"react-dom": "^19.1.1",
|
|
92
134
|
"react-dropzone": "14.3.8",
|
|
135
|
+
"react-hook-form": "^7.64.0",
|
|
136
|
+
"recharts": "^2.15.4",
|
|
137
|
+
"sonner": "^2.0.7",
|
|
93
138
|
"tailwind-merge": "^3.3.1",
|
|
94
139
|
"tw-animate-css": "^1.3.8",
|
|
95
|
-
"vaul": "^1.1.2"
|
|
140
|
+
"vaul": "^1.1.2",
|
|
141
|
+
"zod": "^4.1.12"
|
|
96
142
|
},
|
|
97
143
|
"devDependencies": {
|
|
98
144
|
"@eslint/js": "^9.33.0",
|
|
99
145
|
"@playwright/test": "^1.55.0",
|
|
146
|
+
"@tailwindcss/postcss": "^4.1.13",
|
|
100
147
|
"@tailwindcss/vite": "^4.1.13",
|
|
101
148
|
"@types/node": "^24.5.0",
|
|
102
149
|
"@types/react": "^19.1.10",
|
|
@@ -105,6 +152,7 @@
|
|
|
105
152
|
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
|
106
153
|
"@typescript-eslint/parser": "^8.43.0",
|
|
107
154
|
"@vitejs/plugin-react": "^5.0.0",
|
|
155
|
+
"autoprefixer": "^10.4.21",
|
|
108
156
|
"eslint": "^9.33.0",
|
|
109
157
|
"eslint-config-prettier": "^10.1.8",
|
|
110
158
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
@@ -115,7 +163,7 @@
|
|
|
115
163
|
"globals": "^16.3.0",
|
|
116
164
|
"playwright": "^1.55.0",
|
|
117
165
|
"prettier": "^3.6.2",
|
|
118
|
-
"tailwindcss": "^4.1.
|
|
166
|
+
"tailwindcss": "^4.1.14",
|
|
119
167
|
"terser": "^5.44.0",
|
|
120
168
|
"tsx": "^4.19.2",
|
|
121
169
|
"typescript": "~5.8.3",
|
|
@@ -124,8 +172,8 @@
|
|
|
124
172
|
},
|
|
125
173
|
"files": [
|
|
126
174
|
"dist",
|
|
175
|
+
"agent-docs",
|
|
127
176
|
"src/index.css",
|
|
128
|
-
"src/themes",
|
|
129
177
|
"tailwind.config.export.js",
|
|
130
178
|
"docs/TAILWIND_SETUP.md",
|
|
131
179
|
"README.md",
|