@kanunilabs/datagrid-react 1.7.0 → 1.8.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/index.cjs +3 -3
- package/dist/index.d.cts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +3 -3
- package/dist/styles.css +32 -4
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -630,7 +630,11 @@
|
|
|
630
630
|
border-color: var(--dg-primary);
|
|
631
631
|
}
|
|
632
632
|
|
|
633
|
+
/* Commands: an icon and a label side by side (toolbarIcons.ts). */
|
|
633
634
|
.kanuni-datagrid-toolbar > button {
|
|
635
|
+
display: inline-flex;
|
|
636
|
+
align-items: center;
|
|
637
|
+
gap: 5px;
|
|
634
638
|
padding: 3px 10px;
|
|
635
639
|
border: 1px solid var(--dg-border-strong);
|
|
636
640
|
border-radius: var(--dg-radius-control);
|
|
@@ -641,6 +645,10 @@
|
|
|
641
645
|
cursor: pointer;
|
|
642
646
|
}
|
|
643
647
|
|
|
648
|
+
.kanuni-datagrid-icon {
|
|
649
|
+
flex: none;
|
|
650
|
+
}
|
|
651
|
+
|
|
644
652
|
.kanuni-datagrid-toolbar > button:hover:not(:disabled) {
|
|
645
653
|
background: var(--dg-surface-hover);
|
|
646
654
|
}
|
|
@@ -1038,9 +1046,8 @@
|
|
|
1038
1046
|
color: var(--dg-text);
|
|
1039
1047
|
}
|
|
1040
1048
|
|
|
1041
|
-
/* The panel is
|
|
1042
|
-
|
|
1043
|
-
filler slots the virtualizer reserved. */
|
|
1049
|
+
/* The panel's height is the component's (the height index reserves it);
|
|
1050
|
+
overriding it here would desync the rows below from their offsets. */
|
|
1044
1051
|
.kanuni-datagrid-detail-row {
|
|
1045
1052
|
background: var(--dg-surface);
|
|
1046
1053
|
border-bottom: 1px solid var(--dg-border);
|
|
@@ -1050,7 +1057,9 @@
|
|
|
1050
1057
|
position: sticky;
|
|
1051
1058
|
inset-inline-start: 0;
|
|
1052
1059
|
box-sizing: border-box;
|
|
1053
|
-
width:
|
|
1060
|
+
/* The VIEWPORT's width, like the edit form below: the row is as wide as
|
|
1061
|
+
every column, and at 100% a panel under a wide grid ran off screen. */
|
|
1062
|
+
width: var(--dg-viewport-width, 100%);
|
|
1054
1063
|
height: 100%;
|
|
1055
1064
|
padding: 8px 12px;
|
|
1056
1065
|
overflow: auto;
|
|
@@ -1695,6 +1704,17 @@
|
|
|
1695
1704
|
}
|
|
1696
1705
|
|
|
1697
1706
|
/* ── Search highlight (P2.4) ──────────────────────────────── */
|
|
1707
|
+
/* A highlighted cell's text and marks sit in ONE span: side by side in the
|
|
1708
|
+
flex cell, each part was a flex item and lost the spaces at its edges. The
|
|
1709
|
+
span carries the cell's single-line ellipsis itself, since a flex item does
|
|
1710
|
+
not inherit it. */
|
|
1711
|
+
.kanuni-datagrid-cell-text {
|
|
1712
|
+
min-width: 0;
|
|
1713
|
+
overflow: hidden;
|
|
1714
|
+
text-overflow: ellipsis;
|
|
1715
|
+
white-space: inherit;
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1698
1718
|
/* A <mark>, so the match is in the accessibility tree as emphasis rather than
|
|
1699
1719
|
as a colour only. The browser default is a hard yellow that fights every
|
|
1700
1720
|
theme; these follow the accent instead. */
|
|
@@ -2151,6 +2171,14 @@
|
|
|
2151
2171
|
padding: 4px;
|
|
2152
2172
|
}
|
|
2153
2173
|
|
|
2174
|
+
/* The chooser says what it is: an untitled box of checkboxes read as nothing
|
|
2175
|
+
having opened (2026-10-14). */
|
|
2176
|
+
.kanuni-datagrid-chooser-title {
|
|
2177
|
+
padding: 2px 4px 0;
|
|
2178
|
+
font-weight: 600;
|
|
2179
|
+
color: var(--dg-text);
|
|
2180
|
+
}
|
|
2181
|
+
|
|
2154
2182
|
.kanuni-datagrid-chooser-empty {
|
|
2155
2183
|
padding: 8px 4px;
|
|
2156
2184
|
color: var(--dg-text-muted);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kanunilabs/datagrid-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "High-performance React data grid — virtualized rows and columns, sticky pinned columns, sorting, filtering and theming",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@kanunilabs/datagrid-core": "1.
|
|
60
|
+
"@kanunilabs/datagrid-core": "1.10.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"react": ">=18.0.0",
|