virtual-ui-lib-clone 1.0.0 → 1.0.1

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
@@ -1,6 +1,8 @@
1
+ var __create = Object.create;
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
4
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
7
  var __export = (target, all) => {
6
8
  for (var name in all)
@@ -14,13 +16,22 @@ var __copyProps = (to, from, except, desc) => {
14
16
  }
15
17
  return to;
16
18
  };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
17
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
28
 
19
29
  // src/index.js
20
30
  var index_exports = {};
21
31
  __export(index_exports, {
22
32
  Button: () => Button_default,
23
- Card: () => Card
33
+ Card: () => Card,
34
+ ProfileCard: () => ProfileCard
24
35
  });
25
36
  module.exports = __toCommonJS(index_exports);
26
37
 
@@ -195,8 +206,74 @@ var Card = ({
195
206
  footer && /* @__PURE__ */ React.createElement("div", { style: footerStyle }, footer)
196
207
  );
197
208
  };
209
+
210
+ // src/components/profileCard/ProfileCard.jsx
211
+ var import_react3 = __toESM(require("react"));
212
+ var ProfileCard = ({
213
+ name = "John Doe",
214
+ role = "Frontend Developer",
215
+ avatar = "https://via.placeholder.com/100",
216
+ bgColor = "#ffffff",
217
+ textColor = "#333",
218
+ accentColor = "#4CAF50",
219
+ width = "260px"
220
+ }) => {
221
+ const [isHovered, setIsHovered] = (0, import_react3.useState)(false);
222
+ const styles = {
223
+ card: {
224
+ width,
225
+ backgroundColor: bgColor,
226
+ color: textColor,
227
+ padding: "20px",
228
+ borderRadius: "12px",
229
+ boxShadow: isHovered ? "0 8px 20px rgba(0,0,0,0.2)" : "0 4px 10px rgba(0,0,0,0.1)",
230
+ textAlign: "center",
231
+ transition: "0.3s",
232
+ cursor: "pointer"
233
+ },
234
+ avatar: {
235
+ width: "80px",
236
+ height: "80px",
237
+ borderRadius: "50%",
238
+ objectFit: "cover",
239
+ marginBottom: "10px",
240
+ border: `3px solid ${accentColor}`
241
+ },
242
+ name: {
243
+ fontSize: "18px",
244
+ fontWeight: "bold",
245
+ margin: "5px 0"
246
+ },
247
+ role: {
248
+ fontSize: "14px",
249
+ opacity: 0.7
250
+ },
251
+ button: {
252
+ marginTop: "12px",
253
+ padding: "8px 12px",
254
+ border: "none",
255
+ borderRadius: "6px",
256
+ backgroundColor: accentColor,
257
+ color: "#fff",
258
+ cursor: "pointer"
259
+ }
260
+ };
261
+ return /* @__PURE__ */ import_react3.default.createElement(
262
+ "div",
263
+ {
264
+ style: styles.card,
265
+ onMouseEnter: () => setIsHovered(true),
266
+ onMouseLeave: () => setIsHovered(false)
267
+ },
268
+ /* @__PURE__ */ import_react3.default.createElement("img", { src: avatar, alt: "avatar", style: styles.avatar }),
269
+ /* @__PURE__ */ import_react3.default.createElement("div", { style: styles.name }, name),
270
+ /* @__PURE__ */ import_react3.default.createElement("div", { style: styles.role }, role),
271
+ /* @__PURE__ */ import_react3.default.createElement("button", { style: styles.button }, "Follow")
272
+ );
273
+ };
198
274
  // Annotate the CommonJS export names for ESM import in node:
199
275
  0 && (module.exports = {
200
276
  Button,
201
- Card
277
+ Card,
278
+ ProfileCard
202
279
  });
package/dist/index.mjs CHANGED
@@ -169,7 +169,73 @@ var Card = ({
169
169
  footer && /* @__PURE__ */ React.createElement("div", { style: footerStyle }, footer)
170
170
  );
171
171
  };
172
+
173
+ // src/components/profileCard/ProfileCard.jsx
174
+ import React2, { useState as useState3 } from "react";
175
+ var ProfileCard = ({
176
+ name = "John Doe",
177
+ role = "Frontend Developer",
178
+ avatar = "https://via.placeholder.com/100",
179
+ bgColor = "#ffffff",
180
+ textColor = "#333",
181
+ accentColor = "#4CAF50",
182
+ width = "260px"
183
+ }) => {
184
+ const [isHovered, setIsHovered] = useState3(false);
185
+ const styles = {
186
+ card: {
187
+ width,
188
+ backgroundColor: bgColor,
189
+ color: textColor,
190
+ padding: "20px",
191
+ borderRadius: "12px",
192
+ boxShadow: isHovered ? "0 8px 20px rgba(0,0,0,0.2)" : "0 4px 10px rgba(0,0,0,0.1)",
193
+ textAlign: "center",
194
+ transition: "0.3s",
195
+ cursor: "pointer"
196
+ },
197
+ avatar: {
198
+ width: "80px",
199
+ height: "80px",
200
+ borderRadius: "50%",
201
+ objectFit: "cover",
202
+ marginBottom: "10px",
203
+ border: `3px solid ${accentColor}`
204
+ },
205
+ name: {
206
+ fontSize: "18px",
207
+ fontWeight: "bold",
208
+ margin: "5px 0"
209
+ },
210
+ role: {
211
+ fontSize: "14px",
212
+ opacity: 0.7
213
+ },
214
+ button: {
215
+ marginTop: "12px",
216
+ padding: "8px 12px",
217
+ border: "none",
218
+ borderRadius: "6px",
219
+ backgroundColor: accentColor,
220
+ color: "#fff",
221
+ cursor: "pointer"
222
+ }
223
+ };
224
+ return /* @__PURE__ */ React2.createElement(
225
+ "div",
226
+ {
227
+ style: styles.card,
228
+ onMouseEnter: () => setIsHovered(true),
229
+ onMouseLeave: () => setIsHovered(false)
230
+ },
231
+ /* @__PURE__ */ React2.createElement("img", { src: avatar, alt: "avatar", style: styles.avatar }),
232
+ /* @__PURE__ */ React2.createElement("div", { style: styles.name }, name),
233
+ /* @__PURE__ */ React2.createElement("div", { style: styles.role }, role),
234
+ /* @__PURE__ */ React2.createElement("button", { style: styles.button }, "Follow")
235
+ );
236
+ };
172
237
  export {
173
238
  Button_default as Button,
174
- Card
239
+ Card,
240
+ ProfileCard
175
241
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "virtual-ui-lib-clone",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "author": "Vasu",
5
5
  "license": "ISC",
6
6
  "description": "Virtual Ui React Component Library",