@machinemetrics/mm-react-components 0.2.3-23 → 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.
@@ -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: "M9 3v18", key: "fh3hqa" }],
3771
- ["path", { d: "M15 3v18", key: "14nvp0" }]
3770
+ ["path", { d: "M12 3v18", key: "108xh3" }]
3772
3771
  ];
3773
- const Columns3 = createLucideIcon("columns-3", __iconNode$f);
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 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
3820
- const LoaderCircle = createLucideIcon("loader-circle", __iconNode$b);
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$a);
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$9 = [
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$9);
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$8 = [
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$8);
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$7 = [
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$7);
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$6 = [
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$6);
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$5 = [
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$5);
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-muted-foreground", children: (() => {
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-muted-foreground", children: "Show:" }),
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: "outline",
24743
- className: "h-9 rounded-md px-3",
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-muted-foreground select-none",
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: "outline",
24778
- className: "h-9 rounded-md px-3",
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(Columns3, { className: "h-4 w-4" })
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(SlidersHorizontal, { className: "h-4 w-4" }),
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" ? ArrowUp : ArrowDown;
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(ArrowUp, { className: "h-4 w-4" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ArrowDown, { className: "h-4 w-4" })
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
  }
@@ -29616,7 +29609,9 @@ function useTableController(options) {
29616
29609
  enableColumnResizing: true,
29617
29610
  enableColumnPinning: true,
29618
29611
  enableGlobalFilter: true,
29619
- globalFilterFn,
29612
+ // Only include globalFilterFn prop if we have a custom filter or disabled filter
29613
+ // Omitting it allows TanStack Table to use its default filter behavior
29614
+ ...globalFilterFn !== void 0 && { globalFilterFn },
29620
29615
  onRowSelectionChange: wrappedSetRowSelection,
29621
29616
  onSortingChange: wrappedSetSorting,
29622
29617
  onColumnVisibilityChange: wrappedSetColumnVisibility,
@@ -29879,7 +29874,7 @@ function TableHeader({
29879
29874
  "thead",
29880
29875
  {
29881
29876
  "data-scrolled": isBodyScrolled || void 0,
29882
- className: "sticky top-0 z-10 bg-[var(--tablehead-bg)] border-b border-[var(--tablehead-border)] shadow-none data-[scrolled=true]:shadow-sm",
29877
+ className: "sticky top-0 z-10 bg-[var(--tablehead-bg)] shadow-none data-[scrolled=true]:shadow-sm",
29883
29878
  children: headerGroups.map((headerGroup) => {
29884
29879
  const selectHeader = headerGroup.headers.find(
29885
29880
  (h) => h.column.id === "select" && h.column.getIsVisible()
@@ -29894,7 +29889,7 @@ function TableHeader({
29894
29889
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
29895
29890
  "tr",
29896
29891
  {
29897
- className: "border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
29892
+ className: "transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
29898
29893
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
29899
29894
  SortableContext,
29900
29895
  {
@@ -29905,7 +29900,7 @@ function TableHeader({
29905
29900
  TableHead$1,
29906
29901
  {
29907
29902
  className: cn$1(
29908
- "relative group border-b-0 p-0",
29903
+ "relative group p-0",
29909
29904
  getAlignmentClass(
29910
29905
  selectHeader.column.columnDef.meta?.align
29911
29906
  )
@@ -29945,7 +29940,7 @@ function TableHeader({
29945
29940
  TableHead$1,
29946
29941
  {
29947
29942
  className: cn$1(
29948
- "relative group border-b-0",
29943
+ "relative group",
29949
29944
  getAlignmentClass(
29950
29945
  actionsHeader.column.columnDef.meta?.align
29951
29946
  )
@@ -31953,7 +31948,7 @@ const TableHead = React.forwardRef(({ className, ...props }, ref) => /* @__PURE_
31953
31948
  ref,
31954
31949
  "data-slot": "table-head",
31955
31950
  className: cn$1(
31956
- "h-10 px-4 text-left align-middle text-xs font-semibold bg-[var(--tablehead-bg)] text-[var(--tablehead-fg)] border-b border-[var(--tablehead-border)] [&:has([role=checkbox])]:pr-0 [&:has([role=checkbox])]:pl-0",
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",
31957
31952
  // Enforce header button/controls to 12px/600
31958
31953
  "[&_button]:text-xs [&_button]:font-semibold [&_[data-slot='button']]:text-xs [&_[data-slot='button']]:font-semibold",
31959
31954
  className
@@ -32394,10 +32389,7 @@ const Progress = React.forwardRef(({ className, value, ...props }, ref) => {
32394
32389
  "aria-valuemax": 100,
32395
32390
  "aria-valuenow": typeof clamped === "number" ? clamped : void 0,
32396
32391
  "data-unknown": typeof clamped !== "number" ? "true" : void 0,
32397
- className: cn$1(
32398
- "relative h-2 w-full overflow-hidden rounded-full",
32399
- className
32400
- ),
32392
+ className: cn$1("relative h-2 w-full overflow-hidden", className),
32401
32393
  ...props,
32402
32394
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
32403
32395
  Indicator,