@amateescu/portal-ui-components 0.0.10 → 0.0.12-beta0
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/assets/CustomFooter.css +1 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.js +1 -1
- package/dist/components/CustomButton/{index.d.ts → CustomButton.d.ts} +1 -1
- package/dist/components/CustomFooter/CustomFooter.d.ts +2 -0
- package/dist/components/CustomFooter/CustomFooter.js +31 -0
- package/dist/components/CustomFooter/CustomFooter.types.d.ts +7 -0
- package/dist/components/CustomPagination/CustomPagination.d.ts +2 -11
- package/dist/components/CustomPagination/CustomPagination.js +264 -268
- package/dist/components/CustomPagination/CustomPagination.types.d.ts +8 -0
- package/dist/components/ErrorModal/ErrorModal.js +16 -11
- package/dist/components/InfoModal/{index.d.ts → InfoModal.d.ts} +1 -1
- package/dist/components/InfoModal/{index.js → InfoModal.js} +1 -1
- package/dist/components/InfoModal/InfoModal.types.js +1 -0
- package/dist/components/KpiCard/{index.d.ts → KpiCard.d.ts} +1 -1
- package/dist/components/KpiCard/{index.js → KpiCard.js} +2 -2
- package/dist/components/KpiCard/KpiCard.types.js +1 -0
- package/dist/components/KpiWrapper/{index.js → KpiWrapper.js} +1 -1
- package/dist/components/index.d.ts +10 -0
- package/dist/components/index.js +22 -0
- package/dist/main.d.ts +2 -9
- package/dist/main.js +18 -16
- package/dist/types/CustomSvg.d.ts +1 -2
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.js +1 -0
- package/dist/utils/pageCount.d.ts +2 -0
- package/dist/utils/pageCount.js +4 -0
- package/package.json +1 -1
- /package/dist/assets/{index2.css → ErrorModal.css} +0 -0
- /package/dist/assets/{index3.css → KpiCard.css} +0 -0
- /package/dist/assets/{index.css → KpiWrapper.css} +0 -0
- /package/dist/components/CustomButton/{index.js → CustomButton.js} +0 -0
- /package/dist/components/CustomButton/{types.d.ts → CustomeButton.types.d.ts} +0 -0
- /package/dist/components/CustomButton/{types.js → CustomeButton.types.js} +0 -0
- /package/dist/components/{InfoModal/types.js → CustomFooter/CustomFooter.types.js} +0 -0
- /package/dist/components/{KpiCard/types.js → CustomPagination/CustomPagination.types.js} +0 -0
- /package/dist/components/InfoModal/{types.d.ts → InfoModal.types.d.ts} +0 -0
- /package/dist/components/KpiCard/{types.d.ts → KpiCard.types.d.ts} +0 -0
- /package/dist/components/KpiWrapper/{index.d.ts → KpiWrapper.d.ts} +0 -0
- /package/dist/components/LoadingAnimation/{index.d.ts → LoadingAnimation.d.ts} +0 -0
- /package/dist/components/LoadingAnimation/{index.js → LoadingAnimation.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._container_1py0o_1{padding-top:10px;height:7%}
|
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import { S as m } from "../../VModalIcon-D7L4bQLO.js";
|
|
4
4
|
import { M as d } from "../../index-BczMuCik.js";
|
|
5
|
-
import '../../assets/
|
|
5
|
+
import '../../assets/ErrorModal.css';const w = (n) => /* @__PURE__ */ o.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ o.createElement("path", { d: "M7 10L9 12L13 8M19 10C19 14.9706 14.9706 19 10 19C5.02944 19 1 14.9706 1 10C1 5.02944 5.02944 1 10 1C14.9706 1 19 5.02944 19 10Z", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), p = (n) => /* @__PURE__ */ o.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ o.createElement("path", { d: "M6 18L18 6M6 6L18 18", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), x = "_flexRowCenter_14ewh_1", f = "_mr10_14ewh_7", C = "_text18_14ewh_15", k = "_content_14ewh_19", t = {
|
|
6
6
|
flexRowCenter: x,
|
|
7
7
|
mr10: f,
|
|
8
8
|
text18: C,
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsxs as m, Fragment as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { CustomPagination as u } from "../CustomPagination/CustomPagination.js";
|
|
3
|
+
import { TotalDataGrid as g } from "../TotalDataGrid/TotalDataGrid.js";
|
|
4
|
+
import l from "../../utils/pageCount.js";
|
|
5
|
+
import { useGridApiContext as C, useGridSelector as n, gridFilteredTopLevelRowCountSelector as f, useGridRootProps as h, gridPageSizeSelector as F, GridFooterContainer as G } from "@mui/x-data-grid";
|
|
6
|
+
import '../../assets/CustomFooter.css';const P = "_container_1py0o_1", S = {
|
|
7
|
+
container: P
|
|
8
|
+
};
|
|
9
|
+
function _({ total: o, columnsDefinitions: t, isRtl: i }) {
|
|
10
|
+
const r = C(), s = n(r, f), c = h(), a = n(r, F), p = l(c.rowCount ?? s, a);
|
|
11
|
+
return /* @__PURE__ */ m(d, { children: [
|
|
12
|
+
/* @__PURE__ */ e("div", { className: S.container, children: (o == null ? void 0 : o.length) > 0 && /* @__PURE__ */ e(
|
|
13
|
+
g,
|
|
14
|
+
{
|
|
15
|
+
rows: o,
|
|
16
|
+
isFetching: !1,
|
|
17
|
+
columnsDefinitions: t
|
|
18
|
+
}
|
|
19
|
+
) }),
|
|
20
|
+
/* @__PURE__ */ e(G, { children: /* @__PURE__ */ e(
|
|
21
|
+
u,
|
|
22
|
+
{
|
|
23
|
+
isRtl: i,
|
|
24
|
+
pageCount: p
|
|
25
|
+
}
|
|
26
|
+
) })
|
|
27
|
+
] });
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
_ as CustomFooter
|
|
31
|
+
};
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
isRtl: boolean;
|
|
4
|
-
pageCount: number;
|
|
5
|
-
arrowFirstIcon: CustomSvg;
|
|
6
|
-
arrowLastIcon: CustomSvg;
|
|
7
|
-
nextIcon: CustomSvg;
|
|
8
|
-
previousIcon: CustomSvg;
|
|
9
|
-
};
|
|
10
|
-
export declare function CustomPagination({ isRtl, pageCount, arrowFirstIcon, arrowLastIcon, nextIcon, previousIcon }: ExternalPaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
1
|
+
import { ExternalPaginationProps } from './CustomPagination.types';
|
|
2
|
+
export declare function CustomPagination({ isRtl, pageCount }: ExternalPaginationProps): import("react/jsx-runtime").JSX.Element;
|