omui-lib 1.0.1 → 1.0.3
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/chunk-57QJO5RD.mjs +83 -0
- package/dist/chunk-5LA6VVEY.mjs +56 -0
- package/dist/chunk-EWRW432G.mjs +39 -0
- package/dist/chunk-FGTNFYFJ.mjs +114 -0
- package/dist/chunk-MQOZXOBV.mjs +93 -0
- package/dist/chunk-NJSJATQ6.mjs +128 -0
- package/dist/chunk-SJ4MEFAG.mjs +103 -0
- package/dist/chunk-UVOXBLXP.mjs +38 -0
- package/dist/chunk-VA6HDMVP.mjs +50 -0
- package/dist/chunk-XD6E2QQI.mjs +143 -0
- package/dist/chunk-XGVKPI3O.mjs +23 -0
- package/dist/components/AnimatedProgressBar/AnimatedProgressBar.js +83 -0
- package/dist/components/AnimatedProgressBar/AnimatedProgressBar.mjs +6 -0
- package/dist/components/Box/Box.js +71 -0
- package/dist/components/Box/Box.mjs +6 -0
- package/dist/components/Button/Button.js +89 -0
- package/dist/components/Button/Button.mjs +6 -0
- package/dist/components/CommentCard/CommentCard.js +72 -0
- package/dist/components/CommentCard/CommentCard.mjs +6 -0
- package/dist/components/Graph/Graph.js +136 -0
- package/dist/components/Graph/Graph.mjs +6 -0
- package/dist/components/HoverCard/HoverCard.js +126 -0
- package/dist/components/HoverCard/HoverCard.mjs +6 -0
- package/dist/components/Loader/Loader.js +56 -0
- package/dist/components/Loader/Loader.mjs +6 -0
- package/dist/components/PricingCard/PricingCard.js +147 -0
- package/dist/components/PricingCard/PricingCard.mjs +6 -0
- package/dist/components/SliderCard/SliderCard.js +161 -0
- package/dist/components/SliderCard/SliderCard.mjs +6 -0
- package/dist/components/SwipeCard/SwipeCard.js +176 -0
- package/dist/components/SwipeCard/SwipeCard.mjs +6 -0
- package/dist/components/ThumbnailCard/ThumbnailCard.js +116 -0
- package/dist/components/ThumbnailCard/ThumbnailCard.mjs +6 -0
- package/dist/components/ToggleButton/ToggleButton.js +100 -0
- package/dist/components/ToggleButton/ToggleButton.mjs +66 -0
- package/dist/components/Toolbox/Toolbox.js +102 -0
- package/dist/components/Toolbox/Toolbox.mjs +68 -0
- package/dist/index.js +811 -405
- package/dist/index.mjs +43 -448
- package/package.json +4 -3
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
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
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/Graph/Graph.jsx
|
|
30
|
+
var Graph_exports = {};
|
|
31
|
+
__export(Graph_exports, {
|
|
32
|
+
Graph: () => Graph
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Graph_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var Graph = ({
|
|
37
|
+
data = [25, 50, 75, 100, 75, 50, 25],
|
|
38
|
+
labels = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
|
39
|
+
width = 600,
|
|
40
|
+
height = 300,
|
|
41
|
+
bg = "#0f172a",
|
|
42
|
+
accent = "#6366f1",
|
|
43
|
+
gridColor = "rgba(255,255,255,0.05)",
|
|
44
|
+
textColor = "rgba(255,255,255,0.5)",
|
|
45
|
+
showDots = true,
|
|
46
|
+
showArea = true
|
|
47
|
+
}) => {
|
|
48
|
+
const canvasRef = (0, import_react.useRef)(null);
|
|
49
|
+
const alpha = (hex, op) => {
|
|
50
|
+
const r = parseInt(hex.slice(1, 3), 16), g = parseInt(hex.slice(3, 5), 16), b = parseInt(hex.slice(5, 7), 16);
|
|
51
|
+
return "rgba(" + r + "," + g + "," + b + "," + op + ")";
|
|
52
|
+
};
|
|
53
|
+
(0, import_react.useEffect)(() => {
|
|
54
|
+
const canvas = canvasRef.current;
|
|
55
|
+
const ctx = canvas.getContext("2d");
|
|
56
|
+
ctx.clearRect(0, 0, width, height);
|
|
57
|
+
ctx.strokeStyle = gridColor;
|
|
58
|
+
ctx.lineWidth = 1;
|
|
59
|
+
const gridLines = 5;
|
|
60
|
+
for (let i = 0; i <= gridLines; i++) {
|
|
61
|
+
const y = (height - 40) * (i / gridLines) + 20;
|
|
62
|
+
ctx.beginPath();
|
|
63
|
+
ctx.moveTo(40, y);
|
|
64
|
+
ctx.lineTo(width - 20, y);
|
|
65
|
+
ctx.stroke();
|
|
66
|
+
ctx.fillStyle = textColor;
|
|
67
|
+
ctx.font = "10px system-ui, sans-serif";
|
|
68
|
+
ctx.textAlign = "right";
|
|
69
|
+
ctx.fillText(String(100 - i * 20), 35, y + 4);
|
|
70
|
+
}
|
|
71
|
+
const step = (width - 60) / (data.length - 1);
|
|
72
|
+
for (let i = 0; i < data.length; i++) {
|
|
73
|
+
const x = 40 + i * step;
|
|
74
|
+
ctx.beginPath();
|
|
75
|
+
ctx.moveTo(x, 20);
|
|
76
|
+
ctx.lineTo(x, height - 20);
|
|
77
|
+
ctx.stroke();
|
|
78
|
+
ctx.fillStyle = textColor;
|
|
79
|
+
ctx.font = "11px system-ui, sans-serif";
|
|
80
|
+
ctx.textAlign = "center";
|
|
81
|
+
ctx.fillText(labels[i], x, height - 5);
|
|
82
|
+
}
|
|
83
|
+
const points = data.map((value, i) => {
|
|
84
|
+
const x = 40 + i * step;
|
|
85
|
+
const y = height - 20 - value / 100 * (height - 40);
|
|
86
|
+
return { x, y };
|
|
87
|
+
});
|
|
88
|
+
if (showArea) {
|
|
89
|
+
ctx.fillStyle = alpha(accent, 0.15);
|
|
90
|
+
ctx.beginPath();
|
|
91
|
+
ctx.moveTo(40, height - 20);
|
|
92
|
+
points.forEach((point) => ctx.lineTo(point.x, point.y));
|
|
93
|
+
ctx.lineTo(width - 20, height - 20);
|
|
94
|
+
ctx.closePath();
|
|
95
|
+
ctx.fill();
|
|
96
|
+
}
|
|
97
|
+
ctx.strokeStyle = accent;
|
|
98
|
+
ctx.lineWidth = 2;
|
|
99
|
+
ctx.beginPath();
|
|
100
|
+
ctx.moveTo(points[0].x, points[0].y);
|
|
101
|
+
points.slice(1).forEach((point) => ctx.lineTo(point.x, point.y));
|
|
102
|
+
ctx.stroke();
|
|
103
|
+
if (showDots) {
|
|
104
|
+
points.forEach((point) => {
|
|
105
|
+
ctx.fillStyle = accent;
|
|
106
|
+
ctx.beginPath();
|
|
107
|
+
ctx.arc(point.x, point.y, 4, 0, Math.PI * 2);
|
|
108
|
+
ctx.fill();
|
|
109
|
+
ctx.fillStyle = bg;
|
|
110
|
+
ctx.beginPath();
|
|
111
|
+
ctx.arc(point.x, point.y, 2, 0, Math.PI * 2);
|
|
112
|
+
ctx.fill();
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
}, [data, labels, width, height, bg, accent, gridColor, textColor, showDots, showArea]);
|
|
116
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { style: {
|
|
117
|
+
background: bg,
|
|
118
|
+
borderRadius: "16px",
|
|
119
|
+
padding: "20px",
|
|
120
|
+
width: width + "px",
|
|
121
|
+
border: "1px solid rgba(255,255,255,0.08)",
|
|
122
|
+
boxShadow: "0 10px 40px rgba(0,0,0,0.4)"
|
|
123
|
+
} }, /* @__PURE__ */ import_react.default.createElement(
|
|
124
|
+
"canvas",
|
|
125
|
+
{
|
|
126
|
+
ref: canvasRef,
|
|
127
|
+
width,
|
|
128
|
+
height,
|
|
129
|
+
style: { display: "block" }
|
|
130
|
+
}
|
|
131
|
+
));
|
|
132
|
+
};
|
|
133
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
134
|
+
0 && (module.exports = {
|
|
135
|
+
Graph
|
|
136
|
+
});
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
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
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/HoverCard/HoverCard.jsx
|
|
30
|
+
var HoverCard_exports = {};
|
|
31
|
+
__export(HoverCard_exports, {
|
|
32
|
+
HoverCard: () => HoverCard
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(HoverCard_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var HoverCard = ({
|
|
37
|
+
title = "Premium Features",
|
|
38
|
+
description = "Unlock powerful tools to boost your productivity",
|
|
39
|
+
icon = "\u{1F680}",
|
|
40
|
+
accent = "#6366f1",
|
|
41
|
+
bg = "#0f172a",
|
|
42
|
+
width = "280px",
|
|
43
|
+
onHover = () => {
|
|
44
|
+
}
|
|
45
|
+
}) => {
|
|
46
|
+
const [hovered, setHovered] = (0, import_react.useState)(false);
|
|
47
|
+
const alpha = (hex, op) => {
|
|
48
|
+
const r = parseInt(hex.slice(1, 3), 16), g = parseInt(hex.slice(3, 5), 16), b = parseInt(hex.slice(5, 7), 16);
|
|
49
|
+
return "rgba(" + r + "," + g + "," + b + "," + op + ")";
|
|
50
|
+
};
|
|
51
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
52
|
+
"div",
|
|
53
|
+
{
|
|
54
|
+
onMouseEnter: () => {
|
|
55
|
+
setHovered(true);
|
|
56
|
+
onHover();
|
|
57
|
+
},
|
|
58
|
+
onMouseLeave: () => setHovered(false),
|
|
59
|
+
style: {
|
|
60
|
+
background: bg,
|
|
61
|
+
borderRadius: "16px",
|
|
62
|
+
padding: "24px",
|
|
63
|
+
width,
|
|
64
|
+
border: "1px solid " + (hovered ? alpha(accent, 0.3) : "rgba(255,255,255,0.08)"),
|
|
65
|
+
fontFamily: "system-ui,sans-serif",
|
|
66
|
+
transition: "all 0.25s ease",
|
|
67
|
+
transform: hovered ? "translateY(-8px)" : "translateY(0)",
|
|
68
|
+
boxShadow: hovered ? "0 20px 50px rgba(0,0,0,0.5)" : "0 10px 30px rgba(0,0,0,0.3)",
|
|
69
|
+
position: "relative",
|
|
70
|
+
overflow: "hidden"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
/* @__PURE__ */ import_react.default.createElement("div", { style: {
|
|
74
|
+
position: "absolute",
|
|
75
|
+
top: "-50px",
|
|
76
|
+
right: "-50px",
|
|
77
|
+
width: "100px",
|
|
78
|
+
height: "100px",
|
|
79
|
+
borderRadius: "50%",
|
|
80
|
+
background: alpha(accent, 0.1),
|
|
81
|
+
filter: "blur(40px)",
|
|
82
|
+
transition: "all 0.4s ease",
|
|
83
|
+
opacity: hovered ? 1 : 0
|
|
84
|
+
} }),
|
|
85
|
+
/* @__PURE__ */ import_react.default.createElement("div", { style: {
|
|
86
|
+
width: "48px",
|
|
87
|
+
height: "48px",
|
|
88
|
+
borderRadius: "12px",
|
|
89
|
+
background: alpha(accent, 0.15),
|
|
90
|
+
display: "flex",
|
|
91
|
+
alignItems: "center",
|
|
92
|
+
justifyContent: "center",
|
|
93
|
+
fontSize: "20px",
|
|
94
|
+
marginBottom: "16px",
|
|
95
|
+
border: "1px solid " + alpha(accent, 0.3)
|
|
96
|
+
} }, icon),
|
|
97
|
+
/* @__PURE__ */ import_react.default.createElement("h3", { style: {
|
|
98
|
+
fontSize: "18px",
|
|
99
|
+
fontWeight: "700",
|
|
100
|
+
color: "#fff",
|
|
101
|
+
margin: "0 0 8px",
|
|
102
|
+
lineHeight: 1.3
|
|
103
|
+
} }, title),
|
|
104
|
+
/* @__PURE__ */ import_react.default.createElement("p", { style: {
|
|
105
|
+
fontSize: "14px",
|
|
106
|
+
color: "rgba(255,255,255,0.6)",
|
|
107
|
+
lineHeight: 1.5,
|
|
108
|
+
margin: 0
|
|
109
|
+
} }, description),
|
|
110
|
+
/* @__PURE__ */ import_react.default.createElement("div", { style: {
|
|
111
|
+
position: "absolute",
|
|
112
|
+
bottom: "0",
|
|
113
|
+
left: "0",
|
|
114
|
+
right: "0",
|
|
115
|
+
height: "3px",
|
|
116
|
+
background: "linear-gradient(90deg, " + accent + ", " + alpha(accent, 0.3) + ")",
|
|
117
|
+
transform: hovered ? "scaleX(1)" : "scaleX(0)",
|
|
118
|
+
transformOrigin: "left",
|
|
119
|
+
transition: "transform 0.4s cubic-bezier(0.65, 0, 0.35, 1)"
|
|
120
|
+
} })
|
|
121
|
+
);
|
|
122
|
+
};
|
|
123
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
124
|
+
0 && (module.exports = {
|
|
125
|
+
HoverCard
|
|
126
|
+
});
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
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
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/Loader/Loader.jsx
|
|
30
|
+
var Loader_exports = {};
|
|
31
|
+
__export(Loader_exports, {
|
|
32
|
+
Loader: () => Loader
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Loader_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var Loader = ({
|
|
37
|
+
size = "48px",
|
|
38
|
+
color = "#6366f1",
|
|
39
|
+
bg = "rgba(255,255,255,0.1)",
|
|
40
|
+
speed = "1s",
|
|
41
|
+
thickness = "4px"
|
|
42
|
+
}) => {
|
|
43
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", width: "100%", height: "100%" } }, /* @__PURE__ */ import_react.default.createElement("div", { style: {
|
|
44
|
+
width: size,
|
|
45
|
+
height: size,
|
|
46
|
+
borderRadius: "50%",
|
|
47
|
+
border: thickness + " solid " + bg,
|
|
48
|
+
borderTop: thickness + " solid " + color,
|
|
49
|
+
animation: "spin " + speed + " linear infinite",
|
|
50
|
+
display: "inline-block"
|
|
51
|
+
} }), /* @__PURE__ */ import_react.default.createElement("style", null, "@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }"));
|
|
52
|
+
};
|
|
53
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
54
|
+
0 && (module.exports = {
|
|
55
|
+
Loader
|
|
56
|
+
});
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
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
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/PricingCard/PricingCard.jsx
|
|
30
|
+
var PricingCard_exports = {};
|
|
31
|
+
__export(PricingCard_exports, {
|
|
32
|
+
PricingCard: () => PricingCard
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(PricingCard_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var PricingCard = ({
|
|
37
|
+
title = "Premium Plan",
|
|
38
|
+
price = 49,
|
|
39
|
+
currency = "$",
|
|
40
|
+
period = "/month",
|
|
41
|
+
features = ["Unlimited projects", "Priority support", "Advanced analytics", "Custom integrations"],
|
|
42
|
+
ctaText = "Get Started",
|
|
43
|
+
accent = "#6366f1",
|
|
44
|
+
bg = "#0f172a",
|
|
45
|
+
popular = true,
|
|
46
|
+
onCtaClick = () => {
|
|
47
|
+
}
|
|
48
|
+
}) => {
|
|
49
|
+
const alpha = (hex, op) => {
|
|
50
|
+
const r = parseInt(hex.slice(1, 3), 16), g = parseInt(hex.slice(3, 5), 16), b = parseInt(hex.slice(5, 7), 16);
|
|
51
|
+
return "rgba(" + r + "," + g + "," + b + "," + op + ")";
|
|
52
|
+
};
|
|
53
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { style: {
|
|
54
|
+
background: bg,
|
|
55
|
+
borderRadius: "20px",
|
|
56
|
+
padding: "32px 28px",
|
|
57
|
+
width: "320px",
|
|
58
|
+
position: "relative",
|
|
59
|
+
border: "1px solid " + alpha(accent, 0.2),
|
|
60
|
+
boxShadow: "0 15px 40px rgba(0,0,0,0.4)",
|
|
61
|
+
fontFamily: "system-ui, sans-serif"
|
|
62
|
+
} }, popular && /* @__PURE__ */ import_react.default.createElement("div", { style: {
|
|
63
|
+
position: "absolute",
|
|
64
|
+
top: "16px",
|
|
65
|
+
right: "16px",
|
|
66
|
+
background: accent,
|
|
67
|
+
color: "white",
|
|
68
|
+
fontSize: "12px",
|
|
69
|
+
fontWeight: "700",
|
|
70
|
+
padding: "4px 12px",
|
|
71
|
+
borderRadius: "20px",
|
|
72
|
+
textTransform: "uppercase"
|
|
73
|
+
} }, "Popular"), /* @__PURE__ */ import_react.default.createElement("h3", { style: {
|
|
74
|
+
fontSize: "22px",
|
|
75
|
+
fontWeight: "800",
|
|
76
|
+
color: "white",
|
|
77
|
+
margin: "0 0 8px"
|
|
78
|
+
} }, title), /* @__PURE__ */ import_react.default.createElement("p", { style: {
|
|
79
|
+
fontSize: "14px",
|
|
80
|
+
color: "rgba(255,255,255,0.6)",
|
|
81
|
+
margin: "0 0 24px"
|
|
82
|
+
} }, "Perfect for growing businesses"), /* @__PURE__ */ import_react.default.createElement("div", { style: {
|
|
83
|
+
display: "flex",
|
|
84
|
+
alignItems: "baseline",
|
|
85
|
+
gap: "4px",
|
|
86
|
+
marginBottom: "8px"
|
|
87
|
+
} }, /* @__PURE__ */ import_react.default.createElement("span", { style: {
|
|
88
|
+
fontSize: "14px",
|
|
89
|
+
fontWeight: "600",
|
|
90
|
+
color: "rgba(255,255,255,0.7)"
|
|
91
|
+
} }, currency), /* @__PURE__ */ import_react.default.createElement("span", { style: {
|
|
92
|
+
fontSize: "48px",
|
|
93
|
+
fontWeight: "800",
|
|
94
|
+
color: "white"
|
|
95
|
+
} }, price), /* @__PURE__ */ import_react.default.createElement("span", { style: {
|
|
96
|
+
fontSize: "14px",
|
|
97
|
+
color: "rgba(255,255,255,0.5)"
|
|
98
|
+
} }, period)), /* @__PURE__ */ import_react.default.createElement("div", { style: {
|
|
99
|
+
height: "1px",
|
|
100
|
+
background: "rgba(255,255,255,0.1)",
|
|
101
|
+
margin: "24px 0"
|
|
102
|
+
} }), /* @__PURE__ */ import_react.default.createElement("ul", { style: {
|
|
103
|
+
listStyle: "none",
|
|
104
|
+
padding: 0,
|
|
105
|
+
margin: "0 0 32px",
|
|
106
|
+
display: "flex",
|
|
107
|
+
flexDirection: "column",
|
|
108
|
+
gap: "12px"
|
|
109
|
+
} }, features.map((feature, i) => /* @__PURE__ */ import_react.default.createElement("li", { key: i, style: {
|
|
110
|
+
display: "flex",
|
|
111
|
+
alignItems: "center",
|
|
112
|
+
gap: "8px",
|
|
113
|
+
fontSize: "14px",
|
|
114
|
+
color: "rgba(255,255,255,0.8)"
|
|
115
|
+
} }, /* @__PURE__ */ import_react.default.createElement("div", { style: {
|
|
116
|
+
width: "20px",
|
|
117
|
+
height: "20px",
|
|
118
|
+
borderRadius: "50%",
|
|
119
|
+
background: alpha(accent, 0.2),
|
|
120
|
+
display: "flex",
|
|
121
|
+
alignItems: "center",
|
|
122
|
+
justifyContent: "center",
|
|
123
|
+
flexShrink: 0
|
|
124
|
+
} }, /* @__PURE__ */ import_react.default.createElement("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: accent, strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round" }, /* @__PURE__ */ import_react.default.createElement("polyline", { points: "20 6 9 17 4 12" }))), feature))), /* @__PURE__ */ import_react.default.createElement(
|
|
125
|
+
"button",
|
|
126
|
+
{
|
|
127
|
+
onClick: onCtaClick,
|
|
128
|
+
style: {
|
|
129
|
+
width: "100%",
|
|
130
|
+
padding: "14px",
|
|
131
|
+
borderRadius: "12px",
|
|
132
|
+
border: "none",
|
|
133
|
+
background: "linear-gradient(135deg, " + accent + ", " + alpha(accent, 0.7) + ")",
|
|
134
|
+
color: "white",
|
|
135
|
+
fontSize: "15px",
|
|
136
|
+
fontWeight: "700",
|
|
137
|
+
cursor: "pointer",
|
|
138
|
+
transition: "transform 0.2s, box-shadow 0.2s"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
ctaText
|
|
142
|
+
));
|
|
143
|
+
};
|
|
144
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
145
|
+
0 && (module.exports = {
|
|
146
|
+
PricingCard
|
|
147
|
+
});
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
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
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/SliderCard/SliderCard.jsx
|
|
30
|
+
var SliderCard_exports = {};
|
|
31
|
+
__export(SliderCard_exports, {
|
|
32
|
+
SliderCard: () => SliderCard
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(SliderCard_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var SliderCard = ({
|
|
37
|
+
items = [
|
|
38
|
+
{
|
|
39
|
+
title: "Mountain Retreat",
|
|
40
|
+
description: "Escape to the serene mountains for a peaceful getaway.",
|
|
41
|
+
image: "https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?w=600&q=80",
|
|
42
|
+
buttonText: "Book Now"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
title: "Beach Paradise",
|
|
46
|
+
description: "Relax on pristine beaches with crystal clear waters.",
|
|
47
|
+
image: "https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=600&q=80",
|
|
48
|
+
buttonText: "Explore"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
title: "City Adventure",
|
|
52
|
+
description: "Experience the vibrant energy of urban landscapes.",
|
|
53
|
+
image: "https://images.unsplash.com/photo-1480714378408-67cf0d13bc1b?w=600&q=80",
|
|
54
|
+
buttonText: "Discover"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
accent = "#6366f1",
|
|
58
|
+
bg = "#0f172a",
|
|
59
|
+
autoSlide = true,
|
|
60
|
+
slideInterval = 5e3,
|
|
61
|
+
onButtonClick = () => {
|
|
62
|
+
}
|
|
63
|
+
}) => {
|
|
64
|
+
const [currentIndex, setCurrentIndex] = (0, import_react.useState)(0);
|
|
65
|
+
const [hovered, setHovered] = (0, import_react.useState)(false);
|
|
66
|
+
const alpha = (hex, op) => {
|
|
67
|
+
const r = parseInt(hex.slice(1, 3), 16), g = parseInt(hex.slice(3, 5), 16), b = parseInt(hex.slice(5, 7), 16);
|
|
68
|
+
return "rgba(" + r + "," + g + "," + b + "," + op + ")";
|
|
69
|
+
};
|
|
70
|
+
(0, import_react.useEffect)(() => {
|
|
71
|
+
if (!autoSlide || hovered) return;
|
|
72
|
+
const interval = setInterval(() => {
|
|
73
|
+
setCurrentIndex((prev) => prev === items.length - 1 ? 0 : prev + 1);
|
|
74
|
+
}, slideInterval);
|
|
75
|
+
return () => clearInterval(interval);
|
|
76
|
+
}, [currentIndex, autoSlide, hovered, items.length, slideInterval]);
|
|
77
|
+
const goToSlide = (index) => {
|
|
78
|
+
setCurrentIndex(index);
|
|
79
|
+
};
|
|
80
|
+
const currentItem = items[currentIndex];
|
|
81
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
82
|
+
"div",
|
|
83
|
+
{
|
|
84
|
+
onMouseEnter: () => setHovered(true),
|
|
85
|
+
onMouseLeave: () => setHovered(false),
|
|
86
|
+
style: {
|
|
87
|
+
position: "relative",
|
|
88
|
+
width: "400px",
|
|
89
|
+
height: "500px",
|
|
90
|
+
borderRadius: "20px",
|
|
91
|
+
overflow: "hidden",
|
|
92
|
+
background: bg,
|
|
93
|
+
boxShadow: "0 10px 40px rgba(0,0,0,0.5)",
|
|
94
|
+
border: "1px solid rgba(255,255,255,0.08)",
|
|
95
|
+
fontFamily: "system-ui,sans-serif"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
/* @__PURE__ */ import_react.default.createElement("div", { style: { position: "relative", width: "100%", height: "60%" } }, /* @__PURE__ */ import_react.default.createElement(
|
|
99
|
+
"img",
|
|
100
|
+
{
|
|
101
|
+
src: currentItem.image,
|
|
102
|
+
alt: currentItem.title,
|
|
103
|
+
style: {
|
|
104
|
+
width: "100%",
|
|
105
|
+
height: "100%",
|
|
106
|
+
objectFit: "cover",
|
|
107
|
+
transition: "opacity 0.5s ease",
|
|
108
|
+
opacity: hovered ? 0.9 : 1
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
), /* @__PURE__ */ import_react.default.createElement("div", { style: {
|
|
112
|
+
position: "absolute",
|
|
113
|
+
bottom: "20px",
|
|
114
|
+
left: "0",
|
|
115
|
+
right: "0",
|
|
116
|
+
display: "flex",
|
|
117
|
+
justifyContent: "center",
|
|
118
|
+
gap: "8px"
|
|
119
|
+
} }, items.map((_, index) => /* @__PURE__ */ import_react.default.createElement(
|
|
120
|
+
"button",
|
|
121
|
+
{
|
|
122
|
+
key: index,
|
|
123
|
+
onClick: () => goToSlide(index),
|
|
124
|
+
style: {
|
|
125
|
+
width: "10px",
|
|
126
|
+
height: "10px",
|
|
127
|
+
borderRadius: "50%",
|
|
128
|
+
border: "none",
|
|
129
|
+
cursor: "pointer",
|
|
130
|
+
background: currentIndex === index ? accent : "rgba(255,255,255,0.2)",
|
|
131
|
+
transition: "background 0.3s"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
)))),
|
|
135
|
+
/* @__PURE__ */ import_react.default.createElement("div", { style: { padding: "24px" } }, /* @__PURE__ */ import_react.default.createElement("h3", { style: { fontSize: "20px", fontWeight: "700", color: "#fff", margin: "0 0 8px" } }, currentItem.title), /* @__PURE__ */ import_react.default.createElement("p", { style: { fontSize: "14px", color: "rgba(255,255,255,0.6)", lineHeight: 1.5, margin: "0 0 20px" } }, currentItem.description), /* @__PURE__ */ import_react.default.createElement(
|
|
136
|
+
"button",
|
|
137
|
+
{
|
|
138
|
+
onClick: () => onButtonClick(currentIndex),
|
|
139
|
+
style: {
|
|
140
|
+
width: "100%",
|
|
141
|
+
padding: "12px",
|
|
142
|
+
borderRadius: "10px",
|
|
143
|
+
border: "none",
|
|
144
|
+
background: "linear-gradient(135deg, " + accent + ", " + alpha(accent, 0.7) + ")",
|
|
145
|
+
color: "#fff",
|
|
146
|
+
fontSize: "14px",
|
|
147
|
+
fontWeight: "700",
|
|
148
|
+
cursor: "pointer",
|
|
149
|
+
fontFamily: "inherit",
|
|
150
|
+
transition: "transform 0.2s",
|
|
151
|
+
transform: hovered ? "scale(1.02)" : "scale(1)"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
currentItem.buttonText
|
|
155
|
+
))
|
|
156
|
+
);
|
|
157
|
+
};
|
|
158
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
159
|
+
0 && (module.exports = {
|
|
160
|
+
SliderCard
|
|
161
|
+
});
|