@amateescu/portal-ui-components 0.0.19 → 0.0.21-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/components/KpiWrapper/KpiWrapper.d.ts +1 -1
- package/dist/components/KpiWrapper/KpiWrapper.js +7 -6
- package/dist/components/KpiWrapper/KpiWrapper.stories.js +23 -23
- package/dist/components/KpiWrapper/KpiWrapper.types.d.ts +1 -0
- package/dist/types/Column.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { KpiWrapperProps } from './KpiWrapper.types';
|
|
2
|
-
export declare function KpiWrapper({ children, style }: KpiWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function KpiWrapper({ children, className, style }: KpiWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { cn as c } from "../../portal-utils/cn.js";
|
|
3
|
+
import '../../assets/KpiWrapper.css';const n = "_flexRowSpaceBetween_1v6py_1", r = {
|
|
4
|
+
flexRowSpaceBetween: n
|
|
4
5
|
};
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
6
|
+
function w({ children: e, className: o, style: p }) {
|
|
7
|
+
return /* @__PURE__ */ t("div", { className: c(r.flexRowSpaceBetween, o ?? ""), style: p, children: e });
|
|
7
8
|
}
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
+
w as KpiWrapper
|
|
10
11
|
};
|
|
@@ -2,13 +2,13 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { S as e } from "../../InvencoGVR-qnTq-d6S.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@mui/x-data-grid";
|
|
5
|
-
import { KpiCard as
|
|
6
|
-
import { KpiWrapper as
|
|
5
|
+
import { KpiCard as i } from "../KpiCard/KpiCard.js";
|
|
6
|
+
import { KpiWrapper as n } from "./KpiWrapper.js";
|
|
7
7
|
import "i18next";
|
|
8
8
|
import '../../assets/SideMenu.css';/* empty css */
|
|
9
|
-
const
|
|
9
|
+
const s = {
|
|
10
10
|
title: "Kpi Wrapper",
|
|
11
|
-
component:
|
|
11
|
+
component: n,
|
|
12
12
|
tags: ["autodocs"],
|
|
13
13
|
parameters: {
|
|
14
14
|
layout: "fullscreen"
|
|
@@ -19,37 +19,37 @@ const m = {
|
|
|
19
19
|
padding: "10px 10px"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
},
|
|
22
|
+
}, m = {}, K = {
|
|
23
23
|
args: {
|
|
24
24
|
children: [
|
|
25
|
-
/* @__PURE__ */ t(
|
|
26
|
-
/* @__PURE__ */ t(
|
|
27
|
-
/* @__PURE__ */ t(
|
|
25
|
+
/* @__PURE__ */ t(i, { title: "Kpi Card", content: "Kpi Card Content", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 }),
|
|
26
|
+
/* @__PURE__ */ t(i, { title: "Kpi Card 2", content: "Kpi Card Content 2", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 }),
|
|
27
|
+
/* @__PURE__ */ t(i, { title: "Kpi Card 3", content: "Kpi Card Content 3", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 })
|
|
28
28
|
]
|
|
29
29
|
}
|
|
30
|
-
},
|
|
30
|
+
}, u = {
|
|
31
31
|
args: {
|
|
32
32
|
children: [
|
|
33
|
-
/* @__PURE__ */ t(
|
|
34
|
-
/* @__PURE__ */ t(
|
|
35
|
-
/* @__PURE__ */ t(
|
|
36
|
-
/* @__PURE__ */ t(
|
|
33
|
+
/* @__PURE__ */ t(i, { title: "Kpi Card", content: "Kpi Card Content", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 }),
|
|
34
|
+
/* @__PURE__ */ t(i, { title: "Kpi Card 2", content: "Kpi Card Content 2", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 }),
|
|
35
|
+
/* @__PURE__ */ t(i, { title: "Kpi Card 3", content: "Kpi Card Content 3", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 }),
|
|
36
|
+
/* @__PURE__ */ t(i, { title: "Kpi Card 4", content: "Kpi Card Content 4", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 })
|
|
37
37
|
]
|
|
38
38
|
}
|
|
39
|
-
},
|
|
39
|
+
}, g = {
|
|
40
40
|
args: {
|
|
41
41
|
children: [
|
|
42
|
-
/* @__PURE__ */ t(
|
|
43
|
-
/* @__PURE__ */ t(
|
|
44
|
-
/* @__PURE__ */ t(
|
|
42
|
+
/* @__PURE__ */ t(i, { title: "Kpi Card", content: "Kpi Card Content", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 }),
|
|
43
|
+
/* @__PURE__ */ t(i, { title: "Kpi Card 2", content: "Kpi Card Content 2", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 }),
|
|
44
|
+
/* @__PURE__ */ t(i, { title: "Kpi Card 3", content: "Kpi Card Content 3", icon: /* @__PURE__ */ t(e, { width: 50, height: 50 }), menuCollapsed: !0 })
|
|
45
45
|
]
|
|
46
46
|
},
|
|
47
|
-
render: (
|
|
47
|
+
render: (r) => /* @__PURE__ */ t("div", { dir: "rtl", style: { margin: "20px 20px" }, children: /* @__PURE__ */ t(n, { ...r }) })
|
|
48
48
|
};
|
|
49
49
|
export {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
m as Default,
|
|
51
|
+
g as RTL,
|
|
52
|
+
K as With3Kpis,
|
|
53
|
+
u as With4Kpis,
|
|
54
|
+
s as default
|
|
55
55
|
};
|
package/dist/types/Column.d.ts
CHANGED