virtual-ui-lib 1.0.76 → 1.0.77

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 CHANGED
@@ -1,3 +1,9 @@
1
+ # 🌐 Live Demo
2
+
3
+ 👉 https://virtual-ui-client.onrender.com
4
+
5
+ ---
6
+
1
7
  # Virtual UI
2
8
 
3
9
  A modern and customizable **React UI Component Library** designed for fast development and clean design systems.
package/dist/index.js CHANGED
@@ -48,6 +48,7 @@ __export(index_exports, {
48
48
  PricingCard: () => PricingCard,
49
49
  ProgressBar: () => ProgressBar,
50
50
  RatingStars: () => RatingStars,
51
+ ReviewCard: () => ReviewCard,
51
52
  Sidebar: () => Sidebar,
52
53
  StatCard: () => StatCard
53
54
  });
@@ -3760,6 +3761,26 @@ var AnimatedForm = ({
3760
3761
  )
3761
3762
  );
3762
3763
  };
3764
+
3765
+ // src/components/ReviewCard/ReviewCard.jsx
3766
+ var import_react22 = __toESM(require("react"));
3767
+ var ReviewCard = ({
3768
+ avatar = "https://images.unsplash.com/photo-1633332755192-727a05c4013d?w=800&q=80",
3769
+ name = "John Doe",
3770
+ rating = 4,
3771
+ review = "This product is fantastic! It exceeded my expectations in every way.",
3772
+ date = "2 days ago",
3773
+ accent = "#6366f1",
3774
+ bg = "#0f172a",
3775
+ onProfileClick = () => {
3776
+ }
3777
+ }) => {
3778
+ const alpha = (hex, op) => {
3779
+ const r = parseInt(hex.slice(1, 3), 16), g = parseInt(hex.slice(3, 5), 16), b = parseInt(hex.slice(5, 7), 16);
3780
+ return "rgba(" + r + "," + g + "," + b + "," + op + ")";
3781
+ };
3782
+ return /* @__PURE__ */ import_react22.default.createElement("div", { style: { background: bg, borderRadius: "16px", padding: "16px", width: "320px", fontFamily: "system-ui,sans-serif", border: "1px solid rgba(255,255,255,0.08)", boxShadow: "0 4px 16px rgba(0,0,0,0.3)" } }, /* @__PURE__ */ import_react22.default.createElement("div", { style: { display: "flex", alignItems: "center", gap: "12px", marginBottom: "12px" } }, /* @__PURE__ */ import_react22.default.createElement("img", { src: avatar, alt: name, onClick: onProfileClick, style: { width: "40px", height: "40px", borderRadius: "50%", cursor: "pointer" } }), /* @__PURE__ */ import_react22.default.createElement("div", { style: { display: "flex", flexDirection: "column", gap: "2px" } }, /* @__PURE__ */ import_react22.default.createElement("div", { style: { fontSize: "14px", fontWeight: "700", color: "#fff" } }, name), /* @__PURE__ */ import_react22.default.createElement("div", { style: { display: "flex", alignItems: "center", gap: "4px" } }, Array.from({ length: 5 }).map((_, i) => /* @__PURE__ */ import_react22.default.createElement("svg", { key: i, width: "14", height: "14", viewBox: "0 0 24 24", fill: i < rating ? accent : "rgba(255,255,255,0.15)", stroke: "none" }, /* @__PURE__ */ import_react22.default.createElement("path", { d: "M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z" })))))), /* @__PURE__ */ import_react22.default.createElement("div", { style: { fontSize: "13px", color: "rgba(255,255,255,0.7)", lineHeight: 1.5, marginBottom: "12px" } }, review), /* @__PURE__ */ import_react22.default.createElement("div", { style: { fontSize: "11px", color: "rgba(255,255,255,0.4)" } }, date));
3783
+ };
3763
3784
  // Annotate the CommonJS export names for ESM import in node:
