@burdenoff/microfe-adaptercloud 2026.614.1 → 2026.625.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adaptercloud/components/EmptyState.js +17 -21
- package/dist/adaptercloud/components/EmptyState.js.map +1 -1
- package/dist/adaptercloud/components/InvestmentCard.js +30 -28
- package/dist/adaptercloud/components/InvestmentCard.js.map +1 -1
- package/dist/adaptercloud/components/MetricsCard.js +21 -15
- package/dist/adaptercloud/components/MetricsCard.js.map +1 -1
- package/dist/adaptercloud/components/PageLayout.js +38 -19
- package/dist/adaptercloud/components/PageLayout.js.map +1 -1
- package/dist/adaptercloud/components/RatingDisplay.js +3 -3
- package/dist/adaptercloud/components/RatingDisplay.js.map +1 -1
- package/dist/adaptercloud/components/StatusBadge.js +36 -16
- package/dist/adaptercloud/components/StatusBadge.js.map +1 -1
- package/dist/adaptercloud/pages/HomePage.js +286 -275
- package/dist/adaptercloud/pages/HomePage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js +87 -87
- package/dist/adaptercloud/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminDashboard.js +101 -101
- package/dist/adaptercloud/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js +48 -48
- package/dist/adaptercloud/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js +95 -95
- package/dist/adaptercloud/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js +34 -34
- package/dist/adaptercloud/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js +40 -40
- package/dist/adaptercloud/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/CartManagementPage.js +107 -107
- package/dist/adaptercloud/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/admin/UserManagementPage.js +98 -98
- package/dist/adaptercloud/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js +117 -117
- package/dist/adaptercloud/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js +33 -33
- package/dist/adaptercloud/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js +112 -109
- package/dist/adaptercloud/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js +115 -115
- package/dist/adaptercloud/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js +85 -85
- package/dist/adaptercloud/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js +106 -106
- package/dist/adaptercloud/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js +88 -88
- package/dist/adaptercloud/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js +94 -94
- package/dist/adaptercloud/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/adaptercloud/pages/common/HelpSupportPage.js +142 -142
- package/dist/adaptercloud/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/adaptercloud/pages/common/NotificationCenterPage.js +67 -66
- package/dist/adaptercloud/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/adaptercloud/pages/common/SettingsPage.js +115 -115
- package/dist/adaptercloud/pages/common/SettingsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/BookingDetailsPage.js +74 -73
- package/dist/adaptercloud/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CartDetailPage.js +87 -86
- package/dist/adaptercloud/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js +66 -65
- package/dist/adaptercloud/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CheckoutPage.js +80 -80
- package/dist/adaptercloud/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js +88 -88
- package/dist/adaptercloud/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js +84 -84
- package/dist/adaptercloud/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js +92 -91
- package/dist/adaptercloud/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/FavoritesPage.js +34 -33
- package/dist/adaptercloud/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js +44 -43
- package/dist/adaptercloud/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js +61 -60
- package/dist/adaptercloud/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js +58 -57
- package/dist/adaptercloud/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/ReviewsPage.js +48 -47
- package/dist/adaptercloud/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js +46 -45
- package/dist/adaptercloud/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js +128 -128
- package/dist/adaptercloud/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js +88 -87
- package/dist/adaptercloud/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js +88 -88
- package/dist/adaptercloud/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js +62 -62
- package/dist/adaptercloud/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js +39 -38
- package/dist/adaptercloud/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js +66 -66
- package/dist/adaptercloud/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js +153 -153
- package/dist/adaptercloud/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js +81 -80
- package/dist/adaptercloud/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js +106 -106
- package/dist/adaptercloud/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js +73 -72
- package/dist/adaptercloud/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js +107 -107
- package/dist/adaptercloud/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js +71 -69
- package/dist/adaptercloud/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/dist/adaptercloud/utils/cn.js +2 -2
- package/dist/node_modules/{.bun/clsx@2.1.1/node_modules/clsx → clsx}/dist/clsx.js +1 -1
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/{.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge → tailwind-merge}/dist/bundle-mjs.js +212 -170
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/package.json +3 -3
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +0 -1
- package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
|
@@ -83,18 +83,18 @@ function D() {
|
|
|
83
83
|
hour: "2-digit",
|
|
84
84
|
minute: "2-digit"
|
|
85
85
|
}), K = (e) => ({
|
|
86
|
-
delivered: "bg-
|
|
87
|
-
preparing: "bg-
|
|
88
|
-
ready: "bg-
|
|
89
|
-
out_for_delivery: "bg-blue-
|
|
90
|
-
cancelled: "bg-
|
|
91
|
-
confirmed: "bg-blue-
|
|
86
|
+
delivered: "bg-status-success-bg-subtle/20 text-status-success-text",
|
|
87
|
+
preparing: "bg-status-warning-bg-subtle/20 text-status-warning-text",
|
|
88
|
+
ready: "bg-status-warning-bg-subtle/20 text-status-warning-text",
|
|
89
|
+
out_for_delivery: "bg-accent-blue-subtle/20 text-accent-blue",
|
|
90
|
+
cancelled: "bg-status-error-bg-subtle/20 text-status-error-text",
|
|
91
|
+
confirmed: "bg-accent-blue-subtle/20 text-accent-blue"
|
|
92
92
|
})[e] ?? "bg-secondary text-secondary-foreground", q = (e) => {
|
|
93
93
|
switch (e) {
|
|
94
|
-
case "completed": return /* @__PURE__ */ w(l, { className: "h-4 w-4 text-
|
|
95
|
-
case "failed": return /* @__PURE__ */ w(C, { className: "h-4 w-4 text-
|
|
96
|
-
case "refunded": return /* @__PURE__ */ w(g, { className: "h-4 w-4 text-
|
|
97
|
-
default: return /* @__PURE__ */ w(c, { className: "h-4 w-4 text-
|
|
94
|
+
case "completed": return /* @__PURE__ */ w(l, { className: "h-4 w-4 text-status-success-text" });
|
|
95
|
+
case "failed": return /* @__PURE__ */ w(C, { className: "h-4 w-4 text-status-error-text" });
|
|
96
|
+
case "refunded": return /* @__PURE__ */ w(g, { className: "h-4 w-4 text-accent-blue" });
|
|
97
|
+
default: return /* @__PURE__ */ w(c, { className: "h-4 w-4 text-status-warning-text" });
|
|
98
98
|
}
|
|
99
99
|
}, J = o(() => O.filter((e) => {
|
|
100
100
|
let t = !P || e.id.toLowerCase().includes(P.toLowerCase()) || e.customerName.toLowerCase().includes(P.toLowerCase()) || e.cartName.toLowerCase().includes(P.toLowerCase()), n = I === "all" || e.status === I;
|
|
@@ -114,8 +114,8 @@ function D() {
|
|
|
114
114
|
description: "Loading orders...",
|
|
115
115
|
children: /* @__PURE__ */ T("div", {
|
|
116
116
|
className: "flex flex-col items-center justify-center py-20",
|
|
117
|
-
children: [/* @__PURE__ */ w(p, { className: "h-10 w-10 animate-spin text-
|
|
118
|
-
className: "text-
|
|
117
|
+
children: [/* @__PURE__ */ w(p, { className: "h-10 w-10 animate-spin text-text-secondary mb-4" }), /* @__PURE__ */ w("p", {
|
|
118
|
+
className: "text-text-secondary",
|
|
119
119
|
children: "Loading orders..."
|
|
120
120
|
})]
|
|
121
121
|
})
|
|
@@ -154,24 +154,24 @@ function D() {
|
|
|
154
154
|
]
|
|
155
155
|
}),
|
|
156
156
|
/* @__PURE__ */ w("div", {
|
|
157
|
-
className: "rounded-lg border border-border bg-
|
|
157
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 mb-6 bg-gloss-card shadow-pop",
|
|
158
158
|
children: /* @__PURE__ */ T("div", {
|
|
159
159
|
className: "flex flex-col gap-4",
|
|
160
160
|
children: [/* @__PURE__ */ T("div", {
|
|
161
161
|
className: "relative flex-1",
|
|
162
|
-
children: [/* @__PURE__ */ w(_, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-
|
|
162
|
+
children: [/* @__PURE__ */ w(_, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ w("input", {
|
|
163
163
|
type: "text",
|
|
164
164
|
placeholder: "Search by order ID, customer, or cart name...",
|
|
165
165
|
value: P,
|
|
166
166
|
onChange: (e) => F(e.target.value),
|
|
167
|
-
className: "w-full rounded-lg border border-border bg-
|
|
167
|
+
className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 pl-10 pr-4 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
168
168
|
})]
|
|
169
169
|
}), /* @__PURE__ */ T("div", {
|
|
170
170
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-3",
|
|
171
171
|
children: [/* @__PURE__ */ T("select", {
|
|
172
172
|
value: I,
|
|
173
173
|
onChange: (e) => L(e.target.value),
|
|
174
|
-
className: "rounded-lg border border-border bg-
|
|
174
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
175
175
|
children: [
|
|
176
176
|
/* @__PURE__ */ w("option", {
|
|
177
177
|
value: "all",
|
|
@@ -209,7 +209,7 @@ function D() {
|
|
|
209
209
|
}), /* @__PURE__ */ T("select", {
|
|
210
210
|
value: R,
|
|
211
211
|
onChange: (e) => z(e.target.value),
|
|
212
|
-
className: "rounded-lg border border-border bg-
|
|
212
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
213
213
|
children: [
|
|
214
214
|
/* @__PURE__ */ w("option", {
|
|
215
215
|
value: "today",
|
|
@@ -233,20 +233,20 @@ function D() {
|
|
|
233
233
|
})
|
|
234
234
|
}),
|
|
235
235
|
/* @__PURE__ */ T("div", {
|
|
236
|
-
className: "rounded-lg border border-border bg-
|
|
236
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface overflow-hidden",
|
|
237
237
|
children: [
|
|
238
238
|
/* @__PURE__ */ w("div", {
|
|
239
239
|
className: "block md:hidden space-y-4 p-4",
|
|
240
240
|
children: J.map((e) => /* @__PURE__ */ T("div", {
|
|
241
|
-
className: "rounded-lg border border-border bg-
|
|
241
|
+
className: "rounded-lg border border-border-subtle bg-bg-sunken/30 p-4",
|
|
242
242
|
children: [
|
|
243
243
|
/* @__PURE__ */ T("div", {
|
|
244
244
|
className: "flex justify-between items-start mb-3",
|
|
245
245
|
children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h3", {
|
|
246
|
-
className: "font-medium text-
|
|
246
|
+
className: "font-medium text-text-primary text-lg",
|
|
247
247
|
children: e.id
|
|
248
248
|
}), /* @__PURE__ */ w("p", {
|
|
249
|
-
className: "text-sm text-
|
|
249
|
+
className: "text-sm text-text-secondary",
|
|
250
250
|
children: G(e.orderDate)
|
|
251
251
|
})] }), /* @__PURE__ */ w("span", {
|
|
252
252
|
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium capitalize", K(e.status)),
|
|
@@ -257,28 +257,28 @@ function D() {
|
|
|
257
257
|
className: "grid grid-cols-2 gap-4 mb-3 text-sm",
|
|
258
258
|
children: [/* @__PURE__ */ T("div", { children: [
|
|
259
259
|
/* @__PURE__ */ w("p", {
|
|
260
|
-
className: "text-
|
|
260
|
+
className: "text-text-secondary font-medium",
|
|
261
261
|
children: "Customer"
|
|
262
262
|
}),
|
|
263
263
|
/* @__PURE__ */ w("p", {
|
|
264
|
-
className: "text-
|
|
264
|
+
className: "text-text-primary",
|
|
265
265
|
children: e.customerName
|
|
266
266
|
}),
|
|
267
267
|
/* @__PURE__ */ w("p", {
|
|
268
|
-
className: "text-
|
|
268
|
+
className: "text-text-secondary text-xs",
|
|
269
269
|
children: e.customerPhone
|
|
270
270
|
})
|
|
271
271
|
] }), /* @__PURE__ */ T("div", { children: [
|
|
272
272
|
/* @__PURE__ */ w("p", {
|
|
273
|
-
className: "text-
|
|
273
|
+
className: "text-text-secondary font-medium",
|
|
274
274
|
children: "Cart"
|
|
275
275
|
}),
|
|
276
276
|
/* @__PURE__ */ w("p", {
|
|
277
|
-
className: "text-
|
|
277
|
+
className: "text-text-primary",
|
|
278
278
|
children: e.cartName
|
|
279
279
|
}),
|
|
280
280
|
/* @__PURE__ */ w("p", {
|
|
281
|
-
className: "text-
|
|
281
|
+
className: "text-text-secondary text-xs",
|
|
282
282
|
children: e.cartOwner
|
|
283
283
|
})
|
|
284
284
|
] })]
|
|
@@ -286,20 +286,20 @@ function D() {
|
|
|
286
286
|
/* @__PURE__ */ T("div", {
|
|
287
287
|
className: "flex justify-between items-center mb-3",
|
|
288
288
|
children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
289
|
-
className: "text-
|
|
289
|
+
className: "text-text-secondary font-medium text-sm",
|
|
290
290
|
children: "Amount"
|
|
291
291
|
}), /* @__PURE__ */ w("p", {
|
|
292
|
-
className: "text-
|
|
292
|
+
className: "text-text-primary font-semibold text-lg",
|
|
293
293
|
children: W(e.total)
|
|
294
294
|
})] }), /* @__PURE__ */ T("div", {
|
|
295
295
|
className: "flex items-center gap-2",
|
|
296
296
|
children: [q(e.paymentStatus), /* @__PURE__ */ T("div", {
|
|
297
297
|
className: "text-right",
|
|
298
298
|
children: [/* @__PURE__ */ w("p", {
|
|
299
|
-
className: "text-sm text-
|
|
299
|
+
className: "text-sm text-text-primary",
|
|
300
300
|
children: e.paymentMethod
|
|
301
301
|
}), /* @__PURE__ */ w("p", {
|
|
302
|
-
className: "text-xs text-
|
|
302
|
+
className: "text-xs text-text-secondary capitalize",
|
|
303
303
|
children: e.paymentStatus
|
|
304
304
|
})]
|
|
305
305
|
})]
|
|
@@ -310,7 +310,7 @@ function D() {
|
|
|
310
310
|
onClick: () => {
|
|
311
311
|
V(e), U(!0);
|
|
312
312
|
},
|
|
313
|
-
className: "w-full rounded-lg border border-border py-2 text-sm font-medium text-
|
|
313
|
+
className: "w-full rounded-lg border border-border-subtle py-2 text-sm font-medium text-text-primary hover:bg-accent transition-colors flex items-center justify-center gap-2",
|
|
314
314
|
children: [/* @__PURE__ */ w(d, { className: "h-4 w-4" }), " View Details"]
|
|
315
315
|
})
|
|
316
316
|
]
|
|
@@ -321,38 +321,38 @@ function D() {
|
|
|
321
321
|
children: /* @__PURE__ */ T("table", {
|
|
322
322
|
className: "w-full",
|
|
323
323
|
children: [/* @__PURE__ */ w("thead", { children: /* @__PURE__ */ T("tr", {
|
|
324
|
-
className: "border-b border-border bg-
|
|
324
|
+
className: "border-b border-border-subtle bg-bg-sunken/50",
|
|
325
325
|
children: [
|
|
326
326
|
/* @__PURE__ */ w("th", {
|
|
327
|
-
className: "px-4 py-3 text-left text-xs font-medium text-
|
|
327
|
+
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
328
328
|
children: "Order ID"
|
|
329
329
|
}),
|
|
330
330
|
/* @__PURE__ */ w("th", {
|
|
331
|
-
className: "px-4 py-3 text-left text-xs font-medium text-
|
|
331
|
+
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
332
332
|
children: "Customer"
|
|
333
333
|
}),
|
|
334
334
|
/* @__PURE__ */ w("th", {
|
|
335
|
-
className: "px-4 py-3 text-left text-xs font-medium text-
|
|
335
|
+
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
336
336
|
children: "Cart"
|
|
337
337
|
}),
|
|
338
338
|
/* @__PURE__ */ w("th", {
|
|
339
|
-
className: "px-4 py-3 text-left text-xs font-medium text-
|
|
339
|
+
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
340
340
|
children: "Amount"
|
|
341
341
|
}),
|
|
342
342
|
/* @__PURE__ */ w("th", {
|
|
343
|
-
className: "px-4 py-3 text-left text-xs font-medium text-
|
|
343
|
+
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
344
344
|
children: "Status"
|
|
345
345
|
}),
|
|
346
346
|
/* @__PURE__ */ w("th", {
|
|
347
|
-
className: "px-4 py-3 text-left text-xs font-medium text-
|
|
347
|
+
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
348
348
|
children: "Payment"
|
|
349
349
|
}),
|
|
350
350
|
/* @__PURE__ */ w("th", {
|
|
351
|
-
className: "px-4 py-3 text-left text-xs font-medium text-
|
|
351
|
+
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
352
352
|
children: "Time"
|
|
353
353
|
}),
|
|
354
354
|
/* @__PURE__ */ w("th", {
|
|
355
|
-
className: "px-4 py-3 text-left text-xs font-medium text-
|
|
355
|
+
className: "px-4 py-3 text-left text-xs font-medium text-text-secondary uppercase tracking-wider",
|
|
356
356
|
children: "Actions"
|
|
357
357
|
})
|
|
358
358
|
]
|
|
@@ -362,31 +362,31 @@ function D() {
|
|
|
362
362
|
className: "hover:bg-accent/50 transition-colors",
|
|
363
363
|
children: [
|
|
364
364
|
/* @__PURE__ */ w("td", {
|
|
365
|
-
className: "px-4 py-3 text-sm font-mono font-medium text-
|
|
365
|
+
className: "px-4 py-3 text-sm font-mono font-medium text-text-primary",
|
|
366
366
|
children: e.id
|
|
367
367
|
}),
|
|
368
368
|
/* @__PURE__ */ T("td", {
|
|
369
369
|
className: "px-4 py-3",
|
|
370
370
|
children: [/* @__PURE__ */ w("div", {
|
|
371
|
-
className: "text-sm font-medium text-
|
|
371
|
+
className: "text-sm font-medium text-text-primary",
|
|
372
372
|
children: e.customerName
|
|
373
373
|
}), /* @__PURE__ */ w("div", {
|
|
374
|
-
className: "text-xs text-
|
|
374
|
+
className: "text-xs text-text-secondary",
|
|
375
375
|
children: e.customerPhone
|
|
376
376
|
})]
|
|
377
377
|
}),
|
|
378
378
|
/* @__PURE__ */ T("td", {
|
|
379
379
|
className: "px-4 py-3",
|
|
380
380
|
children: [/* @__PURE__ */ w("div", {
|
|
381
|
-
className: "text-sm font-medium text-
|
|
381
|
+
className: "text-sm font-medium text-text-primary",
|
|
382
382
|
children: e.cartName
|
|
383
383
|
}), /* @__PURE__ */ w("div", {
|
|
384
|
-
className: "text-xs text-
|
|
384
|
+
className: "text-xs text-text-secondary",
|
|
385
385
|
children: e.cartOwner
|
|
386
386
|
})]
|
|
387
387
|
}),
|
|
388
388
|
/* @__PURE__ */ w("td", {
|
|
389
|
-
className: "px-4 py-3 text-sm font-semibold text-
|
|
389
|
+
className: "px-4 py-3 text-sm font-semibold text-text-primary",
|
|
390
390
|
children: W(e.total)
|
|
391
391
|
}),
|
|
392
392
|
/* @__PURE__ */ w("td", {
|
|
@@ -401,16 +401,16 @@ function D() {
|
|
|
401
401
|
children: /* @__PURE__ */ T("div", {
|
|
402
402
|
className: "flex items-center gap-2",
|
|
403
403
|
children: [q(e.paymentStatus), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("div", {
|
|
404
|
-
className: "text-sm text-
|
|
404
|
+
className: "text-sm text-text-primary",
|
|
405
405
|
children: e.paymentMethod
|
|
406
406
|
}), /* @__PURE__ */ w("div", {
|
|
407
|
-
className: "text-xs text-
|
|
407
|
+
className: "text-xs text-text-secondary capitalize",
|
|
408
408
|
children: e.paymentStatus
|
|
409
409
|
})] })]
|
|
410
410
|
})
|
|
411
411
|
}),
|
|
412
412
|
/* @__PURE__ */ w("td", {
|
|
413
|
-
className: "px-4 py-3 text-sm text-
|
|
413
|
+
className: "px-4 py-3 text-sm text-text-secondary",
|
|
414
414
|
children: G(e.orderDate)
|
|
415
415
|
}),
|
|
416
416
|
/* @__PURE__ */ w("td", {
|
|
@@ -420,7 +420,7 @@ function D() {
|
|
|
420
420
|
onClick: () => {
|
|
421
421
|
V(e), U(!0);
|
|
422
422
|
},
|
|
423
|
-
className: "rounded p-1.5 text-
|
|
423
|
+
className: "rounded p-1.5 text-text-secondary hover:text-text-primary hover:bg-accent transition-colors",
|
|
424
424
|
children: /* @__PURE__ */ w(d, { className: "h-4 w-4" })
|
|
425
425
|
})
|
|
426
426
|
})
|
|
@@ -431,8 +431,8 @@ function D() {
|
|
|
431
431
|
}),
|
|
432
432
|
J.length === 0 && /* @__PURE__ */ T("div", {
|
|
433
433
|
className: "flex flex-col items-center justify-center py-12 px-4",
|
|
434
|
-
children: [/* @__PURE__ */ w(v, { className: "h-10 w-10 text-
|
|
435
|
-
className: "text-sm text-
|
|
434
|
+
children: [/* @__PURE__ */ w(v, { className: "h-10 w-10 text-text-secondary/50 mb-3" }), /* @__PURE__ */ w("p", {
|
|
435
|
+
className: "text-sm text-text-secondary",
|
|
436
436
|
children: "No orders found matching your criteria"
|
|
437
437
|
})]
|
|
438
438
|
})
|
|
@@ -441,167 +441,167 @@ function D() {
|
|
|
441
441
|
H && B && /* @__PURE__ */ w("div", {
|
|
442
442
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
|
|
443
443
|
children: /* @__PURE__ */ T("div", {
|
|
444
|
-
className: "w-full max-w-2xl rounded-lg border border-border bg-
|
|
444
|
+
className: "w-full max-w-2xl rounded-lg border border-border-subtle bg-bg-surface shadow-lg max-h-[90vh] overflow-y-auto",
|
|
445
445
|
children: [/* @__PURE__ */ T("div", {
|
|
446
|
-
className: "flex items-center justify-between p-4 border-b border-border",
|
|
446
|
+
className: "flex items-center justify-between p-4 border-b border-border-subtle",
|
|
447
447
|
children: [/* @__PURE__ */ w("h2", {
|
|
448
|
-
className: "text-lg font-semibold text-
|
|
448
|
+
className: "text-lg font-semibold text-text-primary",
|
|
449
449
|
children: "Order Details"
|
|
450
450
|
}), /* @__PURE__ */ w("button", {
|
|
451
451
|
type: "button",
|
|
452
452
|
onClick: () => U(!1),
|
|
453
|
-
className: "rounded p-1.5 text-
|
|
453
|
+
className: "rounded p-1.5 text-text-secondary hover:text-text-primary hover:bg-accent transition-colors",
|
|
454
454
|
children: /* @__PURE__ */ w(S, { className: "h-5 w-5" })
|
|
455
455
|
})]
|
|
456
456
|
}), /* @__PURE__ */ T("div", {
|
|
457
457
|
className: "p-4 space-y-6",
|
|
458
458
|
children: [
|
|
459
459
|
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h3", {
|
|
460
|
-
className: "font-semibold text-
|
|
460
|
+
className: "font-semibold text-text-primary mb-3",
|
|
461
461
|
children: "Order Information"
|
|
462
462
|
}), /* @__PURE__ */ T("div", {
|
|
463
463
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
464
464
|
children: [
|
|
465
465
|
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
466
|
-
className: "text-sm text-
|
|
466
|
+
className: "text-sm text-text-secondary",
|
|
467
467
|
children: "Order ID"
|
|
468
468
|
}), /* @__PURE__ */ w("p", {
|
|
469
|
-
className: "font-medium text-
|
|
469
|
+
className: "font-medium text-text-primary",
|
|
470
470
|
children: B.id
|
|
471
471
|
})] }),
|
|
472
472
|
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
473
|
-
className: "text-sm text-
|
|
473
|
+
className: "text-sm text-text-secondary",
|
|
474
474
|
children: "Status"
|
|
475
475
|
}), /* @__PURE__ */ w("span", {
|
|
476
476
|
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium capitalize", K(B.status)),
|
|
477
477
|
children: B.status.replace("_", " ")
|
|
478
478
|
})] }),
|
|
479
479
|
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
480
|
-
className: "text-sm text-
|
|
480
|
+
className: "text-sm text-text-secondary",
|
|
481
481
|
children: "Order Date"
|
|
482
482
|
}), /* @__PURE__ */ w("p", {
|
|
483
|
-
className: "font-medium text-
|
|
483
|
+
className: "font-medium text-text-primary",
|
|
484
484
|
children: G(B.orderDate)
|
|
485
485
|
})] }),
|
|
486
486
|
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
487
|
-
className: "text-sm text-
|
|
487
|
+
className: "text-sm text-text-secondary",
|
|
488
488
|
children: "Delivery Time"
|
|
489
489
|
}), /* @__PURE__ */ w("p", {
|
|
490
|
-
className: "font-medium text-
|
|
490
|
+
className: "font-medium text-text-primary",
|
|
491
491
|
children: G(B.deliveryTime)
|
|
492
492
|
})] })
|
|
493
493
|
]
|
|
494
494
|
})] }),
|
|
495
495
|
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ T("h3", {
|
|
496
|
-
className: "font-semibold text-
|
|
496
|
+
className: "font-semibold text-text-primary mb-3 flex items-center gap-2",
|
|
497
497
|
children: [/* @__PURE__ */ w(x, { className: "h-4 w-4" }), " Customer Details"]
|
|
498
498
|
}), /* @__PURE__ */ T("div", {
|
|
499
499
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
500
500
|
children: [
|
|
501
501
|
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
502
|
-
className: "text-sm text-
|
|
502
|
+
className: "text-sm text-text-secondary",
|
|
503
503
|
children: "Name"
|
|
504
504
|
}), /* @__PURE__ */ w("p", {
|
|
505
|
-
className: "font-medium text-
|
|
505
|
+
className: "font-medium text-text-primary",
|
|
506
506
|
children: B.customerName
|
|
507
507
|
})] }),
|
|
508
508
|
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
509
|
-
className: "text-sm text-
|
|
509
|
+
className: "text-sm text-text-secondary",
|
|
510
510
|
children: "Phone"
|
|
511
511
|
}), /* @__PURE__ */ T("p", {
|
|
512
|
-
className: "font-medium text-
|
|
512
|
+
className: "font-medium text-text-primary flex items-center gap-1",
|
|
513
513
|
children: [/* @__PURE__ */ w(h, { className: "h-3 w-3" }), B.customerPhone]
|
|
514
514
|
})] }),
|
|
515
515
|
/* @__PURE__ */ T("div", {
|
|
516
516
|
className: "sm:col-span-2",
|
|
517
517
|
children: [/* @__PURE__ */ w("p", {
|
|
518
|
-
className: "text-sm text-
|
|
518
|
+
className: "text-sm text-text-secondary",
|
|
519
519
|
children: "Delivery Address"
|
|
520
520
|
}), /* @__PURE__ */ T("p", {
|
|
521
|
-
className: "font-medium text-
|
|
521
|
+
className: "font-medium text-text-primary flex items-center gap-1",
|
|
522
522
|
children: [/* @__PURE__ */ w(m, { className: "h-3 w-3" }), B.deliveryAddress]
|
|
523
523
|
})]
|
|
524
524
|
})
|
|
525
525
|
]
|
|
526
526
|
})] }),
|
|
527
527
|
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h3", {
|
|
528
|
-
className: "font-semibold text-
|
|
528
|
+
className: "font-semibold text-text-primary mb-3",
|
|
529
529
|
children: "Cart Details"
|
|
530
530
|
}), /* @__PURE__ */ T("div", {
|
|
531
531
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
532
532
|
children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
533
|
-
className: "text-sm text-
|
|
533
|
+
className: "text-sm text-text-secondary",
|
|
534
534
|
children: "Cart Name"
|
|
535
535
|
}), /* @__PURE__ */ w("p", {
|
|
536
|
-
className: "font-medium text-
|
|
536
|
+
className: "font-medium text-text-primary",
|
|
537
537
|
children: B.cartName
|
|
538
538
|
})] }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
539
|
-
className: "text-sm text-
|
|
539
|
+
className: "text-sm text-text-secondary",
|
|
540
540
|
children: "Cart Owner"
|
|
541
541
|
}), /* @__PURE__ */ w("p", {
|
|
542
|
-
className: "font-medium text-
|
|
542
|
+
className: "font-medium text-text-primary",
|
|
543
543
|
children: B.cartOwner
|
|
544
544
|
})] })]
|
|
545
545
|
})] }),
|
|
546
546
|
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h3", {
|
|
547
|
-
className: "font-semibold text-
|
|
547
|
+
className: "font-semibold text-text-primary mb-3",
|
|
548
548
|
children: "Order Items"
|
|
549
549
|
}), /* @__PURE__ */ T("div", {
|
|
550
|
-
className: "rounded-lg bg-
|
|
550
|
+
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
551
551
|
children: [/* @__PURE__ */ w("ul", {
|
|
552
552
|
className: "space-y-2",
|
|
553
553
|
children: B.items.map((e, t) => /* @__PURE__ */ w("li", {
|
|
554
|
-
className: "text-sm text-
|
|
554
|
+
className: "text-sm text-text-primary",
|
|
555
555
|
children: e
|
|
556
556
|
}, t))
|
|
557
557
|
}), /* @__PURE__ */ T("div", {
|
|
558
|
-
className: "mt-4 pt-4 border-t border-border flex justify-between items-center",
|
|
558
|
+
className: "mt-4 pt-4 border-t border-border-subtle flex justify-between items-center",
|
|
559
559
|
children: [/* @__PURE__ */ w("span", {
|
|
560
|
-
className: "font-semibold text-
|
|
560
|
+
className: "font-semibold text-text-primary",
|
|
561
561
|
children: "Total Amount"
|
|
562
562
|
}), /* @__PURE__ */ w("span", {
|
|
563
|
-
className: "font-semibold text-lg text-
|
|
563
|
+
className: "font-semibold text-lg text-text-primary",
|
|
564
564
|
children: W(B.total)
|
|
565
565
|
})]
|
|
566
566
|
})]
|
|
567
567
|
})] }),
|
|
568
568
|
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h3", {
|
|
569
|
-
className: "font-semibold text-
|
|
569
|
+
className: "font-semibold text-text-primary mb-3",
|
|
570
570
|
children: "Payment Details"
|
|
571
571
|
}), /* @__PURE__ */ T("div", {
|
|
572
572
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
573
573
|
children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
574
|
-
className: "text-sm text-
|
|
574
|
+
className: "text-sm text-text-secondary",
|
|
575
575
|
children: "Method"
|
|
576
576
|
}), /* @__PURE__ */ w("p", {
|
|
577
|
-
className: "font-medium text-
|
|
577
|
+
className: "font-medium text-text-primary",
|
|
578
578
|
children: B.paymentMethod
|
|
579
579
|
})] }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
580
|
-
className: "text-sm text-
|
|
580
|
+
className: "text-sm text-text-secondary",
|
|
581
581
|
children: "Status"
|
|
582
582
|
}), /* @__PURE__ */ T("div", {
|
|
583
583
|
className: "flex items-center gap-2",
|
|
584
584
|
children: [q(B.paymentStatus), /* @__PURE__ */ w("span", {
|
|
585
|
-
className: "font-medium text-
|
|
585
|
+
className: "font-medium text-text-primary capitalize",
|
|
586
586
|
children: B.paymentStatus
|
|
587
587
|
})]
|
|
588
588
|
})] })]
|
|
589
589
|
})] }),
|
|
590
590
|
B.workerAssigned && /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ T("h3", {
|
|
591
|
-
className: "font-semibold text-
|
|
591
|
+
className: "font-semibold text-text-primary mb-3 flex items-center gap-2",
|
|
592
592
|
children: [/* @__PURE__ */ w(b, { className: "h-4 w-4" }), " Delivery Assignment"]
|
|
593
593
|
}), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
594
|
-
className: "text-sm text-
|
|
594
|
+
className: "text-sm text-text-secondary",
|
|
595
595
|
children: "Assigned Worker"
|
|
596
596
|
}), /* @__PURE__ */ w("p", {
|
|
597
|
-
className: "font-medium text-
|
|
597
|
+
className: "font-medium text-text-primary",
|
|
598
598
|
children: B.workerAssigned
|
|
599
599
|
})] })] }),
|
|
600
600
|
B.notes && /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h3", {
|
|
601
|
-
className: "font-semibold text-
|
|
601
|
+
className: "font-semibold text-text-primary mb-3",
|
|
602
602
|
children: "Special Instructions"
|
|
603
603
|
}), /* @__PURE__ */ w("p", {
|
|
604
|
-
className: "text-sm rounded-lg bg-
|
|
604
|
+
className: "text-sm rounded-lg bg-bg-sunken/50 p-3 text-text-primary",
|
|
605
605
|
children: B.notes
|
|
606
606
|
})] }),
|
|
607
607
|
/* @__PURE__ */ T("div", {
|
|
@@ -609,10 +609,10 @@ function D() {
|
|
|
609
609
|
children: [/* @__PURE__ */ w("button", {
|
|
610
610
|
type: "button",
|
|
611
611
|
onClick: () => U(!1),
|
|
612
|
-
className: "rounded-lg border border-border py-2 px-4 text-sm font-medium text-
|
|
612
|
+
className: "rounded-lg border border-border-subtle py-2 px-4 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
613
613
|
children: "Close"
|
|
614
614
|
}), B.status !== "delivered" && B.status !== "cancelled" && /* @__PURE__ */ T("select", {
|
|
615
|
-
className: "rounded-lg border border-border bg-
|
|
615
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface py-2 px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
616
616
|
value: B.status,
|
|
617
617
|
onChange: (e) => Y(B.id, e.target.value),
|
|
618
618
|
children: [
|