@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
|
@@ -137,44 +137,44 @@ var y = [
|
|
|
137
137
|
], b = {
|
|
138
138
|
active: {
|
|
139
139
|
label: "Active",
|
|
140
|
-
color: "text-
|
|
141
|
-
dot: "bg-
|
|
140
|
+
color: "text-status-success-text",
|
|
141
|
+
dot: "bg-status-success-bg-subtle"
|
|
142
142
|
},
|
|
143
143
|
inactive: {
|
|
144
144
|
label: "Inactive",
|
|
145
|
-
color: "text-
|
|
145
|
+
color: "text-text-secondary",
|
|
146
146
|
dot: "bg-muted-foreground"
|
|
147
147
|
},
|
|
148
148
|
"on-leave": {
|
|
149
149
|
label: "On Leave",
|
|
150
|
-
color: "text-
|
|
151
|
-
dot: "bg-
|
|
150
|
+
color: "text-status-warning-text",
|
|
151
|
+
dot: "bg-status-warning-bg-subtle"
|
|
152
152
|
},
|
|
153
153
|
terminated: {
|
|
154
154
|
label: "Terminated",
|
|
155
|
-
color: "text-
|
|
156
|
-
dot: "bg-
|
|
155
|
+
color: "text-status-error-text",
|
|
156
|
+
dot: "bg-status-error-bg-subtle"
|
|
157
157
|
}
|
|
158
158
|
}, x = {
|
|
159
159
|
manager: {
|
|
160
160
|
label: "Manager",
|
|
161
|
-
color: "bg-purple-
|
|
161
|
+
color: "bg-accent-purple-subtle/20 text-accent-purple"
|
|
162
162
|
},
|
|
163
163
|
chef: {
|
|
164
164
|
label: "Chef",
|
|
165
|
-
color: "bg-orange-
|
|
165
|
+
color: "bg-accent-orange-subtle/20 text-accent-orange"
|
|
166
166
|
},
|
|
167
167
|
server: {
|
|
168
168
|
label: "Server",
|
|
169
|
-
color: "bg-blue-
|
|
169
|
+
color: "bg-accent-blue-subtle/20 text-accent-blue"
|
|
170
170
|
},
|
|
171
171
|
delivery: {
|
|
172
172
|
label: "Delivery",
|
|
173
|
-
color: "bg-
|
|
173
|
+
color: "bg-status-success-bg-subtle/20 text-status-success-text"
|
|
174
174
|
},
|
|
175
175
|
cashier: {
|
|
176
176
|
label: "Cashier",
|
|
177
|
-
color: "bg-cyan-
|
|
177
|
+
color: "bg-accent-cyan-subtle/20 text-accent-cyan"
|
|
178
178
|
}
|
|
179
179
|
}, S = {
|
|
180
180
|
email: "",
|
|
@@ -284,7 +284,7 @@ var y = [
|
|
|
284
284
|
onClick: () => {
|
|
285
285
|
V(S), F(!0);
|
|
286
286
|
},
|
|
287
|
-
className: "inline-flex items-center gap-2 rounded-md bg-accent px-4 py-2 text-sm font-medium text-
|
|
287
|
+
className: "inline-flex items-center gap-2 rounded-md bg-accent px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent/80 transition-colors",
|
|
288
288
|
children: [/* @__PURE__ */ _(m, { className: "h-4 w-4" }), "Invite Staff"]
|
|
289
289
|
}),
|
|
290
290
|
children: [
|
|
@@ -292,9 +292,9 @@ var y = [
|
|
|
292
292
|
className: "space-y-4",
|
|
293
293
|
children: [
|
|
294
294
|
W && /* @__PURE__ */ v("div", {
|
|
295
|
-
className: t("flex items-center gap-2 rounded-lg border p-3", W.type === "success" ? "border-
|
|
296
|
-
children: [W.type === "success" ? /* @__PURE__ */ _(o, { className: "h-4 w-4 text-
|
|
297
|
-
className: t("text-sm font-medium", W.type === "success" ? "text-
|
|
295
|
+
className: t("flex items-center gap-2 rounded-lg border p-3", W.type === "success" ? "border-status-success-border/30 bg-status-success-bg-subtle/10" : "border-status-error-border/30 bg-status-error-bg-subtle/10"),
|
|
296
|
+
children: [W.type === "success" ? /* @__PURE__ */ _(o, { className: "h-4 w-4 text-status-success-text" }) : /* @__PURE__ */ _(a, { className: "h-4 w-4 text-status-error-text" }), /* @__PURE__ */ _("span", {
|
|
297
|
+
className: t("text-sm font-medium", W.type === "success" ? "text-status-success-text" : "text-status-error-text"),
|
|
298
298
|
children: W.text
|
|
299
299
|
})]
|
|
300
300
|
}),
|
|
@@ -302,66 +302,66 @@ var y = [
|
|
|
302
302
|
className: "grid grid-cols-2 sm:grid-cols-4 gap-3",
|
|
303
303
|
children: [
|
|
304
304
|
/* @__PURE__ */ v("div", {
|
|
305
|
-
className: "rounded-lg border border-border bg-
|
|
305
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
|
|
306
306
|
children: [/* @__PURE__ */ _("p", {
|
|
307
|
-
className: "text-2xl font-bold text-
|
|
307
|
+
className: "text-2xl font-bold text-text-primary",
|
|
308
308
|
children: w.length
|
|
309
309
|
}), /* @__PURE__ */ _("p", {
|
|
310
|
-
className: "text-xs text-
|
|
310
|
+
className: "text-xs text-text-secondary",
|
|
311
311
|
children: "Total Staff"
|
|
312
312
|
})]
|
|
313
313
|
}),
|
|
314
314
|
/* @__PURE__ */ v("div", {
|
|
315
|
-
className: "rounded-lg border border-border bg-
|
|
315
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
|
|
316
316
|
children: [/* @__PURE__ */ _("p", {
|
|
317
|
-
className: "text-2xl font-bold text-
|
|
317
|
+
className: "text-2xl font-bold text-status-success-text",
|
|
318
318
|
children: q
|
|
319
319
|
}), /* @__PURE__ */ _("p", {
|
|
320
|
-
className: "text-xs text-
|
|
320
|
+
className: "text-xs text-text-secondary",
|
|
321
321
|
children: "Active Now"
|
|
322
322
|
})]
|
|
323
323
|
}),
|
|
324
324
|
/* @__PURE__ */ v("div", {
|
|
325
|
-
className: "rounded-lg border border-border bg-
|
|
325
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
|
|
326
326
|
children: [/* @__PURE__ */ _("p", {
|
|
327
|
-
className: "text-2xl font-bold text-
|
|
327
|
+
className: "text-2xl font-bold text-status-warning-text",
|
|
328
328
|
children: J
|
|
329
329
|
}), /* @__PURE__ */ _("p", {
|
|
330
|
-
className: "text-xs text-
|
|
330
|
+
className: "text-xs text-text-secondary",
|
|
331
331
|
children: "On Leave"
|
|
332
332
|
})]
|
|
333
333
|
}),
|
|
334
334
|
/* @__PURE__ */ v("div", {
|
|
335
|
-
className: "rounded-lg border border-border bg-
|
|
335
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
|
|
336
336
|
children: [/* @__PURE__ */ _("p", {
|
|
337
|
-
className: "text-2xl font-bold text-
|
|
337
|
+
className: "text-2xl font-bold text-text-primary",
|
|
338
338
|
children: Y
|
|
339
339
|
}), /* @__PURE__ */ _("p", {
|
|
340
|
-
className: "text-xs text-
|
|
340
|
+
className: "text-xs text-text-secondary",
|
|
341
341
|
children: "Avg. Rating"
|
|
342
342
|
})]
|
|
343
343
|
})
|
|
344
344
|
]
|
|
345
345
|
}),
|
|
346
346
|
/* @__PURE__ */ _("div", {
|
|
347
|
-
className: "rounded-lg border border-border bg-
|
|
347
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
|
|
348
348
|
children: /* @__PURE__ */ v("div", {
|
|
349
349
|
className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3",
|
|
350
350
|
children: [
|
|
351
351
|
/* @__PURE__ */ v("div", {
|
|
352
352
|
className: "relative",
|
|
353
|
-
children: [/* @__PURE__ */ _(d, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-
|
|
353
|
+
children: [/* @__PURE__ */ _(d, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ _("input", {
|
|
354
354
|
type: "text",
|
|
355
355
|
placeholder: "Search staff...",
|
|
356
356
|
value: E,
|
|
357
357
|
onChange: (e) => D(e.target.value),
|
|
358
|
-
className: "w-full rounded-md border border-border bg-
|
|
358
|
+
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)]"
|
|
359
359
|
})]
|
|
360
360
|
}),
|
|
361
361
|
/* @__PURE__ */ v("select", {
|
|
362
362
|
value: O,
|
|
363
363
|
onChange: (e) => k(e.target.value),
|
|
364
|
-
className: "rounded-md border border-border bg-
|
|
364
|
+
className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary",
|
|
365
365
|
children: [/* @__PURE__ */ _("option", {
|
|
366
366
|
value: "",
|
|
367
367
|
children: "All Roles"
|
|
@@ -373,7 +373,7 @@ var y = [
|
|
|
373
373
|
/* @__PURE__ */ v("select", {
|
|
374
374
|
value: A,
|
|
375
375
|
onChange: (e) => j(e.target.value),
|
|
376
|
-
className: "rounded-md border border-border bg-
|
|
376
|
+
className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary",
|
|
377
377
|
children: [/* @__PURE__ */ _("option", {
|
|
378
378
|
value: "",
|
|
379
379
|
children: "All Status"
|
|
@@ -385,7 +385,7 @@ var y = [
|
|
|
385
385
|
/* @__PURE__ */ v("select", {
|
|
386
386
|
value: M,
|
|
387
387
|
onChange: (e) => N(e.target.value),
|
|
388
|
-
className: "rounded-md border border-border bg-
|
|
388
|
+
className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary",
|
|
389
389
|
children: [
|
|
390
390
|
/* @__PURE__ */ _("option", {
|
|
391
391
|
value: "name",
|
|
@@ -409,24 +409,24 @@ var y = [
|
|
|
409
409
|
})
|
|
410
410
|
}),
|
|
411
411
|
X.length === 0 ? /* @__PURE__ */ v("div", {
|
|
412
|
-
className: "flex flex-col items-center justify-center py-16 rounded-lg border border-border bg-
|
|
412
|
+
className: "flex flex-col items-center justify-center py-16 rounded-lg border border-border-subtle bg-bg-surface shadow-sm text-center",
|
|
413
413
|
children: [
|
|
414
|
-
/* @__PURE__ */ _(h, { className: "h-12 w-12 text-
|
|
414
|
+
/* @__PURE__ */ _(h, { className: "h-12 w-12 text-text-secondary opacity-40 mb-3" }),
|
|
415
415
|
/* @__PURE__ */ _("p", {
|
|
416
|
-
className: "text-sm font-medium text-
|
|
416
|
+
className: "text-sm font-medium text-text-primary",
|
|
417
417
|
children: "No staff members found"
|
|
418
418
|
}),
|
|
419
419
|
/* @__PURE__ */ _("p", {
|
|
420
|
-
className: "text-xs text-
|
|
420
|
+
className: "text-xs text-text-secondary mt-1",
|
|
421
421
|
children: "Try adjusting your filters"
|
|
422
422
|
})
|
|
423
423
|
]
|
|
424
424
|
}) : /* @__PURE__ */ _("div", {
|
|
425
|
-
className: "rounded-lg border border-border bg-
|
|
425
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface shadow-sm divide-y divide-border",
|
|
426
426
|
children: X.map((e) => {
|
|
427
427
|
let n = b[e.status], r = x[e.role];
|
|
428
428
|
return /* @__PURE__ */ v("div", {
|
|
429
|
-
className: "p-4 sm:p-5 hover:bg-
|
|
429
|
+
className: "p-4 sm:p-5 hover:bg-bg-sunken/30 transition-colors",
|
|
430
430
|
children: [/* @__PURE__ */ v("div", {
|
|
431
431
|
className: "flex flex-col sm:flex-row sm:items-center gap-4",
|
|
432
432
|
children: [/* @__PURE__ */ v("div", {
|
|
@@ -434,7 +434,7 @@ var y = [
|
|
|
434
434
|
children: [/* @__PURE__ */ v("div", {
|
|
435
435
|
className: "relative shrink-0",
|
|
436
436
|
children: [/* @__PURE__ */ _("div", {
|
|
437
|
-
className: "flex h-12 w-12 items-center justify-center rounded-full bg-
|
|
437
|
+
className: "flex h-12 w-12 items-center justify-center rounded-full bg-bg-sunken text-sm font-semibold text-text-primary",
|
|
438
438
|
children: `${e.firstName[0]}${e.lastName[0]}`
|
|
439
439
|
}), /* @__PURE__ */ _("span", { className: t("absolute -bottom-0.5 -right-0.5 h-3.5 w-3.5 rounded-full border-2 border-card", n.dot) })]
|
|
440
440
|
}), /* @__PURE__ */ v("div", {
|
|
@@ -443,7 +443,7 @@ var y = [
|
|
|
443
443
|
className: "flex items-center gap-2 flex-wrap",
|
|
444
444
|
children: [
|
|
445
445
|
/* @__PURE__ */ v("p", {
|
|
446
|
-
className: "text-sm font-medium text-
|
|
446
|
+
className: "text-sm font-medium text-text-primary",
|
|
447
447
|
children: [
|
|
448
448
|
e.firstName,
|
|
449
449
|
" ",
|
|
@@ -460,7 +460,7 @@ var y = [
|
|
|
460
460
|
})
|
|
461
461
|
]
|
|
462
462
|
}), /* @__PURE__ */ v("div", {
|
|
463
|
-
className: "flex items-center gap-3 mt-1 text-xs text-
|
|
463
|
+
className: "flex items-center gap-3 mt-1 text-xs text-text-secondary flex-wrap",
|
|
464
464
|
children: [/* @__PURE__ */ v("span", {
|
|
465
465
|
className: "flex items-center gap-1",
|
|
466
466
|
children: [/* @__PURE__ */ _(l, { className: "h-3 w-3" }), e.email]
|
|
@@ -478,40 +478,40 @@ var y = [
|
|
|
478
478
|
/* @__PURE__ */ v("div", {
|
|
479
479
|
className: "text-center",
|
|
480
480
|
children: [/* @__PURE__ */ v("p", {
|
|
481
|
-
className: "font-bold text-
|
|
482
|
-
children: [/* @__PURE__ */ _(f, { className: "h-3 w-3 fill-
|
|
481
|
+
className: "font-bold text-text-primary flex items-center gap-0.5 justify-center",
|
|
482
|
+
children: [/* @__PURE__ */ _(f, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), e.performance.rating]
|
|
483
483
|
}), /* @__PURE__ */ _("p", {
|
|
484
|
-
className: "text-
|
|
484
|
+
className: "text-text-secondary",
|
|
485
485
|
children: "Rating"
|
|
486
486
|
})]
|
|
487
487
|
}),
|
|
488
488
|
/* @__PURE__ */ v("div", {
|
|
489
489
|
className: "text-center",
|
|
490
490
|
children: [/* @__PURE__ */ _("p", {
|
|
491
|
-
className: "font-bold text-
|
|
491
|
+
className: "font-bold text-text-primary",
|
|
492
492
|
children: e.performance.tasksCompleted
|
|
493
493
|
}), /* @__PURE__ */ _("p", {
|
|
494
|
-
className: "text-
|
|
494
|
+
className: "text-text-secondary",
|
|
495
495
|
children: "Tasks"
|
|
496
496
|
})]
|
|
497
497
|
}),
|
|
498
498
|
/* @__PURE__ */ v("div", {
|
|
499
499
|
className: "text-center",
|
|
500
500
|
children: [/* @__PURE__ */ v("p", {
|
|
501
|
-
className: "font-bold text-
|
|
501
|
+
className: "font-bold text-text-primary",
|
|
502
502
|
children: [e.performance.punctuality, "%"]
|
|
503
503
|
}), /* @__PURE__ */ _("p", {
|
|
504
|
-
className: "text-
|
|
504
|
+
className: "text-text-secondary",
|
|
505
505
|
children: "On Time"
|
|
506
506
|
})]
|
|
507
507
|
}),
|
|
508
508
|
e.currentShift && /* @__PURE__ */ v("div", {
|
|
509
509
|
className: "text-center",
|
|
510
510
|
children: [/* @__PURE__ */ v("p", {
|
|
511
|
-
className: "font-bold text-
|
|
512
|
-
children: [/* @__PURE__ */ _(s, { className: "h-3 w-3 text-
|
|
511
|
+
className: "font-bold text-text-primary flex items-center gap-0.5 justify-center",
|
|
512
|
+
children: [/* @__PURE__ */ _(s, { className: "h-3 w-3 text-text-secondary" }), e.currentShift]
|
|
513
513
|
}), /* @__PURE__ */ _("p", {
|
|
514
|
-
className: "text-
|
|
514
|
+
className: "text-text-secondary",
|
|
515
515
|
children: "Shift"
|
|
516
516
|
})]
|
|
517
517
|
})
|
|
@@ -522,21 +522,21 @@ var y = [
|
|
|
522
522
|
/* @__PURE__ */ _("button", {
|
|
523
523
|
type: "button",
|
|
524
524
|
onClick: () => ee(e.id),
|
|
525
|
-
className: t("h-6 w-11 rounded-full transition-colors relative", e.status === "active" ? "bg-
|
|
525
|
+
className: t("h-6 w-11 rounded-full transition-colors relative", e.status === "active" ? "bg-status-success-bg-subtle" : "bg-muted-foreground/30"),
|
|
526
526
|
title: e.status === "active" ? "Deactivate" : "Activate",
|
|
527
527
|
children: /* @__PURE__ */ _("div", { className: t("absolute top-0.5 h-5 w-5 rounded-full bg-white transition-transform", e.status === "active" ? "translate-x-5" : "translate-x-0.5") })
|
|
528
528
|
}),
|
|
529
529
|
/* @__PURE__ */ _("button", {
|
|
530
530
|
type: "button",
|
|
531
531
|
onClick: () => Q(e),
|
|
532
|
-
className: "rounded p-1.5 text-
|
|
532
|
+
className: "rounded p-1.5 text-text-secondary hover:bg-bg-sunken hover:text-text-primary transition-colors",
|
|
533
533
|
title: "Edit",
|
|
534
534
|
children: /* @__PURE__ */ _(c, { className: "h-4 w-4" })
|
|
535
535
|
}),
|
|
536
536
|
/* @__PURE__ */ _("button", {
|
|
537
537
|
type: "button",
|
|
538
538
|
onClick: () => te(e.id),
|
|
539
|
-
className: "rounded p-1.5 text-
|
|
539
|
+
className: "rounded p-1.5 text-text-secondary hover:bg-status-error-bg-subtle/10 hover:text-status-error-text transition-colors",
|
|
540
540
|
title: "Remove",
|
|
541
541
|
children: /* @__PURE__ */ _(p, { className: "h-4 w-4" })
|
|
542
542
|
})
|
|
@@ -544,11 +544,11 @@ var y = [
|
|
|
544
544
|
})]
|
|
545
545
|
})]
|
|
546
546
|
}), /* @__PURE__ */ v("div", {
|
|
547
|
-
className: "md:hidden flex items-center gap-4 mt-3 text-xs text-
|
|
547
|
+
className: "md:hidden flex items-center gap-4 mt-3 text-xs text-text-secondary",
|
|
548
548
|
children: [
|
|
549
549
|
/* @__PURE__ */ v("span", {
|
|
550
550
|
className: "flex items-center gap-0.5",
|
|
551
|
-
children: [/* @__PURE__ */ _(f, { className: "h-3 w-3 fill-
|
|
551
|
+
children: [/* @__PURE__ */ _(f, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), e.performance.rating]
|
|
552
552
|
}),
|
|
553
553
|
/* @__PURE__ */ v("span", { children: [e.performance.tasksCompleted, " tasks"] }),
|
|
554
554
|
/* @__PURE__ */ v("span", { children: [e.performance.punctuality, "% on time"] }),
|
|
@@ -567,19 +567,19 @@ var y = [
|
|
|
567
567
|
P && /* @__PURE__ */ _("div", {
|
|
568
568
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
|
|
569
569
|
children: /* @__PURE__ */ _("div", {
|
|
570
|
-
className: "w-full max-w-lg rounded-lg border border-border bg-
|
|
570
|
+
className: "w-full max-w-lg rounded-lg border border-border-subtle bg-bg-surface shadow-xl",
|
|
571
571
|
children: /* @__PURE__ */ v("div", {
|
|
572
572
|
className: "p-6",
|
|
573
573
|
children: [
|
|
574
574
|
/* @__PURE__ */ v("div", {
|
|
575
575
|
className: "flex items-center justify-between mb-4",
|
|
576
576
|
children: [/* @__PURE__ */ _("h3", {
|
|
577
|
-
className: "text-lg font-semibold text-
|
|
577
|
+
className: "text-lg font-semibold text-text-primary",
|
|
578
578
|
children: "Invite Staff Member"
|
|
579
579
|
}), /* @__PURE__ */ _("button", {
|
|
580
580
|
type: "button",
|
|
581
581
|
onClick: () => F(!1),
|
|
582
|
-
className: "rounded p-1.5 text-
|
|
582
|
+
className: "rounded p-1.5 text-text-secondary hover:text-text-primary hover:bg-bg-sunken",
|
|
583
583
|
children: /* @__PURE__ */ _(g, { className: "h-5 w-5" })
|
|
584
584
|
})]
|
|
585
585
|
}),
|
|
@@ -589,7 +589,7 @@ var y = [
|
|
|
589
589
|
/* @__PURE__ */ v("div", {
|
|
590
590
|
className: "grid grid-cols-2 gap-4",
|
|
591
591
|
children: [/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
592
|
-
className: "block text-sm font-medium text-
|
|
592
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
593
593
|
children: "First Name *"
|
|
594
594
|
}), /* @__PURE__ */ _("input", {
|
|
595
595
|
type: "text",
|
|
@@ -598,9 +598,9 @@ var y = [
|
|
|
598
598
|
...t,
|
|
599
599
|
firstName: e.target.value
|
|
600
600
|
})),
|
|
601
|
-
className: "w-full rounded-md border border-border bg-
|
|
601
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
602
602
|
})] }), /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
603
|
-
className: "block text-sm font-medium text-
|
|
603
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
604
604
|
children: "Last Name *"
|
|
605
605
|
}), /* @__PURE__ */ _("input", {
|
|
606
606
|
type: "text",
|
|
@@ -609,11 +609,11 @@ var y = [
|
|
|
609
609
|
...t,
|
|
610
610
|
lastName: e.target.value
|
|
611
611
|
})),
|
|
612
|
-
className: "w-full rounded-md border border-border bg-
|
|
612
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
613
613
|
})] })]
|
|
614
614
|
}),
|
|
615
615
|
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
616
|
-
className: "block text-sm font-medium text-
|
|
616
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
617
617
|
children: "Email *"
|
|
618
618
|
}), /* @__PURE__ */ _("input", {
|
|
619
619
|
type: "email",
|
|
@@ -622,10 +622,10 @@ var y = [
|
|
|
622
622
|
...t,
|
|
623
623
|
email: e.target.value
|
|
624
624
|
})),
|
|
625
|
-
className: "w-full rounded-md border border-border bg-
|
|
625
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
626
626
|
})] }),
|
|
627
627
|
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
628
|
-
className: "block text-sm font-medium text-
|
|
628
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
629
629
|
children: "Phone"
|
|
630
630
|
}), /* @__PURE__ */ _("input", {
|
|
631
631
|
type: "tel",
|
|
@@ -634,12 +634,12 @@ var y = [
|
|
|
634
634
|
...t,
|
|
635
635
|
phone: e.target.value
|
|
636
636
|
})),
|
|
637
|
-
className: "w-full rounded-md border border-border bg-
|
|
637
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
638
638
|
})] }),
|
|
639
639
|
/* @__PURE__ */ v("div", {
|
|
640
640
|
className: "grid grid-cols-2 gap-4",
|
|
641
641
|
children: [/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
642
|
-
className: "block text-sm font-medium text-
|
|
642
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
643
643
|
children: "Role"
|
|
644
644
|
}), /* @__PURE__ */ _("select", {
|
|
645
645
|
value: B.role,
|
|
@@ -647,13 +647,13 @@ var y = [
|
|
|
647
647
|
...t,
|
|
648
648
|
role: e.target.value
|
|
649
649
|
})),
|
|
650
|
-
className: "w-full rounded-md border border-border bg-
|
|
650
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary",
|
|
651
651
|
children: Object.entries(x).map(([e, t]) => /* @__PURE__ */ _("option", {
|
|
652
652
|
value: e,
|
|
653
653
|
children: t.label
|
|
654
654
|
}, e))
|
|
655
655
|
})] }), /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
656
|
-
className: "block text-sm font-medium text-
|
|
656
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
657
657
|
children: "Hourly Rate (₹)"
|
|
658
658
|
}), /* @__PURE__ */ _("input", {
|
|
659
659
|
type: "number",
|
|
@@ -662,7 +662,7 @@ var y = [
|
|
|
662
662
|
...t,
|
|
663
663
|
hourlyRate: parseInt(e.target.value) || 0
|
|
664
664
|
})),
|
|
665
|
-
className: "w-full rounded-md border border-border bg-
|
|
665
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
666
666
|
})] })]
|
|
667
667
|
})
|
|
668
668
|
]
|
|
@@ -672,12 +672,12 @@ var y = [
|
|
|
672
672
|
children: [/* @__PURE__ */ _("button", {
|
|
673
673
|
type: "button",
|
|
674
674
|
onClick: () => F(!1),
|
|
675
|
-
className: "flex-1 rounded-md border border-border px-4 py-2 text-sm font-medium text-
|
|
675
|
+
className: "flex-1 rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
676
676
|
children: "Cancel"
|
|
677
677
|
}), /* @__PURE__ */ _("button", {
|
|
678
678
|
type: "button",
|
|
679
679
|
onClick: Z,
|
|
680
|
-
className: "flex-1 rounded-md bg-accent px-4 py-2 text-sm font-medium text-
|
|
680
|
+
className: "flex-1 rounded-md bg-accent px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent/80",
|
|
681
681
|
children: "Send Invite"
|
|
682
682
|
})]
|
|
683
683
|
})
|
|
@@ -688,19 +688,19 @@ var y = [
|
|
|
688
688
|
I && R && /* @__PURE__ */ _("div", {
|
|
689
689
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
|
|
690
690
|
children: /* @__PURE__ */ _("div", {
|
|
691
|
-
className: "w-full max-w-lg rounded-lg border border-border bg-
|
|
691
|
+
className: "w-full max-w-lg rounded-lg border border-border-subtle bg-bg-surface shadow-xl",
|
|
692
692
|
children: /* @__PURE__ */ v("div", {
|
|
693
693
|
className: "p-6",
|
|
694
694
|
children: [
|
|
695
695
|
/* @__PURE__ */ v("div", {
|
|
696
696
|
className: "flex items-center justify-between mb-4",
|
|
697
697
|
children: [/* @__PURE__ */ _("h3", {
|
|
698
|
-
className: "text-lg font-semibold text-
|
|
698
|
+
className: "text-lg font-semibold text-text-primary",
|
|
699
699
|
children: "Edit Staff Member"
|
|
700
700
|
}), /* @__PURE__ */ _("button", {
|
|
701
701
|
type: "button",
|
|
702
702
|
onClick: () => L(!1),
|
|
703
|
-
className: "rounded p-1.5 text-
|
|
703
|
+
className: "rounded p-1.5 text-text-secondary hover:text-text-primary hover:bg-bg-sunken",
|
|
704
704
|
children: /* @__PURE__ */ _(g, { className: "h-5 w-5" })
|
|
705
705
|
})]
|
|
706
706
|
}),
|
|
@@ -710,7 +710,7 @@ var y = [
|
|
|
710
710
|
/* @__PURE__ */ v("div", {
|
|
711
711
|
className: "grid grid-cols-2 gap-4",
|
|
712
712
|
children: [/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
713
|
-
className: "block text-sm font-medium text-
|
|
713
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
714
714
|
children: "First Name"
|
|
715
715
|
}), /* @__PURE__ */ _("input", {
|
|
716
716
|
type: "text",
|
|
@@ -719,9 +719,9 @@ var y = [
|
|
|
719
719
|
...t,
|
|
720
720
|
firstName: e.target.value
|
|
721
721
|
})),
|
|
722
|
-
className: "w-full rounded-md border border-border bg-
|
|
722
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
723
723
|
})] }), /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
724
|
-
className: "block text-sm font-medium text-
|
|
724
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
725
725
|
children: "Last Name"
|
|
726
726
|
}), /* @__PURE__ */ _("input", {
|
|
727
727
|
type: "text",
|
|
@@ -730,11 +730,11 @@ var y = [
|
|
|
730
730
|
...t,
|
|
731
731
|
lastName: e.target.value
|
|
732
732
|
})),
|
|
733
|
-
className: "w-full rounded-md border border-border bg-
|
|
733
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
734
734
|
})] })]
|
|
735
735
|
}),
|
|
736
736
|
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
737
|
-
className: "block text-sm font-medium text-
|
|
737
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
738
738
|
children: "Email"
|
|
739
739
|
}), /* @__PURE__ */ _("input", {
|
|
740
740
|
type: "email",
|
|
@@ -743,10 +743,10 @@ var y = [
|
|
|
743
743
|
...t,
|
|
744
744
|
email: e.target.value
|
|
745
745
|
})),
|
|
746
|
-
className: "w-full rounded-md border border-border bg-
|
|
746
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
747
747
|
})] }),
|
|
748
748
|
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
749
|
-
className: "block text-sm font-medium text-
|
|
749
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
750
750
|
children: "Phone"
|
|
751
751
|
}), /* @__PURE__ */ _("input", {
|
|
752
752
|
type: "tel",
|
|
@@ -755,13 +755,13 @@ var y = [
|
|
|
755
755
|
...t,
|
|
756
756
|
phone: e.target.value
|
|
757
757
|
})),
|
|
758
|
-
className: "w-full rounded-md border border-border bg-
|
|
758
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
759
759
|
})] }),
|
|
760
760
|
/* @__PURE__ */ v("div", {
|
|
761
761
|
className: "grid grid-cols-3 gap-4",
|
|
762
762
|
children: [
|
|
763
763
|
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
764
|
-
className: "block text-sm font-medium text-
|
|
764
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
765
765
|
children: "Role"
|
|
766
766
|
}), /* @__PURE__ */ _("select", {
|
|
767
767
|
value: H.role,
|
|
@@ -769,14 +769,14 @@ var y = [
|
|
|
769
769
|
...t,
|
|
770
770
|
role: e.target.value
|
|
771
771
|
})),
|
|
772
|
-
className: "w-full rounded-md border border-border bg-
|
|
772
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary",
|
|
773
773
|
children: Object.entries(x).map(([e, t]) => /* @__PURE__ */ _("option", {
|
|
774
774
|
value: e,
|
|
775
775
|
children: t.label
|
|
776
776
|
}, e))
|
|
777
777
|
})] }),
|
|
778
778
|
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
779
|
-
className: "block text-sm font-medium text-
|
|
779
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
780
780
|
children: "Rate (₹/hr)"
|
|
781
781
|
}), /* @__PURE__ */ _("input", {
|
|
782
782
|
type: "number",
|
|
@@ -785,10 +785,10 @@ var y = [
|
|
|
785
785
|
...t,
|
|
786
786
|
hourlyRate: parseInt(e.target.value) || 0
|
|
787
787
|
})),
|
|
788
|
-
className: "w-full rounded-md border border-border bg-
|
|
788
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
789
789
|
})] }),
|
|
790
790
|
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
791
|
-
className: "block text-sm font-medium text-
|
|
791
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
792
792
|
children: "Status"
|
|
793
793
|
}), /* @__PURE__ */ _("select", {
|
|
794
794
|
value: H.status,
|
|
@@ -796,7 +796,7 @@ var y = [
|
|
|
796
796
|
...t,
|
|
797
797
|
status: e.target.value
|
|
798
798
|
})),
|
|
799
|
-
className: "w-full rounded-md border border-border bg-
|
|
799
|
+
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary",
|
|
800
800
|
children: Object.entries(b).map(([e, t]) => /* @__PURE__ */ _("option", {
|
|
801
801
|
value: e,
|
|
802
802
|
children: t.label
|
|
@@ -811,12 +811,12 @@ var y = [
|
|
|
811
811
|
children: [/* @__PURE__ */ _("button", {
|
|
812
812
|
type: "button",
|
|
813
813
|
onClick: () => L(!1),
|
|
814
|
-
className: "flex-1 rounded-md border border-border px-4 py-2 text-sm font-medium text-
|
|
814
|
+
className: "flex-1 rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
815
815
|
children: "Cancel"
|
|
816
816
|
}), /* @__PURE__ */ _("button", {
|
|
817
817
|
type: "button",
|
|
818
818
|
onClick: $,
|
|
819
|
-
className: "flex-1 rounded-md bg-accent px-4 py-2 text-sm font-medium text-
|
|
819
|
+
className: "flex-1 rounded-md bg-accent px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent/80",
|
|
820
820
|
children: "Save Changes"
|
|
821
821
|
})]
|
|
822
822
|
})
|