@hybridcore/ui 1.4.20 → 1.4.21
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/loading/styled.js +12 -7
- package/dist/main.d.ts +8 -0
- package/package.json +1 -1
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import { styled as r, Box as
|
|
2
|
-
const
|
|
1
|
+
import { styled as r, Box as o } from "@mui/material";
|
|
2
|
+
const a = r(o, {
|
|
3
3
|
shouldForwardProp: (e) => e !== "overlay" && e !== "overlayColor"
|
|
4
|
-
})(({
|
|
5
|
-
position: t === "fixed" ? "fixed" : "absolute",
|
|
4
|
+
})(({ overlayColor: e, position: t = "relative" }) => ({
|
|
6
5
|
width: "100%",
|
|
7
6
|
height: "100%",
|
|
8
7
|
display: "flex",
|
|
9
8
|
alignItems: "center",
|
|
10
9
|
justifyContent: "center",
|
|
11
|
-
backgroundColor:
|
|
12
|
-
...
|
|
10
|
+
backgroundColor: e || "rgba(255,255,255,0.15)",
|
|
11
|
+
...t === "fixed" || t === "absolute" ? {
|
|
12
|
+
top: 0,
|
|
13
|
+
left: 0,
|
|
14
|
+
zIndex: 99999
|
|
15
|
+
} : t === "relative" ? {
|
|
16
|
+
position: "relative"
|
|
17
|
+
} : {}
|
|
13
18
|
}));
|
|
14
19
|
export {
|
|
15
|
-
|
|
20
|
+
a as Container
|
|
16
21
|
};
|
package/dist/main.d.ts
CHANGED
|
@@ -771,6 +771,14 @@ declare interface SecurityLevelProps {
|
|
|
771
771
|
declare interface StyleProps extends BoxProps {
|
|
772
772
|
overlay?: boolean;
|
|
773
773
|
overlayColor?: string;
|
|
774
|
+
indicatorColor?:
|
|
775
|
+
| "primary"
|
|
776
|
+
| "inherit"
|
|
777
|
+
| "secondary"
|
|
778
|
+
| "error"
|
|
779
|
+
| "info"
|
|
780
|
+
| "success"
|
|
781
|
+
| "warning";
|
|
774
782
|
}
|
|
775
783
|
|
|
776
784
|
declare interface SubmitButton {
|