vanta-ui 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
@@ -30,7 +30,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  var index_exports = {};
31
31
  __export(index_exports, {
32
32
  Button: () => Button,
33
- Card: () => Card
33
+ Card: () => Card,
34
+ ProfileCard: () => ProfileCard
34
35
  });
35
36
  module.exports = __toCommonJS(index_exports);
36
37
 
@@ -227,8 +228,93 @@ var Button = ({
227
228
  label
228
229
  );
229
230
  };
231
+
232
+ // src/components/ProfileCard/ProfileCard.jsx
233
+ var import_react3 = __toESM(require("react"));
234
+ var ProfileCard = ({
235
+ name = "John Doe",
236
+ role = "Frontend Developer",
237
+ image = "https://via.placeholder.com/120",
238
+ bio = "Passionate about building modern web experiences.",
239
+ cardColor = "#ffffff",
240
+ textColor = "#111827",
241
+ accentColor = "#2563eb",
242
+ width = "320px",
243
+ showButton = true,
244
+ buttonText = "Follow"
245
+ }) => {
246
+ const [isFollowing, setIsFollowing] = (0, import_react3.useState)(false);
247
+ const [hover, setHover] = (0, import_react3.useState)(false);
248
+ const styles = {
249
+ card: {
250
+ width,
251
+ backgroundColor: cardColor,
252
+ color: textColor,
253
+ padding: "20px",
254
+ borderRadius: "16px",
255
+ boxShadow: hover ? "0 10px 25px rgba(0,0,0,0.15)" : "0 4px 12px rgba(0,0,0,0.1)",
256
+ textAlign: "center",
257
+ transition: "0.3s ease",
258
+ transform: hover ? "translateY(-5px)" : "translateY(0)",
259
+ fontFamily: "Arial, sans-serif"
260
+ },
261
+ image: {
262
+ width: "100px",
263
+ height: "100px",
264
+ borderRadius: "50%",
265
+ objectFit: "cover",
266
+ marginBottom: "15px"
267
+ },
268
+ name: {
269
+ margin: "8px 0",
270
+ fontSize: "22px",
271
+ fontWeight: "700"
272
+ },
273
+ role: {
274
+ color: accentColor,
275
+ fontSize: "15px",
276
+ marginBottom: "10px"
277
+ },
278
+ bio: {
279
+ fontSize: "14px",
280
+ lineHeight: "1.5",
281
+ opacity: 0.8
282
+ },
283
+ button: {
284
+ marginTop: "15px",
285
+ padding: "10px 20px",
286
+ border: "none",
287
+ borderRadius: "8px",
288
+ backgroundColor: accentColor,
289
+ color: "#fff",
290
+ cursor: "pointer",
291
+ fontSize: "14px"
292
+ }
293
+ };
294
+ return /* @__PURE__ */ import_react3.default.createElement(
295
+ "div",
296
+ {
297
+ style: styles.card,
298
+ onMouseEnter: () => setHover(true),
299
+ onMouseLeave: () => setHover(false)
300
+ },
301
+ /* @__PURE__ */ import_react3.default.createElement("img", { src: image, alt: name, style: styles.image }),
302
+ /* @__PURE__ */ import_react3.default.createElement("h2", { style: styles.name }, name),
303
+ /* @__PURE__ */ import_react3.default.createElement("p", { style: styles.role }, role),
304
+ /* @__PURE__ */ import_react3.default.createElement("p", { style: styles.bio }, bio),
305
+ showButton && /* @__PURE__ */ import_react3.default.createElement(
306
+ "button",
307
+ {
308
+ style: styles.button,
309
+ onClick: () => setIsFollowing(!isFollowing)
310
+ },
311
+ isFollowing ? "Following" : buttonText
312
+ )
313
+ );
314
+ };
230
315
  // Annotate the CommonJS export names for ESM import in node:
231
316
  0 && (module.exports = {
232
317
  Button,
233
- Card
318
+ Card,
319
+ ProfileCard
234
320
  });
package/dist/index.mjs CHANGED
@@ -191,7 +191,92 @@ var Button = ({
191
191
  label
192
192
  );
193
193
  };
194
+
195
+ // src/components/ProfileCard/ProfileCard.jsx
196
+ import React3, { useState as useState3 } from "react";
197
+ var ProfileCard = ({
198
+ name = "John Doe",
199
+ role = "Frontend Developer",
200
+ image = "https://via.placeholder.com/120",
201
+ bio = "Passionate about building modern web experiences.",
202
+ cardColor = "#ffffff",
203
+ textColor = "#111827",
204
+ accentColor = "#2563eb",
205
+ width = "320px",
206
+ showButton = true,
207
+ buttonText = "Follow"
208
+ }) => {
209
+ const [isFollowing, setIsFollowing] = useState3(false);
210
+ const [hover, setHover] = useState3(false);
211
+ const styles = {
212
+ card: {
213
+ width,
214
+ backgroundColor: cardColor,
215
+ color: textColor,
216
+ padding: "20px",
217
+ borderRadius: "16px",
218
+ boxShadow: hover ? "0 10px 25px rgba(0,0,0,0.15)" : "0 4px 12px rgba(0,0,0,0.1)",
219
+ textAlign: "center",
220
+ transition: "0.3s ease",
221
+ transform: hover ? "translateY(-5px)" : "translateY(0)",
222
+ fontFamily: "Arial, sans-serif"
223
+ },
224
+ image: {
225
+ width: "100px",
226
+ height: "100px",
227
+ borderRadius: "50%",
228
+ objectFit: "cover",
229
+ marginBottom: "15px"
230
+ },
231
+ name: {
232
+ margin: "8px 0",
233
+ fontSize: "22px",
234
+ fontWeight: "700"
235
+ },
236
+ role: {
237
+ color: accentColor,
238
+ fontSize: "15px",
239
+ marginBottom: "10px"
240
+ },
241
+ bio: {
242
+ fontSize: "14px",
243
+ lineHeight: "1.5",
244
+ opacity: 0.8
245
+ },
246
+ button: {
247
+ marginTop: "15px",
248
+ padding: "10px 20px",
249
+ border: "none",
250
+ borderRadius: "8px",
251
+ backgroundColor: accentColor,
252
+ color: "#fff",
253
+ cursor: "pointer",
254
+ fontSize: "14px"
255
+ }
256
+ };
257
+ return /* @__PURE__ */ React3.createElement(
258
+ "div",
259
+ {
260
+ style: styles.card,
261
+ onMouseEnter: () => setHover(true),
262
+ onMouseLeave: () => setHover(false)
263
+ },
264
+ /* @__PURE__ */ React3.createElement("img", { src: image, alt: name, style: styles.image }),
265
+ /* @__PURE__ */ React3.createElement("h2", { style: styles.name }, name),
266
+ /* @__PURE__ */ React3.createElement("p", { style: styles.role }, role),
267
+ /* @__PURE__ */ React3.createElement("p", { style: styles.bio }, bio),
268
+ showButton && /* @__PURE__ */ React3.createElement(
269
+ "button",
270
+ {
271
+ style: styles.button,
272
+ onClick: () => setIsFollowing(!isFollowing)
273
+ },
274
+ isFollowing ? "Following" : buttonText
275
+ )
276
+ );
277
+ };
194
278
  export {
195
279
  Button,
196
- Card
280
+ Card,
281
+ ProfileCard
197
282
  };
package/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "vanta-ui",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
- "files": ["dist"],
7
+ "files": [
8
+ "dist"
9
+ ],
8
10
  "scripts": {
9
11
  "build": "tsup"
10
12
  },