next-recomponents 2.0.20 → 2.0.21
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.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +12 -1
- package/dist/index.mjs +12 -1
- package/package.json +1 -1
- package/src/table/index.tsx +12 -0
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -35913,7 +35913,9 @@ function IHTable({
|
|
|
35913
35913
|
header,
|
|
35914
35914
|
hideColumns = [],
|
|
35915
35915
|
footer = {},
|
|
35916
|
-
currentCoin = "$"
|
|
35916
|
+
currentCoin = "$",
|
|
35917
|
+
fontSize = "1rem",
|
|
35918
|
+
className
|
|
35917
35919
|
}) {
|
|
35918
35920
|
var _a;
|
|
35919
35921
|
if (modal && onSelect)
|
|
@@ -35999,12 +36001,21 @@ function IHTable({
|
|
|
35999
36001
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
36000
36002
|
import_x_data_grid.DataGrid,
|
|
36001
36003
|
{
|
|
36004
|
+
className,
|
|
36002
36005
|
rows,
|
|
36003
36006
|
columns,
|
|
36004
36007
|
checkboxSelection: Boolean(onSelect),
|
|
36005
36008
|
rowSelectionModel: selectedRows,
|
|
36006
36009
|
onRowSelectionModelChange: !modal ? setSelectedRows : void 0,
|
|
36007
36010
|
sx: {
|
|
36011
|
+
fontSize,
|
|
36012
|
+
// equivalente a text-xs
|
|
36013
|
+
"& .MuiDataGrid-cell": {
|
|
36014
|
+
fontSize
|
|
36015
|
+
},
|
|
36016
|
+
"& .MuiDataGrid-columnHeader": {
|
|
36017
|
+
fontSize
|
|
36018
|
+
},
|
|
36008
36019
|
"& .MuiDataGrid-cell--editable": {
|
|
36009
36020
|
backgroundColor: "#c6d8f0",
|
|
36010
36021
|
fontWeight: 500
|
package/dist/index.mjs
CHANGED
|
@@ -35893,7 +35893,9 @@ function IHTable({
|
|
|
35893
35893
|
header,
|
|
35894
35894
|
hideColumns = [],
|
|
35895
35895
|
footer = {},
|
|
35896
|
-
currentCoin = "$"
|
|
35896
|
+
currentCoin = "$",
|
|
35897
|
+
fontSize = "1rem",
|
|
35898
|
+
className
|
|
35897
35899
|
}) {
|
|
35898
35900
|
var _a;
|
|
35899
35901
|
if (modal && onSelect)
|
|
@@ -35979,12 +35981,21 @@ function IHTable({
|
|
|
35979
35981
|
/* @__PURE__ */ jsx6(
|
|
35980
35982
|
DataGrid,
|
|
35981
35983
|
{
|
|
35984
|
+
className,
|
|
35982
35985
|
rows,
|
|
35983
35986
|
columns,
|
|
35984
35987
|
checkboxSelection: Boolean(onSelect),
|
|
35985
35988
|
rowSelectionModel: selectedRows,
|
|
35986
35989
|
onRowSelectionModelChange: !modal ? setSelectedRows : void 0,
|
|
35987
35990
|
sx: {
|
|
35991
|
+
fontSize,
|
|
35992
|
+
// equivalente a text-xs
|
|
35993
|
+
"& .MuiDataGrid-cell": {
|
|
35994
|
+
fontSize
|
|
35995
|
+
},
|
|
35996
|
+
"& .MuiDataGrid-columnHeader": {
|
|
35997
|
+
fontSize
|
|
35998
|
+
},
|
|
35988
35999
|
"& .MuiDataGrid-cell--editable": {
|
|
35989
36000
|
backgroundColor: "#c6d8f0",
|
|
35990
36001
|
fontWeight: 500
|
package/package.json
CHANGED
package/src/table/index.tsx
CHANGED
|
@@ -37,6 +37,8 @@ interface TableProps {
|
|
|
37
37
|
footer?: FooterType;
|
|
38
38
|
symbols?: any;
|
|
39
39
|
currentCoin?: string;
|
|
40
|
+
className?: string;
|
|
41
|
+
fontSize?: string;
|
|
40
42
|
[key: string]: any;
|
|
41
43
|
}
|
|
42
44
|
|
|
@@ -359,6 +361,8 @@ function IHTable({
|
|
|
359
361
|
hideColumns = [],
|
|
360
362
|
footer = {},
|
|
361
363
|
currentCoin = "$",
|
|
364
|
+
fontSize = "1rem",
|
|
365
|
+
className,
|
|
362
366
|
}: TableProps) {
|
|
363
367
|
if (modal && onSelect)
|
|
364
368
|
throw new Error("Solo se puede usar modal o onSelect por separado");
|
|
@@ -448,12 +452,20 @@ function IHTable({
|
|
|
448
452
|
)}
|
|
449
453
|
|
|
450
454
|
<DataGrid
|
|
455
|
+
className={className}
|
|
451
456
|
rows={rows}
|
|
452
457
|
columns={columns as any}
|
|
453
458
|
checkboxSelection={Boolean(onSelect)}
|
|
454
459
|
rowSelectionModel={selectedRows}
|
|
455
460
|
onRowSelectionModelChange={!modal ? setSelectedRows : undefined}
|
|
456
461
|
sx={{
|
|
462
|
+
fontSize, // equivalente a text-xs
|
|
463
|
+
"& .MuiDataGrid-cell": {
|
|
464
|
+
fontSize,
|
|
465
|
+
},
|
|
466
|
+
"& .MuiDataGrid-columnHeader": {
|
|
467
|
+
fontSize,
|
|
468
|
+
},
|
|
457
469
|
"& .MuiDataGrid-cell--editable": {
|
|
458
470
|
backgroundColor: "#c6d8f0",
|
|
459
471
|
fontWeight: 500,
|