@amateescu/portal-ui-components 0.0.22 → 0.0.23-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/{UserInfoDropdown-Cd1W3wRj.js → UserInfoDropdown-DGaplQo6.js} +1 -1
- package/dist/assets/ConfirmationModal.css +1 -1
- package/dist/assets/ErrorModal.css +1 -1
- package/dist/assets/KpiCard.css +1 -1
- package/dist/assets/SideMenu.css +1 -1
- package/dist/assets/UserInfoDropdown.css +1 -1
- package/dist/assets/theme.css +1 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.js +28 -26
- package/dist/components/CustomButton/CustomButton.js +12 -11
- package/dist/components/CustomFooter/CustomFooter.stories.js +7 -6
- package/dist/components/CustomPagination/CustomPagination.js +25 -24
- package/dist/components/ErrorModal/ErrorModal.js +19 -17
- package/dist/components/InfoModal/InfoModal.js +15 -14
- package/dist/components/KpiCard/KpiCard.js +40 -40
- package/dist/components/KpiWrapper/KpiWrapper.stories.js +11 -10
- package/dist/components/Login/Login.js +5 -4
- package/dist/components/SideMenu/SideMenu.js +9 -8
- package/dist/components/TotalDataGrid/TotalDataGrid.js +17 -16
- package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
- package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/main.js +1 -1
- package/package.json +3 -2
- package/src/theme/theme.scss +43 -0
|
@@ -3744,7 +3744,7 @@ const Dt = (e) => {
|
|
|
3744
3744
|
Dt.__ANT_BUTTON = !0;
|
|
3745
3745
|
const Ht = be;
|
|
3746
3746
|
Ht.Button = Dt;
|
|
3747
|
-
const or = (e) => /* @__PURE__ */ a.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ a.createElement("path", { d: "M19 9L12 16L5 9", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), nr = "
|
|
3747
|
+
const or = (e) => /* @__PURE__ */ a.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ a.createElement("path", { d: "M19 9L12 16L5 9", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), nr = "_avatar_1r72q_43", rr = "_pointer_1r72q_49", ir = "_flexRowCenter_1r72q_53", ar = "_userTitle_1r72q_60", Ce = {
|
|
3748
3748
|
avatar: nr,
|
|
3749
3749
|
pointer: rr,
|
|
3750
3750
|
flexRowCenter: ir,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
:root{--color-primary: #045529;--color-secondary: #626367;--color-background: #f0f0f0;--color-background-secondary: #f3f6f8;--color-text: #12121a;--color-text-secondary: #111111;--color-text-light: #777;--color-text-dark: #333;--color-border: #ddd;--color-highlight: #05a952;--color-highlight-data-grid: rgba(5,169,82,.10196);--color-mui-selected: #F5F7FB;--color-warning: #eea63c;--color-critical: #f95048;--color-neutral: #fafafa;--color-red: red;--color-gray: #e0e0e0;--color-blue: #0054EE;--color-light-gray-blue: #E6EBEF;--color-very-light-gray: #DBDBDB;--color-white: white;--color-green: green;--color-ant-theme: #00b96b;--color-avatar: #41b06e;--font-size-xxsmall: 8px;--font-size-9: 9px;--font-size-xsmall: 10px;--font-size-small: 12px;--font-size-normal: 13px;--font-size-medium: 14px;--font-size-large: 16px;--font-size-xlarge: 18px;--font-size-xxlarge: 20px;--font-size-xxxlarge: 21px;--font-size-22: 22px;--font-size-kpi-card: 32px;--font-bolded: 600;--font-500: 500;--font-400: 400}._flexRowCenter_1mxo7_43{display:flex!important;flex-direction:row;align-items:center}._mr10_1mxo7_49,html[dir=rtl] ._mr10_1mxo7_49{margin-right:10px}html[dir=ltr] ._mr10_1mxo7_49{margin-left:10px}._text18_1mxo7_61{font-size:18px;font-size:var(--font-size-xlarge)}._content_1mxo7_65{position:relative;top:-10px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
:root{--color-primary: #045529;--color-secondary: #626367;--color-background: #f0f0f0;--color-background-secondary: #f3f6f8;--color-text: #12121a;--color-text-secondary: #111111;--color-text-light: #777;--color-text-dark: #333;--color-border: #ddd;--color-highlight: #05a952;--color-highlight-data-grid: rgba(5,169,82,.10196);--color-mui-selected: #F5F7FB;--color-warning: #eea63c;--color-critical: #f95048;--color-neutral: #fafafa;--color-red: red;--color-gray: #e0e0e0;--color-blue: #0054EE;--color-light-gray-blue: #E6EBEF;--color-very-light-gray: #DBDBDB;--color-white: white;--color-green: green;--color-ant-theme: #00b96b;--color-avatar: #41b06e;--font-size-xxsmall: 8px;--font-size-9: 9px;--font-size-xsmall: 10px;--font-size-small: 12px;--font-size-normal: 13px;--font-size-medium: 14px;--font-size-large: 16px;--font-size-xlarge: 18px;--font-size-xxlarge: 20px;--font-size-xxxlarge: 21px;--font-size-22: 22px;--font-size-kpi-card: 32px;--font-bolded: 600;--font-500: 500;--font-400: 400}._flexRowCenter_1ixx3_43{display:flex!important;flex-direction:row;align-items:center}html[dir=rtl] ._mr10_1ixx3_49{margin-right:10px}html[dir=ltr] ._mr10_1ixx3_49{margin-left:10px}._text18_1ixx3_57{font-size:18px;font-size:var(--font-size-xlarge)}._content_1ixx3_61{position:relative;top:-10px}
|
package/dist/assets/KpiCard.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
:root{--color-primary: #045529;--color-secondary: #626367;--color-background: #f0f0f0;--color-background-secondary: #f3f6f8;--color-text: #12121a;--color-text-secondary: #111111;--color-text-light: #777;--color-text-dark: #333;--color-border: #ddd;--color-highlight: #05a952;--color-highlight-data-grid: rgba(5,169,82,.10196);--color-mui-selected: #F5F7FB;--color-warning: #eea63c;--color-critical: #f95048;--color-neutral: #fafafa;--color-red: red;--color-gray: #e0e0e0;--color-blue: #0054EE;--color-light-gray-blue: #E6EBEF;--color-very-light-gray: #DBDBDB;--color-white: white;--color-green: green;--color-ant-theme: #00b96b;--color-avatar: #41b06e;--font-size-xxsmall: 8px;--font-size-9: 9px;--font-size-xsmall: 10px;--font-size-small: 12px;--font-size-normal: 13px;--font-size-medium: 14px;--font-size-large: 16px;--font-size-xlarge: 18px;--font-size-xxlarge: 20px;--font-size-xxxlarge: 21px;--font-size-22: 22px;--font-size-kpi-card: 32px;--font-bolded: 600;--font-500: 500;--font-400: 400}._kpiCard_19chq_43{height:147px;background-color:#f0f0f0;background-color:var(--color-background);border-radius:8px}._width430_19chq_49{width:430px}@media (max-width: 1500px){._width430_19chq_49{width:200px}}._width384_19chq_58{width:384px}._flexCol_19chq_62{display:flex;flex-direction:column}._flexRow_19chq_67{display:flex;flex-direction:row}._title_19chq_72{font-size:32px;font-size:var(--font-size-kpi-card);font-weight:500;color:#12121a;color:var(--color-text)}@media (max-width: 900px){._title_19chq_72{font-size:12px;font-size:var(--font-size-small)}}@media (max-width: 1100px){._title_19chq_72{font-size:16px;font-size:var(--font-size-large)}}@media (max-width: 1400px){._title_19chq_72{font-size:20px;font-size:var(--font-size-xxlarge)}}@media (max-width: 1600px){._title_19chq_72{font-size:22px;font-size:var(--font-size-22)}}._content_19chq_98{font-size:21px;font-size:var(--font-size-xxxlarge);font-weight:400;color:#626367;color:var(--color-secondary);margin-top:-10px}@media (max-width: 900px){._content_19chq_98{font-size:8px;font-size:var(--font-size-xxsmall)}}@media (max-width: 1100px){._content_19chq_98{font-size:12px;font-size:var(--font-size-small)}}@media (max-width: 1400px){._content_19chq_98{font-size:14px;font-size:var(--font-size-medium)}}
|
package/dist/assets/SideMenu.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ant-menu-title-content{color:#626367}.main-container{background-color:#f0f0f0;border-top-right-radius:16px;border-bottom-right-radius:16px;height:100vh}[dir=rtl] .main-container{border-radius:16px 0 0 16px/16px 0px 0px 16px}.menu{overflow-y:scroll;background-color:#f0f0f0}.menu::-webkit-scrollbar{display:none}.side-menu .ant-menu-item-selected{background-color:#fafafa!important;box-shadow:0 5px 5px gray!important}.side-menu .ant-menu-item-selected span{color:#12121a!important}.side-menu .ant-menu-root{border-right-style:none!important}.side-menu .ant-menu-submenu-title svg{width:25px!important}.mb-10{margin-bottom:10px}.flex-col-center{display:flex;flex-direction:column;align-items:center}.mt-15{margin-top:15px}.space-around-center{display:flex;align-items:center;justify-content:space-around}.flex-row-center{display:flex;flex-direction:row;align-content:center;align-items:center;line-height:1}.ml-5{margin-left:5px}.mb-30{margin-bottom:30px}.avatar{background-color:#41b06e;vertical-align:middle;text-transform:uppercase}.user-container{display:flex;flex-direction:column;margin-left:5px}.username{font-size:12px;color:#626367;margin-left:.5em}.email{font-size:9px;color:#626367}.user-logo-container{cursor:pointer;display:flex;align-items:center;margin:10px;justify-content:space-between;border:1px solid gray;border-radius:10px;padding:5px}.general-information{cursor:pointer;display:flex;align-items:center;margin:10px;justify-content:space-between;border:1px solid gray;border-radius:10px;padding:5px;height:52px}.logo-small-container{display:flex;margin:10px auto auto;flex-direction:column;align-items:center;padding-top:5px;padding-bottom:10px}.pointer{cursor:pointer}
|
|
1
|
+
:root{--color-primary: #045529;--color-secondary: #626367;--color-background: #f0f0f0;--color-background-secondary: #f3f6f8;--color-text: #12121a;--color-text-secondary: #111111;--color-text-light: #777;--color-text-dark: #333;--color-border: #ddd;--color-highlight: #05a952;--color-highlight-data-grid: rgba(5,169,82,.10196);--color-mui-selected: #F5F7FB;--color-warning: #eea63c;--color-critical: #f95048;--color-neutral: #fafafa;--color-red: red;--color-gray: #e0e0e0;--color-blue: #0054EE;--color-light-gray-blue: #E6EBEF;--color-very-light-gray: #DBDBDB;--color-white: white;--color-green: green;--color-ant-theme: #00b96b;--color-avatar: #41b06e;--font-size-xxsmall: 8px;--font-size-9: 9px;--font-size-xsmall: 10px;--font-size-small: 12px;--font-size-normal: 13px;--font-size-medium: 14px;--font-size-large: 16px;--font-size-xlarge: 18px;--font-size-xxlarge: 20px;--font-size-xxxlarge: 21px;--font-size-22: 22px;--font-size-kpi-card: 32px;--font-bolded: 600;--font-500: 500;--font-400: 400}.ant-menu-title-content{color:#626367;color:var(--color-secondary)}.main-container{background-color:#f0f0f0;background-color:var(--color-background);border-top-right-radius:16px;border-bottom-right-radius:16px;height:100vh}[dir=rtl] .main-container{border-radius:16px 0 0 16px/16px 0px 0px 16px}.menu{overflow-y:scroll;background-color:#f0f0f0;background-color:var(--color-background)}.menu::-webkit-scrollbar{display:none}.side-menu .ant-menu-item-selected{background-color:#fafafa!important;background-color:var(--color-neutral)!important;box-shadow:0 5px 5px gray!important}.side-menu .ant-menu-item-selected span{color:#12121a!important;color:var(--color-text)!important}.side-menu .ant-menu-root{border-right-style:none!important}.side-menu .ant-menu-submenu-title svg{width:25px!important}.mb-10{margin-bottom:10px}.flex-col-center{display:flex;flex-direction:column;align-items:center}.mt-15{margin-top:15px}.space-around-center{display:flex;align-items:center;justify-content:space-around}.flex-row-center{display:flex;flex-direction:row;align-content:center;align-items:center;line-height:1}.ml-5{margin-left:5px}.mb-30{margin-bottom:30px}.avatar{background-color:#41b06e;background-color:var(--color-avatar);vertical-align:middle;text-transform:uppercase}.user-container{display:flex;flex-direction:column;margin-left:5px}.username{font-size:12px;font-size:var(--font-size-small);color:#626367;color:var(--color-secondary);margin-left:.5em}.email{font-size:9px;font-size:var(--font-size-9);color:#626367;color:var(--color-secondary)}.user-logo-container{cursor:pointer;display:flex;align-items:center;margin:10px;justify-content:space-between;border:1px solid #e0e0e0;border:1px solid var(--color-gray);border-radius:10px;padding:5px}.general-information{cursor:pointer;display:flex;align-items:center;margin:10px;justify-content:space-between;border:1px solid #e0e0e0;border:1px solid var(--color-gray);border-radius:10px;padding:5px;height:52px}.logo-small-container{display:flex;margin:10px auto auto;flex-direction:column;align-items:center;padding-top:5px;padding-bottom:10px}.pointer{cursor:pointer}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
:root{--color-primary: #045529;--color-secondary: #626367;--color-background: #f0f0f0;--color-background-secondary: #f3f6f8;--color-text: #12121a;--color-text-secondary: #111111;--color-text-light: #777;--color-text-dark: #333;--color-border: #ddd;--color-highlight: #05a952;--color-highlight-data-grid: rgba(5,169,82,.10196);--color-mui-selected: #F5F7FB;--color-warning: #eea63c;--color-critical: #f95048;--color-neutral: #fafafa;--color-red: red;--color-gray: #e0e0e0;--color-blue: #0054EE;--color-light-gray-blue: #E6EBEF;--color-very-light-gray: #DBDBDB;--color-white: white;--color-green: green;--color-ant-theme: #00b96b;--color-avatar: #41b06e;--font-size-xxsmall: 8px;--font-size-9: 9px;--font-size-xsmall: 10px;--font-size-small: 12px;--font-size-normal: 13px;--font-size-medium: 14px;--font-size-large: 16px;--font-size-xlarge: 18px;--font-size-xxlarge: 20px;--font-size-xxxlarge: 21px;--font-size-22: 22px;--font-size-kpi-card: 32px;--font-bolded: 600;--font-500: 500;--font-400: 400}._avatar_1r72q_43{background-color:#41b06e;background-color:var(--color-avatar);vertical-align:middle;text-transform:uppercase}._pointer_1r72q_49{cursor:pointer}._flexRowCenter_1r72q_53{display:flex;flex-direction:row;align-content:center;align-items:center}._userTitle_1r72q_60{font-size:12px;font-size:var(--font-size-small);color:#626367;color:var(--color-secondary);margin-left:10px}[dir=rtl] ._userTitle_1r72q_60{margin-right:10px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--color-primary: #045529;--color-secondary: #626367;--color-background: #f0f0f0;--color-background-secondary: #f3f6f8;--color-text: #12121a;--color-text-secondary: #111111;--color-text-light: #777;--color-text-dark: #333;--color-border: #ddd;--color-highlight: #05a952;--color-highlight-data-grid: rgba(5,169,82,.10196);--color-mui-selected: #F5F7FB;--color-warning: #eea63c;--color-critical: #f95048;--color-neutral: #fafafa;--color-red: red;--color-gray: #e0e0e0;--color-blue: #0054EE;--color-light-gray-blue: #E6EBEF;--color-very-light-gray: #DBDBDB;--color-white: white;--color-green: green;--color-ant-theme: #00b96b;--color-avatar: #41b06e;--font-size-xxsmall: 8px;--font-size-9: 9px;--font-size-xsmall: 10px;--font-size-small: 12px;--font-size-normal: 13px;--font-size-medium: 14px;--font-size-large: 16px;--font-size-xlarge: 18px;--font-size-xxlarge: 20px;--font-size-xxxlarge: 21px;--font-size-22: 22px;--font-size-kpi-card: 32px;--font-bolded: 600;--font-500: 500;--font-400: 400}
|
|
@@ -1,50 +1,52 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { S as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import { S as m } from "../../VModalIcon-D7L4bQLO.js";
|
|
4
|
+
import '../../assets/theme.css';import '../../assets/ConfirmationModal.css';/* empty css */
|
|
5
|
+
import { M as d } from "../../index-DsP9yT3s.js";
|
|
6
|
+
const x = (t) => /* @__PURE__ */ n.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ n.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 = (t) => /* @__PURE__ */ n.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ n.createElement("path", { d: "M6 18L18 6M6 6L18 18", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), g = "_flexRowCenter_1mxo7_43", w = "_mr10_1mxo7_49", f = "_text18_1mxo7_61", C = "_content_1mxo7_65", o = {
|
|
7
|
+
flexRowCenter: g,
|
|
8
|
+
mr10: w,
|
|
9
|
+
text18: f,
|
|
10
|
+
content: C
|
|
10
11
|
};
|
|
11
|
-
function
|
|
12
|
+
function L({ modalOpen: t, contentText: l, setModalOpen: s, commandOnOk: c, title: a, approve: i, cancel: h }) {
|
|
12
13
|
return /* @__PURE__ */ e(
|
|
13
|
-
|
|
14
|
+
d,
|
|
14
15
|
{
|
|
15
|
-
title: /* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */ e(
|
|
17
|
-
/* @__PURE__ */ e("p", { className:
|
|
16
|
+
title: /* @__PURE__ */ r("span", { className: o.flexRowCenter, children: [
|
|
17
|
+
/* @__PURE__ */ e(x, { className: o.mr10 }),
|
|
18
|
+
/* @__PURE__ */ e("p", { className: o.text18, children: a })
|
|
18
19
|
] }),
|
|
19
20
|
centered: !0,
|
|
20
|
-
open:
|
|
21
|
+
open: t,
|
|
21
22
|
onOk: () => {
|
|
22
|
-
|
|
23
|
+
c(), s(!1);
|
|
23
24
|
},
|
|
24
|
-
onCancel: () =>
|
|
25
|
+
onCancel: () => s(!1),
|
|
25
26
|
closeIcon: !1,
|
|
26
|
-
okText: /* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */ e(
|
|
27
|
+
okText: /* @__PURE__ */ r("span", { className: o.flexRowCenter, children: [
|
|
28
|
+
/* @__PURE__ */ e(m, {}),
|
|
28
29
|
/* @__PURE__ */ e("span", { children: i })
|
|
29
30
|
] }),
|
|
30
31
|
okButtonProps: {
|
|
31
32
|
style: {
|
|
32
|
-
backgroundColor: "
|
|
33
|
+
backgroundColor: "var(--color-highlight)"
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
cancelButtonProps: {
|
|
36
37
|
style: {
|
|
37
|
-
borderColor: "
|
|
38
|
+
borderColor: "var(--color-highlight)",
|
|
39
|
+
color: "var(--color-highlight)"
|
|
38
40
|
}
|
|
39
41
|
},
|
|
40
|
-
cancelText: /* @__PURE__ */
|
|
41
|
-
/* @__PURE__ */ e(
|
|
42
|
-
/* @__PURE__ */ e("span", { children:
|
|
42
|
+
cancelText: /* @__PURE__ */ r("span", { className: o.flexRowCenter, children: [
|
|
43
|
+
/* @__PURE__ */ e(p, {}),
|
|
44
|
+
/* @__PURE__ */ e("span", { children: h })
|
|
43
45
|
] }),
|
|
44
|
-
children: /* @__PURE__ */ e("p", { className:
|
|
46
|
+
children: /* @__PURE__ */ e("p", { className: o.content, children: l })
|
|
45
47
|
}
|
|
46
48
|
);
|
|
47
49
|
}
|
|
48
50
|
export {
|
|
49
|
-
|
|
51
|
+
L as ConfirmationModal
|
|
50
52
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/theme.css';/* empty css */
|
|
3
|
+
import { B as i } from "../../Button-BT8r3F_d.js";
|
|
4
|
+
const p = ({ content: r, height: o = "40px", width: t = "120px", direction: n = "left", ...a }) => /* @__PURE__ */ e(
|
|
5
|
+
i,
|
|
5
6
|
{
|
|
6
7
|
variant: "outlined",
|
|
7
8
|
disableElevation: !0,
|
|
8
9
|
color: "primary",
|
|
9
10
|
sx: {
|
|
10
11
|
float: n,
|
|
11
|
-
height:
|
|
12
|
+
height: o,
|
|
12
13
|
borderRadius: 2,
|
|
13
|
-
border: "1px solid
|
|
14
|
-
color: "
|
|
14
|
+
border: "1px solid var(--color-gray)",
|
|
15
|
+
color: "var(--color-secondary)",
|
|
15
16
|
fontWeight: "400",
|
|
16
17
|
width: t,
|
|
17
18
|
textTransform: "none",
|
|
@@ -23,13 +24,13 @@ const d = ({ content: o, height: r = "40px", width: t = "120px", direction: n =
|
|
|
23
24
|
marginInlineEnd: "10px"
|
|
24
25
|
},
|
|
25
26
|
"&:hover": {
|
|
26
|
-
border: "1px solid
|
|
27
|
+
border: "1px solid var(--color-gray)"
|
|
27
28
|
}
|
|
28
29
|
},
|
|
29
|
-
...
|
|
30
|
-
children:
|
|
30
|
+
...a,
|
|
31
|
+
children: r
|
|
31
32
|
}
|
|
32
33
|
);
|
|
33
34
|
export {
|
|
34
|
-
|
|
35
|
+
p as CustomButton
|
|
35
36
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
+
import '../../assets/SideMenu.css';import '../../assets/theme.css';/* empty css */
|
|
3
4
|
import { Pagination as a } from "../CustomPagination/CustomPagination.js";
|
|
4
5
|
import { TotalDataGrid as s } from "../TotalDataGrid/TotalDataGrid.js";
|
|
5
6
|
import "@mui/x-data-grid";
|
|
6
7
|
import "i18next";
|
|
7
|
-
|
|
8
|
+
/* empty css */
|
|
8
9
|
import { columnsDefinitions as e, total as i } from "../../mock.js";
|
|
9
10
|
const m = ({ isRtl: o }) => /* @__PURE__ */ r("div", { children: [
|
|
10
11
|
/* @__PURE__ */ t(
|
|
@@ -17,7 +18,7 @@ const m = ({ isRtl: o }) => /* @__PURE__ */ r("div", { children: [
|
|
|
17
18
|
),
|
|
18
19
|
/* @__PURE__ */ t(a, { isRtl: o, page: 2, pageCount: 12, onPageChange: () => {
|
|
19
20
|
} })
|
|
20
|
-
] }),
|
|
21
|
+
] }), h = {
|
|
21
22
|
title: "Custom Footer",
|
|
22
23
|
component: m,
|
|
23
24
|
tags: ["autodocs"],
|
|
@@ -27,13 +28,13 @@ const m = ({ isRtl: o }) => /* @__PURE__ */ r("div", { children: [
|
|
|
27
28
|
args: {
|
|
28
29
|
isRtl: !1
|
|
29
30
|
}
|
|
30
|
-
},
|
|
31
|
+
}, x = {}, D = {
|
|
31
32
|
args: {
|
|
32
33
|
isRtl: !0
|
|
33
34
|
}
|
|
34
35
|
};
|
|
35
36
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
x as Default,
|
|
38
|
+
D as RTL,
|
|
39
|
+
h as default
|
|
39
40
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as c, jsxs as ot } from "react/jsx-runtime";
|
|
2
2
|
import * as g from "react";
|
|
3
|
+
import '../../assets/theme.css';/* empty css */
|
|
3
4
|
import { GridPagination as et } from "@mui/x-data-grid";
|
|
4
5
|
import { _ as A, a as l } from "../../objectWithoutPropertiesLoose-CIT-1_kH.js";
|
|
5
6
|
import { g as J, a as K, u as Q, c as N, b as X, s as E, d as j, h as z, P as o } from "../../generateUtilityClasses-Bhjgm_6-.js";
|
|
@@ -30,13 +31,13 @@ function ct(t = {}) {
|
|
|
30
31
|
default: v,
|
|
31
32
|
name: e,
|
|
32
33
|
state: "page"
|
|
33
|
-
}), $ = (s,
|
|
34
|
-
m || w(
|
|
35
|
-
}, y = (s,
|
|
36
|
-
const tt =
|
|
34
|
+
}), $ = (s, C) => {
|
|
35
|
+
m || w(C), b && b(s, C);
|
|
36
|
+
}, y = (s, C) => {
|
|
37
|
+
const tt = C - s + 1;
|
|
37
38
|
return Array.from({
|
|
38
39
|
length: tt
|
|
39
|
-
}, (
|
|
40
|
+
}, (Ct, at) => s + at);
|
|
40
41
|
}, k = y(1, Math.min(a, n)), x = y(Math.max(n - a + 1, a + 1), n), I = Math.max(
|
|
41
42
|
Math.min(
|
|
42
43
|
// Natural start
|
|
@@ -83,9 +84,9 @@ function ct(t = {}) {
|
|
|
83
84
|
default:
|
|
84
85
|
return null;
|
|
85
86
|
}
|
|
86
|
-
},
|
|
87
|
-
onClick: (
|
|
88
|
-
$(
|
|
87
|
+
}, h = M.map((s) => typeof s == "number" ? {
|
|
88
|
+
onClick: (C) => {
|
|
89
|
+
$(C, s);
|
|
89
90
|
},
|
|
90
91
|
type: "page",
|
|
91
92
|
page: s,
|
|
@@ -93,8 +94,8 @@ function ct(t = {}) {
|
|
|
93
94
|
disabled: p,
|
|
94
95
|
"aria-current": s === i ? "true" : void 0
|
|
95
96
|
} : {
|
|
96
|
-
onClick: (
|
|
97
|
-
$(
|
|
97
|
+
onClick: (C) => {
|
|
98
|
+
$(C, T(s));
|
|
98
99
|
},
|
|
99
100
|
type: s,
|
|
100
101
|
page: T(s),
|
|
@@ -102,7 +103,7 @@ function ct(t = {}) {
|
|
|
102
103
|
disabled: p || s.indexOf("ellipsis") === -1 && (s === "next" || s === "last" ? i >= n : i <= 1)
|
|
103
104
|
});
|
|
104
105
|
return l({
|
|
105
|
-
items:
|
|
106
|
+
items: h
|
|
106
107
|
}, d);
|
|
107
108
|
}
|
|
108
109
|
function dt(t) {
|
|
@@ -492,7 +493,7 @@ const Z = /* @__PURE__ */ g.forwardRef(function(a, e) {
|
|
|
492
493
|
getItemAriaLabel: O = Pt,
|
|
493
494
|
hideNextButton: B = !1,
|
|
494
495
|
hidePrevButton: P = !1,
|
|
495
|
-
renderItem: d = (
|
|
496
|
+
renderItem: d = (h) => /* @__PURE__ */ c(_, l({}, h)),
|
|
496
497
|
shape: i = "circular",
|
|
497
498
|
showFirstButton: w = !1,
|
|
498
499
|
showLastButton: $ = !1,
|
|
@@ -529,10 +530,10 @@ const Z = /* @__PURE__ */ g.forwardRef(function(a, e) {
|
|
|
529
530
|
children: /* @__PURE__ */ c(mt, {
|
|
530
531
|
className: T.ul,
|
|
531
532
|
ownerState: M,
|
|
532
|
-
children: L.map((
|
|
533
|
-
children: d(l({},
|
|
533
|
+
children: L.map((h, s) => /* @__PURE__ */ c("li", {
|
|
534
|
+
children: d(l({}, h, {
|
|
534
535
|
color: f,
|
|
535
|
-
"aria-label": O(
|
|
536
|
+
"aria-label": O(h.type, h.page, h.selected),
|
|
536
537
|
shape: i,
|
|
537
538
|
size: k,
|
|
538
539
|
variant: x
|
|
@@ -655,7 +656,7 @@ process.env.NODE_ENV !== "production" && (Z.propTypes = {
|
|
|
655
656
|
*/
|
|
656
657
|
variant: o.oneOfType([o.oneOf(["outlined", "text"]), o.string])
|
|
657
658
|
});
|
|
658
|
-
function
|
|
659
|
+
function ht({
|
|
659
660
|
isRtl: t,
|
|
660
661
|
pageCount: a,
|
|
661
662
|
page: e,
|
|
@@ -685,12 +686,12 @@ function Ct({
|
|
|
685
686
|
sx: {
|
|
686
687
|
"& .MuiPaginationItem-root": {
|
|
687
688
|
fontWeight: "300",
|
|
688
|
-
fontSize: "
|
|
689
|
+
fontSize: "var(--font-size-large)",
|
|
689
690
|
"&.Mui-selected": {
|
|
690
|
-
color: "
|
|
691
|
+
color: "var(--color-text)",
|
|
691
692
|
fontWeight: "400",
|
|
692
|
-
fontSize: "
|
|
693
|
-
background: "
|
|
693
|
+
fontSize: "var(--font-size-large)",
|
|
694
|
+
background: "var(--color-highlight)",
|
|
694
695
|
borderRadius: "8px"
|
|
695
696
|
}
|
|
696
697
|
}
|
|
@@ -698,10 +699,10 @@ function Ct({
|
|
|
698
699
|
}
|
|
699
700
|
);
|
|
700
701
|
}
|
|
701
|
-
function
|
|
702
|
-
return /* @__PURE__ */ c(et, { ActionsComponent: (e) => /* @__PURE__ */ c(
|
|
702
|
+
function wt({ isRtl: t, pageCount: a }) {
|
|
703
|
+
return /* @__PURE__ */ c(et, { ActionsComponent: (e) => /* @__PURE__ */ c(ht, { isRtl: t, pageCount: a, ...e }) });
|
|
703
704
|
}
|
|
704
705
|
export {
|
|
705
|
-
|
|
706
|
-
|
|
706
|
+
wt as CustomPagination,
|
|
707
|
+
ht as Pagination
|
|
707
708
|
};
|
|
@@ -1,40 +1,42 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import '../../assets/theme.css';import '../../assets/ErrorModal.css';/* empty css */
|
|
3
|
+
import { useState as x } from "react";
|
|
4
|
+
import { M as h } from "../../index-DsP9yT3s.js";
|
|
5
|
+
const p = "_flexRowCenter_1ixx3_43", m = "_mr10_1ixx3_49", d = "_text18_1ixx3_57", _ = "_content_1ixx3_61", t = {
|
|
6
|
+
flexRowCenter: p,
|
|
7
|
+
mr10: m,
|
|
8
|
+
text18: d,
|
|
8
9
|
content: _
|
|
9
|
-
},
|
|
10
|
-
const [
|
|
10
|
+
}, w = ({ error: o, resetErrorBoundary: n, title: r, tryAgain: l, cancel: c }) => {
|
|
11
|
+
const [s, a] = x(!0), i = () => {
|
|
11
12
|
a(!1);
|
|
12
13
|
};
|
|
13
14
|
return /* @__PURE__ */ e(
|
|
14
|
-
|
|
15
|
+
h,
|
|
15
16
|
{
|
|
16
17
|
title: /* @__PURE__ */ e("span", { className: t.flexRowCenter, children: /* @__PURE__ */ e("p", { className: t.text18, children: r }) }),
|
|
17
18
|
centered: !0,
|
|
18
|
-
open:
|
|
19
|
-
onOk:
|
|
20
|
-
onCancel:
|
|
19
|
+
open: s,
|
|
20
|
+
onOk: n,
|
|
21
|
+
onCancel: i,
|
|
21
22
|
closeIcon: !0,
|
|
22
|
-
okText: /* @__PURE__ */ e("span", { className: t.flexRowCenter, children: /* @__PURE__ */ e("span", { children:
|
|
23
|
+
okText: /* @__PURE__ */ e("span", { className: t.flexRowCenter, children: /* @__PURE__ */ e("span", { children: l }) }),
|
|
23
24
|
okButtonProps: {
|
|
24
25
|
style: {
|
|
25
|
-
backgroundColor: "
|
|
26
|
+
backgroundColor: "var(--color-highlight)"
|
|
26
27
|
}
|
|
27
28
|
},
|
|
28
29
|
cancelButtonProps: {
|
|
29
30
|
style: {
|
|
30
|
-
borderColor: "
|
|
31
|
+
borderColor: "var(--color-highlight)",
|
|
32
|
+
color: "var(--color-highlight)"
|
|
31
33
|
}
|
|
32
34
|
},
|
|
33
35
|
cancelText: /* @__PURE__ */ e("span", { className: t.flexRowCenter, children: /* @__PURE__ */ e("span", { children: c }) }),
|
|
34
|
-
children: /* @__PURE__ */ e("p", { className: t.content, children:
|
|
36
|
+
children: /* @__PURE__ */ e("p", { className: t.content, children: o.toString() })
|
|
35
37
|
}
|
|
36
38
|
);
|
|
37
39
|
};
|
|
38
40
|
export {
|
|
39
|
-
|
|
41
|
+
w as ErrorModal
|
|
40
42
|
};
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as r from "react";
|
|
3
3
|
import { S as i } from "../../VModalIcon-D7L4bQLO.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
import '../../assets/theme.css';import '../../assets/ErrorModal.css';/* empty css */
|
|
5
|
+
import { M as x } from "../../index-DsP9yT3s.js";
|
|
6
|
+
const m = (o) => /* @__PURE__ */ r.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...o }, /* @__PURE__ */ r.createElement("path", { d: "M13 16H12V12H11M12 8H12.01M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), d = "_flexRowCenter_1ixx3_43", p = "_mr10_1ixx3_49", f = "_text18_1ixx3_57", h = "_content_1ixx3_61", t = {
|
|
7
|
+
flexRowCenter: d,
|
|
8
|
+
mr10: p,
|
|
9
|
+
text18: f,
|
|
10
|
+
content: h
|
|
10
11
|
};
|
|
11
|
-
function k({ modalOpen: o, contentText:
|
|
12
|
+
function k({ modalOpen: o, contentText: s, setModalOpen: l, title: c, okText: a }) {
|
|
12
13
|
return /* @__PURE__ */ e(
|
|
13
|
-
|
|
14
|
+
x,
|
|
14
15
|
{
|
|
15
16
|
title: /* @__PURE__ */ n("span", { className: t.flexRowCenter, children: [
|
|
16
|
-
/* @__PURE__ */ e(
|
|
17
|
-
/* @__PURE__ */ e("p", { className: t.text18, children:
|
|
17
|
+
/* @__PURE__ */ e(m, { className: t.mr10 }),
|
|
18
|
+
/* @__PURE__ */ e("p", { className: t.text18, children: c })
|
|
18
19
|
] }),
|
|
19
20
|
centered: !0,
|
|
20
21
|
open: o,
|
|
21
|
-
onOk: () =>
|
|
22
|
+
onOk: () => l(!1),
|
|
22
23
|
closeIcon: !1,
|
|
23
24
|
okText: /* @__PURE__ */ n("span", { className: t.flexRowCenter, children: [
|
|
24
25
|
/* @__PURE__ */ e(i, {}),
|
|
@@ -26,7 +27,7 @@ function k({ modalOpen: o, contentText: r, setModalOpen: c, title: l, okText: a
|
|
|
26
27
|
] }),
|
|
27
28
|
okButtonProps: {
|
|
28
29
|
style: {
|
|
29
|
-
backgroundColor: "
|
|
30
|
+
backgroundColor: "var(--color-highlight)"
|
|
30
31
|
}
|
|
31
32
|
},
|
|
32
33
|
cancelButtonProps: {
|
|
@@ -35,7 +36,7 @@ function k({ modalOpen: o, contentText: r, setModalOpen: c, title: l, okText: a
|
|
|
35
36
|
}
|
|
36
37
|
},
|
|
37
38
|
zIndex: 2e3,
|
|
38
|
-
children: /* @__PURE__ */ e("p", { className: t.content, children:
|
|
39
|
+
children: /* @__PURE__ */ e("p", { className: t.content, children: s })
|
|
39
40
|
}
|
|
40
41
|
);
|
|
41
42
|
}
|
|
@@ -278,7 +278,7 @@ var La = /* @__PURE__ */ l.forwardRef(function(e, t) {
|
|
|
278
278
|
}
|
|
279
279
|
}, U || g.removeIcon || "×"));
|
|
280
280
|
}));
|
|
281
|
-
function
|
|
281
|
+
function F(E) {
|
|
282
282
|
for (var L = r.filter(function(k) {
|
|
283
283
|
return !k.disabled;
|
|
284
284
|
}), j = L.findIndex(function(k) {
|
|
@@ -300,10 +300,10 @@ var La = /* @__PURE__ */ l.forwardRef(function(e, t) {
|
|
|
300
300
|
}
|
|
301
301
|
switch (L) {
|
|
302
302
|
case ve.UP:
|
|
303
|
-
|
|
303
|
+
F(-1), E.preventDefault();
|
|
304
304
|
break;
|
|
305
305
|
case ve.DOWN:
|
|
306
|
-
|
|
306
|
+
F(1), E.preventDefault();
|
|
307
307
|
break;
|
|
308
308
|
case ve.ESC:
|
|
309
309
|
G(!1);
|
|
@@ -428,7 +428,7 @@ var Ba = function(t) {
|
|
|
428
428
|
!_ && w && w({
|
|
429
429
|
direction: H > C ? "top" : "bottom"
|
|
430
430
|
});
|
|
431
|
-
}), v = M(se, 2),
|
|
431
|
+
}), v = M(se, 2), F = v[0], ie = v[1], K = J([0, 0]), Q = M(K, 2), oe = Q[0], E = Q[1], L = J([0, 0]), j = M(L, 2), U = j[0], Y = j[1], te = J([0, 0]), k = M(te, 2), me = k[0], de = k[1], ne = J([0, 0]), ge = M(ne, 2), O = ge[0], le = ge[1], ye = Oa(/* @__PURE__ */ new Map()), Pe = M(ye, 2), X = Pe[0], A = Pe[1], ce = Pa(N, X, U[0]), Se = Le(oe, _), we = Le(U, _), Ge = Le(me, _), at = Le(O, _), nt = Math.floor(Se) < Math.floor(we + Ge), ue = nt ? Se - at : Se - Ge, Kt = "".concat(f, "-nav-operations-hidden"), pe = 0, _e = 0;
|
|
432
432
|
_ && o ? (pe = 0, _e = Math.max(0, we - ue)) : (pe = Math.min(0, ue - we), _e = 0);
|
|
433
433
|
function We(H) {
|
|
434
434
|
return H < pe ? pe : H > _e ? _e : H;
|
|
@@ -441,24 +441,24 @@ var Ba = function(t) {
|
|
|
441
441
|
Ve.current && clearTimeout(Ve.current);
|
|
442
442
|
}
|
|
443
443
|
Ra(D, function(H, C) {
|
|
444
|
-
function
|
|
444
|
+
function q(ae, xe) {
|
|
445
445
|
ae(function(he) {
|
|
446
446
|
var Ie = We(he + xe);
|
|
447
447
|
return Ie;
|
|
448
448
|
});
|
|
449
449
|
}
|
|
450
|
-
return nt ? (_ ?
|
|
450
|
+
return nt ? (_ ? q(V, H) : q(ie, C), Xe(), Ke(), !0) : !1;
|
|
451
451
|
}), fe(function() {
|
|
452
452
|
return Xe(), Ne && (Ve.current = setTimeout(function() {
|
|
453
453
|
it(0);
|
|
454
454
|
}, 100)), Xe;
|
|
455
455
|
}, [Ne]);
|
|
456
|
-
var
|
|
456
|
+
var qt = Ia(
|
|
457
457
|
ce,
|
|
458
458
|
// Container
|
|
459
459
|
ue,
|
|
460
460
|
// Transform
|
|
461
|
-
_ ? y :
|
|
461
|
+
_ ? y : F,
|
|
462
462
|
// Tabs
|
|
463
463
|
we,
|
|
464
464
|
// Add
|
|
@@ -468,7 +468,7 @@ var Ba = function(t) {
|
|
|
468
468
|
re(re({}, e), {}, {
|
|
469
469
|
tabs: N
|
|
470
470
|
})
|
|
471
|
-
), ot = M(
|
|
471
|
+
), ot = M(qt, 2), Ft = ot[0], Ut = ot[1], lt = da(function() {
|
|
472
472
|
var H = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : c, C = ce.get(H) || {
|
|
473
473
|
width: 0,
|
|
474
474
|
height: 0,
|
|
@@ -477,49 +477,49 @@ var Ba = function(t) {
|
|
|
477
477
|
top: 0
|
|
478
478
|
};
|
|
479
479
|
if (_) {
|
|
480
|
-
var
|
|
481
|
-
o ? C.right < y ?
|
|
480
|
+
var q = y;
|
|
481
|
+
o ? C.right < y ? q = C.right : C.right + C.width > y + ue && (q = C.right + C.width - ue) : C.left < -y ? q = -C.left : C.left + C.width > -y + ue && (q = -(C.left + C.width - ue)), ie(0), V(We(q));
|
|
482
482
|
} else {
|
|
483
|
-
var ae =
|
|
484
|
-
C.top < -
|
|
483
|
+
var ae = F;
|
|
484
|
+
C.top < -F ? ae = -C.top : C.top + C.height > -F + ue && (ae = -(C.top + C.height - ue)), V(0), ie(We(ae));
|
|
485
485
|
}
|
|
486
486
|
}), Re = {};
|
|
487
487
|
g === "top" || g === "bottom" ? Re[o ? "marginRight" : "marginLeft"] = h : Re.marginTop = h;
|
|
488
488
|
var ct = N.map(function(H, C) {
|
|
489
|
-
var
|
|
489
|
+
var q = H.key;
|
|
490
490
|
return /* @__PURE__ */ l.createElement(Ba, {
|
|
491
491
|
id: r,
|
|
492
492
|
prefixCls: f,
|
|
493
|
-
key:
|
|
493
|
+
key: q,
|
|
494
494
|
tab: H,
|
|
495
495
|
style: C === 0 ? void 0 : Re,
|
|
496
496
|
closable: H.closable,
|
|
497
497
|
editable: u,
|
|
498
|
-
active:
|
|
498
|
+
active: q === c,
|
|
499
499
|
renderWrapper: T,
|
|
500
500
|
removeAriaLabel: b == null ? void 0 : b.removeAriaLabel,
|
|
501
501
|
onClick: function(xe) {
|
|
502
|
-
I(
|
|
502
|
+
I(q, xe);
|
|
503
503
|
},
|
|
504
504
|
onFocus: function() {
|
|
505
|
-
lt(
|
|
505
|
+
lt(q), Ke(), D.current && (o || (D.current.scrollLeft = 0), D.current.scrollTop = 0);
|
|
506
506
|
}
|
|
507
507
|
});
|
|
508
508
|
}), st = function() {
|
|
509
509
|
return A(function() {
|
|
510
|
-
var C,
|
|
510
|
+
var C, q = /* @__PURE__ */ new Map(), ae = (C = S.current) === null || C === void 0 ? void 0 : C.getBoundingClientRect();
|
|
511
511
|
return N.forEach(function(xe) {
|
|
512
512
|
var he, Ie = xe.key, mt = (he = S.current) === null || he === void 0 ? void 0 : he.querySelector('[data-node-key="'.concat(Dt(Ie), '"]'));
|
|
513
513
|
if (mt) {
|
|
514
514
|
var kt = Da(mt, ae), ze = M(kt, 4), ea = ze[0], ta = ze[1], aa = ze[2], na = ze[3];
|
|
515
|
-
|
|
515
|
+
q.set(Ie, {
|
|
516
516
|
width: ea,
|
|
517
517
|
height: ta,
|
|
518
518
|
left: aa,
|
|
519
519
|
top: na
|
|
520
520
|
});
|
|
521
521
|
}
|
|
522
|
-
}),
|
|
522
|
+
}), q;
|
|
523
523
|
});
|
|
524
524
|
};
|
|
525
525
|
fe(function() {
|
|
@@ -528,15 +528,15 @@ var Ba = function(t) {
|
|
|
528
528
|
return H.key;
|
|
529
529
|
}).join("_")]);
|
|
530
530
|
var Oe = Bt(function() {
|
|
531
|
-
var H = Ce(z), C = Ce(G),
|
|
532
|
-
E([H[0] - C[0] -
|
|
531
|
+
var H = Ce(z), C = Ce(G), q = Ce(W);
|
|
532
|
+
E([H[0] - C[0] - q[0], H[1] - C[1] - q[1]]);
|
|
533
533
|
var ae = Ce(R);
|
|
534
534
|
de(ae);
|
|
535
535
|
var xe = Ce(x);
|
|
536
536
|
le(xe);
|
|
537
537
|
var he = Ce(S);
|
|
538
538
|
Y([he[0] - ae[0], he[1] - ae[1]]), st();
|
|
539
|
-
}), Yt = N.slice(0,
|
|
539
|
+
}), Yt = N.slice(0, Ft), Qt = N.slice(Ut + 1), dt = [].concat(ht(Yt), ht(Qt)), ut = ce.get(c), Zt = Ta({
|
|
540
540
|
activeTabOffset: ut,
|
|
541
541
|
horizontal: _,
|
|
542
542
|
indicator: P,
|
|
@@ -547,8 +547,8 @@ var Ba = function(t) {
|
|
|
547
547
|
}, [c, pe, _e, Et(ut), Et(ce), _]), fe(function() {
|
|
548
548
|
Oe();
|
|
549
549
|
}, [o]);
|
|
550
|
-
var vt = !!dt.length, Ee = "".concat(f, "-nav-wrap"),
|
|
551
|
-
return _ ? o ? (
|
|
550
|
+
var vt = !!dt.length, Ee = "".concat(f, "-nav-wrap"), qe, Fe, ft, bt;
|
|
551
|
+
return _ ? o ? (Fe = y > 0, qe = y !== _e) : (qe = y < 0, Fe = y !== pe) : (ft = F < 0, bt = F !== pe), /* @__PURE__ */ l.createElement(Ue, {
|
|
552
552
|
onResize: Oe
|
|
553
553
|
}, /* @__PURE__ */ l.createElement("div", {
|
|
554
554
|
ref: ua(t, z),
|
|
@@ -566,7 +566,7 @@ var Ba = function(t) {
|
|
|
566
566
|
}), /* @__PURE__ */ l.createElement(Ue, {
|
|
567
567
|
onResize: Oe
|
|
568
568
|
}, /* @__PURE__ */ l.createElement("div", {
|
|
569
|
-
className: B(Ee, ee(ee(ee(ee({}, "".concat(Ee, "-ping-left"),
|
|
569
|
+
className: B(Ee, ee(ee(ee(ee({}, "".concat(Ee, "-ping-left"), qe), "".concat(Ee, "-ping-right"), Fe), "".concat(Ee, "-ping-top"), ft), "".concat(Ee, "-ping-bottom"), bt)),
|
|
570
570
|
ref: D
|
|
571
571
|
}, /* @__PURE__ */ l.createElement(Ue, {
|
|
572
572
|
onResize: Oe
|
|
@@ -574,7 +574,7 @@ var Ba = function(t) {
|
|
|
574
574
|
ref: S,
|
|
575
575
|
className: "".concat(f, "-nav-list"),
|
|
576
576
|
style: {
|
|
577
|
-
transform: "translate(".concat(y, "px, ").concat(
|
|
577
|
+
transform: "translate(".concat(y, "px, ").concat(F, "px)"),
|
|
578
578
|
transition: Ne ? "none" : void 0
|
|
579
579
|
}
|
|
580
580
|
}, ct, /* @__PURE__ */ l.createElement(At, {
|
|
@@ -683,9 +683,9 @@ var Va = ["id", "prefixCls", "className", "items", "direction", "activeKey", "de
|
|
|
683
683
|
return (c || []).filter(function(O) {
|
|
684
684
|
return O && Qe(O) === "object" && "key" in O;
|
|
685
685
|
});
|
|
686
|
-
}, [c]), $ = o === "rtl", y = Wa(g), V = J(!1), se = M(V, 2), v = se[0],
|
|
686
|
+
}, [c]), $ = o === "rtl", y = Wa(g), V = J(!1), se = M(V, 2), v = se[0], F = se[1];
|
|
687
687
|
fe(function() {
|
|
688
|
-
|
|
688
|
+
F(xa());
|
|
689
689
|
}, []);
|
|
690
690
|
var ie = $t(function() {
|
|
691
691
|
var O;
|
|
@@ -782,14 +782,14 @@ function Xa(e) {
|
|
|
782
782
|
motionName: ba(e, "switch")
|
|
783
783
|
})), n;
|
|
784
784
|
}
|
|
785
|
-
var
|
|
785
|
+
var qa = function(e, t) {
|
|
786
786
|
var n = {};
|
|
787
787
|
for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
|
|
788
788
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, a = Object.getOwnPropertySymbols(e); r < a.length; r++)
|
|
789
789
|
t.indexOf(a[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[r]) && (n[a[r]] = e[a[r]]);
|
|
790
790
|
return n;
|
|
791
791
|
};
|
|
792
|
-
function
|
|
792
|
+
function Fa(e) {
|
|
793
793
|
return e.filter((t) => t);
|
|
794
794
|
}
|
|
795
795
|
function Ua(e, t) {
|
|
@@ -802,7 +802,7 @@ function Ua(e, t) {
|
|
|
802
802
|
props: i
|
|
803
803
|
} = a, c = i || {}, {
|
|
804
804
|
tab: o
|
|
805
|
-
} = c, s =
|
|
805
|
+
} = c, s = qa(c, ["tab"]);
|
|
806
806
|
return Object.assign(Object.assign({
|
|
807
807
|
key: String(r)
|
|
808
808
|
}, s), {
|
|
@@ -811,7 +811,7 @@ function Ua(e, t) {
|
|
|
811
811
|
}
|
|
812
812
|
return null;
|
|
813
813
|
});
|
|
814
|
-
return
|
|
814
|
+
return Fa(n);
|
|
815
815
|
}
|
|
816
816
|
const Ya = (e) => {
|
|
817
817
|
const {
|
|
@@ -1699,9 +1699,9 @@ const tt = (e) => {
|
|
|
1699
1699
|
} = y, {
|
|
1700
1700
|
direction: se,
|
|
1701
1701
|
tabs: v,
|
|
1702
|
-
getPrefixCls:
|
|
1702
|
+
getPrefixCls: F,
|
|
1703
1703
|
getPopupContainer: ie
|
|
1704
|
-
} = l.useContext(De), K =
|
|
1704
|
+
} = l.useContext(De), K = F("tabs", V), Q = ga(K), [oe, E, L] = rn(K, Q);
|
|
1705
1705
|
let j;
|
|
1706
1706
|
h === "editable-card" && (j = {
|
|
1707
1707
|
onEdit: (ne, ge) => {
|
|
@@ -1715,7 +1715,7 @@ const tt = (e) => {
|
|
|
1715
1715
|
addIcon: (N ?? (v == null ? void 0 : v.addIcon)) || /* @__PURE__ */ l.createElement(Mt, null),
|
|
1716
1716
|
showAdd: p !== !0
|
|
1717
1717
|
});
|
|
1718
|
-
const U =
|
|
1718
|
+
const U = F();
|
|
1719
1719
|
if (process.env.NODE_ENV !== "production") {
|
|
1720
1720
|
const ne = Ze("Tabs");
|
|
1721
1721
|
process.env.NODE_ENV !== "production" && ne(!("onPrevClick" in e) && !("onNextClick" in e), "breaking", "`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."), process.env.NODE_ENV !== "production" && ne(!(m || v != null && v.indicatorSize), "deprecated", "`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.");
|
|
@@ -2168,7 +2168,7 @@ const hn = (e) => {
|
|
|
2168
2168
|
return l.Children.forEach(p, (A) => {
|
|
2169
2169
|
(A == null ? void 0 : A.type) === Vt && (X = !0);
|
|
2170
2170
|
}), X;
|
|
2171
|
-
}, [p]), v = R("card", n), [
|
|
2171
|
+
}, [p]), v = R("card", n), [F, ie, K] = pn(v), Q = /* @__PURE__ */ l.createElement($a, {
|
|
2172
2172
|
loading: !0,
|
|
2173
2173
|
active: !0,
|
|
2174
2174
|
paragraph: {
|
|
@@ -2229,7 +2229,7 @@ const hn = (e) => {
|
|
|
2229
2229
|
[`${v}-type-${T}`]: !!T,
|
|
2230
2230
|
[`${v}-rtl`]: _ === "rtl"
|
|
2231
2231
|
}, a, r, ie, K), Pe = Object.assign(Object.assign({}, m == null ? void 0 : m.style), i);
|
|
2232
|
-
return
|
|
2232
|
+
return F(/* @__PURE__ */ l.createElement("div", Object.assign({
|
|
2233
2233
|
ref: t
|
|
2234
2234
|
}, le, {
|
|
2235
2235
|
className: ye,
|
|
@@ -2268,7 +2268,7 @@ const Sn = (e) => {
|
|
|
2268
2268
|
He.Grid = Vt;
|
|
2269
2269
|
He.Meta = Sn;
|
|
2270
2270
|
process.env.NODE_ENV !== "production" && (He.displayName = "Card");
|
|
2271
|
-
const _n = "
|
|
2271
|
+
const _n = "_kpiCard_19chq_43", xn = "_width430_19chq_49", Cn = "_width384_19chq_58", wn = "_flexCol_19chq_62", En = "_flexRow_19chq_67", Tn = "_title_19chq_72", Pn = "_content_19chq_98", $e = {
|
|
2272
2272
|
kpiCard: _n,
|
|
2273
2273
|
width430: xn,
|
|
2274
2274
|
width384: Cn,
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { S as e } from "../../InvencoGVR-qnTq-d6S.js";
|
|
3
3
|
import "react";
|
|
4
|
+
import '../../assets/SideMenu.css';import '../../assets/theme.css';/* empty css */
|
|
4
5
|
import "@mui/x-data-grid";
|
|
5
6
|
import { KpiCard as i } from "../KpiCard/KpiCard.js";
|
|
6
7
|
import { KpiWrapper as n } from "./KpiWrapper.js";
|
|
7
8
|
import "i18next";
|
|
8
|
-
|
|
9
|
-
const
|
|
9
|
+
/* empty css */
|
|
10
|
+
const m = {
|
|
10
11
|
title: "Kpi Wrapper",
|
|
11
12
|
component: n,
|
|
12
13
|
tags: ["autodocs"],
|
|
@@ -19,7 +20,7 @@ const s = {
|
|
|
19
20
|
padding: "10px 10px"
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
|
-
},
|
|
23
|
+
}, K = {}, u = {
|
|
23
24
|
args: {
|
|
24
25
|
children: [
|
|
25
26
|
/* @__PURE__ */ t(i, { title: "Kpi Card", content: "Kpi Card Content", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 }),
|
|
@@ -27,7 +28,7 @@ const s = {
|
|
|
27
28
|
/* @__PURE__ */ t(i, { title: "Kpi Card 3", content: "Kpi Card Content 3", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 })
|
|
28
29
|
]
|
|
29
30
|
}
|
|
30
|
-
},
|
|
31
|
+
}, g = {
|
|
31
32
|
args: {
|
|
32
33
|
children: [
|
|
33
34
|
/* @__PURE__ */ t(i, { title: "Kpi Card", content: "Kpi Card Content", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 }),
|
|
@@ -36,7 +37,7 @@ const s = {
|
|
|
36
37
|
/* @__PURE__ */ t(i, { title: "Kpi Card 4", content: "Kpi Card Content 4", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 })
|
|
37
38
|
]
|
|
38
39
|
}
|
|
39
|
-
},
|
|
40
|
+
}, w = {
|
|
40
41
|
args: {
|
|
41
42
|
children: [
|
|
42
43
|
/* @__PURE__ */ t(i, { title: "Kpi Card", content: "Kpi Card Content", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 }),
|
|
@@ -47,9 +48,9 @@ const s = {
|
|
|
47
48
|
render: (r) => /* @__PURE__ */ t("div", { dir: "rtl", style: { margin: "20px 20px" }, children: /* @__PURE__ */ t(n, { ...r }) })
|
|
48
49
|
};
|
|
49
50
|
export {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
K as Default,
|
|
52
|
+
w as RTL,
|
|
53
|
+
u as With3Kpis,
|
|
54
|
+
g as With4Kpis,
|
|
55
|
+
m as default
|
|
55
56
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import yt, { jsx as T, jsxs as de } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/theme.css';/* empty css */
|
|
2
3
|
import { P as e, G as xt, i as kn, n as Et, j as Tt, o as Ot, k as Ct, c as K, p as Rt, r as St, e as no, d as Y, b as J, g as Q, q as Mn, T as $n, C as Pt, a as te, u as ee, s as L, h as po, t as rn, v as sn, l as Nt, w as Fn, x as Vo, f as Se, y as wt, z as It } from "../../generateUtilityClasses-Bhjgm_6-.js";
|
|
3
4
|
import { _ as z, a as c, r as Uo, b as kt } from "../../objectWithoutPropertiesLoose-CIT-1_kH.js";
|
|
4
5
|
import { c as Ie, u as Fo, i as Dn, a as Mt } from "../../createSvgIcon-B8ya7kb4.js";
|
|
@@ -8021,7 +8022,7 @@ var vt = on.default = void 0, da = ua(ca()), pa = yt;
|
|
|
8021
8022
|
vt = on.default = (0, da.default)(/* @__PURE__ */ (0, pa.jsx)("path", {
|
|
8022
8023
|
d: "M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"
|
|
8023
8024
|
}), "LockOutlined");
|
|
8024
|
-
const
|
|
8025
|
+
const Ca = ({ title: o, disableAll: n, error: t, setError: r, handleSubmit: s, version: i }) => /* @__PURE__ */ de(Qn, { component: "main", maxWidth: "xs", children: [
|
|
8025
8026
|
/* @__PURE__ */ T(et, {}),
|
|
8026
8027
|
/* @__PURE__ */ de(
|
|
8027
8028
|
an,
|
|
@@ -8049,7 +8050,7 @@ const Oa = ({ title: o, disableAll: n, error: t, setError: r, handleSubmit: s, v
|
|
|
8049
8050
|
autoComplete: "username",
|
|
8050
8051
|
autoFocus: !0,
|
|
8051
8052
|
InputLabelProps: {
|
|
8052
|
-
style: { color: "gray" }
|
|
8053
|
+
style: { color: "var(--color-gray)" }
|
|
8053
8054
|
},
|
|
8054
8055
|
disabled: n,
|
|
8055
8056
|
onChange: () => r("")
|
|
@@ -8068,7 +8069,7 @@ const Oa = ({ title: o, disableAll: n, error: t, setError: r, handleSubmit: s, v
|
|
|
8068
8069
|
autoComplete: "current-password",
|
|
8069
8070
|
disabled: n,
|
|
8070
8071
|
InputLabelProps: {
|
|
8071
|
-
style: { color: "gray" }
|
|
8072
|
+
style: { color: "var(--color-gray)" }
|
|
8072
8073
|
},
|
|
8073
8074
|
onChange: () => r("")
|
|
8074
8075
|
}
|
|
@@ -8081,5 +8082,5 @@ const Oa = ({ title: o, disableAll: n, error: t, setError: r, handleSubmit: s, v
|
|
|
8081
8082
|
)
|
|
8082
8083
|
] });
|
|
8083
8084
|
export {
|
|
8084
|
-
|
|
8085
|
+
Ca as Login
|
|
8085
8086
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e, Fragment as M } from "react/jsx-runtime";
|
|
2
2
|
import * as n from "react";
|
|
3
|
-
import { M as R, S as N, U as h } from "../../UserInfoDropdown-
|
|
3
|
+
import { M as R, S as N, U as h } from "../../UserInfoDropdown-DGaplQo6.js";
|
|
4
4
|
import { S as H } from "../../InvencoGVR-qnTq-d6S.js";
|
|
5
|
-
import '../../assets/SideMenu.css';/* empty css
|
|
6
|
-
|
|
5
|
+
import '../../assets/SideMenu.css';import '../../assets/theme.css';/* empty css */
|
|
6
|
+
/* empty css */
|
|
7
|
+
const v = (l) => /* @__PURE__ */ n.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...l }, /* @__PURE__ */ n.createElement("path", { d: "M11 19L4 12L11 5M19 19L12 12L19 5", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), p = (l) => /* @__PURE__ */ n.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...l }, /* @__PURE__ */ n.createElement("path", { d: "M13 5L20 12L13 19M5 5L12 12L5 19", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), V = (l) => /* @__PURE__ */ n.createElement("svg", { width: 28, height: 27, viewBox: "0 0 28 27", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...l }, /* @__PURE__ */ n.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.5 4V9C10.5 9.55228 10.0523 10 9.5 10H4.5L6.5 12H9.5C11.1569 12 12.5 10.6569 12.5 9V6L10.5 4Z", fill: "#12121A" }), /* @__PURE__ */ n.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.5 6V0L8.5 2V7.75C8.5 7.88807 8.38807 8 8.25 8H2.5L0.5 6H6.5Z", fill: "#12121A" }), /* @__PURE__ */ n.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.5 4V9C17.5 9.55228 17.9477 10 18.5 10H23.5L21.5 12H18.5C16.8431 12 15.5 10.6569 15.5 9V6L17.5 4Z", fill: "#12121A" }), /* @__PURE__ */ n.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M21.5 6V0L19.5 2V7.75C19.5 7.88807 19.6119 8 19.75 8H25.5L27.5 6H21.5Z", fill: "#12121A" }), /* @__PURE__ */ n.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.5 23V18C10.5 17.4477 10.0523 17 9.5 17H4.5L6.5 15H9.5C11.1569 15 12.5 16.3431 12.5 18V21L10.5 23Z", fill: "#12121A" }), /* @__PURE__ */ n.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.5 21V27L8.5 25V19.25C8.5 19.1119 8.38807 19 8.25 19H2.5L0.5 21H6.5Z", fill: "#12121A" })), j = ({
|
|
7
8
|
logo: l,
|
|
8
9
|
title: u,
|
|
9
10
|
softwareName: r,
|
|
@@ -19,8 +20,8 @@ const v = (l) => /* @__PURE__ */ n.createElement("svg", { width: 24, height: 24,
|
|
|
19
20
|
handleMenuClickUserInfo: s,
|
|
20
21
|
handleOpenChange: x
|
|
21
22
|
}) => {
|
|
22
|
-
const m = /@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g,
|
|
23
|
-
return /* @__PURE__ */ i("div", { style: { width:
|
|
23
|
+
const m = /@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g, k = t ? 54 : 250, C = t ? 50 : 250;
|
|
24
|
+
return /* @__PURE__ */ i("div", { style: { width: k }, className: "main-container", children: [
|
|
24
25
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { children: t ? /* @__PURE__ */ e("div", { className: "flex-col-center mt-15", children: d ? /* @__PURE__ */ e(v, { onClick: o, className: "pointer" }) : /* @__PURE__ */ e(p, { onClick: o, className: "pointer" }) }) : /* @__PURE__ */ i("div", { className: "space-around-center", children: [
|
|
25
26
|
/* @__PURE__ */ i("div", { className: "flex-row-center", children: [
|
|
26
27
|
l,
|
|
@@ -50,8 +51,8 @@ const v = (l) => /* @__PURE__ */ n.createElement("svg", { width: 24, height: 24,
|
|
|
50
51
|
style: {
|
|
51
52
|
height: t ? "82vh" : "80vh",
|
|
52
53
|
//menuHeight,
|
|
53
|
-
width:
|
|
54
|
-
backgroundColor: "
|
|
54
|
+
width: C,
|
|
55
|
+
backgroundColor: "var(--color-background)",
|
|
55
56
|
border: "none"
|
|
56
57
|
},
|
|
57
58
|
className: "menu side-menu"
|
|
@@ -62,5 +63,5 @@ const v = (l) => /* @__PURE__ */ n.createElement("svg", { width: 24, height: 24,
|
|
|
62
63
|
] });
|
|
63
64
|
};
|
|
64
65
|
export {
|
|
65
|
-
|
|
66
|
+
j as SideMenu
|
|
66
67
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/theme.css';/* empty css */
|
|
2
3
|
import { DataGrid as l, gridClasses as o } from "@mui/x-data-grid";
|
|
3
|
-
const
|
|
4
|
-
rows:
|
|
4
|
+
const c = ({
|
|
5
|
+
rows: r,
|
|
5
6
|
isFetching: n,
|
|
6
|
-
columnsDefinitions:
|
|
7
|
+
columnsDefinitions: i
|
|
7
8
|
}) => /* @__PURE__ */ t(
|
|
8
9
|
l,
|
|
9
10
|
{
|
|
10
|
-
loading: (!
|
|
11
|
-
rows:
|
|
12
|
-
columns:
|
|
13
|
-
getRowClassName: (
|
|
11
|
+
loading: (!r || !r.length) && n,
|
|
12
|
+
rows: r.map((a, e) => (a.id = e, a)),
|
|
13
|
+
columns: i,
|
|
14
|
+
getRowClassName: (a) => a.id === r.length - 1 ? "last-row" : "",
|
|
14
15
|
sx: {
|
|
15
16
|
"& .last-row": {
|
|
16
17
|
"& .MuiDataGrid-cellContent": {
|
|
@@ -18,14 +19,14 @@ const u = ({
|
|
|
18
19
|
}
|
|
19
20
|
},
|
|
20
21
|
[`& .${o.main}`]: {
|
|
21
|
-
backgroundColor: "
|
|
22
|
+
backgroundColor: "var(--color-background)",
|
|
22
23
|
borderRadius: "0px 0px 8px 8px"
|
|
23
24
|
},
|
|
24
25
|
[`& .${o.row}`]: {
|
|
25
26
|
maxHeight: "36px",
|
|
26
27
|
minHeight: "36px",
|
|
27
28
|
"&.Mui-selected": {
|
|
28
|
-
backgroundColor: "
|
|
29
|
+
backgroundColor: "var(--color-highlight-data-grid) !important"
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
32
|
[`& .${o.cell}`]: {
|
|
@@ -38,7 +39,7 @@ const u = ({
|
|
|
38
39
|
outline: "none"
|
|
39
40
|
},
|
|
40
41
|
[`& .${o.columnHeaders}`]: {
|
|
41
|
-
backgroundColor: "
|
|
42
|
+
backgroundColor: "var(--color-neutral)",
|
|
42
43
|
textTransform: "uppercase",
|
|
43
44
|
userSelect: "none",
|
|
44
45
|
border: "none",
|
|
@@ -56,7 +57,7 @@ const u = ({
|
|
|
56
57
|
[`& .${o.columnHeaderTitle}`]: {
|
|
57
58
|
whiteSpace: "normal",
|
|
58
59
|
lineHeight: "normal",
|
|
59
|
-
color: "
|
|
60
|
+
color: "var(--color-secondary)",
|
|
60
61
|
fontWeight: "500",
|
|
61
62
|
fontSize: "13px"
|
|
62
63
|
},
|
|
@@ -65,16 +66,16 @@ const u = ({
|
|
|
65
66
|
},
|
|
66
67
|
[`& .${o.footerContainer}`]: {
|
|
67
68
|
border: "0",
|
|
68
|
-
backgroundColor: "
|
|
69
|
+
backgroundColor: "var(--color-background)",
|
|
69
70
|
borderRadius: "8px",
|
|
70
71
|
marginTop: "10px",
|
|
71
72
|
display: "none"
|
|
72
73
|
},
|
|
73
74
|
[`& .${o.overlay}`]: {
|
|
74
|
-
backgroundColor: "
|
|
75
|
+
backgroundColor: "var(--color-background)"
|
|
75
76
|
},
|
|
76
77
|
[`& .${o.toolbarContainer}`]: {
|
|
77
|
-
backgroundColor: "
|
|
78
|
+
backgroundColor: "var(--color-background)",
|
|
78
79
|
borderRadius: "8px 8px 0 0",
|
|
79
80
|
padding: "10px"
|
|
80
81
|
},
|
|
@@ -96,7 +97,7 @@ const u = ({
|
|
|
96
97
|
"& .MuiTablePagination-spacer": { order: 0, display: "none" },
|
|
97
98
|
"& .MuiTablePagination-displayedRows": {
|
|
98
99
|
order: 1,
|
|
99
|
-
color: "
|
|
100
|
+
color: "var(--color-text)",
|
|
100
101
|
fontWeight: "300",
|
|
101
102
|
marginInlineEnd: "10px",
|
|
102
103
|
position: "absolute",
|
|
@@ -121,5 +122,5 @@ const u = ({
|
|
|
121
122
|
}
|
|
122
123
|
);
|
|
123
124
|
export {
|
|
124
|
-
|
|
125
|
+
c as TotalDataGrid
|
|
125
126
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { userInfoDropdownItems as s } from "../../mock.js";
|
|
3
|
-
import { U as o } from "../../UserInfoDropdown-
|
|
3
|
+
import { U as o } from "../../UserInfoDropdown-DGaplQo6.js";
|
|
4
4
|
const n = {
|
|
5
5
|
title: "User Info Dropdown",
|
|
6
6
|
component: o,
|
package/dist/components/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { LoadingAnimation as D } from "./LoadingAnimation/LoadingAnimation.js";
|
|
|
10
10
|
import { Login as K } from "./Login/Login.js";
|
|
11
11
|
import { SideMenu as U } from "./SideMenu/SideMenu.js";
|
|
12
12
|
import { TotalDataGrid as A } from "./TotalDataGrid/TotalDataGrid.js";
|
|
13
|
-
import { U as E } from "../UserInfoDropdown-
|
|
13
|
+
import { U as E } from "../UserInfoDropdown-DGaplQo6.js";
|
|
14
14
|
export {
|
|
15
15
|
t as ConfirmationModal,
|
|
16
16
|
m as CustomButton,
|
package/dist/main.js
CHANGED
|
@@ -10,7 +10,7 @@ import { LoadingAnimation as M } from "./components/LoadingAnimation/LoadingAnim
|
|
|
10
10
|
import { Login as U } from "./components/Login/Login.js";
|
|
11
11
|
import { SideMenu as y } from "./components/SideMenu/SideMenu.js";
|
|
12
12
|
import { TotalDataGrid as D } from "./components/TotalDataGrid/TotalDataGrid.js";
|
|
13
|
-
import { U as K } from "./UserInfoDropdown-
|
|
13
|
+
import { U as K } from "./UserInfoDropdown-DGaplQo6.js";
|
|
14
14
|
import { chunkArray as b } from "./portal-utils/chunkArray.js";
|
|
15
15
|
import { cn as w } from "./portal-utils/cn.js";
|
|
16
16
|
import { currency as E, date as F, datetime as G, decimal as S, fuelUnitPrice as T, fuelVolume as V, hours as W, number as j, time as q } from "./portal-utils/formatters.js";
|
package/package.json
CHANGED
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
"name": "@amateescu/portal-ui-components",
|
|
3
3
|
"main": "dist/main.js",
|
|
4
4
|
"types": "dist/main.d.ts",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.23-beta0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
|
-
"dist"
|
|
8
|
+
"dist",
|
|
9
|
+
"src/theme/theme.scss"
|
|
9
10
|
],
|
|
10
11
|
"exports": {
|
|
11
12
|
"./components": "./dist/components/index.js",
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--color-primary: #045529;
|
|
3
|
+
--color-secondary: #626367;
|
|
4
|
+
--color-background: #f0f0f0;
|
|
5
|
+
--color-background-secondary: #f3f6f8;
|
|
6
|
+
--color-text: #12121a;
|
|
7
|
+
--color-text-secondary: #111111;
|
|
8
|
+
--color-text-light: #777;
|
|
9
|
+
--color-text-dark: #333;
|
|
10
|
+
--color-border: #ddd;
|
|
11
|
+
--color-highlight: #05a952;
|
|
12
|
+
--color-highlight-data-grid: #05a9521a; //data-grid row selection
|
|
13
|
+
--color-mui-selected: #F5F7FB;
|
|
14
|
+
--color-warning: #eea63c;
|
|
15
|
+
--color-critical: #f95048;
|
|
16
|
+
--color-neutral: #fafafa;
|
|
17
|
+
--color-red: red;
|
|
18
|
+
--color-gray: #e0e0e0;
|
|
19
|
+
--color-blue: #0054EE; //clear filters
|
|
20
|
+
--color-light-gray-blue: #E6EBEF;
|
|
21
|
+
--color-very-light-gray: #DBDBDB;
|
|
22
|
+
--color-white: white;
|
|
23
|
+
--color-green: green;
|
|
24
|
+
--color-ant-theme: #00b96b;
|
|
25
|
+
--color-avatar: #41b06e;
|
|
26
|
+
|
|
27
|
+
--font-size-xxsmall: 8px;
|
|
28
|
+
--font-size-9: 9px;
|
|
29
|
+
--font-size-xsmall: 10px;
|
|
30
|
+
--font-size-small: 12px;
|
|
31
|
+
--font-size-normal: 13px;
|
|
32
|
+
--font-size-medium: 14px;
|
|
33
|
+
--font-size-large: 16px;
|
|
34
|
+
--font-size-xlarge: 18px;
|
|
35
|
+
--font-size-xxlarge: 20px;
|
|
36
|
+
--font-size-xxxlarge: 21px;
|
|
37
|
+
--font-size-22: 22px;
|
|
38
|
+
--font-size-kpi-card: 32px;
|
|
39
|
+
|
|
40
|
+
--font-bolded: 600;
|
|
41
|
+
--font-500: 500;
|
|
42
|
+
--font-400: 400;
|
|
43
|
+
}
|