@coldsmirk/ledger-mantine 0.5.0 → 0.5.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 +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/styles.css +15 -6
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -38,16 +38,17 @@
|
|
|
38
38
|
border-radius: var(--ledger-radius, 0);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
/* Secondary text (captions, counts, the state panels' titles, the pagination words):
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
/* Secondary text (captions, counts, the state panels' titles, the pagination words): the text
|
|
42
|
+
color at 78% opacity, so it is defined against whatever it sits on rather than as one fixed
|
|
43
|
+
gray. A fixed tone cannot hold 4.5:1 (WCAG AA) on every background a row takes; text that
|
|
44
|
+
blends with its background keeps a share of the text color's own contrast on each of them —
|
|
45
|
+
at 78%, 4.8:1 on the dark scheme's stripes and hover, its lowest neutral background (Mantine's
|
|
46
|
+
own `dimmed` is 3.3:1 on a light body). Overridable on these elements
|
|
46
47
|
(docs/styling.md#css-custom-properties). */
|
|
47
48
|
.ledger-root,
|
|
48
49
|
.ledger-pagination-bar,
|
|
49
50
|
.ledger-columns-panel {
|
|
50
|
-
--ledger-color-dimmed: color-mix(in srgb, var(--mantine-color-
|
|
51
|
+
--ledger-color-dimmed: color-mix(in srgb, var(--mantine-color-text) 78%, transparent);
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
/* The frame around header + body — the elastic middle; carries the outer table border
|
|
@@ -344,6 +345,14 @@
|
|
|
344
345
|
--ledger-row-bg: var(--mantine-primary-color-light-hover);
|
|
345
346
|
}
|
|
346
347
|
|
|
348
|
+
/* A primary tint leaves no room for a second tier of text: on its deepest step in the dark
|
|
349
|
+
scheme even the text color reaches only 5.8:1, so any lighter tone falls under AA. On a
|
|
350
|
+
selected or active row, secondary text takes the text color itself. */
|
|
351
|
+
.ledger-row[data-selected],
|
|
352
|
+
.ledger-row[data-active] {
|
|
353
|
+
--ledger-color-dimmed: var(--mantine-color-text);
|
|
354
|
+
}
|
|
355
|
+
|
|
347
356
|
.ledger-row[data-clickable] {
|
|
348
357
|
cursor: pointer;
|
|
349
358
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coldsmirk/ledger-mantine",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
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",
|