@dmsi/wedgekit-react 0.0.512 → 0.0.514

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.
Files changed (42) hide show
  1. package/dist/{chunk-JWVZOEF5.js → chunk-YY66JVTB.js} +18 -9
  2. package/dist/{chunk-F6RZ7MUE.js → chunk-ZCIC3AIZ.js} +4 -1
  3. package/dist/components/CalendarRange.cjs +21 -9
  4. package/dist/components/CalendarRange.js +4 -4
  5. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +21 -9
  6. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +4 -4
  7. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +21 -9
  8. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +4 -4
  9. package/dist/components/DataGrid/PinnedColumns.cjs +21 -9
  10. package/dist/components/DataGrid/PinnedColumns.js +4 -4
  11. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +21 -9
  12. package/dist/components/DataGrid/TableBody/LoadingCell.js +4 -4
  13. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +21 -9
  14. package/dist/components/DataGrid/TableBody/TableBodyRow.js +4 -4
  15. package/dist/components/DataGrid/TableBody/index.cjs +21 -9
  16. package/dist/components/DataGrid/TableBody/index.js +4 -4
  17. package/dist/components/DataGrid/index.cjs +21 -9
  18. package/dist/components/DataGrid/index.js +4 -4
  19. package/dist/components/DataGrid/utils.cjs +21 -9
  20. package/dist/components/DataGrid/utils.js +4 -4
  21. package/dist/components/DataGridCell.cjs +4 -1
  22. package/dist/components/DataGridCell.js +1 -1
  23. package/dist/components/DateInput.cjs +21 -9
  24. package/dist/components/DateInput.js +4 -4
  25. package/dist/components/DateRangeInput.cjs +21 -9
  26. package/dist/components/DateRangeInput.js +4 -4
  27. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +21 -9
  28. package/dist/components/MobileDataGrid/ColumnSelector/index.js +4 -4
  29. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +21 -9
  30. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +4 -4
  31. package/dist/components/MobileDataGrid/index.cjs +21 -9
  32. package/dist/components/MobileDataGrid/index.js +4 -4
  33. package/dist/components/ProductImagePreview/index.js +2 -2
  34. package/dist/components/index.cjs +21 -9
  35. package/dist/components/index.js +4 -4
  36. package/package.json +1 -1
  37. package/src/components/DataGrid/TableBody/TableBodyRow.tsx +7 -4
  38. package/src/components/DataGrid/TableBody/index.tsx +9 -0
  39. package/src/components/DataGrid/index.tsx +4 -0
  40. package/src/components/DataGrid/types.ts +2 -0
  41. package/src/components/DataGridCell.tsx +3 -0
  42. package/dist/{chunk-IGUQFLEO.js → chunk-CDMXM5JW.js} +3 -3
@@ -24,7 +24,7 @@ import {
24
24
  DataGridCell,
25
25
  DragAlongCell,
26
26
  DraggableCellHeader
27
- } from "./chunk-F6RZ7MUE.js";
27
+ } from "./chunk-ZCIC3AIZ.js";
28
28
  import {
29
29
  Menu
30
30
  } from "./chunk-TCMOGTPB.js";
