pixel-react-excel-sheet 1.0.26 → 1.0.28
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/lib/index.esm.js +1 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Excel/ExcelFile/ExcelFileComponents/RowIndicator.tsx +29 -31
- package/src/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.scss +5 -0
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pixel-react-excel-sheet",
|
|
3
3
|
"description": "Great for pixel-perfect, design-focused components in React",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.28",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.esm.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
8
8
|
"author": {
|
|
9
9
|
"name": "thaneshwaran"
|
|
10
|
-
|
|
10
|
+
},
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@babel/preset-react": "^7.25.9",
|
|
@@ -102,37 +102,35 @@ const RowIndicator: Types.RowIndicatorComponent = ({
|
|
|
102
102
|
);
|
|
103
103
|
|
|
104
104
|
return (
|
|
105
|
-
<th
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
>
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
</th>
|
|
135
|
-
|
|
105
|
+
<th
|
|
106
|
+
style={{
|
|
107
|
+
height: `${rowHeight}px`,
|
|
108
|
+
minWidth: '60px',
|
|
109
|
+
}} //Dynamic value, Inline Styling required
|
|
110
|
+
className={classNames('ff-spreadsheet-header', {
|
|
111
|
+
'ff-spreadsheet-header--selected': selected,
|
|
112
|
+
})}
|
|
113
|
+
onClick={handleClick}
|
|
114
|
+
onContextMenu={contextClick}
|
|
115
|
+
tabIndex={0}
|
|
116
|
+
>
|
|
117
|
+
<Typography fontWeight="medium">
|
|
118
|
+
{label !== undefined ? label : row + 1}
|
|
119
|
+
</Typography>
|
|
120
|
+
<div
|
|
121
|
+
onMouseDown={onMouseDown}
|
|
122
|
+
onClick={() => activate({ row, column: -1 })}
|
|
123
|
+
style={{
|
|
124
|
+
zIndex: 'inherit',
|
|
125
|
+
height: '2px',
|
|
126
|
+
position: 'absolute',
|
|
127
|
+
right: 0,
|
|
128
|
+
bottom: 0,
|
|
129
|
+
width: '100%',
|
|
130
|
+
cursor: 'ns-resize',
|
|
131
|
+
}}
|
|
132
|
+
/>
|
|
133
|
+
</th>
|
|
136
134
|
);
|
|
137
135
|
};
|
|
138
136
|
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
.ff-excel {
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
6
|
+
width: 100%;
|
|
6
7
|
|
|
7
8
|
.ff-excel-toolbar-container {
|
|
8
9
|
position: relative;
|
|
@@ -28,6 +29,10 @@
|
|
|
28
29
|
color: var(--text-color);
|
|
29
30
|
scrollbar-width: none;
|
|
30
31
|
display: inline-block;
|
|
32
|
+
width: 100%;
|
|
33
|
+
top: 0px;
|
|
34
|
+
left: 0px;
|
|
35
|
+
|
|
31
36
|
}
|
|
32
37
|
|
|
33
38
|
.ff-spreadsheet-active-cell {
|