@hortiview/shared-components 2.8.2 → 2.8.3
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/CHANGELOG.md +6 -0
- package/dist/assets/InfoCard.css +1 -1
- package/dist/components/InfoCard/InfoCard.js +23 -21
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [2.8.3](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.8.2...v2.8.3) (2025-11-07)
|
|
2
|
+
|
|
3
|
+
### Code Refactoring
|
|
4
|
+
|
|
5
|
+
* center text of info card ([be54789](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/be54789eb0bf0222c446dc0b0af4df0a7d318bd2))
|
|
6
|
+
|
|
1
7
|
## [2.8.2](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.8.1...v2.8.2) (2025-11-07)
|
|
2
8
|
|
|
3
9
|
### Code Refactoring
|
package/dist/assets/InfoCard.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._database_x7426_1{color:var(--lmnt-theme-secondary);animation:_spin_x7426_1 4s linear infinite}@keyframes _spin_x7426_1{0%{transform:rotate(0)}to{transform:rotate(-360deg)}}._done_x7426_16{color:var(--lmnt-theme-success)}._iot_x7426_20,._platform_x7426_21,._other_x7426_22{color:var(--lmnt-theme-danger)}._crossedOut_x7426_26{position:relative;display:inline-block}._crossedOut_x7426_26:after{content:"";position:absolute;width:3rem;height:.25rem;left:50%;top:50%;background:var(--lmnt-theme-danger-on-surface);box-shadow:0 0 0 .125rem var(--lmnt-theme-background);transform:translate(-50%,calc(-50% - .25rem)) rotate(45deg);transform-origin:center;z-index:2}._fullHeight_x7426_45{height:100%}._centerText_x7426_49{text-align:center}
|
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { C as d, a as
|
|
1
|
+
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { C as d, a as _, b as h } from "../../index.es-CDMu_yu0.js";
|
|
3
3
|
import { G as m } from "../../index.es-Dw1eih7R.js";
|
|
4
|
-
import { P as
|
|
4
|
+
import { P as f } from "../../index.es-DFFyENnI.js";
|
|
5
5
|
import { T as s } from "../../index.es-1zrFd4Te.js";
|
|
6
|
-
import { Iconify as
|
|
7
|
-
import '../../assets/InfoCard.css';const
|
|
8
|
-
database:
|
|
6
|
+
import { Iconify as u } from "../Iconify/Iconify.js";
|
|
7
|
+
import '../../assets/InfoCard.css';const x = "_database_x7426_1", p = "_spin_x7426_1", g = "_done_x7426_16", C = "_iot_x7426_20", y = "_platform_x7426_21", b = "_other_x7426_22", N = "_crossedOut_x7426_26", H = "_fullHeight_x7426_45", T = "_centerText_x7426_49", n = {
|
|
8
|
+
database: x,
|
|
9
9
|
spin: p,
|
|
10
|
-
done:
|
|
11
|
-
iot:
|
|
12
|
-
platform:
|
|
13
|
-
other:
|
|
10
|
+
done: g,
|
|
11
|
+
iot: C,
|
|
12
|
+
platform: y,
|
|
13
|
+
other: b,
|
|
14
14
|
crossedOut: N,
|
|
15
|
-
fullHeight:
|
|
15
|
+
fullHeight: H,
|
|
16
|
+
centerText: T
|
|
16
17
|
}, G = ({
|
|
17
|
-
title:
|
|
18
|
+
title: t,
|
|
18
19
|
subtitle: c,
|
|
19
20
|
type: a,
|
|
20
|
-
isOutlined:
|
|
21
|
+
isOutlined: i = !0,
|
|
21
22
|
isFullHeight: r = !1
|
|
22
23
|
}) => {
|
|
23
24
|
const o = r ? n.fullHeight : "";
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ e(
|
|
25
26
|
d,
|
|
26
27
|
{
|
|
27
|
-
variant:
|
|
28
|
+
variant: i ? "outlined" : "flat",
|
|
28
29
|
"data-testid": `${a}-health-check-failed-card`,
|
|
29
30
|
bodyAlignment: "centered",
|
|
30
31
|
height: r ? "100%" : "auto",
|
|
31
|
-
children: /* @__PURE__ */
|
|
32
|
+
children: /* @__PURE__ */ e(_, { className: o, children: /* @__PURE__ */ e(f, { variant: "airy", className: o, children: /* @__PURE__ */ e(h, { className: o, children: /* @__PURE__ */ l(
|
|
32
33
|
m,
|
|
33
34
|
{
|
|
34
35
|
gap: "none",
|
|
@@ -36,22 +37,23 @@ import '../../assets/InfoCard.css';const u = "_database_1lcgt_1", p = "_spin_1lc
|
|
|
36
37
|
secondaryAlign: "center",
|
|
37
38
|
direction: "vertical",
|
|
38
39
|
fullWidth: !0,
|
|
40
|
+
className: n.centerText,
|
|
39
41
|
children: [
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ e(v, { type: a }),
|
|
43
|
+
/* @__PURE__ */ e(s, { level: 1, bold: !0, children: t }),
|
|
44
|
+
/* @__PURE__ */ e(s, { level: 2, themeColor: "text-secondary-on-background", children: c })
|
|
43
45
|
]
|
|
44
46
|
}
|
|
45
47
|
) }) }) })
|
|
46
48
|
}
|
|
47
49
|
);
|
|
48
|
-
},
|
|
50
|
+
}, k = {
|
|
49
51
|
database: "sync",
|
|
50
52
|
iot: "settings_input_antenna",
|
|
51
53
|
platform: "engineering",
|
|
52
54
|
done: "sunny-check",
|
|
53
55
|
other: "error"
|
|
54
|
-
},
|
|
56
|
+
}, v = ({ type: t }) => /* @__PURE__ */ e("span", { className: t === "iot" ? n.crossedOut : "", children: /* @__PURE__ */ e(u, { icon: k[t], className: n[t], iconSize: "xlarge" }) });
|
|
55
57
|
export {
|
|
56
58
|
G as InfoCard
|
|
57
59
|
};
|
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": "2.8.
|
|
4
|
+
"version": "2.8.3",
|
|
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>",
|