@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.
Files changed (40) hide show
  1. package/dist/assets/CustomFooter.css +1 -0
  2. package/dist/components/ConfirmationModal/ConfirmationModal.js +1 -1
  3. package/dist/components/CustomButton/{index.d.ts → CustomButton.d.ts} +1 -1
  4. package/dist/components/CustomFooter/CustomFooter.d.ts +2 -0
  5. package/dist/components/CustomFooter/CustomFooter.js +31 -0
  6. package/dist/components/CustomFooter/CustomFooter.types.d.ts +7 -0
  7. package/dist/components/CustomPagination/CustomPagination.d.ts +2 -11
  8. package/dist/components/CustomPagination/CustomPagination.js +264 -268
  9. package/dist/components/CustomPagination/CustomPagination.types.d.ts +8 -0
  10. package/dist/components/ErrorModal/ErrorModal.js +16 -11
  11. package/dist/components/InfoModal/{index.d.ts → InfoModal.d.ts} +1 -1
  12. package/dist/components/InfoModal/{index.js → InfoModal.js} +1 -1
  13. package/dist/components/InfoModal/InfoModal.types.js +1 -0
  14. package/dist/components/KpiCard/{index.d.ts → KpiCard.d.ts} +1 -1
  15. package/dist/components/KpiCard/{index.js → KpiCard.js} +2 -2
  16. package/dist/components/KpiCard/KpiCard.types.js +1 -0
  17. package/dist/components/KpiWrapper/{index.js → KpiWrapper.js} +1 -1
  18. package/dist/components/index.d.ts +10 -0
  19. package/dist/components/index.js +22 -0
  20. package/dist/main.d.ts +2 -9
  21. package/dist/main.js +18 -16
  22. package/dist/types/CustomSvg.d.ts +1 -2
  23. package/dist/types/index.d.ts +4 -0
  24. package/dist/types/index.js +1 -0
  25. package/dist/utils/pageCount.d.ts +2 -0
  26. package/dist/utils/pageCount.js +4 -0
  27. package/package.json +1 -1
  28. /package/dist/assets/{index2.css → ErrorModal.css} +0 -0
  29. /package/dist/assets/{index3.css → KpiCard.css} +0 -0
  30. /package/dist/assets/{index.css → KpiWrapper.css} +0 -0
  31. /package/dist/components/CustomButton/{index.js → CustomButton.js} +0 -0
  32. /package/dist/components/CustomButton/{types.d.ts → CustomeButton.types.d.ts} +0 -0
  33. /package/dist/components/CustomButton/{types.js → CustomeButton.types.js} +0 -0
  34. /package/dist/components/{InfoModal/types.js → CustomFooter/CustomFooter.types.js} +0 -0
  35. /package/dist/components/{KpiCard/types.js → CustomPagination/CustomPagination.types.js} +0 -0
  36. /package/dist/components/InfoModal/{types.d.ts → InfoModal.types.d.ts} +0 -0
  37. /package/dist/components/KpiCard/{types.d.ts → KpiCard.types.d.ts} +0 -0
  38. /package/dist/components/KpiWrapper/{index.d.ts → KpiWrapper.d.ts} +0 -0
  39. /package/dist/components/LoadingAnimation/{index.d.ts → LoadingAnimation.d.ts} +0 -0
  40. /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/index2.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 = {
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,
@@ -1,3 +1,3 @@
1
- import { CustomButtonProps } from './types';
1
+ import { CustomButtonProps } from './CustomeButton.types';
2
2
  import { default as React } from 'react';
3
3
  export declare const CustomButton: React.FC<CustomButtonProps>;
@@ -0,0 +1,2 @@
1
+ import { default as CustomFooterProps } from './CustomFooter.types';
2
+ export declare function CustomFooter({ total, columnsDefinitions, isRtl }: CustomFooterProps): import("react/jsx-runtime").JSX.Element;
@@ -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
+ };
@@ -0,0 +1,7 @@
1
+ import { GridColDef } from '@mui/x-data-grid';
2
+ interface CustomFooterProps {
3
+ total: any[];
4
+ columnsDefinitions: GridColDef[];
5
+ isRtl: boolean;
6
+ }
7
+ export default CustomFooterProps;
@@ -1,11 +1,2 @@
1
- import { default as CustomSvg } from '../../types/CustomSvg';
2
- type ExternalPaginationProps = {
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;