@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.
@@ -0,0 +1,2 @@
1
+ import { default as TotalDataGridProps } from './types';
2
+ export declare const TotalDataGrid: React.FC<TotalDataGridProps>;
@@ -1,15 +1,15 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { DataGrid as t, gridClasses as o } from "@mui/x-data-grid";
3
- const p = ({
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
- // columnsDefinitions
7
- }) => /* @__PURE__ */ a(
8
- t,
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, r) => (i.id = r, 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
- p as TotalDataGrid
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/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/TotalDataGrid.js";
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
@@ -2,7 +2,7 @@
2
2
  "name": "@amateescu/portal-ui-components",
3
3
  "main": "dist/main.js",
4
4
  "types": "dist/main.d.ts",
5
- "version": "0.0.9-beta0",
5
+ "version": "0.0.9",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"
@@ -1,2 +0,0 @@
1
- import { default as TotalDataGridProps } from './TotalDataGrid.types';
2
- export declare const TotalDataGrid: React.FC<TotalDataGridProps>;