@amateescu/portal-ui-components 0.0.32-beta0 → 0.0.32-beta2
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-DtadP0e7.js → UserInfoDropdown-DcgHMy3r.js} +50 -50
- 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/components/ConfirmationModal/ConfirmationModal.js +12 -13
- package/dist/components/CustomButton/CustomButton.js +2 -3
- package/dist/components/CustomFooter/CustomFooter.stories.js +6 -7
- package/dist/components/CustomPagination/CustomPagination.js +2 -3
- package/dist/components/ErrorModal/ErrorModal.js +10 -11
- package/dist/components/InfoModal/InfoModal.js +8 -9
- package/dist/components/KpiCard/KpiCard.js +1 -1
- package/dist/components/KpiWrapper/KpiWrapper.stories.js +10 -11
- package/dist/components/Login/Login.js +2 -3
- package/dist/components/SideMenu/SideMenu.js +20 -21
- package/dist/components/TotalDataGrid/TotalDataGrid.js +5 -6
- 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 +5 -3
- package/src/theme/portal-theme.scss +43 -0
- package/dist/assets/theme.css +0 -1
|
@@ -3,9 +3,9 @@ import * as l from "react";
|
|
|
3
3
|
import $t, { useRef as Be, forwardRef as ke, useImperativeHandle as yt, useContext as tt, useState as ot, useEffect as He, createContext as to } from "react";
|
|
4
4
|
import { cn as oo } from "./portal-utils/cn.js";
|
|
5
5
|
import { _ as ze } from "./objectWithoutPropertiesLoose-BTau6TOn.js";
|
|
6
|
-
import { I as Ve, K as le, H as no, U as We, ah as ro, g as de, m as ce, y as ve, u as O, a2 as io, a as ie, E as ao, v as be, D as je, c as _, p as lo, N as so, e as se, l as nt, b as Xe, s as Fe, t as Ct, j as co, x as
|
|
6
|
+
import { I as Ve, K as le, H as no, U as We, ah as ro, g as de, m as ce, y as ve, u as O, a2 as io, a as ie, E as ao, v as be, D as je, c as _, p as lo, N as so, e as se, l as nt, b as Xe, s as Fe, t as Ct, j as co, x as Ge, o as he, an as uo, n as mo, a4 as po, A as go, z as fo, F as rt, aa as it, ad as vo, k as wt, ao as bo, B as at } from "./context-4ttylmIf.js";
|
|
7
7
|
import { R as ho, T as $o, c as yo, M as Co, a as Se, u as wo, S as xo, E as So, b as xt, d as Oo, s as Io, e as No, f as Eo, g as Po, D as Bo } from "./EllipsisOutlined-CmR4hXJ_.js";
|
|
8
|
-
import { P as fe, i as Te, C as St, b as zo, u as
|
|
8
|
+
import { P as fe, i as Te, C as St, b as zo, u as qe, d as ue, z as Ot, e as jo, f as To, h as _o, j as Ro, B as lt } from "./PurePanel-CykVuv66.js";
|
|
9
9
|
import './assets/UserInfoDropdown.css';function Mo(e, t) {
|
|
10
10
|
return fe.reduce((o, n) => {
|
|
11
11
|
const r = e[`${n}1`], a = e[`${n}3`], i = e[`${n}6`], s = e[`${n}7`];
|
|
@@ -106,7 +106,7 @@ const Ao = (e) => ({
|
|
|
106
106
|
transformOrigin: "0 0",
|
|
107
107
|
opacity: 0
|
|
108
108
|
}
|
|
109
|
-
}),
|
|
109
|
+
}), Go = new le("antMoveUpIn", {
|
|
110
110
|
"0%": {
|
|
111
111
|
transform: "translate3d(0, -100%, 0)",
|
|
112
112
|
transformOrigin: "0 0",
|
|
@@ -117,7 +117,7 @@ const Ao = (e) => ({
|
|
|
117
117
|
transformOrigin: "0 0",
|
|
118
118
|
opacity: 1
|
|
119
119
|
}
|
|
120
|
-
}),
|
|
120
|
+
}), qo = new le("antMoveUpOut", {
|
|
121
121
|
"0%": {
|
|
122
122
|
transform: "translate3d(0, 0, 0)",
|
|
123
123
|
transformOrigin: "0 0",
|
|
@@ -130,8 +130,8 @@ const Ao = (e) => ({
|
|
|
130
130
|
}
|
|
131
131
|
}), Yo = {
|
|
132
132
|
"move-up": {
|
|
133
|
-
inKeyframes:
|
|
134
|
-
outKeyframes:
|
|
133
|
+
inKeyframes: Go,
|
|
134
|
+
outKeyframes: qo
|
|
135
135
|
},
|
|
136
136
|
"move-down": {
|
|
137
137
|
inKeyframes: Lo,
|
|
@@ -418,13 +418,13 @@ const Ye = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
|
418
418
|
const X = be("Avatar");
|
|
419
419
|
process.env.NODE_ENV !== "production" && X(!(typeof s == "string" && s.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${s}\` at https://ant.design/components/icon`);
|
|
420
420
|
}
|
|
421
|
-
const j = P("avatar", o), H = je(j), [D, W,
|
|
421
|
+
const j = P("avatar", o), H = je(j), [D, W, G] = Nt(j, H), q = _({
|
|
422
422
|
[`${j}-lg`]: E === "large",
|
|
423
423
|
[`${j}-sm`]: E === "small"
|
|
424
|
-
}), Z = /* @__PURE__ */ l.isValidElement(a), ee = n || (z == null ? void 0 : z.shape) || "circle", k = _(j,
|
|
424
|
+
}), Z = /* @__PURE__ */ l.isValidElement(a), ee = n || (z == null ? void 0 : z.shape) || "circle", k = _(j, q, I == null ? void 0 : I.className, `${j}-${ee}`, {
|
|
425
425
|
[`${j}-image`]: Z || a && M,
|
|
426
426
|
[`${j}-icon`]: !!s
|
|
427
|
-
},
|
|
427
|
+
}, G, H, c, u, W), U = typeof E == "number" ? {
|
|
428
428
|
width: E,
|
|
429
429
|
height: E,
|
|
430
430
|
fontSize: s ? E / 2 : 18
|
|
@@ -581,7 +581,7 @@ var me = {
|
|
|
581
581
|
overlayInnerStyle: se(se({}, P), A == null ? void 0 : A.body)
|
|
582
582
|
}, I);
|
|
583
583
|
}, W = function() {
|
|
584
|
-
var
|
|
584
|
+
var q = l.Children.only(v), Z = (q == null ? void 0 : q.props) || {}, ee = se(se({}, Z), {}, {
|
|
585
585
|
"aria-describedby": I ? F : null
|
|
586
586
|
});
|
|
587
587
|
return /* @__PURE__ */ l.cloneElement(v, ee);
|
|
@@ -1156,19 +1156,19 @@ const $n = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
|
1156
1156
|
style: j,
|
|
1157
1157
|
classNames: H,
|
|
1158
1158
|
styles: D
|
|
1159
|
-
} = Xe("tooltip"), W = be("Tooltip"),
|
|
1159
|
+
} = Xe("tooltip"), W = be("Tooltip"), G = l.useRef(null), q = () => {
|
|
1160
1160
|
var K;
|
|
1161
|
-
(K =
|
|
1161
|
+
(K = G.current) === null || K === void 0 || K.forceAlign();
|
|
1162
1162
|
};
|
|
1163
1163
|
l.useImperativeHandle(t, () => {
|
|
1164
1164
|
var K, te;
|
|
1165
1165
|
return {
|
|
1166
|
-
forceAlign:
|
|
1166
|
+
forceAlign: q,
|
|
1167
1167
|
forcePopupAlign: () => {
|
|
1168
|
-
W.deprecated(!1, "forcePopupAlign", "forceAlign"),
|
|
1168
|
+
W.deprecated(!1, "forcePopupAlign", "forceAlign"), q();
|
|
1169
1169
|
},
|
|
1170
|
-
nativeElement: (K =
|
|
1171
|
-
popupElement: (te =
|
|
1170
|
+
nativeElement: (K = G.current) === null || K === void 0 ? void 0 : K.nativeElement,
|
|
1171
|
+
popupElement: (te = G.current) === null || te === void 0 ? void 0 : te.popupElement
|
|
1172
1172
|
};
|
|
1173
1173
|
}), process.env.NODE_ENV !== "production" && ([["visible", "open"], ["defaultVisible", "defaultOpen"], ["onVisibleChange", "onOpenChange"], ["afterVisibleChange", "afterOpenChange"], ["arrowPointAtCenter", "arrow={{ pointAtCenter: true }}"], ["overlayStyle", "styles={{ root: {} }}"], ["overlayInnerStyle", "styles={{ body: {} }}"], ["overlayClassName", 'classNames={{ root: "" }}']].forEach((K) => {
|
|
1174
1174
|
let [te, ae] = K;
|
|
@@ -1196,9 +1196,9 @@ const $n = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
|
1196
1196
|
}, typeof X == "function" ? X() : X), J = A("tooltip", r), V = A(), re = e["data-popover-inject"];
|
|
1197
1197
|
let ne = Z;
|
|
1198
1198
|
!("open" in e) && !("visible" in e) && k && (ne = !1);
|
|
1199
|
-
const Me = /* @__PURE__ */ l.isValidElement(u) && !zo(u) ? u : /* @__PURE__ */ l.createElement("span", null, u), ye = Me.props, Xt = !ye.className || typeof ye.className == "string" ? _(ye.className, a || `${J}-open`) : ye.className, [Ft,
|
|
1199
|
+
const Me = /* @__PURE__ */ l.isValidElement(u) && !zo(u) ? u : /* @__PURE__ */ l.createElement("span", null, u), ye = Me.props, Xt = !ye.className || typeof ye.className == "string" ? _(ye.className, a || `${J}-open`) : ye.className, [Ft, Gt, qt] = Bt(J, !re), De = zt(J, s), Yt = De.arrowStyle, Ut = _(x, {
|
|
1200
1200
|
[`${J}-rtl`]: L === "rtl"
|
|
1201
|
-
}, De.className, w,
|
|
1201
|
+
}, De.className, w, Gt, qt, F, H.root, I == null ? void 0 : I.root), Kt = _(H.body, I == null ? void 0 : I.body), [Zt, Qt] = qe("Tooltip", z.zIndex), Jt = /* @__PURE__ */ l.createElement(sn, Object.assign({}, z, {
|
|
1202
1202
|
zIndex: Zt,
|
|
1203
1203
|
showArrow: y,
|
|
1204
1204
|
placement: B,
|
|
@@ -1214,7 +1214,7 @@ const $n = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
|
1214
1214
|
body: Object.assign(Object.assign(Object.assign(Object.assign({}, D.body), c), P == null ? void 0 : P.body), De.overlayStyle)
|
|
1215
1215
|
},
|
|
1216
1216
|
getTooltipContainer: $ || i || E,
|
|
1217
|
-
ref:
|
|
1217
|
+
ref: G,
|
|
1218
1218
|
builtinPlacements: Q,
|
|
1219
1219
|
overlay: Y,
|
|
1220
1220
|
visible: ne,
|
|
@@ -1550,7 +1550,7 @@ const dt = (e) => {
|
|
|
1550
1550
|
}
|
|
1551
1551
|
const S = a("avatar", s), $ = `${S}-group`, B = je(S), [M, R, T] = Nt(S, B), w = _($, {
|
|
1552
1552
|
[`${$}-rtl`]: i === "rtl"
|
|
1553
|
-
}, T, B, c, u, R), x =
|
|
1553
|
+
}, T, B, c, u, R), x = Ge(C).map((z, y) => ue(z, {
|
|
1554
1554
|
// eslint-disable-next-line react/no-array-index-key
|
|
1555
1555
|
key: `avatar-key-${y}`
|
|
1556
1556
|
})), P = (b == null ? void 0 : b.count) || f, I = x.length;
|
|
@@ -1912,13 +1912,13 @@ const ut = {
|
|
|
1912
1912
|
}, r || /* @__PURE__ */ l.createElement(Rt, null)) : null, j = w === "rtl" == !d, W = {
|
|
1913
1913
|
expanded: j ? /* @__PURE__ */ l.createElement(Oe, null) : /* @__PURE__ */ l.createElement(Ne, null),
|
|
1914
1914
|
collapsed: j ? /* @__PURE__ */ l.createElement(Ne, null) : /* @__PURE__ */ l.createElement(Oe, null)
|
|
1915
|
-
}[S ? "collapsed" : "expanded"],
|
|
1915
|
+
}[S ? "collapsed" : "expanded"], G = r !== null ? F || /* @__PURE__ */ l.createElement("div", {
|
|
1916
1916
|
className: `${x}-trigger`,
|
|
1917
1917
|
onClick: N,
|
|
1918
1918
|
style: {
|
|
1919
1919
|
width: L
|
|
1920
1920
|
}
|
|
1921
|
-
}, r || W) : null,
|
|
1921
|
+
}, r || W) : null, q = Object.assign(Object.assign({}, c), {
|
|
1922
1922
|
flex: `0 0 ${L}`,
|
|
1923
1923
|
maxWidth: L,
|
|
1924
1924
|
minWidth: L,
|
|
@@ -1936,11 +1936,11 @@ const ut = {
|
|
|
1936
1936
|
}, /* @__PURE__ */ l.createElement("aside", Object.assign({
|
|
1937
1937
|
className: Z
|
|
1938
1938
|
}, E, {
|
|
1939
|
-
style:
|
|
1939
|
+
style: q,
|
|
1940
1940
|
ref: t
|
|
1941
1941
|
}), /* @__PURE__ */ l.createElement("div", {
|
|
1942
1942
|
className: `${x}-children`
|
|
1943
|
-
}, a), u || B && F ?
|
|
1943
|
+
}, a), u || B && F ? G : null)));
|
|
1944
1944
|
});
|
|
1945
1945
|
process.env.NODE_ENV !== "production" && (kn.displayName = "Sider");
|
|
1946
1946
|
const Ee = /* @__PURE__ */ to({
|
|
@@ -2001,7 +2001,7 @@ const Ht = (e) => {
|
|
|
2001
2001
|
title: g
|
|
2002
2002
|
};
|
|
2003
2003
|
!p && !m && (h.title = null, h.open = !1);
|
|
2004
|
-
const C =
|
|
2004
|
+
const C = Ge(n).length;
|
|
2005
2005
|
let b = /* @__PURE__ */ l.createElement(Co, Object.assign({}, he(e, ["title", "icon", "danger"]), {
|
|
2006
2006
|
className: _({
|
|
2007
2007
|
[`${c}-item-danger`]: i,
|
|
@@ -2087,7 +2087,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2087
2087
|
}
|
|
2088
2088
|
}
|
|
2089
2089
|
};
|
|
2090
|
-
},
|
|
2090
|
+
}, Gn = (e) => {
|
|
2091
2091
|
let {
|
|
2092
2092
|
componentCls: t,
|
|
2093
2093
|
menuArrowOffset: o,
|
|
@@ -2361,7 +2361,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2361
2361
|
paddingInlineEnd: d
|
|
2362
2362
|
}
|
|
2363
2363
|
};
|
|
2364
|
-
},
|
|
2364
|
+
}, qn = (e) => {
|
|
2365
2365
|
const {
|
|
2366
2366
|
componentCls: t,
|
|
2367
2367
|
iconCls: o,
|
|
@@ -2995,13 +2995,13 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
2995
2995
|
Fn(w),
|
|
2996
2996
|
// Hard code for some light style
|
|
2997
2997
|
// Vertical
|
|
2998
|
-
|
|
2998
|
+
qn(w),
|
|
2999
2999
|
// Hard code for some light style
|
|
3000
3000
|
// Theme
|
|
3001
3001
|
pt(w, "light"),
|
|
3002
3002
|
pt(x, "dark"),
|
|
3003
3003
|
// RTL
|
|
3004
|
-
|
|
3004
|
+
Gn(w),
|
|
3005
3005
|
// Motion
|
|
3006
3006
|
Ao(w),
|
|
3007
3007
|
Se(w, "slide-up"),
|
|
@@ -3045,7 +3045,7 @@ const Pe = /* @__PURE__ */ l.createContext(null), Xn = /* @__PURE__ */ l.forward
|
|
|
3045
3045
|
}
|
|
3046
3046
|
const m = l.useMemo(() => Object.assign(Object.assign({}, i), {
|
|
3047
3047
|
firstLevel: !1
|
|
3048
|
-
}), [i]), [v] =
|
|
3048
|
+
}), [i]), [v] = qe("Menu");
|
|
3049
3049
|
return /* @__PURE__ */ l.createElement(Ee.Provider, {
|
|
3050
3050
|
value: m
|
|
3051
3051
|
}, /* @__PURE__ */ l.createElement(xo, Object.assign({}, he(e, ["icon"]), {
|
|
@@ -3118,9 +3118,9 @@ const Qn = {
|
|
|
3118
3118
|
return r.expandIcon || null;
|
|
3119
3119
|
if (typeof (c == null ? void 0 : c.expandIcon) == "function" || Ae(c == null ? void 0 : c.expandIcon))
|
|
3120
3120
|
return (c == null ? void 0 : c.expandIcon) || null;
|
|
3121
|
-
const
|
|
3122
|
-
return ue(
|
|
3123
|
-
className: _(`${y}-submenu-expand-icon`, /* @__PURE__ */ l.isValidElement(
|
|
3121
|
+
const G = (D = p ?? (r == null ? void 0 : r.expandIcon)) !== null && D !== void 0 ? D : c == null ? void 0 : c.expandIcon;
|
|
3122
|
+
return ue(G, {
|
|
3123
|
+
className: _(`${y}-submenu-expand-icon`, /* @__PURE__ */ l.isValidElement(G) ? (W = G.props) === null || W === void 0 ? void 0 : W.className : void 0)
|
|
3124
3124
|
});
|
|
3125
3125
|
}, [p, r == null ? void 0 : r.expandIcon, c == null ? void 0 : c.expandIcon, y]), H = l.useMemo(() => ({
|
|
3126
3126
|
prefixCls: y,
|
|
@@ -3529,12 +3529,12 @@ const er = (e) => {
|
|
|
3529
3529
|
[`${y}-rtl`]: w === "rtl"
|
|
3530
3530
|
}, j.props.className),
|
|
3531
3531
|
disabled: (t = j.props.disabled) !== null && t !== void 0 ? t : s
|
|
3532
|
-
}), D = s ? [] : i, W = !!(D != null && D.includes("contextMenu")), [
|
|
3532
|
+
}), D = s ? [] : i, W = !!(D != null && D.includes("contextMenu")), [G, q] = Fe(!1, {
|
|
3533
3533
|
value: v ?? g
|
|
3534
3534
|
}), Z = wt((V) => {
|
|
3535
3535
|
p == null || p(V, {
|
|
3536
3536
|
source: "trigger"
|
|
3537
|
-
}), h == null || h(V),
|
|
3537
|
+
}), h == null || h(V), q(V);
|
|
3538
3538
|
}), ee = _(d, f, A, L, N, x == null ? void 0 : x.className, {
|
|
3539
3539
|
[`${y}-rtl`]: w === "rtl"
|
|
3540
3540
|
}), k = Pt({
|
|
@@ -3546,7 +3546,7 @@ const er = (e) => {
|
|
|
3546
3546
|
}), U = l.useCallback(() => {
|
|
3547
3547
|
o != null && o.selectable && (o != null && o.multiple) || (p == null || p(!1, {
|
|
3548
3548
|
source: "menu"
|
|
3549
|
-
}),
|
|
3549
|
+
}), q(!1));
|
|
3550
3550
|
}, [o == null ? void 0 : o.selectable, o == null ? void 0 : o.multiple]), Q = () => {
|
|
3551
3551
|
let V;
|
|
3552
3552
|
return o != null && o.items ? V = /* @__PURE__ */ l.createElement(ge, Object.assign({}, o)) : typeof B == "function" ? V = B() : V = B, c && (V = c(V)), V = l.Children.only(typeof V == "string" ? /* @__PURE__ */ l.createElement("span", null, V) : V), /* @__PURE__ */ l.createElement(Xn, {
|
|
@@ -3569,13 +3569,13 @@ const er = (e) => {
|
|
|
3569
3569
|
process.env.NODE_ENV !== "production" && P(!ne || ne === "vertical", "usage", `mode="${ne}" is not supported for Dropdown's Menu.`);
|
|
3570
3570
|
}
|
|
3571
3571
|
}, V);
|
|
3572
|
-
}, [X, Y] =
|
|
3572
|
+
}, [X, Y] = qe("Dropdown", m == null ? void 0 : m.zIndex);
|
|
3573
3573
|
let J = /* @__PURE__ */ l.createElement(Bo, Object.assign({
|
|
3574
3574
|
alignPoint: W
|
|
3575
3575
|
}, he(e, ["rootClassName"]), {
|
|
3576
3576
|
mouseEnterDelay: C,
|
|
3577
3577
|
mouseLeaveDelay: b,
|
|
3578
|
-
visible:
|
|
3578
|
+
visible: G,
|
|
3579
3579
|
builtinPlacements: k,
|
|
3580
3580
|
arrow: !!n,
|
|
3581
3581
|
overlayClassName: ee,
|
|
@@ -3652,7 +3652,7 @@ const cr = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
|
3652
3652
|
wrap: S = !1,
|
|
3653
3653
|
classNames: $,
|
|
3654
3654
|
styles: B
|
|
3655
|
-
} = e, M = sr(e, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]), [R, T] = Array.isArray(d) ? d : [d, d], w = bt(T), x = bt(R), P = ht(T), I = ht(R), z =
|
|
3655
|
+
} = e, M = sr(e, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]), [R, T] = Array.isArray(d) ? d : [d, d], w = bt(T), x = bt(R), P = ht(T), I = ht(R), z = Ge(p, {
|
|
3656
3656
|
keepEmpty: !0
|
|
3657
3657
|
}), y = f === void 0 && g === "horizontal" ? "center" : f, N = n("space", h), [E, A, L] = To(N), F = _(N, i, A, `${N}-${g}`, {
|
|
3658
3658
|
[`${N}-rtl`]: r === "rtl",
|
|
@@ -3661,27 +3661,27 @@ const cr = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
|
3661
3661
|
[`${N}-gap-col-${R}`]: x
|
|
3662
3662
|
}, m, v, L), j = _(`${N}-item`, (o = $ == null ? void 0 : $.item) !== null && o !== void 0 ? o : c.item);
|
|
3663
3663
|
let H = 0;
|
|
3664
|
-
const D = z.map((
|
|
3664
|
+
const D = z.map((q, Z) => {
|
|
3665
3665
|
var ee;
|
|
3666
|
-
|
|
3667
|
-
const k = (
|
|
3666
|
+
q != null && (H = Z);
|
|
3667
|
+
const k = (q == null ? void 0 : q.key) || `${j}-${Z}`;
|
|
3668
3668
|
return /* @__PURE__ */ l.createElement(lr, {
|
|
3669
3669
|
className: j,
|
|
3670
3670
|
key: k,
|
|
3671
3671
|
index: Z,
|
|
3672
3672
|
split: C,
|
|
3673
3673
|
style: (ee = B == null ? void 0 : B.item) !== null && ee !== void 0 ? ee : u.item
|
|
3674
|
-
},
|
|
3674
|
+
}, q);
|
|
3675
3675
|
}), W = l.useMemo(() => ({
|
|
3676
3676
|
latestIndex: H
|
|
3677
3677
|
}), [H]);
|
|
3678
3678
|
if (z.length === 0)
|
|
3679
3679
|
return null;
|
|
3680
|
-
const
|
|
3681
|
-
return S && (
|
|
3680
|
+
const G = {};
|
|
3681
|
+
return S && (G.flexWrap = "wrap"), !x && I && (G.columnGap = R), !w && P && (G.rowGap = T), E(/* @__PURE__ */ l.createElement("div", Object.assign({
|
|
3682
3682
|
ref: t,
|
|
3683
3683
|
className: F,
|
|
3684
|
-
style: Object.assign(Object.assign(Object.assign({},
|
|
3684
|
+
style: Object.assign(Object.assign(Object.assign({}, G), s), b)
|
|
3685
3685
|
}, M), /* @__PURE__ */ l.createElement(ar, {
|
|
3686
3686
|
value: W
|
|
3687
3687
|
}, D)));
|
|
@@ -3750,7 +3750,7 @@ const Vt = (e) => {
|
|
|
3750
3750
|
compactItemClassnames: D
|
|
3751
3751
|
} = Ro(L, n), W = _(F, D, m);
|
|
3752
3752
|
"overlay" in e && (j.overlay = h), "open" in e && (j.open = S), "placement" in e ? j.placement = B : j.placement = n === "rtl" ? "bottomLeft" : "bottomRight";
|
|
3753
|
-
const
|
|
3753
|
+
const G = /* @__PURE__ */ l.createElement(lt, {
|
|
3754
3754
|
type: a,
|
|
3755
3755
|
danger: i,
|
|
3756
3756
|
disabled: s,
|
|
@@ -3759,11 +3759,11 @@ const Vt = (e) => {
|
|
|
3759
3759
|
htmlType: d,
|
|
3760
3760
|
href: R,
|
|
3761
3761
|
title: w
|
|
3762
|
-
}, f),
|
|
3762
|
+
}, f), q = /* @__PURE__ */ l.createElement(lt, {
|
|
3763
3763
|
type: a,
|
|
3764
3764
|
danger: i,
|
|
3765
3765
|
icon: T
|
|
3766
|
-
}), [Z, ee] = x([
|
|
3766
|
+
}), [Z, ee] = x([G, q]);
|
|
3767
3767
|
return /* @__PURE__ */ l.createElement(et.Compact, Object.assign({
|
|
3768
3768
|
className: W,
|
|
3769
3769
|
size: H,
|
|
@@ -3773,7 +3773,7 @@ const Vt = (e) => {
|
|
|
3773
3773
|
Vt.__ANT_BUTTON = !0;
|
|
3774
3774
|
const Wt = $e;
|
|
3775
3775
|
Wt.Button = Vt;
|
|
3776
|
-
const ur = (e) => /* @__PURE__ */ l.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ l.createElement("path", { d: "M19 9L12 16L5 9", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), mr = "
|
|
3776
|
+
const ur = (e) => /* @__PURE__ */ l.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ l.createElement("path", { d: "M19 9L12 16L5 9", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), mr = "_avatar_1f4cc_1", pr = "_pointer_1f4cc_7", gr = "_flexRowCenter_1f4cc_11", fr = "_userTitle_1f4cc_18", xe = {
|
|
3777
3777
|
avatar: mr,
|
|
3778
3778
|
pointer: pr,
|
|
3779
3779
|
flexRowCenter: gr,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
._flexRowCenter_18rw0_1{display:flex!important;flex-direction:row;align-items:center}._mr10_18rw0_7,html[dir=rtl] ._mr10_18rw0_7{margin-right:10px}html[dir=ltr] ._mr10_18rw0_7{margin-left:10px}._text18_18rw0_19{font-size:var(--font-size-xlarge)}._content_18rw0_23{position:relative;top:-10px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
._flexRowCenter_ufgj5_1{display:flex!important;flex-direction:row;align-items:center}html[dir=rtl] ._mr10_ufgj5_7{margin-right:10px}html[dir=ltr] ._mr10_ufgj5_7{margin-left:10px}._text18_ufgj5_15{font-size:var(--font-size-xlarge)}._content_ufgj5_19{position:relative;top:-10px}
|
package/dist/assets/KpiCard.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
._kpiCard_w4qw3_1{height:147px;background-color:var(--color-background);border-radius:8px}._width430_w4qw3_7{width:430px}@media (max-width: 1500px){._width430_w4qw3_7{width:200px}}._width384_w4qw3_16{width:384px}._flexCol_w4qw3_20{display:flex;flex-direction:column}._flexRow_w4qw3_25{display:flex;flex-direction:row}._title_w4qw3_30{font-size:var(--font-size-kpi-card);font-weight:500;color:var(--color-text)}@media (max-width: 900px){._title_w4qw3_30{font-size:var(--font-size-small)}}@media (max-width: 1100px){._title_w4qw3_30{font-size:var(--font-size-large)}}@media (max-width: 1400px){._title_w4qw3_30{font-size:var(--font-size-xxlarge)}}@media (max-width: 1600px){._title_w4qw3_30{font-size:var(--font-size-22)}}._content_w4qw3_56{font-size:var(--font-size-xxxlarge);font-weight:400;color:var(--color-secondary);margin-top:-10px}@media (max-width: 900px){._content_w4qw3_56{font-size:var(--font-size-xxsmall)}}@media (max-width: 1100px){._content_w4qw3_56{font-size:var(--font-size-small)}}@media (max-width: 1400px){._content_w4qw3_56{font-size:var(--font-size-medium)}}
|
package/dist/assets/SideMenu.css
CHANGED
|
@@ -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}.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
|
+
: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}:root{--color-primary: #cbddf3;--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
|
+
._avatar_1f4cc_1{background-color:var(--color-avatar);vertical-align:middle;text-transform:uppercase}._pointer_1f4cc_7{cursor:pointer}._flexRowCenter_1f4cc_11{display:flex;flex-direction:row;align-content:center;align-items:center}._userTitle_1f4cc_18{font-size:var(--font-size-small);color:var(--color-secondary);margin-left:10px}[dir=rtl] ._userTitle_1f4cc_18{margin-right:10px}
|
|
@@ -1,30 +1,29 @@
|
|
|
1
1
|
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
2
|
import * as n from "react";
|
|
3
3
|
import { S as m } from "../../VModalIcon-D7L4bQLO.js";
|
|
4
|
-
import '../../assets/theme.css';import '../../assets/ConfirmationModal.css';/* empty css */
|
|
5
4
|
import { M as d } from "../../index-Dz00OoV7.js";
|
|
6
|
-
const
|
|
7
|
-
flexRowCenter:
|
|
8
|
-
mr10:
|
|
5
|
+
import '../../assets/ConfirmationModal.css';const w = (o) => /* @__PURE__ */ n.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...o }, /* @__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 = (o) => /* @__PURE__ */ n.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...o }, /* @__PURE__ */ n.createElement("path", { d: "M6 18L18 6M6 6L18 18", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), x = "_flexRowCenter_18rw0_1", g = "_mr10_18rw0_7", f = "_text18_18rw0_19", C = "_content_18rw0_23", t = {
|
|
6
|
+
flexRowCenter: x,
|
|
7
|
+
mr10: g,
|
|
9
8
|
text18: f,
|
|
10
9
|
content: C
|
|
11
10
|
};
|
|
12
|
-
function
|
|
11
|
+
function u({ modalOpen: o, contentText: l, setModalOpen: s, commandOnOk: c, title: a, approve: i, cancel: h }) {
|
|
13
12
|
return /* @__PURE__ */ e(
|
|
14
13
|
d,
|
|
15
14
|
{
|
|
16
|
-
title: /* @__PURE__ */ r("span", { className:
|
|
17
|
-
/* @__PURE__ */ e(
|
|
18
|
-
/* @__PURE__ */ e("p", { className:
|
|
15
|
+
title: /* @__PURE__ */ r("span", { className: t.flexRowCenter, children: [
|
|
16
|
+
/* @__PURE__ */ e(w, { className: t.mr10 }),
|
|
17
|
+
/* @__PURE__ */ e("p", { className: t.text18, children: a })
|
|
19
18
|
] }),
|
|
20
19
|
centered: !0,
|
|
21
|
-
open:
|
|
20
|
+
open: o,
|
|
22
21
|
onOk: () => {
|
|
23
22
|
c(), s(!1);
|
|
24
23
|
},
|
|
25
24
|
onCancel: () => s(!1),
|
|
26
25
|
closeIcon: !1,
|
|
27
|
-
okText: /* @__PURE__ */ r("span", { className:
|
|
26
|
+
okText: /* @__PURE__ */ r("span", { className: t.flexRowCenter, children: [
|
|
28
27
|
/* @__PURE__ */ e(m, {}),
|
|
29
28
|
/* @__PURE__ */ e("span", { children: i })
|
|
30
29
|
] }),
|
|
@@ -39,14 +38,14 @@ function L({ modalOpen: t, contentText: l, setModalOpen: s, commandOnOk: c, titl
|
|
|
39
38
|
color: "var(--color-highlight)"
|
|
40
39
|
}
|
|
41
40
|
},
|
|
42
|
-
cancelText: /* @__PURE__ */ r("span", { className:
|
|
41
|
+
cancelText: /* @__PURE__ */ r("span", { className: t.flexRowCenter, children: [
|
|
43
42
|
/* @__PURE__ */ e(p, {}),
|
|
44
43
|
/* @__PURE__ */ e("span", { children: h })
|
|
45
44
|
] }),
|
|
46
|
-
children: /* @__PURE__ */ e("p", { className:
|
|
45
|
+
children: /* @__PURE__ */ e("p", { className: t.content, children: l })
|
|
47
46
|
}
|
|
48
47
|
);
|
|
49
48
|
}
|
|
50
49
|
export {
|
|
51
|
-
|
|
50
|
+
u as ConfirmationModal
|
|
52
51
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import '../../assets/theme.css';/* empty css */
|
|
3
2
|
import { B as l } from "../../Button-xgiLW4_3.js";
|
|
4
|
-
const
|
|
3
|
+
const m = ({ content: r, height: o = "40px", width: t = "120px", direction: n = "left", size: a = "small", ...e }) => /* @__PURE__ */ i(
|
|
5
4
|
l,
|
|
6
5
|
{
|
|
7
6
|
variant: "outlined",
|
|
@@ -33,5 +32,5 @@ const p = ({ content: r, height: o = "40px", width: t = "120px", direction: n =
|
|
|
33
32
|
}
|
|
34
33
|
);
|
|
35
34
|
export {
|
|
36
|
-
|
|
35
|
+
m as CustomButton
|
|
37
36
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
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 */
|
|
4
3
|
import { Pagination as a } from "../CustomPagination/CustomPagination.js";
|
|
5
4
|
import { TotalDataGrid as s } from "../TotalDataGrid/TotalDataGrid.js";
|
|
6
5
|
import "@mui/x-data-grid";
|
|
7
6
|
import "i18next";
|
|
8
|
-
|
|
7
|
+
import '../../assets/SideMenu.css';/* empty css */
|
|
9
8
|
import { columnsDefinitions as e, total as i } from "../../mock.js";
|
|
10
9
|
const m = ({ isRtl: o }) => /* @__PURE__ */ r("div", { children: [
|
|
11
10
|
/* @__PURE__ */ t(
|
|
@@ -18,7 +17,7 @@ const m = ({ isRtl: o }) => /* @__PURE__ */ r("div", { children: [
|
|
|
18
17
|
),
|
|
19
18
|
/* @__PURE__ */ t(a, { isRtl: o, page: 2, pageCount: 12, onPageChange: () => {
|
|
20
19
|
} })
|
|
21
|
-
] }),
|
|
20
|
+
] }), C = {
|
|
22
21
|
title: "Custom Footer",
|
|
23
22
|
component: m,
|
|
24
23
|
tags: ["autodocs"],
|
|
@@ -28,13 +27,13 @@ const m = ({ isRtl: o }) => /* @__PURE__ */ r("div", { children: [
|
|
|
28
27
|
args: {
|
|
29
28
|
isRtl: !1
|
|
30
29
|
}
|
|
31
|
-
},
|
|
30
|
+
}, h = {}, x = {
|
|
32
31
|
args: {
|
|
33
32
|
isRtl: !0
|
|
34
33
|
}
|
|
35
34
|
};
|
|
36
35
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
h as Default,
|
|
37
|
+
x as RTL,
|
|
38
|
+
C as default
|
|
40
39
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx as l, jsxs as ot } from "react/jsx-runtime";
|
|
2
2
|
import * as c from "react";
|
|
3
|
-
import '../../assets/theme.css';/* empty css */
|
|
4
3
|
import { GridPagination as nt } from "@mui/x-data-grid";
|
|
5
4
|
import { g as Q, a as X, u as Y, s as R, c as A, b as T, d as Z, m as F, i as S, e as _, P as e } from "../../createSimplePaletteValueFilter-evt-Xthj.js";
|
|
6
5
|
import { u as st, a as it, b as j, i as B } from "../../useSlot-Baxtq84W.js";
|
|
@@ -809,10 +808,10 @@ function Ot({
|
|
|
809
808
|
}
|
|
810
809
|
);
|
|
811
810
|
}
|
|
812
|
-
function
|
|
811
|
+
function zt({ isRtl: t, pageCount: a }) {
|
|
813
812
|
return /* @__PURE__ */ l(nt, { ActionsComponent: (o) => /* @__PURE__ */ l(Ot, { isRtl: t, pageCount: a, ...o }) });
|
|
814
813
|
}
|
|
815
814
|
export {
|
|
816
|
-
|
|
815
|
+
zt as CustomPagination,
|
|
817
816
|
Ot as Pagination
|
|
818
817
|
};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const [s, a] = x(!0), i = () => {
|
|
2
|
+
import { useState as h } from "react";
|
|
3
|
+
import { M as p } from "../../index-Dz00OoV7.js";
|
|
4
|
+
import '../../assets/ErrorModal.css';const d = "_flexRowCenter_ufgj5_1", x = "_text18_ufgj5_15", f = "_content_ufgj5_19", t = {
|
|
5
|
+
flexRowCenter: d,
|
|
6
|
+
text18: x,
|
|
7
|
+
content: f
|
|
8
|
+
}, C = ({ error: o, resetErrorBoundary: n, title: r, tryAgain: l, cancel: c }) => {
|
|
9
|
+
const [s, a] = h(!0), i = () => {
|
|
11
10
|
a(!1);
|
|
12
11
|
};
|
|
13
12
|
return /* @__PURE__ */ e(
|
|
14
|
-
|
|
13
|
+
p,
|
|
15
14
|
{
|
|
16
15
|
title: /* @__PURE__ */ e("span", { className: t.flexRowCenter, children: /* @__PURE__ */ e("p", { className: t.text18, children: r }) }),
|
|
17
16
|
centered: !0,
|
|
@@ -37,5 +36,5 @@ const p = "_flexRowCenter_1ixx3_43", d = "_text18_1ixx3_57", m = "_content_1ixx3
|
|
|
37
36
|
);
|
|
38
37
|
};
|
|
39
38
|
export {
|
|
40
|
-
|
|
39
|
+
C as ErrorModal
|
|
41
40
|
};
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import * as r from "react";
|
|
3
3
|
import { S as i } from "../../VModalIcon-D7L4bQLO.js";
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
flexRowCenter: d,
|
|
4
|
+
import { M as m } from "../../index-Dz00OoV7.js";
|
|
5
|
+
import '../../assets/ErrorModal.css';const d = (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" })), f = "_flexRowCenter_ufgj5_1", p = "_mr10_ufgj5_7", x = "_text18_ufgj5_15", h = "_content_ufgj5_19", t = {
|
|
6
|
+
flexRowCenter: f,
|
|
8
7
|
mr10: p,
|
|
9
|
-
text18:
|
|
8
|
+
text18: x,
|
|
10
9
|
content: h
|
|
11
10
|
};
|
|
12
|
-
function
|
|
11
|
+
function w({ modalOpen: o, contentText: s, setModalOpen: l, title: c, okText: a }) {
|
|
13
12
|
return /* @__PURE__ */ e(
|
|
14
|
-
|
|
13
|
+
m,
|
|
15
14
|
{
|
|
16
15
|
title: /* @__PURE__ */ n("span", { className: t.flexRowCenter, children: [
|
|
17
|
-
/* @__PURE__ */ e(
|
|
16
|
+
/* @__PURE__ */ e(d, { className: t.mr10 }),
|
|
18
17
|
/* @__PURE__ */ e("p", { className: t.text18, children: c })
|
|
19
18
|
] }),
|
|
20
19
|
centered: !0,
|
|
@@ -41,5 +40,5 @@ function k({ modalOpen: o, contentText: s, setModalOpen: l, title: c, okText: a
|
|
|
41
40
|
);
|
|
42
41
|
}
|
|
43
42
|
export {
|
|
44
|
-
|
|
43
|
+
w as InfoModal
|
|
45
44
|
};
|
|
@@ -2383,7 +2383,7 @@ const Dn = (e) => {
|
|
|
2383
2383
|
Ke.Grid = Qt;
|
|
2384
2384
|
Ke.Meta = Dn;
|
|
2385
2385
|
process.env.NODE_ENV !== "production" && (Ke.displayName = "Card");
|
|
2386
|
-
const Bn = "
|
|
2386
|
+
const Bn = "_kpiCard_w4qw3_1", jn = "_width430_w4qw3_7", An = "_width384_w4qw3_16", Gn = "_flexCol_w4qw3_20", Hn = "_flexRow_w4qw3_25", Wn = "_title_w4qw3_30", Vn = "_content_w4qw3_56", Ce = {
|
|
2387
2387
|
kpiCard: Bn,
|
|
2388
2388
|
width430: jn,
|
|
2389
2389
|
width384: An,
|
|
@@ -1,13 +1,12 @@
|
|
|
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 */
|
|
5
4
|
import "@mui/x-data-grid";
|
|
6
5
|
import { KpiCard as i } from "../KpiCard/KpiCard.js";
|
|
7
6
|
import { KpiWrapper as n } from "./KpiWrapper.js";
|
|
8
7
|
import "i18next";
|
|
9
|
-
|
|
10
|
-
const
|
|
8
|
+
import '../../assets/SideMenu.css';/* empty css */
|
|
9
|
+
const s = {
|
|
11
10
|
title: "Kpi Wrapper",
|
|
12
11
|
component: n,
|
|
13
12
|
tags: ["autodocs"],
|
|
@@ -20,7 +19,7 @@ const m = {
|
|
|
20
19
|
padding: "10px 10px"
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
|
-
},
|
|
22
|
+
}, m = {}, K = {
|
|
24
23
|
args: {
|
|
25
24
|
children: [
|
|
26
25
|
/* @__PURE__ */ t(i, { title: "Kpi Card", content: "Kpi Card Content", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 }),
|
|
@@ -28,7 +27,7 @@ const m = {
|
|
|
28
27
|
/* @__PURE__ */ t(i, { title: "Kpi Card 3", content: "Kpi Card Content 3", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 })
|
|
29
28
|
]
|
|
30
29
|
}
|
|
31
|
-
},
|
|
30
|
+
}, u = {
|
|
32
31
|
args: {
|
|
33
32
|
children: [
|
|
34
33
|
/* @__PURE__ */ t(i, { title: "Kpi Card", content: "Kpi Card Content", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 }),
|
|
@@ -37,7 +36,7 @@ const m = {
|
|
|
37
36
|
/* @__PURE__ */ t(i, { title: "Kpi Card 4", content: "Kpi Card Content 4", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 })
|
|
38
37
|
]
|
|
39
38
|
}
|
|
40
|
-
},
|
|
39
|
+
}, g = {
|
|
41
40
|
args: {
|
|
42
41
|
children: [
|
|
43
42
|
/* @__PURE__ */ t(i, { title: "Kpi Card", content: "Kpi Card Content", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 }),
|
|
@@ -48,9 +47,9 @@ const m = {
|
|
|
48
47
|
render: (r) => /* @__PURE__ */ t("div", { dir: "rtl", style: { margin: "20px 20px" }, children: /* @__PURE__ */ t(n, { ...r }) })
|
|
49
48
|
};
|
|
50
49
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
m as Default,
|
|
51
|
+
g as RTL,
|
|
52
|
+
K as With3Kpis,
|
|
53
|
+
u as With4Kpis,
|
|
54
|
+
s as default
|
|
56
55
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx as v, jsxs as ce } from "react/jsx-runtime";
|
|
2
|
-
import '../../assets/theme.css';/* empty css */
|
|
3
2
|
import { c as ke } from "../../createSvgIcon-CgFXfzFk.js";
|
|
4
3
|
import { t as Ye } from "i18next";
|
|
5
4
|
import { P as e, q as gn, r as hn, c as Z, b as K, d as J, l as yn, g as te, t as Io, T as Po, a as se, u as oe, s as F, i as mt, v as Qt, m as ae, f as st, e as Re, w as eo, x as to, y as No, z as zt, h as Pe, A as Wt, B as vn } from "../../createSimplePaletteValueFilter-evt-Xthj.js";
|
|
@@ -8849,7 +8848,7 @@ process.env.NODE_ENV !== "production" && (Bt.propTypes = {
|
|
|
8849
8848
|
});
|
|
8850
8849
|
const ui = ke(/* @__PURE__ */ v("path", {
|
|
8851
8850
|
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"
|
|
8852
|
-
}), "LockOutlined"),
|
|
8851
|
+
}), "LockOutlined"), Si = ({ title: t, disableAll: o, error: n, setError: r, handleSubmit: i, version: s }) => /* @__PURE__ */ ce(Ko, { component: "main", maxWidth: "xs", children: [
|
|
8853
8852
|
/* @__PURE__ */ v(Xo, {}),
|
|
8854
8853
|
/* @__PURE__ */ ce(
|
|
8855
8854
|
oo,
|
|
@@ -8909,5 +8908,5 @@ const ui = ke(/* @__PURE__ */ v("path", {
|
|
|
8909
8908
|
)
|
|
8910
8909
|
] });
|
|
8911
8910
|
export {
|
|
8912
|
-
|
|
8911
|
+
Si as Login
|
|
8913
8912
|
};
|
|
@@ -1,53 +1,52 @@
|
|
|
1
|
-
import { jsxs as i, jsx as e, Fragment as
|
|
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
|
|
4
|
-
import { S as
|
|
5
|
-
import '../../assets/SideMenu.css'
|
|
6
|
-
/*
|
|
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" })), A = (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" })), y = ({
|
|
3
|
+
import { M as R, S as N, U as h } from "../../UserInfoDropdown-DcgHMy3r.js";
|
|
4
|
+
import { S as H } from "../../InvencoGVR-qnTq-d6S.js";
|
|
5
|
+
import '../../assets/SideMenu.css';/* empty css */
|
|
6
|
+
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" })), b = ({
|
|
8
7
|
logo: l,
|
|
9
8
|
title: u,
|
|
10
9
|
softwareName: r,
|
|
11
|
-
majorVersion:
|
|
12
|
-
menuItems:
|
|
10
|
+
majorVersion: L,
|
|
11
|
+
menuItems: f,
|
|
13
12
|
userInfoDropdownItems: c,
|
|
14
13
|
collapsed: t,
|
|
15
14
|
username: a,
|
|
16
15
|
isRtl: d,
|
|
17
|
-
openKeys:
|
|
16
|
+
openKeys: w,
|
|
18
17
|
toggleCollapsed: o,
|
|
19
|
-
onClick:
|
|
18
|
+
onClick: g,
|
|
20
19
|
handleMenuClickUserInfo: s,
|
|
21
20
|
handleOpenChange: x
|
|
22
21
|
}) => {
|
|
23
|
-
const m = /@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g, k = t ? 54 : 250, C = t ? 50 : 250
|
|
24
|
-
return
|
|
22
|
+
const m = /@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g, k = t ? 54 : 250, C = t ? 50 : 250;
|
|
23
|
+
return /* @__PURE__ */ i("div", { style: { width: k }, className: "main-container", children: [
|
|
25
24
|
/* @__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: [
|
|
26
25
|
/* @__PURE__ */ i("div", { className: "flex-row-center", children: [
|
|
27
26
|
l,
|
|
28
27
|
/* @__PURE__ */ i("h4", { className: "station ml-5", children: [
|
|
29
28
|
u,
|
|
30
|
-
r ? /* @__PURE__ */ i(
|
|
29
|
+
r ? /* @__PURE__ */ i(M, { children: [
|
|
31
30
|
/* @__PURE__ */ e("br", {}),
|
|
32
31
|
" ",
|
|
33
32
|
r,
|
|
34
33
|
": ",
|
|
35
|
-
|
|
34
|
+
L
|
|
36
35
|
] }) : ""
|
|
37
36
|
] })
|
|
38
37
|
] }),
|
|
39
38
|
d ? /* @__PURE__ */ e(p, { onClick: o, className: "pointer" }) : /* @__PURE__ */ e(v, { onClick: o, className: "pointer" })
|
|
40
39
|
] }) }) }),
|
|
41
40
|
/* @__PURE__ */ e(
|
|
42
|
-
|
|
41
|
+
R,
|
|
43
42
|
{
|
|
44
|
-
onClick:
|
|
43
|
+
onClick: g,
|
|
45
44
|
mode: "inline",
|
|
46
45
|
onOpenChange: x,
|
|
47
|
-
openKeys:
|
|
46
|
+
openKeys: w,
|
|
48
47
|
selectedKeys: [location.pathname.slice(location.pathname.lastIndexOf("/"), location.pathname.length)],
|
|
49
|
-
items: t ? void 0 :
|
|
50
|
-
expandIcon: /* @__PURE__ */ e(
|
|
48
|
+
items: t ? void 0 : f,
|
|
49
|
+
expandIcon: /* @__PURE__ */ e(N, {}),
|
|
51
50
|
style: {
|
|
52
51
|
height: t ? "82vh" : "80vh",
|
|
53
52
|
//menuHeight,
|
|
@@ -59,9 +58,9 @@ const v = (l) => /* @__PURE__ */ n.createElement("svg", { width: 24, height: 24,
|
|
|
59
58
|
}
|
|
60
59
|
),
|
|
61
60
|
t ? /* @__PURE__ */ e("div", { className: "flex-col-center mb-30", children: /* @__PURE__ */ e(h, { user: a.replace(m, ""), collapsed: !0, items: c, handleMenuClick: s }) }) : /* @__PURE__ */ e("div", { className: "user-logo-container", children: /* @__PURE__ */ e(h, { user: a.replace(m, ""), collapsed: !1, items: c, handleMenuClick: s }) }),
|
|
62
|
-
t ? /* @__PURE__ */ e("div", { className: "flex-col-center mb-30", children: /* @__PURE__ */ e(
|
|
61
|
+
t ? /* @__PURE__ */ e("div", { className: "flex-col-center mb-30", children: /* @__PURE__ */ e(V, {}) }) : /* @__PURE__ */ e("div", { className: "logo-small-container", children: /* @__PURE__ */ e(H, {}) })
|
|
63
62
|
] });
|
|
64
63
|
};
|
|
65
64
|
export {
|
|
66
|
-
|
|
65
|
+
b as SideMenu
|
|
67
66
|
};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import '../../assets/theme.css';/* empty css */
|
|
3
2
|
import { DataGrid as l, gridClasses as o } from "@mui/x-data-grid";
|
|
4
|
-
const
|
|
3
|
+
const c = ({
|
|
5
4
|
rows: r,
|
|
6
5
|
isFetching: n,
|
|
7
|
-
columnsDefinitions:
|
|
6
|
+
columnsDefinitions: e
|
|
8
7
|
}) => /* @__PURE__ */ t(
|
|
9
8
|
l,
|
|
10
9
|
{
|
|
11
10
|
loading: (!r || !r.length) && n,
|
|
12
|
-
rows: r.map((a,
|
|
13
|
-
columns:
|
|
11
|
+
rows: r.map((a, i) => (a.id = i, a)),
|
|
12
|
+
columns: e,
|
|
14
13
|
getRowClassName: (a) => a.id === r.length - 1 ? "last-row" : "",
|
|
15
14
|
sx: {
|
|
16
15
|
"& .last-row": {
|
|
@@ -118,5 +117,5 @@ const p = ({
|
|
|
118
117
|
}
|
|
119
118
|
);
|
|
120
119
|
export {
|
|
121
|
-
|
|
120
|
+
c as TotalDataGrid
|
|
122
121
|
};
|
|
@@ -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-DcgHMy3r.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-DcgHMy3r.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 L } from "./components/LoadingAnimation/LoadingAnim
|
|
|
10
10
|
import { Login as P } from "./components/Login/Login.js";
|
|
11
11
|
import { SideMenu as h } from "./components/SideMenu/SideMenu.js";
|
|
12
12
|
import { TotalDataGrid as A } from "./components/TotalDataGrid/TotalDataGrid.js";
|
|
13
|
-
import { U as I } from "./UserInfoDropdown-
|
|
13
|
+
import { U as I } from "./UserInfoDropdown-DcgHMy3r.js";
|
|
14
14
|
import { chunkArray as b } from "./portal-utils/chunkArray.js";
|
|
15
15
|
import { cn as v } from "./portal-utils/cn.js";
|
|
16
16
|
import { currency as B, date as E, datetime as F, decimal as G, fuelUnitPrice as S, fuelVolume as T, hours as V, number as W, time as j } from "./portal-utils/formatters.js";
|
package/package.json
CHANGED
|
@@ -2,17 +2,19 @@
|
|
|
2
2
|
"name": "@amateescu/portal-ui-components",
|
|
3
3
|
"main": "dist/main.js",
|
|
4
4
|
"types": "dist/main.d.ts",
|
|
5
|
-
"version": "0.0.32-
|
|
5
|
+
"version": "0.0.32-beta2",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
9
|
-
"src/theme/theme.scss"
|
|
9
|
+
"src/theme/theme.scss",
|
|
10
|
+
"src/theme/portal-theme.scss"
|
|
10
11
|
],
|
|
11
12
|
"exports": {
|
|
12
13
|
"./components": "./dist/components/index.js",
|
|
13
14
|
"./types": "./dist/types/index.js",
|
|
14
15
|
"./portal-utils": "./dist/portal-utils/index.js",
|
|
15
|
-
"./theme.css": "./dist/assets/theme.css"
|
|
16
|
+
"./theme.css": "./dist/assets/theme.css",
|
|
17
|
+
"./portal-theme.css": "./dist/assets/portal-theme.css"
|
|
16
18
|
},
|
|
17
19
|
"scripts": {
|
|
18
20
|
"build": "tsc && vite build",
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--color-primary: #cbddf3;
|
|
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
|
+
}
|
package/dist/assets/theme.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
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}
|