File tree Expand file tree Collapse file tree 4 files changed +51
-222
lines changed Expand file tree Collapse file tree 4 files changed +51
-222
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-data-table-component" ,
3
- "version" : " 7.0.0-alpha-6 " ,
3
+ "version" : " 7.0.0-alpha-7 " ,
4
4
"description" : " A declarative react based data table" ,
5
5
"main" : " dist/index.cjs.js" ,
6
6
"module" : " dist/index.es.js" ,
46
46
"@storybook/addon-console" : " ^1.2.3" ,
47
47
"@storybook/addon-links" : " ^6.1.18" ,
48
48
"@storybook/addon-storysource" : " ^6.1.18" ,
49
- "@storybook/react" : " ^6.1.15 " ,
49
+ "@storybook/react" : " ^6.1.18 " ,
50
50
"@testing-library/react" : " ^11.2.5" ,
51
- "@types/faker" : " ^5.1.5 " ,
51
+ "@types/faker" : " ^5.1.7 " ,
52
52
"@types/jest" : " ^26.0.20" ,
53
53
"@types/lodash-es" : " ^4.17.4" ,
54
54
"@types/lodash.orderby" : " ^4.6.6" ,
Original file line number Diff line number Diff line change @@ -180,6 +180,7 @@ function TableCol<T>({
180
180
maxWidth = { column . maxWidth }
181
181
minWidth = { column . minWidth }
182
182
right = { column . right }
183
+ center = { column . center }
183
184
width = { column . width }
184
185
>
185
186
{ column . name && (
Original file line number Diff line number Diff line change @@ -5866,32 +5866,17 @@ exports[`DataTable::columns should render correctly if column.center 1`] = `
5866
5866
flex-basis: 0;
5867
5867
max-width: 100%;
5868
5868
min-width: 100px;
5869
- }
5870
-
5871
- .c12 {
5872
- -webkit-box-flex: 1;
5873
- -webkit-flex-grow: 1;
5874
- -ms-flex-positive: 1;
5875
- flex-grow: 1;
5876
- -webkit-flex-shrink: 0;
5877
- -ms-flex-negative: 0;
5878
- flex-shrink: 0;
5879
- -webkit-flex-basis: 0;
5880
- -ms-flex-preferred-size: 0;
5881
- flex-basis: 0;
5882
- max-width: 100%;
5883
- min-width: 100px;
5884
5869
-webkit-box-pack: center;
5885
5870
-webkit-justify-content: center;
5886
5871
-ms-flex-pack: center;
5887
5872
justify-content: center;
5888
5873
}
5889
5874
5890
- .c13 {
5875
+ .c12 {
5891
5876
font-weight: 400;
5892
5877
}
5893
5878
5894
- .c13 div:first-child {
5879
+ .c12 div:first-child {
5895
5880
white-space: nowrap;
5896
5881
overflow: hidden;
5897
5882
text-overflow: ellipsis;
@@ -6021,7 +6006,7 @@ exports[`DataTable::columns should render correctly if column.center 1`] = `
6021
6006
role="row"
6022
6007
>
6023
6008
<div
6024
- class="c11 c12 c13 rdt_TableCell"
6009
+ class="c11 c6 c12 rdt_TableCell"
6025
6010
data-tag="allowRowEvents"
6026
6011
id="cell-1-1"
6027
6012
role="gridcell"
@@ -6039,7 +6024,7 @@ exports[`DataTable::columns should render correctly if column.center 1`] = `
6039
6024
role="row"
6040
6025
>
6041
6026
<div
6042
- class="c11 c12 c13 rdt_TableCell"
6027
+ class="c11 c6 c12 rdt_TableCell"
6043
6028
data-tag="allowRowEvents"
6044
6029
id="cell-1-2"
6045
6030
role="gridcell"
You can’t perform that action at this time.
0 commit comments