@amateescu/portal-ui-components 0.0.9-beta0 → 0.0.9
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/components/TotalDataGrid/index.d.ts +2 -0
- package/dist/components/TotalDataGrid/{TotalDataGrid.js → index.js} +10 -10
- package/dist/main.d.ts +1 -1
- package/dist/main.js +1 -1
- package/package.json +1 -1
- package/dist/components/TotalDataGrid/TotalDataGrid.d.ts +0 -2
- /package/dist/components/TotalDataGrid/{TotalDataGrid.types.d.ts → types.d.ts} +0 -0
- /package/dist/components/TotalDataGrid/{TotalDataGrid.types.js → types.js} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { DataGrid as
|
|
3
|
-
const
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { DataGrid as l, gridClasses as o } from "@mui/x-data-grid";
|
|
3
|
+
const u = ({
|
|
4
4
|
rows: e,
|
|
5
|
-
isFetching: n
|
|
6
|
-
|
|
7
|
-
}) => /* @__PURE__ */
|
|
8
|
-
|
|
5
|
+
isFetching: n,
|
|
6
|
+
columnsDefinitions: r
|
|
7
|
+
}) => /* @__PURE__ */ t(
|
|
8
|
+
l,
|
|
9
9
|
{
|
|
10
10
|
loading: (!e || !e.length) && n,
|
|
11
|
-
rows: e.map((i,
|
|
12
|
-
columns:
|
|
11
|
+
rows: e.map((i, a) => (i.id = a, i)),
|
|
12
|
+
columns: r,
|
|
13
13
|
getRowClassName: (i) => i.id === e.length - 1 ? "last-row" : "",
|
|
14
14
|
sx: {
|
|
15
15
|
"& .last-row": {
|
|
@@ -121,5 +121,5 @@ const p = ({
|
|
|
121
121
|
}
|
|
122
122
|
);
|
|
123
123
|
export {
|
|
124
|
-
|
|
124
|
+
u as TotalDataGrid
|
|
125
125
|
};
|
package/dist/main.d.ts
CHANGED
|
@@ -6,4 +6,4 @@ export { InfoModal } from './components/InfoModal';
|
|
|
6
6
|
export { KpiCard } from './components/KpiCard';
|
|
7
7
|
export { KpiWrapper } from './components/KpiWrapper';
|
|
8
8
|
export { LoadingAnimation } from './components/LoadingAnimation';
|
|
9
|
-
export { TotalDataGrid } from './components/TotalDataGrid
|
|
9
|
+
export { TotalDataGrid } from './components/TotalDataGrid';
|
package/dist/main.js
CHANGED
|
@@ -6,7 +6,7 @@ import { InfoModal as x } from "./components/InfoModal/index.js";
|
|
|
6
6
|
import { KpiCard as l } from "./components/KpiCard/index.js";
|
|
7
7
|
import { KpiWrapper as u } from "./components/KpiWrapper/index.js";
|
|
8
8
|
import { LoadingAnimation as g } from "./components/LoadingAnimation/index.js";
|
|
9
|
-
import { TotalDataGrid as K } from "./components/TotalDataGrid/
|
|
9
|
+
import { TotalDataGrid as K } from "./components/TotalDataGrid/index.js";
|
|
10
10
|
export {
|
|
11
11
|
t as ConfirmationModal,
|
|
12
12
|
m as CustomButton,
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|