@machinemetrics/mm-react-components 1.3.0 → 1.3.2
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/components/shadcn/card.d.ts +8 -8
- package/dist/components/shadcn/card.d.ts.map +1 -1
- package/dist/components/shadcn/chart.d.ts +30 -22
- package/dist/components/shadcn/chart.d.ts.map +1 -1
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/chart.d.ts +17 -31
- package/dist/components/ui/chart.d.ts.map +1 -1
- package/dist/components/ui/code-preview.d.ts.map +1 -1
- package/dist/components/ui/data-table/TableView.d.ts.map +1 -1
- package/dist/components/ui/data-table/cards/ResponsiveTable.d.ts.map +1 -1
- package/dist/components/ui/data-table/cards/RowCard.d.ts +1 -1
- package/dist/components/ui/data-table/cards/RowCard.d.ts.map +1 -1
- package/dist/components/ui/data-table/columnTypes/badgeColumn.d.ts.map +1 -1
- package/dist/components/ui/data-table/columnTypes/createColumn.d.ts.map +1 -1
- package/dist/components/ui/data-table/columnTypes/dateColumn.d.ts.map +1 -1
- package/dist/components/ui/data-table/columnTypes/multiBadgeColumn.d.ts.map +1 -1
- package/dist/components/ui/data-table/columnTypes/numericColumn.d.ts.map +1 -1
- package/dist/components/ui/data-table/metadata/ColumnRegistry.d.ts +2 -2
- package/dist/components/ui/data-table/metadata/ColumnRegistry.d.ts.map +1 -1
- package/dist/components/ui/data-table/metadata/alignment.d.ts.map +1 -1
- package/dist/components/ui/data-table/pagination.d.ts.map +1 -1
- package/dist/components/ui/data-table/parts/BatchActionsToolbar.d.ts +1 -1
- package/dist/components/ui/data-table/parts/BatchActionsToolbar.d.ts.map +1 -1
- package/dist/components/ui/data-table/parts/CellContent.d.ts +2 -2
- package/dist/components/ui/data-table/parts/CellContent.d.ts.map +1 -1
- package/dist/components/ui/data-table/parts/ColGroup.d.ts +1 -1
- package/dist/components/ui/data-table/parts/ColGroup.d.ts.map +1 -1
- package/dist/components/ui/data-table/parts/SortableHeader.d.ts +2 -2
- package/dist/components/ui/data-table/parts/SortableHeader.d.ts.map +1 -1
- package/dist/components/ui/data-table/parts/TableHeader.d.ts +2 -2
- package/dist/components/ui/data-table/parts/TableHeader.d.ts.map +1 -1
- package/dist/components/ui/data-table/state/useBreakpoint.d.ts.map +1 -1
- package/dist/components/ui/data-table/state/useDataTableState.d.ts +1 -1
- package/dist/components/ui/data-table/state/useDataTableState.d.ts.map +1 -1
- package/dist/components/ui/data-table/toolbar/ColumnVisibilityMenu.d.ts +1 -1
- package/dist/components/ui/data-table/toolbar/ColumnVisibilityMenu.d.ts.map +1 -1
- package/dist/components/ui/data-table/toolbar/DataTableToolbar.d.ts +1 -1
- package/dist/components/ui/data-table/toolbar/DataTableToolbar.d.ts.map +1 -1
- package/dist/components/ui/data-table/toolbar/MenuHeader.d.ts +1 -1
- package/dist/components/ui/data-table/toolbar/MenuHeader.d.ts.map +1 -1
- package/dist/components/ui/data-table/toolbar/SortMenu.d.ts +1 -1
- package/dist/components/ui/data-table/toolbar/SortMenu.d.ts.map +1 -1
- package/dist/components/ui/data-table/toolbar/filters/DateRangeFilter.d.ts +1 -1
- package/dist/components/ui/data-table/toolbar/filters/DateRangeFilter.d.ts.map +1 -1
- package/dist/components/ui/data-table/toolbar/filters/FilterMenu.d.ts +1 -1
- package/dist/components/ui/data-table/toolbar/filters/FilterMenu.d.ts.map +1 -1
- package/dist/components/ui/data-table/toolbar/filters/InlineDateRangePicker.d.ts +1 -1
- package/dist/components/ui/data-table/toolbar/filters/InlineDateRangePicker.d.ts.map +1 -1
- package/dist/components/ui/data-table/toolbar/filters/NumericRangeFilter.d.ts +1 -1
- package/dist/components/ui/data-table/toolbar/filters/NumericRangeFilter.d.ts.map +1 -1
- package/dist/components/ui/data-table/toolbar/filters/SelectFilter.d.ts +1 -1
- package/dist/components/ui/data-table/toolbar/filters/SelectFilter.d.ts.map +1 -1
- package/dist/components/ui/data-table/toolbar/filters/TextFilter.d.ts +1 -1
- package/dist/components/ui/data-table/toolbar/filters/TextFilter.d.ts.map +1 -1
- package/dist/components/ui/data-table/toolbar/filters/useColumnFilters.d.ts.map +1 -1
- package/dist/components/ui/data-table/types.d.ts +1 -1
- package/dist/components/ui/data-table/types.d.ts.map +1 -1
- package/dist/components/ui/data-table/useDragAndDrop.d.ts.map +1 -1
- package/dist/components/ui/data-table/useTableController.d.ts +1 -1
- package/dist/components/ui/data-table/useTableController.d.ts.map +1 -1
- package/dist/components/ui/date-range-picker.d.ts +1 -1
- package/dist/components/ui/date-range-picker.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +4 -3
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropzone/index.d.ts +2 -2
- package/dist/components/ui/dropzone/index.d.ts.map +1 -1
- package/dist/components/ui/file-grid/FileGrid.d.ts +1 -1
- package/dist/components/ui/file-grid/FileGrid.d.ts.map +1 -1
- package/dist/components/ui/file-thumbnail/FileThumbnail.d.ts +1 -1
- package/dist/components/ui/file-thumbnail/FileThumbnail.d.ts.map +1 -1
- package/dist/components/ui/hero-metric-card/HeroMetricCard.d.ts.map +1 -1
- package/dist/components/ui/hero-metric-card/hooks.d.ts.map +1 -1
- package/dist/components/ui/hero-metric-card/utils.d.ts +1 -1
- package/dist/components/ui/hero-metric-card/utils.d.ts.map +1 -1
- package/dist/components/ui/page-header/page-header.d.ts.map +1 -1
- package/dist/components/ui/sheet.d.ts +1 -1
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/slider.d.ts +1 -1
- package/dist/components/ui/slider.d.ts.map +1 -1
- package/dist/components/ui/spinner-carbide.d.ts +1 -1
- package/dist/components/ui/spinner-carbide.d.ts.map +1 -1
- package/dist/components/ui/spinner.d.ts +1 -1
- package/dist/components/ui/spinner.d.ts.map +1 -1
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/hooks/use-mobile.d.ts.map +1 -1
- package/dist/lib/mm-react-components.css +1 -1
- package/dist/mm-react-components.es.js +888 -881
- package/dist/mm-react-components.es.js.map +1 -1
- package/dist/mm-react-components.umd.js +1 -1
- package/dist/mm-react-components.umd.js.map +1 -1
- package/dist/preview/ChartPreview.d.ts.map +1 -1
- package/dist/preview/ColorsPreview.d.ts +1 -1
- package/dist/preview/ColorsPreview.d.ts.map +1 -1
- package/dist/preview/DataTablePreview.d.ts +1 -1
- package/dist/preview/DataTablePreview.d.ts.map +1 -1
- package/dist/preview/SonnerPreview.d.ts.map +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/init.cjs +3 -7
- package/dist/scripts/install-skill.cjs +0 -1
- package/dist/themes/carbide.css +25 -25
- package/package.json +39 -40
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartPreview.d.ts","sourceRoot":"","sources":["../../src/preview/ChartPreview.tsx"],"names":[],"mappings":"AAqHA,MAAM,CAAC,OAAO,UAAU,YAAY,
|
|
1
|
+
{"version":3,"file":"ChartPreview.d.ts","sourceRoot":"","sources":["../../src/preview/ChartPreview.tsx"],"names":[],"mappings":"AAqHA,MAAM,CAAC,OAAO,UAAU,YAAY,4CAuOnC"}
|
|
@@ -4,6 +4,6 @@ export declare const COLORS_SECTION_ORDER: readonly ["Carbide Palette", "Core",
|
|
|
4
4
|
interface ColorsPreviewProps {
|
|
5
5
|
section?: ColorsSection;
|
|
6
6
|
}
|
|
7
|
-
export default function ColorsPreview({ section }: ColorsPreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default function ColorsPreview({ section }: Readonly<ColorsPreviewProps>): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
9
9
|
//# sourceMappingURL=ColorsPreview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorsPreview.d.ts","sourceRoot":"","sources":["../../src/preview/ColorsPreview.tsx"],"names":[],"mappings":"AAOA,MAAM,MAAM,aAAa,GACrB,iBAAiB,GACjB,MAAM,GACN,SAAS,GACT,mBAAmB,GACnB,MAAM,GACN,OAAO,GACP,SAAS,GACT,SAAS,GACT,QAAQ,GACR,SAAS,GACT,MAAM,GACN,iBAAiB,CAAC;AAEtB,mFAAmF;AACnF,eAAO,MAAM,oBAAoB,6JAaY,CAAC;AAE9C,UAAU,kBAAkB;IAC1B,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;
|
|
1
|
+
{"version":3,"file":"ColorsPreview.d.ts","sourceRoot":"","sources":["../../src/preview/ColorsPreview.tsx"],"names":[],"mappings":"AAOA,MAAM,MAAM,aAAa,GACrB,iBAAiB,GACjB,MAAM,GACN,SAAS,GACT,mBAAmB,GACnB,MAAM,GACN,OAAO,GACP,SAAS,GACT,SAAS,GACT,QAAQ,GACR,SAAS,GACT,MAAM,GACN,iBAAiB,CAAC;AAEtB,mFAAmF;AACnF,eAAO,MAAM,oBAAoB,6JAaY,CAAC;AAE9C,UAAU,kBAAkB;IAC1B,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAaD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,OAAO,EAAE,EAAE,QAAQ,CAAC,kBAAkB,CAAC,2CAwF9E"}
|
|
@@ -4,6 +4,6 @@ type DataTablePreviewProps = {
|
|
|
4
4
|
devForceLoading?: boolean;
|
|
5
5
|
devForceEmpty?: boolean;
|
|
6
6
|
};
|
|
7
|
-
export default function DataTablePreview({ profile: controlledProfile, devForceLoading, devForceEmpty, }: DataTablePreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default function DataTablePreview({ profile: controlledProfile, devForceLoading, devForceEmpty, }: Readonly<DataTablePreviewProps>): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
9
9
|
//# sourceMappingURL=DataTablePreview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTablePreview.d.ts","sourceRoot":"","sources":["../../src/preview/DataTablePreview.tsx"],"names":[],"mappings":"AAoKA,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,eAAe,GAAG,mBAAmB,CAAC;AAEtE,KAAK,qBAAqB,GAAG;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,OAAO,EAAE,iBAAiB,EAC1B,eAAuB,EACvB,aAAqB,GACtB,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"DataTablePreview.d.ts","sourceRoot":"","sources":["../../src/preview/DataTablePreview.tsx"],"names":[],"mappings":"AAoKA,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,eAAe,GAAG,mBAAmB,CAAC;AAEtE,KAAK,qBAAqB,GAAG;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,OAAO,EAAE,iBAAiB,EAC1B,eAAuB,EACvB,aAAqB,GACtB,EAAE,QAAQ,CAAC,qBAAqB,CAAC,2CA4OjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SonnerPreview.d.ts","sourceRoot":"","sources":["../../src/preview/SonnerPreview.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SonnerPreview.d.ts","sourceRoot":"","sources":["../../src/preview/SonnerPreview.tsx"],"names":[],"mappings":"AAOA,MAAM,CAAC,OAAO,UAAU,aAAa,4CA6MpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table-preview_column-content.d.ts","sourceRoot":"","sources":["../../../src/preview/data-table/data-table-preview_column-content.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"data-table-preview_column-content.d.ts","sourceRoot":"","sources":["../../../src/preview/data-table/data-table-preview_column-content.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAevD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,QAAQ,CAAC;IAChC,KAAK,EAAE;QAAE,SAAS,EAAE,IAAI,GAAG,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACnD,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AA4NF,eAAO,MAAM,2BAA2B,2FAMrC,CAAC;AAEJ,eAAO,MAAM,oBAAoB,EAAE,SAAS,CAAC,kBAAkB,CAAC,EAG5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageHeaderPreview.d.ts","sourceRoot":"","sources":["../../../src/preview/page-header/PageHeaderPreview.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PageHeaderPreview.d.ts","sourceRoot":"","sources":["../../../src/preview/page-header/PageHeaderPreview.tsx"],"names":[],"mappings":"AAaA,OAAO,2BAA2B,CAAC;AAQnC,MAAM,CAAC,OAAO,UAAU,iBAAiB,4CAyRxC"}
|
package/dist/scripts/init.cjs
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
* (or npx @machinemetrics/mm-react-components)
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
/* eslint-disable no-undef, no-unused-vars */
|
|
11
10
|
|
|
12
11
|
const { execSync } = require('child_process');
|
|
13
12
|
const fs = require('fs');
|
|
@@ -41,9 +40,6 @@ function log(message, color = 'reset') {
|
|
|
41
40
|
console.log(`${colors[color]}${message}${colors.reset}`);
|
|
42
41
|
}
|
|
43
42
|
|
|
44
|
-
function logWarning(message) {
|
|
45
|
-
log(`⚠️ ${message}`, 'yellow');
|
|
46
|
-
}
|
|
47
43
|
|
|
48
44
|
function detectChakraUI() {
|
|
49
45
|
const packageJsonPath = path.join(process.cwd(), 'package.json');
|
|
@@ -138,7 +134,7 @@ async function main() {
|
|
|
138
134
|
if (scriptsVersion && scriptsVersion.includes('5.0')) {
|
|
139
135
|
execSync('npm install react-scripts@^5.0.0', { stdio: 'inherit' });
|
|
140
136
|
}
|
|
141
|
-
} catch
|
|
137
|
+
} catch {
|
|
142
138
|
/* ignore */
|
|
143
139
|
}
|
|
144
140
|
log('React 19 — compatible', 'green');
|
|
@@ -149,7 +145,7 @@ async function main() {
|
|
|
149
145
|
);
|
|
150
146
|
log('React 18.2+ installed — compatible', 'green');
|
|
151
147
|
}
|
|
152
|
-
} catch
|
|
148
|
+
} catch {
|
|
153
149
|
log('React version check skipped', 'yellow');
|
|
154
150
|
}
|
|
155
151
|
|
|
@@ -204,7 +200,7 @@ async function main() {
|
|
|
204
200
|
if (fs.existsSync(installSkillPath)) {
|
|
205
201
|
try {
|
|
206
202
|
execSync(`node "${installSkillPath}"`, { stdio: 'inherit' });
|
|
207
|
-
} catch
|
|
203
|
+
} catch {
|
|
208
204
|
log(' Could not run skill installer.', 'yellow');
|
|
209
205
|
log(
|
|
210
206
|
' You can install later: npx @machinemetrics/mm-react-components mm-install-skill [--target=<cursor|copilot|claude|gemini>] [--scope=project|user]',
|
package/dist/themes/carbide.css
CHANGED
|
@@ -479,21 +479,21 @@
|
|
|
479
479
|
color: var(--accent-foreground);
|
|
480
480
|
}
|
|
481
481
|
|
|
482
|
-
/* Semantic status badges (spec: Neutral, Info, Success, Critical, Warning, Attention, Production, Setup) */
|
|
482
|
+
/* Semantic status badges (spec: Neutral, Info, Success, Critical, Warning, Attention, Production, Setup) — 200-level fills */
|
|
483
483
|
.carbide [data-slot='badge'][data-variant='neutral'] {
|
|
484
484
|
border-color: transparent;
|
|
485
|
-
background-color: var(--grey-
|
|
485
|
+
background-color: var(--grey-200);
|
|
486
486
|
color: var(--grey-700);
|
|
487
487
|
}
|
|
488
488
|
.carbide.dark [data-slot='badge'][data-variant='neutral'] {
|
|
489
|
-
background-color: var(--grey-
|
|
490
|
-
color: var(--grey-
|
|
489
|
+
background-color: var(--grey-200);
|
|
490
|
+
color: var(--grey-700);
|
|
491
491
|
}
|
|
492
492
|
.carbide [data-slot='badge'][data-variant='neutral'] a:hover {
|
|
493
|
-
background-color: var(--grey-
|
|
493
|
+
background-color: var(--grey-300);
|
|
494
494
|
}
|
|
495
495
|
.carbide.dark [data-slot='badge'][data-variant='neutral'] a:hover {
|
|
496
|
-
background-color: var(--grey-
|
|
496
|
+
background-color: var(--grey-300);
|
|
497
497
|
}
|
|
498
498
|
|
|
499
499
|
.carbide [data-slot='badge'][data-variant='info'] {
|
|
@@ -502,14 +502,14 @@
|
|
|
502
502
|
color: var(--grey-700);
|
|
503
503
|
}
|
|
504
504
|
.carbide.dark [data-slot='badge'][data-variant='info'] {
|
|
505
|
-
background-color: var(--indigo-
|
|
506
|
-
color: var(--grey-
|
|
505
|
+
background-color: var(--indigo-200);
|
|
506
|
+
color: var(--grey-700);
|
|
507
507
|
}
|
|
508
508
|
.carbide [data-slot='badge'][data-variant='info'] a:hover {
|
|
509
509
|
background-color: var(--indigo-300);
|
|
510
510
|
}
|
|
511
511
|
.carbide.dark [data-slot='badge'][data-variant='info'] a:hover {
|
|
512
|
-
background-color: var(--indigo-
|
|
512
|
+
background-color: var(--indigo-300);
|
|
513
513
|
}
|
|
514
514
|
|
|
515
515
|
.carbide [data-slot='badge'][data-variant='success'],
|
|
@@ -520,8 +520,8 @@
|
|
|
520
520
|
}
|
|
521
521
|
.carbide.dark [data-slot='badge'][data-variant='success'],
|
|
522
522
|
.carbide.dark [data-slot='badge'][data-variant='production'] {
|
|
523
|
-
background-color: var(--green-
|
|
524
|
-
color: var(--grey-
|
|
523
|
+
background-color: var(--green-200);
|
|
524
|
+
color: var(--grey-700);
|
|
525
525
|
}
|
|
526
526
|
.carbide [data-slot='badge'][data-variant='success'] a:hover,
|
|
527
527
|
.carbide [data-slot='badge'][data-variant='production'] a:hover {
|
|
@@ -529,7 +529,7 @@
|
|
|
529
529
|
}
|
|
530
530
|
.carbide.dark [data-slot='badge'][data-variant='success'] a:hover,
|
|
531
531
|
.carbide.dark [data-slot='badge'][data-variant='production'] a:hover {
|
|
532
|
-
background-color: var(--green-
|
|
532
|
+
background-color: var(--green-300);
|
|
533
533
|
}
|
|
534
534
|
|
|
535
535
|
.carbide [data-slot='badge'][data-variant='critical'] {
|
|
@@ -538,50 +538,50 @@
|
|
|
538
538
|
color: var(--grey-700);
|
|
539
539
|
}
|
|
540
540
|
.carbide.dark [data-slot='badge'][data-variant='critical'] {
|
|
541
|
-
background-color: var(--red-
|
|
542
|
-
color: var(--grey-
|
|
541
|
+
background-color: var(--red-200);
|
|
542
|
+
color: var(--grey-700);
|
|
543
543
|
}
|
|
544
544
|
.carbide [data-slot='badge'][data-variant='critical'] a:hover {
|
|
545
545
|
background-color: var(--red-300);
|
|
546
546
|
}
|
|
547
547
|
.carbide.dark [data-slot='badge'][data-variant='critical'] a:hover {
|
|
548
|
-
background-color: var(--red-
|
|
548
|
+
background-color: var(--red-300);
|
|
549
549
|
}
|
|
550
550
|
|
|
551
551
|
.carbide [data-slot='badge'][data-variant='warning'] {
|
|
552
552
|
border-color: transparent;
|
|
553
|
-
background-color: var(--orange-
|
|
553
|
+
background-color: var(--orange-200);
|
|
554
554
|
color: var(--grey-700);
|
|
555
555
|
}
|
|
556
556
|
.carbide.dark [data-slot='badge'][data-variant='warning'] {
|
|
557
|
-
background-color: var(--orange-
|
|
558
|
-
color: var(--grey-
|
|
557
|
+
background-color: var(--orange-200);
|
|
558
|
+
color: var(--grey-700);
|
|
559
559
|
}
|
|
560
560
|
.carbide [data-slot='badge'][data-variant='warning'] a:hover {
|
|
561
|
-
background-color: var(--orange-
|
|
561
|
+
background-color: var(--orange-300);
|
|
562
562
|
}
|
|
563
563
|
.carbide.dark [data-slot='badge'][data-variant='warning'] a:hover {
|
|
564
|
-
background-color: var(--orange-
|
|
564
|
+
background-color: var(--orange-300);
|
|
565
565
|
}
|
|
566
566
|
|
|
567
567
|
.carbide [data-slot='badge'][data-variant='attention'],
|
|
568
568
|
.carbide [data-slot='badge'][data-variant='setup'] {
|
|
569
569
|
border-color: transparent;
|
|
570
|
-
background-color: var(--yellow-
|
|
570
|
+
background-color: var(--yellow-200);
|
|
571
571
|
color: var(--grey-700);
|
|
572
572
|
}
|
|
573
573
|
.carbide.dark [data-slot='badge'][data-variant='attention'],
|
|
574
574
|
.carbide.dark [data-slot='badge'][data-variant='setup'] {
|
|
575
|
-
background-color: var(--yellow-
|
|
576
|
-
color: var(--grey-
|
|
575
|
+
background-color: var(--yellow-200);
|
|
576
|
+
color: var(--grey-700);
|
|
577
577
|
}
|
|
578
578
|
.carbide [data-slot='badge'][data-variant='attention'] a:hover,
|
|
579
579
|
.carbide [data-slot='badge'][data-variant='setup'] a:hover {
|
|
580
|
-
background-color: var(--yellow-
|
|
580
|
+
background-color: var(--yellow-300);
|
|
581
581
|
}
|
|
582
582
|
.carbide.dark [data-slot='badge'][data-variant='attention'] a:hover,
|
|
583
583
|
.carbide.dark [data-slot='badge'][data-variant='setup'] a:hover {
|
|
584
|
-
background-color: var(--yellow-
|
|
584
|
+
background-color: var(--yellow-300);
|
|
585
585
|
}
|
|
586
586
|
|
|
587
587
|
/* variant="custom": intentionally no color rules here — consumers style via className / own CSS */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@machinemetrics/mm-react-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "Industrial-grade React components for manufacturing applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -75,8 +75,9 @@
|
|
|
75
75
|
"serve:static": "vite preview --config vite.preview.config.mjs",
|
|
76
76
|
"dev": "vite",
|
|
77
77
|
"preview": "vite preview",
|
|
78
|
-
"lint": "eslint
|
|
79
|
-
"lint:
|
|
78
|
+
"lint": "eslint src/components/ui src/hooks src/preview scripts --report-unused-disable-directives --max-warnings 0",
|
|
79
|
+
"lint:verify": "eslint src/components/ui src/hooks src/preview scripts --report-unused-disable-directives --max-warnings 0 --quiet",
|
|
80
|
+
"lint:fix": "eslint src/components/ui src/hooks src/preview scripts --fix --report-unused-disable-directives --max-warnings 0",
|
|
80
81
|
"type-check": "tsc --noEmit",
|
|
81
82
|
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css,md}\"",
|
|
82
83
|
"format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,css,md}\"",
|
|
@@ -110,7 +111,7 @@
|
|
|
110
111
|
"clean": "rm -rf dist dev-dist dist-preview"
|
|
111
112
|
},
|
|
112
113
|
"dependencies": {
|
|
113
|
-
"@base-ui/react": "^1.1
|
|
114
|
+
"@base-ui/react": "^1.4.1",
|
|
114
115
|
"@dnd-kit/core": "6.3.1",
|
|
115
116
|
"@dnd-kit/modifiers": "9.0.0",
|
|
116
117
|
"@dnd-kit/sortable": "10.0.0",
|
|
@@ -145,63 +146,61 @@
|
|
|
145
146
|
"@radix-ui/react-toggle-group": "^1.1.11",
|
|
146
147
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
147
148
|
"@tanstack/react-table": "^8.21.3",
|
|
148
|
-
"@tanstack/react-virtual": "3.13.
|
|
149
|
+
"@tanstack/react-virtual": "3.13.24",
|
|
149
150
|
"class-variance-authority": "^0.7.1",
|
|
150
151
|
"clsx": "^2.1.1",
|
|
151
152
|
"cmdk": "^1.1.1",
|
|
152
153
|
"date-fns": "^4.1.0",
|
|
153
154
|
"embla-carousel-react": "^8.6.0",
|
|
154
155
|
"input-otp": "^1.4.2",
|
|
155
|
-
"lucide-react": "^
|
|
156
|
+
"lucide-react": "^1.17.0",
|
|
156
157
|
"next-themes": "^0.4.6",
|
|
157
158
|
"react": "^18.2.0 || ^19.0.0",
|
|
158
|
-
"react-day-picker": "^9.
|
|
159
|
+
"react-day-picker": "^9.14.0",
|
|
159
160
|
"react-dom": "^18.2.0 || ^19.0.0",
|
|
160
|
-
"react-dropzone": "14.
|
|
161
|
-
"react-hook-form": "^7.
|
|
162
|
-
"react-resizable-panels": "^4.
|
|
163
|
-
"recharts": "^
|
|
161
|
+
"react-dropzone": "14.4.1",
|
|
162
|
+
"react-hook-form": "^7.75.0",
|
|
163
|
+
"react-resizable-panels": "^4.11.1",
|
|
164
|
+
"recharts": "^3.8.0",
|
|
164
165
|
"sonner": "^2.0.7",
|
|
165
|
-
"tailwind-merge": "^3.
|
|
166
|
+
"tailwind-merge": "^3.6.0",
|
|
166
167
|
"tw-animate-css": "^1.4.0",
|
|
167
168
|
"vaul": "^1.1.2",
|
|
168
|
-
"zod": "^4.3
|
|
169
|
+
"zod": "^4.4.3"
|
|
169
170
|
},
|
|
170
171
|
"devDependencies": {
|
|
171
|
-
"@eslint/
|
|
172
|
-
"@
|
|
173
|
-
"@
|
|
174
|
-
"@
|
|
175
|
-
"@
|
|
176
|
-
"@
|
|
177
|
-
"@
|
|
172
|
+
"@eslint-react/eslint-plugin": "^5.7.7",
|
|
173
|
+
"@eslint/css": "^1.2.0",
|
|
174
|
+
"@eslint/js": "^10.0.1",
|
|
175
|
+
"@laynezh/vite-plugin-lib-assets": "^2.2.0",
|
|
176
|
+
"@playwright/test": "^1.60.0",
|
|
177
|
+
"@tailwindcss/postcss": "^4.3.0",
|
|
178
|
+
"@tailwindcss/vite": "^4.3.0",
|
|
179
|
+
"@types/node": "^25.7.0",
|
|
180
|
+
"@types/react": "^19.2.14",
|
|
178
181
|
"@types/react-dom": "^19.2.3",
|
|
179
182
|
"@types/react-is": "^19.2.0",
|
|
180
183
|
"@types/react-table": "^7.7.20",
|
|
181
|
-
"@
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"eslint": "^
|
|
188
|
-
"eslint-
|
|
189
|
-
"
|
|
190
|
-
"
|
|
191
|
-
"
|
|
192
|
-
"
|
|
193
|
-
"eslint-plugin-react-refresh": "^0.4.26",
|
|
194
|
-
"globals": "^17.0.0",
|
|
195
|
-
"playwright": "^1.57.0",
|
|
196
|
-
"prettier": "^3.7.4",
|
|
184
|
+
"@vitejs/plugin-react": "^5.2.0",
|
|
185
|
+
"autoprefixer": "^10.5.0",
|
|
186
|
+
"cheerio": "^1.2.0",
|
|
187
|
+
"cross-env": "^10.1.0",
|
|
188
|
+
"eslint": "^10.3.0",
|
|
189
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
190
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
191
|
+
"eslint-plugin-sonarjs": "^4.0.3",
|
|
192
|
+
"globals": "^17.6.0",
|
|
193
|
+
"jiti": "^2.7.0",
|
|
194
|
+
"playwright": "^1.60.0",
|
|
195
|
+
"prettier": "^3.8.3",
|
|
197
196
|
"prism-react-renderer": "^2.4.1",
|
|
198
197
|
"react-element-to-jsx-string": "^17.0.1",
|
|
199
|
-
"tailwindcss": "^4.
|
|
200
|
-
"terser": "^5.
|
|
198
|
+
"tailwindcss": "^4.3.0",
|
|
199
|
+
"terser": "^5.47.1",
|
|
201
200
|
"tsx": "^4.21.0",
|
|
202
201
|
"typescript": "~5.9.3",
|
|
203
|
-
"typescript-eslint": "^8.
|
|
204
|
-
"vite": "^7.3.
|
|
202
|
+
"typescript-eslint": "^8.59.3",
|
|
203
|
+
"vite": "^7.3.3"
|
|
205
204
|
},
|
|
206
205
|
"overrides": {
|
|
207
206
|
"react-element-to-jsx-string": {
|