@xcelsior/ui-spreadsheets 1.2.1 → 1.2.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.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/dist/styles/globals.css +3 -0
- package/dist/styles/globals.css.map +1 -1
- package/package.json +1 -1
- package/src/components/RowIndexColumnHeader.tsx +4 -3
- package/src/components/Spreadsheet.stories.tsx +142 -0
- package/src/components/Spreadsheet.tsx +2 -1
package/dist/index.js
CHANGED
|
@@ -1704,8 +1704,8 @@ function RowIndexColumnHeader({
|
|
|
1704
1704
|
style: {
|
|
1705
1705
|
minWidth: `${ROW_INDEX_COLUMN_WIDTH}px`,
|
|
1706
1706
|
width: `${ROW_INDEX_COLUMN_WIDTH}px`,
|
|
1707
|
-
|
|
1708
|
-
|
|
1707
|
+
// Only sticky horizontally if pinned, NOT vertically
|
|
1708
|
+
position: isPinned ? "sticky" : void 0,
|
|
1709
1709
|
left: isPinned ? 0 : void 0,
|
|
1710
1710
|
backgroundColor: highlightColor || "rgb(243 244 246)"
|
|
1711
1711
|
}
|
|
@@ -4397,10 +4397,11 @@ function Spreadsheet({
|
|
|
4397
4397
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
4398
4398
|
"th",
|
|
4399
4399
|
{
|
|
4400
|
-
className: "border border-gray-200 px-2 py-1 text-center text-gray-400",
|
|
4400
|
+
className: "border border-gray-200 px-2 py-1 text-center text-gray-400 sticky z-20",
|
|
4401
4401
|
style: {
|
|
4402
4402
|
backgroundColor: item.headerColor || "rgb(243 244 246)",
|
|
4403
|
-
minWidth: "30px"
|
|
4403
|
+
minWidth: "30px",
|
|
4404
|
+
top: 0
|
|
4404
4405
|
},
|
|
4405
4406
|
children: "..."
|
|
4406
4407
|
},
|