@hybridcore/ui 1.4.20 → 1.4.22

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.
@@ -1,7 +1,11 @@
1
- import { jsx as r, Fragment as i } from "react/jsx-runtime";
1
+ import { jsx as r, Fragment as m } from "react/jsx-runtime";
2
2
  import { CircularProgress as n } from "@mui/material";
3
3
  import { Container as e } from "./styled.js";
4
- const p = ({ show: o, ...t }) => o ? /* @__PURE__ */ r(e, { ...t, children: /* @__PURE__ */ r(n, {}) }) : /* @__PURE__ */ r(i, {});
4
+ const f = ({
5
+ show: o,
6
+ indicatorColor: i = "primary",
7
+ ...t
8
+ }) => o ? /* @__PURE__ */ r(e, { ...t, children: /* @__PURE__ */ r(n, { color: i }) }) : /* @__PURE__ */ r(m, {});
5
9
  export {
6
- p as Loading
10
+ f as Loading
7
11
  };
@@ -1,16 +1,21 @@
1
- import { styled as r, Box as i } from "@mui/material";
2
- const d = r(i, {
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
- })(({ overlay: e, overlayColor: o, position: t }) => ({
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: o || "rgba(255,255,255,0.15)",
12
- ...e ? { top: 0, left: 0, zIndex: 9 } : {}
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
- d as Container
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 {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hybridcore/ui",
3
3
  "description": "Hybrid Core UI Library",
4
- "version": "1.4.20",
4
+ "version": "1.4.22",
5
5
  "author": "Hybrid Core",
6
6
  "license": "ISC",
7
7
  "type": "module",