virtual-ui-lib 1.0.48 → 1.0.49

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/index.js CHANGED
@@ -32,6 +32,7 @@ __export(index_exports, {
32
32
  CodeBlock: () => CodeBlock,
33
33
  CustomInputField: () => CustomInputField,
34
34
  FileUpload: () => FileUpload,
35
+ Loader: () => Loader,
35
36
  LoadingSpinner: () => LoadingSpinner,
36
37
  OtpInput: () => OtpInput,
37
38
  ResponsiveNavbar: () => ResponsiveNavbar,
@@ -613,11 +614,18 @@ var FileUpload = ({ bg = "#1e293b", textColor = "#f1f5f9", accent = "#7c3aed", r
613
614
  ), /* @__PURE__ */ import_react12.default.createElement("div", { style: { background: "#e2e8f0", borderRadius: radius, overflow: "hidden", marginTop: "10px" } }, /* @__PURE__ */ import_react12.default.createElement("div", { style: { width: `${progress}%`, background: accent, height: "8px" } }))) : /* @__PURE__ */ import_react12.default.createElement("p", null, placeholder)
614
615
  );
615
616
  };
617
+
618
+ // src/components/Loader/Loader.jsx
619
+ var import_react13 = __toESM(require("react"));
620
+ var Loader = ({ bg = "#0f172a", accent = "#7c3aed", size = "40px", borderRadius = "8px" }) => {
621
+ return /* @__PURE__ */ import_react13.default.createElement("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", background: bg, height: size, width: size, borderRadius } }, /* @__PURE__ */ import_react13.default.createElement("div", { style: { border: `4px solid ${bg}`, borderTop: `4px solid ${accent}`, borderRadius: "50%", width: "100%", height: "100%", animation: "spin 1s linear infinite" } }));
622
+ };
616
623
  // Annotate the CommonJS export names for ESM import in node:
617
624
  0 && (module.exports = {
618
625
  CodeBlock,
619
626
  CustomInputField,
620
627
  FileUpload,
628
+ Loader,
621
629
  LoadingSpinner,
622
630
  OtpInput,
623
631
  ResponsiveNavbar,
package/dist/index.mjs CHANGED
@@ -567,10 +567,17 @@ var FileUpload = ({ bg = "#1e293b", textColor = "#f1f5f9", accent = "#7c3aed", r
567
567
  ), /* @__PURE__ */ React12.createElement("div", { style: { background: "#e2e8f0", borderRadius: radius, overflow: "hidden", marginTop: "10px" } }, /* @__PURE__ */ React12.createElement("div", { style: { width: `${progress}%`, background: accent, height: "8px" } }))) : /* @__PURE__ */ React12.createElement("p", null, placeholder)
568
568
  );
569
569
  };
570
+
571
+ // src/components/Loader/Loader.jsx
572
+ import React13 from "react";
573
+ var Loader = ({ bg = "#0f172a", accent = "#7c3aed", size = "40px", borderRadius = "8px" }) => {
574
+ return /* @__PURE__ */ React13.createElement("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", background: bg, height: size, width: size, borderRadius } }, /* @__PURE__ */ React13.createElement("div", { style: { border: `4px solid ${bg}`, borderTop: `4px solid ${accent}`, borderRadius: "50%", width: "100%", height: "100%", animation: "spin 1s linear infinite" } }));
575
+ };
570
576
  export {
571
577
  CodeBlock,
572
578
  CustomInputField,
573
579
  FileUpload,
580
+ Loader,
574
581
  LoadingSpinner,
575
582
  OtpInput,
576
583
  ResponsiveNavbar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "virtual-ui-lib",
3
- "version": "1.0.48",
3
+ "version": "1.0.49",
4
4
  "description": "Virtual UI React Component Library",
5
5
  "author": "Ankush",
6
6
  "license": "ISC",