@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
|
@@ -48,12 +48,12 @@ function E() {
|
|
|
48
48
|
avgRating: 4.5
|
|
49
49
|
}, H = (e) => {
|
|
50
50
|
switch (e) {
|
|
51
|
-
case "delivered": return "bg-
|
|
52
|
-
case "preparing": return "bg-
|
|
53
|
-
case "out_for_delivery": return "bg-blue-
|
|
54
|
-
case "confirmed": return "bg-blue-
|
|
55
|
-
case "cancelled": return "bg-
|
|
56
|
-
default: return "bg-
|
|
51
|
+
case "delivered": return "bg-status-success-bg-subtle/20 text-status-success-text";
|
|
52
|
+
case "preparing": return "bg-status-warning-bg-subtle/20 text-status-warning-text";
|
|
53
|
+
case "out_for_delivery": return "bg-accent-blue-subtle/20 text-accent-blue";
|
|
54
|
+
case "confirmed": return "bg-accent-blue-subtle/20 text-accent-blue";
|
|
55
|
+
case "cancelled": return "bg-status-error-bg-subtle/20 text-status-error-text";
|
|
56
|
+
default: return "bg-bg-sunken text-text-secondary";
|
|
57
57
|
}
|
|
58
58
|
}, U = (e) => {
|
|
59
59
|
switch (e) {
|
|
@@ -64,10 +64,10 @@ function E() {
|
|
|
64
64
|
}
|
|
65
65
|
}, W = (e) => {
|
|
66
66
|
switch (e) {
|
|
67
|
-
case "suggestion": return "bg-blue-
|
|
68
|
-
case "opportunity": return "bg-
|
|
69
|
-
case "trend": return "bg-
|
|
70
|
-
default: return "bg-
|
|
67
|
+
case "suggestion": return "bg-accent-blue-subtle/10 text-accent-blue border-accent-blue-subtle/20";
|
|
68
|
+
case "opportunity": return "bg-status-success-bg-subtle/10 text-status-success-text border-status-success-border/20";
|
|
69
|
+
case "trend": return "bg-status-warning-bg-subtle/10 text-status-warning-text border-status-warning-border/20";
|
|
70
|
+
default: return "bg-bg-sunken text-text-secondary border-border-subtle";
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
73
|
return F ? /* @__PURE__ */ C(n, {
|
|
@@ -77,7 +77,7 @@ function E() {
|
|
|
77
77
|
children: /* @__PURE__ */ w("div", {
|
|
78
78
|
className: "text-center",
|
|
79
79
|
children: [/* @__PURE__ */ C("div", { className: "mx-auto mb-4 h-12 w-12 animate-spin rounded-full border-b-2 border-foreground" }), /* @__PURE__ */ C("p", {
|
|
80
|
-
className: "text-sm text-
|
|
80
|
+
className: "text-sm text-text-secondary",
|
|
81
81
|
children: I("adaptercloud.customerDashboard.loading", "Loading your dashboard...")
|
|
82
82
|
})]
|
|
83
83
|
})
|
|
@@ -89,65 +89,65 @@ function E() {
|
|
|
89
89
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
90
90
|
children: [
|
|
91
91
|
/* @__PURE__ */ C("div", {
|
|
92
|
-
className: "rounded-lg border border-border bg-
|
|
92
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
|
|
93
93
|
children: /* @__PURE__ */ w("div", {
|
|
94
94
|
className: "flex items-center gap-3",
|
|
95
95
|
children: [/* @__PURE__ */ C("div", {
|
|
96
|
-
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-
|
|
97
|
-
children: /* @__PURE__ */ C(g, { className: "h-5 w-5 text-
|
|
96
|
+
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
|
|
97
|
+
children: /* @__PURE__ */ C(g, { className: "h-5 w-5 text-text-secondary" })
|
|
98
98
|
}), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
99
|
-
className: "text-2xl font-bold text-
|
|
99
|
+
className: "text-2xl font-bold text-text-primary",
|
|
100
100
|
children: V.totalOrders
|
|
101
101
|
}), /* @__PURE__ */ C("p", {
|
|
102
|
-
className: "text-xs text-
|
|
102
|
+
className: "text-xs text-text-secondary",
|
|
103
103
|
children: I("adaptercloud.customerDashboard.totalOrders", "Total Orders")
|
|
104
104
|
})] })]
|
|
105
105
|
})
|
|
106
106
|
}),
|
|
107
107
|
/* @__PURE__ */ C("div", {
|
|
108
|
-
className: "rounded-lg border border-border bg-
|
|
108
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
|
|
109
109
|
children: /* @__PURE__ */ w("div", {
|
|
110
110
|
className: "flex items-center gap-3",
|
|
111
111
|
children: [/* @__PURE__ */ C("div", {
|
|
112
|
-
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-
|
|
113
|
-
children: /* @__PURE__ */ C(d, { className: "h-5 w-5 text-
|
|
112
|
+
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
|
|
113
|
+
children: /* @__PURE__ */ C(d, { className: "h-5 w-5 text-text-secondary" })
|
|
114
114
|
}), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
115
|
-
className: "text-2xl font-bold text-
|
|
115
|
+
className: "text-2xl font-bold text-text-primary",
|
|
116
116
|
children: o(V.totalSpent, { minimumFractionDigits: 0 })
|
|
117
117
|
}), /* @__PURE__ */ C("p", {
|
|
118
|
-
className: "text-xs text-
|
|
118
|
+
className: "text-xs text-text-secondary",
|
|
119
119
|
children: I("adaptercloud.customerDashboard.totalSpent", "Total Spent")
|
|
120
120
|
})] })]
|
|
121
121
|
})
|
|
122
122
|
}),
|
|
123
123
|
/* @__PURE__ */ C("div", {
|
|
124
|
-
className: "rounded-lg border border-border bg-
|
|
124
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
|
|
125
125
|
children: /* @__PURE__ */ w("div", {
|
|
126
126
|
className: "flex items-center gap-3",
|
|
127
127
|
children: [/* @__PURE__ */ C("div", {
|
|
128
|
-
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-
|
|
129
|
-
children: /* @__PURE__ */ C(f, { className: "h-5 w-5 text-
|
|
128
|
+
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
|
|
129
|
+
children: /* @__PURE__ */ C(f, { className: "h-5 w-5 text-text-secondary" })
|
|
130
130
|
}), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
131
|
-
className: "text-2xl font-bold text-
|
|
131
|
+
className: "text-2xl font-bold text-text-primary",
|
|
132
132
|
children: V.favoriteCount
|
|
133
133
|
}), /* @__PURE__ */ C("p", {
|
|
134
|
-
className: "text-xs text-
|
|
134
|
+
className: "text-xs text-text-secondary",
|
|
135
135
|
children: I("adaptercloud.customerDashboard.favoriteCarts", "Favorite Carts")
|
|
136
136
|
})] })]
|
|
137
137
|
})
|
|
138
138
|
}),
|
|
139
139
|
/* @__PURE__ */ C("div", {
|
|
140
|
-
className: "rounded-lg border border-border bg-
|
|
140
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
|
|
141
141
|
children: /* @__PURE__ */ w("div", {
|
|
142
142
|
className: "flex items-center gap-3",
|
|
143
143
|
children: [/* @__PURE__ */ C("div", {
|
|
144
|
-
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-
|
|
145
|
-
children: /* @__PURE__ */ C(y, { className: "h-5 w-5 text-
|
|
144
|
+
className: "flex h-10 w-10 items-center justify-center rounded-lg bg-bg-sunken",
|
|
145
|
+
children: /* @__PURE__ */ C(y, { className: "h-5 w-5 text-text-secondary" })
|
|
146
146
|
}), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
|
|
147
|
-
className: "text-2xl font-bold text-
|
|
147
|
+
className: "text-2xl font-bold text-text-primary",
|
|
148
148
|
children: V.avgRating.toFixed(1)
|
|
149
149
|
}), /* @__PURE__ */ C("p", {
|
|
150
|
-
className: "text-xs text-
|
|
150
|
+
className: "text-xs text-text-secondary",
|
|
151
151
|
children: I("adaptercloud.customerDashboard.avgRatingGiven", "Avg Rating Given")
|
|
152
152
|
})] })]
|
|
153
153
|
})
|
|
@@ -159,7 +159,7 @@ function E() {
|
|
|
159
159
|
className: "lg:col-span-2 space-y-8",
|
|
160
160
|
children: [
|
|
161
161
|
/* @__PURE__ */ w("section", { children: [/* @__PURE__ */ C("h2", {
|
|
162
|
-
className: "text-lg font-semibold text-
|
|
162
|
+
className: "text-lg font-semibold text-text-primary mb-4",
|
|
163
163
|
children: I("adaptercloud.customerDashboard.quickActions", "Quick Actions")
|
|
164
164
|
}), /* @__PURE__ */ w("div", {
|
|
165
165
|
className: "grid grid-cols-1 gap-3 sm:grid-cols-3",
|
|
@@ -167,17 +167,17 @@ function E() {
|
|
|
167
167
|
/* @__PURE__ */ w("button", {
|
|
168
168
|
type: "button",
|
|
169
169
|
onClick: () => E("/customer/carts"),
|
|
170
|
-
className: t("flex items-center gap-3 rounded-lg border border-border bg-
|
|
170
|
+
className: t("flex items-center gap-3 rounded-lg border border-border-seam bg-bg-surface p-4 transition-colors text-left bg-gloss-card shadow-pop", "hover:bg-accent hover:shadow-md"),
|
|
171
171
|
children: [/* @__PURE__ */ C("div", {
|
|
172
|
-
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-blue-
|
|
173
|
-
children: /* @__PURE__ */ C(_, { className: "h-5 w-5 text-
|
|
172
|
+
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-accent-blue-subtle/10",
|
|
173
|
+
children: /* @__PURE__ */ C(_, { className: "h-5 w-5 text-accent-blue" })
|
|
174
174
|
}), /* @__PURE__ */ w("div", {
|
|
175
175
|
className: "min-w-0",
|
|
176
176
|
children: [/* @__PURE__ */ C("p", {
|
|
177
|
-
className: "text-sm font-semibold text-
|
|
177
|
+
className: "text-sm font-semibold text-text-primary",
|
|
178
178
|
children: I("adaptercloud.customerDashboard.discoverCarts", "Discover Carts")
|
|
179
179
|
}), /* @__PURE__ */ C("p", {
|
|
180
|
-
className: "text-xs text-
|
|
180
|
+
className: "text-xs text-text-secondary",
|
|
181
181
|
children: I("adaptercloud.customerDashboard.findNearbyCarts", "Find nearby carts")
|
|
182
182
|
})]
|
|
183
183
|
})]
|
|
@@ -185,17 +185,17 @@ function E() {
|
|
|
185
185
|
/* @__PURE__ */ w("button", {
|
|
186
186
|
type: "button",
|
|
187
187
|
onClick: () => E("/customer/orders"),
|
|
188
|
-
className: t("flex items-center gap-3 rounded-lg border border-border bg-
|
|
188
|
+
className: t("flex items-center gap-3 rounded-lg border border-border-seam bg-bg-surface p-4 transition-colors text-left bg-gloss-card shadow-pop", "hover:bg-accent hover:shadow-md"),
|
|
189
189
|
children: [/* @__PURE__ */ C("div", {
|
|
190
|
-
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-
|
|
191
|
-
children: /* @__PURE__ */ C(u, { className: "h-5 w-5 text-
|
|
190
|
+
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-status-success-bg-subtle/10",
|
|
191
|
+
children: /* @__PURE__ */ C(u, { className: "h-5 w-5 text-status-success-text" })
|
|
192
192
|
}), /* @__PURE__ */ w("div", {
|
|
193
193
|
className: "min-w-0",
|
|
194
194
|
children: [/* @__PURE__ */ C("p", {
|
|
195
|
-
className: "text-sm font-semibold text-
|
|
195
|
+
className: "text-sm font-semibold text-text-primary",
|
|
196
196
|
children: I("adaptercloud.customerDashboard.orderHistory", "Order History")
|
|
197
197
|
}), /* @__PURE__ */ C("p", {
|
|
198
|
-
className: "text-xs text-
|
|
198
|
+
className: "text-xs text-text-secondary",
|
|
199
199
|
children: I("adaptercloud.customerDashboard.viewPastOrders", "View past orders")
|
|
200
200
|
})]
|
|
201
201
|
})]
|
|
@@ -203,17 +203,17 @@ function E() {
|
|
|
203
203
|
/* @__PURE__ */ w("button", {
|
|
204
204
|
type: "button",
|
|
205
205
|
onClick: () => E("/customer/favorites"),
|
|
206
|
-
className: t("flex items-center gap-3 rounded-lg border border-border bg-
|
|
206
|
+
className: t("flex items-center gap-3 rounded-lg border border-border-seam bg-bg-surface p-4 transition-colors text-left bg-gloss-card shadow-pop", "hover:bg-accent hover:shadow-md"),
|
|
207
207
|
children: [/* @__PURE__ */ C("div", {
|
|
208
|
-
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-
|
|
209
|
-
children: /* @__PURE__ */ C(f, { className: "h-5 w-5 text-
|
|
208
|
+
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-status-error-bg-subtle/10",
|
|
209
|
+
children: /* @__PURE__ */ C(f, { className: "h-5 w-5 text-status-error-text" })
|
|
210
210
|
}), /* @__PURE__ */ w("div", {
|
|
211
211
|
className: "min-w-0",
|
|
212
212
|
children: [/* @__PURE__ */ C("p", {
|
|
213
|
-
className: "text-sm font-semibold text-
|
|
213
|
+
className: "text-sm font-semibold text-text-primary",
|
|
214
214
|
children: I("adaptercloud.customerDashboard.favorites", "Favorites")
|
|
215
215
|
}), /* @__PURE__ */ C("p", {
|
|
216
|
-
className: "text-xs text-
|
|
216
|
+
className: "text-xs text-text-secondary",
|
|
217
217
|
children: I("adaptercloud.customerDashboard.savedCarts", "Saved carts")
|
|
218
218
|
})]
|
|
219
219
|
})]
|
|
@@ -223,18 +223,18 @@ function E() {
|
|
|
223
223
|
/* @__PURE__ */ w("section", { children: [/* @__PURE__ */ w("div", {
|
|
224
224
|
className: "flex items-center justify-between mb-4",
|
|
225
225
|
children: [/* @__PURE__ */ C("h2", {
|
|
226
|
-
className: "text-lg font-semibold text-
|
|
226
|
+
className: "text-lg font-semibold text-text-primary",
|
|
227
227
|
children: I("adaptercloud.customerDashboard.recentOrders", "Recent Orders")
|
|
228
228
|
}), /* @__PURE__ */ w("button", {
|
|
229
229
|
type: "button",
|
|
230
230
|
onClick: () => E("/customer/orders"),
|
|
231
|
-
className: "flex items-center gap-1 text-sm font-medium text-
|
|
231
|
+
className: "flex items-center gap-1 text-sm font-medium text-text-secondary hover:text-text-primary transition-colors",
|
|
232
232
|
children: [I("adaptercloud.common.viewAll", "View All"), /* @__PURE__ */ C(l, { className: "h-4 w-4" })]
|
|
233
233
|
})]
|
|
234
234
|
}), z.length > 0 ? /* @__PURE__ */ C("div", {
|
|
235
235
|
className: "space-y-3",
|
|
236
236
|
children: z.map((e) => /* @__PURE__ */ C("div", {
|
|
237
|
-
className: "rounded-lg border border-border bg-
|
|
237
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 bg-gloss-card shadow-pop",
|
|
238
238
|
children: /* @__PURE__ */ w("div", {
|
|
239
239
|
className: "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3",
|
|
240
240
|
children: [/* @__PURE__ */ w("div", {
|
|
@@ -243,7 +243,7 @@ function E() {
|
|
|
243
243
|
/* @__PURE__ */ w("div", {
|
|
244
244
|
className: "flex flex-wrap items-center gap-2 mb-1",
|
|
245
245
|
children: [/* @__PURE__ */ C("h3", {
|
|
246
|
-
className: "text-sm font-semibold text-
|
|
246
|
+
className: "text-sm font-semibold text-text-primary",
|
|
247
247
|
children: e.cartName
|
|
248
248
|
}), /* @__PURE__ */ C("span", {
|
|
249
249
|
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium capitalize", H(e.status)),
|
|
@@ -251,20 +251,20 @@ function E() {
|
|
|
251
251
|
})]
|
|
252
252
|
}),
|
|
253
253
|
/* @__PURE__ */ C("p", {
|
|
254
|
-
className: "text-xs text-
|
|
254
|
+
className: "text-xs text-text-secondary mb-2 leading-relaxed",
|
|
255
255
|
children: e.items.map((e) => `${e.name} (${e.quantity})`).join(", ")
|
|
256
256
|
}),
|
|
257
257
|
/* @__PURE__ */ w("div", {
|
|
258
|
-
className: "flex flex-wrap items-center gap-3 text-xs text-
|
|
258
|
+
className: "flex flex-wrap items-center gap-3 text-xs text-text-secondary",
|
|
259
259
|
children: [
|
|
260
260
|
/* @__PURE__ */ C("span", {
|
|
261
|
-
className: "font-medium text-
|
|
261
|
+
className: "font-medium text-text-primary",
|
|
262
262
|
children: o(e.total, { minimumFractionDigits: 0 })
|
|
263
263
|
}),
|
|
264
264
|
/* @__PURE__ */ C("span", { children: new Date(e.orderDate).toLocaleDateString() }),
|
|
265
265
|
e.rating && /* @__PURE__ */ w("span", {
|
|
266
266
|
className: "flex items-center gap-1",
|
|
267
|
-
children: [/* @__PURE__ */ C(y, { className: "h-3 w-3 fill-
|
|
267
|
+
children: [/* @__PURE__ */ C(y, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), e.rating]
|
|
268
268
|
})
|
|
269
269
|
]
|
|
270
270
|
})
|
|
@@ -272,25 +272,25 @@ function E() {
|
|
|
272
272
|
}), /* @__PURE__ */ C("button", {
|
|
273
273
|
type: "button",
|
|
274
274
|
onClick: () => E(`/customer/orders/${e.id}`),
|
|
275
|
-
className: "rounded-lg border border-border px-3 py-1.5 text-xs font-medium text-
|
|
275
|
+
className: "rounded-lg border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-accent transition-colors",
|
|
276
276
|
children: I("adaptercloud.customerDashboard.viewDetails", "View Details")
|
|
277
277
|
})]
|
|
278
278
|
})
|
|
279
279
|
}, e.id))
|
|
280
280
|
}) : /* @__PURE__ */ w("div", {
|
|
281
|
-
className: "rounded-lg border border-border bg-
|
|
282
|
-
children: [/* @__PURE__ */ C(v, { className: "mx-auto h-10 w-10 text-
|
|
283
|
-
className: "mt-3 text-sm text-
|
|
281
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface p-8 text-center",
|
|
282
|
+
children: [/* @__PURE__ */ C(v, { className: "mx-auto h-10 w-10 text-text-secondary/50" }), /* @__PURE__ */ C("p", {
|
|
283
|
+
className: "mt-3 text-sm text-text-secondary",
|
|
284
284
|
children: I("adaptercloud.customerDashboard.noRecentOrders", "No recent orders")
|
|
285
285
|
})]
|
|
286
286
|
})] }),
|
|
287
287
|
/* @__PURE__ */ w("section", { children: [/* @__PURE__ */ C("h2", {
|
|
288
|
-
className: "text-lg font-semibold text-
|
|
288
|
+
className: "text-lg font-semibold text-text-primary mb-4",
|
|
289
289
|
children: I("adaptercloud.customerDashboard.recommendedForYou", "Recommended for You")
|
|
290
290
|
}), /* @__PURE__ */ C("div", {
|
|
291
291
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
292
292
|
children: B.map((e) => /* @__PURE__ */ w("div", {
|
|
293
|
-
className: "rounded-lg border border-border bg-
|
|
293
|
+
className: "rounded-lg border border-border-subtle bg-bg-surface overflow-hidden shadow-sm hover:shadow-md transition-shadow",
|
|
294
294
|
children: [/* @__PURE__ */ w("div", {
|
|
295
295
|
className: "relative h-40",
|
|
296
296
|
children: [/* @__PURE__ */ C("img", {
|
|
@@ -300,7 +300,7 @@ function E() {
|
|
|
300
300
|
}), /* @__PURE__ */ C("div", {
|
|
301
301
|
className: "absolute top-2 right-2",
|
|
302
302
|
children: /* @__PURE__ */ C("span", {
|
|
303
|
-
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium", e.isOpen ? "bg-
|
|
303
|
+
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium", e.isOpen ? "bg-status-success-bg-subtle/20 text-status-success-text" : "bg-status-error-bg-subtle/20 text-status-error-text"),
|
|
304
304
|
children: e.isOpen ? I("adaptercloud.customerDashboard.open", "Open") : I("adaptercloud.customerDashboard.closed", "Closed")
|
|
305
305
|
})
|
|
306
306
|
})]
|
|
@@ -312,22 +312,22 @@ function E() {
|
|
|
312
312
|
children: [/* @__PURE__ */ w("div", {
|
|
313
313
|
className: "min-w-0 flex-1",
|
|
314
314
|
children: [/* @__PURE__ */ C("h3", {
|
|
315
|
-
className: "text-sm font-semibold text-
|
|
315
|
+
className: "text-sm font-semibold text-text-primary",
|
|
316
316
|
children: e.name
|
|
317
317
|
}), /* @__PURE__ */ C("p", {
|
|
318
|
-
className: "text-xs text-
|
|
318
|
+
className: "text-xs text-text-secondary",
|
|
319
319
|
children: e.category
|
|
320
320
|
})]
|
|
321
321
|
}), /* @__PURE__ */ w("div", {
|
|
322
322
|
className: "flex items-center gap-1 text-xs",
|
|
323
|
-
children: [/* @__PURE__ */ C(y, { className: "h-3 w-3 fill-
|
|
324
|
-
className: "font-medium text-
|
|
323
|
+
children: [/* @__PURE__ */ C(y, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), /* @__PURE__ */ C("span", {
|
|
324
|
+
className: "font-medium text-text-primary",
|
|
325
325
|
children: e.rating
|
|
326
326
|
})]
|
|
327
327
|
})]
|
|
328
328
|
}),
|
|
329
329
|
/* @__PURE__ */ w("div", {
|
|
330
|
-
className: "flex items-center gap-3 text-xs text-
|
|
330
|
+
className: "flex items-center gap-3 text-xs text-text-secondary mb-3",
|
|
331
331
|
children: [/* @__PURE__ */ w("span", {
|
|
332
332
|
className: "flex items-center gap-1",
|
|
333
333
|
children: [
|
|
@@ -348,7 +348,7 @@ function E() {
|
|
|
348
348
|
type: "button",
|
|
349
349
|
disabled: !e.isOpen,
|
|
350
350
|
onClick: () => e.isOpen && E(`/customer/carts/${e.id}`),
|
|
351
|
-
className: t("w-full rounded-lg py-2 text-sm font-medium transition-opacity", e.isOpen ? "bg-foreground text-background hover:opacity-90" : "bg-
|
|
351
|
+
className: t("w-full rounded-lg py-2 text-sm font-medium transition-opacity", e.isOpen ? "bg-foreground text-background hover:opacity-90" : "bg-bg-sunken text-text-secondary cursor-not-allowed"),
|
|
352
352
|
children: e.isOpen ? I("adaptercloud.customerDashboard.viewMenu", "View Menu") : I("adaptercloud.customerDashboard.currentlyClosed", "Currently Closed")
|
|
353
353
|
})
|
|
354
354
|
]
|
|
@@ -360,9 +360,9 @@ function E() {
|
|
|
360
360
|
className: "space-y-6",
|
|
361
361
|
children: [
|
|
362
362
|
/* @__PURE__ */ w("div", {
|
|
363
|
-
className: "rounded-lg border border-border bg-
|
|
363
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 bg-gloss-card shadow-pop",
|
|
364
364
|
children: [/* @__PURE__ */ C("h3", {
|
|
365
|
-
className: "text-base font-semibold text-
|
|
365
|
+
className: "text-base font-semibold text-text-primary mb-4",
|
|
366
366
|
children: I("adaptercloud.customerDashboard.personalizedRecommendations", "Personalized Recommendations")
|
|
367
367
|
}), /* @__PURE__ */ C("div", {
|
|
368
368
|
className: "space-y-3",
|
|
@@ -403,9 +403,9 @@ function E() {
|
|
|
403
403
|
})]
|
|
404
404
|
}),
|
|
405
405
|
/* @__PURE__ */ w("div", {
|
|
406
|
-
className: "rounded-lg border border-border bg-
|
|
406
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 bg-gloss-card shadow-pop",
|
|
407
407
|
children: [/* @__PURE__ */ C("h3", {
|
|
408
|
-
className: "text-base font-semibold text-
|
|
408
|
+
className: "text-base font-semibold text-text-primary mb-3",
|
|
409
409
|
children: I("adaptercloud.customerDashboard.quickLinks", "Quick Links")
|
|
410
410
|
}), /* @__PURE__ */ w("div", {
|
|
411
411
|
className: "space-y-2",
|
|
@@ -413,46 +413,46 @@ function E() {
|
|
|
413
413
|
/* @__PURE__ */ w("button", {
|
|
414
414
|
type: "button",
|
|
415
415
|
onClick: () => E("/customer/profile"),
|
|
416
|
-
className: "flex w-full items-center gap-2 rounded-lg border border-border px-3 py-2.5 text-sm text-
|
|
417
|
-
children: [/* @__PURE__ */ C(x, { className: "h-4 w-4 text-
|
|
416
|
+
className: "flex w-full items-center gap-2 rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary hover:bg-accent transition-colors text-left",
|
|
417
|
+
children: [/* @__PURE__ */ C(x, { className: "h-4 w-4 text-text-secondary" }), I("adaptercloud.customerDashboard.profileSettings", "Profile Settings")]
|
|
418
418
|
}),
|
|
419
419
|
/* @__PURE__ */ w("button", {
|
|
420
420
|
type: "button",
|
|
421
421
|
onClick: () => E("/customer/addresses"),
|
|
422
|
-
className: "flex w-full items-center gap-2 rounded-lg border border-border px-3 py-2.5 text-sm text-
|
|
423
|
-
children: [/* @__PURE__ */ C(m, { className: "h-4 w-4 text-
|
|
422
|
+
className: "flex w-full items-center gap-2 rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary hover:bg-accent transition-colors text-left",
|
|
423
|
+
children: [/* @__PURE__ */ C(m, { className: "h-4 w-4 text-text-secondary" }), I("adaptercloud.customerDashboard.savedAddresses", "Saved Addresses")]
|
|
424
424
|
}),
|
|
425
425
|
/* @__PURE__ */ w("button", {
|
|
426
426
|
type: "button",
|
|
427
427
|
onClick: () => E("/customer/payment-methods"),
|
|
428
|
-
className: "flex w-full items-center gap-2 rounded-lg border border-border px-3 py-2.5 text-sm text-
|
|
429
|
-
children: [/* @__PURE__ */ C(d, { className: "h-4 w-4 text-
|
|
428
|
+
className: "flex w-full items-center gap-2 rounded-lg border border-border-subtle px-3 py-2.5 text-sm text-text-primary hover:bg-accent transition-colors text-left",
|
|
429
|
+
children: [/* @__PURE__ */ C(d, { className: "h-4 w-4 text-text-secondary" }), I("adaptercloud.customerDashboard.paymentMethods", "Payment Methods")]
|
|
430
430
|
})
|
|
431
431
|
]
|
|
432
432
|
})]
|
|
433
433
|
}),
|
|
434
434
|
/* @__PURE__ */ w("div", {
|
|
435
|
-
className: "rounded-lg border border-border bg-
|
|
435
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 bg-gloss-card shadow-pop",
|
|
436
436
|
children: [
|
|
437
437
|
/* @__PURE__ */ C("h3", {
|
|
438
|
-
className: "text-base font-semibold text-
|
|
438
|
+
className: "text-base font-semibold text-text-primary mb-3",
|
|
439
439
|
children: I("adaptercloud.customerDashboard.currentLocation", "Current Location")
|
|
440
440
|
}),
|
|
441
441
|
/* @__PURE__ */ w("div", {
|
|
442
442
|
className: "flex items-start gap-3",
|
|
443
|
-
children: [/* @__PURE__ */ C(h, { className: "h-4 w-4 text-blue
|
|
443
|
+
children: [/* @__PURE__ */ C(h, { className: "h-4 w-4 text-accent-blue mt-0.5 shrink-0" }), /* @__PURE__ */ w("div", {
|
|
444
444
|
className: "flex-1 min-w-0",
|
|
445
445
|
children: [
|
|
446
446
|
/* @__PURE__ */ C("p", {
|
|
447
|
-
className: "text-sm font-medium text-
|
|
447
|
+
className: "text-sm font-medium text-text-primary",
|
|
448
448
|
children: "Koramangala"
|
|
449
449
|
}),
|
|
450
450
|
/* @__PURE__ */ C("p", {
|
|
451
|
-
className: "text-xs text-
|
|
451
|
+
className: "text-xs text-text-secondary",
|
|
452
452
|
children: "80 Feet Road, 6th Block"
|
|
453
453
|
}),
|
|
454
454
|
/* @__PURE__ */ C("p", {
|
|
455
|
-
className: "text-xs text-
|
|
455
|
+
className: "text-xs text-text-secondary",
|
|
456
456
|
children: "Bangalore, Karnataka"
|
|
457
457
|
})
|
|
458
458
|
]
|
|
@@ -461,20 +461,20 @@ function E() {
|
|
|
461
461
|
/* @__PURE__ */ C("button", {
|
|
462
462
|
type: "button",
|
|
463
463
|
onClick: () => E("/customer/addresses"),
|
|
464
|
-
className: "mt-3 w-full rounded-lg border border-border px-3 py-2 text-xs font-medium text-
|
|
464
|
+
className: "mt-3 w-full rounded-lg border border-border-subtle px-3 py-2 text-xs font-medium text-text-primary hover:bg-accent transition-colors",
|
|
465
465
|
children: I("adaptercloud.customerDashboard.updateLocation", "Update Location")
|
|
466
466
|
})
|
|
467
467
|
]
|
|
468
468
|
}),
|
|
469
469
|
/* @__PURE__ */ w("div", {
|
|
470
|
-
className: "rounded-lg bg-gradient-to-r from-blue
|
|
470
|
+
className: "rounded-lg bg-gradient-to-r from-accent-blue/10 to-accent-purple/10 border border-accent-blue-subtle/20 p-5",
|
|
471
471
|
children: [
|
|
472
472
|
/* @__PURE__ */ C("h3", {
|
|
473
|
-
className: "text-base font-semibold text-
|
|
473
|
+
className: "text-base font-semibold text-text-primary mb-2",
|
|
474
474
|
children: I("adaptercloud.customerDashboard.specialOffers", "Special Offers")
|
|
475
475
|
}),
|
|
476
476
|
/* @__PURE__ */ C("p", {
|
|
477
|
-
className: "text-xs text-
|
|
477
|
+
className: "text-xs text-text-secondary mb-3 leading-relaxed",
|
|
478
478
|
children: I("adaptercloud.customerDashboard.specialOffersDescription", "Get 25% off on your next order from featured carts")
|
|
479
479
|
}),
|
|
480
480
|
/* @__PURE__ */ C("button", {
|