@machinemetrics/mm-react-components 1.2.3 → 1.2.5-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/CHANGELOG.md +102 -0
- package/agent-docs/agent-documentation-reference.md +42 -22
- package/agent-docs/tickets-pattern.md +78 -0
- package/dist/App.d.ts.map +1 -1
- package/dist/components/ui/accordion.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/button-group.d.ts.map +1 -1
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/calendar.d.ts +0 -6
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/code-preview.d.ts +8 -4
- package/dist/components/ui/code-preview.d.ts.map +1 -1
- package/dist/components/ui/data-table/TableView.d.ts +0 -3
- package/dist/components/ui/data-table/TableView.d.ts.map +1 -1
- package/dist/components/ui/data-table/cards/ResponsiveTable.d.ts +0 -3
- package/dist/components/ui/data-table/cards/ResponsiveTable.d.ts.map +1 -1
- package/dist/components/ui/data-table/pagination.d.ts +0 -3
- package/dist/components/ui/data-table/pagination.d.ts.map +1 -1
- package/dist/components/ui/data-table/toolbar/DataTableToolbar.d.ts +0 -3
- package/dist/components/ui/data-table/toolbar/DataTableToolbar.d.ts.map +1 -1
- package/dist/components/ui/date-picker.d.ts +8 -4
- package/dist/components/ui/date-picker.d.ts.map +1 -1
- package/dist/components/ui/date-range-picker.d.ts +0 -3
- package/dist/components/ui/date-range-picker.d.ts.map +1 -1
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropzone/index.d.ts +3 -12
- package/dist/components/ui/dropzone/index.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/HeroMetricCardItem.d.ts.map +1 -1
- package/dist/components/ui/hover-card.d.ts.map +1 -1
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/item.d.ts.map +1 -1
- package/dist/components/ui/kanban/KanbanBoard.d.ts +8 -0
- package/dist/components/ui/kanban/KanbanBoard.d.ts.map +1 -0
- package/dist/components/ui/kanban/KanbanCard.d.ts +8 -0
- package/dist/components/ui/kanban/KanbanCard.d.ts.map +1 -0
- package/dist/components/ui/kanban/KanbanCardOverlay.d.ts +8 -0
- package/dist/components/ui/kanban/KanbanCardOverlay.d.ts.map +1 -0
- package/dist/components/ui/kanban/KanbanColumn.d.ts +8 -0
- package/dist/components/ui/kanban/KanbanColumn.d.ts.map +1 -0
- package/dist/components/ui/kanban/KanbanContext.d.ts +28 -0
- package/dist/components/ui/kanban/KanbanContext.d.ts.map +1 -0
- package/dist/components/ui/kanban/dragEndUtils.d.ts +26 -0
- package/dist/components/ui/kanban/dragEndUtils.d.ts.map +1 -0
- package/dist/components/ui/kanban/index.d.ts +9 -0
- package/dist/components/ui/kanban/index.d.ts.map +1 -0
- package/dist/components/ui/kanban/types.d.ts +58 -0
- package/dist/components/ui/kanban/types.d.ts.map +1 -0
- package/dist/components/ui/kbd.d.ts +0 -6
- package/dist/components/ui/kbd.d.ts.map +1 -1
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/page-header/page-header.d.ts.map +1 -1
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/scroll-area.d.ts +0 -6
- package/dist/components/ui/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/separator.d.ts.map +1 -1
- package/dist/components/ui/sheet-banner.d.ts +1 -1
- package/dist/components/ui/sheet-banner.d.ts.map +1 -1
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/simple-pagination.d.ts +0 -3
- package/dist/components/ui/simple-pagination.d.ts.map +1 -1
- package/dist/components/ui/skeleton.d.ts +0 -3
- package/dist/components/ui/skeleton.d.ts.map +1 -1
- package/dist/components/ui/slider.d.ts +0 -6
- package/dist/components/ui/slider.d.ts.map +1 -1
- package/dist/components/ui/spinner-carbide.d.ts +0 -3
- package/dist/components/ui/spinner-carbide.d.ts.map +1 -1
- package/dist/components/ui/spinner.d.ts +0 -3
- package/dist/components/ui/spinner.d.ts.map +1 -1
- package/dist/components/ui/switch.d.ts.map +1 -1
- package/dist/components/ui/table/Table.d.ts.map +1 -1
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/tickets/TicketActivitySection.d.ts +20 -0
- package/dist/components/ui/tickets/TicketActivitySection.d.ts.map +1 -0
- package/dist/components/ui/tickets/TicketDates.d.ts +20 -0
- package/dist/components/ui/tickets/TicketDates.d.ts.map +1 -0
- package/dist/components/ui/tickets/TicketDetailLayout.d.ts +32 -0
- package/dist/components/ui/tickets/TicketDetailLayout.d.ts.map +1 -0
- package/dist/components/ui/tickets/TicketDetails.d.ts +32 -0
- package/dist/components/ui/tickets/TicketDetails.d.ts.map +1 -0
- package/dist/components/ui/tickets/TicketDetailsSidebar.d.ts +21 -0
- package/dist/components/ui/tickets/TicketDetailsSidebar.d.ts.map +1 -0
- package/dist/components/ui/tickets/TicketFieldControl.d.ts +32 -0
- package/dist/components/ui/tickets/TicketFieldControl.d.ts.map +1 -0
- package/dist/components/ui/tickets/TicketForm.d.ts +22 -0
- package/dist/components/ui/tickets/TicketForm.d.ts.map +1 -0
- package/dist/components/ui/tickets/TicketLabels.d.ts +57 -0
- package/dist/components/ui/tickets/TicketLabels.d.ts.map +1 -0
- package/dist/components/ui/tickets/TicketTypes.d.ts +67 -0
- package/dist/components/ui/tickets/TicketTypes.d.ts.map +1 -0
- package/dist/components/ui/tickets/TicketUserSelect.d.ts +17 -0
- package/dist/components/ui/tickets/TicketUserSelect.d.ts.map +1 -0
- package/dist/components/ui/tickets/UserDisplay.d.ts +21 -0
- package/dist/components/ui/tickets/UserDisplay.d.ts.map +1 -0
- package/dist/components/ui/tickets/UserFieldValue.d.ts +24 -0
- package/dist/components/ui/tickets/UserFieldValue.d.ts.map +1 -0
- package/dist/components/ui/tickets/index.d.ts +12 -0
- package/dist/components/ui/tickets/index.d.ts.map +1 -0
- package/dist/components/ui/toggle.d.ts.map +1 -1
- package/dist/components/ui/virtualized-combobox/index.d.ts.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/lib/code-preview-public-names.d.ts +12 -0
- package/dist/lib/code-preview-public-names.d.ts.map +1 -0
- package/dist/lib/mm-react-components.css +1 -1
- package/dist/main.d.ts +0 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/mm-react-components.es.js +824 -709
- 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/CalendarPreview.d.ts.map +1 -1
- package/dist/preview/FormPreview.d.ts.map +1 -1
- package/dist/preview/KanbanPreview.d.ts +2 -0
- package/dist/preview/KanbanPreview.d.ts.map +1 -0
- package/dist/preview/SheetBannerPreview.d.ts.map +1 -1
- package/dist/preview/TicketsPreview.d.ts +2 -0
- package/dist/preview/TicketsPreview.d.ts.map +1 -0
- package/dist/themes/carbide.css +97 -23
- package/package.json +2 -1
- package/dist/preview/set-display-names.d.ts +0 -2
- package/dist/preview/set-display-names.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarPreview.d.ts","sourceRoot":"","sources":["../../src/preview/CalendarPreview.tsx"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,eAAe,
|
|
1
|
+
{"version":3,"file":"CalendarPreview.d.ts","sourceRoot":"","sources":["../../src/preview/CalendarPreview.tsx"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,eAAe,4CAsCtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormPreview.d.ts","sourceRoot":"","sources":["../../src/preview/FormPreview.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FormPreview.d.ts","sourceRoot":"","sources":["../../src/preview/FormPreview.tsx"],"names":[],"mappings":"AA+gBA,MAAM,CAAC,OAAO,UAAU,WAAW,4CAmBlC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KanbanPreview.d.ts","sourceRoot":"","sources":["../../src/preview/KanbanPreview.tsx"],"names":[],"mappings":"AAgCA,MAAM,CAAC,OAAO,UAAU,aAAa,4CAmDpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetBannerPreview.d.ts","sourceRoot":"","sources":["../../src/preview/SheetBannerPreview.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SheetBannerPreview.d.ts","sourceRoot":"","sources":["../../src/preview/SheetBannerPreview.tsx"],"names":[],"mappings":"AAUA,MAAM,CAAC,OAAO,UAAU,kBAAkB,4CAkFzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TicketsPreview.d.ts","sourceRoot":"","sources":["../../src/preview/TicketsPreview.tsx"],"names":[],"mappings":"AAyQA,MAAM,CAAC,OAAO,UAAU,cAAc,4CA4CrC"}
|
package/dist/themes/carbide.css
CHANGED
|
@@ -1529,14 +1529,6 @@ tr
|
|
|
1529
1529
|
/* =============================
|
|
1530
1530
|
CALENDAR (SEMANTIC HOOK)
|
|
1531
1531
|
============================= */
|
|
1532
|
-
.carbide [data-slot='calendar'] {
|
|
1533
|
-
background-color: var(--card);
|
|
1534
|
-
color: var(--card-foreground);
|
|
1535
|
-
box-shadow:
|
|
1536
|
-
0 1px 2px rgba(0, 0, 0, 0.06),
|
|
1537
|
-
0 2px 12px rgba(0, 0, 0, 0.08);
|
|
1538
|
-
border-radius: 0.5rem;
|
|
1539
|
-
}
|
|
1540
1532
|
.carbide [data-slot='slider'] [data-slot='slider-track'] {
|
|
1541
1533
|
background-color: var(--surface-neutral);
|
|
1542
1534
|
}
|
|
@@ -1605,10 +1597,13 @@ tr
|
|
|
1605
1597
|
.carbide [data-slot='calendar'] {
|
|
1606
1598
|
background-color: var(--card);
|
|
1607
1599
|
color: var(--card-foreground);
|
|
1608
|
-
box-shadow:
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1600
|
+
box-shadow: none;
|
|
1601
|
+
border-radius: var(--radius-md);
|
|
1602
|
+
}
|
|
1603
|
+
.carbide [data-slot='popover-content'] [data-slot='calendar'] {
|
|
1604
|
+
box-shadow: none;
|
|
1605
|
+
border-radius: 0;
|
|
1606
|
+
background-color: transparent;
|
|
1612
1607
|
}
|
|
1613
1608
|
.carbide [data-slot='calendar'] .rdp-months {
|
|
1614
1609
|
display: flex;
|
|
@@ -1638,12 +1633,19 @@ tr
|
|
|
1638
1633
|
appearance: none;
|
|
1639
1634
|
background-color: transparent;
|
|
1640
1635
|
border: 1px solid var(--border);
|
|
1641
|
-
border-radius:
|
|
1636
|
+
border-radius: var(--radius-md);
|
|
1642
1637
|
padding: 0.25rem 0.5rem;
|
|
1643
1638
|
font-size: 0.875rem;
|
|
1644
1639
|
font-weight: 500;
|
|
1645
1640
|
color: var(--card-foreground);
|
|
1646
1641
|
}
|
|
1642
|
+
/* Dark: `border-input` / default borders sit on grey-900 card and disappear — use indigo ring */
|
|
1643
|
+
.carbide.dark [data-slot='calendar'] .rdp-dropdown_root {
|
|
1644
|
+
border-color: var(--ring);
|
|
1645
|
+
}
|
|
1646
|
+
.carbide.dark [data-slot='calendar'] .rdp-caption_dropdowns select {
|
|
1647
|
+
border-color: var(--ring);
|
|
1648
|
+
}
|
|
1647
1649
|
.carbide [data-slot='calendar'] .rdp-weeknumber,
|
|
1648
1650
|
.carbide [data-slot='calendar'] .rdp-weeknumber_label {
|
|
1649
1651
|
color: var(--muted-foreground);
|
|
@@ -1660,7 +1662,7 @@ tr
|
|
|
1660
1662
|
.carbide [data-slot='calendar'] [data-slot='button'] {
|
|
1661
1663
|
width: var(--cell-size);
|
|
1662
1664
|
height: var(--cell-size);
|
|
1663
|
-
border-radius:
|
|
1665
|
+
border-radius: var(--radius-md);
|
|
1664
1666
|
color: var(--card-foreground);
|
|
1665
1667
|
}
|
|
1666
1668
|
.carbide [data-slot='calendar'] [data-slot='button'][data-range-middle='true'] {
|
|
@@ -1679,14 +1681,14 @@ tr
|
|
|
1679
1681
|
border-radius: 0;
|
|
1680
1682
|
}
|
|
1681
1683
|
.carbide [data-slot='calendar'] [data-slot='button'][data-range-end='true'] {
|
|
1682
|
-
border-radius:
|
|
1683
|
-
border-start-end-radius:
|
|
1684
|
-
border-end-end-radius:
|
|
1684
|
+
border-radius: var(--radius-md);
|
|
1685
|
+
border-start-end-radius: var(--radius-md);
|
|
1686
|
+
border-end-end-radius: var(--radius-md);
|
|
1685
1687
|
}
|
|
1686
1688
|
.carbide [data-slot='calendar'] [data-slot='button'][data-range-start='true'] {
|
|
1687
|
-
border-radius:
|
|
1688
|
-
border-start-start-radius:
|
|
1689
|
-
border-end-start-radius:
|
|
1689
|
+
border-radius: var(--radius-md);
|
|
1690
|
+
border-start-start-radius: var(--radius-md);
|
|
1691
|
+
border-end-start-radius: var(--radius-md);
|
|
1690
1692
|
}
|
|
1691
1693
|
.carbide [data-slot='calendar'] [data-slot='button'][data-outside='true'] {
|
|
1692
1694
|
color: var(--muted-foreground);
|
|
@@ -1695,10 +1697,40 @@ tr
|
|
|
1695
1697
|
color: var(--muted-foreground);
|
|
1696
1698
|
opacity: 0.5;
|
|
1697
1699
|
}
|
|
1698
|
-
|
|
1700
|
+
/*
|
|
1701
|
+
Today (not selected): shadcn uses accent on the day cell; in Carbide dark, accent
|
|
1702
|
+
(grey-700) on card (grey-900) is nearly invisible. Ghost also forces transparent
|
|
1703
|
+
button bg — tint the button with primary so “today” reads like the shadcn demo.
|
|
1704
|
+
Exclude any selected day (single or range) so range/primary fills stay correct.
|
|
1705
|
+
https://ui.shadcn.com/docs/components/radix/calendar
|
|
1706
|
+
*/
|
|
1707
|
+
.carbide
|
|
1708
|
+
[data-slot='calendar']
|
|
1709
|
+
[data-slot='button'][data-variant='ghost'][data-state='today']:not(
|
|
1710
|
+
[data-selected-single='true']
|
|
1711
|
+
):not([data-range-start='true']):not([data-range-end='true']):not(
|
|
1712
|
+
[data-range-middle='true']
|
|
1713
|
+
) {
|
|
1714
|
+
background-color: color-mix(in srgb, var(--primary) 18%, var(--card));
|
|
1699
1715
|
color: var(--primary);
|
|
1700
1716
|
border: 1px solid var(--primary);
|
|
1701
1717
|
}
|
|
1718
|
+
.carbide.dark
|
|
1719
|
+
[data-slot='calendar']
|
|
1720
|
+
[data-slot='button'][data-variant='ghost'][data-state='today']:not(
|
|
1721
|
+
[data-selected-single='true']
|
|
1722
|
+
):not([data-range-start='true']):not([data-range-end='true']):not(
|
|
1723
|
+
[data-range-middle='true']
|
|
1724
|
+
) {
|
|
1725
|
+
color: var(--primary-foreground);
|
|
1726
|
+
}
|
|
1727
|
+
/* Today + selected single: filled primary — add inset edge so “today” isn’t lost */
|
|
1728
|
+
.carbide
|
|
1729
|
+
[data-slot='calendar']
|
|
1730
|
+
[data-slot='button'][data-state='today'][data-selected-single='true'] {
|
|
1731
|
+
box-shadow: inset 0 0 0 1px
|
|
1732
|
+
color-mix(in srgb, var(--primary-foreground) 45%, transparent);
|
|
1733
|
+
}
|
|
1702
1734
|
.carbide [data-slot='calendar'] .group\/day [data-slot='button'] {
|
|
1703
1735
|
transition:
|
|
1704
1736
|
background-color 0.2s ease,
|
|
@@ -1713,6 +1745,48 @@ tr
|
|
|
1713
1745
|
box-shadow: 0 0 0 3px var(--ring-soft);
|
|
1714
1746
|
}
|
|
1715
1747
|
|
|
1748
|
+
/*
|
|
1749
|
+
Dark: `.carbide.dark [data-slot='button'][data-variant='ghost']` (2 classes) beats
|
|
1750
|
+
`.carbide [data-slot='calendar'] … [data-selected-single]` (1 class + attrs), so
|
|
1751
|
+
selected / range day fills disappeared. Re-apply with ghost in the selector.
|
|
1752
|
+
*/
|
|
1753
|
+
.carbide.dark
|
|
1754
|
+
[data-slot='calendar']
|
|
1755
|
+
[data-slot='button'][data-variant='ghost'][data-range-middle='true'] {
|
|
1756
|
+
background-color: var(--accent);
|
|
1757
|
+
color: var(--accent-foreground);
|
|
1758
|
+
}
|
|
1759
|
+
.carbide.dark
|
|
1760
|
+
[data-slot='calendar']
|
|
1761
|
+
[data-slot='button'][data-variant='ghost'][data-range-start='true'],
|
|
1762
|
+
.carbide.dark
|
|
1763
|
+
[data-slot='calendar']
|
|
1764
|
+
[data-slot='button'][data-variant='ghost'][data-range-end='true'],
|
|
1765
|
+
.carbide.dark
|
|
1766
|
+
[data-slot='calendar']
|
|
1767
|
+
[data-slot='button'][data-variant='ghost'][data-selected-single='true'] {
|
|
1768
|
+
background-color: var(--primary);
|
|
1769
|
+
color: var(--primary-foreground);
|
|
1770
|
+
}
|
|
1771
|
+
.carbide.dark
|
|
1772
|
+
[data-slot='calendar']
|
|
1773
|
+
[data-slot='button'][data-variant='ghost'][data-range-middle='true']:hover {
|
|
1774
|
+
background-color: var(--accent);
|
|
1775
|
+
color: var(--accent-foreground);
|
|
1776
|
+
}
|
|
1777
|
+
.carbide.dark
|
|
1778
|
+
[data-slot='calendar']
|
|
1779
|
+
[data-slot='button'][data-variant='ghost'][data-range-start='true']:hover,
|
|
1780
|
+
.carbide.dark
|
|
1781
|
+
[data-slot='calendar']
|
|
1782
|
+
[data-slot='button'][data-variant='ghost'][data-range-end='true']:hover,
|
|
1783
|
+
.carbide.dark
|
|
1784
|
+
[data-slot='calendar']
|
|
1785
|
+
[data-slot='button'][data-variant='ghost'][data-selected-single='true']:hover {
|
|
1786
|
+
background-color: var(--primary);
|
|
1787
|
+
color: var(--primary-foreground);
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1716
1790
|
/* ==========================================================================
|
|
1717
1791
|
Visual Test Mode - Hide code sections during Playwright visual tests
|
|
1718
1792
|
========================================================================== */
|
|
@@ -1722,8 +1796,8 @@ tr
|
|
|
1722
1796
|
* preview sections. This allows visual regression tests to capture only
|
|
1723
1797
|
* the component output without the code display.
|
|
1724
1798
|
*
|
|
1725
|
-
*
|
|
1726
|
-
*
|
|
1799
|
+
* code-preview.spec.ts does not enable this mode so it can snapshot CodePreview
|
|
1800
|
+
* including the code section.
|
|
1727
1801
|
*/
|
|
1728
1802
|
html[data-visual-test] [data-slot='code-preview-code'] {
|
|
1729
1803
|
display: none !important;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@machinemetrics/mm-react-components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5-0",
|
|
4
4
|
"description": "Industrial-grade React components for manufacturing applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -176,6 +176,7 @@
|
|
|
176
176
|
"@types/node": "^25.0.6",
|
|
177
177
|
"@types/react": "^19.2.8",
|
|
178
178
|
"@types/react-dom": "^19.2.3",
|
|
179
|
+
"@types/react-is": "^19.2.0",
|
|
179
180
|
"@types/react-table": "^7.7.20",
|
|
180
181
|
"@typescript-eslint/eslint-plugin": "^8.53.0",
|
|
181
182
|
"@typescript-eslint/parser": "^8.53.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"set-display-names.d.ts","sourceRoot":"","sources":["../../src/preview/set-display-names.ts"],"names":[],"mappings":""}
|