@amateescu/portal-ui-components 0.0.32-beta1 → 0.0.33

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.
@@ -1,27 +1,27 @@
1
1
  import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
2
  import * as r from "react";
3
- import { S as m } from "../../VModalIcon-D7L4bQLO.js";
4
- import { M as i } from "../../index-Dz00OoV7.js";
5
- import '../../assets/ErrorModal.css';const p = (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" })), x = "_flexRowCenter_1wx1z_85", d = "_mr10_1wx1z_91", h = "_text18_1wx1z_99", f = "_content_1wx1z_103", t = {
6
- flexRowCenter: x,
7
- mr10: d,
8
- text18: h,
9
- content: f
3
+ import { S as i } from "../../VModalIcon-D7L4bQLO.js";
4
+ import { M as m } from "../../index-Dz00OoV7.js";
5
+ import '../../assets/ErrorModal.css';const d = (t) => /* @__PURE__ */ r.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__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: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), f = "_flexRowCenter_ufgj5_1", p = "_mr10_ufgj5_7", x = "_text18_ufgj5_15", h = "_content_ufgj5_19", o = {
6
+ flexRowCenter: f,
7
+ mr10: p,
8
+ text18: x,
9
+ content: h
10
10
  };
11
- function k({ modalOpen: o, contentText: s, setModalOpen: l, title: c, okText: a }) {
12
- return localStorage.getItem("theme") === "portal-theme" ? import("../../portal-theme-BarSJQdA.js") : import("../../theme-94RKb7HE.js"), /* @__PURE__ */ e(
13
- i,
11
+ function w({ modalOpen: t, contentText: s, setModalOpen: l, title: c, okText: a }) {
12
+ return /* @__PURE__ */ e(
13
+ m,
14
14
  {
15
- title: /* @__PURE__ */ n("span", { className: t.flexRowCenter, children: [
16
- /* @__PURE__ */ e(p, { className: t.mr10 }),
17
- /* @__PURE__ */ e("p", { className: t.text18, children: c })
15
+ title: /* @__PURE__ */ n("span", { className: o.flexRowCenter, children: [
16
+ /* @__PURE__ */ e(d, { className: o.mr10, color: "var(--color-primary)" }),
17
+ /* @__PURE__ */ e("p", { className: o.text18, children: c })
18
18
  ] }),
19
19
  centered: !0,
20
- open: o,
20
+ open: t,
21
21
  onOk: () => l(!1),
22
22
  closeIcon: !1,
23
- okText: /* @__PURE__ */ n("span", { className: t.flexRowCenter, children: [
24
- /* @__PURE__ */ e(m, {}),
23
+ okText: /* @__PURE__ */ n("span", { className: o.flexRowCenter, children: [
24
+ /* @__PURE__ */ e(i, {}),
25
25
  /* @__PURE__ */ e("span", { children: a })
26
26
  ] }),
27
27
  okButtonProps: {
@@ -35,10 +35,10 @@ function k({ modalOpen: o, contentText: s, setModalOpen: l, title: c, okText: a
35
35
  }
36
36
  },
37
37
  zIndex: 2e3,
38
- children: /* @__PURE__ */ e("p", { className: t.content, children: s })
38
+ children: /* @__PURE__ */ e("p", { className: o.content, children: s })
39
39
  }
40
40
  );
41
41
  }
42
42
  export {
43
- k as InfoModal
43
+ w as InfoModal
44
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 = "_kpiCard_rhgq4_85", jn = "_width430_rhgq4_91", An = "_width384_rhgq4_100", Gn = "_flexCol_rhgq4_104", Hn = "_flexRow_rhgq4_109", Wn = "_title_rhgq4_114", Vn = "_content_rhgq4_140", Ce = {
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,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
+ import '../../assets/SideMenu.css';import '../../assets/globals.css';/* empty css */
3
4
  import "react";
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
- import '../../assets/SideMenu.css';/* empty css */
9
- const s = {
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
- }, m = {}, K = {
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
- }, u = {
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
- }, g = {
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
- m as Default,
51
- g as RTL,
52
- K as With3Kpis,
53
- u as With4Kpis,
54
- s as default
51
+ K as Default,
52
+ w as RTL,
53
+ u as With3Kpis,
54
+ g as With4Kpis,
55
+ m as default
55
56
  };
@@ -8848,7 +8848,7 @@ process.env.NODE_ENV !== "production" && (Bt.propTypes = {
8848
8848
  });
8849
8849
  const ui = ke(/* @__PURE__ */ v("path", {
8850
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"
8851
- }), "LockOutlined"), Si = ({ title: t, disableAll: o, error: n, setError: r, handleSubmit: i, version: s }) => (localStorage.getItem("theme") === "portal-theme" ? import("../../portal-theme-BarSJQdA.js") : import("../../theme-94RKb7HE.js"), /* @__PURE__ */ ce(Ko, { component: "main", maxWidth: "xs", children: [
8851
+ }), "LockOutlined"), Si = ({ title: t, disableAll: o, error: n, setError: r, handleSubmit: i, version: s }) => /* @__PURE__ */ ce(Ko, { component: "main", maxWidth: "xs", children: [
8852
8852
  /* @__PURE__ */ v(Xo, {}),
8853
8853
  /* @__PURE__ */ ce(
8854
8854
  oo,
@@ -8906,7 +8906,7 @@ const ui = ke(/* @__PURE__ */ v("path", {
8906
8906
  ]
8907
8907
  }
8908
8908
  )
8909
- ] }));
8909
+ ] });
8910
8910
  export {
8911
8911
  Si as Login
8912
8912
  };
@@ -1,66 +1,66 @@
1
- import { jsxs as i, jsx as e, Fragment as M } from "react/jsx-runtime";
2
- import * as n from "react";
3
- import { M as R, S as N, U as h } from "../../UserInfoDropdown-Cql8tlJU.js";
1
+ import { jsxs as o, jsx as e, Fragment as M } from "react/jsx-runtime";
2
+ import * as l from "react";
3
+ import { M as R, S as N, U as h } from "../../UserInfoDropdown-GTCkmg6H.js";
4
4
  import { S as H } from "../../InvencoGVR-qnTq-d6S.js";
5
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" })), j = ({
7
- logo: l,
6
+ const v = (n) => /* @__PURE__ */ l.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ l.createElement("path", { d: "M11 19L4 12L11 5M19 19L12 12L19 5", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), p = (n) => /* @__PURE__ */ l.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ l.createElement("path", { d: "M13 5L20 12L13 19M5 5L12 12L5 19", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), V = (n) => /* @__PURE__ */ l.createElement("svg", { width: 28, height: 27, viewBox: "0 0 28 27", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ l.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__ */ l.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__ */ l.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__ */ l.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__ */ l.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__ */ l.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" })), Z = ({
7
+ logo: n,
8
8
  title: u,
9
- softwareName: r,
10
- majorVersion: f,
11
- menuItems: L,
9
+ softwareName: t,
10
+ majorVersion: L,
11
+ menuItems: f,
12
12
  userInfoDropdownItems: c,
13
- collapsed: t,
13
+ collapsed: r,
14
14
  username: a,
15
15
  isRtl: d,
16
- openKeys: g,
17
- toggleCollapsed: o,
18
- onClick: w,
16
+ openKeys: w,
17
+ toggleCollapsed: i,
18
+ onClick: g,
19
19
  handleMenuClickUserInfo: s,
20
- handleOpenChange: x
20
+ handleOpenChange: C
21
21
  }) => {
22
- const m = /@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g, k = t ? 54 : 250, C = t ? 50 : 250;
23
- return localStorage.getItem("theme") === "portal-theme" ? import("../../portal-theme-BarSJQdA.js") : import("../../theme-94RKb7HE.js"), /* @__PURE__ */ i("div", { style: { width: k }, className: "main-container", children: [
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: [
25
- /* @__PURE__ */ i("div", { className: "flex-row-center", children: [
26
- l,
27
- /* @__PURE__ */ i("h4", { className: "station ml-5", children: [
22
+ const m = /@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g, x = r ? 54 : 250, k = r ? 50 : 250;
23
+ return /* @__PURE__ */ o("div", { style: { width: x }, className: "main-container", children: [
24
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { children: r ? /* @__PURE__ */ e("div", { className: "flex-col-center mt-15", children: d ? /* @__PURE__ */ e(v, { onClick: i, className: "pointer", color: "var(--color-primary)" }) : /* @__PURE__ */ e(p, { onClick: i, className: "pointer", color: "var(--color-primary)" }) }) : /* @__PURE__ */ o("div", { className: "space-around-center", children: [
25
+ /* @__PURE__ */ o("div", { className: "flex-row-center", children: [
26
+ n,
27
+ /* @__PURE__ */ o("h4", { className: "station ml-5", children: [
28
28
  u,
29
- r ? /* @__PURE__ */ i(M, { children: [
29
+ t ? /* @__PURE__ */ o(M, { children: [
30
30
  /* @__PURE__ */ e("br", {}),
31
31
  " ",
32
- r,
32
+ t,
33
33
  ": ",
34
- f
34
+ L
35
35
  ] }) : ""
36
36
  ] })
37
37
  ] }),
38
- d ? /* @__PURE__ */ e(p, { onClick: o, className: "pointer" }) : /* @__PURE__ */ e(v, { onClick: o, className: "pointer" })
38
+ d ? /* @__PURE__ */ e(p, { onClick: i, className: "pointer", color: "var(--color-primary)" }) : /* @__PURE__ */ e(v, { onClick: i, className: "pointer", color: "var(--color-primary)" })
39
39
  ] }) }) }),
40
40
  /* @__PURE__ */ e(
41
41
  R,
42
42
  {
43
- onClick: w,
43
+ onClick: g,
44
44
  mode: "inline",
45
- onOpenChange: x,
46
- openKeys: g,
45
+ onOpenChange: C,
46
+ openKeys: w,
47
47
  selectedKeys: [location.pathname.slice(location.pathname.lastIndexOf("/"), location.pathname.length)],
48
- items: t ? void 0 : L,
49
- expandIcon: /* @__PURE__ */ e(N, {}),
48
+ items: r ? void 0 : f,
49
+ expandIcon: /* @__PURE__ */ e(N, { color: "var(--color-primary)" }),
50
50
  style: {
51
- height: t ? "82vh" : "80vh",
51
+ height: r ? "82vh" : "80vh",
52
52
  //menuHeight,
53
- width: C,
53
+ width: k,
54
54
  backgroundColor: "var(--color-background)",
55
55
  border: "none"
56
56
  },
57
57
  className: "menu side-menu"
58
58
  }
59
59
  ),
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 }) }),
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, {}) })
60
+ r ? /* @__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 }) }),
61
+ r ? /* @__PURE__ */ e("div", { className: "flex-col-center mb-30", children: /* @__PURE__ */ e(V, {}) }) : /* @__PURE__ */ e("div", { className: "logo-small-container", children: /* @__PURE__ */ e(H, {}) })
62
62
  ] });
63
63
  };
64
64
  export {
65
- j as SideMenu
65
+ Z as SideMenu
66
66
  };
@@ -1,16 +1,16 @@
1
- import { jsx as n } from "react/jsx-runtime";
1
+ import { jsx as t } from "react/jsx-runtime";
2
2
  import { DataGrid as l, gridClasses as o } from "@mui/x-data-grid";
3
- const p = ({
3
+ const c = ({
4
4
  rows: r,
5
- isFetching: a,
6
- columnsDefinitions: t
7
- }) => (localStorage.getItem("theme") === "portal-theme" ? import("../../portal-theme-BarSJQdA.js") : import("../../theme-94RKb7HE.js"), /* @__PURE__ */ n(
5
+ isFetching: n,
6
+ columnsDefinitions: e
7
+ }) => /* @__PURE__ */ t(
8
8
  l,
9
9
  {
10
- loading: (!r || !r.length) && a,
11
- rows: r.map((e, i) => (e.id = i, e)),
12
- columns: t,
13
- getRowClassName: (e) => e.id === r.length - 1 ? "last-row" : "",
10
+ loading: (!r || !r.length) && n,
11
+ rows: r.map((a, i) => (a.id = i, a)),
12
+ columns: e,
13
+ getRowClassName: (a) => a.id === r.length - 1 ? "last-row" : "",
14
14
  sx: {
15
15
  "& .last-row": {
16
16
  "& .MuiDataGrid-cellContent": {
@@ -115,7 +115,7 @@ const p = ({
115
115
  }
116
116
  }
117
117
  }
118
- ));
118
+ );
119
119
  export {
120
- p as TotalDataGrid
120
+ c as TotalDataGrid
121
121
  };
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { U as t } from "../../UserInfoDropdown-Cql8tlJU.js";
2
+ import { U as t } from "../../UserInfoDropdown-GTCkmg6H.js";
3
3
  import "../../portal-utils/cn.js";
4
4
  export {
5
5
  t as UserInfoDropdown
@@ -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-Cql8tlJU.js";
3
+ import { U as o } from "../../UserInfoDropdown-GTCkmg6H.js";
4
4
  const n = {
5
5
  title: "User Info Dropdown",
6
6
  component: o,
@@ -1,28 +1,29 @@
1
- import { ConfirmationModal as t } from "./ConfirmationModal/ConfirmationModal.js";
2
- import { CustomButton as m } from "./CustomButton/CustomButton.js";
3
- import { CustomFooter as f } from "./CustomFooter/CustomFooter.js";
1
+ import '../assets/globals.css';/* empty css */
2
+ import { ConfirmationModal as m } from "./ConfirmationModal/ConfirmationModal.js";
3
+ import { CustomButton as e } from "./CustomButton/CustomButton.js";
4
+ import { CustomFooter as a } from "./CustomFooter/CustomFooter.js";
4
5
  import { CustomPagination as n } from "./CustomPagination/CustomPagination.js";
5
- import { ErrorModal as i } from "./ErrorModal/ErrorModal.js";
6
- import { InfoModal as s } from "./InfoModal/InfoModal.js";
7
- import { KpiCard as C } from "./KpiCard/KpiCard.js";
8
- import { KpiWrapper as M } from "./KpiWrapper/KpiWrapper.js";
9
- import { LoadingAnimation as D } from "./LoadingAnimation/LoadingAnimation.js";
10
- import { Login as K } from "./Login/Login.js";
11
- import { SideMenu as U } from "./SideMenu/SideMenu.js";
12
- import { TotalDataGrid as A } from "./TotalDataGrid/TotalDataGrid.js";
13
- import { U as E } from "../UserInfoDropdown-Cql8tlJU.js";
6
+ import { ErrorModal as d } from "./ErrorModal/ErrorModal.js";
7
+ import { InfoModal as u } from "./InfoModal/InfoModal.js";
8
+ import { KpiCard as l } from "./KpiCard/KpiCard.js";
9
+ import { KpiWrapper as g } from "./KpiWrapper/KpiWrapper.js";
10
+ import { LoadingAnimation as I } from "./LoadingAnimation/LoadingAnimation.js";
11
+ import { Login as L } from "./Login/Login.js";
12
+ import { SideMenu as w } from "./SideMenu/SideMenu.js";
13
+ import { TotalDataGrid as B } from "./TotalDataGrid/TotalDataGrid.js";
14
+ import { U as F } from "../UserInfoDropdown-GTCkmg6H.js";
14
15
  export {
15
- t as ConfirmationModal,
16
- m as CustomButton,
17
- f as CustomFooter,
16
+ m as ConfirmationModal,
17
+ e as CustomButton,
18
+ a as CustomFooter,
18
19
  n as CustomPagination,
19
- i as ErrorModal,
20
- s as InfoModal,
21
- C as KpiCard,
22
- M as KpiWrapper,
23
- D as LoadingAnimation,
24
- K as Login,
25
- U as SideMenu,
26
- A as TotalDataGrid,
27
- E as UserInfoDropdown
20
+ d as ErrorModal,
21
+ u as InfoModal,
22
+ l as KpiCard,
23
+ g as KpiWrapper,
24
+ I as LoadingAnimation,
25
+ L as Login,
26
+ w as SideMenu,
27
+ B as TotalDataGrid,
28
+ F as UserInfoDropdown
28
29
  };
package/dist/main.js CHANGED
@@ -1,47 +1,48 @@
1
- import { ConfirmationModal as e } from "./components/ConfirmationModal/ConfirmationModal.js";
2
- import { CustomButton as m } from "./components/CustomButton/CustomButton.js";
3
- import { CustomFooter as p } from "./components/CustomFooter/CustomFooter.js";
4
- import { CustomPagination as n } from "./components/CustomPagination/CustomPagination.js";
5
- import { ErrorModal as i } from "./components/ErrorModal/ErrorModal.js";
6
- import { InfoModal as d } from "./components/InfoModal/InfoModal.js";
7
- import { KpiCard as g } from "./components/KpiCard/KpiCard.js";
8
- import { KpiWrapper as s } from "./components/KpiWrapper/KpiWrapper.js";
9
- import { LoadingAnimation as L } from "./components/LoadingAnimation/LoadingAnimation.js";
10
- import { Login as P } from "./components/Login/Login.js";
11
- import { SideMenu as h } from "./components/SideMenu/SideMenu.js";
12
- import { TotalDataGrid as A } from "./components/TotalDataGrid/TotalDataGrid.js";
13
- import { U as I } from "./UserInfoDropdown-Cql8tlJU.js";
14
- import { chunkArray as b } from "./portal-utils/chunkArray.js";
15
- import { cn as v } from "./portal-utils/cn.js";
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";
17
- import { LogLevel as z, createLogger as H } from "./portal-utils/loggerService.js";
18
- import { getPageCount as N } from "./portal-utils/pageCount.js";
1
+ import './assets/globals.css';/* empty css */
2
+ import { ConfirmationModal as t } from "./components/ConfirmationModal/ConfirmationModal.js";
3
+ import { CustomButton as p } from "./components/CustomButton/CustomButton.js";
4
+ import { CustomFooter as a } from "./components/CustomFooter/CustomFooter.js";
5
+ import { CustomPagination as i } from "./components/CustomPagination/CustomPagination.js";
6
+ import { ErrorModal as u } from "./components/ErrorModal/ErrorModal.js";
7
+ import { InfoModal as l } from "./components/InfoModal/InfoModal.js";
8
+ import { KpiCard as c } from "./components/KpiCard/KpiCard.js";
9
+ import { KpiWrapper as C } from "./components/KpiWrapper/KpiWrapper.js";
10
+ import { LoadingAnimation as M } from "./components/LoadingAnimation/LoadingAnimation.js";
11
+ import { Login as U } from "./components/Login/Login.js";
12
+ import { SideMenu as y } from "./components/SideMenu/SideMenu.js";
13
+ import { TotalDataGrid as D } from "./components/TotalDataGrid/TotalDataGrid.js";
14
+ import { U as K } from "./UserInfoDropdown-GTCkmg6H.js";
15
+ import { chunkArray as k } from "./portal-utils/chunkArray.js";
16
+ import { cn as w } from "./portal-utils/cn.js";
17
+ 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";
18
+ import { LogLevel as H, createLogger as J } from "./portal-utils/loggerService.js";
19
+ import { getPageCount as O } from "./portal-utils/pageCount.js";
19
20
  export {
20
- e as ConfirmationModal,
21
- m as CustomButton,
22
- p as CustomFooter,
23
- n as CustomPagination,
24
- i as ErrorModal,
25
- d as InfoModal,
26
- g as KpiCard,
27
- s as KpiWrapper,
28
- L as LoadingAnimation,
29
- z as LogLevel,
30
- P as Login,
31
- h as SideMenu,
32
- A as TotalDataGrid,
33
- I as UserInfoDropdown,
34
- b as chunkArray,
35
- v as cn,
36
- H as createLogger,
37
- B as currency,
38
- E as date,
39
- F as datetime,
40
- G as decimal,
41
- S as fuelUnitPrice,
42
- T as fuelVolume,
43
- N as getPageCount,
44
- V as hours,
45
- W as number,
46
- j as time
21
+ t as ConfirmationModal,
22
+ p as CustomButton,
23
+ a as CustomFooter,
24
+ i as CustomPagination,
25
+ u as ErrorModal,
26
+ l as InfoModal,
27
+ c as KpiCard,
28
+ C as KpiWrapper,
29
+ M as LoadingAnimation,
30
+ H as LogLevel,
31
+ U as Login,
32
+ y as SideMenu,
33
+ D as TotalDataGrid,
34
+ K as UserInfoDropdown,
35
+ k as chunkArray,
36
+ w as cn,
37
+ J as createLogger,
38
+ E as currency,
39
+ F as date,
40
+ G as datetime,
41
+ S as decimal,
42
+ T as fuelUnitPrice,
43
+ V as fuelVolume,
44
+ O as getPageCount,
45
+ W as hours,
46
+ j as number,
47
+ q as time
47
48
  };
package/package.json CHANGED
@@ -2,19 +2,15 @@
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-beta1",
5
+ "version": "0.0.33",
6
6
  "type": "module",
7
7
  "files": [
8
- "dist",
9
- "src/theme/theme.scss",
10
- "src/theme/portal-theme.scss"
8
+ "dist"
11
9
  ],
12
10
  "exports": {
13
11
  "./components": "./dist/components/index.js",
14
12
  "./types": "./dist/types/index.js",
15
- "./portal-utils": "./dist/portal-utils/index.js",
16
- "./theme.css": "./dist/assets/theme.css",
17
- "./portal-theme.css": "./dist/assets/portal-theme.css"
13
+ "./portal-utils": "./dist/portal-utils/index.js"
18
14
  },
19
15
  "scripts": {
20
16
  "build": "tsc && vite build",
@@ -1 +0,0 @@
1
- :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}
@@ -1,43 +0,0 @@
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
- }
@@ -1,43 +0,0 @@
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
- }