3764
3785
  0 && (module.exports = {
3765
3786
  AnimatedForm,
@@ -3781,6 +3802,7 @@ var AnimatedForm = ({
3781
3802
  PricingCard,
3782
3803
  ProgressBar,
3783
3804
  RatingStars,
3805
+ ReviewCard,
3784
3806
  Sidebar,
3785
3807
  StatCard
3786
3808
  });
package/dist/index.mjs CHANGED
@@ -3705,6 +3705,26 @@ var AnimatedForm = ({
3705
3705
  )
3706
3706
  );
3707
3707
  };
3708
+
3709
+ // src/components/ReviewCard/ReviewCard.jsx
3710
+ import React22 from "react";
3711
+ var ReviewCard = ({
3712
+ avatar = "https://images.unsplash.com/photo-1633332755192-727a05c4013d?w=800&q=80",
3713
+ name = "John Doe",
3714
+ rating = 4,
3715
+ review = "This product is fantastic! It exceeded my expectations in every way.",
3716
+ date = "2 days ago",
3717
+ accent = "#6366f1",
3718
+ bg = "#0f172a",
3719
+ onProfileClick = () => {
3720
+ }
3721
+ }) => {
3722
+ const alpha = (hex, op) => {
3723
+ const r = parseInt(hex.slice(1, 3), 16), g = parseInt(hex.slice(3, 5), 16), b = parseInt(hex.slice(5, 7), 16);
3724
+ return "rgba(" + r + "," + g + "," + b + "," + op + ")";
3725
+ };
3726
+ return /* @__PURE__ */ React22.createElement("div", { style: { background: bg, borderRadius: "16px", padding: "16px", width: "320px", fontFamily: "system-ui,sans-serif", border: "1px solid rgba(255,255,255,0.08)", boxShadow: "0 4px 16px rgba(0,0,0,0.3)" } }, /* @__PURE__ */ React22.createElement("div", { style: { display: "flex", alignItems: "center", gap: "12px", marginBottom: "12px" } }, /* @__PURE__ */ React22.createElement("img", { src: avatar, alt: name, onClick: onProfileClick, style: { width: "40px", height: "40px", borderRadius: "50%", cursor: "pointer" } }), /* @__PURE__ */ React22.createElement("div", { style: { display: "flex", flexDirection: "column", gap: "2px" } }, /* @__PURE__ */ React22.createElement("div", { style: { fontSize: "14px", fontWeight: "700", color: "#fff" } }, name), /* @__PURE__ */ React22.createElement("div", { style: { display: "flex", alignItems: "center", gap: "4px" } }, Array.from({ length: 5 }).map((_, i) => /* @__PURE__ */ React22.createElement("svg", { key: i, width: "14", height: "14", viewBox: "0 0 24 24", fill: i < rating ? accent : "rgba(255,255,255,0.15)", stroke: "none" }, /* @__PURE__ */ React22.createElement("path", { d: "M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z" })))))), /* @__PURE__ */ React22.createElement("div", { style: { fontSize: "13px", color: "rgba(255,255,255,0.7)", lineHeight: 1.5, marginBottom: "12px" } }, review), /* @__PURE__ */ React22.createElement("div", { style: { fontSize: "11px", color: "rgba(255,255,255,0.4)" } }, date));
3727
+ };
3708
3728
  export {
3709
3729
  AnimatedForm,
3710
3730
  AvatarCard,
@@ -3725,6 +3745,7 @@ export {
3725
3745
  PricingCard,
3726
3746
  ProgressBar,
3727
3747
  RatingStars,
3748
+ ReviewCard,
3728
3749
  Sidebar,
3729
3750
  StatCard
3730
3751
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "virtual-ui-lib",
3
- "version": "1.0.76",
3
+ "version": "1.0.77",
4
4
  "description": "Virtual UI React Component Library",
5
5
  "author": "Ankush",
6
6
  "license": "ISC",