virtual-ui-project-lib 1.0.4 → 1.0.5
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/README.md +2 -2
- package/dist/index.js +29 -0
- package/dist/index.mjs +28 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ A modern and customizable **React UI Component Library** designed for fast devel
|
|
|
9
9
|
## 📦 Install
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npm install virtual-ui-lib
|
|
12
|
+
npm install virtual-ui-project-lib
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
---
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
PricingCard,
|
|
25
25
|
Loader,
|
|
26
26
|
OTPInput
|
|
27
|
-
} from "virtual-ui-lib"
|
|
27
|
+
} from "virtual-ui-project-lib"
|
|
28
28
|
|
|
29
29
|
function App() {
|
|
30
30
|
return (
|
package/dist/index.js
CHANGED
|
@@ -39,6 +39,7 @@ __export(index_exports, {
|
|
|
39
39
|
ColorPicker: () => ColorPicker,
|
|
40
40
|
DatePicker: () => DatePicker,
|
|
41
41
|
ECommerceCard: () => ECommerceCard,
|
|
42
|
+
FacebookPost: () => FacebookPost,
|
|
42
43
|
FileUpload: () => FileUpload,
|
|
43
44
|
Footer: () => Footer,
|
|
44
45
|
IDCard: () => IDCard,
|
|
@@ -3997,6 +3998,33 @@ var DatePicker = ({
|
|
|
3997
3998
|
}
|
|
3998
3999
|
));
|
|
3999
4000
|
};
|
|
4001
|
+
|
|
4002
|
+
// src/components/FacebookPost/FacebookPost.jsx
|
|
4003
|
+
var import_react28 = __toESM(require("react"));
|
|
4004
|
+
var FacebookPost = ({
|
|
4005
|
+
profileImage = "https://randomuser.me/api/portraits/men/1.jpg",
|
|
4006
|
+
username = "John Doe",
|
|
4007
|
+
timestamp = "2 hours ago",
|
|
4008
|
+
content = "Just had an amazing weekend getaway! The mountains were breathtaking. \u{1F304} #NatureLovers",
|
|
4009
|
+
image = "https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=600&q=80",
|
|
4010
|
+
likes = 123,
|
|
4011
|
+
comments = 45,
|
|
4012
|
+
shares = 12,
|
|
4013
|
+
accent = "#6366f1",
|
|
4014
|
+
bg = "#0f172a",
|
|
4015
|
+
onLikeClick = () => {
|
|
4016
|
+
},
|
|
4017
|
+
onCommentClick = () => {
|
|
4018
|
+
},
|
|
4019
|
+
onShareClick = () => {
|
|
4020
|
+
}
|
|
4021
|
+
}) => {
|
|
4022
|
+
const alpha = (hex, op) => {
|
|
4023
|
+
const r = parseInt(hex.slice(1, 3), 16), g = parseInt(hex.slice(3, 5), 16), b = parseInt(hex.slice(5, 7), 16);
|
|
4024
|
+
return "rgba(" + r + "," + g + "," + b + "," + op + ")";
|
|
4025
|
+
};
|
|
4026
|
+
return /* @__PURE__ */ import_react28.default.createElement("div", { style: { background: bg, borderRadius: "16px", padding: "16px", width: "500px", fontFamily: "system-ui,sans-serif", color: "#fff", boxShadow: "0 10px 40px rgba(0,0,0,0.4)", border: "1px solid rgba(255,255,255,0.08)" } }, /* @__PURE__ */ import_react28.default.createElement("div", { style: { display: "flex", alignItems: "center", gap: "12px", marginBottom: "16px" } }, /* @__PURE__ */ import_react28.default.createElement("img", { src: profileImage, alt: username, style: { width: "40px", height: "40px", borderRadius: "50%", objectFit: "cover" } }), /* @__PURE__ */ import_react28.default.createElement("div", { style: { flex: 1 } }, /* @__PURE__ */ import_react28.default.createElement("div", { style: { fontSize: "14px", fontWeight: "700" } }, username), /* @__PURE__ */ import_react28.default.createElement("div", { style: { fontSize: "12px", color: "rgba(255,255,255,0.5)" } }, timestamp))), /* @__PURE__ */ import_react28.default.createElement("div", { style: { fontSize: "14px", lineHeight: 1.5, marginBottom: "16px" } }, content), image && /* @__PURE__ */ import_react28.default.createElement("div", { style: { width: "100%", height: "300px", borderRadius: "12px", overflow: "hidden", marginBottom: "16px" } }, /* @__PURE__ */ import_react28.default.createElement("img", { src: image, alt: "Post", style: { width: "100%", height: "100%", objectFit: "cover" } })), /* @__PURE__ */ import_react28.default.createElement("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center", fontSize: "12px", color: "rgba(255,255,255,0.5)" } }, /* @__PURE__ */ import_react28.default.createElement("div", null, likes, " likes \xB7 ", comments, " comments \xB7 ", shares, " shares"), /* @__PURE__ */ import_react28.default.createElement("div", { style: { display: "flex", gap: "16px" } }, /* @__PURE__ */ import_react28.default.createElement("button", { onClick: onLikeClick, style: { background: "none", border: "none", color: "rgba(255,255,255,0.5)", cursor: "pointer", padding: "4px 8px", borderRadius: "6px", fontSize: "12px", fontWeight: "700", display: "flex", alignItems: "center", gap: "4px" } }, /* @__PURE__ */ import_react28.default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "rgba(255,255,255,0.5)", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, /* @__PURE__ */ import_react28.default.createElement("path", { d: "M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z" })), "Like"), /* @__PURE__ */ import_react28.default.createElement("button", { onClick: onCommentClick, style: { background: "none", border: "none", color: "rgba(255,255,255,0.5)", cursor: "pointer", padding: "4px 8px", borderRadius: "6px", fontSize: "12px", fontWeight: "700", display: "flex", alignItems: "center", gap: "4px" } }, /* @__PURE__ */ import_react28.default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "rgba(255,255,255,0.5)", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, /* @__PURE__ */ import_react28.default.createElement("path", { d: "M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z" })), "Comment"), /* @__PURE__ */ import_react28.default.createElement("button", { onClick: onShareClick, style: { background: "none", border: "none", color: "rgba(255,255,255,0.5)", cursor: "pointer", padding: "4px 8px", borderRadius: "6px", fontSize: "12px", fontWeight: "700", display: "flex", alignItems: "center", gap: "4px" } }, /* @__PURE__ */ import_react28.default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "rgba(255,255,255,0.5)", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, /* @__PURE__ */ import_react28.default.createElement("path", { d: "M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8" }), /* @__PURE__ */ import_react28.default.createElement("polyline", { points: "16 6 12 2 8 6" }), /* @__PURE__ */ import_react28.default.createElement("line", { x1: "12", y1: "2", x2: "12", y2: "15" })), "Share"))));
|
|
4027
|
+
};
|
|
4000
4028
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4001
4029
|
0 && (module.exports = {
|
|
4002
4030
|
AnimatedButton,
|
|
@@ -4009,6 +4037,7 @@ var DatePicker = ({
|
|
|
4009
4037
|
ColorPicker,
|
|
4010
4038
|
DatePicker,
|
|
4011
4039
|
ECommerceCard,
|
|
4040
|
+
FacebookPost,
|
|
4012
4041
|
FileUpload,
|
|
4013
4042
|
Footer,
|
|
4014
4043
|
IDCard,
|
package/dist/index.mjs
CHANGED
|
@@ -3936,6 +3936,33 @@ var DatePicker = ({
|
|
|
3936
3936
|
}
|
|
3937
3937
|
));
|
|
3938
3938
|
};
|
|
3939
|
+
|
|
3940
|
+
// src/components/FacebookPost/FacebookPost.jsx
|
|
3941
|
+
import React28 from "react";
|
|
3942
|
+
var FacebookPost = ({
|
|
3943
|
+
profileImage = "https://randomuser.me/api/portraits/men/1.jpg",
|
|
3944
|
+
username = "John Doe",
|
|
3945
|
+
timestamp = "2 hours ago",
|
|
3946
|
+
content = "Just had an amazing weekend getaway! The mountains were breathtaking. \u{1F304} #NatureLovers",
|
|
3947
|
+
image = "https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=600&q=80",
|
|
3948
|
+
likes = 123,
|
|
3949
|
+
comments = 45,
|
|
3950
|
+
shares = 12,
|
|
3951
|
+
accent = "#6366f1",
|
|
3952
|
+
bg = "#0f172a",
|
|
3953
|
+
onLikeClick = () => {
|
|
3954
|
+
},
|
|
3955
|
+
onCommentClick = () => {
|
|
3956
|
+
},
|
|
3957
|
+
onShareClick = () => {
|
|
3958
|
+
}
|
|
3959
|
+
}) => {
|
|
3960
|
+
const alpha = (hex, op) => {
|
|
3961
|
+
const r = parseInt(hex.slice(1, 3), 16), g = parseInt(hex.slice(3, 5), 16), b = parseInt(hex.slice(5, 7), 16);
|
|
3962
|
+
return "rgba(" + r + "," + g + "," + b + "," + op + ")";
|
|
3963
|
+
};
|
|
3964
|
+
return /* @__PURE__ */ React28.createElement("div", { style: { background: bg, borderRadius: "16px", padding: "16px", width: "500px", fontFamily: "system-ui,sans-serif", color: "#fff", boxShadow: "0 10px 40px rgba(0,0,0,0.4)", border: "1px solid rgba(255,255,255,0.08)" } }, /* @__PURE__ */ React28.createElement("div", { style: { display: "flex", alignItems: "center", gap: "12px", marginBottom: "16px" } }, /* @__PURE__ */ React28.createElement("img", { src: profileImage, alt: username, style: { width: "40px", height: "40px", borderRadius: "50%", objectFit: "cover" } }), /* @__PURE__ */ React28.createElement("div", { style: { flex: 1 } }, /* @__PURE__ */ React28.createElement("div", { style: { fontSize: "14px", fontWeight: "700" } }, username), /* @__PURE__ */ React28.createElement("div", { style: { fontSize: "12px", color: "rgba(255,255,255,0.5)" } }, timestamp))), /* @__PURE__ */ React28.createElement("div", { style: { fontSize: "14px", lineHeight: 1.5, marginBottom: "16px" } }, content), image && /* @__PURE__ */ React28.createElement("div", { style: { width: "100%", height: "300px", borderRadius: "12px", overflow: "hidden", marginBottom: "16px" } }, /* @__PURE__ */ React28.createElement("img", { src: image, alt: "Post", style: { width: "100%", height: "100%", objectFit: "cover" } })), /* @__PURE__ */ React28.createElement("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center", fontSize: "12px", color: "rgba(255,255,255,0.5)" } }, /* @__PURE__ */ React28.createElement("div", null, likes, " likes \xB7 ", comments, " comments \xB7 ", shares, " shares"), /* @__PURE__ */ React28.createElement("div", { style: { display: "flex", gap: "16px" } }, /* @__PURE__ */ React28.createElement("button", { onClick: onLikeClick, style: { background: "none", border: "none", color: "rgba(255,255,255,0.5)", cursor: "pointer", padding: "4px 8px", borderRadius: "6px", fontSize: "12px", fontWeight: "700", display: "flex", alignItems: "center", gap: "4px" } }, /* @__PURE__ */ React28.createElement("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "rgba(255,255,255,0.5)", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, /* @__PURE__ */ React28.createElement("path", { d: "M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z" })), "Like"), /* @__PURE__ */ React28.createElement("button", { onClick: onCommentClick, style: { background: "none", border: "none", color: "rgba(255,255,255,0.5)", cursor: "pointer", padding: "4px 8px", borderRadius: "6px", fontSize: "12px", fontWeight: "700", display: "flex", alignItems: "center", gap: "4px" } }, /* @__PURE__ */ React28.createElement("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "rgba(255,255,255,0.5)", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, /* @__PURE__ */ React28.createElement("path", { d: "M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z" })), "Comment"), /* @__PURE__ */ React28.createElement("button", { onClick: onShareClick, style: { background: "none", border: "none", color: "rgba(255,255,255,0.5)", cursor: "pointer", padding: "4px 8px", borderRadius: "6px", fontSize: "12px", fontWeight: "700", display: "flex", alignItems: "center", gap: "4px" } }, /* @__PURE__ */ React28.createElement("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "rgba(255,255,255,0.5)", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, /* @__PURE__ */ React28.createElement("path", { d: "M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8" }), /* @__PURE__ */ React28.createElement("polyline", { points: "16 6 12 2 8 6" }), /* @__PURE__ */ React28.createElement("line", { x1: "12", y1: "2", x2: "12", y2: "15" })), "Share"))));
|
|
3965
|
+
};
|
|
3939
3966
|
export {
|
|
3940
3967
|
AnimatedButton,
|
|
3941
3968
|
AnimatedForm,
|
|
@@ -3947,6 +3974,7 @@ export {
|
|
|
3947
3974
|
ColorPicker,
|
|
3948
3975
|
DatePicker,
|
|
3949
3976
|
ECommerceCard,
|
|
3977
|
+
FacebookPost,
|
|
3950
3978
|
FileUpload,
|
|
3951
3979
|
Footer,
|
|
3952
3980
|
IDCard,
|