@coldsmirk/ledger-mantine 0.9.0 → 0.9.1

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/index.cjs CHANGED
@@ -642,6 +642,7 @@ function RowDragCell({ row, table }) {
642
642
  * display order from the shared core when the click arrives, which is whatever render pass ran
643
643
  * last. The controller answers from the commit instead (`use-row-commands.ts`).
644
644
  */
645
+ const CONTROL_CLASS_NAMES = { body: "ledger-selection-control" };
645
646
  function noop() {}
646
647
  function SelectionHeaderCell({ table }) {
647
648
  const { labels, selection, size } = useDataTableContext();
@@ -652,6 +653,7 @@ function SelectionHeaderCell({ table }) {
652
653
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mantine_core.Checkbox, {
653
654
  "aria-label": labels.selectAllRows,
654
655
  checked: allSelected,
656
+ classNames: CONTROL_CLASS_NAMES,
655
657
  indeterminate: !allSelected && someSelected,
656
658
  size: SIZES[size].control,
657
659
  onChange: noop,
@@ -671,6 +673,7 @@ function SelectionCell({ row }) {
671
673
  if (row.getCanMultiSelect() === false) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mantine_core.Radio, {
672
674
  "aria-label": labels.selectRow,
673
675
  checked: selected,
676
+ classNames: CONTROL_CLASS_NAMES,
674
677
  disabled: !row.getCanSelect(),
675
678
  name: `${instanceId}-selection`,
676
679
  size: SIZES[size].control,
@@ -680,6 +683,7 @@ function SelectionCell({ row }) {
680
683
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mantine_core.Checkbox, {
681
684
  "aria-label": labels.selectRow,
682
685
  checked: selected,
686
+ classNames: CONTROL_CLASS_NAMES,
683
687
  disabled: !row.getCanSelect(),
684
688
  indeterminate: !selected && row.getIsSomeSelected(),
685
689
  size: SIZES[size].control,