virtual-ui-lib 1.0.49 → 1.0.51
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 +44 -0
- package/dist/index.mjs +42 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -29,8 +29,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
29
29
|
// src/index.js
|
|
30
30
|
var index_exports = {};
|
|
31
31
|
__export(index_exports, {
|
|
32
|
+
Avatar: () => Avatar,
|
|
32
33
|
CodeBlock: () => CodeBlock,
|
|
33
34
|
CustomInputField: () => CustomInputField,
|
|
35
|
+
DividerLine: () => DividerLine,
|
|
34
36
|
FileUpload: () => FileUpload,
|
|
35
37
|
Loader: () => Loader,
|
|
36
38
|
LoadingSpinner: () => LoadingSpinner,
|
|
@@ -620,10 +622,52 @@ var import_react13 = __toESM(require("react"));
|
|
|
620
622
|
var Loader = ({ bg = "#0f172a", accent = "#7c3aed", size = "40px", borderRadius = "8px" }) => {
|
|
621
623
|
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
624
|
};
|
|
625
|
+
|
|
626
|
+
// src/components/Avatar/Avatar.jsx
|
|
627
|
+
var import_react14 = __toESM(require("react"));
|
|
628
|
+
var Avatar = ({
|
|
629
|
+
image = "https://i.pravatar.cc/150?img=32",
|
|
630
|
+
alt = "User Avatar",
|
|
631
|
+
size = "60px",
|
|
632
|
+
borderColor = "#7c3aed",
|
|
633
|
+
borderWidth = "4px",
|
|
634
|
+
radius = "50%"
|
|
635
|
+
}) => {
|
|
636
|
+
return /* @__PURE__ */ import_react14.default.createElement("div", { style: {
|
|
637
|
+
width: size,
|
|
638
|
+
height: size,
|
|
639
|
+
borderRadius: radius,
|
|
640
|
+
border: borderWidth + " solid " + borderColor,
|
|
641
|
+
overflow: "hidden",
|
|
642
|
+
display: "flex",
|
|
643
|
+
alignItems: "center",
|
|
644
|
+
justifyContent: "center",
|
|
645
|
+
background: "#f3f4f6"
|
|
646
|
+
} }, /* @__PURE__ */ import_react14.default.createElement("img", { src: image, alt, style: {
|
|
647
|
+
width: "100%",
|
|
648
|
+
height: "100%",
|
|
649
|
+
objectFit: "cover"
|
|
650
|
+
} }));
|
|
651
|
+
};
|
|
652
|
+
|
|
653
|
+
// src/components/DividerLine/DividerLine.jsx
|
|
654
|
+
var import_react15 = __toESM(require("react"));
|
|
655
|
+
var DividerLine = ({
|
|
656
|
+
text = "Section",
|
|
657
|
+
textColor = "#f1f5f9",
|
|
658
|
+
lineColor = "#334155",
|
|
659
|
+
spacing = "20px",
|
|
660
|
+
thickness = "2px",
|
|
661
|
+
borderRadius = "4px"
|
|
662
|
+
}) => {
|
|
663
|
+
return /* @__PURE__ */ import_react15.default.createElement("div", { style: { display: "flex", alignItems: "center", margin: spacing } }, /* @__PURE__ */ import_react15.default.createElement("div", { style: { flex: 1, height: thickness, background: lineColor, borderRadius } }), /* @__PURE__ */ import_react15.default.createElement("span", { style: { margin: "0 12px", color: textColor, fontSize: "14px", fontWeight: "600" } }, text), /* @__PURE__ */ import_react15.default.createElement("div", { style: { flex: 1, height: thickness, background: lineColor, borderRadius } }));
|
|
664
|
+
};
|
|
623
665
|
// Annotate the CommonJS export names for ESM import in node:
|
|
624
666
|
0 && (module.exports = {
|
|
667
|
+
Avatar,
|
|
625
668
|
CodeBlock,
|
|
626
669
|
CustomInputField,
|
|
670
|
+
DividerLine,
|
|
627
671
|
FileUpload,
|
|
628
672
|
Loader,
|
|
629
673
|
LoadingSpinner,
|
package/dist/index.mjs
CHANGED
|
@@ -573,9 +573,51 @@ import React13 from "react";
|
|
|
573
573
|
var Loader = ({ bg = "#0f172a", accent = "#7c3aed", size = "40px", borderRadius = "8px" }) => {
|
|
574
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
575
|
};
|
|
576
|
+
|
|
577
|
+
// src/components/Avatar/Avatar.jsx
|
|
578
|
+
import React14 from "react";
|
|
579
|
+
var Avatar = ({
|
|
580
|
+
image = "https://i.pravatar.cc/150?img=32",
|
|
581
|
+
alt = "User Avatar",
|
|
582
|
+
size = "60px",
|
|
583
|
+
borderColor = "#7c3aed",
|
|
584
|
+
borderWidth = "4px",
|
|
585
|
+
radius = "50%"
|
|
586
|
+
}) => {
|
|
587
|
+
return /* @__PURE__ */ React14.createElement("div", { style: {
|
|
588
|
+
width: size,
|
|
589
|
+
height: size,
|
|
590
|
+
borderRadius: radius,
|
|
591
|
+
border: borderWidth + " solid " + borderColor,
|
|
592
|
+
overflow: "hidden",
|
|
593
|
+
display: "flex",
|
|
594
|
+
alignItems: "center",
|
|
595
|
+
justifyContent: "center",
|
|
596
|
+
background: "#f3f4f6"
|
|
597
|
+
} }, /* @__PURE__ */ React14.createElement("img", { src: image, alt, style: {
|
|
598
|
+
width: "100%",
|
|
599
|
+
height: "100%",
|
|
600
|
+
objectFit: "cover"
|
|
601
|
+
} }));
|
|
602
|
+
};
|
|
603
|
+
|
|
604
|
+
// src/components/DividerLine/DividerLine.jsx
|
|
605
|
+
import React15 from "react";
|
|
606
|
+
var DividerLine = ({
|
|
607
|
+
text = "Section",
|
|
608
|
+
textColor = "#f1f5f9",
|
|
609
|
+
lineColor = "#334155",
|
|
610
|
+
spacing = "20px",
|
|
611
|
+
thickness = "2px",
|
|
612
|
+
borderRadius = "4px"
|
|
613
|
+
}) => {
|
|
614
|
+
return /* @__PURE__ */ React15.createElement("div", { style: { display: "flex", alignItems: "center", margin: spacing } }, /* @__PURE__ */ React15.createElement("div", { style: { flex: 1, height: thickness, background: lineColor, borderRadius } }), /* @__PURE__ */ React15.createElement("span", { style: { margin: "0 12px", color: textColor, fontSize: "14px", fontWeight: "600" } }, text), /* @__PURE__ */ React15.createElement("div", { style: { flex: 1, height: thickness, background: lineColor, borderRadius } }));
|
|
615
|
+
};
|
|
576
616
|
export {
|
|
617
|
+
Avatar,
|
|
577
618
|
CodeBlock,
|
|
578
619
|
CustomInputField,
|
|
620
|
+
DividerLine,
|
|
579
621
|
FileUpload,
|
|
580
622
|
Loader,
|
|
581
623
|
LoadingSpinner,
|