virtual-ui-project-lib 1.0.0 → 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 -6
- package/dist/index.js +194 -154
- package/dist/index.mjs +190 -153
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
# 🌐 Live Demo
|
|
2
1
|
|
|
3
|
-
👉 https://virtual-ui-client.onrender.com
|
|
4
|
-
|
|
5
|
-
---
|
|
6
2
|
|
|
7
3
|
# Virtual UI
|
|
8
4
|
|
|
@@ -13,7 +9,7 @@ A modern and customizable **React UI Component Library** designed for fast devel
|
|
|
13
9
|
## 📦 Install
|
|
14
10
|
|
|
15
11
|
```bash
|
|
16
|
-
npm install virtual-ui-lib
|
|
12
|
+
npm install virtual-ui-project-lib
|
|
17
13
|
```
|
|
18
14
|
|
|
19
15
|
---
|
|
@@ -28,7 +24,7 @@ import {
|
|
|
28
24
|
PricingCard,
|
|
29
25
|
Loader,
|
|
30
26
|
OTPInput
|
|
31
|
-
} from "virtual-ui-lib"
|
|
27
|
+
} from "virtual-ui-project-lib"
|
|
32
28
|
|
|
33
29
|
function App() {
|
|
34
30
|
return (
|
package/dist/index.js
CHANGED
|
@@ -37,9 +37,12 @@ __export(index_exports, {
|
|
|
37
37
|
Card: () => Card,
|
|
38
38
|
Charts: () => Charts,
|
|
39
39
|
ColorPicker: () => ColorPicker,
|
|
40
|
-
|
|
40
|
+
DatePicker: () => DatePicker,
|
|
41
|
+
ECommerceCard: () => ECommerceCard,
|
|
42
|
+
FacebookPost: () => FacebookPost,
|
|
41
43
|
FileUpload: () => FileUpload,
|
|
42
44
|
Footer: () => Footer,
|
|
45
|
+
IDCard: () => IDCard,
|
|
43
46
|
ImageCard: () => ImageCard,
|
|
44
47
|
ImageSlider: () => ImageSlider,
|
|
45
48
|
InvoiceCard: () => InvoiceCard,
|
|
@@ -3582,64 +3585,8 @@ var ProgressBar = ({
|
|
|
3582
3585
|
return null;
|
|
3583
3586
|
};
|
|
3584
3587
|
|
|
3585
|
-
// src/components/EcommerceCard/EcommerceCard.jsx
|
|
3586
|
-
var import_react20 = __toESM(require("react"));
|
|
3587
|
-
var EcommerceCard = ({
|
|
3588
|
-
image = "https://images.unsplash.com/photo-1505740420928-5e560c06d30e?w=600&q=80",
|
|
3589
|
-
title = "Wireless Headphones",
|
|
3590
|
-
description = "Premium noise-cancelling headphones with 40 hours battery life.",
|
|
3591
|
-
price = 199,
|
|
3592
|
-
currency = "$",
|
|
3593
|
-
accent = "#6366f1",
|
|
3594
|
-
bg = "#0f172a",
|
|
3595
|
-
onAddToCart = () => {
|
|
3596
|
-
},
|
|
3597
|
-
onViewDetails = () => {
|
|
3598
|
-
}
|
|
3599
|
-
}) => {
|
|
3600
|
-
const [hovered, setHovered] = (0, import_react20.useState)(false);
|
|
3601
|
-
const alpha = (hex, op) => {
|
|
3602
|
-
const r = parseInt(hex.slice(1, 3), 16), g = parseInt(hex.slice(3, 5), 16), b = parseInt(hex.slice(5, 7), 16);
|
|
3603
|
-
return "rgba(" + r + "," + g + "," + b + "," + op + ")";
|
|
3604
|
-
};
|
|
3605
|
-
return /* @__PURE__ */ import_react20.default.createElement(
|
|
3606
|
-
"div",
|
|
3607
|
-
{
|
|
3608
|
-
onMouseEnter: () => setHovered(true),
|
|
3609
|
-
onMouseLeave: () => setHovered(false),
|
|
3610
|
-
style: {
|
|
3611
|
-
background: bg,
|
|
3612
|
-
borderRadius: "20px",
|
|
3613
|
-
overflow: "hidden",
|
|
3614
|
-
width: "300px",
|
|
3615
|
-
border: "1px solid " + (hovered ? alpha(accent, 0.3) : "rgba(255,255,255,0.07)"),
|
|
3616
|
-
fontFamily: "system-ui,sans-serif",
|
|
3617
|
-
transition: "transform 0.25s, box-shadow 0.25s",
|
|
3618
|
-
transform: hovered ? "translateY(-4px)" : "translateY(0px)",
|
|
3619
|
-
boxShadow: hovered ? "0 16px 40px rgba(0,0,0,0.5)" : "0 4px 20px rgba(0,0,0,0.3)"
|
|
3620
|
-
}
|
|
3621
|
-
},
|
|
3622
|
-
/* @__PURE__ */ import_react20.default.createElement("div", { style: { position: "relative", width: "100%", height: "200px", overflow: "hidden" } }, /* @__PURE__ */ import_react20.default.createElement("img", { src: image, alt: title, style: { width: "100%", height: "100%", objectFit: "cover", transform: hovered ? "scale(1.05)" : "scale(1)", transition: "transform 0.4s ease" } }), /* @__PURE__ */ import_react20.default.createElement("div", { style: { position: "absolute", inset: 0, background: "linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%)" } })),
|
|
3623
|
-
/* @__PURE__ */ import_react20.default.createElement("div", { style: { padding: "18px" } }, /* @__PURE__ */ import_react20.default.createElement("h3", { style: { fontSize: "15px", fontWeight: "700", color: "#fff", margin: "0 0 8px", lineHeight: 1.4 } }, title), /* @__PURE__ */ import_react20.default.createElement("p", { style: { fontSize: "13px", color: "rgba(255,255,255,0.45)", lineHeight: 1.65, margin: "0 0 18px" } }, description), /* @__PURE__ */ import_react20.default.createElement("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "18px" } }, /* @__PURE__ */ import_react20.default.createElement("span", { style: { fontSize: "24px", fontWeight: "800", color: "#fff" } }, currency, price), /* @__PURE__ */ import_react20.default.createElement(
|
|
3624
|
-
"button",
|
|
3625
|
-
{
|
|
3626
|
-
onClick: onAddToCart,
|
|
3627
|
-
style: { padding: "8px 16px", borderRadius: "12px", border: "none", background: accent, color: "#fff", fontSize: "13px", fontWeight: "700", cursor: "pointer", fontFamily: "inherit" }
|
|
3628
|
-
},
|
|
3629
|
-
"Add to Cart"
|
|
3630
|
-
)), /* @__PURE__ */ import_react20.default.createElement(
|
|
3631
|
-
"button",
|
|
3632
|
-
{
|
|
3633
|
-
onClick: onViewDetails,
|
|
3634
|
-
style: { width: "100%", padding: "11px", borderRadius: "12px", border: "1px solid " + alpha(accent, 0.3), background: "transparent", color: accent, fontSize: "13px", fontWeight: "700", cursor: "pointer", fontFamily: "inherit" }
|
|
3635
|
-
},
|
|
3636
|
-
"View Details"
|
|
3637
|
-
))
|
|
3638
|
-
);
|
|
3639
|
-
};
|
|
3640
|
-
|
|
3641
3588
|
// src/components/AnimatedForm/AnimatedForm.jsx
|
|
3642
|
-
var
|
|
3589
|
+
var import_react20 = __toESM(require("react"));
|
|
3643
3590
|
var AnimatedForm = ({
|
|
3644
3591
|
title = "Contact Us",
|
|
3645
3592
|
description = "We'll get back to you shortly",
|
|
@@ -3649,15 +3596,15 @@ var AnimatedForm = ({
|
|
|
3649
3596
|
onSubmit = () => {
|
|
3650
3597
|
}
|
|
3651
3598
|
}) => {
|
|
3652
|
-
const [name, setName] = (0,
|
|
3653
|
-
const [email, setEmail] = (0,
|
|
3654
|
-
const [message, setMessage] = (0,
|
|
3655
|
-
const [hovered, setHovered] = (0,
|
|
3599
|
+
const [name, setName] = (0, import_react20.useState)("");
|
|
3600
|
+
const [email, setEmail] = (0, import_react20.useState)("");
|
|
3601
|
+
const [message, setMessage] = (0, import_react20.useState)("");
|
|
3602
|
+
const [hovered, setHovered] = (0, import_react20.useState)(false);
|
|
3656
3603
|
const alpha = (hex, op) => {
|
|
3657
3604
|
const r = parseInt(hex.slice(1, 3), 16), g = parseInt(hex.slice(3, 5), 16), b = parseInt(hex.slice(5, 7), 16);
|
|
3658
3605
|
return "rgba(" + r + "," + g + "," + b + "," + op + ")";
|
|
3659
3606
|
};
|
|
3660
|
-
return /* @__PURE__ */
|
|
3607
|
+
return /* @__PURE__ */ import_react20.default.createElement(
|
|
3661
3608
|
"div",
|
|
3662
3609
|
{
|
|
3663
3610
|
onMouseEnter: () => setHovered(true),
|
|
@@ -3674,9 +3621,9 @@ var AnimatedForm = ({
|
|
|
3674
3621
|
boxShadow: hovered ? "0 16px 40px rgba(0,0,0,0.5)" : "0 4px 20px rgba(0,0,0,0.3)"
|
|
3675
3622
|
}
|
|
3676
3623
|
},
|
|
3677
|
-
/* @__PURE__ */
|
|
3678
|
-
/* @__PURE__ */
|
|
3679
|
-
/* @__PURE__ */
|
|
3624
|
+
/* @__PURE__ */ import_react20.default.createElement("h2", { style: { fontSize: "20px", fontWeight: "700", color: "#fff", margin: "0 0 8px" } }, title),
|
|
3625
|
+
/* @__PURE__ */ import_react20.default.createElement("p", { style: { fontSize: "14px", color: "rgba(255,255,255,0.45)", margin: "0 0 24px" } }, description),
|
|
3626
|
+
/* @__PURE__ */ import_react20.default.createElement(
|
|
3680
3627
|
"input",
|
|
3681
3628
|
{
|
|
3682
3629
|
type: "text",
|
|
@@ -3698,7 +3645,7 @@ var AnimatedForm = ({
|
|
|
3698
3645
|
}
|
|
3699
3646
|
}
|
|
3700
3647
|
),
|
|
3701
|
-
/* @__PURE__ */
|
|
3648
|
+
/* @__PURE__ */ import_react20.default.createElement(
|
|
3702
3649
|
"input",
|
|
3703
3650
|
{
|
|
3704
3651
|
type: "email",
|
|
@@ -3720,7 +3667,7 @@ var AnimatedForm = ({
|
|
|
3720
3667
|
}
|
|
3721
3668
|
}
|
|
3722
3669
|
),
|
|
3723
|
-
/* @__PURE__ */
|
|
3670
|
+
/* @__PURE__ */ import_react20.default.createElement(
|
|
3724
3671
|
"textarea",
|
|
3725
3672
|
{
|
|
3726
3673
|
placeholder: "Your Message",
|
|
@@ -3743,7 +3690,7 @@ var AnimatedForm = ({
|
|
|
3743
3690
|
}
|
|
3744
3691
|
}
|
|
3745
3692
|
),
|
|
3746
|
-
/* @__PURE__ */
|
|
3693
|
+
/* @__PURE__ */ import_react20.default.createElement(
|
|
3747
3694
|
"button",
|
|
3748
3695
|
{
|
|
3749
3696
|
onClick: () => onSubmit({ name, email, message }),
|
|
@@ -3766,7 +3713,7 @@ var AnimatedForm = ({
|
|
|
3766
3713
|
};
|
|
3767
3714
|
|
|
3768
3715
|
// src/components/ReviewCard/ReviewCard.jsx
|
|
3769
|
-
var
|
|
3716
|
+
var import_react21 = __toESM(require("react"));
|
|
3770
3717
|
var ReviewCard = ({
|
|
3771
3718
|
avatar = "https://images.unsplash.com/photo-1633332755192-727a05c4013d?w=800&q=80",
|
|
3772
3719
|
name = "John Doe",
|
|
@@ -3782,11 +3729,11 @@ var ReviewCard = ({
|
|
|
3782
3729
|
const r = parseInt(hex.slice(1, 3), 16), g = parseInt(hex.slice(3, 5), 16), b = parseInt(hex.slice(5, 7), 16);
|
|
3783
3730
|
return "rgba(" + r + "," + g + "," + b + "," + op + ")";
|
|
3784
3731
|
};
|
|
3785
|
-
return /* @__PURE__ */
|
|
3732
|
+
return /* @__PURE__ */ import_react21.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_react21.default.createElement("div", { style: { display: "flex", alignItems: "center", gap: "12px", marginBottom: "12px" } }, /* @__PURE__ */ import_react21.default.createElement("img", { src: avatar, alt: name, onClick: onProfileClick, style: { width: "40px", height: "40px", borderRadius: "50%", cursor: "pointer" } }), /* @__PURE__ */ import_react21.default.createElement("div", { style: { display: "flex", flexDirection: "column", gap: "2px" } }, /* @__PURE__ */ import_react21.default.createElement("div", { style: { fontSize: "14px", fontWeight: "700", color: "#fff" } }, name), /* @__PURE__ */ import_react21.default.createElement("div", { style: { display: "flex", alignItems: "center", gap: "4px" } }, Array.from({ length: 5 }).map((_, i) => /* @__PURE__ */ import_react21.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_react21.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_react21.default.createElement("div", { style: { fontSize: "13px", color: "rgba(255,255,255,0.7)", lineHeight: 1.5, marginBottom: "12px" } }, review), /* @__PURE__ */ import_react21.default.createElement("div", { style: { fontSize: "11px", color: "rgba(255,255,255,0.4)" } }, date));
|
|
3786
3733
|
};
|
|
3787
3734
|
|
|
3788
3735
|
// src/components/Card/Card.jsx
|
|
3789
|
-
var
|
|
3736
|
+
var import_react22 = __toESM(require("react"));
|
|
3790
3737
|
var Card = ({
|
|
3791
3738
|
title = "Performance",
|
|
3792
3739
|
description = "Real-time metrics with live dashboard updates every second.",
|
|
@@ -3794,8 +3741,8 @@ var Card = ({
|
|
|
3794
3741
|
tag = "Active",
|
|
3795
3742
|
onClick
|
|
3796
3743
|
}) => {
|
|
3797
|
-
const [hovered, setHovered] = (0,
|
|
3798
|
-
return /* @__PURE__ */
|
|
3744
|
+
const [hovered, setHovered] = (0, import_react22.useState)(false);
|
|
3745
|
+
return /* @__PURE__ */ import_react22.default.createElement(
|
|
3799
3746
|
"div",
|
|
3800
3747
|
{
|
|
3801
3748
|
onMouseEnter: () => setHovered(true),
|
|
@@ -3815,7 +3762,7 @@ var Card = ({
|
|
|
3815
3762
|
width: "260px"
|
|
3816
3763
|
}
|
|
3817
3764
|
},
|
|
3818
|
-
/* @__PURE__ */
|
|
3765
|
+
/* @__PURE__ */ import_react22.default.createElement("div", { style: {
|
|
3819
3766
|
position: "absolute",
|
|
3820
3767
|
top: 0,
|
|
3821
3768
|
left: 0,
|
|
@@ -3824,7 +3771,7 @@ var Card = ({
|
|
|
3824
3771
|
background: "#1D9E75",
|
|
3825
3772
|
borderRadius: "12px 12px 0 0"
|
|
3826
3773
|
} }),
|
|
3827
|
-
/* @__PURE__ */
|
|
3774
|
+
/* @__PURE__ */ import_react22.default.createElement("div", { style: {
|
|
3828
3775
|
width: 40,
|
|
3829
3776
|
height: 40,
|
|
3830
3777
|
borderRadius: 8,
|
|
@@ -3835,22 +3782,22 @@ var Card = ({
|
|
|
3835
3782
|
fontSize: 18,
|
|
3836
3783
|
marginBottom: 14
|
|
3837
3784
|
} }, icon),
|
|
3838
|
-
/* @__PURE__ */
|
|
3839
|
-
/* @__PURE__ */
|
|
3840
|
-
/* @__PURE__ */
|
|
3785
|
+
/* @__PURE__ */ import_react22.default.createElement("p", { style: { fontSize: 15, fontWeight: 700, color: "#111", margin: "0 0 6px" } }, title),
|
|
3786
|
+
/* @__PURE__ */ import_react22.default.createElement("p", { style: { fontSize: 13, color: "#666", lineHeight: 1.6, margin: "0 0 16px" } }, description),
|
|
3787
|
+
/* @__PURE__ */ import_react22.default.createElement("div", { style: {
|
|
3841
3788
|
display: "flex",
|
|
3842
3789
|
alignItems: "center",
|
|
3843
3790
|
justifyContent: "space-between",
|
|
3844
3791
|
borderTop: "0.5px solid #0000001a",
|
|
3845
3792
|
paddingTop: 12
|
|
3846
|
-
} }, /* @__PURE__ */
|
|
3793
|
+
} }, /* @__PURE__ */ import_react22.default.createElement("span", { style: {
|
|
3847
3794
|
fontSize: 11,
|
|
3848
3795
|
fontWeight: 500,
|
|
3849
3796
|
padding: "3px 9px",
|
|
3850
3797
|
borderRadius: 20,
|
|
3851
3798
|
background: "#E1F5EE",
|
|
3852
3799
|
color: "#0F6E56"
|
|
3853
|
-
} }, tag), /* @__PURE__ */
|
|
3800
|
+
} }, tag), /* @__PURE__ */ import_react22.default.createElement("span", { style: {
|
|
3854
3801
|
fontSize: 14,
|
|
3855
3802
|
color: "#999",
|
|
3856
3803
|
display: "inline-block",
|
|
@@ -3861,90 +3808,36 @@ var Card = ({
|
|
|
3861
3808
|
};
|
|
3862
3809
|
|
|
3863
3810
|
// src/components/Button/Button.jsx
|
|
3864
|
-
var
|
|
3865
|
-
var Button = ({
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
size = "md",
|
|
3870
|
-
// sm | md | lg
|
|
3871
|
-
icon,
|
|
3872
|
-
loading = false,
|
|
3873
|
-
disabled = false,
|
|
3874
|
-
onClick
|
|
3875
|
-
}) => {
|
|
3876
|
-
const [hovered, setHovered] = (0, import_react24.useState)(false);
|
|
3877
|
-
const variants = {
|
|
3878
|
-
primary: {
|
|
3879
|
-
background: "#2563eb",
|
|
3880
|
-
color: "#fff",
|
|
3881
|
-
border: "none"
|
|
3882
|
-
},
|
|
3883
|
-
outline: {
|
|
3884
|
-
background: "transparent",
|
|
3885
|
-
color: "#2563eb",
|
|
3886
|
-
border: "1px solid #2563eb"
|
|
3887
|
-
},
|
|
3888
|
-
ghost: {
|
|
3889
|
-
background: "transparent",
|
|
3890
|
-
color: "#111",
|
|
3891
|
-
border: "none"
|
|
3892
|
-
},
|
|
3893
|
-
gradient: {
|
|
3894
|
-
background: "linear-gradient(135deg, #6366f1, #06b6d4)",
|
|
3895
|
-
color: "#fff",
|
|
3896
|
-
border: "none"
|
|
3897
|
-
}
|
|
3898
|
-
};
|
|
3899
|
-
const sizes = {
|
|
3900
|
-
sm: { padding: "6px 12px", fontSize: "12px" },
|
|
3901
|
-
md: { padding: "10px 18px", fontSize: "14px" },
|
|
3902
|
-
lg: { padding: "14px 24px", fontSize: "16px" }
|
|
3903
|
-
};
|
|
3904
|
-
return /* @__PURE__ */ import_react24.default.createElement(
|
|
3811
|
+
var import_react23 = __toESM(require("react"));
|
|
3812
|
+
var Button = ({ text = "Get Started", bg = "#7c3aed", color = "#fff", size = "md", disabled = false, loading = false, onClick = () => {
|
|
3813
|
+
} }) => {
|
|
3814
|
+
const sizes = { sm: "8px 16px", md: "11px 24px", lg: "14px 32px" };
|
|
3815
|
+
return /* @__PURE__ */ import_react23.default.createElement(
|
|
3905
3816
|
"button",
|
|
3906
3817
|
{
|
|
3907
3818
|
onClick,
|
|
3908
3819
|
disabled: disabled || loading,
|
|
3909
|
-
onMouseEnter: () => setHovered(true),
|
|
3910
|
-
onMouseLeave: () => setHovered(false),
|
|
3911
3820
|
style: {
|
|
3912
|
-
|
|
3913
|
-
|
|
3821
|
+
background: bg,
|
|
3822
|
+
color,
|
|
3823
|
+
padding: sizes[size],
|
|
3914
3824
|
borderRadius: "10px",
|
|
3825
|
+
border: "none",
|
|
3915
3826
|
cursor: disabled ? "not-allowed" : "pointer",
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
fontFamily: "sans-serif",
|
|
3921
|
-
// 🔥 Animation
|
|
3922
|
-
transform: hovered ? "translateY(-2px) scale(1.02)" : "scale(1)",
|
|
3923
|
-
boxShadow: hovered ? "0 10px 20px rgba(0,0,0,0.15)" : "0 2px 6px rgba(0,0,0,0.1)",
|
|
3924
|
-
transition: "all 0.2s ease",
|
|
3827
|
+
fontWeight: "700",
|
|
3828
|
+
fontSize: "15px",
|
|
3829
|
+
fontFamily: "system-ui,sans-serif",
|
|
3830
|
+
boxShadow: "0 4px 14px rgba(124,58,237,0.4)",
|
|
3925
3831
|
opacity: disabled ? 0.6 : 1,
|
|
3926
|
-
|
|
3927
|
-
overflow: "hidden"
|
|
3832
|
+
transition: "opacity 0.2s"
|
|
3928
3833
|
}
|
|
3929
3834
|
},
|
|
3930
|
-
|
|
3931
|
-
"span",
|
|
3932
|
-
{
|
|
3933
|
-
style: {
|
|
3934
|
-
position: "absolute",
|
|
3935
|
-
inset: 0,
|
|
3936
|
-
background: "rgba(255,255,255,0.2)",
|
|
3937
|
-
opacity: hovered ? 1 : 0,
|
|
3938
|
-
transition: "opacity 0.3s"
|
|
3939
|
-
}
|
|
3940
|
-
}
|
|
3941
|
-
),
|
|
3942
|
-
loading ? /* @__PURE__ */ import_react24.default.createElement("span", null, "Loading...") : /* @__PURE__ */ import_react24.default.createElement(import_react24.default.Fragment, null, icon && /* @__PURE__ */ import_react24.default.createElement("span", null, icon), /* @__PURE__ */ import_react24.default.createElement("span", null, text))
|
|
3835
|
+
loading ? "Loading..." : text
|
|
3943
3836
|
);
|
|
3944
3837
|
};
|
|
3945
3838
|
|
|
3946
3839
|
// src/components/AnimatedButton/AnimatedButton.jsx
|
|
3947
|
-
var
|
|
3840
|
+
var import_react24 = __toESM(require("react"));
|
|
3948
3841
|
var AnimatedButton = ({
|
|
3949
3842
|
text = "Click Me!",
|
|
3950
3843
|
bg = "#7c3aed",
|
|
@@ -3958,8 +3851,8 @@ var AnimatedButton = ({
|
|
|
3958
3851
|
onClick
|
|
3959
3852
|
}) => {
|
|
3960
3853
|
const sizes = { sm: "8px 16px", md: "12px 24px", lg: "16px 32px" };
|
|
3961
|
-
const [hovered, setHovered] = (0,
|
|
3962
|
-
return /* @__PURE__ */
|
|
3854
|
+
const [hovered, setHovered] = (0, import_react24.useState)(false);
|
|
3855
|
+
return /* @__PURE__ */ import_react24.default.createElement(
|
|
3963
3856
|
"button",
|
|
3964
3857
|
{
|
|
3965
3858
|
onClick,
|
|
@@ -3988,6 +3881,150 @@ var AnimatedButton = ({
|
|
|
3988
3881
|
text
|
|
3989
3882
|
);
|
|
3990
3883
|
};
|
|
3884
|
+
|
|
3885
|
+
// src/components/ECommerceCard/ECommerceCard.jsx
|
|
3886
|
+
var import_react25 = __toESM(require("react"));
|
|
3887
|
+
var ECommerceCard = ({
|
|
3888
|
+
title = "Wireless Headphones",
|
|
3889
|
+
description = "Experience immersive sound with noise cancellation.",
|
|
3890
|
+
price = 199.99,
|
|
3891
|
+
currency = "$",
|
|
3892
|
+
image = "https://images.unsplash.com/photo-1618366712010-f4ae9c647dc5?w=600&q=80",
|
|
3893
|
+
rating = 4.5,
|
|
3894
|
+
accent = "#6366f1",
|
|
3895
|
+
bg = "#0f172a",
|
|
3896
|
+
onAddToCart = () => {
|
|
3897
|
+
},
|
|
3898
|
+
onViewDetails = () => {
|
|
3899
|
+
}
|
|
3900
|
+
}) => {
|
|
3901
|
+
const [hovered, setHovered] = (0, import_react25.useState)(false);
|
|
3902
|
+
const alpha = (hex, op) => {
|
|
3903
|
+
const r = parseInt(hex.slice(1, 3), 16), g = parseInt(hex.slice(3, 5), 16), b = parseInt(hex.slice(5, 7), 16);
|
|
3904
|
+
return "rgba(" + r + "," + g + "," + b + "," + op + ")";
|
|
3905
|
+
};
|
|
3906
|
+
return /* @__PURE__ */ import_react25.default.createElement(
|
|
3907
|
+
"div",
|
|
3908
|
+
{
|
|
3909
|
+
onMouseEnter: () => setHovered(true),
|
|
3910
|
+
onMouseLeave: () => setHovered(false),
|
|
3911
|
+
style: {
|
|
3912
|
+
background: bg,
|
|
3913
|
+
borderRadius: "20px",
|
|
3914
|
+
overflow: "hidden",
|
|
3915
|
+
width: "280px",
|
|
3916
|
+
border: "1px solid " + (hovered ? alpha(accent, 0.3) : "rgba(255,255,255,0.07)"),
|
|
3917
|
+
fontFamily: "system-ui,sans-serif",
|
|
3918
|
+
transition: "transform 0.25s, box-shadow 0.25s",
|
|
3919
|
+
transform: hovered ? "translateY(-4px)" : "translateY(0px)",
|
|
3920
|
+
boxShadow: hovered ? "0 16px 40px rgba(0,0,0,0.5)" : "0 4px 20px rgba(0,0,0,0.3)"
|
|
3921
|
+
}
|
|
3922
|
+
},
|
|
3923
|
+
/* @__PURE__ */ import_react25.default.createElement("div", { style: { position: "relative", width: "100%", height: "180px", overflow: "hidden" } }, /* @__PURE__ */ import_react25.default.createElement("img", { src: image, alt: title, style: { width: "100%", height: "100%", objectFit: "cover", transform: hovered ? "scale(1.05)" : "scale(1)", transition: "transform 0.4s ease" } }), /* @__PURE__ */ import_react25.default.createElement("div", { style: { position: "absolute", inset: 0, background: "linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%)" } }), /* @__PURE__ */ import_react25.default.createElement("div", { style: { position: "absolute", top: "12px", left: "12px", padding: "4px 10px", borderRadius: "20px", background: alpha(accent, 0.85), fontSize: "10px", fontWeight: "700", color: "#fff", textTransform: "uppercase", letterSpacing: "0.5px" } }, rating.toFixed(1), " \u2605")),
|
|
3924
|
+
/* @__PURE__ */ import_react25.default.createElement("div", { style: { padding: "18px" } }, /* @__PURE__ */ import_react25.default.createElement("h3", { style: { fontSize: "15px", fontWeight: "700", color: "#fff", margin: "0 0 8px", lineHeight: 1.4 } }, title), /* @__PURE__ */ import_react25.default.createElement("p", { style: { fontSize: "13px", color: "rgba(255,255,255,0.45)", lineHeight: 1.65, margin: "0 0 18px" } }, description), /* @__PURE__ */ import_react25.default.createElement("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between" } }, /* @__PURE__ */ import_react25.default.createElement("div", { style: { fontSize: "24px", fontWeight: "800", color: accent } }, currency, Math.round(price)), /* @__PURE__ */ import_react25.default.createElement("div", { style: { display: "flex", gap: "8px" } }, /* @__PURE__ */ import_react25.default.createElement(
|
|
3925
|
+
"button",
|
|
3926
|
+
{
|
|
3927
|
+
onClick: onViewDetails,
|
|
3928
|
+
style: { padding: "8px 16px", borderRadius: "10px", border: "1px solid " + alpha(accent, 0.3), background: "transparent", color: accent, fontSize: "13px", fontWeight: "700", cursor: "pointer", fontFamily: "inherit" }
|
|
3929
|
+
},
|
|
3930
|
+
"Details"
|
|
3931
|
+
), /* @__PURE__ */ import_react25.default.createElement(
|
|
3932
|
+
"button",
|
|
3933
|
+
{
|
|
3934
|
+
onClick: onAddToCart,
|
|
3935
|
+
style: { padding: "8px 16px", borderRadius: "10px", border: "none", background: "linear-gradient(135deg, " + accent + ", " + alpha(accent, 0.7) + ")", color: "#fff", fontSize: "13px", fontWeight: "700", cursor: "pointer", fontFamily: "inherit" }
|
|
3936
|
+
},
|
|
3937
|
+
"Add to Cart"
|
|
3938
|
+
))))
|
|
3939
|
+
);
|
|
3940
|
+
};
|
|
3941
|
+
|
|
3942
|
+
// src/components/IDCard/IDCard.jsx
|
|
3943
|
+
var import_react26 = __toESM(require("react"));
|
|
3944
|
+
var IDCard = ({
|
|
3945
|
+
name = "John Doe",
|
|
3946
|
+
role = "Software Engineer",
|
|
3947
|
+
company = "TechCorp",
|
|
3948
|
+
photo = "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=600&q=80",
|
|
3949
|
+
accent = "#6366f1",
|
|
3950
|
+
bg = "#0f172a",
|
|
3951
|
+
onContactClick = () => {
|
|
3952
|
+
}
|
|
3953
|
+
}) => {
|
|
3954
|
+
const alpha = (hex, op) => {
|
|
3955
|
+
const r = parseInt(hex.slice(1, 3), 16), g = parseInt(hex.slice(3, 5), 16), b = parseInt(hex.slice(5, 7), 16);
|
|
3956
|
+
return "rgba(" + r + "," + g + "," + b + "," + op + ")";
|
|
3957
|
+
};
|
|
3958
|
+
return /* @__PURE__ */ import_react26.default.createElement("div", { style: { background: bg, borderRadius: "20px", padding: "24px", width: "300px", 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" } }, /* @__PURE__ */ import_react26.default.createElement("div", { style: { display: "flex", alignItems: "center", gap: "16px", marginBottom: "20px" } }, /* @__PURE__ */ import_react26.default.createElement("div", { style: { width: "80px", height: "80px", borderRadius: "50%", overflow: "hidden", border: "2px solid " + alpha(accent, 0.5) } }, /* @__PURE__ */ import_react26.default.createElement("img", { src: photo, alt: name, style: { width: "100%", height: "100%", objectFit: "cover" } })), /* @__PURE__ */ import_react26.default.createElement("div", null, /* @__PURE__ */ import_react26.default.createElement("div", { style: { fontSize: "18px", fontWeight: "700", marginBottom: "4px" } }, name), /* @__PURE__ */ import_react26.default.createElement("div", { style: { fontSize: "13px", color: "rgba(255,255,255,0.5)" } }, role))), /* @__PURE__ */ import_react26.default.createElement("div", { style: { fontSize: "14px", color: "rgba(255,255,255,0.6)", marginBottom: "20px", paddingBottom: "20px", borderBottom: "1px solid " + alpha(accent, 0.1) } }, company), /* @__PURE__ */ import_react26.default.createElement("button", { onClick: onContactClick, style: { width: "100%", padding: "12px", borderRadius: "12px", border: "none", background: "linear-gradient(135deg, " + accent + ", " + alpha(accent, 0.7) + ")", color: "#fff", fontSize: "14px", fontWeight: "700", cursor: "pointer", fontFamily: "inherit" } }, "Contact"));
|
|
3959
|
+
};
|
|
3960
|
+
|
|
3961
|
+
// src/components/DatePicker/DatePicker.jsx
|
|
3962
|
+
var import_react27 = __toESM(require("react"));
|
|
3963
|
+
var DatePicker = ({
|
|
3964
|
+
selectedDate = /* @__PURE__ */ new Date(),
|
|
3965
|
+
accent = "#6366f1",
|
|
3966
|
+
bg = "#0f172a",
|
|
3967
|
+
onDateChange = () => {
|
|
3968
|
+
}
|
|
3969
|
+
}) => {
|
|
3970
|
+
const [date, setDate] = (0, import_react27.useState)(selectedDate);
|
|
3971
|
+
const alpha = (hex, op) => {
|
|
3972
|
+
const r = parseInt(hex.slice(1, 3), 16), g = parseInt(hex.slice(3, 5), 16), b = parseInt(hex.slice(5, 7), 16);
|
|
3973
|
+
return "rgba(" + r + "," + g + "," + b + "," + op + ")";
|
|
3974
|
+
};
|
|
3975
|
+
const handleDateChange = (e) => {
|
|
3976
|
+
const newDate = new Date(e.target.value);
|
|
3977
|
+
setDate(newDate);
|
|
3978
|
+
onDateChange(newDate);
|
|
3979
|
+
};
|
|
3980
|
+
return /* @__PURE__ */ import_react27.default.createElement("div", { style: { background: bg, borderRadius: "12px", padding: "16px", width: "280px", fontFamily: "system-ui,sans-serif", boxShadow: "0 10px 40px rgba(0,0,0,0.5)", border: "1px solid rgba(255,255,255,0.07)" } }, /* @__PURE__ */ import_react27.default.createElement(
|
|
3981
|
+
"input",
|
|
3982
|
+
{
|
|
3983
|
+
type: "date",
|
|
3984
|
+
value: date.toISOString().split("T")[0],
|
|
3985
|
+
onChange: handleDateChange,
|
|
3986
|
+
style: {
|
|
3987
|
+
width: "100%",
|
|
3988
|
+
padding: "12px",
|
|
3989
|
+
borderRadius: "8px",
|
|
3990
|
+
border: "1px solid " + alpha(accent, 0.3),
|
|
3991
|
+
background: "transparent",
|
|
3992
|
+
color: "#fff",
|
|
3993
|
+
fontFamily: "inherit",
|
|
3994
|
+
fontSize: "14px",
|
|
3995
|
+
outline: "none",
|
|
3996
|
+
cursor: "pointer"
|
|
3997
|
+
}
|
|
3998
|
+
}
|
|
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
|
+
};
|
|
3991
4028
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3992
4029
|
0 && (module.exports = {
|
|
3993
4030
|
AnimatedButton,
|
|
@@ -3998,9 +4035,12 @@ var AnimatedButton = ({
|
|
|
3998
4035
|
Card,
|
|
3999
4036
|
Charts,
|
|
4000
4037
|
ColorPicker,
|
|
4001
|
-
|
|
4038
|
+
DatePicker,
|
|
4039
|
+
ECommerceCard,
|
|
4040
|
+
FacebookPost,
|
|
4002
4041
|
FileUpload,
|
|
4003
4042
|
Footer,
|
|
4043
|
+
IDCard,
|
|
4004
4044
|
ImageCard,
|
|
4005
4045
|
ImageSlider,
|
|
4006
4046
|
InvoiceCard,
|
package/dist/index.mjs
CHANGED
|
@@ -3523,64 +3523,8 @@ var ProgressBar = ({
|
|
|
3523
3523
|
return null;
|
|
3524
3524
|
};
|
|
3525
3525
|
|
|
3526
|
-
// src/components/EcommerceCard/EcommerceCard.jsx
|
|
3527
|
-
import React20, { useState as useState18 } from "react";
|
|
3528
|
-
var EcommerceCard = ({
|
|
3529
|
-
image = "https://images.unsplash.com/photo-1505740420928-5e560c06d30e?w=600&q=80",
|
|
3530
|
-
title = "Wireless Headphones",
|
|
3531
|
-
description = "Premium noise-cancelling headphones with 40 hours battery life.",
|
|
3532
|
-
price = 199,
|
|
3533
|
-
currency = "$",
|
|
3534
|
-
accent = "#6366f1",
|
|
3535
|
-
bg = "#0f172a",
|
|
3536
|
-
onAddToCart = () => {
|
|
3537
|
-
},
|
|
3538
|
-
onViewDetails = () => {
|
|
3539
|
-
}
|
|
3540
|
-
}) => {
|
|
3541
|
-
const [hovered, setHovered] = useState18(false);
|
|
3542
|
-
const alpha = (hex, op) => {
|
|
3543
|
-
const r = parseInt(hex.slice(1, 3), 16), g = parseInt(hex.slice(3, 5), 16), b = parseInt(hex.slice(5, 7), 16);
|
|
3544
|
-
return "rgba(" + r + "," + g + "," + b + "," + op + ")";
|
|
3545
|
-
};
|
|
3546
|
-
return /* @__PURE__ */ React20.createElement(
|
|
3547
|
-
"div",
|
|
3548
|
-
{
|
|
3549
|
-
onMouseEnter: () => setHovered(true),
|
|
3550
|
-
onMouseLeave: () => setHovered(false),
|
|
3551
|
-
style: {
|
|
3552
|
-
background: bg,
|
|
3553
|
-
borderRadius: "20px",
|
|
3554
|
-
overflow: "hidden",
|
|
3555
|
-
width: "300px",
|
|
3556
|
-
border: "1px solid " + (hovered ? alpha(accent, 0.3) : "rgba(255,255,255,0.07)"),
|
|
3557
|
-
fontFamily: "system-ui,sans-serif",
|
|
3558
|
-
transition: "transform 0.25s, box-shadow 0.25s",
|
|
3559
|
-
transform: hovered ? "translateY(-4px)" : "translateY(0px)",
|
|
3560
|
-
boxShadow: hovered ? "0 16px 40px rgba(0,0,0,0.5)" : "0 4px 20px rgba(0,0,0,0.3)"
|
|
3561
|
-
}
|
|
3562
|
-
},
|
|
3563
|
-
/* @__PURE__ */ React20.createElement("div", { style: { position: "relative", width: "100%", height: "200px", overflow: "hidden" } }, /* @__PURE__ */ React20.createElement("img", { src: image, alt: title, style: { width: "100%", height: "100%", objectFit: "cover", transform: hovered ? "scale(1.05)" : "scale(1)", transition: "transform 0.4s ease" } }), /* @__PURE__ */ React20.createElement("div", { style: { position: "absolute", inset: 0, background: "linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%)" } })),
|
|
3564
|
-
/* @__PURE__ */ React20.createElement("div", { style: { padding: "18px" } }, /* @__PURE__ */ React20.createElement("h3", { style: { fontSize: "15px", fontWeight: "700", color: "#fff", margin: "0 0 8px", lineHeight: 1.4 } }, title), /* @__PURE__ */ React20.createElement("p", { style: { fontSize: "13px", color: "rgba(255,255,255,0.45)", lineHeight: 1.65, margin: "0 0 18px" } }, description), /* @__PURE__ */ React20.createElement("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "18px" } }, /* @__PURE__ */ React20.createElement("span", { style: { fontSize: "24px", fontWeight: "800", color: "#fff" } }, currency, price), /* @__PURE__ */ React20.createElement(
|
|
3565
|
-
"button",
|
|
3566
|
-
{
|
|
3567
|
-
onClick: onAddToCart,
|
|
3568
|
-
style: { padding: "8px 16px", borderRadius: "12px", border: "none", background: accent, color: "#fff", fontSize: "13px", fontWeight: "700", cursor: "pointer", fontFamily: "inherit" }
|
|
3569
|
-
},
|
|
3570
|
-
"Add to Cart"
|
|
3571
|
-
)), /* @__PURE__ */ React20.createElement(
|
|
3572
|
-
"button",
|
|
3573
|
-
{
|
|
3574
|
-
onClick: onViewDetails,
|
|
3575
|
-
style: { width: "100%", padding: "11px", borderRadius: "12px", border: "1px solid " + alpha(accent, 0.3), background: "transparent", color: accent, fontSize: "13px", fontWeight: "700", cursor: "pointer", fontFamily: "inherit" }
|
|
3576
|
-
},
|
|
3577
|
-
"View Details"
|
|
3578
|
-
))
|
|
3579
|
-
);
|
|
3580
|
-
};
|
|
3581
|
-
|
|
3582
3526
|
// src/components/AnimatedForm/AnimatedForm.jsx
|
|
3583
|
-
import
|
|
3527
|
+
import React20, { useState as useState18 } from "react";
|
|
3584
3528
|
var AnimatedForm = ({
|
|
3585
3529
|
title = "Contact Us",
|
|
3586
3530
|
description = "We'll get back to you shortly",
|
|
@@ -3590,15 +3534,15 @@ var AnimatedForm = ({
|
|
|
3590
3534
|
onSubmit = () => {
|
|
3591
3535
|
}
|
|
3592
3536
|
}) => {
|
|
3593
|
-
const [name, setName] =
|
|
3594
|
-
const [email, setEmail] =
|
|
3595
|
-
const [message, setMessage] =
|
|
3596
|
-
const [hovered, setHovered] =
|
|
3537
|
+
const [name, setName] = useState18("");
|
|
3538
|
+
const [email, setEmail] = useState18("");
|
|
3539
|
+
const [message, setMessage] = useState18("");
|
|
3540
|
+
const [hovered, setHovered] = useState18(false);
|
|
3597
3541
|
const alpha = (hex, op) => {
|
|
3598
3542
|
const r = parseInt(hex.slice(1, 3), 16), g = parseInt(hex.slice(3, 5), 16), b = parseInt(hex.slice(5, 7), 16);
|
|
3599
3543
|
return "rgba(" + r + "," + g + "," + b + "," + op + ")";
|
|
3600
3544
|
};
|
|
3601
|
-
return /* @__PURE__ */
|
|
3545
|
+
return /* @__PURE__ */ React20.createElement(
|
|
3602
3546
|
"div",
|
|
3603
3547
|
{
|
|
3604
3548
|
onMouseEnter: () => setHovered(true),
|
|
@@ -3615,9 +3559,9 @@ var AnimatedForm = ({
|
|
|
3615
3559
|
boxShadow: hovered ? "0 16px 40px rgba(0,0,0,0.5)" : "0 4px 20px rgba(0,0,0,0.3)"
|
|
3616
3560
|
}
|
|
3617
3561
|
},
|
|
3618
|
-
/* @__PURE__ */
|
|
3619
|
-
/* @__PURE__ */
|
|
3620
|
-
/* @__PURE__ */
|
|
3562
|
+
/* @__PURE__ */ React20.createElement("h2", { style: { fontSize: "20px", fontWeight: "700", color: "#fff", margin: "0 0 8px" } }, title),
|
|
3563
|
+
/* @__PURE__ */ React20.createElement("p", { style: { fontSize: "14px", color: "rgba(255,255,255,0.45)", margin: "0 0 24px" } }, description),
|
|
3564
|
+
/* @__PURE__ */ React20.createElement(
|
|
3621
3565
|
"input",
|
|
3622
3566
|
{
|
|
3623
3567
|
type: "text",
|
|
@@ -3639,7 +3583,7 @@ var AnimatedForm = ({
|
|
|
3639
3583
|
}
|
|
3640
3584
|
}
|
|
3641
3585
|
),
|
|
3642
|
-
/* @__PURE__ */
|
|
3586
|
+
/* @__PURE__ */ React20.createElement(
|
|
3643
3587
|
"input",
|
|
3644
3588
|
{
|
|
3645
3589
|
type: "email",
|
|
@@ -3661,7 +3605,7 @@ var AnimatedForm = ({
|
|
|
3661
3605
|
}
|
|
3662
3606
|
}
|
|
3663
3607
|
),
|
|
3664
|
-
/* @__PURE__ */
|
|
3608
|
+
/* @__PURE__ */ React20.createElement(
|
|
3665
3609
|
"textarea",
|
|
3666
3610
|
{
|
|
3667
3611
|
placeholder: "Your Message",
|
|
@@ -3684,7 +3628,7 @@ var AnimatedForm = ({
|
|
|
3684
3628
|
}
|
|
3685
3629
|
}
|
|
3686
3630
|
),
|
|
3687
|
-
/* @__PURE__ */
|
|
3631
|
+
/* @__PURE__ */ React20.createElement(
|
|
3688
3632
|
"button",
|
|
3689
3633
|
{
|
|
3690
3634
|
onClick: () => onSubmit({ name, email, message }),
|
|
@@ -3707,7 +3651,7 @@ var AnimatedForm = ({
|
|
|
3707
3651
|
};
|
|
3708
3652
|
|
|
3709
3653
|
// src/components/ReviewCard/ReviewCard.jsx
|
|
3710
|
-
import
|
|
3654
|
+
import React21 from "react";
|
|
3711
3655
|
var ReviewCard = ({
|
|
3712
3656
|
avatar = "https://images.unsplash.com/photo-1633332755192-727a05c4013d?w=800&q=80",
|
|
3713
3657
|
name = "John Doe",
|
|
@@ -3723,11 +3667,11 @@ var ReviewCard = ({
|
|
|
3723
3667
|
const r = parseInt(hex.slice(1, 3), 16), g = parseInt(hex.slice(3, 5), 16), b = parseInt(hex.slice(5, 7), 16);
|
|
3724
3668
|
return "rgba(" + r + "," + g + "," + b + "," + op + ")";
|
|
3725
3669
|
};
|
|
3726
|
-
return /* @__PURE__ */
|
|
3670
|
+
return /* @__PURE__ */ React21.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__ */ React21.createElement("div", { style: { display: "flex", alignItems: "center", gap: "12px", marginBottom: "12px" } }, /* @__PURE__ */ React21.createElement("img", { src: avatar, alt: name, onClick: onProfileClick, style: { width: "40px", height: "40px", borderRadius: "50%", cursor: "pointer" } }), /* @__PURE__ */ React21.createElement("div", { style: { display: "flex", flexDirection: "column", gap: "2px" } }, /* @__PURE__ */ React21.createElement("div", { style: { fontSize: "14px", fontWeight: "700", color: "#fff" } }, name), /* @__PURE__ */ React21.createElement("div", { style: { display: "flex", alignItems: "center", gap: "4px" } }, Array.from({ length: 5 }).map((_, i) => /* @__PURE__ */ React21.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__ */ React21.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__ */ React21.createElement("div", { style: { fontSize: "13px", color: "rgba(255,255,255,0.7)", lineHeight: 1.5, marginBottom: "12px" } }, review), /* @__PURE__ */ React21.createElement("div", { style: { fontSize: "11px", color: "rgba(255,255,255,0.4)" } }, date));
|
|
3727
3671
|
};
|
|
3728
3672
|
|
|
3729
3673
|
// src/components/Card/Card.jsx
|
|
3730
|
-
import
|
|
3674
|
+
import React22, { useState as useState19 } from "react";
|
|
3731
3675
|
var Card = ({
|
|
3732
3676
|
title = "Performance",
|
|
3733
3677
|
description = "Real-time metrics with live dashboard updates every second.",
|
|
@@ -3735,8 +3679,8 @@ var Card = ({
|
|
|
3735
3679
|
tag = "Active",
|
|
3736
3680
|
onClick
|
|
3737
3681
|
}) => {
|
|
3738
|
-
const [hovered, setHovered] =
|
|
3739
|
-
return /* @__PURE__ */
|
|
3682
|
+
const [hovered, setHovered] = useState19(false);
|
|
3683
|
+
return /* @__PURE__ */ React22.createElement(
|
|
3740
3684
|
"div",
|
|
3741
3685
|
{
|
|
3742
3686
|
onMouseEnter: () => setHovered(true),
|
|
@@ -3756,7 +3700,7 @@ var Card = ({
|
|
|
3756
3700
|
width: "260px"
|
|
3757
3701
|
}
|
|
3758
3702
|
},
|
|
3759
|
-
/* @__PURE__ */
|
|
3703
|
+
/* @__PURE__ */ React22.createElement("div", { style: {
|
|
3760
3704
|
position: "absolute",
|
|
3761
3705
|
top: 0,
|
|
3762
3706
|
left: 0,
|
|
@@ -3765,7 +3709,7 @@ var Card = ({
|
|
|
3765
3709
|
background: "#1D9E75",
|
|
3766
3710
|
borderRadius: "12px 12px 0 0"
|
|
3767
3711
|
} }),
|
|
3768
|
-
/* @__PURE__ */
|
|
3712
|
+
/* @__PURE__ */ React22.createElement("div", { style: {
|
|
3769
3713
|
width: 40,
|
|
3770
3714
|
height: 40,
|
|
3771
3715
|
borderRadius: 8,
|
|
@@ -3776,22 +3720,22 @@ var Card = ({
|
|
|
3776
3720
|
fontSize: 18,
|
|
3777
3721
|
marginBottom: 14
|
|
3778
3722
|
} }, icon),
|
|
3779
|
-
/* @__PURE__ */
|
|
3780
|
-
/* @__PURE__ */
|
|
3781
|
-
/* @__PURE__ */
|
|
3723
|
+
/* @__PURE__ */ React22.createElement("p", { style: { fontSize: 15, fontWeight: 700, color: "#111", margin: "0 0 6px" } }, title),
|
|
3724
|
+
/* @__PURE__ */ React22.createElement("p", { style: { fontSize: 13, color: "#666", lineHeight: 1.6, margin: "0 0 16px" } }, description),
|
|
3725
|
+
/* @__PURE__ */ React22.createElement("div", { style: {
|
|
3782
3726
|
display: "flex",
|
|
3783
3727
|
alignItems: "center",
|
|
3784
3728
|
justifyContent: "space-between",
|
|
3785
3729
|
borderTop: "0.5px solid #0000001a",
|
|
3786
3730
|
paddingTop: 12
|
|
3787
|
-
} }, /* @__PURE__ */
|
|
3731
|
+
} }, /* @__PURE__ */ React22.createElement("span", { style: {
|
|
3788
3732
|
fontSize: 11,
|
|
3789
3733
|
fontWeight: 500,
|
|
3790
3734
|
padding: "3px 9px",
|
|
3791
3735
|
borderRadius: 20,
|
|
3792
3736
|
background: "#E1F5EE",
|
|
3793
3737
|
color: "#0F6E56"
|
|
3794
|
-
} }, tag), /* @__PURE__ */
|
|
3738
|
+
} }, tag), /* @__PURE__ */ React22.createElement("span", { style: {
|
|
3795
3739
|
fontSize: 14,
|
|
3796
3740
|
color: "#999",
|
|
3797
3741
|
display: "inline-block",
|
|
@@ -3802,90 +3746,36 @@ var Card = ({
|
|
|
3802
3746
|
};
|
|
3803
3747
|
|
|
3804
3748
|
// src/components/Button/Button.jsx
|
|
3805
|
-
import
|
|
3806
|
-
var Button = ({
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
size = "md",
|
|
3811
|
-
// sm | md | lg
|
|
3812
|
-
icon,
|
|
3813
|
-
loading = false,
|
|
3814
|
-
disabled = false,
|
|
3815
|
-
onClick
|
|
3816
|
-
}) => {
|
|
3817
|
-
const [hovered, setHovered] = useState21(false);
|
|
3818
|
-
const variants = {
|
|
3819
|
-
primary: {
|
|
3820
|
-
background: "#2563eb",
|
|
3821
|
-
color: "#fff",
|
|
3822
|
-
border: "none"
|
|
3823
|
-
},
|
|
3824
|
-
outline: {
|
|
3825
|
-
background: "transparent",
|
|
3826
|
-
color: "#2563eb",
|
|
3827
|
-
border: "1px solid #2563eb"
|
|
3828
|
-
},
|
|
3829
|
-
ghost: {
|
|
3830
|
-
background: "transparent",
|
|
3831
|
-
color: "#111",
|
|
3832
|
-
border: "none"
|
|
3833
|
-
},
|
|
3834
|
-
gradient: {
|
|
3835
|
-
background: "linear-gradient(135deg, #6366f1, #06b6d4)",
|
|
3836
|
-
color: "#fff",
|
|
3837
|
-
border: "none"
|
|
3838
|
-
}
|
|
3839
|
-
};
|
|
3840
|
-
const sizes = {
|
|
3841
|
-
sm: { padding: "6px 12px", fontSize: "12px" },
|
|
3842
|
-
md: { padding: "10px 18px", fontSize: "14px" },
|
|
3843
|
-
lg: { padding: "14px 24px", fontSize: "16px" }
|
|
3844
|
-
};
|
|
3845
|
-
return /* @__PURE__ */ React24.createElement(
|
|
3749
|
+
import React23 from "react";
|
|
3750
|
+
var Button = ({ text = "Get Started", bg = "#7c3aed", color = "#fff", size = "md", disabled = false, loading = false, onClick = () => {
|
|
3751
|
+
} }) => {
|
|
3752
|
+
const sizes = { sm: "8px 16px", md: "11px 24px", lg: "14px 32px" };
|
|
3753
|
+
return /* @__PURE__ */ React23.createElement(
|
|
3846
3754
|
"button",
|
|
3847
3755
|
{
|
|
3848
3756
|
onClick,
|
|
3849
3757
|
disabled: disabled || loading,
|
|
3850
|
-
onMouseEnter: () => setHovered(true),
|
|
3851
|
-
onMouseLeave: () => setHovered(false),
|
|
3852
3758
|
style: {
|
|
3853
|
-
|
|
3854
|
-
|
|
3759
|
+
background: bg,
|
|
3760
|
+
color,
|
|
3761
|
+
padding: sizes[size],
|
|
3855
3762
|
borderRadius: "10px",
|
|
3763
|
+
border: "none",
|
|
3856
3764
|
cursor: disabled ? "not-allowed" : "pointer",
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
fontFamily: "sans-serif",
|
|
3862
|
-
// 🔥 Animation
|
|
3863
|
-
transform: hovered ? "translateY(-2px) scale(1.02)" : "scale(1)",
|
|
3864
|
-
boxShadow: hovered ? "0 10px 20px rgba(0,0,0,0.15)" : "0 2px 6px rgba(0,0,0,0.1)",
|
|
3865
|
-
transition: "all 0.2s ease",
|
|
3765
|
+
fontWeight: "700",
|
|
3766
|
+
fontSize: "15px",
|
|
3767
|
+
fontFamily: "system-ui,sans-serif",
|
|
3768
|
+
boxShadow: "0 4px 14px rgba(124,58,237,0.4)",
|
|
3866
3769
|
opacity: disabled ? 0.6 : 1,
|
|
3867
|
-
|
|
3868
|
-
overflow: "hidden"
|
|
3770
|
+
transition: "opacity 0.2s"
|
|
3869
3771
|
}
|
|
3870
3772
|
},
|
|
3871
|
-
|
|
3872
|
-
"span",
|
|
3873
|
-
{
|
|
3874
|
-
style: {
|
|
3875
|
-
position: "absolute",
|
|
3876
|
-
inset: 0,
|
|
3877
|
-
background: "rgba(255,255,255,0.2)",
|
|
3878
|
-
opacity: hovered ? 1 : 0,
|
|
3879
|
-
transition: "opacity 0.3s"
|
|
3880
|
-
}
|
|
3881
|
-
}
|
|
3882
|
-
),
|
|
3883
|
-
loading ? /* @__PURE__ */ React24.createElement("span", null, "Loading...") : /* @__PURE__ */ React24.createElement(React24.Fragment, null, icon && /* @__PURE__ */ React24.createElement("span", null, icon), /* @__PURE__ */ React24.createElement("span", null, text))
|
|
3773
|
+
loading ? "Loading..." : text
|
|
3884
3774
|
);
|
|
3885
3775
|
};
|
|
3886
3776
|
|
|
3887
3777
|
// src/components/AnimatedButton/AnimatedButton.jsx
|
|
3888
|
-
import
|
|
3778
|
+
import React24, { useState as useState20 } from "react";
|
|
3889
3779
|
var AnimatedButton = ({
|
|
3890
3780
|
text = "Click Me!",
|
|
3891
3781
|
bg = "#7c3aed",
|
|
@@ -3899,8 +3789,8 @@ var AnimatedButton = ({
|
|
|
3899
3789
|
onClick
|
|
3900
3790
|
}) => {
|
|
3901
3791
|
const sizes = { sm: "8px 16px", md: "12px 24px", lg: "16px 32px" };
|
|
3902
|
-
const [hovered, setHovered] =
|
|
3903
|
-
return /* @__PURE__ */
|
|
3792
|
+
const [hovered, setHovered] = useState20(false);
|
|
3793
|
+
return /* @__PURE__ */ React24.createElement(
|
|
3904
3794
|
"button",
|
|
3905
3795
|
{
|
|
3906
3796
|
onClick,
|
|
@@ -3929,6 +3819,150 @@ var AnimatedButton = ({
|
|
|
3929
3819
|
text
|
|
3930
3820
|
);
|
|
3931
3821
|
};
|
|
3822
|
+
|
|
3823
|
+
// src/components/ECommerceCard/ECommerceCard.jsx
|
|
3824
|
+
import React25, { useState as useState21 } from "react";
|
|
3825
|
+
var ECommerceCard = ({
|
|
3826
|
+
title = "Wireless Headphones",
|
|
3827
|
+
description = "Experience immersive sound with noise cancellation.",
|
|
3828
|
+
price = 199.99,
|
|
3829
|
+
currency = "$",
|
|
3830
|
+
image = "https://images.unsplash.com/photo-1618366712010-f4ae9c647dc5?w=600&q=80",
|
|
3831
|
+
rating = 4.5,
|
|
3832
|
+
accent = "#6366f1",
|
|
3833
|
+
bg = "#0f172a",
|
|
3834
|
+
onAddToCart = () => {
|
|
3835
|
+
},
|
|
3836
|
+
onViewDetails = () => {
|
|
3837
|
+
}
|
|
3838
|
+
}) => {
|
|
3839
|
+
const [hovered, setHovered] = useState21(false);
|
|
3840
|
+
const alpha = (hex, op) => {
|
|
3841
|
+
const r = parseInt(hex.slice(1, 3), 16), g = parseInt(hex.slice(3, 5), 16), b = parseInt(hex.slice(5, 7), 16);
|
|
3842
|
+
return "rgba(" + r + "," + g + "," + b + "," + op + ")";
|
|
3843
|
+
};
|
|
3844
|
+
return /* @__PURE__ */ React25.createElement(
|
|
3845
|
+
"div",
|
|
3846
|
+
{
|
|
3847
|
+
onMouseEnter: () => setHovered(true),
|
|
3848
|
+
onMouseLeave: () => setHovered(false),
|
|
3849
|
+
style: {
|
|
3850
|
+
background: bg,
|
|
3851
|
+
borderRadius: "20px",
|
|
3852
|
+
overflow: "hidden",
|
|
3853
|
+
width: "280px",
|
|
3854
|
+
border: "1px solid " + (hovered ? alpha(accent, 0.3) : "rgba(255,255,255,0.07)"),
|
|
3855
|
+
fontFamily: "system-ui,sans-serif",
|
|
3856
|
+
transition: "transform 0.25s, box-shadow 0.25s",
|
|
3857
|
+
transform: hovered ? "translateY(-4px)" : "translateY(0px)",
|
|
3858
|
+
boxShadow: hovered ? "0 16px 40px rgba(0,0,0,0.5)" : "0 4px 20px rgba(0,0,0,0.3)"
|
|
3859
|
+
}
|
|
3860
|
+
},
|
|
3861
|
+
/* @__PURE__ */ React25.createElement("div", { style: { position: "relative", width: "100%", height: "180px", overflow: "hidden" } }, /* @__PURE__ */ React25.createElement("img", { src: image, alt: title, style: { width: "100%", height: "100%", objectFit: "cover", transform: hovered ? "scale(1.05)" : "scale(1)", transition: "transform 0.4s ease" } }), /* @__PURE__ */ React25.createElement("div", { style: { position: "absolute", inset: 0, background: "linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%)" } }), /* @__PURE__ */ React25.createElement("div", { style: { position: "absolute", top: "12px", left: "12px", padding: "4px 10px", borderRadius: "20px", background: alpha(accent, 0.85), fontSize: "10px", fontWeight: "700", color: "#fff", textTransform: "uppercase", letterSpacing: "0.5px" } }, rating.toFixed(1), " \u2605")),
|
|
3862
|
+
/* @__PURE__ */ React25.createElement("div", { style: { padding: "18px" } }, /* @__PURE__ */ React25.createElement("h3", { style: { fontSize: "15px", fontWeight: "700", color: "#fff", margin: "0 0 8px", lineHeight: 1.4 } }, title), /* @__PURE__ */ React25.createElement("p", { style: { fontSize: "13px", color: "rgba(255,255,255,0.45)", lineHeight: 1.65, margin: "0 0 18px" } }, description), /* @__PURE__ */ React25.createElement("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between" } }, /* @__PURE__ */ React25.createElement("div", { style: { fontSize: "24px", fontWeight: "800", color: accent } }, currency, Math.round(price)), /* @__PURE__ */ React25.createElement("div", { style: { display: "flex", gap: "8px" } }, /* @__PURE__ */ React25.createElement(
|
|
3863
|
+
"button",
|
|
3864
|
+
{
|
|
3865
|
+
onClick: onViewDetails,
|
|
3866
|
+
style: { padding: "8px 16px", borderRadius: "10px", border: "1px solid " + alpha(accent, 0.3), background: "transparent", color: accent, fontSize: "13px", fontWeight: "700", cursor: "pointer", fontFamily: "inherit" }
|
|
3867
|
+
},
|
|
3868
|
+
"Details"
|
|
3869
|
+
), /* @__PURE__ */ React25.createElement(
|
|
3870
|
+
"button",
|
|
3871
|
+
{
|
|
3872
|
+
onClick: onAddToCart,
|
|
3873
|
+
style: { padding: "8px 16px", borderRadius: "10px", border: "none", background: "linear-gradient(135deg, " + accent + ", " + alpha(accent, 0.7) + ")", color: "#fff", fontSize: "13px", fontWeight: "700", cursor: "pointer", fontFamily: "inherit" }
|
|
3874
|
+
},
|
|
3875
|
+
"Add to Cart"
|
|
3876
|
+
))))
|
|
3877
|
+
);
|
|
3878
|
+
};
|
|
3879
|
+
|
|
3880
|
+
// src/components/IDCard/IDCard.jsx
|
|
3881
|
+
import React26 from "react";
|
|
3882
|
+
var IDCard = ({
|
|
3883
|
+
name = "John Doe",
|
|
3884
|
+
role = "Software Engineer",
|
|
3885
|
+
company = "TechCorp",
|
|
3886
|
+
photo = "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=600&q=80",
|
|
3887
|
+
accent = "#6366f1",
|
|
3888
|
+
bg = "#0f172a",
|
|
3889
|
+
onContactClick = () => {
|
|
3890
|
+
}
|
|
3891
|
+
}) => {
|
|
3892
|
+
const alpha = (hex, op) => {
|
|
3893
|
+
const r = parseInt(hex.slice(1, 3), 16), g = parseInt(hex.slice(3, 5), 16), b = parseInt(hex.slice(5, 7), 16);
|
|
3894
|
+
return "rgba(" + r + "," + g + "," + b + "," + op + ")";
|
|
3895
|
+
};
|
|
3896
|
+
return /* @__PURE__ */ React26.createElement("div", { style: { background: bg, borderRadius: "20px", padding: "24px", width: "300px", 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" } }, /* @__PURE__ */ React26.createElement("div", { style: { display: "flex", alignItems: "center", gap: "16px", marginBottom: "20px" } }, /* @__PURE__ */ React26.createElement("div", { style: { width: "80px", height: "80px", borderRadius: "50%", overflow: "hidden", border: "2px solid " + alpha(accent, 0.5) } }, /* @__PURE__ */ React26.createElement("img", { src: photo, alt: name, style: { width: "100%", height: "100%", objectFit: "cover" } })), /* @__PURE__ */ React26.createElement("div", null, /* @__PURE__ */ React26.createElement("div", { style: { fontSize: "18px", fontWeight: "700", marginBottom: "4px" } }, name), /* @__PURE__ */ React26.createElement("div", { style: { fontSize: "13px", color: "rgba(255,255,255,0.5)" } }, role))), /* @__PURE__ */ React26.createElement("div", { style: { fontSize: "14px", color: "rgba(255,255,255,0.6)", marginBottom: "20px", paddingBottom: "20px", borderBottom: "1px solid " + alpha(accent, 0.1) } }, company), /* @__PURE__ */ React26.createElement("button", { onClick: onContactClick, style: { width: "100%", padding: "12px", borderRadius: "12px", border: "none", background: "linear-gradient(135deg, " + accent + ", " + alpha(accent, 0.7) + ")", color: "#fff", fontSize: "14px", fontWeight: "700", cursor: "pointer", fontFamily: "inherit" } }, "Contact"));
|
|
3897
|
+
};
|
|
3898
|
+
|
|
3899
|
+
// src/components/DatePicker/DatePicker.jsx
|
|
3900
|
+
import React27, { useState as useState22 } from "react";
|
|
3901
|
+
var DatePicker = ({
|
|
3902
|
+
selectedDate = /* @__PURE__ */ new Date(),
|
|
3903
|
+
accent = "#6366f1",
|
|
3904
|
+
bg = "#0f172a",
|
|
3905
|
+
onDateChange = () => {
|
|
3906
|
+
}
|
|
3907
|
+
}) => {
|
|
3908
|
+
const [date, setDate] = useState22(selectedDate);
|
|
3909
|
+
const alpha = (hex, op) => {
|
|
3910
|
+
const r = parseInt(hex.slice(1, 3), 16), g = parseInt(hex.slice(3, 5), 16), b = parseInt(hex.slice(5, 7), 16);
|
|
3911
|
+
return "rgba(" + r + "," + g + "," + b + "," + op + ")";
|
|
3912
|
+
};
|
|
3913
|
+
const handleDateChange = (e) => {
|
|
3914
|
+
const newDate = new Date(e.target.value);
|
|
3915
|
+
setDate(newDate);
|
|
3916
|
+
onDateChange(newDate);
|
|
3917
|
+
};
|
|
3918
|
+
return /* @__PURE__ */ React27.createElement("div", { style: { background: bg, borderRadius: "12px", padding: "16px", width: "280px", fontFamily: "system-ui,sans-serif", boxShadow: "0 10px 40px rgba(0,0,0,0.5)", border: "1px solid rgba(255,255,255,0.07)" } }, /* @__PURE__ */ React27.createElement(
|
|
3919
|
+
"input",
|
|
3920
|
+
{
|
|
3921
|
+
type: "date",
|
|
3922
|
+
value: date.toISOString().split("T")[0],
|
|
3923
|
+
onChange: handleDateChange,
|
|
3924
|
+
style: {
|
|
3925
|
+
width: "100%",
|
|
3926
|
+
padding: "12px",
|
|
3927
|
+
borderRadius: "8px",
|
|
3928
|
+
border: "1px solid " + alpha(accent, 0.3),
|
|
3929
|
+
background: "transparent",
|
|
3930
|
+
color: "#fff",
|
|
3931
|
+
fontFamily: "inherit",
|
|
3932
|
+
fontSize: "14px",
|
|
3933
|
+
outline: "none",
|
|
3934
|
+
cursor: "pointer"
|
|
3935
|
+
}
|
|
3936
|
+
}
|
|
3937
|
+
));
|
|
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
|
+
};
|
|
3932
3966
|
export {
|
|
3933
3967
|
AnimatedButton,
|
|
3934
3968
|
AnimatedForm,
|
|
@@ -3938,9 +3972,12 @@ export {
|
|
|
3938
3972
|
Card,
|
|
3939
3973
|
Charts,
|
|
3940
3974
|
ColorPicker,
|
|
3941
|
-
|
|
3975
|
+
DatePicker,
|
|
3976
|
+
ECommerceCard,
|
|
3977
|
+
FacebookPost,
|
|
3942
3978
|
FileUpload,
|
|
3943
3979
|
Footer,
|
|
3980
|
+
IDCard,
|
|
3944
3981
|
ImageCard,
|
|
3945
3982
|
ImageSlider,
|
|
3946
3983
|
InvoiceCard,
|