mobigrid-module 1.1.0 → 1.1.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/components/InvalidConfig.tsx +26 -0
- package/components/LoadingConfig.tsx +38 -0
- package/dist/components/InvalidConfig.d.ts +2 -0
- package/dist/components/LoadingConfig.d.ts +2 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +70 -0
- package/dist/index.js.map +1 -0
- package/dist/index.tsx +1 -1
- package/dist/index.tsx.map +1 -1
- package/index.tsx +6 -64
- package/package.json +4 -2
- package/tsconfig.json +36 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
import React from "react";
|
2
|
+
|
3
|
+
export default function InvalidConfig() {
|
4
|
+
return (
|
5
|
+
<div
|
6
|
+
style={{
|
7
|
+
display: "flex",
|
8
|
+
justifyContent: "center",
|
9
|
+
alignItems: "center",
|
10
|
+
height: "100vh",
|
11
|
+
}}
|
12
|
+
>
|
13
|
+
<div style={{ position: "absolute" }}>
|
14
|
+
<svg
|
15
|
+
className="h-5 w-5 mx-auto mb-2"
|
16
|
+
xmlns="http://www.w3.org/2000/svg"
|
17
|
+
viewBox="0 0 24 24"
|
18
|
+
fill="red"
|
19
|
+
>
|
20
|
+
<path d="M18.3 5.71a.996.996 0 00-1.41 0L12 10.59 7.11 5.7A.996.996 0 105.7 7.11L10.59 12 5.7 16.89a.996.996 0 101.41 1.41L12 13.41l4.89 4.89a.996.996 0 101.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z" />
|
21
|
+
</svg>
|
22
|
+
<div>Invalid configuration</div>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
);
|
26
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import React from "react";
|
2
|
+
|
3
|
+
export default function LoadingConfig() {
|
4
|
+
return (
|
5
|
+
<div
|
6
|
+
style={{
|
7
|
+
display: "flex",
|
8
|
+
justifyContent: "center",
|
9
|
+
alignItems: "center",
|
10
|
+
height: "100vh",
|
11
|
+
}}
|
12
|
+
>
|
13
|
+
<div style={{ position: "absolute" }}>
|
14
|
+
<svg
|
15
|
+
className="animate-spin h-5 w-5 mx-auto mb-2"
|
16
|
+
xmlns="http://www.w3.org/2000/svg"
|
17
|
+
fill="none"
|
18
|
+
viewBox="0 0 24 24"
|
19
|
+
>
|
20
|
+
<circle
|
21
|
+
className="opacity-25"
|
22
|
+
cx="12"
|
23
|
+
cy="12"
|
24
|
+
r="10"
|
25
|
+
stroke="currentColor"
|
26
|
+
strokeWidth="4"
|
27
|
+
></circle>
|
28
|
+
<path
|
29
|
+
className="opacity-75"
|
30
|
+
fill="currentColor"
|
31
|
+
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
32
|
+
></path>
|
33
|
+
</svg>
|
34
|
+
<div>Loading configuration...</div>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
);
|
38
|
+
}
|