@burdenoff/microfe-proserviceworld 2026.625.1 → 2026.626.2
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/proserviceworld/pages/AdminReportsPage.js +102 -68
- package/dist/proserviceworld/pages/AdminReportsPage.js.map +1 -1
- package/dist/proserviceworld/pages/AdminUsersPage.js +37 -33
- package/dist/proserviceworld/pages/AdminUsersPage.js.map +1 -1
- package/dist/proserviceworld/pages/AnalyticsPage.js +66 -36
- package/dist/proserviceworld/pages/AnalyticsPage.js.map +1 -1
- package/dist/proserviceworld/pages/BookingsPage.js +52 -48
- package/dist/proserviceworld/pages/BookingsPage.js.map +1 -1
- package/dist/proserviceworld/pages/DashboardPage.js +275 -243
- package/dist/proserviceworld/pages/DashboardPage.js.map +1 -1
- package/dist/proserviceworld/pages/DocumentsPage.js +204 -200
- package/dist/proserviceworld/pages/DocumentsPage.js.map +1 -1
- package/dist/proserviceworld/pages/MessagesPage.js +200 -186
- package/dist/proserviceworld/pages/MessagesPage.js.map +1 -1
- package/dist/proserviceworld/pages/PaymentsPage.js +70 -39
- package/dist/proserviceworld/pages/PaymentsPage.js.map +1 -1
- package/dist/proserviceworld/pages/ProjectsPage.js +510 -477
- package/dist/proserviceworld/pages/ProjectsPage.js.map +1 -1
- package/dist/proserviceworld/pages/ProviderDetailPage.js +71 -41
- package/dist/proserviceworld/pages/ProviderDetailPage.js.map +1 -1
- package/dist/proserviceworld/pages/ProvidersPage.js +62 -58
- package/dist/proserviceworld/pages/ProvidersPage.js.map +1 -1
- package/dist/proserviceworld/pages/ReviewsPage.js +80 -63
- package/dist/proserviceworld/pages/ReviewsPage.js.map +1 -1
- package/dist/proserviceworld/pages/ServiceDetailsPage.js +118 -83
- package/dist/proserviceworld/pages/ServiceDetailsPage.js.map +1 -1
- package/dist/proserviceworld/pages/ServicesPage.js +134 -130
- package/dist/proserviceworld/pages/ServicesPage.js.map +1 -1
- package/dist/proserviceworld/pages/VerificationPage.js +23 -19
- package/dist/proserviceworld/pages/VerificationPage.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { useProServiceWorldStore as e } from "../store/proserviceworldStore.js";
|
|
2
2
|
import { useMemo as t, useState as n } from "react";
|
|
3
|
-
import { ArrowUpDown as
|
|
4
|
-
import { Fragment as
|
|
5
|
-
import { AuroraBackground as
|
|
3
|
+
import { ArrowUpDown as r, ChevronRight as i, Clock as ee, Download as a, File as o, FileText as s, FolderOpen as c, FolderPlus as l, Grid3x3 as u, HardDrive as d, Image as f, List as p, MoreHorizontal as m, Search as h, Share2 as g, Star as _, Upload as v, Users as y } from "lucide-react";
|
|
4
|
+
import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
5
|
+
import { AuroraBackground as te, Button as C, CTAOverflowMenu as ne, Card as w, CardContent as T, CardHeader as E, CardTitle as D, GlassCard as O, GradientText as re, IllustratedEmptyState as k, Input as A, PagePurpose as j } from "@burdenoff/fe-libs/ui";
|
|
6
6
|
//#region src/proserviceworld/pages/DocumentsPage.tsx
|
|
7
7
|
var M = {
|
|
8
|
-
pdf:
|
|
9
|
-
docx:
|
|
10
|
-
doc:
|
|
11
|
-
txt:
|
|
12
|
-
image:
|
|
13
|
-
video:
|
|
14
|
-
audio:
|
|
15
|
-
other:
|
|
8
|
+
pdf: s,
|
|
9
|
+
docx: o,
|
|
10
|
+
doc: o,
|
|
11
|
+
txt: s,
|
|
12
|
+
image: f,
|
|
13
|
+
video: o,
|
|
14
|
+
audio: o,
|
|
15
|
+
other: o
|
|
16
16
|
}, N = {
|
|
17
17
|
pdf: "text-status-error-text",
|
|
18
18
|
docx: "text-accent-blue",
|
|
@@ -22,142 +22,146 @@ var M = {
|
|
|
22
22
|
video: "text-accent-purple",
|
|
23
23
|
audio: "text-status-warning-text",
|
|
24
24
|
other: "text-text-secondary"
|
|
25
|
-
},
|
|
25
|
+
}, P = {
|
|
26
26
|
blue: "text-accent-blue",
|
|
27
27
|
green: "text-status-success-text",
|
|
28
28
|
purple: "text-accent-purple",
|
|
29
29
|
yellow: "text-status-warning-text",
|
|
30
30
|
red: "text-status-error-text"
|
|
31
31
|
};
|
|
32
|
-
function
|
|
32
|
+
function F(e) {
|
|
33
33
|
return e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
let { documents:
|
|
37
|
-
let e = [...
|
|
38
|
-
if (
|
|
39
|
-
let t =
|
|
35
|
+
function I() {
|
|
36
|
+
let { documents: f, folders: I } = e(), [L, R] = n("grid"), [z, B] = n(""), [V, H] = n("all"), [U, W] = n("date"), [G, K] = n(!1), [q, J] = n(null), [Y, X] = n(!1), [ie, Z] = n(!1), Q = t(() => {
|
|
37
|
+
let e = [...f];
|
|
38
|
+
if (q && (e = e.filter((e) => e.folderId === q)), V === "starred" ? e = e.filter((e) => e.isStarred) : V !== "all" && (e = e.filter((e) => e.type === V)), z.trim()) {
|
|
39
|
+
let t = z.toLowerCase();
|
|
40
40
|
e = e.filter((e) => e.name.toLowerCase().includes(t) || e.tags.some((e) => e.toLowerCase().includes(t)));
|
|
41
41
|
}
|
|
42
42
|
return e.sort((e, t) => {
|
|
43
|
-
let n =
|
|
44
|
-
return
|
|
43
|
+
let n = U === "name" ? e.name.localeCompare(t.name) : U === "date" ? new Date(t.modifiedAt).getTime() - new Date(e.modifiedAt).getTime() : t.size - e.size;
|
|
44
|
+
return G ? -n : n;
|
|
45
45
|
}), e;
|
|
46
46
|
}, [
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
]),
|
|
54
|
-
|
|
47
|
+
f,
|
|
48
|
+
q,
|
|
49
|
+
V,
|
|
50
|
+
z,
|
|
51
|
+
U,
|
|
52
|
+
G
|
|
53
|
+
]), ae = f.reduce((e, t) => e + t.size, 0), oe = f.filter((e) => e.isStarred).length, $ = q ? I.find((e) => e.id === q) : null, se = (e) => {
|
|
54
|
+
U === e ? K(!G) : (W(e), K(!1));
|
|
55
55
|
};
|
|
56
|
-
return /* @__PURE__ */
|
|
56
|
+
return /* @__PURE__ */ S("div", {
|
|
57
57
|
className: "space-y-6 p-6 bg-bg-canvas min-h-screen",
|
|
58
58
|
children: [
|
|
59
|
-
/* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ S("div", {
|
|
60
60
|
className: "relative overflow-hidden rounded-card -mx-2 px-2 pt-1",
|
|
61
|
-
children: [/* @__PURE__ */
|
|
61
|
+
children: [/* @__PURE__ */ x(te, { intensity: "subtle" }), /* @__PURE__ */ S("div", {
|
|
62
62
|
className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
|
|
63
|
-
children: [/* @__PURE__ */
|
|
63
|
+
children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("h1", {
|
|
64
64
|
className: "text-2xl font-semibold tracking-tight",
|
|
65
|
-
children: /* @__PURE__ */
|
|
66
|
-
}), /* @__PURE__ */
|
|
65
|
+
children: /* @__PURE__ */ x(re, { children: "Documents" })
|
|
66
|
+
}), /* @__PURE__ */ x("p", {
|
|
67
67
|
className: "text-sm text-text-secondary",
|
|
68
68
|
children: "Manage files, folders, and shared documents."
|
|
69
|
-
})] }), /* @__PURE__ */
|
|
69
|
+
})] }), /* @__PURE__ */ x(ne, {
|
|
70
70
|
primary: {
|
|
71
71
|
label: "Upload",
|
|
72
|
-
onSelect: () =>
|
|
73
|
-
icon: /* @__PURE__ */
|
|
72
|
+
onSelect: () => X(!0),
|
|
73
|
+
icon: /* @__PURE__ */ x(v, { className: "h-4 w-4" })
|
|
74
74
|
},
|
|
75
75
|
actions: [{
|
|
76
76
|
label: "New Folder",
|
|
77
77
|
onSelect: () => Z(!0),
|
|
78
|
-
icon: /* @__PURE__ */
|
|
78
|
+
icon: /* @__PURE__ */ x(l, { className: "h-4 w-4" })
|
|
79
79
|
}]
|
|
80
80
|
})]
|
|
81
81
|
})]
|
|
82
82
|
}),
|
|
83
|
-
/* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ x(j, {
|
|
84
|
+
icon: /* @__PURE__ */ x(c, { className: "h-4 w-4" }),
|
|
85
|
+
children: "A shared home for the files behind your work — contracts, deliverables, briefs, and more. Organise documents into folders, star the ones you reach for often, search across everything, and share files securely with clients and collaborators."
|
|
86
|
+
}),
|
|
87
|
+
/* @__PURE__ */ S("div", {
|
|
84
88
|
className: "grid gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
85
89
|
children: [
|
|
86
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ x(O, {
|
|
87
91
|
treatment: "metric",
|
|
88
92
|
className: "border-border-seam",
|
|
89
|
-
children: /* @__PURE__ */
|
|
93
|
+
children: /* @__PURE__ */ x(T, {
|
|
90
94
|
className: "pt-4",
|
|
91
|
-
children: /* @__PURE__ */
|
|
95
|
+
children: /* @__PURE__ */ S("div", {
|
|
92
96
|
className: "flex items-center gap-3",
|
|
93
|
-
children: [/* @__PURE__ */
|
|
97
|
+
children: [/* @__PURE__ */ x("div", {
|
|
94
98
|
className: "rounded-lg bg-accent-blue-subtle p-2",
|
|
95
|
-
children: /* @__PURE__ */
|
|
96
|
-
}), /* @__PURE__ */
|
|
99
|
+
children: /* @__PURE__ */ x(s, { className: "h-5 w-5 text-accent-blue" })
|
|
100
|
+
}), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
97
101
|
className: "text-2xl font-bold tabular-nums",
|
|
98
|
-
children:
|
|
99
|
-
}), /* @__PURE__ */
|
|
102
|
+
children: f.length
|
|
103
|
+
}), /* @__PURE__ */ x("p", {
|
|
100
104
|
className: "text-xs text-text-secondary",
|
|
101
105
|
children: "Total Files"
|
|
102
106
|
})] })]
|
|
103
107
|
})
|
|
104
108
|
})
|
|
105
109
|
}),
|
|
106
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ x(O, {
|
|
107
111
|
treatment: "metric",
|
|
108
112
|
className: "border-border-seam",
|
|
109
|
-
children: /* @__PURE__ */
|
|
113
|
+
children: /* @__PURE__ */ x(T, {
|
|
110
114
|
className: "pt-4",
|
|
111
|
-
children: /* @__PURE__ */
|
|
115
|
+
children: /* @__PURE__ */ S("div", {
|
|
112
116
|
className: "flex items-center gap-3",
|
|
113
|
-
children: [/* @__PURE__ */
|
|
117
|
+
children: [/* @__PURE__ */ x("div", {
|
|
114
118
|
className: "rounded-lg bg-accent-purple-subtle p-2",
|
|
115
|
-
children: /* @__PURE__ */
|
|
116
|
-
}), /* @__PURE__ */
|
|
119
|
+
children: /* @__PURE__ */ x(c, { className: "h-5 w-5 text-accent-purple" })
|
|
120
|
+
}), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
117
121
|
className: "text-2xl font-bold tabular-nums",
|
|
118
|
-
children:
|
|
119
|
-
}), /* @__PURE__ */
|
|
122
|
+
children: I.length
|
|
123
|
+
}), /* @__PURE__ */ x("p", {
|
|
120
124
|
className: "text-xs text-text-secondary",
|
|
121
125
|
children: "Folders"
|
|
122
126
|
})] })]
|
|
123
127
|
})
|
|
124
128
|
})
|
|
125
129
|
}),
|
|
126
|
-
/* @__PURE__ */
|
|
130
|
+
/* @__PURE__ */ x(O, {
|
|
127
131
|
treatment: "metric",
|
|
128
132
|
className: "border-border-seam",
|
|
129
|
-
children: /* @__PURE__ */
|
|
133
|
+
children: /* @__PURE__ */ x(T, {
|
|
130
134
|
className: "pt-4",
|
|
131
|
-
children: /* @__PURE__ */
|
|
135
|
+
children: /* @__PURE__ */ S("div", {
|
|
132
136
|
className: "flex items-center gap-3",
|
|
133
|
-
children: [/* @__PURE__ */
|
|
137
|
+
children: [/* @__PURE__ */ x("div", {
|
|
134
138
|
className: "rounded-lg bg-status-warning-bg-subtle p-2",
|
|
135
|
-
children: /* @__PURE__ */
|
|
136
|
-
}), /* @__PURE__ */
|
|
139
|
+
children: /* @__PURE__ */ x(_, { className: "h-5 w-5 text-status-warning-text" })
|
|
140
|
+
}), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
137
141
|
className: "text-2xl font-bold tabular-nums",
|
|
138
|
-
children:
|
|
139
|
-
}), /* @__PURE__ */
|
|
142
|
+
children: oe
|
|
143
|
+
}), /* @__PURE__ */ x("p", {
|
|
140
144
|
className: "text-xs text-text-secondary",
|
|
141
145
|
children: "Starred"
|
|
142
146
|
})] })]
|
|
143
147
|
})
|
|
144
148
|
})
|
|
145
149
|
}),
|
|
146
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ x(O, {
|
|
147
151
|
treatment: "glass",
|
|
148
152
|
glow: !0,
|
|
149
153
|
className: "border-border-seam",
|
|
150
|
-
children: /* @__PURE__ */
|
|
154
|
+
children: /* @__PURE__ */ x(T, {
|
|
151
155
|
className: "pt-4",
|
|
152
|
-
children: /* @__PURE__ */
|
|
156
|
+
children: /* @__PURE__ */ S("div", {
|
|
153
157
|
className: "flex items-center gap-3",
|
|
154
|
-
children: [/* @__PURE__ */
|
|
158
|
+
children: [/* @__PURE__ */ x("div", {
|
|
155
159
|
className: "rounded-lg bg-status-success-bg-subtle p-2",
|
|
156
|
-
children: /* @__PURE__ */
|
|
157
|
-
}), /* @__PURE__ */
|
|
160
|
+
children: /* @__PURE__ */ x(d, { className: "h-5 w-5 text-status-success-text" })
|
|
161
|
+
}), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
158
162
|
className: "text-2xl font-bold tabular-nums",
|
|
159
|
-
children:
|
|
160
|
-
}), /* @__PURE__ */
|
|
163
|
+
children: F(ae)
|
|
164
|
+
}), /* @__PURE__ */ x("p", {
|
|
161
165
|
className: "text-xs text-text-secondary",
|
|
162
166
|
children: "Total Size"
|
|
163
167
|
})] })]
|
|
@@ -166,31 +170,31 @@ function F() {
|
|
|
166
170
|
})
|
|
167
171
|
]
|
|
168
172
|
}),
|
|
169
|
-
/* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ S("div", {
|
|
170
174
|
className: "flex items-center gap-2 text-sm",
|
|
171
|
-
children: [/* @__PURE__ */
|
|
172
|
-
onClick: () =>
|
|
173
|
-
className: `font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus rounded ${
|
|
175
|
+
children: [/* @__PURE__ */ x("button", {
|
|
176
|
+
onClick: () => J(null),
|
|
177
|
+
className: `font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus rounded ${q ? "text-text-secondary hover:text-text-primary" : "text-accent-blue"}`,
|
|
174
178
|
children: "All Files"
|
|
175
|
-
}), $ && /* @__PURE__ */ b
|
|
179
|
+
}), $ && /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(i, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ x("span", {
|
|
176
180
|
className: "font-medium text-accent-blue",
|
|
177
181
|
children: $.name
|
|
178
182
|
})] })]
|
|
179
183
|
}),
|
|
180
|
-
/* @__PURE__ */
|
|
184
|
+
/* @__PURE__ */ S("div", {
|
|
181
185
|
className: "flex flex-col gap-4 sm:flex-row sm:items-center",
|
|
182
|
-
children: [/* @__PURE__ */
|
|
186
|
+
children: [/* @__PURE__ */ S("div", {
|
|
183
187
|
className: "relative flex-1",
|
|
184
|
-
children: [/* @__PURE__ */
|
|
188
|
+
children: [/* @__PURE__ */ x(h, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ x(A, {
|
|
185
189
|
placeholder: "Search documents...",
|
|
186
190
|
"aria-label": "Search documents",
|
|
187
|
-
value:
|
|
188
|
-
onChange: (e) =>
|
|
191
|
+
value: z,
|
|
192
|
+
onChange: (e) => B(e.target.value),
|
|
189
193
|
className: "pl-10"
|
|
190
194
|
})]
|
|
191
|
-
}), /* @__PURE__ */
|
|
195
|
+
}), /* @__PURE__ */ S("div", {
|
|
192
196
|
className: "flex flex-wrap items-center gap-2",
|
|
193
|
-
children: [/* @__PURE__ */
|
|
197
|
+
children: [/* @__PURE__ */ x("div", {
|
|
194
198
|
className: "flex flex-wrap gap-1",
|
|
195
199
|
children: [
|
|
196
200
|
"all",
|
|
@@ -198,31 +202,31 @@ function F() {
|
|
|
198
202
|
"docx",
|
|
199
203
|
"txt",
|
|
200
204
|
"starred"
|
|
201
|
-
].map((e) => /* @__PURE__ */
|
|
202
|
-
onClick: () =>
|
|
203
|
-
"aria-pressed":
|
|
204
|
-
className: `rounded px-2 py-1 text-xs font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus ${
|
|
205
|
+
].map((e) => /* @__PURE__ */ x("button", {
|
|
206
|
+
onClick: () => H(e),
|
|
207
|
+
"aria-pressed": V === e,
|
|
208
|
+
className: `rounded px-2 py-1 text-xs font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus ${V === e ? "bg-accent-blue text-action-primary-text" : "bg-bg-sunken text-text-secondary hover:text-text-primary"}`,
|
|
205
209
|
children: e === "all" ? "All" : e === "starred" ? "Starred" : e.toUpperCase()
|
|
206
210
|
}, e))
|
|
207
|
-
}), /* @__PURE__ */
|
|
211
|
+
}), /* @__PURE__ */ S("div", {
|
|
208
212
|
className: "flex rounded border border-border-seam",
|
|
209
|
-
children: [/* @__PURE__ */
|
|
210
|
-
onClick: () =>
|
|
213
|
+
children: [/* @__PURE__ */ x("button", {
|
|
214
|
+
onClick: () => R("grid"),
|
|
211
215
|
"aria-label": "Grid view",
|
|
212
|
-
"aria-pressed":
|
|
213
|
-
className: `p-1.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus ${
|
|
214
|
-
children: /* @__PURE__ */
|
|
215
|
-
}), /* @__PURE__ */
|
|
216
|
-
onClick: () =>
|
|
216
|
+
"aria-pressed": L === "grid",
|
|
217
|
+
className: `p-1.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus ${L === "grid" ? "bg-accent-blue text-action-primary-text" : "text-text-secondary"}`,
|
|
218
|
+
children: /* @__PURE__ */ x(u, { className: "h-4 w-4" })
|
|
219
|
+
}), /* @__PURE__ */ x("button", {
|
|
220
|
+
onClick: () => R("list"),
|
|
217
221
|
"aria-label": "List view",
|
|
218
|
-
"aria-pressed":
|
|
219
|
-
className: `p-1.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus ${
|
|
220
|
-
children: /* @__PURE__ */
|
|
222
|
+
"aria-pressed": L === "list",
|
|
223
|
+
className: `p-1.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus ${L === "list" ? "bg-accent-blue text-action-primary-text" : "text-text-secondary"}`,
|
|
224
|
+
children: /* @__PURE__ */ x(p, { className: "h-4 w-4" })
|
|
221
225
|
})]
|
|
222
226
|
})]
|
|
223
227
|
})]
|
|
224
228
|
}),
|
|
225
|
-
/* @__PURE__ */
|
|
229
|
+
/* @__PURE__ */ x("div", {
|
|
226
230
|
className: "flex gap-2",
|
|
227
231
|
children: [
|
|
228
232
|
{
|
|
@@ -237,30 +241,30 @@ function F() {
|
|
|
237
241
|
field: "size",
|
|
238
242
|
label: "Size"
|
|
239
243
|
}
|
|
240
|
-
].map(({ field: e, label: t }) => /* @__PURE__ */
|
|
241
|
-
onClick: () =>
|
|
242
|
-
"aria-pressed":
|
|
243
|
-
className: `flex items-center gap-1 rounded border px-3 py-1 text-xs focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus ${
|
|
244
|
-
children: [/* @__PURE__ */
|
|
244
|
+
].map(({ field: e, label: t }) => /* @__PURE__ */ S("button", {
|
|
245
|
+
onClick: () => se(e),
|
|
246
|
+
"aria-pressed": U === e,
|
|
247
|
+
className: `flex items-center gap-1 rounded border px-3 py-1 text-xs focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus ${U === e ? "border-accent-blue bg-accent-blue-subtle text-accent-blue" : "border-border-seam text-text-secondary hover:text-text-primary"}`,
|
|
248
|
+
children: [/* @__PURE__ */ x(r, { className: "h-3 w-3" }), t]
|
|
245
249
|
}, e))
|
|
246
250
|
}),
|
|
247
|
-
!
|
|
251
|
+
!q && /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("h3", {
|
|
248
252
|
className: "mb-3 text-sm font-medium text-text-secondary",
|
|
249
253
|
children: "Folders"
|
|
250
|
-
}), /* @__PURE__ */
|
|
254
|
+
}), /* @__PURE__ */ x("div", {
|
|
251
255
|
className: "grid gap-3 sm:grid-cols-2 lg:grid-cols-4",
|
|
252
|
-
children:
|
|
253
|
-
onClick: () =>
|
|
256
|
+
children: I.map((e) => /* @__PURE__ */ S("button", {
|
|
257
|
+
onClick: () => J(e.id),
|
|
254
258
|
className: "flex items-center gap-3 rounded-lg border border-border-seam p-3 text-left transition-shadow hover:shadow-pop focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
255
|
-
children: [/* @__PURE__ */
|
|
259
|
+
children: [/* @__PURE__ */ x(c, { className: `h-8 w-8 ${P[e.color] ?? "text-text-secondary"}` }), /* @__PURE__ */ S("div", {
|
|
256
260
|
className: "min-w-0 flex-1",
|
|
257
|
-
children: [/* @__PURE__ */
|
|
261
|
+
children: [/* @__PURE__ */ x("p", {
|
|
258
262
|
className: "truncate font-medium text-sm",
|
|
259
263
|
children: e.name
|
|
260
|
-
}), /* @__PURE__ */
|
|
264
|
+
}), /* @__PURE__ */ S("p", {
|
|
261
265
|
className: "text-xs text-text-secondary",
|
|
262
266
|
children: [
|
|
263
|
-
/* @__PURE__ */
|
|
267
|
+
/* @__PURE__ */ x("span", {
|
|
264
268
|
className: "tabular-nums",
|
|
265
269
|
children: e.documentsCount
|
|
266
270
|
}),
|
|
@@ -271,134 +275,134 @@ function F() {
|
|
|
271
275
|
})]
|
|
272
276
|
}, e.id))
|
|
273
277
|
})] }),
|
|
274
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ S("h3", {
|
|
275
279
|
className: "mb-3 text-sm font-medium text-text-secondary",
|
|
276
280
|
children: ["Files ", Q.length > 0 && `(${Q.length})`]
|
|
277
|
-
}), Q.length === 0 ? /* @__PURE__ */
|
|
281
|
+
}), Q.length === 0 ? /* @__PURE__ */ x(w, {
|
|
278
282
|
className: "border-border-seam",
|
|
279
|
-
children: /* @__PURE__ */
|
|
283
|
+
children: /* @__PURE__ */ x(T, {
|
|
280
284
|
className: "py-6",
|
|
281
|
-
children: /* @__PURE__ */
|
|
282
|
-
illustration:
|
|
285
|
+
children: /* @__PURE__ */ x(k, {
|
|
286
|
+
illustration: z || V !== "all" ? "empty-search" : "empty-files",
|
|
283
287
|
title: "No files found",
|
|
284
288
|
description: "Try adjusting your filters or upload a new document.",
|
|
285
|
-
action: /* @__PURE__ */
|
|
289
|
+
action: /* @__PURE__ */ S(C, {
|
|
286
290
|
size: "sm",
|
|
287
|
-
onClick: () =>
|
|
288
|
-
children: [/* @__PURE__ */
|
|
291
|
+
onClick: () => X(!0),
|
|
292
|
+
children: [/* @__PURE__ */ x(v, { className: "mr-2 h-4 w-4" }), " Upload"]
|
|
289
293
|
})
|
|
290
294
|
})
|
|
291
295
|
})
|
|
292
|
-
}) :
|
|
296
|
+
}) : L === "grid" ? /* @__PURE__ */ x("div", {
|
|
293
297
|
className: "grid gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",
|
|
294
|
-
children: Q.map((e) => /* @__PURE__ */
|
|
298
|
+
children: Q.map((e) => /* @__PURE__ */ x(O, {
|
|
295
299
|
treatment: "plain",
|
|
296
300
|
className: "border-border-seam transition-shadow hover:shadow-pop",
|
|
297
|
-
children: /* @__PURE__ */
|
|
301
|
+
children: /* @__PURE__ */ S(T, {
|
|
298
302
|
className: "pt-4",
|
|
299
303
|
children: [
|
|
300
|
-
/* @__PURE__ */
|
|
304
|
+
/* @__PURE__ */ S("div", {
|
|
301
305
|
className: "flex items-start justify-between",
|
|
302
|
-
children: [/* @__PURE__ */
|
|
306
|
+
children: [/* @__PURE__ */ x(M[e.type] ?? o, { className: `h-10 w-10 ${N[e.type] ?? "text-text-secondary"}` }), /* @__PURE__ */ S("div", {
|
|
303
307
|
className: "flex items-center gap-1",
|
|
304
|
-
children: [e.isStarred && /* @__PURE__ */
|
|
308
|
+
children: [e.isStarred && /* @__PURE__ */ x(_, { className: "h-4 w-4 fill-status-warning-text text-status-warning-text" }), e.sharedWith > 0 && /* @__PURE__ */ x(g, { className: "h-4 w-4 text-text-secondary" })]
|
|
305
309
|
})]
|
|
306
310
|
}),
|
|
307
|
-
/* @__PURE__ */
|
|
311
|
+
/* @__PURE__ */ x("h4", {
|
|
308
312
|
className: "mt-3 truncate font-medium text-sm",
|
|
309
313
|
children: e.name
|
|
310
314
|
}),
|
|
311
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ S("div", {
|
|
312
316
|
className: "mt-1 flex items-center gap-2 text-xs text-text-secondary",
|
|
313
|
-
children: [/* @__PURE__ */
|
|
317
|
+
children: [/* @__PURE__ */ x("span", {
|
|
314
318
|
className: "tabular-nums",
|
|
315
|
-
children:
|
|
316
|
-
}), /* @__PURE__ */
|
|
319
|
+
children: F(e.size)
|
|
320
|
+
}), /* @__PURE__ */ S("span", {
|
|
317
321
|
className: "tabular-nums",
|
|
318
322
|
children: ["v", e.version]
|
|
319
323
|
})]
|
|
320
324
|
}),
|
|
321
|
-
/* @__PURE__ */
|
|
325
|
+
/* @__PURE__ */ S("div", {
|
|
322
326
|
className: "mt-2 flex items-center gap-1 text-xs text-text-secondary",
|
|
323
327
|
children: [
|
|
324
|
-
/* @__PURE__ */
|
|
328
|
+
/* @__PURE__ */ x(ee, { className: "h-3 w-3" }),
|
|
325
329
|
" ",
|
|
326
330
|
e.modifiedAt
|
|
327
331
|
]
|
|
328
332
|
}),
|
|
329
|
-
/* @__PURE__ */
|
|
333
|
+
/* @__PURE__ */ S("div", {
|
|
330
334
|
className: "mt-3 flex gap-1",
|
|
331
|
-
children: [/* @__PURE__ */
|
|
335
|
+
children: [/* @__PURE__ */ S(C, {
|
|
332
336
|
variant: "outline",
|
|
333
337
|
size: "sm",
|
|
334
338
|
className: "flex-1 text-xs",
|
|
335
|
-
children: [/* @__PURE__ */
|
|
336
|
-
}), /* @__PURE__ */
|
|
339
|
+
children: [/* @__PURE__ */ x(a, { className: "mr-1 h-3 w-3" }), " Download"]
|
|
340
|
+
}), /* @__PURE__ */ x(C, {
|
|
337
341
|
variant: "outline",
|
|
338
342
|
size: "sm",
|
|
339
343
|
"aria-label": "More actions",
|
|
340
|
-
children: /* @__PURE__ */
|
|
344
|
+
children: /* @__PURE__ */ x(m, { className: "h-3 w-3" })
|
|
341
345
|
})]
|
|
342
346
|
})
|
|
343
347
|
]
|
|
344
348
|
})
|
|
345
349
|
}, e.id))
|
|
346
|
-
}) : /* @__PURE__ */
|
|
350
|
+
}) : /* @__PURE__ */ x(w, {
|
|
347
351
|
className: "border-border-seam",
|
|
348
|
-
children: /* @__PURE__ */
|
|
352
|
+
children: /* @__PURE__ */ x(T, {
|
|
349
353
|
className: "pt-4",
|
|
350
|
-
children: /* @__PURE__ */
|
|
354
|
+
children: /* @__PURE__ */ x("div", {
|
|
351
355
|
className: "overflow-x-auto",
|
|
352
|
-
children: /* @__PURE__ */
|
|
356
|
+
children: /* @__PURE__ */ S("table", {
|
|
353
357
|
className: "w-full text-sm",
|
|
354
|
-
children: [/* @__PURE__ */
|
|
358
|
+
children: [/* @__PURE__ */ x("thead", { children: /* @__PURE__ */ S("tr", {
|
|
355
359
|
className: "border-b border-border-seam text-left text-text-secondary",
|
|
356
360
|
children: [
|
|
357
|
-
/* @__PURE__ */
|
|
361
|
+
/* @__PURE__ */ x("th", {
|
|
358
362
|
className: "p-3",
|
|
359
363
|
children: "Name"
|
|
360
364
|
}),
|
|
361
|
-
/* @__PURE__ */
|
|
365
|
+
/* @__PURE__ */ x("th", {
|
|
362
366
|
className: "p-3",
|
|
363
367
|
children: "Type"
|
|
364
368
|
}),
|
|
365
|
-
/* @__PURE__ */
|
|
369
|
+
/* @__PURE__ */ x("th", {
|
|
366
370
|
className: "p-3",
|
|
367
371
|
children: "Size"
|
|
368
372
|
}),
|
|
369
|
-
/* @__PURE__ */
|
|
373
|
+
/* @__PURE__ */ x("th", {
|
|
370
374
|
className: "p-3",
|
|
371
375
|
children: "Modified"
|
|
372
376
|
}),
|
|
373
|
-
/* @__PURE__ */
|
|
377
|
+
/* @__PURE__ */ x("th", {
|
|
374
378
|
className: "p-3",
|
|
375
379
|
children: "Uploaded By"
|
|
376
380
|
}),
|
|
377
|
-
/* @__PURE__ */
|
|
381
|
+
/* @__PURE__ */ x("th", {
|
|
378
382
|
className: "p-3 text-right",
|
|
379
383
|
children: "Actions"
|
|
380
384
|
})
|
|
381
385
|
]
|
|
382
|
-
}) }), /* @__PURE__ */
|
|
386
|
+
}) }), /* @__PURE__ */ x("tbody", { children: Q.map((e) => /* @__PURE__ */ S("tr", {
|
|
383
387
|
className: "border-b border-border-seam hover:bg-bg-sunken",
|
|
384
388
|
children: [
|
|
385
|
-
/* @__PURE__ */
|
|
389
|
+
/* @__PURE__ */ x("td", {
|
|
386
390
|
className: "p-3",
|
|
387
|
-
children: /* @__PURE__ */
|
|
391
|
+
children: /* @__PURE__ */ S("div", {
|
|
388
392
|
className: "flex items-center gap-2",
|
|
389
393
|
children: [
|
|
390
|
-
/* @__PURE__ */
|
|
391
|
-
/* @__PURE__ */
|
|
394
|
+
/* @__PURE__ */ x(M[e.type] ?? o, { className: `h-5 w-5 ${N[e.type] ?? "text-text-secondary"}` }),
|
|
395
|
+
/* @__PURE__ */ x("span", {
|
|
392
396
|
className: "font-medium",
|
|
393
397
|
children: e.name
|
|
394
398
|
}),
|
|
395
|
-
e.isStarred && /* @__PURE__ */
|
|
396
|
-
e.sharedWith > 0 && /* @__PURE__ */
|
|
399
|
+
e.isStarred && /* @__PURE__ */ x(_, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }),
|
|
400
|
+
e.sharedWith > 0 && /* @__PURE__ */ S("span", {
|
|
397
401
|
className: "flex items-center gap-0.5 text-xs text-text-secondary",
|
|
398
402
|
children: [
|
|
399
|
-
/* @__PURE__ */ y
|
|
403
|
+
/* @__PURE__ */ x(y, { className: "h-3 w-3" }),
|
|
400
404
|
" ",
|
|
401
|
-
/* @__PURE__ */
|
|
405
|
+
/* @__PURE__ */ x("span", {
|
|
402
406
|
className: "tabular-nums",
|
|
403
407
|
children: e.sharedWith
|
|
404
408
|
})
|
|
@@ -407,36 +411,36 @@ function F() {
|
|
|
407
411
|
]
|
|
408
412
|
})
|
|
409
413
|
}),
|
|
410
|
-
/* @__PURE__ */
|
|
414
|
+
/* @__PURE__ */ x("td", {
|
|
411
415
|
className: "p-3 uppercase text-xs",
|
|
412
416
|
children: e.type
|
|
413
417
|
}),
|
|
414
|
-
/* @__PURE__ */
|
|
418
|
+
/* @__PURE__ */ x("td", {
|
|
415
419
|
className: "p-3 tabular-nums",
|
|
416
|
-
children:
|
|
420
|
+
children: F(e.size)
|
|
417
421
|
}),
|
|
418
|
-
/* @__PURE__ */
|
|
422
|
+
/* @__PURE__ */ x("td", {
|
|
419
423
|
className: "p-3 text-text-secondary",
|
|
420
424
|
children: e.modifiedAt
|
|
421
425
|
}),
|
|
422
|
-
/* @__PURE__ */
|
|
426
|
+
/* @__PURE__ */ x("td", {
|
|
423
427
|
className: "p-3 text-text-secondary",
|
|
424
428
|
children: e.uploadedBy
|
|
425
429
|
}),
|
|
426
|
-
/* @__PURE__ */
|
|
430
|
+
/* @__PURE__ */ x("td", {
|
|
427
431
|
className: "p-3",
|
|
428
|
-
children: /* @__PURE__ */
|
|
432
|
+
children: /* @__PURE__ */ S("div", {
|
|
429
433
|
className: "flex justify-end gap-1",
|
|
430
|
-
children: [/* @__PURE__ */
|
|
434
|
+
children: [/* @__PURE__ */ x(C, {
|
|
431
435
|
variant: "outline",
|
|
432
436
|
size: "sm",
|
|
433
437
|
"aria-label": "Download",
|
|
434
|
-
children: /* @__PURE__ */
|
|
435
|
-
}), /* @__PURE__ */
|
|
438
|
+
children: /* @__PURE__ */ x(a, { className: "h-3 w-3" })
|
|
439
|
+
}), /* @__PURE__ */ x(C, {
|
|
436
440
|
variant: "outline",
|
|
437
441
|
size: "sm",
|
|
438
442
|
"aria-label": "Share",
|
|
439
|
-
children: /* @__PURE__ */
|
|
443
|
+
children: /* @__PURE__ */ x(g, { className: "h-3 w-3" })
|
|
440
444
|
})]
|
|
441
445
|
})
|
|
442
446
|
})
|
|
@@ -446,62 +450,62 @@ function F() {
|
|
|
446
450
|
})
|
|
447
451
|
})
|
|
448
452
|
})] }),
|
|
449
|
-
|
|
453
|
+
Y && /* @__PURE__ */ x("div", {
|
|
450
454
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-bg-overlay",
|
|
451
|
-
children: /* @__PURE__ */
|
|
455
|
+
children: /* @__PURE__ */ S(O, {
|
|
452
456
|
treatment: "glass",
|
|
453
457
|
className: "mx-4 w-full max-w-md border-border-seam",
|
|
454
|
-
children: [/* @__PURE__ */
|
|
458
|
+
children: [/* @__PURE__ */ x(E, { children: /* @__PURE__ */ S("div", {
|
|
455
459
|
className: "flex items-center justify-between",
|
|
456
|
-
children: [/* @__PURE__ */
|
|
460
|
+
children: [/* @__PURE__ */ x(D, { children: "Upload Files" }), /* @__PURE__ */ x(C, {
|
|
457
461
|
variant: "outline",
|
|
458
462
|
size: "sm",
|
|
459
|
-
onClick: () =>
|
|
463
|
+
onClick: () => X(!1),
|
|
460
464
|
children: "Close"
|
|
461
465
|
})]
|
|
462
|
-
}) }), /* @__PURE__ */
|
|
466
|
+
}) }), /* @__PURE__ */ S(T, {
|
|
463
467
|
className: "space-y-4",
|
|
464
468
|
children: [
|
|
465
|
-
/* @__PURE__ */
|
|
469
|
+
/* @__PURE__ */ S("div", {
|
|
466
470
|
className: "flex flex-col items-center justify-center rounded-lg border-2 border-dashed border-border-seam p-8",
|
|
467
471
|
children: [
|
|
468
|
-
/* @__PURE__ */
|
|
469
|
-
/* @__PURE__ */
|
|
472
|
+
/* @__PURE__ */ x(v, { className: "h-10 w-10 text-text-secondary" }),
|
|
473
|
+
/* @__PURE__ */ x("p", {
|
|
470
474
|
className: "mt-2 text-sm font-medium",
|
|
471
475
|
children: "Drag & drop files here"
|
|
472
476
|
}),
|
|
473
|
-
/* @__PURE__ */
|
|
477
|
+
/* @__PURE__ */ x("p", {
|
|
474
478
|
className: "text-xs text-text-secondary",
|
|
475
479
|
children: "or click to browse"
|
|
476
480
|
})
|
|
477
481
|
]
|
|
478
482
|
}),
|
|
479
|
-
/* @__PURE__ */
|
|
483
|
+
/* @__PURE__ */ S("div", {
|
|
480
484
|
className: "space-y-2",
|
|
481
|
-
children: [/* @__PURE__ */
|
|
485
|
+
children: [/* @__PURE__ */ x("label", {
|
|
482
486
|
className: "text-sm font-medium",
|
|
483
487
|
htmlFor: "upload-folder",
|
|
484
488
|
children: "Destination Folder"
|
|
485
|
-
}), /* @__PURE__ */
|
|
489
|
+
}), /* @__PURE__ */ S("select", {
|
|
486
490
|
id: "upload-folder",
|
|
487
491
|
className: "w-full rounded border border-border-seam bg-bg-surface px-3 py-2 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
488
|
-
children: [/* @__PURE__ */
|
|
492
|
+
children: [/* @__PURE__ */ x("option", {
|
|
489
493
|
value: "",
|
|
490
494
|
children: "Root"
|
|
491
|
-
}),
|
|
495
|
+
}), I.map((e) => /* @__PURE__ */ x("option", {
|
|
492
496
|
value: e.id,
|
|
493
497
|
children: e.name
|
|
494
498
|
}, e.id))]
|
|
495
499
|
})]
|
|
496
500
|
}),
|
|
497
|
-
/* @__PURE__ */
|
|
501
|
+
/* @__PURE__ */ S("div", {
|
|
498
502
|
className: "flex gap-2",
|
|
499
|
-
children: [/* @__PURE__ */
|
|
503
|
+
children: [/* @__PURE__ */ x(C, {
|
|
500
504
|
variant: "outline",
|
|
501
505
|
className: "flex-1",
|
|
502
|
-
onClick: () =>
|
|
506
|
+
onClick: () => X(!1),
|
|
503
507
|
children: "Cancel"
|
|
504
|
-
}), /* @__PURE__ */
|
|
508
|
+
}), /* @__PURE__ */ x(C, {
|
|
505
509
|
className: "flex-1",
|
|
506
510
|
children: "Upload"
|
|
507
511
|
})]
|
|
@@ -510,39 +514,39 @@ function F() {
|
|
|
510
514
|
})]
|
|
511
515
|
})
|
|
512
516
|
}),
|
|
513
|
-
|
|
517
|
+
ie && /* @__PURE__ */ x("div", {
|
|
514
518
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-bg-overlay",
|
|
515
|
-
children: /* @__PURE__ */
|
|
519
|
+
children: /* @__PURE__ */ S(O, {
|
|
516
520
|
treatment: "glass",
|
|
517
521
|
className: "mx-4 w-full max-w-md border-border-seam",
|
|
518
|
-
children: [/* @__PURE__ */
|
|
522
|
+
children: [/* @__PURE__ */ x(E, { children: /* @__PURE__ */ S("div", {
|
|
519
523
|
className: "flex items-center justify-between",
|
|
520
|
-
children: [/* @__PURE__ */
|
|
524
|
+
children: [/* @__PURE__ */ x(D, { children: "Create Folder" }), /* @__PURE__ */ x(C, {
|
|
521
525
|
variant: "outline",
|
|
522
526
|
size: "sm",
|
|
523
527
|
onClick: () => Z(!1),
|
|
524
528
|
children: "Close"
|
|
525
529
|
})]
|
|
526
|
-
}) }), /* @__PURE__ */
|
|
530
|
+
}) }), /* @__PURE__ */ S(T, {
|
|
527
531
|
className: "space-y-4",
|
|
528
|
-
children: [/* @__PURE__ */
|
|
532
|
+
children: [/* @__PURE__ */ S("div", {
|
|
529
533
|
className: "space-y-2",
|
|
530
|
-
children: [/* @__PURE__ */
|
|
534
|
+
children: [/* @__PURE__ */ x("label", {
|
|
531
535
|
className: "text-sm font-medium",
|
|
532
536
|
htmlFor: "folder-name",
|
|
533
537
|
children: "Folder Name"
|
|
534
|
-
}), /* @__PURE__ */
|
|
538
|
+
}), /* @__PURE__ */ x(A, {
|
|
535
539
|
id: "folder-name",
|
|
536
540
|
placeholder: "Enter folder name..."
|
|
537
541
|
})]
|
|
538
|
-
}), /* @__PURE__ */
|
|
542
|
+
}), /* @__PURE__ */ S("div", {
|
|
539
543
|
className: "flex gap-2",
|
|
540
|
-
children: [/* @__PURE__ */
|
|
544
|
+
children: [/* @__PURE__ */ x(C, {
|
|
541
545
|
variant: "outline",
|
|
542
546
|
className: "flex-1",
|
|
543
547
|
onClick: () => Z(!1),
|
|
544
548
|
children: "Cancel"
|
|
545
|
-
}), /* @__PURE__ */
|
|
549
|
+
}), /* @__PURE__ */ x(C, {
|
|
546
550
|
className: "flex-1",
|
|
547
551
|
children: "Create"
|
|
548
552
|
})]
|
|
@@ -554,6 +558,6 @@ function F() {
|
|
|
554
558
|
});
|
|
555
559
|
}
|
|
556
560
|
//#endregion
|
|
557
|
-
export {
|
|
561
|
+
export { I as DocumentsPage };
|
|
558
562
|
|
|
559
563
|
//# sourceMappingURL=DocumentsPage.js.map
|