@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
|
@@ -36,18 +36,18 @@ function D(e) {
|
|
|
36
36
|
}
|
|
37
37
|
function O(e) {
|
|
38
38
|
switch (e) {
|
|
39
|
-
case "scheduled": return "bg-blue-
|
|
40
|
-
case "ongoing": return "bg-
|
|
39
|
+
case "scheduled": return "bg-accent-blue-subtle/20 text-accent-blue";
|
|
40
|
+
case "ongoing": return "bg-status-success-bg-subtle/20 text-status-success-text";
|
|
41
41
|
case "completed": return "bg-secondary text-secondary-foreground";
|
|
42
|
-
case "cancelled": return "bg-
|
|
42
|
+
case "cancelled": return "bg-status-error-bg-subtle/20 text-status-error-text";
|
|
43
43
|
default: return "bg-secondary text-secondary-foreground";
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
function k(e) {
|
|
47
47
|
switch (e) {
|
|
48
|
-
case "pending": return "bg-
|
|
49
|
-
case "approved": return "bg-
|
|
50
|
-
case "rejected": return "bg-
|
|
48
|
+
case "pending": return "bg-status-warning-bg-subtle/20 text-status-warning-text";
|
|
49
|
+
case "approved": return "bg-status-success-bg-subtle/20 text-status-success-text";
|
|
50
|
+
case "rejected": return "bg-status-error-bg-subtle/20 text-status-error-text";
|
|
51
51
|
default: return "bg-secondary text-secondary-foreground";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -226,8 +226,8 @@ var A = () => {
|
|
|
226
226
|
className: "flex items-center justify-center py-24",
|
|
227
227
|
children: /* @__PURE__ */ w("div", {
|
|
228
228
|
className: "text-center",
|
|
229
|
-
children: [/* @__PURE__ */ C(p, { className: "h-10 w-10 animate-spin text-
|
|
230
|
-
className: "text-sm text-
|
|
229
|
+
children: [/* @__PURE__ */ C(p, { className: "h-10 w-10 animate-spin text-text-secondary mx-auto mb-4" }), /* @__PURE__ */ C("p", {
|
|
230
|
+
className: "text-sm text-text-secondary",
|
|
231
231
|
children: "Loading schedule..."
|
|
232
232
|
})]
|
|
233
233
|
})
|
|
@@ -241,66 +241,66 @@ var A = () => {
|
|
|
241
241
|
className: "grid grid-cols-2 md:grid-cols-4 gap-3",
|
|
242
242
|
children: [
|
|
243
243
|
/* @__PURE__ */ w("div", {
|
|
244
|
-
className: "rounded-lg border border-border bg-
|
|
244
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
|
|
245
245
|
children: [/* @__PURE__ */ C("p", {
|
|
246
|
-
className: "text-xs text-
|
|
246
|
+
className: "text-xs text-text-secondary",
|
|
247
247
|
children: "Hours This Week"
|
|
248
248
|
}), /* @__PURE__ */ w("p", {
|
|
249
|
-
className: "text-2xl font-bold text-
|
|
249
|
+
className: "text-2xl font-bold text-text-primary",
|
|
250
250
|
children: [U.hoursThisWeek, "h"]
|
|
251
251
|
})]
|
|
252
252
|
}),
|
|
253
253
|
/* @__PURE__ */ w("div", {
|
|
254
|
-
className: "rounded-lg border border-border bg-
|
|
254
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
|
|
255
255
|
children: [/* @__PURE__ */ C("p", {
|
|
256
|
-
className: "text-xs text-
|
|
256
|
+
className: "text-xs text-text-secondary",
|
|
257
257
|
children: "Shifts This Week"
|
|
258
258
|
}), /* @__PURE__ */ C("p", {
|
|
259
|
-
className: "text-2xl font-bold text-
|
|
259
|
+
className: "text-2xl font-bold text-text-primary",
|
|
260
260
|
children: U.shiftsThisWeek
|
|
261
261
|
})]
|
|
262
262
|
}),
|
|
263
263
|
/* @__PURE__ */ w("div", {
|
|
264
|
-
className: "rounded-lg border border-border bg-
|
|
264
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
|
|
265
265
|
children: [/* @__PURE__ */ C("p", {
|
|
266
|
-
className: "text-xs text-
|
|
266
|
+
className: "text-xs text-text-secondary",
|
|
267
267
|
children: "Week Earnings"
|
|
268
268
|
}), /* @__PURE__ */ C("p", {
|
|
269
|
-
className: "text-2xl font-bold text-
|
|
269
|
+
className: "text-2xl font-bold text-text-primary",
|
|
270
270
|
children: i(U.earningsThisWeek, { minimumFractionDigits: 0 })
|
|
271
271
|
})]
|
|
272
272
|
}),
|
|
273
273
|
/* @__PURE__ */ w("div", {
|
|
274
|
-
className: "rounded-lg border border-border bg-
|
|
274
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
|
|
275
275
|
children: [/* @__PURE__ */ C("p", {
|
|
276
|
-
className: "text-xs text-
|
|
276
|
+
className: "text-xs text-text-secondary",
|
|
277
277
|
children: "Next Shift"
|
|
278
278
|
}), /* @__PURE__ */ C("p", {
|
|
279
|
-
className: "text-sm font-bold text-
|
|
279
|
+
className: "text-sm font-bold text-text-primary",
|
|
280
280
|
children: U.nextShift ? `${T(U.nextShift.date)} ${E(U.nextShift.startTime)}` : "None scheduled"
|
|
281
281
|
})]
|
|
282
282
|
})
|
|
283
283
|
]
|
|
284
284
|
}), /* @__PURE__ */ w("div", {
|
|
285
|
-
className: "rounded-lg border border-border bg-
|
|
285
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface shadow-sm overflow-hidden",
|
|
286
286
|
children: [/* @__PURE__ */ w("div", {
|
|
287
|
-
className: "flex border-b border-border",
|
|
287
|
+
className: "flex border-b border-border-subtle",
|
|
288
288
|
children: [
|
|
289
289
|
/* @__PURE__ */ w("button", {
|
|
290
290
|
type: "button",
|
|
291
291
|
onClick: () => P("schedule"),
|
|
292
|
-
className: t("flex-1 py-3 px-4 text-sm font-medium transition-colors flex items-center justify-center gap-2", N === "schedule" ? "border-b-2 border-blue-
|
|
292
|
+
className: t("flex-1 py-3 px-4 text-sm font-medium transition-colors flex items-center justify-center gap-2", N === "schedule" ? "border-b-2 border-accent-blue-subtle text-accent-blue bg-accent-blue-subtle/5" : "text-text-secondary hover:text-text-primary"),
|
|
293
293
|
children: [/* @__PURE__ */ C(l, { className: "h-4 w-4" }), "My Schedule"]
|
|
294
294
|
}),
|
|
295
295
|
/* @__PURE__ */ w("button", {
|
|
296
296
|
type: "button",
|
|
297
297
|
onClick: () => P("requests"),
|
|
298
|
-
className: t("flex-1 py-3 px-4 text-sm font-medium transition-colors flex items-center justify-center gap-2", N === "requests" ? "border-b-2 border-blue-
|
|
298
|
+
className: t("flex-1 py-3 px-4 text-sm font-medium transition-colors flex items-center justify-center gap-2", N === "requests" ? "border-b-2 border-accent-blue-subtle text-accent-blue bg-accent-blue-subtle/5" : "text-text-secondary hover:text-text-primary"),
|
|
299
299
|
children: [
|
|
300
300
|
/* @__PURE__ */ C(y, { className: "h-4 w-4" }),
|
|
301
301
|
"Shift Requests",
|
|
302
302
|
W > 0 && /* @__PURE__ */ C("span", {
|
|
303
|
-
className: "ml-1 inline-flex items-center justify-center rounded-full bg-
|
|
303
|
+
className: "ml-1 inline-flex items-center justify-center rounded-full bg-status-error-bg-subtle px-1.5 py-0.5 text-[10px] font-medium text-white",
|
|
304
304
|
children: W
|
|
305
305
|
})
|
|
306
306
|
]
|
|
@@ -308,7 +308,7 @@ var A = () => {
|
|
|
308
308
|
/* @__PURE__ */ w("button", {
|
|
309
309
|
type: "button",
|
|
310
310
|
onClick: () => P("availability"),
|
|
311
|
-
className: t("flex-1 py-3 px-4 text-sm font-medium transition-colors flex items-center justify-center gap-2", N === "availability" ? "border-b-2 border-blue-
|
|
311
|
+
className: t("flex-1 py-3 px-4 text-sm font-medium transition-colors flex items-center justify-center gap-2", N === "availability" ? "border-b-2 border-accent-blue-subtle text-accent-blue bg-accent-blue-subtle/5" : "text-text-secondary hover:text-text-primary"),
|
|
312
312
|
children: [/* @__PURE__ */ C(S, { className: "h-4 w-4" }), "Availability"]
|
|
313
313
|
})
|
|
314
314
|
]
|
|
@@ -321,11 +321,11 @@ var A = () => {
|
|
|
321
321
|
/* @__PURE__ */ w("button", {
|
|
322
322
|
type: "button",
|
|
323
323
|
onClick: () => I((e) => e - 1),
|
|
324
|
-
className: "inline-flex items-center gap-1.5 rounded-md bg-accent px-3 py-1.5 text-xs font-medium text-
|
|
324
|
+
className: "inline-flex items-center gap-1.5 rounded-md bg-accent px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent/80 transition-colors",
|
|
325
325
|
children: [/* @__PURE__ */ C(d, { className: "h-3.5 w-3.5" }), "Previous Week"]
|
|
326
326
|
}),
|
|
327
327
|
/* @__PURE__ */ w("h3", {
|
|
328
|
-
className: "text-sm font-medium text-
|
|
328
|
+
className: "text-sm font-medium text-text-primary",
|
|
329
329
|
children: [
|
|
330
330
|
G.start,
|
|
331
331
|
" - ",
|
|
@@ -335,32 +335,33 @@ var A = () => {
|
|
|
335
335
|
/* @__PURE__ */ w("button", {
|
|
336
336
|
type: "button",
|
|
337
337
|
onClick: () => I((e) => e + 1),
|
|
338
|
-
className: "inline-flex items-center gap-1.5 rounded-md bg-accent px-3 py-1.5 text-xs font-medium text-
|
|
338
|
+
className: "inline-flex items-center gap-1.5 rounded-md bg-accent px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent/80 transition-colors",
|
|
339
339
|
children: ["Next Week", /* @__PURE__ */ C(f, { className: "h-3.5 w-3.5" })]
|
|
340
340
|
})
|
|
341
341
|
]
|
|
342
342
|
}), L.length === 0 ? /* @__PURE__ */ C(r, {
|
|
343
|
+
illustration: "empty-data",
|
|
343
344
|
icon: /* @__PURE__ */ C(c, { className: "h-12 w-12" }),
|
|
344
345
|
title: "No shifts scheduled",
|
|
345
346
|
description: "No shifts scheduled for this week"
|
|
346
347
|
}) : /* @__PURE__ */ C("div", {
|
|
347
348
|
className: "space-y-3",
|
|
348
349
|
children: L.map((e) => /* @__PURE__ */ w("div", {
|
|
349
|
-
className: t("rounded-lg border p-4 transition-colors", e.status === "ongoing" ? "border-
|
|
350
|
+
className: t("rounded-lg border p-4 transition-colors", e.status === "ongoing" ? "border-status-success-border/30 bg-status-success-bg-subtle/5" : "border-border-subtle hover:bg-bg-sunken/30"),
|
|
350
351
|
children: [
|
|
351
352
|
/* @__PURE__ */ w("div", {
|
|
352
353
|
className: "flex items-center justify-between mb-3",
|
|
353
354
|
children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("div", {
|
|
354
355
|
className: "flex items-center gap-2 flex-wrap",
|
|
355
356
|
children: [/* @__PURE__ */ C("h4", {
|
|
356
|
-
className: "text-sm font-semibold text-
|
|
357
|
+
className: "text-sm font-semibold text-text-primary",
|
|
357
358
|
children: T(e.date)
|
|
358
359
|
}), /* @__PURE__ */ C("span", {
|
|
359
360
|
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium capitalize", O(e.status)),
|
|
360
361
|
children: e.status === "ongoing" ? "Ongoing" : e.status
|
|
361
362
|
})]
|
|
362
363
|
}), /* @__PURE__ */ w("p", {
|
|
363
|
-
className: "text-xs text-
|
|
364
|
+
className: "text-xs text-text-secondary mt-1",
|
|
364
365
|
children: [
|
|
365
366
|
E(e.startTime),
|
|
366
367
|
" - ",
|
|
@@ -369,11 +370,11 @@ var A = () => {
|
|
|
369
370
|
})] }), /* @__PURE__ */ w("div", {
|
|
370
371
|
className: "text-right",
|
|
371
372
|
children: [/* @__PURE__ */ C("p", {
|
|
372
|
-
className: "text-lg font-bold text-
|
|
373
|
+
className: "text-lg font-bold text-text-primary",
|
|
373
374
|
children: i(e.earnings, { minimumFractionDigits: 0 })
|
|
374
375
|
}), e.rating != null && /* @__PURE__ */ w("p", {
|
|
375
|
-
className: "text-xs text-
|
|
376
|
-
children: [/* @__PURE__ */ C(x, { className: "h-3 w-3 fill-
|
|
376
|
+
className: "text-xs text-text-secondary flex items-center gap-1 justify-end",
|
|
377
|
+
children: [/* @__PURE__ */ C(x, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), e.rating]
|
|
377
378
|
})]
|
|
378
379
|
})]
|
|
379
380
|
}),
|
|
@@ -381,46 +382,46 @@ var A = () => {
|
|
|
381
382
|
className: "grid grid-cols-1 md:grid-cols-3 gap-3 text-sm",
|
|
382
383
|
children: [
|
|
383
384
|
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
384
|
-
className: "text-xs text-
|
|
385
|
+
className: "text-xs text-text-secondary",
|
|
385
386
|
children: "Cart"
|
|
386
387
|
}), /* @__PURE__ */ w("p", {
|
|
387
|
-
className: "text-xs font-medium text-
|
|
388
|
-
children: [/* @__PURE__ */ C(b, { className: "h-3 w-3 text-
|
|
388
|
+
className: "text-xs font-medium text-text-primary flex items-center gap-1",
|
|
389
|
+
children: [/* @__PURE__ */ C(b, { className: "h-3 w-3 text-text-secondary" }), e.cartName]
|
|
389
390
|
})] }),
|
|
390
391
|
/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
391
|
-
className: "text-xs text-
|
|
392
|
+
className: "text-xs text-text-secondary",
|
|
392
393
|
children: "Location"
|
|
393
394
|
}), /* @__PURE__ */ w("p", {
|
|
394
|
-
className: "text-xs font-medium text-
|
|
395
|
-
children: [/* @__PURE__ */ C(g, { className: "h-3 w-3 text-
|
|
395
|
+
className: "text-xs font-medium text-text-primary flex items-center gap-1",
|
|
396
|
+
children: [/* @__PURE__ */ C(g, { className: "h-3 w-3 text-text-secondary" }), e.location]
|
|
396
397
|
})] }),
|
|
397
398
|
e.tasksCompleted != null && /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
398
|
-
className: "text-xs text-
|
|
399
|
+
className: "text-xs text-text-secondary",
|
|
399
400
|
children: "Tasks Completed"
|
|
400
401
|
}), /* @__PURE__ */ w("p", {
|
|
401
|
-
className: "text-xs font-medium text-
|
|
402
|
-
children: [/* @__PURE__ */ C(u, { className: "h-3 w-3 text-
|
|
402
|
+
className: "text-xs font-medium text-text-primary flex items-center gap-1",
|
|
403
|
+
children: [/* @__PURE__ */ C(u, { className: "h-3 w-3 text-text-secondary" }), e.tasksCompleted]
|
|
403
404
|
})] })
|
|
404
405
|
]
|
|
405
406
|
}),
|
|
406
407
|
e.status === "scheduled" && /* @__PURE__ */ C("div", {
|
|
407
|
-
className: "mt-3 pt-3 border-t border-border",
|
|
408
|
+
className: "mt-3 pt-3 border-t border-border-subtle",
|
|
408
409
|
children: /* @__PURE__ */ w("button", {
|
|
409
410
|
type: "button",
|
|
410
411
|
onClick: () => K(e.id),
|
|
411
|
-
className: "inline-flex items-center gap-1.5 rounded-md bg-blue-
|
|
412
|
+
className: "inline-flex items-center gap-1.5 rounded-md bg-accent-blue-subtle/10 px-3 py-1.5 text-xs font-medium text-accent-blue hover:bg-accent-blue-subtle/20 transition-colors",
|
|
412
413
|
children: [/* @__PURE__ */ C(m, { className: "h-3.5 w-3.5" }), "Check In"]
|
|
413
414
|
})
|
|
414
415
|
}),
|
|
415
416
|
e.status === "ongoing" && /* @__PURE__ */ w("div", {
|
|
416
|
-
className: "mt-3 pt-3 border-t border-
|
|
417
|
+
className: "mt-3 pt-3 border-t border-status-success-border/20 flex items-center justify-between",
|
|
417
418
|
children: [/* @__PURE__ */ w("span", {
|
|
418
|
-
className: "text-xs font-medium text-
|
|
419
|
+
className: "text-xs font-medium text-status-success-text flex items-center gap-1",
|
|
419
420
|
children: [/* @__PURE__ */ C(_, { className: "h-3.5 w-3.5" }), "Shift in progress"]
|
|
420
421
|
}), /* @__PURE__ */ w("button", {
|
|
421
422
|
type: "button",
|
|
422
423
|
onClick: () => q(e.id),
|
|
423
|
-
className: "inline-flex items-center gap-1.5 rounded-md bg-accent px-3 py-1.5 text-xs font-medium text-
|
|
424
|
+
className: "inline-flex items-center gap-1.5 rounded-md bg-accent px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent/80 transition-colors",
|
|
424
425
|
children: [/* @__PURE__ */ C(h, { className: "h-3.5 w-3.5" }), "Check Out"]
|
|
425
426
|
})]
|
|
426
427
|
})
|
|
@@ -428,21 +429,22 @@ var A = () => {
|
|
|
428
429
|
}, e.id))
|
|
429
430
|
})] }),
|
|
430
431
|
N === "requests" && /* @__PURE__ */ C("div", { children: z.length === 0 ? /* @__PURE__ */ C(r, {
|
|
432
|
+
illustration: "empty-data",
|
|
431
433
|
icon: /* @__PURE__ */ C(y, { className: "h-12 w-12" }),
|
|
432
434
|
title: "No shift requests",
|
|
433
435
|
description: "No shift requests available"
|
|
434
436
|
}) : /* @__PURE__ */ C("div", {
|
|
435
437
|
className: "space-y-3",
|
|
436
438
|
children: z.map((e) => /* @__PURE__ */ w("div", {
|
|
437
|
-
className: "rounded-lg border border-border p-4",
|
|
439
|
+
className: "rounded-lg border border-border-subtle p-4",
|
|
438
440
|
children: [
|
|
439
441
|
/* @__PURE__ */ w("div", {
|
|
440
442
|
className: "flex items-center justify-between mb-3",
|
|
441
443
|
children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("h4", {
|
|
442
|
-
className: "text-sm font-semibold text-
|
|
444
|
+
className: "text-sm font-semibold text-text-primary",
|
|
443
445
|
children: T(e.date)
|
|
444
446
|
}), /* @__PURE__ */ w("p", {
|
|
445
|
-
className: "text-xs text-
|
|
447
|
+
className: "text-xs text-text-secondary mt-0.5",
|
|
446
448
|
children: [
|
|
447
449
|
E(e.startTime),
|
|
448
450
|
" - ",
|
|
@@ -456,21 +458,21 @@ var A = () => {
|
|
|
456
458
|
/* @__PURE__ */ w("div", {
|
|
457
459
|
className: "grid grid-cols-1 md:grid-cols-2 gap-3 text-sm mb-3",
|
|
458
460
|
children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
459
|
-
className: "text-xs text-
|
|
461
|
+
className: "text-xs text-text-secondary",
|
|
460
462
|
children: "Cart"
|
|
461
463
|
}), /* @__PURE__ */ C("p", {
|
|
462
|
-
className: "text-xs font-medium text-
|
|
464
|
+
className: "text-xs font-medium text-text-primary",
|
|
463
465
|
children: e.cartName
|
|
464
466
|
})] }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
465
|
-
className: "text-xs text-
|
|
467
|
+
className: "text-xs text-text-secondary",
|
|
466
468
|
children: "Location"
|
|
467
469
|
}), /* @__PURE__ */ C("p", {
|
|
468
|
-
className: "text-xs font-medium text-
|
|
470
|
+
className: "text-xs font-medium text-text-primary",
|
|
469
471
|
children: e.location
|
|
470
472
|
})] })]
|
|
471
473
|
}),
|
|
472
474
|
/* @__PURE__ */ w("p", {
|
|
473
|
-
className: "text-[10px] text-
|
|
475
|
+
className: "text-[10px] text-text-secondary mb-3",
|
|
474
476
|
children: [
|
|
475
477
|
"Requested",
|
|
476
478
|
" ",
|
|
@@ -488,12 +490,12 @@ var A = () => {
|
|
|
488
490
|
children: [/* @__PURE__ */ w("button", {
|
|
489
491
|
type: "button",
|
|
490
492
|
onClick: () => J(e.id),
|
|
491
|
-
className: "inline-flex items-center gap-1.5 rounded-md bg-
|
|
493
|
+
className: "inline-flex items-center gap-1.5 rounded-md bg-status-success-bg-subtle/10 px-3 py-1.5 text-xs font-medium text-status-success-text hover:bg-status-success-bg-subtle/20 transition-colors",
|
|
492
494
|
children: [/* @__PURE__ */ C(u, { className: "h-3.5 w-3.5" }), "Accept"]
|
|
493
495
|
}), /* @__PURE__ */ C("button", {
|
|
494
496
|
type: "button",
|
|
495
497
|
onClick: () => Y(e.id),
|
|
496
|
-
className: "inline-flex items-center gap-1.5 rounded-md bg-
|
|
498
|
+
className: "inline-flex items-center gap-1.5 rounded-md bg-status-error-bg-subtle/10 px-3 py-1.5 text-xs font-medium text-status-error-text hover:bg-status-error-bg-subtle/20 transition-colors",
|
|
497
499
|
children: "Reject"
|
|
498
500
|
})]
|
|
499
501
|
})
|
|
@@ -502,13 +504,13 @@ var A = () => {
|
|
|
502
504
|
}) }),
|
|
503
505
|
N === "availability" && /* @__PURE__ */ w("div", { children: [
|
|
504
506
|
/* @__PURE__ */ C("p", {
|
|
505
|
-
className: "text-xs text-
|
|
507
|
+
className: "text-xs text-text-secondary mb-5",
|
|
506
508
|
children: "Set your preferred working hours for each day of the week"
|
|
507
509
|
}),
|
|
508
510
|
/* @__PURE__ */ C("div", {
|
|
509
511
|
className: "space-y-3",
|
|
510
512
|
children: V.map((e) => /* @__PURE__ */ w("div", {
|
|
511
|
-
className: t("flex flex-col sm:flex-row sm:items-center gap-3 p-3 rounded-lg border", e.isAvailable ? "border-border bg-
|
|
513
|
+
className: t("flex flex-col sm:flex-row sm:items-center gap-3 p-3 rounded-lg border", e.isAvailable ? "border-border-subtle bg-bg-surface" : "border-border-subtle/50 bg-bg-sunken/30"),
|
|
512
514
|
children: [/* @__PURE__ */ C("div", {
|
|
513
515
|
className: "w-32 shrink-0",
|
|
514
516
|
children: /* @__PURE__ */ w("label", {
|
|
@@ -517,9 +519,9 @@ var A = () => {
|
|
|
517
519
|
type: "checkbox",
|
|
518
520
|
checked: e.isAvailable,
|
|
519
521
|
onChange: (t) => X(e.dayOfWeek, "isAvailable", t.target.checked),
|
|
520
|
-
className: "h-4 w-4 rounded border-border text-blue
|
|
522
|
+
className: "h-4 w-4 rounded border-border-subtle text-accent-blue focus:ring-accent-blue-subtle/40"
|
|
521
523
|
}), /* @__PURE__ */ C("span", {
|
|
522
|
-
className: "text-sm font-medium text-
|
|
524
|
+
className: "text-sm font-medium text-text-primary",
|
|
523
525
|
children: e.dayOfWeek
|
|
524
526
|
})]
|
|
525
527
|
})
|
|
@@ -528,28 +530,28 @@ var A = () => {
|
|
|
528
530
|
children: [/* @__PURE__ */ w("div", {
|
|
529
531
|
className: "flex items-center gap-2",
|
|
530
532
|
children: [/* @__PURE__ */ C("span", {
|
|
531
|
-
className: "text-xs text-
|
|
533
|
+
className: "text-xs text-text-secondary w-10",
|
|
532
534
|
children: "From"
|
|
533
535
|
}), /* @__PURE__ */ C("input", {
|
|
534
536
|
type: "time",
|
|
535
537
|
value: e.preferredStartTime,
|
|
536
538
|
onChange: (t) => X(e.dayOfWeek, "preferredStartTime", t.target.value),
|
|
537
|
-
className: "rounded-md border border-border bg-
|
|
539
|
+
className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-1.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-accent-blue-subtle/40"
|
|
538
540
|
})]
|
|
539
541
|
}), /* @__PURE__ */ w("div", {
|
|
540
542
|
className: "flex items-center gap-2",
|
|
541
543
|
children: [/* @__PURE__ */ C("span", {
|
|
542
|
-
className: "text-xs text-
|
|
544
|
+
className: "text-xs text-text-secondary w-10",
|
|
543
545
|
children: "To"
|
|
544
546
|
}), /* @__PURE__ */ C("input", {
|
|
545
547
|
type: "time",
|
|
546
548
|
value: e.preferredEndTime,
|
|
547
549
|
onChange: (t) => X(e.dayOfWeek, "preferredEndTime", t.target.value),
|
|
548
|
-
className: "rounded-md border border-border bg-
|
|
550
|
+
className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-1.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-accent-blue-subtle/40"
|
|
549
551
|
})]
|
|
550
552
|
})]
|
|
551
553
|
}) : /* @__PURE__ */ C("span", {
|
|
552
|
-
className: "text-xs text-
|
|
554
|
+
className: "text-xs text-text-secondary",
|
|
553
555
|
children: "Not available"
|
|
554
556
|
})]
|
|
555
557
|
}, e.dayOfWeek))
|
|
@@ -561,7 +563,7 @@ var A = () => {
|
|
|
561
563
|
onClick: () => {
|
|
562
564
|
alert("Availability updated successfully");
|
|
563
565
|
},
|
|
564
|
-
className: "inline-flex items-center gap-2 rounded-md bg-blue-
|
|
566
|
+
className: "inline-flex items-center gap-2 rounded-md bg-accent-blue-subtle/10 px-4 py-2 text-sm font-medium text-accent-blue hover:bg-accent-blue-subtle/20 transition-colors",
|
|
565
567
|
children: [/* @__PURE__ */ C(v, { className: "h-4 w-4" }), "Save Availability"]
|
|
566
568
|
})
|
|
567
569
|
})
|