@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
|
@@ -71,7 +71,7 @@ function D() {
|
|
|
71
71
|
children: /* @__PURE__ */ T("div", {
|
|
72
72
|
className: "flex h-[60vh] flex-col items-center justify-center gap-4",
|
|
73
73
|
children: [
|
|
74
|
-
/* @__PURE__ */ w(u, { className: "h-12 w-12 text-
|
|
74
|
+
/* @__PURE__ */ w(u, { className: "h-12 w-12 text-status-error-text" }),
|
|
75
75
|
/* @__PURE__ */ w("h2", {
|
|
76
76
|
className: "text-xl font-semibold",
|
|
77
77
|
children: "Error loading service providers"
|
|
@@ -79,7 +79,7 @@ function D() {
|
|
|
79
79
|
/* @__PURE__ */ w("button", {
|
|
80
80
|
type: "button",
|
|
81
81
|
onClick: () => window.location.reload(),
|
|
82
|
-
className: "rounded-lg bg-primary px-4 py-2 text-sm font-medium text-primary-
|
|
82
|
+
className: "rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text",
|
|
83
83
|
children: "Retry"
|
|
84
84
|
})
|
|
85
85
|
]
|
|
@@ -88,25 +88,25 @@ function D() {
|
|
|
88
88
|
title: "Discover Carts",
|
|
89
89
|
description: "Find services and shops near you",
|
|
90
90
|
actions: /* @__PURE__ */ T("span", {
|
|
91
|
-
className: "text-sm text-
|
|
91
|
+
className: "text-sm text-text-secondary",
|
|
92
92
|
children: [Y.length, " carts found"]
|
|
93
93
|
}),
|
|
94
94
|
children: [
|
|
95
95
|
/* @__PURE__ */ T("div", {
|
|
96
96
|
className: "relative",
|
|
97
97
|
children: [
|
|
98
|
-
/* @__PURE__ */ w(v, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-
|
|
98
|
+
/* @__PURE__ */ w(v, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }),
|
|
99
99
|
/* @__PURE__ */ w("input", {
|
|
100
100
|
type: "text",
|
|
101
101
|
placeholder: "Search carts, services, or items...",
|
|
102
102
|
value: O,
|
|
103
103
|
onChange: (e) => k(e.target.value),
|
|
104
|
-
className: t("w-full rounded-lg border border-border bg-
|
|
104
|
+
className: t("w-full rounded-lg border border-border-subtle bg-bg-surface py-2.5 pl-10 pr-10 text-sm text-text-primary", "placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]")
|
|
105
105
|
}),
|
|
106
106
|
O && /* @__PURE__ */ w("button", {
|
|
107
107
|
type: "button",
|
|
108
108
|
onClick: () => k(""),
|
|
109
|
-
className: "absolute right-3 top-1/2 -translate-y-1/2 text-
|
|
109
|
+
className: "absolute right-3 top-1/2 -translate-y-1/2 text-text-secondary hover:text-text-primary",
|
|
110
110
|
children: /* @__PURE__ */ w(S, { className: "h-4 w-4" })
|
|
111
111
|
})
|
|
112
112
|
]
|
|
@@ -116,7 +116,7 @@ function D() {
|
|
|
116
116
|
children: J.map((e) => /* @__PURE__ */ w("button", {
|
|
117
117
|
type: "button",
|
|
118
118
|
onClick: () => j(e),
|
|
119
|
-
className: t("rounded-full px-3 py-1.5 text-xs font-medium transition-colors", A === e ? "bg-foreground text-background" : "bg-
|
|
119
|
+
className: t("rounded-full px-3 py-1.5 text-xs font-medium transition-colors", A === e ? "bg-foreground text-background" : "bg-bg-sunken text-text-secondary hover:bg-accent hover:text-text-primary"),
|
|
120
120
|
children: e
|
|
121
121
|
}, e))
|
|
122
122
|
}),
|
|
@@ -126,7 +126,7 @@ function D() {
|
|
|
126
126
|
/* @__PURE__ */ T("select", {
|
|
127
127
|
value: M,
|
|
128
128
|
onChange: (e) => N(e.target.value),
|
|
129
|
-
className: "rounded-lg border border-border bg-
|
|
129
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-xs text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
130
130
|
children: [
|
|
131
131
|
/* @__PURE__ */ w("option", {
|
|
132
132
|
value: "",
|
|
@@ -149,7 +149,7 @@ function D() {
|
|
|
149
149
|
/* @__PURE__ */ T("select", {
|
|
150
150
|
value: P,
|
|
151
151
|
onChange: (e) => F(e.target.value),
|
|
152
|
-
className: "rounded-lg border border-border bg-
|
|
152
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-xs text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
153
153
|
children: [
|
|
154
154
|
/* @__PURE__ */ w("option", {
|
|
155
155
|
value: "",
|
|
@@ -172,7 +172,7 @@ function D() {
|
|
|
172
172
|
/* @__PURE__ */ T("select", {
|
|
173
173
|
value: I,
|
|
174
174
|
onChange: (e) => L(e.target.value),
|
|
175
|
-
className: "rounded-lg border border-border bg-
|
|
175
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-xs text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
176
176
|
children: [
|
|
177
177
|
/* @__PURE__ */ w("option", {
|
|
178
178
|
value: "rating",
|
|
@@ -195,7 +195,7 @@ function D() {
|
|
|
195
195
|
Q && /* @__PURE__ */ w("button", {
|
|
196
196
|
type: "button",
|
|
197
197
|
onClick: $,
|
|
198
|
-
className: "rounded-lg border border-border px-3 py-2 text-xs font-medium text-
|
|
198
|
+
className: "rounded-lg border border-border-subtle px-3 py-2 text-xs font-medium text-text-secondary hover:text-text-primary transition-colors",
|
|
199
199
|
children: "Clear All Filters"
|
|
200
200
|
})
|
|
201
201
|
]
|
|
@@ -205,9 +205,9 @@ function D() {
|
|
|
205
205
|
children: X.map((e) => {
|
|
206
206
|
let n = q.find((t) => t.cartId === e.id);
|
|
207
207
|
return /* @__PURE__ */ T("div", {
|
|
208
|
-
className: "rounded-lg border border-border bg-
|
|
208
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface shadow-sm overflow-hidden hover:shadow-md transition-shadow flex flex-col",
|
|
209
209
|
children: [/* @__PURE__ */ T("div", {
|
|
210
|
-
className: "relative h-40 bg-
|
|
210
|
+
className: "relative h-40 bg-bg-sunken",
|
|
211
211
|
children: [
|
|
212
212
|
/* @__PURE__ */ w("img", {
|
|
213
213
|
src: e.image,
|
|
@@ -217,10 +217,10 @@ function D() {
|
|
|
217
217
|
/* @__PURE__ */ T("div", {
|
|
218
218
|
className: "absolute top-2 left-2 flex gap-1.5",
|
|
219
219
|
children: [/* @__PURE__ */ w("span", {
|
|
220
|
-
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium backdrop-blur-sm", e.isOpen ? "bg-
|
|
220
|
+
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium backdrop-blur-sm", e.isOpen ? "bg-status-success-bg-subtle/20 text-status-success-text" : "bg-status-error-bg-subtle/20 text-status-error-text"),
|
|
221
221
|
children: e.isOpen ? "Open" : "Closed"
|
|
222
222
|
}), e.isVerified && /* @__PURE__ */ T("span", {
|
|
223
|
-
className: "inline-flex items-center gap-0.5 rounded-full bg-blue-
|
|
223
|
+
className: "inline-flex items-center gap-0.5 rounded-full bg-accent-blue-subtle/20 px-2 py-0.5 text-xs font-medium text-accent-blue backdrop-blur-sm",
|
|
224
224
|
children: [/* @__PURE__ */ w(f, { className: "h-3 w-3" }), "Verified"]
|
|
225
225
|
})]
|
|
226
226
|
}),
|
|
@@ -238,18 +238,18 @@ function D() {
|
|
|
238
238
|
/* @__PURE__ */ T("div", {
|
|
239
239
|
className: "flex items-start justify-between gap-2 mb-1",
|
|
240
240
|
children: [/* @__PURE__ */ w("h3", {
|
|
241
|
-
className: "text-sm font-semibold text-
|
|
241
|
+
className: "text-sm font-semibold text-text-primary truncate flex-1",
|
|
242
242
|
children: e.name
|
|
243
243
|
}), /* @__PURE__ */ T("div", {
|
|
244
244
|
className: "flex items-center gap-1 shrink-0",
|
|
245
245
|
children: [
|
|
246
|
-
/* @__PURE__ */ w(y, { className: "h-3.5 w-3.5 fill-
|
|
246
|
+
/* @__PURE__ */ w(y, { className: "h-3.5 w-3.5 fill-status-warning-text text-status-warning-text" }),
|
|
247
247
|
/* @__PURE__ */ w("span", {
|
|
248
|
-
className: "text-xs font-medium text-
|
|
248
|
+
className: "text-xs font-medium text-text-primary",
|
|
249
249
|
children: e.rating
|
|
250
250
|
}),
|
|
251
251
|
/* @__PURE__ */ T("span", {
|
|
252
|
-
className: "text-xs text-
|
|
252
|
+
className: "text-xs text-text-secondary",
|
|
253
253
|
children: [
|
|
254
254
|
"(",
|
|
255
255
|
e.totalRatings,
|
|
@@ -260,27 +260,27 @@ function D() {
|
|
|
260
260
|
})]
|
|
261
261
|
}),
|
|
262
262
|
/* @__PURE__ */ w("p", {
|
|
263
|
-
className: "text-xs text-
|
|
263
|
+
className: "text-xs text-text-secondary mb-2",
|
|
264
264
|
children: e.category
|
|
265
265
|
}),
|
|
266
266
|
/* @__PURE__ */ w("div", {
|
|
267
|
-
className: "flex items-center gap-3 text-xs text-
|
|
267
|
+
className: "flex items-center gap-3 text-xs text-text-secondary mb-2",
|
|
268
268
|
children: /* @__PURE__ */ T("span", {
|
|
269
269
|
className: "flex items-center gap-1",
|
|
270
270
|
children: [/* @__PURE__ */ w(_, { className: "h-3 w-3" }), e.location?.address?.split(",")[0] || "Unknown"]
|
|
271
271
|
})
|
|
272
272
|
}),
|
|
273
273
|
/* @__PURE__ */ T("div", {
|
|
274
|
-
className: "flex items-center gap-3 text-xs text-
|
|
274
|
+
className: "flex items-center gap-3 text-xs text-text-secondary mb-3",
|
|
275
275
|
children: [e.averageOrderValue && /* @__PURE__ */ T("span", { children: ["Avg ", o(e.averageOrderValue, { minimumFractionDigits: 0 })] }), /* @__PURE__ */ T("span", {
|
|
276
276
|
className: "flex items-center gap-1",
|
|
277
277
|
children: [/* @__PURE__ */ w(_, { className: "h-3 w-3" }), s(e.distance)]
|
|
278
278
|
})]
|
|
279
279
|
}),
|
|
280
280
|
e.serviceTypes?.includes("appointment") && /* @__PURE__ */ w("div", {
|
|
281
|
-
className: "mb-3 rounded-md bg-blue-
|
|
281
|
+
className: "mb-3 rounded-md bg-accent-blue-subtle/10 border border-accent-blue-subtle/20 p-2",
|
|
282
282
|
children: /* @__PURE__ */ T("div", {
|
|
283
|
-
className: "flex items-center gap-1 text-xs text-
|
|
283
|
+
className: "flex items-center gap-1 text-xs text-accent-blue",
|
|
284
284
|
children: [/* @__PURE__ */ w(d, { className: "h-3 w-3" }), /* @__PURE__ */ w("span", {
|
|
285
285
|
className: "font-medium",
|
|
286
286
|
children: "Appointment available"
|
|
@@ -288,9 +288,9 @@ function D() {
|
|
|
288
288
|
})
|
|
289
289
|
}),
|
|
290
290
|
e.serviceTypes?.includes("direct_service") && /* @__PURE__ */ w("div", {
|
|
291
|
-
className: "mb-3 rounded-md bg-purple-
|
|
291
|
+
className: "mb-3 rounded-md bg-accent-purple-subtle/10 border border-accent-purple-subtle/20 p-2",
|
|
292
292
|
children: /* @__PURE__ */ T("div", {
|
|
293
|
-
className: "flex items-center gap-1 text-xs text-
|
|
293
|
+
className: "flex items-center gap-1 text-xs text-accent-purple",
|
|
294
294
|
children: [/* @__PURE__ */ w(m, { className: "h-3 w-3" }), /* @__PURE__ */ w("span", {
|
|
295
295
|
className: "font-medium",
|
|
296
296
|
children: "Direct Service Available"
|
|
@@ -300,7 +300,7 @@ function D() {
|
|
|
300
300
|
e.serviceTypes && e.serviceTypes.length > 0 && /* @__PURE__ */ w("div", {
|
|
301
301
|
className: "flex flex-wrap gap-1 mb-3",
|
|
302
302
|
children: e.serviceTypes.slice(0, 3).map((e) => /* @__PURE__ */ w("span", {
|
|
303
|
-
className: "rounded-full bg-
|
|
303
|
+
className: "rounded-full bg-bg-sunken px-2 py-0.5 text-[10px] text-text-secondary",
|
|
304
304
|
children: e.replace(/_/g, " ")
|
|
305
305
|
}, e))
|
|
306
306
|
}),
|
|
@@ -311,20 +311,20 @@ function D() {
|
|
|
311
311
|
type: "button",
|
|
312
312
|
onClick: () => D(`/customer/cart/${e.id}`),
|
|
313
313
|
disabled: !e.isOpen,
|
|
314
|
-
className: t("flex-1 rounded-lg py-2 text-xs font-medium transition-opacity", e.isOpen ? "bg-foreground text-background hover:opacity-90" : "bg-
|
|
314
|
+
className: t("flex-1 rounded-lg py-2 text-xs font-medium transition-opacity", e.isOpen ? "bg-foreground text-background hover:opacity-90" : "bg-bg-sunken text-text-secondary cursor-not-allowed"),
|
|
315
315
|
children: e.isOpen ? "View Services" : "Closed"
|
|
316
316
|
}),
|
|
317
317
|
e.serviceTypes?.includes("direct_service") && /* @__PURE__ */ w("button", {
|
|
318
318
|
type: "button",
|
|
319
319
|
onClick: () => D(`/customer/cart/${e.id}`),
|
|
320
|
-
className: "rounded-lg border border-border px-2 py-2 text-xs text-
|
|
320
|
+
className: "rounded-lg border border-border-subtle px-2 py-2 text-xs text-text-primary hover:bg-accent transition-colors",
|
|
321
321
|
title: "Book Direct Service",
|
|
322
322
|
children: /* @__PURE__ */ w(m, { className: "h-3.5 w-3.5" })
|
|
323
323
|
}),
|
|
324
324
|
n && /* @__PURE__ */ w("button", {
|
|
325
325
|
type: "button",
|
|
326
326
|
onClick: () => alert("Investment opportunity available! View in Investor section."),
|
|
327
|
-
className: "rounded-lg border border-
|
|
327
|
+
className: "rounded-lg border border-status-success-border/30 bg-status-success-bg-subtle/10 px-2 py-2 text-xs text-status-success-text hover:bg-status-success-bg-subtle/20 transition-colors",
|
|
328
328
|
title: "Investment Opportunity",
|
|
329
329
|
children: /* @__PURE__ */ w(x, { className: "h-3.5 w-3.5" })
|
|
330
330
|
}),
|
|
@@ -333,7 +333,7 @@ function D() {
|
|
|
333
333
|
onClick: () => {
|
|
334
334
|
U(e), V(!0);
|
|
335
335
|
},
|
|
336
|
-
className: "rounded-lg border border-border px-2 py-2 text-xs text-
|
|
336
|
+
className: "rounded-lg border border-border-subtle px-2 py-2 text-xs text-text-primary hover:bg-accent transition-colors",
|
|
337
337
|
title: "Cart Info",
|
|
338
338
|
children: /* @__PURE__ */ w(h, { className: "h-3.5 w-3.5" })
|
|
339
339
|
})
|
|
@@ -348,15 +348,16 @@ function D() {
|
|
|
348
348
|
children: /* @__PURE__ */ w("button", {
|
|
349
349
|
type: "button",
|
|
350
350
|
onClick: () => z((e) => e + 9),
|
|
351
|
-
className: "rounded-lg border border-border px-6 py-2.5 text-sm font-medium text-
|
|
351
|
+
className: "rounded-lg border border-border-subtle px-6 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
352
352
|
children: "Load More Carts"
|
|
353
353
|
})
|
|
354
354
|
})] }) : /* @__PURE__ */ w("div", {
|
|
355
355
|
className: "mt-6",
|
|
356
356
|
children: /* @__PURE__ */ w(r, {
|
|
357
|
+
illustration: "empty-search",
|
|
357
358
|
icon: /* @__PURE__ */ w(v, { className: "h-12 w-12" }),
|
|
358
359
|
title: "No carts found",
|
|
359
|
-
description: O ? `No results for
|
|
360
|
+
description: O ? `No results for"${O}". Try a different search term.` : "No carts available with these filters.",
|
|
360
361
|
action: /* @__PURE__ */ w("button", {
|
|
361
362
|
type: "button",
|
|
362
363
|
onClick: $,
|
|
@@ -368,19 +369,19 @@ function D() {
|
|
|
368
369
|
B && H && /* @__PURE__ */ w("div", {
|
|
369
370
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
|
|
370
371
|
children: /* @__PURE__ */ w("div", {
|
|
371
|
-
className: "w-full max-w-2xl max-h-[90vh] overflow-y-auto rounded-lg border border-border bg-
|
|
372
|
+
className: "w-full max-w-2xl max-h-[90vh] overflow-y-auto rounded-lg border border-border-subtle bg-bg-surface",
|
|
372
373
|
children: /* @__PURE__ */ T("div", {
|
|
373
374
|
className: "p-5",
|
|
374
375
|
children: [
|
|
375
376
|
/* @__PURE__ */ T("div", {
|
|
376
377
|
className: "flex items-center justify-between mb-4",
|
|
377
378
|
children: [/* @__PURE__ */ w("h3", {
|
|
378
|
-
className: "text-lg font-semibold text-
|
|
379
|
+
className: "text-lg font-semibold text-text-primary",
|
|
379
380
|
children: "Cart Information"
|
|
380
381
|
}), /* @__PURE__ */ w("button", {
|
|
381
382
|
type: "button",
|
|
382
383
|
onClick: () => V(!1),
|
|
383
|
-
className: "rounded-md p-1 text-
|
|
384
|
+
className: "rounded-md p-1 text-text-secondary hover:text-text-primary transition-colors",
|
|
384
385
|
children: /* @__PURE__ */ w(S, { className: "h-5 w-5" })
|
|
385
386
|
})]
|
|
386
387
|
}),
|
|
@@ -393,7 +394,7 @@ function D() {
|
|
|
393
394
|
})
|
|
394
395
|
}),
|
|
395
396
|
/* @__PURE__ */ w("h4", {
|
|
396
|
-
className: "text-xl font-semibold text-
|
|
397
|
+
className: "text-xl font-semibold text-text-primary mb-1",
|
|
397
398
|
children: H.name
|
|
398
399
|
}),
|
|
399
400
|
/* @__PURE__ */ T("div", {
|
|
@@ -401,13 +402,13 @@ function D() {
|
|
|
401
402
|
children: [/* @__PURE__ */ T("div", {
|
|
402
403
|
className: "flex items-center gap-1",
|
|
403
404
|
children: [
|
|
404
|
-
/* @__PURE__ */ w(y, { className: "h-3.5 w-3.5 fill-
|
|
405
|
+
/* @__PURE__ */ w(y, { className: "h-3.5 w-3.5 fill-status-warning-text text-status-warning-text" }),
|
|
405
406
|
/* @__PURE__ */ w("span", {
|
|
406
407
|
className: "text-sm font-medium",
|
|
407
408
|
children: H.rating
|
|
408
409
|
}),
|
|
409
410
|
/* @__PURE__ */ T("span", {
|
|
410
|
-
className: "text-xs text-
|
|
411
|
+
className: "text-xs text-text-secondary",
|
|
411
412
|
children: [
|
|
412
413
|
"(",
|
|
413
414
|
H.totalRatings,
|
|
@@ -416,7 +417,7 @@ function D() {
|
|
|
416
417
|
})
|
|
417
418
|
]
|
|
418
419
|
}), /* @__PURE__ */ w("span", {
|
|
419
|
-
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium", H.isOpen ? "bg-
|
|
420
|
+
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium", H.isOpen ? "bg-status-success-bg-subtle/20 text-status-success-text" : "bg-status-error-bg-subtle/20 text-status-error-text"),
|
|
420
421
|
children: H.isOpen ? "Open" : "Closed"
|
|
421
422
|
})]
|
|
422
423
|
}),
|
|
@@ -424,62 +425,62 @@ function D() {
|
|
|
424
425
|
className: "grid grid-cols-1 gap-3 sm:grid-cols-2 mb-4",
|
|
425
426
|
children: [
|
|
426
427
|
/* @__PURE__ */ T("div", {
|
|
427
|
-
className: "rounded-md bg-
|
|
428
|
+
className: "rounded-md bg-bg-sunken p-3",
|
|
428
429
|
children: [/* @__PURE__ */ T("p", {
|
|
429
|
-
className: "text-xs font-medium text-
|
|
430
|
+
className: "text-xs font-medium text-text-secondary flex items-center gap-1",
|
|
430
431
|
children: [/* @__PURE__ */ w(_, { className: "h-3 w-3" }), " Location"]
|
|
431
432
|
}), /* @__PURE__ */ w("p", {
|
|
432
|
-
className: "mt-1 text-sm text-
|
|
433
|
+
className: "mt-1 text-sm text-text-primary",
|
|
433
434
|
children: H.location.address
|
|
434
435
|
})]
|
|
435
436
|
}),
|
|
436
437
|
/* @__PURE__ */ T("div", {
|
|
437
|
-
className: "rounded-md bg-
|
|
438
|
+
className: "rounded-md bg-bg-sunken p-3",
|
|
438
439
|
children: [/* @__PURE__ */ T("p", {
|
|
439
|
-
className: "text-xs font-medium text-
|
|
440
|
+
className: "text-xs font-medium text-text-secondary flex items-center gap-1",
|
|
440
441
|
children: [/* @__PURE__ */ w(b, { className: "h-3 w-3" }), " Category"]
|
|
441
442
|
}), /* @__PURE__ */ w("p", {
|
|
442
|
-
className: "mt-1 text-sm text-
|
|
443
|
+
className: "mt-1 text-sm text-text-primary",
|
|
443
444
|
children: H.category
|
|
444
445
|
})]
|
|
445
446
|
}),
|
|
446
447
|
H.averageOrderValue && /* @__PURE__ */ T("div", {
|
|
447
|
-
className: "rounded-md bg-
|
|
448
|
+
className: "rounded-md bg-bg-sunken p-3",
|
|
448
449
|
children: [/* @__PURE__ */ w("p", {
|
|
449
|
-
className: "text-xs font-medium text-
|
|
450
|
+
className: "text-xs font-medium text-text-secondary",
|
|
450
451
|
children: "Average Order"
|
|
451
452
|
}), /* @__PURE__ */ w("p", {
|
|
452
|
-
className: "mt-1 text-sm text-
|
|
453
|
+
className: "mt-1 text-sm text-text-primary",
|
|
453
454
|
children: o(H.averageOrderValue, { minimumFractionDigits: 0 })
|
|
454
455
|
})]
|
|
455
456
|
}),
|
|
456
457
|
/* @__PURE__ */ T("div", {
|
|
457
|
-
className: "rounded-md bg-
|
|
458
|
+
className: "rounded-md bg-bg-sunken p-3",
|
|
458
459
|
children: [/* @__PURE__ */ T("p", {
|
|
459
|
-
className: "text-xs font-medium text-
|
|
460
|
+
className: "text-xs font-medium text-text-secondary flex items-center gap-1",
|
|
460
461
|
children: [/* @__PURE__ */ w(p, { className: "h-3 w-3" }), " Estimated Time"]
|
|
461
462
|
}), /* @__PURE__ */ T("p", {
|
|
462
|
-
className: "mt-1 text-sm text-
|
|
463
|
+
className: "mt-1 text-sm text-text-primary",
|
|
463
464
|
children: [H.estimatedTime, " minutes"]
|
|
464
465
|
})]
|
|
465
466
|
}),
|
|
466
467
|
/* @__PURE__ */ T("div", {
|
|
467
|
-
className: "rounded-md bg-
|
|
468
|
+
className: "rounded-md bg-bg-sunken p-3",
|
|
468
469
|
children: [/* @__PURE__ */ w("p", {
|
|
469
|
-
className: "text-xs font-medium text-
|
|
470
|
+
className: "text-xs font-medium text-text-secondary",
|
|
470
471
|
children: "Distance"
|
|
471
472
|
}), /* @__PURE__ */ w("p", {
|
|
472
|
-
className: "mt-1 text-sm text-
|
|
473
|
+
className: "mt-1 text-sm text-text-primary",
|
|
473
474
|
children: s(H.distance)
|
|
474
475
|
})]
|
|
475
476
|
}),
|
|
476
477
|
H.isVerified && /* @__PURE__ */ T("div", {
|
|
477
|
-
className: "rounded-md bg-
|
|
478
|
+
className: "rounded-md bg-bg-sunken p-3",
|
|
478
479
|
children: [/* @__PURE__ */ T("p", {
|
|
479
|
-
className: "text-xs font-medium text-
|
|
480
|
+
className: "text-xs font-medium text-text-secondary flex items-center gap-1",
|
|
480
481
|
children: [/* @__PURE__ */ w(f, { className: "h-3 w-3" }), " Verification"]
|
|
481
482
|
}), /* @__PURE__ */ w("p", {
|
|
482
|
-
className: "mt-1 text-sm text-
|
|
483
|
+
className: "mt-1 text-sm text-text-primary",
|
|
483
484
|
children: "Verified cart"
|
|
484
485
|
})]
|
|
485
486
|
})
|
|
@@ -488,12 +489,12 @@ function D() {
|
|
|
488
489
|
H.serviceTypes && H.serviceTypes.length > 0 && /* @__PURE__ */ T("div", {
|
|
489
490
|
className: "mb-4",
|
|
490
491
|
children: [/* @__PURE__ */ w("p", {
|
|
491
|
-
className: "text-xs font-medium text-
|
|
492
|
+
className: "text-xs font-medium text-text-secondary mb-2",
|
|
492
493
|
children: "Service Types"
|
|
493
494
|
}), /* @__PURE__ */ w("div", {
|
|
494
495
|
className: "flex flex-wrap gap-2",
|
|
495
496
|
children: H.serviceTypes.map((e) => /* @__PURE__ */ w("span", {
|
|
496
|
-
className: "rounded-full bg-
|
|
497
|
+
className: "rounded-full bg-bg-sunken px-2.5 py-1 text-xs text-text-secondary capitalize",
|
|
497
498
|
children: e.replace(/_/g, " ")
|
|
498
499
|
}, e))
|
|
499
500
|
})]
|
|
@@ -501,17 +502,17 @@ function D() {
|
|
|
501
502
|
H.businessHours && Object.keys(H.businessHours).length > 0 && /* @__PURE__ */ T("div", {
|
|
502
503
|
className: "mb-4",
|
|
503
504
|
children: [/* @__PURE__ */ w("p", {
|
|
504
|
-
className: "text-xs font-medium text-
|
|
505
|
+
className: "text-xs font-medium text-text-secondary mb-2",
|
|
505
506
|
children: "Operating Hours"
|
|
506
507
|
}), /* @__PURE__ */ w("div", {
|
|
507
508
|
className: "space-y-1",
|
|
508
509
|
children: Object.entries(H.businessHours).map(([e, t]) => /* @__PURE__ */ T("div", {
|
|
509
510
|
className: "flex justify-between text-xs",
|
|
510
511
|
children: [/* @__PURE__ */ w("span", {
|
|
511
|
-
className: "capitalize text-
|
|
512
|
+
className: "capitalize text-text-primary",
|
|
512
513
|
children: e
|
|
513
514
|
}), /* @__PURE__ */ w("span", {
|
|
514
|
-
className: "text-
|
|
515
|
+
className: "text-text-secondary",
|
|
515
516
|
children: t.isOpen ? `${t.open} - ${t.close}` : "Closed"
|
|
516
517
|
})]
|
|
517
518
|
}, e))
|
|
@@ -525,12 +526,12 @@ function D() {
|
|
|
525
526
|
V(!1), D(`/customer/carts/${H.id}`);
|
|
526
527
|
},
|
|
527
528
|
disabled: !H.isOpen,
|
|
528
|
-
className: t("flex-1 rounded-lg py-2.5 text-sm font-medium transition-opacity", H.isOpen ? "bg-foreground text-background hover:opacity-90" : "bg-
|
|
529
|
+
className: t("flex-1 rounded-lg py-2.5 text-sm font-medium transition-opacity", H.isOpen ? "bg-foreground text-background hover:opacity-90" : "bg-bg-sunken text-text-secondary cursor-not-allowed"),
|
|
529
530
|
children: H.isOpen ? "View Menu" : "Currently Closed"
|
|
530
531
|
}), /* @__PURE__ */ w("button", {
|
|
531
532
|
type: "button",
|
|
532
533
|
onClick: () => V(!1),
|
|
533
|
-
className: "rounded-lg border border-border px-4 py-2.5 text-sm font-medium text-
|
|
534
|
+
className: "rounded-lg border border-border-subtle px-4 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
534
535
|
children: "Close"
|
|
535
536
|
})]
|
|
536
537
|
})
|