@medialane/ui 0.294.0 → 0.295.0
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/components/account/input-otp.d.cts +2 -2
- package/dist/components/account/input-otp.d.ts +2 -2
- package/dist/components/badge.d.cts +1 -1
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/button.d.cts +2 -2
- package/dist/components/button.d.ts +2 -2
- package/dist/components/create-sponsorship-aside.cjs +52 -0
- package/dist/components/create-sponsorship-aside.cjs.map +1 -0
- package/dist/components/create-sponsorship-aside.d.cts +5 -0
- package/dist/components/create-sponsorship-aside.d.ts +5 -0
- package/dist/components/create-sponsorship-aside.js +28 -0
- package/dist/components/create-sponsorship-aside.js.map +1 -0
- package/dist/components/fast-mint/fast-mint.d.cts +2 -2
- package/dist/components/fast-mint/fast-mint.d.ts +2 -2
- package/dist/components/journey-content.cjs +156 -0
- package/dist/components/journey-content.cjs.map +1 -0
- package/dist/components/journey-content.d.cts +7 -0
- package/dist/components/journey-content.d.ts +7 -0
- package/dist/components/journey-content.js +122 -0
- package/dist/components/journey-content.js.map +1 -0
- package/dist/components/page-skeletons.cjs +152 -0
- package/dist/components/page-skeletons.cjs.map +1 -0
- package/dist/components/page-skeletons.d.cts +10 -0
- package/dist/components/page-skeletons.d.ts +10 -0
- package/dist/components/page-skeletons.js +123 -0
- package/dist/components/page-skeletons.js.map +1 -0
- package/dist/components/rewards-page.cjs +41 -0
- package/dist/components/rewards-page.cjs.map +1 -0
- package/dist/components/rewards-page.d.cts +5 -0
- package/dist/components/rewards-page.d.ts +5 -0
- package/dist/components/rewards-page.js +17 -0
- package/dist/components/rewards-page.js.map +1 -0
- package/dist/components/route-error.cjs +65 -0
- package/dist/components/route-error.cjs.map +1 -0
- package/dist/components/route-error.d.cts +10 -0
- package/dist/components/route-error.d.ts +10 -0
- package/dist/components/route-error.js +41 -0
- package/dist/components/route-error.js.map +1 -0
- package/dist/components/settings-snapshots.cjs +124 -0
- package/dist/components/settings-snapshots.cjs.map +1 -0
- package/dist/components/settings-snapshots.d.cts +12 -0
- package/dist/components/settings-snapshots.d.ts +12 -0
- package/dist/components/settings-snapshots.js +89 -0
- package/dist/components/settings-snapshots.js.map +1 -0
- package/dist/components/sheet.d.cts +1 -1
- package/dist/components/sheet.d.ts +1 -1
- package/dist/index.cjs +30 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var page_skeletons_exports = {};
|
|
20
|
+
__export(page_skeletons_exports, {
|
|
21
|
+
AccountLoading: () => AccountLoading,
|
|
22
|
+
ActivitiesLoading: () => ActivitiesLoading,
|
|
23
|
+
CollectionsLoading: () => CollectionsLoading,
|
|
24
|
+
CreatorLoading: () => CreatorLoading,
|
|
25
|
+
MarketplaceLoading: () => MarketplaceLoading,
|
|
26
|
+
PortfolioLoading: () => PortfolioLoading
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(page_skeletons_exports);
|
|
29
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
+
var import_skeleton = require("./skeleton.js");
|
|
31
|
+
function AccountLoading() {
|
|
32
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pb-20 min-h-screen", children: [
|
|
33
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "w-full h-48 sm:h-64 rounded-none" }),
|
|
34
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "px-6", children: [
|
|
35
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "-mt-14 sm:-mt-16 relative z-10", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-wrap items-end gap-x-4 gap-y-3 pb-6", children: [
|
|
36
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-[88px] w-[88px] rounded-full shrink-0 ring-[3px] ring-background" }),
|
|
37
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex-1 min-w-0 pb-1 space-y-2", children: [
|
|
38
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-5 w-20 rounded-full" }),
|
|
39
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-6 w-52" }),
|
|
40
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-4 w-40" })
|
|
41
|
+
] }),
|
|
42
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-8 w-20 rounded-lg pb-1" })
|
|
43
|
+
] }) }),
|
|
44
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "border-b border-border flex gap-1 pb-0 mb-0", children: [72, 80, 104, 76].map((w, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-10 rounded-none", style: { width: w } }, i)) }),
|
|
45
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mt-6 grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-4", children: Array.from({ length: 8 }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "rounded-2xl border border-border overflow-hidden", children: [
|
|
46
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "aspect-square w-full" }),
|
|
47
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "p-3 space-y-2", children: [
|
|
48
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-4 w-3/4" }),
|
|
49
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-3 w-1/2" })
|
|
50
|
+
] })
|
|
51
|
+
] }, i)) })
|
|
52
|
+
] })
|
|
53
|
+
] });
|
|
54
|
+
}
|
|
55
|
+
function CreatorLoading() {
|
|
56
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "pb-20 min-h-screen", children: [
|
|
57
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "w-full h-48 sm:h-64 rounded-none" }),
|
|
58
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "px-6", children: [
|
|
59
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "-mt-14 sm:-mt-16 relative z-10", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-wrap items-end gap-x-4 gap-y-3 pb-6", children: [
|
|
60
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-[88px] w-[88px] rounded-full shrink-0 ring-[3px] ring-background" }),
|
|
61
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex-1 min-w-0 pb-1 space-y-2", children: [
|
|
62
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-5 w-20 rounded-full" }),
|
|
63
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-6 w-52" }),
|
|
64
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-4 w-40" })
|
|
65
|
+
] }),
|
|
66
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-8 w-20 rounded-lg pb-1" })
|
|
67
|
+
] }) }),
|
|
68
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "border-b border-border flex gap-1 pb-0 mb-0", children: [72, 80, 104, 76].map((w, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-10 rounded-none", style: { width: w } }, i)) }),
|
|
69
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mt-6 grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-4", children: Array.from({ length: 8 }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "rounded-2xl border border-border overflow-hidden", children: [
|
|
70
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "aspect-square w-full" }),
|
|
71
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "p-3 space-y-2", children: [
|
|
72
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-4 w-3/4" }),
|
|
73
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-3 w-1/2" })
|
|
74
|
+
] })
|
|
75
|
+
] }, i)) })
|
|
76
|
+
] })
|
|
77
|
+
] });
|
|
78
|
+
}
|
|
79
|
+
function ActivitiesLoading() {
|
|
80
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mx-auto w-full px-4 sm:px-6 lg:px-8 py-8 space-y-6", children: [
|
|
81
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-1", children: [
|
|
82
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-4 w-24" }),
|
|
83
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-9 w-40" }),
|
|
84
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-4 w-72" })
|
|
85
|
+
] }),
|
|
86
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex gap-2", children: Array.from({ length: 5 }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-8 w-20 rounded-md" }, i)) }),
|
|
87
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "rounded-xl border border-border bg-card divide-y divide-border/60 overflow-hidden", children: Array.from({ length: 10 }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center gap-3 px-4 py-3", children: [
|
|
88
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-8 w-8 rounded-lg shrink-0" }),
|
|
89
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex-1 space-y-1.5", children: [
|
|
90
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-3.5 w-40" }),
|
|
91
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-3 w-24" })
|
|
92
|
+
] }),
|
|
93
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-3 w-12" })
|
|
94
|
+
] }, i)) })
|
|
95
|
+
] });
|
|
96
|
+
}
|
|
97
|
+
function CollectionsLoading() {
|
|
98
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mx-auto w-full px-4 sm:px-6 lg:px-8 py-8 space-y-8", children: [
|
|
99
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-2", children: [
|
|
100
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-4 w-28" }),
|
|
101
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-9 w-56" }),
|
|
102
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-4 w-80" })
|
|
103
|
+
] }),
|
|
104
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "grid grid-cols-2 lg:grid-cols-4 gap-4 sm:gap-5", children: Array.from({ length: 8 }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative rounded-xl border border-border overflow-hidden", children: [
|
|
105
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "aspect-square w-full rounded-none" }),
|
|
106
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "absolute bottom-3 left-3 right-3 space-y-1.5", children: [
|
|
107
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-4 w-2/3 bg-muted-foreground/20" }),
|
|
108
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-3 w-1/3 bg-muted-foreground/20" })
|
|
109
|
+
] })
|
|
110
|
+
] }, i)) })
|
|
111
|
+
] });
|
|
112
|
+
}
|
|
113
|
+
function MarketplaceLoading() {
|
|
114
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "px-4 py-8 space-y-6", children: [
|
|
115
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-1", children: [
|
|
116
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-4 w-28" }),
|
|
117
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-8 w-56" }),
|
|
118
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-4 w-96" })
|
|
119
|
+
] }),
|
|
120
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-3 pb-2 border-b border-border/60", children: [
|
|
121
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-9 w-full sm:max-w-sm" }),
|
|
122
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-7 w-full" })
|
|
123
|
+
] }),
|
|
124
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4", children: Array.from({ length: 12 }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "rounded-xl border border-border bg-card overflow-hidden", children: [
|
|
125
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "aspect-square w-full" }),
|
|
126
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "p-3 space-y-2", children: [
|
|
127
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-4 w-3/4" }),
|
|
128
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-3 w-1/2" })
|
|
129
|
+
] })
|
|
130
|
+
] }, i)) })
|
|
131
|
+
] });
|
|
132
|
+
}
|
|
133
|
+
function PortfolioLoading() {
|
|
134
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mx-auto w-full px-4 sm:px-6 lg:px-8 py-8 space-y-6", children: [
|
|
135
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-1", children: [
|
|
136
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-9 w-36" }),
|
|
137
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-4 w-56" })
|
|
138
|
+
] }),
|
|
139
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex gap-1", children: Array.from({ length: 6 }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-9 w-28 rounded-md" }, i)) }),
|
|
140
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "space-y-3", children: Array.from({ length: 6 }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-20 w-full rounded-xl" }, i)) })
|
|
141
|
+
] });
|
|
142
|
+
}
|
|
143
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
144
|
+
0 && (module.exports = {
|
|
145
|
+
AccountLoading,
|
|
146
|
+
ActivitiesLoading,
|
|
147
|
+
CollectionsLoading,
|
|
148
|
+
CreatorLoading,
|
|
149
|
+
MarketplaceLoading,
|
|
150
|
+
PortfolioLoading
|
|
151
|
+
});
|
|
152
|
+
//# sourceMappingURL=page-skeletons.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/page-skeletons.tsx"],"sourcesContent":["import { Skeleton } from \"./skeleton.js\";\n\nexport function AccountLoading() {\n return (\n <div className=\"pb-20 min-h-screen\">\n\n <Skeleton className=\"w-full h-48 sm:h-64 rounded-none\" />\n\n <div className=\"px-6\">\n\n <div className=\"-mt-14 sm:-mt-16 relative z-10\">\n <div className=\"flex flex-wrap items-end gap-x-4 gap-y-3 pb-6\">\n <Skeleton className=\"h-[88px] w-[88px] rounded-full shrink-0 ring-[3px] ring-background\" />\n <div className=\"flex-1 min-w-0 pb-1 space-y-2\">\n <Skeleton className=\"h-5 w-20 rounded-full\" />\n <Skeleton className=\"h-6 w-52\" />\n <Skeleton className=\"h-4 w-40\" />\n </div>\n <Skeleton className=\"h-8 w-20 rounded-lg pb-1\" />\n </div>\n </div>\n\n <div className=\"border-b border-border flex gap-1 pb-0 mb-0\">\n {[72, 80, 104, 76].map((w, i) => (\n <Skeleton key={i} className=\"h-10 rounded-none\" style={{ width: w }} />\n ))}\n </div>\n\n <div className=\"mt-6 grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-4\">\n {Array.from({ length: 8 }).map((_, i) => (\n <div key={i} className=\"rounded-2xl border border-border overflow-hidden\">\n <Skeleton className=\"aspect-square w-full\" />\n <div className=\"p-3 space-y-2\">\n <Skeleton className=\"h-4 w-3/4\" />\n <Skeleton className=\"h-3 w-1/2\" />\n </div>\n </div>\n ))}\n </div>\n </div>\n </div>\n );\n}\n\nexport function CreatorLoading() {\n return (\n <div className=\"pb-20 min-h-screen\">\n\n <Skeleton className=\"w-full h-48 sm:h-64 rounded-none\" />\n\n <div className=\"px-6\">\n\n <div className=\"-mt-14 sm:-mt-16 relative z-10\">\n <div className=\"flex flex-wrap items-end gap-x-4 gap-y-3 pb-6\">\n <Skeleton className=\"h-[88px] w-[88px] rounded-full shrink-0 ring-[3px] ring-background\" />\n <div className=\"flex-1 min-w-0 pb-1 space-y-2\">\n <Skeleton className=\"h-5 w-20 rounded-full\" />\n <Skeleton className=\"h-6 w-52\" />\n <Skeleton className=\"h-4 w-40\" />\n </div>\n <Skeleton className=\"h-8 w-20 rounded-lg pb-1\" />\n </div>\n </div>\n\n <div className=\"border-b border-border flex gap-1 pb-0 mb-0\">\n {[72, 80, 104, 76].map((w, i) => (\n <Skeleton key={i} className=\"h-10 rounded-none\" style={{ width: w }} />\n ))}\n </div>\n\n <div className=\"mt-6 grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-4\">\n {Array.from({ length: 8 }).map((_, i) => (\n <div key={i} className=\"rounded-2xl border border-border overflow-hidden\">\n <Skeleton className=\"aspect-square w-full\" />\n <div className=\"p-3 space-y-2\">\n <Skeleton className=\"h-4 w-3/4\" />\n <Skeleton className=\"h-3 w-1/2\" />\n </div>\n </div>\n ))}\n </div>\n </div>\n </div>\n );\n}\n\nexport function ActivitiesLoading() {\n return (\n <div className=\"mx-auto w-full px-4 sm:px-6 lg:px-8 py-8 space-y-6\">\n <div className=\"space-y-1\">\n <Skeleton className=\"h-4 w-24\" />\n <Skeleton className=\"h-9 w-40\" />\n <Skeleton className=\"h-4 w-72\" />\n </div>\n <div className=\"flex gap-2\">\n {Array.from({ length: 5 }).map((_, i) => (\n <Skeleton key={i} className=\"h-8 w-20 rounded-md\" />\n ))}\n </div>\n <div className=\"rounded-xl border border-border bg-card divide-y divide-border/60 overflow-hidden\">\n {Array.from({ length: 10 }).map((_, i) => (\n <div key={i} className=\"flex items-center gap-3 px-4 py-3\">\n <Skeleton className=\"h-8 w-8 rounded-lg shrink-0\" />\n <div className=\"flex-1 space-y-1.5\">\n <Skeleton className=\"h-3.5 w-40\" />\n <Skeleton className=\"h-3 w-24\" />\n </div>\n <Skeleton className=\"h-3 w-12\" />\n </div>\n ))}\n </div>\n </div>\n );\n}\n\nexport function CollectionsLoading() {\n return (\n <div className=\"mx-auto w-full px-4 sm:px-6 lg:px-8 py-8 space-y-8\">\n <div className=\"space-y-2\">\n <Skeleton className=\"h-4 w-28\" />\n <Skeleton className=\"h-9 w-56\" />\n <Skeleton className=\"h-4 w-80\" />\n </div>\n <div className=\"grid grid-cols-2 lg:grid-cols-4 gap-4 sm:gap-5\">\n {Array.from({ length: 8 }).map((_, i) => (\n <div key={i} className=\"relative rounded-xl border border-border overflow-hidden\">\n <Skeleton className=\"aspect-square w-full rounded-none\" />\n <div className=\"absolute bottom-3 left-3 right-3 space-y-1.5\">\n <Skeleton className=\"h-4 w-2/3 bg-muted-foreground/20\" />\n <Skeleton className=\"h-3 w-1/3 bg-muted-foreground/20\" />\n </div>\n </div>\n ))}\n </div>\n </div>\n );\n}\n\nexport function MarketplaceLoading() {\n return (\n <div className=\"px-4 py-8 space-y-6\">\n <div className=\"space-y-1\">\n <Skeleton className=\"h-4 w-28\" />\n <Skeleton className=\"h-8 w-56\" />\n <Skeleton className=\"h-4 w-96\" />\n </div>\n <div className=\"space-y-3 pb-2 border-b border-border/60\">\n <Skeleton className=\"h-9 w-full sm:max-w-sm\" />\n <Skeleton className=\"h-7 w-full\" />\n </div>\n <div className=\"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4\">\n {Array.from({ length: 12 }).map((_, i) => (\n <div key={i} className=\"rounded-xl border border-border bg-card overflow-hidden\">\n <Skeleton className=\"aspect-square w-full\" />\n <div className=\"p-3 space-y-2\">\n <Skeleton className=\"h-4 w-3/4\" />\n <Skeleton className=\"h-3 w-1/2\" />\n </div>\n </div>\n ))}\n </div>\n </div>\n );\n}\n\nexport function PortfolioLoading() {\n return (\n <div className=\"mx-auto w-full px-4 sm:px-6 lg:px-8 py-8 space-y-6\">\n <div className=\"space-y-1\">\n <Skeleton className=\"h-9 w-36\" />\n <Skeleton className=\"h-4 w-56\" />\n </div>\n <div className=\"flex gap-1\">\n {Array.from({ length: 6 }).map((_, i) => (\n <Skeleton key={i} className=\"h-9 w-28 rounded-md\" />\n ))}\n </div>\n <div className=\"space-y-3\">\n {Array.from({ length: 6 }).map((_, i) => (\n <Skeleton key={i} className=\"h-20 w-full rounded-xl\" />\n ))}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;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AQ,GAAG,CAAC,EAAE,IAAI,CAAC,GAAG,MAClC,6CAAC,SAAY,WAAU,2DACrB;AAAA,kDAAC,4BAAS,WAAU,wBAAuB;AAAA,MAC3C,6CAAC,SAAI,WAAU,iBACb;AAAA,oDAAC,4BAAS,WAAU,aAAY;AAAA,QAChC,4CAAC,4BAAS,WAAU,aAAY;AAAA,SAClC;AAAA,SALQ,CAMV,CACD,GACH;AAAA,KACF;AAEJ;AAEO,SAAS,mBAAmB;AACjC,SACE,6CAAC,SAAI,WAAU,sDACb;AAAA,iDAAC,SAAI,WAAU,aACb;AAAA,kDAAC,4BAAS,WAAU,YAAW;AAAA,MAC/B,4CAAC,4BAAS,WAAU,YAAW;AAAA,OACjC;AAAA,IACA,4CAAC,SAAI,WAAU,cACZ,gBAAM,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAE,IAAI,CAAC,GAAG,MACjC,4CAAC,4BAAiB,WAAU,yBAAb,CAAmC,CACnD,GACH;AAAA,IACA,4CAAC,SAAI,WAAU,aACZ,gBAAM,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAE,IAAI,CAAC,GAAG,MACjC,4CAAC,4BAAiB,WAAU,4BAAb,CAAsC,CACtD,GACH;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
declare function AccountLoading(): react_jsx_runtime.JSX.Element;
|
|
4
|
+
declare function CreatorLoading(): react_jsx_runtime.JSX.Element;
|
|
5
|
+
declare function ActivitiesLoading(): react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare function CollectionsLoading(): react_jsx_runtime.JSX.Element;
|
|
7
|
+
declare function MarketplaceLoading(): react_jsx_runtime.JSX.Element;
|
|
8
|
+
declare function PortfolioLoading(): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { AccountLoading, ActivitiesLoading, CollectionsLoading, CreatorLoading, MarketplaceLoading, PortfolioLoading };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
declare function AccountLoading(): react_jsx_runtime.JSX.Element;
|
|
4
|
+
declare function CreatorLoading(): react_jsx_runtime.JSX.Element;
|
|
5
|
+
declare function ActivitiesLoading(): react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare function CollectionsLoading(): react_jsx_runtime.JSX.Element;
|
|
7
|
+
declare function MarketplaceLoading(): react_jsx_runtime.JSX.Element;
|
|
8
|
+
declare function PortfolioLoading(): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { AccountLoading, ActivitiesLoading, CollectionsLoading, CreatorLoading, MarketplaceLoading, PortfolioLoading };
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Skeleton } from "./skeleton.js";
|
|
3
|
+
function AccountLoading() {
|
|
4
|
+
return /* @__PURE__ */ jsxs("div", { className: "pb-20 min-h-screen", children: [
|
|
5
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "w-full h-48 sm:h-64 rounded-none" }),
|
|
6
|
+
/* @__PURE__ */ jsxs("div", { className: "px-6", children: [
|
|
7
|
+
/* @__PURE__ */ jsx("div", { className: "-mt-14 sm:-mt-16 relative z-10", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-end gap-x-4 gap-y-3 pb-6", children: [
|
|
8
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-[88px] w-[88px] rounded-full shrink-0 ring-[3px] ring-background" }),
|
|
9
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0 pb-1 space-y-2", children: [
|
|
10
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-20 rounded-full" }),
|
|
11
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-52" }),
|
|
12
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-40" })
|
|
13
|
+
] }),
|
|
14
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-20 rounded-lg pb-1" })
|
|
15
|
+
] }) }),
|
|
16
|
+
/* @__PURE__ */ jsx("div", { className: "border-b border-border flex gap-1 pb-0 mb-0", children: [72, 80, 104, 76].map((w, i) => /* @__PURE__ */ jsx(Skeleton, { className: "h-10 rounded-none", style: { width: w } }, i)) }),
|
|
17
|
+
/* @__PURE__ */ jsx("div", { className: "mt-6 grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-4", children: Array.from({ length: 8 }).map((_, i) => /* @__PURE__ */ jsxs("div", { className: "rounded-2xl border border-border overflow-hidden", children: [
|
|
18
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "aspect-square w-full" }),
|
|
19
|
+
/* @__PURE__ */ jsxs("div", { className: "p-3 space-y-2", children: [
|
|
20
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-3/4" }),
|
|
21
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-1/2" })
|
|
22
|
+
] })
|
|
23
|
+
] }, i)) })
|
|
24
|
+
] })
|
|
25
|
+
] });
|
|
26
|
+
}
|
|
27
|
+
function CreatorLoading() {
|
|
28
|
+
return /* @__PURE__ */ jsxs("div", { className: "pb-20 min-h-screen", children: [
|
|
29
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "w-full h-48 sm:h-64 rounded-none" }),
|
|
30
|
+
/* @__PURE__ */ jsxs("div", { className: "px-6", children: [
|
|
31
|
+
/* @__PURE__ */ jsx("div", { className: "-mt-14 sm:-mt-16 relative z-10", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-end gap-x-4 gap-y-3 pb-6", children: [
|
|
32
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-[88px] w-[88px] rounded-full shrink-0 ring-[3px] ring-background" }),
|
|
33
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0 pb-1 space-y-2", children: [
|
|
34
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-20 rounded-full" }),
|
|
35
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-52" }),
|
|
36
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-40" })
|
|
37
|
+
] }),
|
|
38
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-20 rounded-lg pb-1" })
|
|
39
|
+
] }) }),
|
|
40
|
+
/* @__PURE__ */ jsx("div", { className: "border-b border-border flex gap-1 pb-0 mb-0", children: [72, 80, 104, 76].map((w, i) => /* @__PURE__ */ jsx(Skeleton, { className: "h-10 rounded-none", style: { width: w } }, i)) }),
|
|
41
|
+
/* @__PURE__ */ jsx("div", { className: "mt-6 grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-4", children: Array.from({ length: 8 }).map((_, i) => /* @__PURE__ */ jsxs("div", { className: "rounded-2xl border border-border overflow-hidden", children: [
|
|
42
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "aspect-square w-full" }),
|
|
43
|
+
/* @__PURE__ */ jsxs("div", { className: "p-3 space-y-2", children: [
|
|
44
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-3/4" }),
|
|
45
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-1/2" })
|
|
46
|
+
] })
|
|
47
|
+
] }, i)) })
|
|
48
|
+
] })
|
|
49
|
+
] });
|
|
50
|
+
}
|
|
51
|
+
function ActivitiesLoading() {
|
|
52
|
+
return /* @__PURE__ */ jsxs("div", { className: "mx-auto w-full px-4 sm:px-6 lg:px-8 py-8 space-y-6", children: [
|
|
53
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
54
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-24" }),
|
|
55
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-40" }),
|
|
56
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-72" })
|
|
57
|
+
] }),
|
|
58
|
+
/* @__PURE__ */ jsx("div", { className: "flex gap-2", children: Array.from({ length: 5 }).map((_, i) => /* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-20 rounded-md" }, i)) }),
|
|
59
|
+
/* @__PURE__ */ jsx("div", { className: "rounded-xl border border-border bg-card divide-y divide-border/60 overflow-hidden", children: Array.from({ length: 10 }).map((_, i) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 px-4 py-3", children: [
|
|
60
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-8 rounded-lg shrink-0" }),
|
|
61
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1 space-y-1.5", children: [
|
|
62
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-3.5 w-40" }),
|
|
63
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-24" })
|
|
64
|
+
] }),
|
|
65
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-12" })
|
|
66
|
+
] }, i)) })
|
|
67
|
+
] });
|
|
68
|
+
}
|
|
69
|
+
function CollectionsLoading() {
|
|
70
|
+
return /* @__PURE__ */ jsxs("div", { className: "mx-auto w-full px-4 sm:px-6 lg:px-8 py-8 space-y-8", children: [
|
|
71
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
72
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-28" }),
|
|
73
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-56" }),
|
|
74
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-80" })
|
|
75
|
+
] }),
|
|
76
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 lg:grid-cols-4 gap-4 sm:gap-5", children: Array.from({ length: 8 }).map((_, i) => /* @__PURE__ */ jsxs("div", { className: "relative rounded-xl border border-border overflow-hidden", children: [
|
|
77
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "aspect-square w-full rounded-none" }),
|
|
78
|
+
/* @__PURE__ */ jsxs("div", { className: "absolute bottom-3 left-3 right-3 space-y-1.5", children: [
|
|
79
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-2/3 bg-muted-foreground/20" }),
|
|
80
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-1/3 bg-muted-foreground/20" })
|
|
81
|
+
] })
|
|
82
|
+
] }, i)) })
|
|
83
|
+
] });
|
|
84
|
+
}
|
|
85
|
+
function MarketplaceLoading() {
|
|
86
|
+
return /* @__PURE__ */ jsxs("div", { className: "px-4 py-8 space-y-6", children: [
|
|
87
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
88
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-28" }),
|
|
89
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-56" }),
|
|
90
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-96" })
|
|
91
|
+
] }),
|
|
92
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-3 pb-2 border-b border-border/60", children: [
|
|
93
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-full sm:max-w-sm" }),
|
|
94
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-7 w-full" })
|
|
95
|
+
] }),
|
|
96
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4", children: Array.from({ length: 12 }).map((_, i) => /* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-border bg-card overflow-hidden", children: [
|
|
97
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "aspect-square w-full" }),
|
|
98
|
+
/* @__PURE__ */ jsxs("div", { className: "p-3 space-y-2", children: [
|
|
99
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-3/4" }),
|
|
100
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-1/2" })
|
|
101
|
+
] })
|
|
102
|
+
] }, i)) })
|
|
103
|
+
] });
|
|
104
|
+
}
|
|
105
|
+
function PortfolioLoading() {
|
|
106
|
+
return /* @__PURE__ */ jsxs("div", { className: "mx-auto w-full px-4 sm:px-6 lg:px-8 py-8 space-y-6", children: [
|
|
107
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
108
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-36" }),
|
|
109
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-56" })
|
|
110
|
+
] }),
|
|
111
|
+
/* @__PURE__ */ jsx("div", { className: "flex gap-1", children: Array.from({ length: 6 }).map((_, i) => /* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-28 rounded-md" }, i)) }),
|
|
112
|
+
/* @__PURE__ */ jsx("div", { className: "space-y-3", children: Array.from({ length: 6 }).map((_, i) => /* @__PURE__ */ jsx(Skeleton, { className: "h-20 w-full rounded-xl" }, i)) })
|
|
113
|
+
] });
|
|
114
|
+
}
|
|
115
|
+
export {
|
|
116
|
+
AccountLoading,
|
|
117
|
+
ActivitiesLoading,
|
|
118
|
+
CollectionsLoading,
|
|
119
|
+
CreatorLoading,
|
|
120
|
+
MarketplaceLoading,
|
|
121
|
+
PortfolioLoading
|
|
122
|
+
};
|
|
123
|
+
//# sourceMappingURL=page-skeletons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/page-skeletons.tsx"],"sourcesContent":["import { Skeleton } from \"./skeleton.js\";\n\nexport function AccountLoading() {\n return (\n <div className=\"pb-20 min-h-screen\">\n\n <Skeleton className=\"w-full h-48 sm:h-64 rounded-none\" />\n\n <div className=\"px-6\">\n\n <div className=\"-mt-14 sm:-mt-16 relative z-10\">\n <div className=\"flex flex-wrap items-end gap-x-4 gap-y-3 pb-6\">\n <Skeleton className=\"h-[88px] w-[88px] rounded-full shrink-0 ring-[3px] ring-background\" />\n <div className=\"flex-1 min-w-0 pb-1 space-y-2\">\n <Skeleton className=\"h-5 w-20 rounded-full\" />\n <Skeleton className=\"h-6 w-52\" />\n <Skeleton className=\"h-4 w-40\" />\n </div>\n <Skeleton className=\"h-8 w-20 rounded-lg pb-1\" />\n </div>\n </div>\n\n <div className=\"border-b border-border flex gap-1 pb-0 mb-0\">\n {[72, 80, 104, 76].map((w, i) => (\n <Skeleton key={i} className=\"h-10 rounded-none\" style={{ width: w }} />\n ))}\n </div>\n\n <div className=\"mt-6 grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-4\">\n {Array.from({ length: 8 }).map((_, i) => (\n <div key={i} className=\"rounded-2xl border border-border overflow-hidden\">\n <Skeleton className=\"aspect-square w-full\" />\n <div className=\"p-3 space-y-2\">\n <Skeleton className=\"h-4 w-3/4\" />\n <Skeleton className=\"h-3 w-1/2\" />\n </div>\n </div>\n ))}\n </div>\n </div>\n </div>\n );\n}\n\nexport function CreatorLoading() {\n return (\n <div className=\"pb-20 min-h-screen\">\n\n <Skeleton className=\"w-full h-48 sm:h-64 rounded-none\" />\n\n <div className=\"px-6\">\n\n <div className=\"-mt-14 sm:-mt-16 relative z-10\">\n <div className=\"flex flex-wrap items-end gap-x-4 gap-y-3 pb-6\">\n <Skeleton className=\"h-[88px] w-[88px] rounded-full shrink-0 ring-[3px] ring-background\" />\n <div className=\"flex-1 min-w-0 pb-1 space-y-2\">\n <Skeleton className=\"h-5 w-20 rounded-full\" />\n <Skeleton className=\"h-6 w-52\" />\n <Skeleton className=\"h-4 w-40\" />\n </div>\n <Skeleton className=\"h-8 w-20 rounded-lg pb-1\" />\n </div>\n </div>\n\n <div className=\"border-b border-border flex gap-1 pb-0 mb-0\">\n {[72, 80, 104, 76].map((w, i) => (\n <Skeleton key={i} className=\"h-10 rounded-none\" style={{ width: w }} />\n ))}\n </div>\n\n <div className=\"mt-6 grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-4\">\n {Array.from({ length: 8 }).map((_, i) => (\n <div key={i} className=\"rounded-2xl border border-border overflow-hidden\">\n <Skeleton className=\"aspect-square w-full\" />\n <div className=\"p-3 space-y-2\">\n <Skeleton className=\"h-4 w-3/4\" />\n <Skeleton className=\"h-3 w-1/2\" />\n </div>\n </div>\n ))}\n </div>\n </div>\n </div>\n );\n}\n\nexport function ActivitiesLoading() {\n return (\n <div className=\"mx-auto w-full px-4 sm:px-6 lg:px-8 py-8 space-y-6\">\n <div className=\"space-y-1\">\n <Skeleton className=\"h-4 w-24\" />\n <Skeleton className=\"h-9 w-40\" />\n <Skeleton className=\"h-4 w-72\" />\n </div>\n <div className=\"flex gap-2\">\n {Array.from({ length: 5 }).map((_, i) => (\n <Skeleton key={i} className=\"h-8 w-20 rounded-md\" />\n ))}\n </div>\n <div className=\"rounded-xl border border-border bg-card divide-y divide-border/60 overflow-hidden\">\n {Array.from({ length: 10 }).map((_, i) => (\n <div key={i} className=\"flex items-center gap-3 px-4 py-3\">\n <Skeleton className=\"h-8 w-8 rounded-lg shrink-0\" />\n <div className=\"flex-1 space-y-1.5\">\n <Skeleton className=\"h-3.5 w-40\" />\n <Skeleton className=\"h-3 w-24\" />\n </div>\n <Skeleton className=\"h-3 w-12\" />\n </div>\n ))}\n </div>\n </div>\n );\n}\n\nexport function CollectionsLoading() {\n return (\n <div className=\"mx-auto w-full px-4 sm:px-6 lg:px-8 py-8 space-y-8\">\n <div className=\"space-y-2\">\n <Skeleton className=\"h-4 w-28\" />\n <Skeleton className=\"h-9 w-56\" />\n <Skeleton className=\"h-4 w-80\" />\n </div>\n <div className=\"grid grid-cols-2 lg:grid-cols-4 gap-4 sm:gap-5\">\n {Array.from({ length: 8 }).map((_, i) => (\n <div key={i} className=\"relative rounded-xl border border-border overflow-hidden\">\n <Skeleton className=\"aspect-square w-full rounded-none\" />\n <div className=\"absolute bottom-3 left-3 right-3 space-y-1.5\">\n <Skeleton className=\"h-4 w-2/3 bg-muted-foreground/20\" />\n <Skeleton className=\"h-3 w-1/3 bg-muted-foreground/20\" />\n </div>\n </div>\n ))}\n </div>\n </div>\n );\n}\n\nexport function MarketplaceLoading() {\n return (\n <div className=\"px-4 py-8 space-y-6\">\n <div className=\"space-y-1\">\n <Skeleton className=\"h-4 w-28\" />\n <Skeleton className=\"h-8 w-56\" />\n <Skeleton className=\"h-4 w-96\" />\n </div>\n <div className=\"space-y-3 pb-2 border-b border-border/60\">\n <Skeleton className=\"h-9 w-full sm:max-w-sm\" />\n <Skeleton className=\"h-7 w-full\" />\n </div>\n <div className=\"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4\">\n {Array.from({ length: 12 }).map((_, i) => (\n <div key={i} className=\"rounded-xl border border-border bg-card overflow-hidden\">\n <Skeleton className=\"aspect-square w-full\" />\n <div className=\"p-3 space-y-2\">\n <Skeleton className=\"h-4 w-3/4\" />\n <Skeleton className=\"h-3 w-1/2\" />\n </div>\n </div>\n ))}\n </div>\n </div>\n );\n}\n\nexport function PortfolioLoading() {\n return (\n <div className=\"mx-auto w-full px-4 sm:px-6 lg:px-8 py-8 space-y-6\">\n <div className=\"space-y-1\">\n <Skeleton className=\"h-9 w-36\" />\n <Skeleton className=\"h-4 w-56\" />\n </div>\n <div className=\"flex gap-1\">\n {Array.from({ length: 6 }).map((_, i) => (\n <Skeleton key={i} className=\"h-9 w-28 rounded-md\" />\n ))}\n </div>\n <div className=\"space-y-3\">\n {Array.from({ length: 6 }).map((_, i) => (\n <Skeleton key={i} className=\"h-20 w-full rounded-xl\" />\n ))}\n </div>\n </div>\n );\n}\n"],"mappings":"AAMM,cAOM,YAPN;AANN,SAAS,gBAAgB;AAElB,SAAS,iBAAiB;AAC/B,SACE,qBAAC,SAAI,WAAU,sBAEb;AAAA,wBAAC,YAAS,WAAU,oCAAmC;AAAA,IAEvD,qBAAC,SAAI,WAAU,QAEb;AAAA,0BAAC,SAAI,WAAU,kCACb,+BAAC,SAAI,WAAU,iDACb;AAAA,4BAAC,YAAS,WAA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AAI,WAAU,aACb;AAAA,0BAAC,YAAS,WAAU,YAAW;AAAA,MAC/B,oBAAC,YAAS,WAAU,YAAW;AAAA,OACjC;AAAA,IACA,oBAAC,SAAI,WAAU,cACZ,gBAAM,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAE,IAAI,CAAC,GAAG,MACjC,oBAAC,YAAiB,WAAU,yBAAb,CAAmC,CACnD,GACH;AAAA,IACA,oBAAC,SAAI,WAAU,aACZ,gBAAM,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAE,IAAI,CAAC,GAAG,MACjC,oBAAC,YAAiB,WAAU,4BAAb,CAAsC,CACtD,GACH;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var rewards_page_exports = {};
|
|
20
|
+
__export(rewards_page_exports, {
|
|
21
|
+
RewardsPage: () => RewardsPage
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(rewards_page_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_lucide_react = require("lucide-react");
|
|
26
|
+
var import_page_container = require("./page-container.js");
|
|
27
|
+
var import_rewards_dashboard = require("./rewards/rewards-dashboard.js");
|
|
28
|
+
function RewardsPage() {
|
|
29
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_page_container.PageContainer, { className: "box-border max-w-full pt-20 pb-16 space-y-8", children: [
|
|
30
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_rewards_dashboard.RewardsDashboard, {}),
|
|
31
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("footer", { className: "rounded-2xl border border-border/40 bg-muted/20 px-5 py-4 flex items-start gap-3", children: [
|
|
32
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Info, { className: "h-4 w-4 text-muted-foreground shrink-0 mt-0.5" }),
|
|
33
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs text-muted-foreground leading-relaxed", children: "The community can adjust point values and badge criteria over time to keep the fund fair as Medialane grows. Your share of each distribution is set when that distribution goes out." })
|
|
34
|
+
] })
|
|
35
|
+
] });
|
|
36
|
+
}
|
|
37
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
+
0 && (module.exports = {
|
|
39
|
+
RewardsPage
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=rewards-page.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/rewards-page.tsx"],"sourcesContent":["import { Info } from \"lucide-react\";\nimport { PageContainer } from \"./page-container.js\";\nimport { RewardsDashboard } from \"./rewards/rewards-dashboard.js\";\n\nexport function RewardsPage() {\n return (\n <PageContainer className=\"box-border max-w-full pt-20 pb-16 space-y-8\">\n <RewardsDashboard />\n\n <footer className=\"rounded-2xl border border-border/40 bg-muted/20 px-5 py-4 flex items-start gap-3\">\n <Info className=\"h-4 w-4 text-muted-foreground shrink-0 mt-0.5\" />\n <p className=\"text-xs text-muted-foreground leading-relaxed\">\n The community can adjust point values and badge criteria over time to\n keep the fund fair as Medialane grows. Your share of each distribution is\n set when that distribution goes out.\n </p>\n </footer>\n </PageContainer>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOM;AAPN,0BAAqB;AACrB,4BAA8B;AAC9B,+BAAiC;AAE1B,SAAS,cAAc;AAC5B,SACE,6CAAC,uCAAc,WAAU,+CACvB;AAAA,gDAAC,6CAAiB;AAAA,IAElB,6CAAC,YAAO,WAAU,oFAChB;AAAA,kDAAC,4BAAK,WAAU,iDAAgD;AAAA,MAChE,4CAAC,OAAE,WAAU,iDAAgD,kMAI7D;AAAA,OACF;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Info } from "lucide-react";
|
|
3
|
+
import { PageContainer } from "./page-container.js";
|
|
4
|
+
import { RewardsDashboard } from "./rewards/rewards-dashboard.js";
|
|
5
|
+
function RewardsPage() {
|
|
6
|
+
return /* @__PURE__ */ jsxs(PageContainer, { className: "box-border max-w-full pt-20 pb-16 space-y-8", children: [
|
|
7
|
+
/* @__PURE__ */ jsx(RewardsDashboard, {}),
|
|
8
|
+
/* @__PURE__ */ jsxs("footer", { className: "rounded-2xl border border-border/40 bg-muted/20 px-5 py-4 flex items-start gap-3", children: [
|
|
9
|
+
/* @__PURE__ */ jsx(Info, { className: "h-4 w-4 text-muted-foreground shrink-0 mt-0.5" }),
|
|
10
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground leading-relaxed", children: "The community can adjust point values and badge criteria over time to keep the fund fair as Medialane grows. Your share of each distribution is set when that distribution goes out." })
|
|
11
|
+
] })
|
|
12
|
+
] });
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
RewardsPage
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=rewards-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/rewards-page.tsx"],"sourcesContent":["import { Info } from \"lucide-react\";\nimport { PageContainer } from \"./page-container.js\";\nimport { RewardsDashboard } from \"./rewards/rewards-dashboard.js\";\n\nexport function RewardsPage() {\n return (\n <PageContainer className=\"box-border max-w-full pt-20 pb-16 space-y-8\">\n <RewardsDashboard />\n\n <footer className=\"rounded-2xl border border-border/40 bg-muted/20 px-5 py-4 flex items-start gap-3\">\n <Info className=\"h-4 w-4 text-muted-foreground shrink-0 mt-0.5\" />\n <p className=\"text-xs text-muted-foreground leading-relaxed\">\n The community can adjust point values and badge criteria over time to\n keep the fund fair as Medialane grows. Your share of each distribution is\n set when that distribution goes out.\n </p>\n </footer>\n </PageContainer>\n );\n}\n"],"mappings":"AAOM,cAEA,YAFA;AAPN,SAAS,YAAY;AACrB,SAAS,qBAAqB;AAC9B,SAAS,wBAAwB;AAE1B,SAAS,cAAc;AAC5B,SACE,qBAAC,iBAAc,WAAU,+CACvB;AAAA,wBAAC,oBAAiB;AAAA,IAElB,qBAAC,YAAO,WAAU,oFAChB;AAAA,0BAAC,QAAK,WAAU,iDAAgD;AAAA,MAChE,oBAAC,OAAE,WAAU,iDAAgD,kMAI7D;AAAA,OACF;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
var route_error_exports = {};
|
|
21
|
+
__export(route_error_exports, {
|
|
22
|
+
RouteError: () => RouteError
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(route_error_exports);
|
|
25
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
|
+
var import_react = require("react");
|
|
27
|
+
var import_button = require("./button.js");
|
|
28
|
+
var import_lucide_react = require("lucide-react");
|
|
29
|
+
function isStaleChunkError(error) {
|
|
30
|
+
return /ChunkLoadError|Loading chunk .* failed|dynamically imported module|Importing a module script failed/i.test(
|
|
31
|
+
`${error.name} ${error.message}`
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
function RouteError({
|
|
35
|
+
error,
|
|
36
|
+
reset
|
|
37
|
+
}) {
|
|
38
|
+
(0, import_react.useEffect)(() => {
|
|
39
|
+
console.error(error);
|
|
40
|
+
if (isStaleChunkError(error) && !sessionStorage.getItem("ml_chunk_reload")) {
|
|
41
|
+
sessionStorage.setItem("ml_chunk_reload", "1");
|
|
42
|
+
window.location.reload();
|
|
43
|
+
}
|
|
44
|
+
}, [error]);
|
|
45
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col items-center justify-center min-h-[60vh] px-4 text-center space-y-6", children: [
|
|
46
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-14 w-14 rounded-2xl bg-destructive/10 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.AlertTriangle, { className: "h-7 w-7 text-destructive" }) }),
|
|
47
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-2", children: [
|
|
48
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", { className: "text-2xl font-bold", children: "Reload to continue" }),
|
|
49
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-muted-foreground text-sm max-w-xs", children: "This page is ready to reload." }),
|
|
50
|
+
error.digest && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { className: "text-2xs text-muted-foreground/60 tabular-nums", children: [
|
|
51
|
+
"Error ID: ",
|
|
52
|
+
error.digest
|
|
53
|
+
] })
|
|
54
|
+
] }),
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_button.Button, { onClick: reset, children: [
|
|
56
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.RefreshCw, { className: "h-4 w-4 mr-2" }),
|
|
57
|
+
"Reload"
|
|
58
|
+
] })
|
|
59
|
+
] });
|
|
60
|
+
}
|
|
61
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
62
|
+
0 && (module.exports = {
|
|
63
|
+
RouteError
|
|
64
|
+
});
|
|
65
|
+
//# sourceMappingURL=route-error.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/route-error.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect } from \"react\";\nimport { Button } from \"./button.js\";\nimport { AlertTriangle, RefreshCw } from \"lucide-react\";\n\nfunction isStaleChunkError(error: Error): boolean {\n return /ChunkLoadError|Loading chunk .* failed|dynamically imported module|Importing a module script failed/i.test(\n `${error.name} ${error.message}`\n );\n}\n\nexport function RouteError({\n error,\n reset,\n}: {\n error: Error & { digest?: string };\n reset: () => void;\n}) {\n useEffect(() => {\n console.error(error);\n\n if (isStaleChunkError(error) && !sessionStorage.getItem(\"ml_chunk_reload\")) {\n sessionStorage.setItem(\"ml_chunk_reload\", \"1\");\n window.location.reload();\n }\n }, [error]);\n\n return (\n <div className=\"flex flex-col items-center justify-center min-h-[60vh] px-4 text-center space-y-6\">\n <div className=\"h-14 w-14 rounded-2xl bg-destructive/10 flex items-center justify-center\">\n <AlertTriangle className=\"h-7 w-7 text-destructive\" />\n </div>\n <div className=\"space-y-2\">\n <h1 className=\"text-2xl font-bold\">Reload to continue</h1>\n <p className=\"text-muted-foreground text-sm max-w-xs\">\n This page is ready to reload.\n </p>\n {error.digest && (\n <p className=\"text-2xs text-muted-foreground/60 tabular-nums\">\n Error ID: {error.digest}\n </p>\n )}\n </div>\n <Button onClick={reset}>\n <RefreshCw className=\"h-4 w-4 mr-2\" />\n Reload\n </Button>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA+BQ;AA7BR,mBAA0B;AAC1B,oBAAuB;AACvB,0BAAyC;AAEzC,SAAS,kBAAkB,OAAuB;AAChD,SAAO,uGAAuG;AAAA,IAC5G,GAAG,MAAM,IAAI,IAAI,MAAM,OAAO;AAAA,EAChC;AACF;AAEO,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AACF,GAGG;AACD,8BAAU,MAAM;AACd,YAAQ,MAAM,KAAK;AAEnB,QAAI,kBAAkB,KAAK,KAAK,CAAC,eAAe,QAAQ,iBAAiB,GAAG;AAC1E,qBAAe,QAAQ,mBAAmB,GAAG;AAC7C,aAAO,SAAS,OAAO;AAAA,IACzB;AAAA,EACF,GAAG,CAAC,KAAK,CAAC;AAEV,SACE,6CAAC,SAAI,WAAU,qFACb;AAAA,gDAAC,SAAI,WAAU,4EACb,sDAAC,qCAAc,WAAU,4BAA2B,GACtD;AAAA,IACA,6CAAC,SAAI,WAAU,aACb;AAAA,kDAAC,QAAG,WAAU,sBAAqB,gCAAkB;AAAA,MACrD,4CAAC,OAAE,WAAU,0CAAyC,2CAEtD;AAAA,MACC,MAAM,UACL,6CAAC,OAAE,WAAU,kDAAiD;AAAA;AAAA,QACjD,MAAM;AAAA,SACnB;AAAA,OAEJ;AAAA,IACA,6CAAC,wBAAO,SAAS,OACf;AAAA,kDAAC,iCAAU,WAAU,gBAAe;AAAA,MAAE;AAAA,OAExC;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect } from "react";
|
|
4
|
+
import { Button } from "./button.js";
|
|
5
|
+
import { AlertTriangle, RefreshCw } from "lucide-react";
|
|
6
|
+
function isStaleChunkError(error) {
|
|
7
|
+
return /ChunkLoadError|Loading chunk .* failed|dynamically imported module|Importing a module script failed/i.test(
|
|
8
|
+
`${error.name} ${error.message}`
|
|
9
|
+
);
|
|
10
|
+
}
|
|
11
|
+
function RouteError({
|
|
12
|
+
error,
|
|
13
|
+
reset
|
|
14
|
+
}) {
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
console.error(error);
|
|
17
|
+
if (isStaleChunkError(error) && !sessionStorage.getItem("ml_chunk_reload")) {
|
|
18
|
+
sessionStorage.setItem("ml_chunk_reload", "1");
|
|
19
|
+
window.location.reload();
|
|
20
|
+
}
|
|
21
|
+
}, [error]);
|
|
22
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center justify-center min-h-[60vh] px-4 text-center space-y-6", children: [
|
|
23
|
+
/* @__PURE__ */ jsx("div", { className: "h-14 w-14 rounded-2xl bg-destructive/10 flex items-center justify-center", children: /* @__PURE__ */ jsx(AlertTriangle, { className: "h-7 w-7 text-destructive" }) }),
|
|
24
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
25
|
+
/* @__PURE__ */ jsx("h1", { className: "text-2xl font-bold", children: "Reload to continue" }),
|
|
26
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm max-w-xs", children: "This page is ready to reload." }),
|
|
27
|
+
error.digest && /* @__PURE__ */ jsxs("p", { className: "text-2xs text-muted-foreground/60 tabular-nums", children: [
|
|
28
|
+
"Error ID: ",
|
|
29
|
+
error.digest
|
|
30
|
+
] })
|
|
31
|
+
] }),
|
|
32
|
+
/* @__PURE__ */ jsxs(Button, { onClick: reset, children: [
|
|
33
|
+
/* @__PURE__ */ jsx(RefreshCw, { className: "h-4 w-4 mr-2" }),
|
|
34
|
+
"Reload"
|
|
35
|
+
] })
|
|
36
|
+
] });
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
RouteError
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=route-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/route-error.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect } from \"react\";\nimport { Button } from \"./button.js\";\nimport { AlertTriangle, RefreshCw } from \"lucide-react\";\n\nfunction isStaleChunkError(error: Error): boolean {\n return /ChunkLoadError|Loading chunk .* failed|dynamically imported module|Importing a module script failed/i.test(\n `${error.name} ${error.message}`\n );\n}\n\nexport function RouteError({\n error,\n reset,\n}: {\n error: Error & { digest?: string };\n reset: () => void;\n}) {\n useEffect(() => {\n console.error(error);\n\n if (isStaleChunkError(error) && !sessionStorage.getItem(\"ml_chunk_reload\")) {\n sessionStorage.setItem(\"ml_chunk_reload\", \"1\");\n window.location.reload();\n }\n }, [error]);\n\n return (\n <div className=\"flex flex-col items-center justify-center min-h-[60vh] px-4 text-center space-y-6\">\n <div className=\"h-14 w-14 rounded-2xl bg-destructive/10 flex items-center justify-center\">\n <AlertTriangle className=\"h-7 w-7 text-destructive\" />\n </div>\n <div className=\"space-y-2\">\n <h1 className=\"text-2xl font-bold\">Reload to continue</h1>\n <p className=\"text-muted-foreground text-sm max-w-xs\">\n This page is ready to reload.\n </p>\n {error.digest && (\n <p className=\"text-2xs text-muted-foreground/60 tabular-nums\">\n Error ID: {error.digest}\n </p>\n )}\n </div>\n <Button onClick={reset}>\n <RefreshCw className=\"h-4 w-4 mr-2\" />\n Reload\n </Button>\n </div>\n );\n}\n"],"mappings":";AA+BQ,cAQE,YARF;AA7BR,SAAS,iBAAiB;AAC1B,SAAS,cAAc;AACvB,SAAS,eAAe,iBAAiB;AAEzC,SAAS,kBAAkB,OAAuB;AAChD,SAAO,uGAAuG;AAAA,IAC5G,GAAG,MAAM,IAAI,IAAI,MAAM,OAAO;AAAA,EAChC;AACF;AAEO,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AACF,GAGG;AACD,YAAU,MAAM;AACd,YAAQ,MAAM,KAAK;AAEnB,QAAI,kBAAkB,KAAK,KAAK,CAAC,eAAe,QAAQ,iBAAiB,GAAG;AAC1E,qBAAe,QAAQ,mBAAmB,GAAG;AAC7C,aAAO,SAAS,OAAO;AAAA,IACzB;AAAA,EACF,GAAG,CAAC,KAAK,CAAC;AAEV,SACE,qBAAC,SAAI,WAAU,qFACb;AAAA,wBAAC,SAAI,WAAU,4EACb,8BAAC,iBAAc,WAAU,4BAA2B,GACtD;AAAA,IACA,qBAAC,SAAI,WAAU,aACb;AAAA,0BAAC,QAAG,WAAU,sBAAqB,gCAAkB;AAAA,MACrD,oBAAC,OAAE,WAAU,0CAAyC,2CAEtD;AAAA,MACC,MAAM,UACL,qBAAC,OAAE,WAAU,kDAAiD;AAAA;AAAA,QACjD,MAAM;AAAA,SACnB;AAAA,OAEJ;AAAA,IACA,qBAAC,UAAO,SAAS,OACf;AAAA,0BAAC,aAAU,WAAU,gBAAe;AAAA,MAAE;AAAA,OAExC;AAAA,KACF;AAEJ;","names":[]}
|