@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
|
@@ -135,7 +135,7 @@ function A() {
|
|
|
135
135
|
children: /* @__PURE__ */ E("div", {
|
|
136
136
|
className: "flex flex-col items-center justify-center py-16 text-center",
|
|
137
137
|
children: [/* @__PURE__ */ T("div", { className: "animate-spin rounded-full h-12 w-12 border-b-2 border-foreground mx-auto mb-4" }), /* @__PURE__ */ T("p", {
|
|
138
|
-
className: "text-sm text-
|
|
138
|
+
className: "text-sm text-text-secondary",
|
|
139
139
|
children: "Loading profile..."
|
|
140
140
|
})]
|
|
141
141
|
})
|
|
@@ -143,18 +143,18 @@ function A() {
|
|
|
143
143
|
title: "My Profile",
|
|
144
144
|
description: "Manage your personal information and preferences",
|
|
145
145
|
children: [/* @__PURE__ */ E("div", {
|
|
146
|
-
className: "flex flex-col items-center sm:flex-row sm:items-start gap-6 rounded-lg border border-border bg-
|
|
146
|
+
className: "flex flex-col items-center sm:flex-row sm:items-start gap-6 rounded-lg border border-border-seam bg-bg-surface p-6 bg-gloss-card shadow-pop",
|
|
147
147
|
children: [
|
|
148
148
|
/* @__PURE__ */ E("div", {
|
|
149
149
|
className: "relative",
|
|
150
150
|
children: [/* @__PURE__ */ T("div", {
|
|
151
|
-
className: "h-24 w-24 rounded-full bg-
|
|
151
|
+
className: "h-24 w-24 rounded-full bg-bg-sunken overflow-hidden",
|
|
152
152
|
children: R.profilePicture ? /* @__PURE__ */ T("img", {
|
|
153
153
|
src: R.profilePicture,
|
|
154
154
|
alt: `${R.firstName} ${R.lastName}`,
|
|
155
155
|
className: "h-full w-full object-cover"
|
|
156
156
|
}) : /* @__PURE__ */ T("div", {
|
|
157
|
-
className: "flex h-full w-full items-center justify-center text-
|
|
157
|
+
className: "flex h-full w-full items-center justify-center text-text-secondary",
|
|
158
158
|
children: /* @__PURE__ */ T(S, { className: "h-10 w-10" })
|
|
159
159
|
})
|
|
160
160
|
}), /* @__PURE__ */ T("button", {
|
|
@@ -167,7 +167,7 @@ function A() {
|
|
|
167
167
|
className: "flex-1 text-center sm:text-left",
|
|
168
168
|
children: [
|
|
169
169
|
/* @__PURE__ */ E("h2", {
|
|
170
|
-
className: "text-xl font-semibold text-
|
|
170
|
+
className: "text-xl font-semibold text-text-primary",
|
|
171
171
|
children: [
|
|
172
172
|
z.firstName,
|
|
173
173
|
" ",
|
|
@@ -175,20 +175,20 @@ function A() {
|
|
|
175
175
|
]
|
|
176
176
|
}),
|
|
177
177
|
/* @__PURE__ */ T("p", {
|
|
178
|
-
className: "mt-1 text-sm text-
|
|
178
|
+
className: "mt-1 text-sm text-text-secondary",
|
|
179
179
|
children: z.email
|
|
180
180
|
}),
|
|
181
181
|
/* @__PURE__ */ T("p", {
|
|
182
|
-
className: "mt-0.5 text-sm text-
|
|
182
|
+
className: "mt-0.5 text-sm text-text-secondary",
|
|
183
183
|
children: z.phone
|
|
184
184
|
}),
|
|
185
185
|
/* @__PURE__ */ E("div", {
|
|
186
186
|
className: "flex flex-wrap items-center justify-center sm:justify-start gap-2 mt-2",
|
|
187
187
|
children: [/* @__PURE__ */ E("span", {
|
|
188
|
-
className: t("inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium", R.isEmailVerified ? "bg-
|
|
188
|
+
className: t("inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium", R.isEmailVerified ? "bg-status-success-bg-subtle/20 text-status-success-text" : "bg-status-error-bg/20 text-status-error-text"),
|
|
189
189
|
children: [/* @__PURE__ */ T(f, { className: "h-3 w-3" }), R.isEmailVerified ? "Email Verified" : "Email Not Verified"]
|
|
190
190
|
}), /* @__PURE__ */ E("span", {
|
|
191
|
-
className: t("inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium", R.isPhoneVerified ? "bg-
|
|
191
|
+
className: t("inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium", R.isPhoneVerified ? "bg-status-success-bg-subtle/20 text-status-success-text" : "bg-status-error-bg/20 text-status-error-text"),
|
|
192
192
|
children: [/* @__PURE__ */ T(f, { className: "h-3 w-3" }), R.isPhoneVerified ? "Phone Verified" : "Phone Not Verified"]
|
|
193
193
|
})]
|
|
194
194
|
})
|
|
@@ -197,25 +197,25 @@ function A() {
|
|
|
197
197
|
/* @__PURE__ */ E("div", {
|
|
198
198
|
className: "text-center sm:text-right",
|
|
199
199
|
children: [/* @__PURE__ */ T("p", {
|
|
200
|
-
className: "text-2xl font-bold text-
|
|
200
|
+
className: "text-2xl font-bold text-text-primary",
|
|
201
201
|
children: U.loyaltyPoints
|
|
202
202
|
}), /* @__PURE__ */ T("p", {
|
|
203
|
-
className: "text-xs text-
|
|
203
|
+
className: "text-xs text-text-secondary",
|
|
204
204
|
children: "Loyalty Points"
|
|
205
205
|
})]
|
|
206
206
|
})
|
|
207
207
|
]
|
|
208
208
|
}), /* @__PURE__ */ E("div", {
|
|
209
|
-
className: "mt-6 rounded-lg border border-border bg-
|
|
209
|
+
className: "mt-6 rounded-lg border border-border-subtle bg-bg-surface",
|
|
210
210
|
children: [/* @__PURE__ */ T("div", {
|
|
211
|
-
className: "border-b border-border",
|
|
211
|
+
className: "border-b border-border-subtle",
|
|
212
212
|
children: /* @__PURE__ */ T("nav", {
|
|
213
213
|
className: "flex -mb-px overflow-x-auto",
|
|
214
214
|
children: $.map((e) => {
|
|
215
215
|
let n = e.icon;
|
|
216
216
|
return /* @__PURE__ */ E("button", {
|
|
217
217
|
type: "button",
|
|
218
|
-
className: t("flex items-center gap-2 py-3.5 px-5 text-sm font-medium whitespace-nowrap transition-colors", P === e.key ? "border-b-2 border-foreground text-
|
|
218
|
+
className: t("flex items-center gap-2 py-3.5 px-5 text-sm font-medium whitespace-nowrap transition-colors", P === e.key ? "border-b-2 border-foreground text-text-primary" : "text-text-secondary hover:text-text-primary"),
|
|
219
219
|
onClick: () => F(e.key),
|
|
220
220
|
children: [/* @__PURE__ */ T(n, { className: "h-4 w-4" }), e.label]
|
|
221
221
|
}, e.key);
|
|
@@ -230,7 +230,7 @@ function A() {
|
|
|
230
230
|
/* @__PURE__ */ E("div", {
|
|
231
231
|
className: "flex justify-between items-center",
|
|
232
232
|
children: [/* @__PURE__ */ T("h3", {
|
|
233
|
-
className: "text-lg font-semibold text-
|
|
233
|
+
className: "text-lg font-semibold text-text-primary",
|
|
234
234
|
children: "Personal Information"
|
|
235
235
|
}), I ? /* @__PURE__ */ E("div", {
|
|
236
236
|
className: "flex gap-2",
|
|
@@ -242,13 +242,13 @@ function A() {
|
|
|
242
242
|
}), /* @__PURE__ */ E("button", {
|
|
243
243
|
type: "button",
|
|
244
244
|
onClick: K,
|
|
245
|
-
className: "flex items-center gap-1.5 rounded-lg border border-border px-3 py-1.5 text-xs font-medium text-
|
|
245
|
+
className: "flex items-center gap-1.5 rounded-lg border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent transition-colors",
|
|
246
246
|
children: [/* @__PURE__ */ T(w, { className: "h-3 w-3" }), "Cancel"]
|
|
247
247
|
})]
|
|
248
248
|
}) : /* @__PURE__ */ E("button", {
|
|
249
249
|
type: "button",
|
|
250
250
|
onClick: G,
|
|
251
|
-
className: "flex items-center gap-1.5 rounded-lg border border-border px-3 py-1.5 text-xs font-medium text-
|
|
251
|
+
className: "flex items-center gap-1.5 rounded-lg border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent transition-colors",
|
|
252
252
|
children: [/* @__PURE__ */ T(m, { className: "h-3 w-3" }), "Edit Profile"]
|
|
253
253
|
})]
|
|
254
254
|
}),
|
|
@@ -256,63 +256,63 @@ function A() {
|
|
|
256
256
|
className: "grid grid-cols-1 md:grid-cols-2 gap-5",
|
|
257
257
|
children: [
|
|
258
258
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
259
|
-
className: "block text-sm font-medium text-
|
|
259
|
+
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
260
260
|
children: "First Name"
|
|
261
261
|
}), /* @__PURE__ */ T("input", {
|
|
262
262
|
type: "text",
|
|
263
263
|
value: I ? V.firstName : z.firstName,
|
|
264
264
|
onChange: (e) => Y("firstName", e.target.value),
|
|
265
265
|
disabled: !I,
|
|
266
|
-
className: t("w-full rounded-lg border border-border px-3 py-2.5 text-sm text-
|
|
266
|
+
className: t("w-full rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", !I && "bg-bg-sunken cursor-not-allowed", I && "bg-bg-surface")
|
|
267
267
|
})] }),
|
|
268
268
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
269
|
-
className: "block text-sm font-medium text-
|
|
269
|
+
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
270
270
|
children: "Last Name"
|
|
271
271
|
}), /* @__PURE__ */ T("input", {
|
|
272
272
|
type: "text",
|
|
273
273
|
value: I ? V.lastName : z.lastName,
|
|
274
274
|
onChange: (e) => Y("lastName", e.target.value),
|
|
275
275
|
disabled: !I,
|
|
276
|
-
className: t("w-full rounded-lg border border-border px-3 py-2.5 text-sm text-
|
|
276
|
+
className: t("w-full rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", !I && "bg-bg-sunken cursor-not-allowed", I && "bg-bg-surface")
|
|
277
277
|
})] }),
|
|
278
278
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
279
|
-
className: "block text-sm font-medium text-
|
|
279
|
+
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
280
280
|
children: "Email"
|
|
281
281
|
}), /* @__PURE__ */ T("input", {
|
|
282
282
|
type: "email",
|
|
283
283
|
value: I ? V.email : z.email,
|
|
284
284
|
onChange: (e) => Y("email", e.target.value),
|
|
285
285
|
disabled: !I,
|
|
286
|
-
className: t("w-full rounded-lg border border-border px-3 py-2.5 text-sm text-
|
|
286
|
+
className: t("w-full rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", !I && "bg-bg-sunken cursor-not-allowed", I && "bg-bg-surface")
|
|
287
287
|
})] }),
|
|
288
288
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
289
|
-
className: "block text-sm font-medium text-
|
|
289
|
+
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
290
290
|
children: "Phone"
|
|
291
291
|
}), /* @__PURE__ */ T("input", {
|
|
292
292
|
type: "tel",
|
|
293
293
|
value: I ? V.phone : z.phone,
|
|
294
294
|
onChange: (e) => Y("phone", e.target.value),
|
|
295
295
|
disabled: !I,
|
|
296
|
-
className: t("w-full rounded-lg border border-border px-3 py-2.5 text-sm text-
|
|
296
|
+
className: t("w-full rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", !I && "bg-bg-sunken cursor-not-allowed", I && "bg-bg-surface")
|
|
297
297
|
})] })
|
|
298
298
|
]
|
|
299
299
|
}),
|
|
300
300
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h4", {
|
|
301
|
-
className: "text-base font-semibold text-
|
|
301
|
+
className: "text-base font-semibold text-text-primary mb-3",
|
|
302
302
|
children: "Primary Address"
|
|
303
303
|
}), /* @__PURE__ */ E("div", {
|
|
304
|
-
className: "rounded-lg bg-
|
|
304
|
+
className: "rounded-lg bg-bg-sunken/50 p-4",
|
|
305
305
|
children: [
|
|
306
306
|
/* @__PURE__ */ T("p", {
|
|
307
|
-
className: "text-sm font-medium text-
|
|
307
|
+
className: "text-sm font-medium text-text-primary",
|
|
308
308
|
children: k[0].street
|
|
309
309
|
}),
|
|
310
310
|
/* @__PURE__ */ T("p", {
|
|
311
|
-
className: "text-sm text-
|
|
311
|
+
className: "text-sm text-text-secondary",
|
|
312
312
|
children: k[0].area
|
|
313
313
|
}),
|
|
314
314
|
/* @__PURE__ */ E("p", {
|
|
315
|
-
className: "text-sm text-
|
|
315
|
+
className: "text-sm text-text-secondary",
|
|
316
316
|
children: [
|
|
317
317
|
k[0].city,
|
|
318
318
|
", ",
|
|
@@ -324,7 +324,7 @@ function A() {
|
|
|
324
324
|
/* @__PURE__ */ E("button", {
|
|
325
325
|
type: "button",
|
|
326
326
|
onClick: () => A("/customer/addresses"),
|
|
327
|
-
className: "mt-2 flex items-center gap-1 text-xs font-medium text-
|
|
327
|
+
className: "mt-2 flex items-center gap-1 text-xs font-medium text-text-secondary hover:text-text-primary transition-colors",
|
|
328
328
|
children: [
|
|
329
329
|
/* @__PURE__ */ T(_, { className: "h-3 w-3" }),
|
|
330
330
|
"Manage Addresses",
|
|
@@ -334,45 +334,45 @@ function A() {
|
|
|
334
334
|
]
|
|
335
335
|
})] }),
|
|
336
336
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("h4", {
|
|
337
|
-
className: "text-base font-semibold text-
|
|
338
|
-
children: [/* @__PURE__ */ T(s, { className: "h-4 w-4 text-
|
|
337
|
+
className: "text-base font-semibold text-text-primary mb-3 flex items-center gap-2",
|
|
338
|
+
children: [/* @__PURE__ */ T(s, { className: "h-4 w-4 text-text-secondary" }), "Emergency Contact"]
|
|
339
339
|
}), /* @__PURE__ */ E("div", {
|
|
340
340
|
className: "grid grid-cols-1 md:grid-cols-3 gap-4",
|
|
341
341
|
children: [
|
|
342
342
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
343
|
-
className: "block text-sm font-medium text-
|
|
343
|
+
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
344
344
|
children: "Name"
|
|
345
345
|
}), /* @__PURE__ */ T("input", {
|
|
346
346
|
type: "text",
|
|
347
347
|
value: I ? V.emergencyContact.name : z.emergencyContact.name,
|
|
348
348
|
onChange: (e) => X("name", e.target.value),
|
|
349
349
|
disabled: !I,
|
|
350
|
-
className: t("w-full rounded-lg border border-border px-3 py-2.5 text-sm text-
|
|
350
|
+
className: t("w-full rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", !I && "bg-bg-sunken cursor-not-allowed", I && "bg-bg-surface")
|
|
351
351
|
})] }),
|
|
352
352
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
353
|
-
className: "block text-sm font-medium text-
|
|
353
|
+
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
354
354
|
children: "Phone"
|
|
355
355
|
}), /* @__PURE__ */ T("input", {
|
|
356
356
|
type: "tel",
|
|
357
357
|
value: I ? V.emergencyContact.phone : z.emergencyContact.phone,
|
|
358
358
|
onChange: (e) => X("phone", e.target.value),
|
|
359
359
|
disabled: !I,
|
|
360
|
-
className: t("w-full rounded-lg border border-border px-3 py-2.5 text-sm text-
|
|
360
|
+
className: t("w-full rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", !I && "bg-bg-sunken cursor-not-allowed", I && "bg-bg-surface")
|
|
361
361
|
})] }),
|
|
362
362
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("label", {
|
|
363
|
-
className: "block text-sm font-medium text-
|
|
363
|
+
className: "block text-sm font-medium text-text-primary mb-1.5",
|
|
364
364
|
children: "Relationship"
|
|
365
365
|
}), /* @__PURE__ */ T("input", {
|
|
366
366
|
type: "text",
|
|
367
367
|
value: I ? V.emergencyContact.relationship : z.emergencyContact.relationship,
|
|
368
368
|
onChange: (e) => X("relationship", e.target.value),
|
|
369
369
|
disabled: !I,
|
|
370
|
-
className: t("w-full rounded-lg border border-border px-3 py-2.5 text-sm text-
|
|
370
|
+
className: t("w-full rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", !I && "bg-bg-sunken cursor-not-allowed", I && "bg-bg-surface")
|
|
371
371
|
})] })
|
|
372
372
|
]
|
|
373
373
|
})] }),
|
|
374
374
|
I && /* @__PURE__ */ E("div", {
|
|
375
|
-
className: "flex gap-3 pt-4 border-t border-border",
|
|
375
|
+
className: "flex gap-3 pt-4 border-t border-border-subtle",
|
|
376
376
|
children: [/* @__PURE__ */ E("button", {
|
|
377
377
|
type: "button",
|
|
378
378
|
onClick: q,
|
|
@@ -381,7 +381,7 @@ function A() {
|
|
|
381
381
|
}), /* @__PURE__ */ T("button", {
|
|
382
382
|
type: "button",
|
|
383
383
|
onClick: K,
|
|
384
|
-
className: "flex items-center gap-2 rounded-lg border border-border px-4 py-2.5 text-sm font-medium text-
|
|
384
|
+
className: "flex items-center gap-2 rounded-lg border border-border-subtle px-4 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
|
|
385
385
|
children: "Cancel"
|
|
386
386
|
})]
|
|
387
387
|
})
|
|
@@ -391,8 +391,8 @@ function A() {
|
|
|
391
391
|
className: "space-y-8",
|
|
392
392
|
children: [
|
|
393
393
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("h3", {
|
|
394
|
-
className: "text-lg font-semibold text-
|
|
395
|
-
children: [/* @__PURE__ */ T(u, { className: "h-4 w-4 text-
|
|
394
|
+
className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
395
|
+
children: [/* @__PURE__ */ T(u, { className: "h-4 w-4 text-text-secondary" }), "Notification Preferences"]
|
|
396
396
|
}), /* @__PURE__ */ T("div", {
|
|
397
397
|
className: "space-y-3",
|
|
398
398
|
children: [
|
|
@@ -418,16 +418,16 @@ function A() {
|
|
|
418
418
|
type: "checkbox",
|
|
419
419
|
checked: V.notifications[e.key],
|
|
420
420
|
onChange: (t) => Z(e.key, t.target.checked),
|
|
421
|
-
className: "h-4 w-4 rounded border-border text-
|
|
421
|
+
className: "h-4 w-4 rounded border-border-subtle text-text-primary focus:ring-[var(--color-focus-ring)]"
|
|
422
422
|
}), /* @__PURE__ */ T("span", {
|
|
423
|
-
className: "text-sm text-
|
|
423
|
+
className: "text-sm text-text-primary",
|
|
424
424
|
children: e.label
|
|
425
425
|
})]
|
|
426
426
|
}, e.key))
|
|
427
427
|
})] }),
|
|
428
428
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("h3", {
|
|
429
|
-
className: "text-lg font-semibold text-
|
|
430
|
-
children: [/* @__PURE__ */ T(h, { className: "h-4 w-4 text-
|
|
429
|
+
className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
430
|
+
children: [/* @__PURE__ */ T(h, { className: "h-4 w-4 text-text-secondary" }), "Dietary Preferences"]
|
|
431
431
|
}), /* @__PURE__ */ T("div", {
|
|
432
432
|
className: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",
|
|
433
433
|
children: D.map((e) => /* @__PURE__ */ E("label", {
|
|
@@ -436,16 +436,16 @@ function A() {
|
|
|
436
436
|
type: "checkbox",
|
|
437
437
|
checked: V.dietary.includes(e),
|
|
438
438
|
onChange: (t) => Q("dietary", e, t.target.checked),
|
|
439
|
-
className: "h-4 w-4 rounded border-border text-
|
|
439
|
+
className: "h-4 w-4 rounded border-border-subtle text-text-primary focus:ring-[var(--color-focus-ring)]"
|
|
440
440
|
}), /* @__PURE__ */ T("span", {
|
|
441
|
-
className: "text-sm text-
|
|
441
|
+
className: "text-sm text-text-primary capitalize",
|
|
442
442
|
children: e
|
|
443
443
|
})]
|
|
444
444
|
}, e))
|
|
445
445
|
})] }),
|
|
446
446
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("h3", {
|
|
447
|
-
className: "text-lg font-semibold text-
|
|
448
|
-
children: [/* @__PURE__ */ T(s, { className: "h-4 w-4 text-
|
|
447
|
+
className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
448
|
+
children: [/* @__PURE__ */ T(s, { className: "h-4 w-4 text-status-error-text" }), "Food Allergies"]
|
|
449
449
|
}), /* @__PURE__ */ T("div", {
|
|
450
450
|
className: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",
|
|
451
451
|
children: O.map((e) => /* @__PURE__ */ E("label", {
|
|
@@ -454,15 +454,15 @@ function A() {
|
|
|
454
454
|
type: "checkbox",
|
|
455
455
|
checked: V.allergies.includes(e),
|
|
456
456
|
onChange: (t) => Q("allergies", e, t.target.checked),
|
|
457
|
-
className: "h-4 w-4 rounded border-border text-
|
|
457
|
+
className: "h-4 w-4 rounded border-border-subtle text-status-error-text focus:ring-destructive"
|
|
458
458
|
}), /* @__PURE__ */ T("span", {
|
|
459
|
-
className: "text-sm text-
|
|
459
|
+
className: "text-sm text-text-primary capitalize",
|
|
460
460
|
children: e
|
|
461
461
|
})]
|
|
462
462
|
}, e))
|
|
463
463
|
})] }),
|
|
464
464
|
/* @__PURE__ */ T("div", {
|
|
465
|
-
className: "pt-4 border-t border-border",
|
|
465
|
+
className: "pt-4 border-t border-border-subtle",
|
|
466
466
|
children: /* @__PURE__ */ E("button", {
|
|
467
467
|
type: "button",
|
|
468
468
|
onClick: J,
|
|
@@ -478,41 +478,41 @@ function A() {
|
|
|
478
478
|
className: "grid grid-cols-1 md:grid-cols-3 gap-4",
|
|
479
479
|
children: [
|
|
480
480
|
/* @__PURE__ */ E("div", {
|
|
481
|
-
className: "rounded-lg bg-blue-
|
|
481
|
+
className: "rounded-lg bg-accent-blue-subtle/10 p-5 border border-accent-blue-subtle/20",
|
|
482
482
|
children: [/* @__PURE__ */ E("div", {
|
|
483
483
|
className: "flex items-center gap-2 mb-2",
|
|
484
|
-
children: [/* @__PURE__ */ T(x, { className: "h-4 w-4 text-
|
|
485
|
-
className: "text-sm font-medium text-
|
|
484
|
+
children: [/* @__PURE__ */ T(x, { className: "h-4 w-4 text-accent-blue" }), /* @__PURE__ */ T("h4", {
|
|
485
|
+
className: "text-sm font-medium text-accent-blue",
|
|
486
486
|
children: "Total Orders"
|
|
487
487
|
})]
|
|
488
488
|
}), /* @__PURE__ */ T("p", {
|
|
489
|
-
className: "text-3xl font-bold text-
|
|
489
|
+
className: "text-3xl font-bold text-accent-blue",
|
|
490
490
|
children: U.totalOrders
|
|
491
491
|
})]
|
|
492
492
|
}),
|
|
493
493
|
/* @__PURE__ */ E("div", {
|
|
494
|
-
className: "rounded-lg bg-
|
|
494
|
+
className: "rounded-lg bg-status-success-bg-subtle/10 p-5 border border-status-success-border/20",
|
|
495
495
|
children: [/* @__PURE__ */ E("div", {
|
|
496
496
|
className: "flex items-center gap-2 mb-2",
|
|
497
|
-
children: [/* @__PURE__ */ T(g, { className: "h-4 w-4 text-
|
|
498
|
-
className: "text-sm font-medium text-
|
|
497
|
+
children: [/* @__PURE__ */ T(g, { className: "h-4 w-4 text-status-success-text" }), /* @__PURE__ */ T("h4", {
|
|
498
|
+
className: "text-sm font-medium text-status-success-text",
|
|
499
499
|
children: "Total Spent"
|
|
500
500
|
})]
|
|
501
501
|
}), /* @__PURE__ */ T("p", {
|
|
502
|
-
className: "text-3xl font-bold text-
|
|
502
|
+
className: "text-3xl font-bold text-status-success-text",
|
|
503
503
|
children: i(U.totalSpent, { minimumFractionDigits: 0 })
|
|
504
504
|
})]
|
|
505
505
|
}),
|
|
506
506
|
/* @__PURE__ */ E("div", {
|
|
507
|
-
className: "rounded-lg bg-purple-
|
|
507
|
+
className: "rounded-lg bg-accent-purple-subtle/10 p-5 border border-accent-purple-subtle/20",
|
|
508
508
|
children: [/* @__PURE__ */ E("div", {
|
|
509
509
|
className: "flex items-center gap-2 mb-2",
|
|
510
|
-
children: [/* @__PURE__ */ T(c, { className: "h-4 w-4 text-
|
|
511
|
-
className: "text-sm font-medium text-
|
|
510
|
+
children: [/* @__PURE__ */ T(c, { className: "h-4 w-4 text-accent-purple" }), /* @__PURE__ */ T("h4", {
|
|
511
|
+
className: "text-sm font-medium text-accent-purple",
|
|
512
512
|
children: "Loyalty Points"
|
|
513
513
|
})]
|
|
514
514
|
}), /* @__PURE__ */ T("p", {
|
|
515
|
-
className: "text-3xl font-bold text-
|
|
515
|
+
className: "text-3xl font-bold text-accent-purple",
|
|
516
516
|
children: U.loyaltyPoints
|
|
517
517
|
})]
|
|
518
518
|
})
|
|
@@ -520,40 +520,40 @@ function A() {
|
|
|
520
520
|
}), /* @__PURE__ */ E("div", {
|
|
521
521
|
className: "grid grid-cols-1 md:grid-cols-2 gap-6",
|
|
522
522
|
children: [/* @__PURE__ */ E("div", {
|
|
523
|
-
className: "rounded-lg border border-border bg-
|
|
523
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 bg-gloss-card shadow-pop",
|
|
524
524
|
children: [/* @__PURE__ */ E("h4", {
|
|
525
|
-
className: "text-base font-semibold text-
|
|
526
|
-
children: [/* @__PURE__ */ T(l, { className: "h-4 w-4 text-
|
|
525
|
+
className: "text-base font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
526
|
+
children: [/* @__PURE__ */ T(l, { className: "h-4 w-4 text-text-secondary" }), "Order Statistics"]
|
|
527
527
|
}), /* @__PURE__ */ E("div", {
|
|
528
528
|
className: "space-y-3",
|
|
529
529
|
children: [
|
|
530
530
|
/* @__PURE__ */ E("div", {
|
|
531
531
|
className: "flex justify-between",
|
|
532
532
|
children: [/* @__PURE__ */ T("span", {
|
|
533
|
-
className: "text-sm text-
|
|
533
|
+
className: "text-sm text-text-secondary",
|
|
534
534
|
children: "Average Order Value"
|
|
535
535
|
}), /* @__PURE__ */ T("span", {
|
|
536
|
-
className: "text-sm font-medium text-
|
|
536
|
+
className: "text-sm font-medium text-text-primary",
|
|
537
537
|
children: i(U.avgOrderValue, { minimumFractionDigits: 0 })
|
|
538
538
|
})]
|
|
539
539
|
}),
|
|
540
540
|
/* @__PURE__ */ E("div", {
|
|
541
541
|
className: "flex justify-between",
|
|
542
542
|
children: [/* @__PURE__ */ T("span", {
|
|
543
|
-
className: "text-sm text-
|
|
543
|
+
className: "text-sm text-text-secondary",
|
|
544
544
|
children: "Favorite Category"
|
|
545
545
|
}), /* @__PURE__ */ T("span", {
|
|
546
|
-
className: "text-sm font-medium text-
|
|
546
|
+
className: "text-sm font-medium text-text-primary",
|
|
547
547
|
children: U.favoriteCategory
|
|
548
548
|
})]
|
|
549
549
|
}),
|
|
550
550
|
/* @__PURE__ */ E("div", {
|
|
551
551
|
className: "flex justify-between",
|
|
552
552
|
children: [/* @__PURE__ */ T("span", {
|
|
553
|
-
className: "text-sm text-
|
|
553
|
+
className: "text-sm text-text-secondary",
|
|
554
554
|
children: "Member Since"
|
|
555
555
|
}), /* @__PURE__ */ T("span", {
|
|
556
|
-
className: "text-sm font-medium text-
|
|
556
|
+
className: "text-sm font-medium text-text-primary",
|
|
557
557
|
children: a(U.memberSince, {
|
|
558
558
|
hour: void 0,
|
|
559
559
|
minute: void 0,
|
|
@@ -564,40 +564,40 @@ function A() {
|
|
|
564
564
|
]
|
|
565
565
|
})]
|
|
566
566
|
}), /* @__PURE__ */ E("div", {
|
|
567
|
-
className: "rounded-lg border border-border bg-
|
|
567
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 bg-gloss-card shadow-pop",
|
|
568
568
|
children: [/* @__PURE__ */ E("h4", {
|
|
569
|
-
className: "text-base font-semibold text-
|
|
570
|
-
children: [/* @__PURE__ */ T(b, { className: "h-4 w-4 text-
|
|
569
|
+
className: "text-base font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
570
|
+
children: [/* @__PURE__ */ T(b, { className: "h-4 w-4 text-text-secondary" }), "Account Status"]
|
|
571
571
|
}), /* @__PURE__ */ E("div", {
|
|
572
572
|
className: "space-y-3",
|
|
573
573
|
children: [
|
|
574
574
|
/* @__PURE__ */ E("div", {
|
|
575
575
|
className: "flex justify-between items-center",
|
|
576
576
|
children: [/* @__PURE__ */ T("span", {
|
|
577
|
-
className: "text-sm text-
|
|
577
|
+
className: "text-sm text-text-secondary",
|
|
578
578
|
children: "Email Verification"
|
|
579
579
|
}), /* @__PURE__ */ T("span", {
|
|
580
|
-
className: t("inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium", R.isEmailVerified ? "bg-
|
|
580
|
+
className: t("inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium", R.isEmailVerified ? "bg-status-success-bg-subtle/20 text-status-success-text" : "bg-status-error-bg/20 text-status-error-text"),
|
|
581
581
|
children: R.isEmailVerified ? "Verified" : "Not Verified"
|
|
582
582
|
})]
|
|
583
583
|
}),
|
|
584
584
|
/* @__PURE__ */ E("div", {
|
|
585
585
|
className: "flex justify-between items-center",
|
|
586
586
|
children: [/* @__PURE__ */ T("span", {
|
|
587
|
-
className: "text-sm text-
|
|
587
|
+
className: "text-sm text-text-secondary",
|
|
588
588
|
children: "Phone Verification"
|
|
589
589
|
}), /* @__PURE__ */ T("span", {
|
|
590
|
-
className: t("inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium", R.isPhoneVerified ? "bg-
|
|
590
|
+
className: t("inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium", R.isPhoneVerified ? "bg-status-success-bg-subtle/20 text-status-success-text" : "bg-status-error-bg/20 text-status-error-text"),
|
|
591
591
|
children: R.isPhoneVerified ? "Verified" : "Not Verified"
|
|
592
592
|
})]
|
|
593
593
|
}),
|
|
594
594
|
/* @__PURE__ */ E("div", {
|
|
595
595
|
className: "flex justify-between",
|
|
596
596
|
children: [/* @__PURE__ */ T("span", {
|
|
597
|
-
className: "text-sm text-
|
|
597
|
+
className: "text-sm text-text-secondary",
|
|
598
598
|
children: "Last Updated"
|
|
599
599
|
}), /* @__PURE__ */ T("span", {
|
|
600
|
-
className: "text-sm font-medium text-
|
|
600
|
+
className: "text-sm font-medium text-text-primary",
|
|
601
601
|
children: a(R.updatedAt, {
|
|
602
602
|
hour: void 0,
|
|
603
603
|
minute: void 0,
|