@hortiview/shared-components 0.0.7315 → 0.0.7335
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.
|
@@ -4,6 +4,7 @@ type AlertBannerProps = {
|
|
|
4
4
|
color?: 'danger' | 'info' | 'success';
|
|
5
5
|
isOpen?: boolean;
|
|
6
6
|
action?: JSX.Element;
|
|
7
|
+
isBold?: boolean;
|
|
7
8
|
};
|
|
8
|
-
export declare const AlertBanner: ({ text, color, isOpen, action }: AlertBannerProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const AlertBanner: ({ text, color, isOpen, action, isBold, }: AlertBannerProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -1,22 +1,28 @@
|
|
|
1
|
-
import { jsx as r, Fragment as
|
|
2
|
-
import { Group as
|
|
3
|
-
import { u as
|
|
1
|
+
import { jsx as r, Fragment as l, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { Group as m, TypoBody as p } from "@element/react-components";
|
|
3
|
+
import { u as d } from "../../useBreakpoint-BNeVhjjZ.js";
|
|
4
4
|
import { s as o } from "../../alertBanner.module-HneYdVzN.js";
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
const h = ({
|
|
6
|
+
text: e,
|
|
7
|
+
color: i = "info",
|
|
8
|
+
isOpen: n = !0,
|
|
9
|
+
action: s,
|
|
10
|
+
isBold: t = !0
|
|
11
|
+
}) => {
|
|
12
|
+
const { isDesktop: a } = d();
|
|
13
|
+
return n ? /* @__PURE__ */ r("div", { className: `${o.messageContainer} ${o[i]}`, children: /* @__PURE__ */ c(
|
|
14
|
+
m,
|
|
9
15
|
{
|
|
10
|
-
direction:
|
|
16
|
+
direction: a ? "horizontal" : "vertical",
|
|
11
17
|
primaryAlign: "space-between",
|
|
12
18
|
secondaryAlign: "center",
|
|
13
19
|
children: [
|
|
14
|
-
typeof e == "string" ? /* @__PURE__ */ r(
|
|
20
|
+
typeof e == "string" ? /* @__PURE__ */ r(p, { bold: t, level: 2, children: e }) : /* @__PURE__ */ r("div", { children: e }),
|
|
15
21
|
s
|
|
16
22
|
]
|
|
17
23
|
}
|
|
18
|
-
) }) : /* @__PURE__ */ r(
|
|
24
|
+
) }) : /* @__PURE__ */ r(l, {});
|
|
19
25
|
};
|
|
20
26
|
export {
|
|
21
|
-
|
|
27
|
+
h as AlertBanner
|
|
22
28
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hortiview/shared-components",
|
|
3
3
|
"description": "This is a shared component library. It should used in the HortiView platform and its modules.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.7335",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared",
|
|
7
7
|
"author": "Falk Menge <falk.menge.ext@bayer.com>",
|