@@ -161,7 +161,8 @@ function TableBodyRow({
161
161
  showFilterRow,
162
162
  // enableColumnSelector = false,
163
163
  locked,
164
- pinDirection
164
+ pinDirection,
165
+ disabled
165
166
  }) {
166
167
  var _a;
167
168
  let visibleCells;
@@ -179,10 +180,11 @@ function TableBodyRow({
179
180
  {
180
181
  className: clsx(
181
182
  "min-h-10",
182
- "transition-colors hover:bg-background-action-secondary-hover",
183
- row.getIsSelected() && "!bg-background-action-secondary-hover",
184
- isError && "!bg-background-action-critical-secondary-hover",
185
- showFilterRow ? "even:bg-background-grouped-primary-normal odd:bg-background-grouped-secondary-normal" : "odd:bg-background-grouped-primary-normal even:bg-background-grouped-secondary-normal"
183
+ "transition-colors",
184
+ !disabled && "hover:bg-background-action-secondary-hover",
185
+ row.getIsSelected() && !disabled && "!bg-background-action-secondary-hover",
186
+ isError && !disabled && "!bg-background-action-critical-secondary-hover",
187
+ showFilterRow && !disabled ? "even:bg-background-grouped-primary-normal odd:bg-background-grouped-secondary-normal" : "odd:bg-background-grouped-primary-normal even:bg-background-grouped-secondary-normal"
186
188
  ),
187
189
  id: id ? `${id}-row-${row.id}` : void 0,
188
190
  "data-testid": testid ? `${testid}-row-${row.id}` : void 0,
@@ -292,7 +294,9 @@ function TableBody({
292
294
  showFilterRow,
293
295
  enableColumnSelector = false,
294
296
  locked,
295
- pinDirection
297
+ pinDirection,
298
+ rowDisabled,
299
+ rowDisabledAccessor
296
300
  }) {
297
301
  const { rows } = table.getRowModel();
298
302
  const rowVirtualizer = useVirtualizer({
@@ -385,7 +389,8 @@ function TableBody({
385
389
  showFilterRow,
386
390
  enableColumnSelector,
387
391
  locked,
388
- pinDirection
392
+ pinDirection,
393
+ disabled: rowDisabledAccessor ? rowDisabledAccessor(row.original) : rowDisabled
389
394
  },
390
395
  row.id
391
396
  );
@@ -695,6 +700,8 @@ function DataGrid({
695
700
  predeterminedLeftPins = [],
696
701
  predeterminedRightPins = [],
697
702
  useMenuDefaultMinWidth,
703
+ rowDisabled,
704
+ rowDisabledAccessor,
698
705
  ref
699
706
  }) {
700
707
  var _a, _b, _c, _d, _e, _f, _g;
@@ -1083,7 +1090,9 @@ function DataGrid({
1083
1090
  isLoadingMore,
1084
1091
  hasMore,
1085
1092
  showFilterRow,
1086
- enableColumnSelector
1093
+ enableColumnSelector,
1094
+ rowDisabled,
1095
+ rowDisabledAccessor
1087
1096
  }
1088
1097
  )
1089
1098
  ] }),
@@ -55,6 +55,7 @@ var DataGridCell = memo(
55
55
  center,
56
56
  width,
57
57
  minWidth,
58
+ disabled,
58
59
  testid
59
60
  } = _b, props = __objRest(_b, [
60
61
  "id",
@@ -73,6 +74,7 @@ var DataGridCell = memo(
73
74
  "center",
74
75
  "width",
75
76
  "minWidth",
77
+ "disabled",
76
78
  "testid"
77
79
  ]);
78
80
  const Element = type === "header" ? "th" : "td";
@@ -138,7 +140,8 @@ var DataGridCell = memo(
138
140
  paddedLeft && "pl-2",
139
141
  component === "icon" && "border-l",
140
142
  isGrabbing && "!cursor-grabbing",
141
- component === "checkbox" || center && "justify-center"
143
+ component === "checkbox" || center && "justify-center",
144
+ disabled && "!text-text-primary-disabled"
142
145
  );
143
146
  return /* @__PURE__ */ jsx(
144
147
  Element,
@@ -2188,6 +2188,7 @@ var DataGridCell = (0, import_react11.memo)(
2188
2188
  center,
2189
2189
  width,
2190
2190
  minWidth,
2191
+ disabled,
2191
2192
  testid
2192
2193
  } = _b, props = __objRest(_b, [
2193
2194
  "id",
@@ -2206,6 +2207,7 @@ var DataGridCell = (0, import_react11.memo)(
2206
2207
  "center",
2207
2208
  "width",
2208
2209
  "minWidth",
2210
+ "disabled",
2209
2211
  "testid"
2210
2212
  ]);
2211
2213
  const Element = type === "header" ? "th" : "td";
@@ -2271,7 +2273,8 @@ var DataGridCell = (0, import_react11.memo)(
2271
2273
  paddedLeft && "pl-2",
2272
2274
  component === "icon" && "border-l",
2273
2275
  isGrabbing && "!cursor-grabbing",
2274
- component === "checkbox" || center && "justify-center"
2276
+ component === "checkbox" || center && "justify-center",
2277
+ disabled && "!text-text-primary-disabled"
2275
2278
  );
2276
2279
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2277
2280
  Element,
@@ -2664,7 +2667,8 @@ function TableBodyRow({
2664
2667
  showFilterRow,
2665
2668
  // enableColumnSelector = false,
2666
2669
  locked,
2667
- pinDirection
2670
+ pinDirection,
2671
+ disabled
2668
2672
  }) {
2669
2673
  var _a;
2670
2674
  let visibleCells;
@@ -2682,10 +2686,11 @@ function TableBodyRow({
2682
2686
  {
2683
2687
  className: (0, import_clsx11.default)(
2684
2688
  "min-h-10",
2685
- "transition-colors hover:bg-background-action-secondary-hover",
2686
- row.getIsSelected() && "!bg-background-action-secondary-hover",
2687
- isError && "!bg-background-action-critical-secondary-hover",
2688
- showFilterRow ? "even:bg-background-grouped-primary-normal odd:bg-background-grouped-secondary-normal" : "odd:bg-background-grouped-primary-normal even:bg-background-grouped-secondary-normal"
2689
+ "transition-colors",
2690
+ !disabled && "hover:bg-background-action-secondary-hover",
2691
+ row.getIsSelected() && !disabled && "!bg-background-action-secondary-hover",
2692
+ isError && !disabled && "!bg-background-action-critical-secondary-hover",
2693
+ showFilterRow && !disabled ? "even:bg-background-grouped-primary-normal odd:bg-background-grouped-secondary-normal" : "odd:bg-background-grouped-primary-normal even:bg-background-grouped-secondary-normal"
2689
2694
  ),
2690
2695
  id: id ? `${id}-row-${row.id}` : void 0,
2691
2696
  "data-testid": testid ? `${testid}-row-${row.id}` : void 0,
@@ -2795,7 +2800,9 @@ function TableBody({
2795
2800
  showFilterRow,
2796
2801
  enableColumnSelector = false,
2797
2802
  locked,
2798
- pinDirection
2803
+ pinDirection,
2804
+ rowDisabled,
2805
+ rowDisabledAccessor
2799
2806
  }) {
2800
2807
  const { rows } = table.getRowModel();
2801
2808
  const rowVirtualizer = (0, import_react_virtual.useVirtualizer)({
@@ -2888,7 +2895,8 @@ function TableBody({
2888
2895
  showFilterRow,
2889
2896
  enableColumnSelector,
2890
2897
  locked,
2891
- pinDirection
2898
+ pinDirection,
2899
+ disabled: rowDisabledAccessor ? rowDisabledAccessor(row.original) : rowDisabled
2892
2900
  },
2893
2901
  row.id
2894
2902
  );
@@ -3198,6 +3206,8 @@ function DataGrid({
3198
3206
  predeterminedLeftPins = [],
3199
3207
  predeterminedRightPins = [],
3200
3208
  useMenuDefaultMinWidth,
3209
+ rowDisabled,
3210
+ rowDisabledAccessor,
3201
3211
  ref
3202
3212
  }) {
3203
3213
  var _a, _b, _c, _d, _e, _f, _g;
@@ -3586,7 +3596,9 @@ function DataGrid({
3586
3596
  isLoadingMore,
3587
3597
  hasMore,
3588
3598
  showFilterRow,
3589
- enableColumnSelector
3599
+ enableColumnSelector,
3600
+ rowDisabled,
3601
+ rowDisabledAccessor
3590
3602
  }
3591
3603
  )
3592
3604
  ] }),
@@ -2,17 +2,17 @@ import {
2
2
  CalendarRange,
3
3
  CalendarRange_default,
4
4
  isWeekend
5
- } from "../chunk-JWVZOEF5.js";
5
+ } from "../chunk-YY66JVTB.js";
6
6
  import "../chunk-M7INAUAJ.js";
7
7
  import "../chunk-ELXVDRWS.js";
8
8
  import "../chunk-3UUCDNX3.js";
9
- import "../chunk-IGUQFLEO.js";
10
- import "../chunk-3X3Y4TMS.js";
9
+ import "../chunk-CDMXM5JW.js";
11
10
  import "../chunk-BQNPOGD5.js";
12
11
  import "../chunk-Y5GD2FJA.js";
13
12
  import "../chunk-MBZ55T2D.js";
14
13
  import "../chunk-2IKT6IHB.js";
15
14
  import "../chunk-YCDDBSVU.js";
15
+ import "../chunk-3X3Y4TMS.js";
16
16
  import "../chunk-PRN2EQBX.js";
17
17
  import "../chunk-5YNEY3WO.js";
18
18
  import "../chunk-5IFPG6TS.js";
@@ -35,7 +35,7 @@ import "../chunk-AKJUBFJK.js";
35
35
  import "../chunk-SUSUNSVZ.js";
36
36
  import "../chunk-BWPNXY7T.js";
37
37
  import "../chunk-QVWYTQKL.js";
38
- import "../chunk-F6RZ7MUE.js";
38
+ import "../chunk-ZCIC3AIZ.js";
39
39
  import "../chunk-TCMOGTPB.js";
40
40
  import "../chunk-DVU5XV7L.js";
41
41
  import "../chunk-LKKFQLWD.js";
@@ -2182,6 +2182,7 @@ var DataGridCell = (0, import_react11.memo)(
2182
2182
  center,
2183
2183
  width,
2184
2184
  minWidth,
2185
+ disabled,
2185
2186
  testid
2186
2187
  } = _b, props = __objRest(_b, [
2187
2188
  "id",
@@ -2200,6 +2201,7 @@ var DataGridCell = (0, import_react11.memo)(
2200
2201
  "center",
2201
2202
  "width",
2202
2203
  "minWidth",
2204
+ "disabled",
2203
2205
  "testid"
2204
2206
  ]);
2205
2207
  const Element = type === "header" ? "th" : "td";
@@ -2265,7 +2267,8 @@ var DataGridCell = (0, import_react11.memo)(
2265
2267
  paddedLeft && "pl-2",
2266
2268
  component === "icon" && "border-l",
2267
2269
  isGrabbing && "!cursor-grabbing",
2268
- component === "checkbox" || center && "justify-center"
2270
+ component === "checkbox" || center && "justify-center",
2271
+ disabled && "!text-text-primary-disabled"
2269
2272
  );
2270
2273
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2271
2274
  Element,
@@ -2658,7 +2661,8 @@ function TableBodyRow({
2658
2661
  showFilterRow,
2659
2662
  // enableColumnSelector = false,
2660
2663
  locked,
2661
- pinDirection
2664
+ pinDirection,
2665
+ disabled
2662
2666
  }) {
2663
2667
  var _a;
2664
2668
  let visibleCells;
@@ -2676,10 +2680,11 @@ function TableBodyRow({
2676
2680
  {
2677
2681
  className: (0, import_clsx11.default)(
2678
2682
  "min-h-10",
2679
- "transition-colors hover:bg-background-action-secondary-hover",
2680
- row.getIsSelected() && "!bg-background-action-secondary-hover",
2681
- isError && "!bg-background-action-critical-secondary-hover",
2682
- showFilterRow ? "even:bg-background-grouped-primary-normal odd:bg-background-grouped-secondary-normal" : "odd:bg-background-grouped-primary-normal even:bg-background-grouped-secondary-normal"
2683
+ "transition-colors",
2684
+ !disabled && "hover:bg-background-action-secondary-hover",
2685
+ row.getIsSelected() && !disabled && "!bg-background-action-secondary-hover",
2686
+ isError && !disabled && "!bg-background-action-critical-secondary-hover",
2687
+ showFilterRow && !disabled ? "even:bg-background-grouped-primary-normal odd:bg-background-grouped-secondary-normal" : "odd:bg-background-grouped-primary-normal even:bg-background-grouped-secondary-normal"
2683
2688
  ),
2684
2689
  id: id ? `${id}-row-${row.id}` : void 0,
2685
2690
  "data-testid": testid ? `${testid}-row-${row.id}` : void 0,
@@ -2789,7 +2794,9 @@ function TableBody({
2789
2794
  showFilterRow,
2790
2795
  enableColumnSelector = false,
2791
2796
  locked,
2792
- pinDirection
2797
+ pinDirection,
2798
+ rowDisabled,
2799
+ rowDisabledAccessor
2793
2800
  }) {
2794
2801
  const { rows } = table.getRowModel();
2795
2802
  const rowVirtualizer = (0, import_react_virtual.useVirtualizer)({
@@ -2882,7 +2889,8 @@ function TableBody({
2882
2889
  showFilterRow,
2883
2890
  enableColumnSelector,
2884
2891
  locked,
2885
- pinDirection
2892
+ pinDirection,
2893
+ disabled: rowDisabledAccessor ? rowDisabledAccessor(row.original) : rowDisabled
2886
2894
  },
2887
2895
  row.id
2888
2896
  );
@@ -3164,6 +3172,8 @@ function DataGrid({
3164
3172
  predeterminedLeftPins = [],
3165
3173
  predeterminedRightPins = [],
3166
3174
  useMenuDefaultMinWidth,
3175
+ rowDisabled,
3176
+ rowDisabledAccessor,
3167
3177
  ref
3168
3178
  }) {
3169
3179
  var _a, _b, _c, _d, _e, _f, _g;
@@ -3552,7 +3562,9 @@ function DataGrid({
3552
3562
  isLoadingMore,
3553
3563
  hasMore,
3554
3564
  showFilterRow,
3555
- enableColumnSelector
3565
+ enableColumnSelector,
3566
+ rowDisabled,
3567
+ rowDisabledAccessor
3556
3568
  }
3557
3569
  )
3558
3570
  ] }),
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  ColumnSelectorMenuOption
3
- } from "../../../chunk-JWVZOEF5.js";
3
+ } from "../../../chunk-YY66JVTB.js";
4
4
  import "../../../chunk-M7INAUAJ.js";
5
5
  import "../../../chunk-ELXVDRWS.js";
6
6
  import "../../../chunk-3UUCDNX3.js";
7
- import "../../../chunk-IGUQFLEO.js";
8
- import "../../../chunk-3X3Y4TMS.js";
7
+ import "../../../chunk-CDMXM5JW.js";
9
8
  import "../../../chunk-BQNPOGD5.js";
10
9
  import "../../../chunk-Y5GD2FJA.js";
11
10
  import "../../../chunk-MBZ55T2D.js";
12
11
  import "../../../chunk-2IKT6IHB.js";
13
12
  import "../../../chunk-YCDDBSVU.js";
13
+ import "../../../chunk-3X3Y4TMS.js";
14
14
  import "../../../chunk-PRN2EQBX.js";
15
15
  import "../../../chunk-5YNEY3WO.js";
16
16
  import "../../../chunk-5IFPG6TS.js";
@@ -33,7 +33,7 @@ import "../../../chunk-AKJUBFJK.js";
33
33
  import "../../../chunk-SUSUNSVZ.js";
34
34
  import "../../../chunk-BWPNXY7T.js";
35
35
  import "../../../chunk-QVWYTQKL.js";
36
- import "../../../chunk-F6RZ7MUE.js";
36
+ import "../../../chunk-ZCIC3AIZ.js";
37
37
  import "../../../chunk-TCMOGTPB.js";
38
38
  import "../../../chunk-DVU5XV7L.js";
39
39
  import "../../../chunk-LKKFQLWD.js";
@@ -2182,6 +2182,7 @@ var DataGridCell = (0, import_react11.memo)(
2182
2182
  center,
2183
2183
  width,
2184
2184
  minWidth,
2185
+ disabled,
2185
2186
  testid
2186
2187
  } = _b, props = __objRest(_b, [
2187
2188
  "id",
@@ -2200,6 +2201,7 @@ var DataGridCell = (0, import_react11.memo)(
2200
2201
  "center",
2201
2202
  "width",
2202
2203
  "minWidth",
2204
+ "disabled",
2203
2205
  "testid"
2204
2206
  ]);
2205
2207
  const Element = type === "header" ? "th" : "td";
@@ -2265,7 +2267,8 @@ var DataGridCell = (0, import_react11.memo)(
2265
2267
  paddedLeft && "pl-2",
2266
2268
  component === "icon" && "border-l",
2267
2269
  isGrabbing && "!cursor-grabbing",
2268
- component === "checkbox" || center && "justify-center"
2270
+ component === "checkbox" || center && "justify-center",
2271
+ disabled && "!text-text-primary-disabled"
2269
2272
  );
2270
2273
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2271
2274
  Element,
@@ -2658,7 +2661,8 @@ function TableBodyRow({
2658
2661
  showFilterRow,
2659
2662
  // enableColumnSelector = false,
2660
2663
  locked,
2661
- pinDirection
2664
+ pinDirection,
2665
+ disabled
2662
2666
  }) {
2663
2667
  var _a;
2664
2668
  let visibleCells;
@@ -2676,10 +2680,11 @@ function TableBodyRow({
2676
2680
  {
2677
2681
  className: (0, import_clsx11.default)(
2678
2682
  "min-h-10",
2679
- "transition-colors hover:bg-background-action-secondary-hover",
2680
- row.getIsSelected() && "!bg-background-action-secondary-hover",
2681
- isError && "!bg-background-action-critical-secondary-hover",
2682
- showFilterRow ? "even:bg-background-grouped-primary-normal odd:bg-background-grouped-secondary-normal" : "odd:bg-background-grouped-primary-normal even:bg-background-grouped-secondary-normal"
2683
+ "transition-colors",
2684
+ !disabled && "hover:bg-background-action-secondary-hover",
2685
+ row.getIsSelected() && !disabled && "!bg-background-action-secondary-hover",
2686
+ isError && !disabled && "!bg-background-action-critical-secondary-hover",
2687
+ showFilterRow && !disabled ? "even:bg-background-grouped-primary-normal odd:bg-background-grouped-secondary-normal" : "odd:bg-background-grouped-primary-normal even:bg-background-grouped-secondary-normal"
2683
2688
  ),
2684
2689
  id: id ? `${id}-row-${row.id}` : void 0,
2685
2690
  "data-testid": testid ? `${testid}-row-${row.id}` : void 0,
@@ -2789,7 +2794,9 @@ function TableBody({
2789
2794
  showFilterRow,
2790
2795
  enableColumnSelector = false,
2791
2796
  locked,
2792
- pinDirection
2797
+ pinDirection,
2798
+ rowDisabled,
2799
+ rowDisabledAccessor
2793
2800
  }) {
2794
2801
  const { rows } = table.getRowModel();
2795
2802
  const rowVirtualizer = (0, import_react_virtual.useVirtualizer)({
@@ -2882,7 +2889,8 @@ function TableBody({
2882
2889
  showFilterRow,
2883
2890
  enableColumnSelector,
2884
2891
  locked,
2885
- pinDirection
2892
+ pinDirection,
2893
+ disabled: rowDisabledAccessor ? rowDisabledAccessor(row.original) : rowDisabled
2886
2894
  },
2887
2895
  row.id
2888
2896
  );
@@ -3086,6 +3094,8 @@ function DataGrid({
3086
3094
  predeterminedLeftPins = [],
3087
3095
  predeterminedRightPins = [],
3088
3096
  useMenuDefaultMinWidth,
3097
+ rowDisabled,
3098
+ rowDisabledAccessor,
3089
3099
  ref
3090
3100
  }) {
3091
3101
  var _a, _b, _c, _d, _e, _f, _g;
@@ -3474,7 +3484,9 @@ function DataGrid({
3474
3484
  isLoadingMore,
3475
3485
  hasMore,
3476
3486
  showFilterRow,
3477
- enableColumnSelector
3487
+ enableColumnSelector,
3488
+ rowDisabled,
3489
+ rowDisabledAccessor
3478
3490
  }
3479
3491
  )
3480
3492
  ] }),
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  ColumnSelectorHeaderCell
3
- } from "../../../chunk-JWVZOEF5.js";
3
+ } from "../../../chunk-YY66JVTB.js";
4
4
  import "../../../chunk-M7INAUAJ.js";
5
5
  import "../../../chunk-ELXVDRWS.js";
6
6
  import "../../../chunk-3UUCDNX3.js";
7
- import "../../../chunk-IGUQFLEO.js";
8
- import "../../../chunk-3X3Y4TMS.js";
7
+ import "../../../chunk-CDMXM5JW.js";
9
8
  import "../../../chunk-BQNPOGD5.js";
10
9
  import "../../../chunk-Y5GD2FJA.js";
11
10
  import "../../../chunk-MBZ55T2D.js";
12
11
  import "../../../chunk-2IKT6IHB.js";
13
12
  import "../../../chunk-YCDDBSVU.js";
13
+ import "../../../chunk-3X3Y4TMS.js";
14
14
  import "../../../chunk-PRN2EQBX.js";
15
15
  import "../../../chunk-5YNEY3WO.js";
16
16
  import "../../../chunk-5IFPG6TS.js";
@@ -33,7 +33,7 @@ import "../../../chunk-AKJUBFJK.js";
33
33
  import "../../../chunk-SUSUNSVZ.js";
34
34
  import "../../../chunk-BWPNXY7T.js";
35
35
  import "../../../chunk-QVWYTQKL.js";
36
- import "../../../chunk-F6RZ7MUE.js";
36
+ import "../../../chunk-ZCIC3AIZ.js";
37
37
  import "../../../chunk-TCMOGTPB.js";
38
38
  import "../../../chunk-DVU5XV7L.js";
39
39
  import "../../../chunk-LKKFQLWD.js";
@@ -2182,6 +2182,7 @@ var DataGridCell = (0, import_react11.memo)(
2182
2182
  center,
2183
2183
  width,
2184
2184
  minWidth,
2185
+ disabled,
2185
2186
  testid
2186
2187
  } = _b, props = __objRest(_b, [
2187
2188
  "id",
@@ -2200,6 +2201,7 @@ var DataGridCell = (0, import_react11.memo)(
2200
2201
  "center",
2201
2202
  "width",
2202
2203
  "minWidth",
2204
+ "disabled",
2203
2205
  "testid"
2204
2206
  ]);
2205
2207
  const Element = type === "header" ? "th" : "td";
@@ -2265,7 +2267,8 @@ var DataGridCell = (0, import_react11.memo)(
2265
2267
  paddedLeft && "pl-2",
2266
2268
  component === "icon" && "border-l",
2267
2269
  isGrabbing && "!cursor-grabbing",
2268
- component === "checkbox" || center && "justify-center"
2270
+ component === "checkbox" || center && "justify-center",
2271
+ disabled && "!text-text-primary-disabled"
2269
2272
  );
2270
2273
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2271
2274
  Element,
@@ -2651,7 +2654,8 @@ function TableBodyRow({
2651
2654
  showFilterRow,
2652
2655
  // enableColumnSelector = false,
2653
2656
  locked,
2654
- pinDirection
2657
+ pinDirection,
2658
+ disabled
2655
2659
  }) {
2656
2660
  var _a;
2657
2661
  let visibleCells;
@@ -2669,10 +2673,11 @@ function TableBodyRow({
2669
2673
  {
2670
2674
  className: (0, import_clsx11.default)(
2671
2675
  "min-h-10",
2672
- "transition-colors hover:bg-background-action-secondary-hover",
2673
- row.getIsSelected() && "!bg-background-action-secondary-hover",
2674
- isError && "!bg-background-action-critical-secondary-hover",
2675
- showFilterRow ? "even:bg-background-grouped-primary-normal odd:bg-background-grouped-secondary-normal" : "odd:bg-background-grouped-primary-normal even:bg-background-grouped-secondary-normal"
2676
+ "transition-colors",
2677
+ !disabled && "hover:bg-background-action-secondary-hover",
2678
+ row.getIsSelected() && !disabled && "!bg-background-action-secondary-hover",
2679
+ isError && !disabled && "!bg-background-action-critical-secondary-hover",
2680
+ showFilterRow && !disabled ? "even:bg-background-grouped-primary-normal odd:bg-background-grouped-secondary-normal" : "odd:bg-background-grouped-primary-normal even:bg-background-grouped-secondary-normal"
2676
2681
  ),
2677
2682
  id: id ? `${id}-row-${row.id}` : void 0,
2678
2683
  "data-testid": testid ? `${testid}-row-${row.id}` : void 0,
@@ -2782,7 +2787,9 @@ function TableBody({
2782
2787
  showFilterRow,
2783
2788
  enableColumnSelector = false,
2784
2789
  locked,
2785
- pinDirection
2790
+ pinDirection,
2791
+ rowDisabled,
2792
+ rowDisabledAccessor
2786
2793
  }) {
2787
2794
  const { rows } = table.getRowModel();
2788
2795
  const rowVirtualizer = (0, import_react_virtual.useVirtualizer)({
@@ -2875,7 +2882,8 @@ function TableBody({
2875
2882
  showFilterRow,
2876
2883
  enableColumnSelector,
2877
2884
  locked,
2878
- pinDirection
2885
+ pinDirection,
2886
+ disabled: rowDisabledAccessor ? rowDisabledAccessor(row.original) : rowDisabled
2879
2887
  },
2880
2888
  row.id
2881
2889
  );
@@ -2939,6 +2947,8 @@ function DataGrid({
2939
2947
  predeterminedLeftPins = [],
2940
2948
  predeterminedRightPins = [],
2941
2949
  useMenuDefaultMinWidth,
2950
+ rowDisabled,
2951
+ rowDisabledAccessor,
2942
2952
  ref
2943
2953
  }) {
2944
2954
  var _a, _b, _c, _d, _e, _f, _g;
@@ -3327,7 +3337,9 @@ function DataGrid({
3327
3337
  isLoadingMore,
3328
3338
  hasMore,
3329
3339
  showFilterRow,
3330
- enableColumnSelector
3340
+ enableColumnSelector,
3341
+ rowDisabled,
3342
+ rowDisabledAccessor
3331
3343
  }
3332
3344
  )
3333
3345
  ] }),
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  PinnedColumns
3
- } from "../../chunk-JWVZOEF5.js";
3
+ } from "../../chunk-YY66JVTB.js";
4
4
  import "../../chunk-M7INAUAJ.js";
5
5
  import "../../chunk-ELXVDRWS.js";
6
6
  import "../../chunk-3UUCDNX3.js";
7
- import "../../chunk-IGUQFLEO.js";
8
- import "../../chunk-3X3Y4TMS.js";
7
+ import "../../chunk-CDMXM5JW.js";
9
8
  import "../../chunk-BQNPOGD5.js";
10
9
  import "../../chunk-Y5GD2FJA.js";
11
10
  import "../../chunk-MBZ55T2D.js";
12
11
  import "../../chunk-2IKT6IHB.js";
13
12
  import "../../chunk-YCDDBSVU.js";
13
+ import "../../chunk-3X3Y4TMS.js";
14
14
  import "../../chunk-PRN2EQBX.js";
15
15
  import "../../chunk-5YNEY3WO.js";
16
16
  import "../../chunk-5IFPG6TS.js";
@@ -33,7 +33,7 @@ import "../../chunk-AKJUBFJK.js";
33
33
  import "../../chunk-SUSUNSVZ.js";
34
34
  import "../../chunk-BWPNXY7T.js";
35
35
  import "../../chunk-QVWYTQKL.js";
36
- import "../../chunk-F6RZ7MUE.js";
36
+ import "../../chunk-ZCIC3AIZ.js";
37
37
  import "../../chunk-TCMOGTPB.js";
38
38
  import "../../chunk-DVU5XV7L.js";
39
39
  import "../../chunk-LKKFQLWD.js";