@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
|
@@ -242,48 +242,48 @@ var S = [
|
|
|
242
242
|
}
|
|
243
243
|
], C = {
|
|
244
244
|
pending: {
|
|
245
|
-
color: "bg-
|
|
245
|
+
color: "bg-status-warning-bg-subtle/20 text-status-warning-text",
|
|
246
246
|
label: "New Order"
|
|
247
247
|
},
|
|
248
248
|
confirmed: {
|
|
249
|
-
color: "bg-blue-
|
|
249
|
+
color: "bg-accent-blue-subtle/20 text-accent-blue",
|
|
250
250
|
label: "Confirmed"
|
|
251
251
|
},
|
|
252
252
|
preparing: {
|
|
253
|
-
color: "bg-orange-
|
|
253
|
+
color: "bg-accent-orange-subtle/20 text-accent-orange",
|
|
254
254
|
label: "Preparing"
|
|
255
255
|
},
|
|
256
256
|
ready: {
|
|
257
|
-
color: "bg-
|
|
257
|
+
color: "bg-status-success-bg-subtle/20 text-status-success-text",
|
|
258
258
|
label: "Ready"
|
|
259
259
|
},
|
|
260
260
|
out_for_delivery: {
|
|
261
|
-
color: "bg-cyan-
|
|
261
|
+
color: "bg-accent-cyan-subtle/20 text-accent-cyan",
|
|
262
262
|
label: "Out for Delivery"
|
|
263
263
|
},
|
|
264
264
|
delivered: {
|
|
265
|
-
color: "bg-
|
|
265
|
+
color: "bg-status-success-bg-subtle/20 text-status-success-text",
|
|
266
266
|
label: "Completed"
|
|
267
267
|
},
|
|
268
268
|
cancelled: {
|
|
269
|
-
color: "bg-
|
|
269
|
+
color: "bg-status-error-bg-subtle/20 text-status-error-text",
|
|
270
270
|
label: "Cancelled"
|
|
271
271
|
}
|
|
272
272
|
}, w = {
|
|
273
273
|
delivery: {
|
|
274
274
|
icon: g,
|
|
275
275
|
label: "Delivery",
|
|
276
|
-
color: "bg-purple-
|
|
276
|
+
color: "bg-accent-purple-subtle/20 text-accent-purple"
|
|
277
277
|
},
|
|
278
278
|
pickup: {
|
|
279
279
|
icon: h,
|
|
280
280
|
label: "Pickup",
|
|
281
|
-
color: "bg-blue-
|
|
281
|
+
color: "bg-accent-blue-subtle/20 text-accent-blue"
|
|
282
282
|
},
|
|
283
283
|
cart_dispatch: {
|
|
284
284
|
icon: u,
|
|
285
285
|
label: "Cart Dispatch",
|
|
286
|
-
color: "bg-
|
|
286
|
+
color: "bg-bg-sunken text-text-secondary"
|
|
287
287
|
}
|
|
288
288
|
}, T = (e) => {
|
|
289
289
|
let t = new Date(e), n = Math.floor(((/* @__PURE__ */ new Date()).getTime() - t.getTime()) / (1e3 * 60));
|
|
@@ -297,7 +297,7 @@ var S = [
|
|
|
297
297
|
hour12: !0
|
|
298
298
|
}), D = (e) => {
|
|
299
299
|
let t = ((/* @__PURE__ */ new Date()).getTime() - new Date(e.orderDate).getTime()) / (1e3 * 60);
|
|
300
|
-
return e.status === "pending" && t > 10 ? "border-
|
|
300
|
+
return e.status === "pending" && t > 10 ? "border-status-error-border/50 bg-status-error-bg-subtle/5" : e.status === "preparing" && t > 30 ? "border-status-warning-border/50 bg-status-warning-bg-subtle/5" : "border-border-subtle";
|
|
301
301
|
}, O = () => {
|
|
302
302
|
let { navigateTo: i } = e(), [h, g] = o(S), [O, k] = o({
|
|
303
303
|
status: "",
|
|
@@ -373,16 +373,16 @@ var S = [
|
|
|
373
373
|
actions: /* @__PURE__ */ x("button", {
|
|
374
374
|
type: "button",
|
|
375
375
|
onClick: () => I("Orders refreshed", "success"),
|
|
376
|
-
className: "inline-flex items-center gap-2 rounded-md border border-border px-4 py-2 text-sm font-medium text-
|
|
376
|
+
className: "inline-flex items-center gap-2 rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken transition-colors",
|
|
377
377
|
children: [/* @__PURE__ */ b(p, { className: "h-4 w-4" }), "Refresh"]
|
|
378
378
|
}),
|
|
379
379
|
children: [/* @__PURE__ */ x("div", {
|
|
380
380
|
className: "space-y-4",
|
|
381
381
|
children: [
|
|
382
382
|
P && /* @__PURE__ */ x("div", {
|
|
383
|
-
className: t("flex items-center gap-2 rounded-lg border p-3", P.type === "success" ? "border-
|
|
384
|
-
children: [P.type === "success" ? /* @__PURE__ */ b(c, { className: "h-4 w-4 text-
|
|
385
|
-
className: t("text-sm font-medium", P.type === "success" ? "text-
|
|
383
|
+
className: t("flex items-center gap-2 rounded-lg border p-3", P.type === "success" ? "border-status-success-border/30 bg-status-success-bg-subtle/10" : "border-status-error-border/30 bg-status-error-bg-subtle/10"),
|
|
384
|
+
children: [P.type === "success" ? /* @__PURE__ */ b(c, { className: "h-4 w-4 text-status-success-text" }) : /* @__PURE__ */ b(s, { className: "h-4 w-4 text-status-error-text" }), /* @__PURE__ */ b("span", {
|
|
385
|
+
className: t("text-sm font-medium", P.type === "success" ? "text-status-success-text" : "text-status-error-text"),
|
|
386
386
|
children: P.text
|
|
387
387
|
})]
|
|
388
388
|
}),
|
|
@@ -390,75 +390,75 @@ var S = [
|
|
|
390
390
|
className: "grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3",
|
|
391
391
|
children: [
|
|
392
392
|
/* @__PURE__ */ x("div", {
|
|
393
|
-
className: "rounded-lg border border-border bg-
|
|
393
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
|
|
394
394
|
children: [/* @__PURE__ */ b("p", {
|
|
395
|
-
className: "text-xs text-
|
|
395
|
+
className: "text-xs text-text-secondary",
|
|
396
396
|
children: "Total Orders"
|
|
397
397
|
}), /* @__PURE__ */ b("p", {
|
|
398
|
-
className: "text-2xl font-bold text-
|
|
398
|
+
className: "text-2xl font-bold text-text-primary",
|
|
399
399
|
children: L.total
|
|
400
400
|
})]
|
|
401
401
|
}),
|
|
402
402
|
/* @__PURE__ */ x("div", {
|
|
403
|
-
className: "rounded-lg border border-
|
|
403
|
+
className: "rounded-lg border border-status-warning-border/30 bg-status-warning-bg-subtle/5 p-4 shadow-sm",
|
|
404
404
|
children: [/* @__PURE__ */ b("p", {
|
|
405
|
-
className: "text-xs text-
|
|
405
|
+
className: "text-xs text-status-warning-text",
|
|
406
406
|
children: "Pending"
|
|
407
407
|
}), /* @__PURE__ */ b("p", {
|
|
408
|
-
className: "text-2xl font-bold text-
|
|
408
|
+
className: "text-2xl font-bold text-status-warning-text",
|
|
409
409
|
children: L.pending
|
|
410
410
|
})]
|
|
411
411
|
}),
|
|
412
412
|
/* @__PURE__ */ x("div", {
|
|
413
|
-
className: "rounded-lg border border-blue-
|
|
413
|
+
className: "rounded-lg border border-accent-blue-subtle/30 bg-accent-blue-subtle/5 p-4 shadow-sm",
|
|
414
414
|
children: [/* @__PURE__ */ b("p", {
|
|
415
|
-
className: "text-xs text-
|
|
415
|
+
className: "text-xs text-accent-blue",
|
|
416
416
|
children: "Active"
|
|
417
417
|
}), /* @__PURE__ */ b("p", {
|
|
418
|
-
className: "text-2xl font-bold text-
|
|
418
|
+
className: "text-2xl font-bold text-accent-blue",
|
|
419
419
|
children: L.active
|
|
420
420
|
})]
|
|
421
421
|
}),
|
|
422
422
|
/* @__PURE__ */ x("div", {
|
|
423
|
-
className: "rounded-lg border border-
|
|
423
|
+
className: "rounded-lg border border-status-success-border/30 bg-status-success-bg-subtle/5 p-4 shadow-sm",
|
|
424
424
|
children: [/* @__PURE__ */ b("p", {
|
|
425
|
-
className: "text-xs text-
|
|
425
|
+
className: "text-xs text-status-success-text",
|
|
426
426
|
children: "Completed"
|
|
427
427
|
}), /* @__PURE__ */ b("p", {
|
|
428
|
-
className: "text-2xl font-bold text-
|
|
428
|
+
className: "text-2xl font-bold text-status-success-text",
|
|
429
429
|
children: L.completed
|
|
430
430
|
})]
|
|
431
431
|
}),
|
|
432
432
|
/* @__PURE__ */ x("div", {
|
|
433
|
-
className: "rounded-lg border border-border bg-
|
|
433
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
|
|
434
434
|
children: [/* @__PURE__ */ b("p", {
|
|
435
|
-
className: "text-xs text-
|
|
435
|
+
className: "text-xs text-text-secondary",
|
|
436
436
|
children: "Total Revenue"
|
|
437
437
|
}), /* @__PURE__ */ b("p", {
|
|
438
|
-
className: "text-2xl font-bold text-
|
|
438
|
+
className: "text-2xl font-bold text-text-primary",
|
|
439
439
|
children: r(L.totalRevenue, { minimumFractionDigits: 0 })
|
|
440
440
|
})]
|
|
441
441
|
}),
|
|
442
442
|
/* @__PURE__ */ x("div", {
|
|
443
|
-
className: "rounded-lg border border-border bg-
|
|
443
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
|
|
444
444
|
children: [/* @__PURE__ */ b("p", {
|
|
445
|
-
className: "text-xs text-
|
|
445
|
+
className: "text-xs text-text-secondary",
|
|
446
446
|
children: "Avg Order"
|
|
447
447
|
}), /* @__PURE__ */ b("p", {
|
|
448
|
-
className: "text-2xl font-bold text-
|
|
448
|
+
className: "text-2xl font-bold text-text-primary",
|
|
449
449
|
children: r(L.avgOrder, { minimumFractionDigits: 0 })
|
|
450
450
|
})]
|
|
451
451
|
})
|
|
452
452
|
]
|
|
453
453
|
}),
|
|
454
454
|
/* @__PURE__ */ b("div", {
|
|
455
|
-
className: "rounded-lg border border-border bg-
|
|
455
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
|
|
456
456
|
children: /* @__PURE__ */ x("div", {
|
|
457
457
|
className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-3",
|
|
458
458
|
children: [
|
|
459
459
|
/* @__PURE__ */ x("div", {
|
|
460
460
|
className: "relative sm:col-span-2 lg:col-span-1",
|
|
461
|
-
children: [/* @__PURE__ */ b(m, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-
|
|
461
|
+
children: [/* @__PURE__ */ b(m, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ b("input", {
|
|
462
462
|
type: "text",
|
|
463
463
|
placeholder: "Search orders...",
|
|
464
464
|
value: O.searchQuery,
|
|
@@ -466,7 +466,7 @@ var S = [
|
|
|
466
466
|
...t,
|
|
467
467
|
searchQuery: e.target.value
|
|
468
468
|
})),
|
|
469
|
-
className: "w-full rounded-md border border-border bg-
|
|
469
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface pl-10 pr-4 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
470
470
|
})]
|
|
471
471
|
}),
|
|
472
472
|
/* @__PURE__ */ x("select", {
|
|
@@ -475,7 +475,7 @@ var S = [
|
|
|
475
475
|
...t,
|
|
476
476
|
status: e.target.value
|
|
477
477
|
})),
|
|
478
|
-
className: "rounded-md border border-border bg-
|
|
478
|
+
className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary",
|
|
479
479
|
children: [
|
|
480
480
|
/* @__PURE__ */ b("option", {
|
|
481
481
|
value: "",
|
|
@@ -513,7 +513,7 @@ var S = [
|
|
|
513
513
|
...t,
|
|
514
514
|
fulfillmentType: e.target.value
|
|
515
515
|
})),
|
|
516
|
-
className: "rounded-md border border-border bg-
|
|
516
|
+
className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary",
|
|
517
517
|
children: [
|
|
518
518
|
/* @__PURE__ */ b("option", {
|
|
519
519
|
value: "",
|
|
@@ -539,7 +539,7 @@ var S = [
|
|
|
539
539
|
...t,
|
|
540
540
|
dateRange: e.target.value
|
|
541
541
|
})),
|
|
542
|
-
className: "rounded-md border border-border bg-
|
|
542
|
+
className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary",
|
|
543
543
|
children: [
|
|
544
544
|
/* @__PURE__ */ b("option", {
|
|
545
545
|
value: "today",
|
|
@@ -565,7 +565,7 @@ var S = [
|
|
|
565
565
|
...t,
|
|
566
566
|
sortBy: e.target.value
|
|
567
567
|
})),
|
|
568
|
-
className: "rounded-md border border-border bg-
|
|
568
|
+
className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary",
|
|
569
569
|
children: [
|
|
570
570
|
/* @__PURE__ */ b("option", {
|
|
571
571
|
value: "recent",
|
|
@@ -589,15 +589,15 @@ var S = [
|
|
|
589
589
|
})
|
|
590
590
|
}),
|
|
591
591
|
R.length === 0 ? /* @__PURE__ */ x("div", {
|
|
592
|
-
className: "flex flex-col items-center justify-center py-16 rounded-lg border border-border bg-
|
|
592
|
+
className: "flex flex-col items-center justify-center py-16 rounded-lg border border-border-subtle bg-bg-surface shadow-sm text-center",
|
|
593
593
|
children: [
|
|
594
|
-
/* @__PURE__ */ b(d, { className: "h-12 w-12 text-
|
|
594
|
+
/* @__PURE__ */ b(d, { className: "h-12 w-12 text-text-secondary opacity-40 mb-3" }),
|
|
595
595
|
/* @__PURE__ */ b("h3", {
|
|
596
|
-
className: "text-lg font-semibold text-
|
|
596
|
+
className: "text-lg font-semibold text-text-primary mb-1",
|
|
597
597
|
children: "No orders found"
|
|
598
598
|
}),
|
|
599
599
|
/* @__PURE__ */ b("p", {
|
|
600
|
-
className: "text-sm text-
|
|
600
|
+
className: "text-sm text-text-secondary",
|
|
601
601
|
children: O.searchQuery || O.status ? "Try adjusting your filters" : "No orders to display"
|
|
602
602
|
})
|
|
603
603
|
]
|
|
@@ -605,11 +605,11 @@ var S = [
|
|
|
605
605
|
className: "space-y-4",
|
|
606
606
|
children: R.map((e) => {
|
|
607
607
|
let n = C[e.status] || {
|
|
608
|
-
color: "bg-
|
|
608
|
+
color: "bg-bg-sunken text-text-secondary",
|
|
609
609
|
label: e.status
|
|
610
610
|
}, i = w[e.fulfillmentType || "delivery"] || w.delivery, a = i.icon;
|
|
611
611
|
return /* @__PURE__ */ b("div", {
|
|
612
|
-
className: t("rounded-lg border bg-
|
|
612
|
+
className: t("rounded-lg border bg-bg-surface shadow-sm transition-shadow hover:shadow-md", D(e)),
|
|
613
613
|
children: /* @__PURE__ */ x("div", {
|
|
614
614
|
className: "p-4 sm:p-5",
|
|
615
615
|
children: [
|
|
@@ -621,7 +621,7 @@ var S = [
|
|
|
621
621
|
className: "flex flex-wrap items-center gap-2 mb-1",
|
|
622
622
|
children: [
|
|
623
623
|
/* @__PURE__ */ x("h3", {
|
|
624
|
-
className: "text-sm sm:text-base font-semibold text-
|
|
624
|
+
className: "text-sm sm:text-base font-semibold text-text-primary",
|
|
625
625
|
children: ["Order #", e.id]
|
|
626
626
|
}),
|
|
627
627
|
/* @__PURE__ */ b("span", {
|
|
@@ -634,7 +634,7 @@ var S = [
|
|
|
634
634
|
})
|
|
635
635
|
]
|
|
636
636
|
}), /* @__PURE__ */ x("p", {
|
|
637
|
-
className: "text-xs text-
|
|
637
|
+
className: "text-xs text-text-secondary",
|
|
638
638
|
children: [
|
|
639
639
|
e.customerName || "Customer",
|
|
640
640
|
" | ",
|
|
@@ -644,24 +644,24 @@ var S = [
|
|
|
644
644
|
}), /* @__PURE__ */ x("div", {
|
|
645
645
|
className: "flex items-center gap-3",
|
|
646
646
|
children: [/* @__PURE__ */ b("p", {
|
|
647
|
-
className: "text-lg font-bold text-
|
|
647
|
+
className: "text-lg font-bold text-text-primary",
|
|
648
648
|
children: r(e.total, { minimumFractionDigits: 0 })
|
|
649
649
|
}), /* @__PURE__ */ b("button", {
|
|
650
650
|
type: "button",
|
|
651
651
|
onClick: () => {
|
|
652
652
|
j(e), N(!0);
|
|
653
653
|
},
|
|
654
|
-
className: "rounded-md border border-border px-3 py-1.5 text-xs font-medium text-
|
|
654
|
+
className: "rounded-md border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken transition-colors",
|
|
655
655
|
children: "View Details"
|
|
656
656
|
})]
|
|
657
657
|
})]
|
|
658
658
|
}),
|
|
659
659
|
/* @__PURE__ */ b("div", {
|
|
660
|
-
className: "border-t border-border pt-3 mb-3",
|
|
660
|
+
className: "border-t border-border-subtle pt-3 mb-3",
|
|
661
661
|
children: /* @__PURE__ */ b("div", {
|
|
662
662
|
className: "flex flex-wrap gap-2",
|
|
663
663
|
children: e.items.map((e, t) => /* @__PURE__ */ x("span", {
|
|
664
|
-
className: "inline-flex items-center rounded bg-
|
|
664
|
+
className: "inline-flex items-center rounded bg-bg-sunken px-2 py-1 text-xs text-text-primary",
|
|
665
665
|
children: [
|
|
666
666
|
e.quantity,
|
|
667
667
|
"x ",
|
|
@@ -676,30 +676,30 @@ var S = [
|
|
|
676
676
|
e.status === "pending" && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ x("button", {
|
|
677
677
|
type: "button",
|
|
678
678
|
onClick: () => z(e.id, "accept"),
|
|
679
|
-
className: "inline-flex items-center gap-1.5 rounded-md bg-
|
|
679
|
+
className: "inline-flex items-center gap-1.5 rounded-md bg-status-success-bg-subtle/10 px-3 py-2 text-xs font-medium text-status-success-text hover:bg-status-success-bg-subtle/20 transition-colors",
|
|
680
680
|
children: [/* @__PURE__ */ b(c, { className: "h-3.5 w-3.5" }), "Accept Order"]
|
|
681
681
|
}), /* @__PURE__ */ x("button", {
|
|
682
682
|
type: "button",
|
|
683
683
|
onClick: () => z(e.id, "reject"),
|
|
684
|
-
className: "inline-flex items-center gap-1.5 rounded-md bg-
|
|
684
|
+
className: "inline-flex items-center gap-1.5 rounded-md bg-status-error-bg-subtle/10 px-3 py-2 text-xs font-medium text-status-error-text hover:bg-status-error-bg-subtle/20 transition-colors",
|
|
685
685
|
children: [/* @__PURE__ */ b(v, { className: "h-3.5 w-3.5" }), "Reject"]
|
|
686
686
|
})] }),
|
|
687
687
|
e.status === "confirmed" && /* @__PURE__ */ x("button", {
|
|
688
688
|
type: "button",
|
|
689
689
|
onClick: () => z(e.id, "ready"),
|
|
690
|
-
className: "inline-flex items-center gap-1.5 rounded-md bg-orange-
|
|
690
|
+
className: "inline-flex items-center gap-1.5 rounded-md bg-accent-orange-subtle/10 px-3 py-2 text-xs font-medium text-accent-orange hover:bg-accent-orange-subtle/20 transition-colors",
|
|
691
691
|
children: [/* @__PURE__ */ b(l, { className: "h-3.5 w-3.5" }), "Start Preparing"]
|
|
692
692
|
}),
|
|
693
693
|
e.status === "preparing" && /* @__PURE__ */ x("button", {
|
|
694
694
|
type: "button",
|
|
695
695
|
onClick: () => z(e.id, "ready"),
|
|
696
|
-
className: "inline-flex items-center gap-1.5 rounded-md bg-
|
|
696
|
+
className: "inline-flex items-center gap-1.5 rounded-md bg-status-success-bg-subtle/10 px-3 py-2 text-xs font-medium text-status-success-text hover:bg-status-success-bg-subtle/20 transition-colors",
|
|
697
697
|
children: [/* @__PURE__ */ b(d, { className: "h-3.5 w-3.5" }), "Mark as Ready"]
|
|
698
698
|
}),
|
|
699
699
|
e.status === "ready" && e.fulfillmentType === "pickup" && /* @__PURE__ */ x("button", {
|
|
700
700
|
type: "button",
|
|
701
701
|
onClick: () => z(e.id, "complete"),
|
|
702
|
-
className: "inline-flex items-center gap-1.5 rounded-md bg-
|
|
702
|
+
className: "inline-flex items-center gap-1.5 rounded-md bg-status-success-bg-subtle/10 px-3 py-2 text-xs font-medium text-status-success-text hover:bg-status-success-bg-subtle/20 transition-colors",
|
|
703
703
|
children: [/* @__PURE__ */ b(c, { className: "h-3.5 w-3.5" }), "Complete Order"]
|
|
704
704
|
}),
|
|
705
705
|
[
|
|
@@ -709,18 +709,18 @@ var S = [
|
|
|
709
709
|
].includes(e.status) && /* @__PURE__ */ x("button", {
|
|
710
710
|
type: "button",
|
|
711
711
|
onClick: () => alert("Contact feature coming soon!"),
|
|
712
|
-
className: "inline-flex items-center gap-1.5 rounded-md border border-border px-3 py-2 text-xs font-medium text-
|
|
712
|
+
className: "inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-3 py-2 text-xs font-medium text-text-primary hover:bg-bg-sunken transition-colors",
|
|
713
713
|
children: [/* @__PURE__ */ b(f, { className: "h-3.5 w-3.5" }), "Contact Customer"]
|
|
714
714
|
})
|
|
715
715
|
]
|
|
716
716
|
}),
|
|
717
717
|
e.specialInstructions && /* @__PURE__ */ x("div", {
|
|
718
|
-
className: "mt-3 rounded-md border border-
|
|
718
|
+
className: "mt-3 rounded-md border border-status-warning-border/30 bg-status-warning-bg-subtle/10 p-3",
|
|
719
719
|
children: [/* @__PURE__ */ b("p", {
|
|
720
|
-
className: "text-xs font-medium text-
|
|
720
|
+
className: "text-xs font-medium text-status-warning-text",
|
|
721
721
|
children: "Special Instructions:"
|
|
722
722
|
}), /* @__PURE__ */ b("p", {
|
|
723
|
-
className: "text-xs text-
|
|
723
|
+
className: "text-xs text-status-warning-text mt-0.5",
|
|
724
724
|
children: e.specialInstructions
|
|
725
725
|
})]
|
|
726
726
|
})
|
|
@@ -733,18 +733,18 @@ var S = [
|
|
|
733
733
|
}), M && A && /* @__PURE__ */ b("div", {
|
|
734
734
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
|
|
735
735
|
children: /* @__PURE__ */ b("div", {
|
|
736
|
-
className: "w-full max-w-2xl max-h-[90vh] overflow-y-auto rounded-lg border border-border bg-
|
|
736
|
+
className: "w-full max-w-2xl max-h-[90vh] overflow-y-auto rounded-lg border border-border-subtle bg-bg-surface shadow-xl",
|
|
737
737
|
children: /* @__PURE__ */ x("div", {
|
|
738
738
|
className: "p-6",
|
|
739
739
|
children: [/* @__PURE__ */ x("div", {
|
|
740
740
|
className: "flex items-center justify-between mb-4",
|
|
741
741
|
children: [/* @__PURE__ */ b("h3", {
|
|
742
|
-
className: "text-lg font-semibold text-
|
|
742
|
+
className: "text-lg font-semibold text-text-primary",
|
|
743
743
|
children: "Order Details"
|
|
744
744
|
}), /* @__PURE__ */ b("button", {
|
|
745
745
|
type: "button",
|
|
746
746
|
onClick: () => N(!1),
|
|
747
|
-
className: "rounded p-1.5 text-
|
|
747
|
+
className: "rounded p-1.5 text-text-secondary hover:text-text-primary hover:bg-bg-sunken transition-colors",
|
|
748
748
|
children: /* @__PURE__ */ b(_, { className: "h-5 w-5" })
|
|
749
749
|
})]
|
|
750
750
|
}), /* @__PURE__ */ x("div", {
|
|
@@ -754,49 +754,49 @@ var S = [
|
|
|
754
754
|
className: "grid grid-cols-2 gap-4",
|
|
755
755
|
children: [
|
|
756
756
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
757
|
-
className: "text-xs text-
|
|
757
|
+
className: "text-xs text-text-secondary",
|
|
758
758
|
children: "Order ID"
|
|
759
759
|
}), /* @__PURE__ */ x("p", {
|
|
760
|
-
className: "text-sm font-medium text-
|
|
760
|
+
className: "text-sm font-medium text-text-primary",
|
|
761
761
|
children: ["#", A.id]
|
|
762
762
|
})] }),
|
|
763
763
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
764
|
-
className: "text-xs text-
|
|
764
|
+
className: "text-xs text-text-secondary",
|
|
765
765
|
children: "Status"
|
|
766
766
|
}), /* @__PURE__ */ b("span", {
|
|
767
767
|
className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium mt-0.5", (C[A.status] || C.pending).color),
|
|
768
768
|
children: (C[A.status] || C.pending).label
|
|
769
769
|
})] }),
|
|
770
770
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
771
|
-
className: "text-xs text-
|
|
771
|
+
className: "text-xs text-text-secondary",
|
|
772
772
|
children: "Customer"
|
|
773
773
|
}), /* @__PURE__ */ b("p", {
|
|
774
|
-
className: "text-sm font-medium text-
|
|
774
|
+
className: "text-sm font-medium text-text-primary",
|
|
775
775
|
children: A.customerName || "N/A"
|
|
776
776
|
})] }),
|
|
777
777
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
778
|
-
className: "text-xs text-
|
|
778
|
+
className: "text-xs text-text-secondary",
|
|
779
779
|
children: "Order Time"
|
|
780
780
|
}), /* @__PURE__ */ b("p", {
|
|
781
|
-
className: "text-sm font-medium text-
|
|
781
|
+
className: "text-sm font-medium text-text-primary",
|
|
782
782
|
children: E(A.orderDate)
|
|
783
783
|
})] })
|
|
784
784
|
]
|
|
785
785
|
}),
|
|
786
786
|
/* @__PURE__ */ x("div", {
|
|
787
|
-
className: "border-t border-border pt-4",
|
|
787
|
+
className: "border-t border-border-subtle pt-4",
|
|
788
788
|
children: [/* @__PURE__ */ b("h4", {
|
|
789
|
-
className: "text-sm font-medium text-
|
|
789
|
+
className: "text-sm font-medium text-text-primary mb-3",
|
|
790
790
|
children: "Order Items"
|
|
791
791
|
}), /* @__PURE__ */ b("div", {
|
|
792
792
|
className: "space-y-2",
|
|
793
793
|
children: A.items.map((e, t) => /* @__PURE__ */ x("div", {
|
|
794
794
|
className: "flex justify-between items-start",
|
|
795
795
|
children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
796
|
-
className: "text-sm font-medium text-
|
|
796
|
+
className: "text-sm font-medium text-text-primary",
|
|
797
797
|
children: e.name
|
|
798
798
|
}), /* @__PURE__ */ x("p", {
|
|
799
|
-
className: "text-xs text-
|
|
799
|
+
className: "text-xs text-text-secondary",
|
|
800
800
|
children: [
|
|
801
801
|
r(e.price, { minimumFractionDigits: 0 }),
|
|
802
802
|
" x",
|
|
@@ -804,40 +804,40 @@ var S = [
|
|
|
804
804
|
e.quantity
|
|
805
805
|
]
|
|
806
806
|
})] }), /* @__PURE__ */ b("p", {
|
|
807
|
-
className: "text-sm font-medium text-
|
|
807
|
+
className: "text-sm font-medium text-text-primary",
|
|
808
808
|
children: r(e.price * e.quantity, { minimumFractionDigits: 0 })
|
|
809
809
|
})]
|
|
810
810
|
}, t))
|
|
811
811
|
})]
|
|
812
812
|
}),
|
|
813
813
|
/* @__PURE__ */ x("div", {
|
|
814
|
-
className: "border-t border-border pt-4 space-y-2",
|
|
814
|
+
className: "border-t border-border-subtle pt-4 space-y-2",
|
|
815
815
|
children: [
|
|
816
816
|
/* @__PURE__ */ x("div", {
|
|
817
|
-
className: "flex justify-between text-sm text-
|
|
817
|
+
className: "flex justify-between text-sm text-text-secondary",
|
|
818
818
|
children: [/* @__PURE__ */ b("span", { children: "Subtotal" }), /* @__PURE__ */ b("span", { children: r(A.subtotal, { minimumFractionDigits: 0 }) })]
|
|
819
819
|
}),
|
|
820
820
|
/* @__PURE__ */ x("div", {
|
|
821
|
-
className: "flex justify-between text-sm text-
|
|
821
|
+
className: "flex justify-between text-sm text-text-secondary",
|
|
822
822
|
children: [/* @__PURE__ */ b("span", { children: "Delivery Fee" }), /* @__PURE__ */ b("span", { children: r(A.deliveryFee, { minimumFractionDigits: 0 }) })]
|
|
823
823
|
}),
|
|
824
824
|
/* @__PURE__ */ x("div", {
|
|
825
|
-
className: "flex justify-between text-sm text-
|
|
825
|
+
className: "flex justify-between text-sm text-text-secondary",
|
|
826
826
|
children: [/* @__PURE__ */ b("span", { children: "Tax" }), /* @__PURE__ */ b("span", { children: r(A.taxes, { minimumFractionDigits: 0 }) })]
|
|
827
827
|
}),
|
|
828
828
|
/* @__PURE__ */ x("div", {
|
|
829
|
-
className: "flex justify-between font-semibold text-
|
|
829
|
+
className: "flex justify-between font-semibold text-text-primary pt-2 border-t border-border-subtle",
|
|
830
830
|
children: [/* @__PURE__ */ b("span", { children: "Total" }), /* @__PURE__ */ b("span", { children: r(A.total, { minimumFractionDigits: 0 }) })]
|
|
831
831
|
})
|
|
832
832
|
]
|
|
833
833
|
}),
|
|
834
834
|
A.fulfillmentType === "delivery" && A.deliveryAddress && /* @__PURE__ */ x("div", {
|
|
835
|
-
className: "border-t border-border pt-4",
|
|
835
|
+
className: "border-t border-border-subtle pt-4",
|
|
836
836
|
children: [/* @__PURE__ */ x("h4", {
|
|
837
|
-
className: "text-sm font-medium text-
|
|
838
|
-
children: [/* @__PURE__ */ b(u, { className: "h-4 w-4 text-
|
|
837
|
+
className: "text-sm font-medium text-text-primary mb-2 flex items-center gap-1.5",
|
|
838
|
+
children: [/* @__PURE__ */ b(u, { className: "h-4 w-4 text-text-secondary" }), "Delivery Address"]
|
|
839
839
|
}), /* @__PURE__ */ x("p", {
|
|
840
|
-
className: "text-sm text-
|
|
840
|
+
className: "text-sm text-text-secondary",
|
|
841
841
|
children: [
|
|
842
842
|
A.deliveryAddress.street,
|
|
843
843
|
", ",
|
|
@@ -854,17 +854,17 @@ var S = [
|
|
|
854
854
|
children: [/* @__PURE__ */ b("button", {
|
|
855
855
|
type: "button",
|
|
856
856
|
onClick: () => N(!1),
|
|
857
|
-
className: "flex-1 rounded-md border border-border px-4 py-2 text-sm font-medium text-
|
|
857
|
+
className: "flex-1 rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken transition-colors",
|
|
858
858
|
children: "Close"
|
|
859
859
|
}), A.status === "pending" && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("button", {
|
|
860
860
|
type: "button",
|
|
861
861
|
onClick: () => z(A.id, "accept"),
|
|
862
|
-
className: "flex-1 rounded-md bg-
|
|
862
|
+
className: "flex-1 rounded-md bg-status-success-bg-subtle/10 px-4 py-2 text-sm font-medium text-status-success-text hover:bg-status-success-bg-subtle/20 transition-colors",
|
|
863
863
|
children: "Accept Order"
|
|
864
864
|
}), /* @__PURE__ */ b("button", {
|
|
865
865
|
type: "button",
|
|
866
866
|
onClick: () => z(A.id, "reject"),
|
|
867
|
-
className: "flex-1 rounded-md bg-
|
|
867
|
+
className: "flex-1 rounded-md bg-status-error-bg-subtle/10 px-4 py-2 text-sm font-medium text-status-error-text hover:bg-status-error-bg-subtle/20 transition-colors",
|
|
868
868
|
children: "Reject Order"
|
|
869
869
|
})] })]
|
|
870
870
|
})
|