@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 +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/styles.css +7 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -618,6 +618,7 @@ function RowDragCell({ row, table }) {
|
|
|
618
618
|
* display order from the shared core when the click arrives, which is whatever render pass ran
|
|
619
619
|
* last. The controller answers from the commit instead (`use-row-commands.ts`).
|
|
620
620
|
*/
|
|
621
|
+
const CONTROL_CLASS_NAMES = { body: "ledger-selection-control" };
|
|
621
622
|
function noop() {}
|
|
622
623
|
function SelectionHeaderCell({ table }) {
|
|
623
624
|
const { labels, selection, size } = useDataTableContext();
|
|
@@ -628,6 +629,7 @@ function SelectionHeaderCell({ table }) {
|
|
|
628
629
|
return /* @__PURE__ */ jsx(Checkbox, {
|
|
629
630
|
"aria-label": labels.selectAllRows,
|
|
630
631
|
checked: allSelected,
|
|
632
|
+
classNames: CONTROL_CLASS_NAMES,
|
|
631
633
|
indeterminate: !allSelected && someSelected,
|
|
632
634
|
size: SIZES[size].control,
|
|
633
635
|
onChange: noop,
|
|
@@ -647,6 +649,7 @@ function SelectionCell({ row }) {
|
|
|
647
649
|
if (row.getCanMultiSelect() === false) return /* @__PURE__ */ jsx(Radio, {
|
|
648
650
|
"aria-label": labels.selectRow,
|
|
649
651
|
checked: selected,
|
|
652
|
+
classNames: CONTROL_CLASS_NAMES,
|
|
650
653
|
disabled: !row.getCanSelect(),
|
|
651
654
|
name: `${instanceId}-selection`,
|
|
652
655
|
size: SIZES[size].control,
|
|
@@ -656,6 +659,7 @@ function SelectionCell({ row }) {
|
|
|
656
659
|
return /* @__PURE__ */ jsx(Checkbox, {
|
|
657
660
|
"aria-label": labels.selectRow,
|
|
658
661
|
checked: selected,
|
|
662
|
+
classNames: CONTROL_CLASS_NAMES,
|
|
659
663
|
disabled: !row.getCanSelect(),
|
|
660
664
|
indeterminate: !selected && row.getIsSomeSelected(),
|
|
661
665
|
size: SIZES[size].control,
|