@coldsmirk/ledger-mantine 0.3.0 → 0.4.0

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/styles.css CHANGED
@@ -29,6 +29,10 @@
29
29
  min-height: 0;
30
30
  overflow: hidden;
31
31
 
32
+ /* `size` (the --ledger-font-size variable, docs/styling.md#size): the type every table under
33
+ the root inherits; a `fz` on the root is inline and still wins. */
34
+ font-size: var(--ledger-font-size);
35
+
32
36
  /* `radius` (the --ledger-radius variable): the root rounds with the frame so a `bg` or the
33
37
  pagination bar follows the same corners. */
34
38
  border-radius: var(--ledger-radius, 0);
@@ -40,7 +44,6 @@
40
44
  positioned thing inside it (header actions, the empty state, the seam overlays) lives within
41
45
  its box, and the row-drag ghost is portaled to the body. */
42
46
  .ledger-main {
43
- position: relative;
44
47
  display: flex;
45
48
  flex: 1 1 auto;
46
49
  flex-direction: column;
@@ -462,6 +465,11 @@
462
465
  padding-block: 2px;
463
466
  }
464
467
 
468
+ /* An `xs` row is as tall as the smallest input Mantine draws: the editor takes the whole of it. */
469
+ .ledger-root[data-size="xs"] .ledger-cell[data-editing] {
470
+ padding-block: 0;
471
+ }
472
+
465
473
  .ledger-cell-editor {
466
474
  display: flex;
467
475
  gap: 4px;
@@ -591,7 +599,6 @@
591
599
  gap: 8px;
592
600
  align-items: center;
593
601
  justify-content: center;
594
- font-size: var(--mantine-font-size-sm);
595
602
  }
596
603
 
597
604
  /* The retry button carries its own horizontal padding, so the pair needs less between them. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coldsmirk/ledger-mantine",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Mantine-native <DataTable> on TanStack Table and TanStack Virtual: sorting, filtering, pagination, selection, pinning, inline editing, and adaptive row virtualization.",
5
5
  "keywords": [
6
6
  "data-table",