@machinemetrics/mm-react-components 0.2.3-24 → 0.2.3-25
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/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/table/Table.d.ts.map +1 -1
- package/dist/lib/mm-react-components.css +1 -1
- package/dist/mm-react-components.es.js +45 -55
- package/dist/mm-react-components.es.js.map +1 -1
- package/dist/mm-react-components.umd.js +10 -10
- package/dist/mm-react-components.umd.js.map +1 -1
- package/dist/themes/carbide.css +23 -7
- package/package.json +1 -1
|
@@ -3767,10 +3767,9 @@ const Circle = createLucideIcon("circle", __iconNode$g);
|
|
|
3767
3767
|
*/
|
|
3768
3768
|
const __iconNode$f = [
|
|
3769
3769
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
3770
|
-
["path", { d: "
|
|
3771
|
-
["path", { d: "M15 3v18", key: "14nvp0" }]
|
|
3770
|
+
["path", { d: "M12 3v18", key: "108xh3" }]
|
|
3772
3771
|
];
|
|
3773
|
-
const
|
|
3772
|
+
const Columns2 = createLucideIcon("columns-2", __iconNode$f);
|
|
3774
3773
|
/**
|
|
3775
3774
|
* @license lucide-react v0.544.0 - ISC
|
|
3776
3775
|
*
|
|
@@ -3816,41 +3815,53 @@ const Info = createLucideIcon("info", __iconNode$c);
|
|
|
3816
3815
|
* This source code is licensed under the ISC license.
|
|
3817
3816
|
* See the LICENSE file in the root directory of this source tree.
|
|
3818
3817
|
*/
|
|
3819
|
-
const __iconNode$b = [
|
|
3820
|
-
|
|
3818
|
+
const __iconNode$b = [
|
|
3819
|
+
["path", { d: "M2 5h20", key: "1fs1ex" }],
|
|
3820
|
+
["path", { d: "M6 12h12", key: "8npq4p" }],
|
|
3821
|
+
["path", { d: "M9 19h6", key: "456am0" }]
|
|
3822
|
+
];
|
|
3823
|
+
const ListFilter = createLucideIcon("list-filter", __iconNode$b);
|
|
3821
3824
|
/**
|
|
3822
3825
|
* @license lucide-react v0.544.0 - ISC
|
|
3823
3826
|
*
|
|
3824
3827
|
* This source code is licensed under the ISC license.
|
|
3825
3828
|
* See the LICENSE file in the root directory of this source tree.
|
|
3826
3829
|
*/
|
|
3827
|
-
const __iconNode$a = [
|
|
3830
|
+
const __iconNode$a = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
|
|
3831
|
+
const LoaderCircle = createLucideIcon("loader-circle", __iconNode$a);
|
|
3832
|
+
/**
|
|
3833
|
+
* @license lucide-react v0.544.0 - ISC
|
|
3834
|
+
*
|
|
3835
|
+
* This source code is licensed under the ISC license.
|
|
3836
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
3837
|
+
*/
|
|
3838
|
+
const __iconNode$9 = [
|
|
3828
3839
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
3829
3840
|
["path", { d: "m21 3-7 7", key: "1l2asr" }],
|
|
3830
3841
|
["path", { d: "m3 21 7-7", key: "tjx5ai" }],
|
|
3831
3842
|
["path", { d: "M9 21H3v-6", key: "wtvkvv" }]
|
|
3832
3843
|
];
|
|
3833
|
-
const Maximize2 = createLucideIcon("maximize-2", __iconNode$
|
|
3844
|
+
const Maximize2 = createLucideIcon("maximize-2", __iconNode$9);
|
|
3834
3845
|
/**
|
|
3835
3846
|
* @license lucide-react v0.544.0 - ISC
|
|
3836
3847
|
*
|
|
3837
3848
|
* This source code is licensed under the ISC license.
|
|
3838
3849
|
* See the LICENSE file in the root directory of this source tree.
|
|
3839
3850
|
*/
|
|
3840
|
-
const __iconNode$
|
|
3851
|
+
const __iconNode$8 = [
|
|
3841
3852
|
["path", { d: "m14 10 7-7", key: "oa77jy" }],
|
|
3842
3853
|
["path", { d: "M20 10h-6V4", key: "mjg0md" }],
|
|
3843
3854
|
["path", { d: "m3 21 7-7", key: "tjx5ai" }],
|
|
3844
3855
|
["path", { d: "M4 14h6v6", key: "rmj7iw" }]
|
|
3845
3856
|
];
|
|
3846
|
-
const Minimize2 = createLucideIcon("minimize-2", __iconNode$
|
|
3857
|
+
const Minimize2 = createLucideIcon("minimize-2", __iconNode$8);
|
|
3847
3858
|
/**
|
|
3848
3859
|
* @license lucide-react v0.544.0 - ISC
|
|
3849
3860
|
*
|
|
3850
3861
|
* This source code is licensed under the ISC license.
|
|
3851
3862
|
* See the LICENSE file in the root directory of this source tree.
|
|
3852
3863
|
*/
|
|
3853
|
-
const __iconNode$
|
|
3864
|
+
const __iconNode$7 = [
|
|
3854
3865
|
[
|
|
3855
3866
|
"path",
|
|
3856
3867
|
{
|
|
@@ -3859,14 +3870,14 @@ const __iconNode$8 = [
|
|
|
3859
3870
|
}
|
|
3860
3871
|
]
|
|
3861
3872
|
];
|
|
3862
|
-
const Moon = createLucideIcon("moon", __iconNode$
|
|
3873
|
+
const Moon = createLucideIcon("moon", __iconNode$7);
|
|
3863
3874
|
/**
|
|
3864
3875
|
* @license lucide-react v0.544.0 - ISC
|
|
3865
3876
|
*
|
|
3866
3877
|
* This source code is licensed under the ISC license.
|
|
3867
3878
|
* See the LICENSE file in the root directory of this source tree.
|
|
3868
3879
|
*/
|
|
3869
|
-
const __iconNode$
|
|
3880
|
+
const __iconNode$6 = [
|
|
3870
3881
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
3871
3882
|
[
|
|
3872
3883
|
"path",
|
|
@@ -3877,49 +3888,31 @@ const __iconNode$7 = [
|
|
|
3877
3888
|
],
|
|
3878
3889
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
3879
3890
|
];
|
|
3880
|
-
const OctagonX = createLucideIcon("octagon-x", __iconNode$
|
|
3891
|
+
const OctagonX = createLucideIcon("octagon-x", __iconNode$6);
|
|
3881
3892
|
/**
|
|
3882
3893
|
* @license lucide-react v0.544.0 - ISC
|
|
3883
3894
|
*
|
|
3884
3895
|
* This source code is licensed under the ISC license.
|
|
3885
3896
|
* See the LICENSE file in the root directory of this source tree.
|
|
3886
3897
|
*/
|
|
3887
|
-
const __iconNode$
|
|
3898
|
+
const __iconNode$5 = [
|
|
3888
3899
|
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
3889
3900
|
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
3890
3901
|
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
3891
3902
|
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
3892
3903
|
];
|
|
3893
|
-
const RefreshCw = createLucideIcon("refresh-cw", __iconNode$
|
|
3904
|
+
const RefreshCw = createLucideIcon("refresh-cw", __iconNode$5);
|
|
3894
3905
|
/**
|
|
3895
3906
|
* @license lucide-react v0.544.0 - ISC
|
|
3896
3907
|
*
|
|
3897
3908
|
* This source code is licensed under the ISC license.
|
|
3898
3909
|
* See the LICENSE file in the root directory of this source tree.
|
|
3899
3910
|
*/
|
|
3900
|
-
const __iconNode$
|
|
3911
|
+
const __iconNode$4 = [
|
|
3901
3912
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
3902
3913
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
3903
3914
|
];
|
|
3904
|
-
const Search = createLucideIcon("search", __iconNode$
|
|
3905
|
-
/**
|
|
3906
|
-
* @license lucide-react v0.544.0 - ISC
|
|
3907
|
-
*
|
|
3908
|
-
* This source code is licensed under the ISC license.
|
|
3909
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
3910
|
-
*/
|
|
3911
|
-
const __iconNode$4 = [
|
|
3912
|
-
["path", { d: "M10 5H3", key: "1qgfaw" }],
|
|
3913
|
-
["path", { d: "M12 19H3", key: "yhmn1j" }],
|
|
3914
|
-
["path", { d: "M14 3v4", key: "1sua03" }],
|
|
3915
|
-
["path", { d: "M16 17v4", key: "1q0r14" }],
|
|
3916
|
-
["path", { d: "M21 12h-9", key: "1o4lsq" }],
|
|
3917
|
-
["path", { d: "M21 19h-5", key: "1rlt1p" }],
|
|
3918
|
-
["path", { d: "M21 5h-7", key: "1oszz2" }],
|
|
3919
|
-
["path", { d: "M8 10v4", key: "tgpxqk" }],
|
|
3920
|
-
["path", { d: "M8 12H3", key: "a7s4jb" }]
|
|
3921
|
-
];
|
|
3922
|
-
const SlidersHorizontal = createLucideIcon("sliders-horizontal", __iconNode$4);
|
|
3915
|
+
const Search = createLucideIcon("search", __iconNode$4);
|
|
3923
3916
|
/**
|
|
3924
3917
|
* @license lucide-react v0.544.0 - ISC
|
|
3925
3918
|
*
|
|
@@ -24691,7 +24684,7 @@ function DataTablePagination({
|
|
|
24691
24684
|
"data-slot": "pagination",
|
|
24692
24685
|
children: [
|
|
24693
24686
|
!compact2 && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-4 flex-1", children: [
|
|
24694
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-sm text-
|
|
24687
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-sm text-foreground", children: (() => {
|
|
24695
24688
|
const total = table.getFilteredRowModel().rows.length;
|
|
24696
24689
|
const selected = table.getFilteredSelectedRowModel().rows.length;
|
|
24697
24690
|
if (selected > 0) {
|
|
@@ -24709,7 +24702,7 @@ function DataTablePagination({
|
|
|
24709
24702
|
className: "mmc-pagination__page-size flex items-center gap-2",
|
|
24710
24703
|
"data-slot": "page-size",
|
|
24711
24704
|
children: [
|
|
24712
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-sm text-
|
|
24705
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-sm text-foreground", children: "Show:" }),
|
|
24713
24706
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
24714
24707
|
Select$1,
|
|
24715
24708
|
{
|
|
@@ -24739,8 +24732,8 @@ function DataTablePagination({
|
|
|
24739
24732
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24740
24733
|
Button$1,
|
|
24741
24734
|
{
|
|
24742
|
-
variant: "
|
|
24743
|
-
className: "
|
|
24735
|
+
variant: "ghost",
|
|
24736
|
+
className: "px-2.5 text-foreground hover:text-foreground disabled:text-muted-foreground disabled:opacity-50 disabled:hover:text-muted-foreground",
|
|
24744
24737
|
onClick: () => {
|
|
24745
24738
|
table.previousPage();
|
|
24746
24739
|
if (onPageChange) {
|
|
@@ -24755,7 +24748,7 @@ function DataTablePagination({
|
|
|
24755
24748
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24756
24749
|
"span",
|
|
24757
24750
|
{
|
|
24758
|
-
className: "text-sm text-
|
|
24751
|
+
className: "text-sm text-foreground select-none",
|
|
24759
24752
|
"data-slot": "page-indicator",
|
|
24760
24753
|
children: (() => {
|
|
24761
24754
|
const p2 = table.getState().pagination ?? {};
|
|
@@ -24774,8 +24767,8 @@ function DataTablePagination({
|
|
|
24774
24767
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24775
24768
|
Button$1,
|
|
24776
24769
|
{
|
|
24777
|
-
variant: "
|
|
24778
|
-
className: "
|
|
24770
|
+
variant: "ghost",
|
|
24771
|
+
className: "px-2.5 text-foreground hover:text-foreground disabled:text-muted-foreground disabled:opacity-50 disabled:hover:text-muted-foreground",
|
|
24779
24772
|
onClick: () => {
|
|
24780
24773
|
table.nextPage();
|
|
24781
24774
|
if (onPageChange) {
|
|
@@ -24915,7 +24908,7 @@ function ColumnVisibilityMenu({
|
|
|
24915
24908
|
size: "icon",
|
|
24916
24909
|
className: "h-10 w-10",
|
|
24917
24910
|
"aria-label": "Edit columns",
|
|
24918
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24911
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Columns2, { className: "h-4 w-4" })
|
|
24919
24912
|
}
|
|
24920
24913
|
) }),
|
|
24921
24914
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(DropdownMenuContent, { align: "end", className: "w-64 p-0", children: [
|
|
@@ -25829,7 +25822,7 @@ function FilterMenu({
|
|
|
25829
25822
|
"aria-label": activeTotal ? `Filters, ${activeTotal} active` : "Filters",
|
|
25830
25823
|
className: "relative h-10 w-10",
|
|
25831
25824
|
children: [
|
|
25832
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25825
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ListFilter, { className: "h-4 w-4" }),
|
|
25833
25826
|
activeTotal > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: cn$1("absolute -top-1 -right-1", bubbleClass), children: activeTotal }) : null
|
|
25834
25827
|
]
|
|
25835
25828
|
}
|
|
@@ -26103,7 +26096,7 @@ function SortMenu({ table }) {
|
|
|
26103
26096
|
const activeColumn = currentColumn ?? sortableColumns[0];
|
|
26104
26097
|
const activeLabel = activeColumn ? getColumnLabel(activeColumn) : "Sort";
|
|
26105
26098
|
const buttonLabel = currentSort ? `Sort by ${activeLabel}` : "Sort";
|
|
26106
|
-
const SortIcon = currentDirection === "asc" ?
|
|
26099
|
+
const SortIcon = currentDirection === "asc" ? ChevronUp : ChevronDown;
|
|
26107
26100
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(DropdownMenu, { children: [
|
|
26108
26101
|
/* @__PURE__ */ jsxRuntimeExports.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
26109
26102
|
Button$1,
|
|
@@ -26133,7 +26126,7 @@ function SortMenu({ table }) {
|
|
|
26133
26126
|
setSorting(String(activeColumn.id), pressed ? "desc" : "asc");
|
|
26134
26127
|
},
|
|
26135
26128
|
className: "h-8 w-8 p-0",
|
|
26136
|
-
children: currentDirection === "asc" ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
26129
|
+
children: currentDirection === "asc" ? /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronUp, { className: "h-4 w-4" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronDown, { className: "h-4 w-4" })
|
|
26137
26130
|
}
|
|
26138
26131
|
)
|
|
26139
26132
|
}
|
|
@@ -29881,7 +29874,7 @@ function TableHeader({
|
|
|
29881
29874
|
"thead",
|
|
29882
29875
|
{
|
|
29883
29876
|
"data-scrolled": isBodyScrolled || void 0,
|
|
29884
|
-
className: "sticky top-0 z-10 bg-[var(--tablehead-bg)]
|
|
29877
|
+
className: "sticky top-0 z-10 bg-[var(--tablehead-bg)] shadow-none data-[scrolled=true]:shadow-sm",
|
|
29885
29878
|
children: headerGroups.map((headerGroup) => {
|
|
29886
29879
|
const selectHeader = headerGroup.headers.find(
|
|
29887
29880
|
(h) => h.column.id === "select" && h.column.getIsVisible()
|
|
@@ -29896,7 +29889,7 @@ function TableHeader({
|
|
|
29896
29889
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29897
29890
|
"tr",
|
|
29898
29891
|
{
|
|
29899
|
-
className: "
|
|
29892
|
+
className: "transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
|
|
29900
29893
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
29901
29894
|
SortableContext,
|
|
29902
29895
|
{
|
|
@@ -29907,7 +29900,7 @@ function TableHeader({
|
|
|
29907
29900
|
TableHead$1,
|
|
29908
29901
|
{
|
|
29909
29902
|
className: cn$1(
|
|
29910
|
-
"relative group
|
|
29903
|
+
"relative group p-0",
|
|
29911
29904
|
getAlignmentClass(
|
|
29912
29905
|
selectHeader.column.columnDef.meta?.align
|
|
29913
29906
|
)
|
|
@@ -29947,7 +29940,7 @@ function TableHeader({
|
|
|
29947
29940
|
TableHead$1,
|
|
29948
29941
|
{
|
|
29949
29942
|
className: cn$1(
|
|
29950
|
-
"relative group
|
|
29943
|
+
"relative group",
|
|
29951
29944
|
getAlignmentClass(
|
|
29952
29945
|
actionsHeader.column.columnDef.meta?.align
|
|
29953
29946
|
)
|
|
@@ -31955,7 +31948,7 @@ const TableHead = React.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
31955
31948
|
ref,
|
|
31956
31949
|
"data-slot": "table-head",
|
|
31957
31950
|
className: cn$1(
|
|
31958
|
-
"h-10 px-4 text-left align-middle text-xs font-semibold bg-[var(--tablehead-bg)] text-[var(--tablehead-fg)]
|
|
31951
|
+
"h-10 px-4 text-left align-middle text-xs font-semibold bg-[var(--tablehead-bg)] text-[var(--tablehead-fg)] [&:has([role=checkbox])]:pr-0 [&:has([role=checkbox])]:pl-0",
|
|
31959
31952
|
// Enforce header button/controls to 12px/600
|
|
31960
31953
|
"[&_button]:text-xs [&_button]:font-semibold [&_[data-slot='button']]:text-xs [&_[data-slot='button']]:font-semibold",
|
|
31961
31954
|
className
|
|
@@ -32396,10 +32389,7 @@ const Progress = React.forwardRef(({ className, value, ...props }, ref) => {
|
|
|
32396
32389
|
"aria-valuemax": 100,
|
|
32397
32390
|
"aria-valuenow": typeof clamped === "number" ? clamped : void 0,
|
|
32398
32391
|
"data-unknown": typeof clamped !== "number" ? "true" : void 0,
|
|
32399
|
-
className: cn$1(
|
|
32400
|
-
"relative h-2 w-full overflow-hidden rounded-full",
|
|
32401
|
-
className
|
|
32402
|
-
),
|
|
32392
|
+
className: cn$1("relative h-2 w-full overflow-hidden", className),
|
|
32403
32393
|
...props,
|
|
32404
32394
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
32405
32395
|
Indicator,
|