@crispy-seed/data-table 0.10.1 → 0.10.2
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 -2
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4925,6 +4925,7 @@ const DEFAULT_SORT_ICON = {
|
|
|
4925
4925
|
}),
|
|
4926
4926
|
columnMenu && /*#__PURE__*/ jsxRuntime.jsx(ColumnMenu, {
|
|
4927
4927
|
column: column,
|
|
4928
|
+
label: label,
|
|
4928
4929
|
onRename: ()=>setRenamingKey(column.key)
|
|
4929
4930
|
})
|
|
4930
4931
|
]
|
|
@@ -5016,9 +5017,9 @@ function ColumnRenameInput({ column, initialLabel, onDone }) {
|
|
|
5016
5017
|
* `data-table.ts`) -- crisp's own header shows the trigger only on hover, not
|
|
5017
5018
|
* permanently, so this one carries its own marker attribute distinct from that
|
|
5018
5019
|
* slot's OTHER occupants (the sort chevron, the filter trigger), which stay visible
|
|
5019
|
-
* under their own separate rules regardless of hover. */ function ColumnMenu({ column, onRename }) {
|
|
5020
|
+
* under their own separate rules regardless of hover. */ function ColumnMenu({ column, label, onRename }) {
|
|
5020
5021
|
const { moveColumn, hideColumn, isColumnPinned, togglePinColumn, sort, clearSort } = useDataTableContext();
|
|
5021
|
-
const columnLabel = typeof
|
|
5022
|
+
const columnLabel = typeof label === "string" ? label : column.key;
|
|
5022
5023
|
const pinned = isColumnPinned(column.key);
|
|
5023
5024
|
// Attio/GRC's "Remove sort" (live-review fix D) -- the header's own click-to-sort
|
|
5024
5025
|
// (`SortIndicator`/`toggleSort`, above) only cycles asc/desc once a column has been
|
package/dist/index.js
CHANGED
|
@@ -4906,6 +4906,7 @@ const DEFAULT_SORT_ICON = {
|
|
|
4906
4906
|
}),
|
|
4907
4907
|
columnMenu && /*#__PURE__*/ jsx(ColumnMenu, {
|
|
4908
4908
|
column: column,
|
|
4909
|
+
label: label,
|
|
4909
4910
|
onRename: ()=>setRenamingKey(column.key)
|
|
4910
4911
|
})
|
|
4911
4912
|
]
|
|
@@ -4997,9 +4998,9 @@ function ColumnRenameInput({ column, initialLabel, onDone }) {
|
|
|
4997
4998
|
* `data-table.ts`) -- crisp's own header shows the trigger only on hover, not
|
|
4998
4999
|
* permanently, so this one carries its own marker attribute distinct from that
|
|
4999
5000
|
* slot's OTHER occupants (the sort chevron, the filter trigger), which stay visible
|
|
5000
|
-
* under their own separate rules regardless of hover. */ function ColumnMenu({ column, onRename }) {
|
|
5001
|
+
* under their own separate rules regardless of hover. */ function ColumnMenu({ column, label, onRename }) {
|
|
5001
5002
|
const { moveColumn, hideColumn, isColumnPinned, togglePinColumn, sort, clearSort } = useDataTableContext();
|
|
5002
|
-
const columnLabel = typeof
|
|
5003
|
+
const columnLabel = typeof label === "string" ? label : column.key;
|
|
5003
5004
|
const pinned = isColumnPinned(column.key);
|
|
5004
5005
|
// Attio/GRC's "Remove sort" (live-review fix D) -- the header's own click-to-sort
|
|
5005
5006
|
// (`SortIndicator`/`toggleSort`, above) only cycles asc/desc once a column has been
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crispy-seed/data-table",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"description": "Self-contained, publishable build of seed-design's Attio-measured DataTable, ResizablePanel and RecordPreview — one install, one CSS import.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|