@hortiview/shared-components 0.0.8936 → 0.0.9023
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/FormComponents/FormDatePicker/FormDatePicker.d.ts +1 -1
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +30024 -78
- package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +17 -3
- package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +5 -5
- package/package.json +1 -1
|
@@ -5,11 +5,18 @@ import { s as c } from "../../../loadingSpinner.module-CLtqSMWA.js";
|
|
|
5
5
|
const C = ({
|
|
6
6
|
size: i,
|
|
7
7
|
center: o = !1,
|
|
8
|
-
text: e
|
|
8
|
+
text: e,
|
|
9
9
|
textPosition: a = "bottom",
|
|
10
10
|
color: n = "primary",
|
|
11
11
|
spinnerOnly: d = !1
|
|
12
|
-
}) => i === "big" ? /* @__PURE__ */ r(p, { text: e }) : d ? /* @__PURE__ */ r(
|
|
12
|
+
}) => i === "big" ? /* @__PURE__ */ r(p, { text: e }) : d ? /* @__PURE__ */ r(
|
|
13
|
+
t,
|
|
14
|
+
{
|
|
15
|
+
"data-testid": "loading-spinner",
|
|
16
|
+
themeColor: n,
|
|
17
|
+
indicatorSize: i ?? "md"
|
|
18
|
+
}
|
|
19
|
+
) : /* @__PURE__ */ r(
|
|
13
20
|
l,
|
|
14
21
|
{
|
|
15
22
|
variant: "standard",
|
|
@@ -23,7 +30,14 @@ const C = ({
|
|
|
23
30
|
primaryAlign: "center",
|
|
24
31
|
secondaryAlign: "center",
|
|
25
32
|
children: [
|
|
26
|
-
/* @__PURE__ */ r(
|
|
33
|
+
/* @__PURE__ */ r(
|
|
34
|
+
t,
|
|
35
|
+
{
|
|
36
|
+
"data-testid": "loading-spinner",
|
|
37
|
+
themeColor: n,
|
|
38
|
+
indicatorSize: i ?? "lg"
|
|
39
|
+
}
|
|
40
|
+
),
|
|
27
41
|
/* @__PURE__ */ r(m, { themeColor: `text-${n}-on-background`, tag: "div", children: e })
|
|
28
42
|
]
|
|
29
43
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { a as
|
|
3
|
-
import { LoadingSpinner as
|
|
2
|
+
import { a as r, s as e } from "../../../react.esm-Dy4VzU4L.js";
|
|
3
|
+
import { LoadingSpinner as o } from "./LoadingSpinner.js";
|
|
4
4
|
import { d as a, t as i, g as n } from "../../../vi.JYQecGiw-BbUbJcT8.js";
|
|
5
5
|
a("LoadingSpinner Test", () => {
|
|
6
6
|
i("render LoadingSpinner without additional params", () => {
|
|
7
|
-
|
|
7
|
+
r(/* @__PURE__ */ t(o, {})), n(e.getByRole("progressbar")).toBeInTheDocument();
|
|
8
8
|
}), i("render LoadingSpinner with spinner only", () => {
|
|
9
|
-
|
|
9
|
+
r(/* @__PURE__ */ t(o, { spinnerOnly: !0 })), n(e.getByRole("progressbar")).toBeInTheDocument(), n(e.queryByText("Loading")).not.toBeInTheDocument();
|
|
10
10
|
}), i("render LoadingSpinner with custom loading text", () => {
|
|
11
|
-
|
|
11
|
+
r(/* @__PURE__ */ t(o, { text: "Please wait..." })), n(e.getByText("Please wait...")).toBeInTheDocument();
|
|
12
12
|
});
|
|
13
13
|
});
|
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.9023",
|
|
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>",
|