virtuo-ui-library 1.0.5 → 1.0.6

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
@@ -31,7 +31,8 @@ var index_exports = {};
31
31
  __export(index_exports, {
32
32
  Button: () => Button,
33
33
  Card: () => Card,
34
- EcommerceCard: () => EcommerceCard
34
+ EcommerceCard: () => EcommerceCard,
35
+ ProfileCard: () => ProfileCard
35
36
  });
36
37
  module.exports = __toCommonJS(index_exports);
37
38
 
@@ -433,9 +434,30 @@ var EcommerceCard = ({
433
434
  ))
434
435
  );
435
436
  };
437
+
438
+ // src/components/ProfileCard/ProfileCard.jsx
439
+ var import_react4 = __toESM(require("react"));
440
+ var ProfileCard = ({
441
+ name = "John Doe",
442
+ bio = "Software Engineer | Tech Enthusiast",
443
+ avatar = "https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?w=600&q=80",
444
+ accent = "#6366f1",
445
+ bg = "#0f172a",
446
+ onFollowClick = () => {
447
+ },
448
+ onMessageClick = () => {
449
+ }
450
+ }) => {
451
+ const alpha = (hex, op) => {
452
+ const r = parseInt(hex.slice(1, 3), 16), g = parseInt(hex.slice(3, 5), 16), b = parseInt(hex.slice(5, 7), 16);
453
+ return "rgba(" + r + "," + g + "," + b + "," + op + ")";
454
+ };
455
+ return /* @__PURE__ */ import_react4.default.createElement("div", { style: { background: bg, borderRadius: "20px", padding: "24px", width: "280px", color: "#fff", fontFamily: "system-ui,sans-serif", boxShadow: "0 10px 40px rgba(0,0,0,0.5)", border: "1px solid " + alpha(accent, 0.25), position: "relative", overflow: "hidden" } }, /* @__PURE__ */ import_react4.default.createElement("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", gap: "12px" } }, /* @__PURE__ */ import_react4.default.createElement("div", { style: { width: "80px", height: "80px", borderRadius: "50%", overflow: "hidden", border: "3px solid " + alpha(accent, 0.3) } }, /* @__PURE__ */ import_react4.default.createElement("img", { src: avatar, alt: name, style: { width: "100%", height: "100%", objectFit: "cover" } })), /* @__PURE__ */ import_react4.default.createElement("div", { style: { fontSize: "18px", fontWeight: "700", color: "#fff" } }, name), /* @__PURE__ */ import_react4.default.createElement("div", { style: { fontSize: "13px", color: "rgba(255,255,255,0.45)", textAlign: "center" } }, bio), /* @__PURE__ */ import_react4.default.createElement("div", { style: { display: "flex", gap: "12px", marginTop: "12px" } }, /* @__PURE__ */ import_react4.default.createElement("button", { onClick: onFollowClick, style: { padding: "8px 16px", borderRadius: "8px", border: "none", background: "linear-gradient(135deg, " + accent + ", " + alpha(accent, 0.7) + ")", color: "#fff", fontSize: "13px", fontWeight: "700", cursor: "pointer", fontFamily: "inherit" } }, "Follow"), /* @__PURE__ */ import_react4.default.createElement("button", { onClick: onMessageClick, style: { padding: "8px 16px", borderRadius: "8px", border: "1px solid " + alpha(accent, 0.3), background: "transparent", color: accent, fontSize: "13px", fontWeight: "700", cursor: "pointer", fontFamily: "inherit" } }, "Message"))));
456
+ };
436
457
  // Annotate the CommonJS export names for ESM import in node:
437
458
  0 && (module.exports = {
438
459
  Button,
439
460
  Card,
440
- EcommerceCard
461
+ EcommerceCard,
462
+ ProfileCard
441
463
  });
package/dist/index.mjs CHANGED
@@ -396,8 +396,29 @@ var EcommerceCard = ({
396
396
  ))
397
397
  );
398
398
  };
399
+
400
+ // src/components/ProfileCard/ProfileCard.jsx
401
+ import React4 from "react";
402
+ var ProfileCard = ({
403
+ name = "John Doe",
404
+ bio = "Software Engineer | Tech Enthusiast",
405
+ avatar = "https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?w=600&q=80",
406
+ accent = "#6366f1",
407
+ bg = "#0f172a",
408
+ onFollowClick = () => {
409
+ },
410
+ onMessageClick = () => {
411
+ }
412
+ }) => {
413
+ const alpha = (hex, op) => {
414
+ const r = parseInt(hex.slice(1, 3), 16), g = parseInt(hex.slice(3, 5), 16), b = parseInt(hex.slice(5, 7), 16);
415
+ return "rgba(" + r + "," + g + "," + b + "," + op + ")";
416
+ };
417
+ return /* @__PURE__ */ React4.createElement("div", { style: { background: bg, borderRadius: "20px", padding: "24px", width: "280px", color: "#fff", fontFamily: "system-ui,sans-serif", boxShadow: "0 10px 40px rgba(0,0,0,0.5)", border: "1px solid " + alpha(accent, 0.25), position: "relative", overflow: "hidden" } }, /* @__PURE__ */ React4.createElement("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", gap: "12px" } }, /* @__PURE__ */ React4.createElement("div", { style: { width: "80px", height: "80px", borderRadius: "50%", overflow: "hidden", border: "3px solid " + alpha(accent, 0.3) } }, /* @__PURE__ */ React4.createElement("img", { src: avatar, alt: name, style: { width: "100%", height: "100%", objectFit: "cover" } })), /* @__PURE__ */ React4.createElement("div", { style: { fontSize: "18px", fontWeight: "700", color: "#fff" } }, name), /* @__PURE__ */ React4.createElement("div", { style: { fontSize: "13px", color: "rgba(255,255,255,0.45)", textAlign: "center" } }, bio), /* @__PURE__ */ React4.createElement("div", { style: { display: "flex", gap: "12px", marginTop: "12px" } }, /* @__PURE__ */ React4.createElement("button", { onClick: onFollowClick, style: { padding: "8px 16px", borderRadius: "8px", border: "none", background: "linear-gradient(135deg, " + accent + ", " + alpha(accent, 0.7) + ")", color: "#fff", fontSize: "13px", fontWeight: "700", cursor: "pointer", fontFamily: "inherit" } }, "Follow"), /* @__PURE__ */ React4.createElement("button", { onClick: onMessageClick, style: { padding: "8px 16px", borderRadius: "8px", border: "1px solid " + alpha(accent, 0.3), background: "transparent", color: accent, fontSize: "13px", fontWeight: "700", cursor: "pointer", fontFamily: "inherit" } }, "Message"))));
418
+ };
399
419
  export {
400
420
  Button,
401
421
  Card,
402
- EcommerceCard
422
+ EcommerceCard,
423
+ ProfileCard
403
424
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "virtuo-ui-library",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Virtual UI React Component Library",
5
5
  "license": "ISC",
6
6
  "author": "Ritik Saini",