@burdenoff/microfe-kadaikodi 2026.608.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.
Files changed (103) hide show
  1. package/dist/kadaikodi/components/EmptyState.js +8 -21
  2. package/dist/kadaikodi/components/EmptyState.js.map +1 -1
  3. package/dist/kadaikodi/components/InvestmentCard.js +30 -28
  4. package/dist/kadaikodi/components/InvestmentCard.js.map +1 -1
  5. package/dist/kadaikodi/components/MetricsCard.js +18 -15
  6. package/dist/kadaikodi/components/MetricsCard.js.map +1 -1
  7. package/dist/kadaikodi/components/PageLayout.js +29 -19
  8. package/dist/kadaikodi/components/PageLayout.js.map +1 -1
  9. package/dist/kadaikodi/components/RatingDisplay.js +3 -3
  10. package/dist/kadaikodi/components/RatingDisplay.js.map +1 -1
  11. package/dist/kadaikodi/components/StatusBadge.js +28 -15
  12. package/dist/kadaikodi/components/StatusBadge.js.map +1 -1
  13. package/dist/kadaikodi/pages/HomePage.js +89 -88
  14. package/dist/kadaikodi/pages/HomePage.js.map +1 -1
  15. package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.js +88 -87
  16. package/dist/kadaikodi/pages/admin/AdminAnalyticsPage.js.map +1 -1
  17. package/dist/kadaikodi/pages/admin/AdminDashboard.js +174 -180
  18. package/dist/kadaikodi/pages/admin/AdminDashboard.js.map +1 -1
  19. package/dist/kadaikodi/pages/admin/AdminFinancialPage.js +48 -48
  20. package/dist/kadaikodi/pages/admin/AdminFinancialPage.js.map +1 -1
  21. package/dist/kadaikodi/pages/admin/AdminOrdersPage.js +95 -95
  22. package/dist/kadaikodi/pages/admin/AdminOrdersPage.js.map +1 -1
  23. package/dist/kadaikodi/pages/admin/AdminProfilePage.js +34 -34
  24. package/dist/kadaikodi/pages/admin/AdminProfilePage.js.map +1 -1
  25. package/dist/kadaikodi/pages/admin/AdminSettingsPage.js +40 -40
  26. package/dist/kadaikodi/pages/admin/AdminSettingsPage.js.map +1 -1
  27. package/dist/kadaikodi/pages/admin/CartManagementPage.js +103 -103
  28. package/dist/kadaikodi/pages/admin/CartManagementPage.js.map +1 -1
  29. package/dist/kadaikodi/pages/admin/UserManagementPage.js +98 -98
  30. package/dist/kadaikodi/pages/admin/UserManagementPage.js.map +1 -1
  31. package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js +117 -117
  32. package/dist/kadaikodi/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
  33. package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.js +33 -33
  34. package/dist/kadaikodi/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
  35. package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js +109 -109
  36. package/dist/kadaikodi/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
  37. package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.js +115 -115
  38. package/dist/kadaikodi/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
  39. package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.js +84 -84
  40. package/dist/kadaikodi/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
  41. package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js +106 -106
  42. package/dist/kadaikodi/pages/cart-owner/InventoryManagementPage.js.map +1 -1
  43. package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js +88 -88
  44. package/dist/kadaikodi/pages/cart-owner/OrderManagementPage.js.map +1 -1
  45. package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.js +94 -94
  46. package/dist/kadaikodi/pages/cart-owner/StaffManagementPage.js.map +1 -1
  47. package/dist/kadaikodi/pages/common/HelpSupportPage.js +138 -138
  48. package/dist/kadaikodi/pages/common/HelpSupportPage.js.map +1 -1
  49. package/dist/kadaikodi/pages/common/NotificationCenterPage.js +67 -66
  50. package/dist/kadaikodi/pages/common/NotificationCenterPage.js.map +1 -1
  51. package/dist/kadaikodi/pages/common/SettingsPage.js +115 -115
  52. package/dist/kadaikodi/pages/common/SettingsPage.js.map +1 -1
  53. package/dist/kadaikodi/pages/customer/BookingDetailsPage.js +72 -72
  54. package/dist/kadaikodi/pages/customer/BookingDetailsPage.js.map +1 -1
  55. package/dist/kadaikodi/pages/customer/CartDetailPage.js +85 -85
  56. package/dist/kadaikodi/pages/customer/CartDetailPage.js.map +1 -1
  57. package/dist/kadaikodi/pages/customer/CartDiscoveryPage.js +65 -64
  58. package/dist/kadaikodi/pages/customer/CartDiscoveryPage.js.map +1 -1
  59. package/dist/kadaikodi/pages/customer/CheckoutPage.js +80 -80
  60. package/dist/kadaikodi/pages/customer/CheckoutPage.js.map +1 -1
  61. package/dist/kadaikodi/pages/customer/CustomerDashboard.js +88 -88
  62. package/dist/kadaikodi/pages/customer/CustomerDashboard.js.map +1 -1
  63. package/dist/kadaikodi/pages/customer/CustomerProfilePage.js +84 -84
  64. package/dist/kadaikodi/pages/customer/CustomerProfilePage.js.map +1 -1
  65. package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.js +91 -91
  66. package/dist/kadaikodi/pages/customer/DirectServiceBookingPage.js.map +1 -1
  67. package/dist/kadaikodi/pages/customer/FavoritesPage.js +34 -33
  68. package/dist/kadaikodi/pages/customer/FavoritesPage.js.map +1 -1
  69. package/dist/kadaikodi/pages/customer/OrderHistoryPage.js +43 -43
  70. package/dist/kadaikodi/pages/customer/OrderHistoryPage.js.map +1 -1
  71. package/dist/kadaikodi/pages/customer/OrderTrackingPage.js +60 -60
  72. package/dist/kadaikodi/pages/customer/OrderTrackingPage.js.map +1 -1
  73. package/dist/kadaikodi/pages/customer/PaymentMethodsPage.js +58 -57
  74. package/dist/kadaikodi/pages/customer/PaymentMethodsPage.js.map +1 -1
  75. package/dist/kadaikodi/pages/customer/ReviewsPage.js +47 -47
  76. package/dist/kadaikodi/pages/customer/ReviewsPage.js.map +1 -1
  77. package/dist/kadaikodi/pages/customer/SavedAddressesPage.js +46 -45
  78. package/dist/kadaikodi/pages/customer/SavedAddressesPage.js.map +1 -1
  79. package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.js +128 -128
  80. package/dist/kadaikodi/pages/investor/InvestmentDetailsPage.js.map +1 -1
  81. package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js +87 -87
  82. package/dist/kadaikodi/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
  83. package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.js +89 -88
  84. package/dist/kadaikodi/pages/investor/InvestorAnalyticsPage.js.map +1 -1
  85. package/dist/kadaikodi/pages/investor/InvestorDashboard.js +63 -62
  86. package/dist/kadaikodi/pages/investor/InvestorDashboard.js.map +1 -1
  87. package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.js +38 -38
  88. package/dist/kadaikodi/pages/investor/InvestorInvestmentsPage.js.map +1 -1
  89. package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.js +66 -66
  90. package/dist/kadaikodi/pages/investor/InvestorPortfolioPage.js.map +1 -1
  91. package/dist/kadaikodi/pages/investor/InvestorProfilePage.js +153 -153
  92. package/dist/kadaikodi/pages/investor/InvestorProfilePage.js.map +1 -1
  93. package/dist/kadaikodi/pages/worker/TaskDetailsPage.js +79 -79
  94. package/dist/kadaikodi/pages/worker/TaskDetailsPage.js.map +1 -1
  95. package/dist/kadaikodi/pages/worker/WorkerDashboard.js +106 -106
  96. package/dist/kadaikodi/pages/worker/WorkerDashboard.js.map +1 -1
  97. package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js +72 -72
  98. package/dist/kadaikodi/pages/worker/WorkerOrdersPage.js.map +1 -1
  99. package/dist/kadaikodi/pages/worker/WorkerProfilePage.js +107 -107
  100. package/dist/kadaikodi/pages/worker/WorkerProfilePage.js.map +1 -1
  101. package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js +69 -69
  102. package/dist/kadaikodi/pages/worker/WorkerSchedulePage.js.map +1 -1
  103. package/package.json +2 -2
@@ -5,12 +5,13 @@ import { MetricsCard as r } from "../../components/MetricsCard.js";
5
5
  import { useEffect as i, useState as a } from "react";
6
6
  import { Activity as o, AlertTriangle as s, ArrowRight as c, BarChart3 as l, CheckCircle2 as u, Clock as d, CreditCard as f, Database as p, FileText as m, IndianRupee as h, Loader2 as g, Server as _, Settings as v, ShieldCheck as y, ShoppingBag as b, Store as x, UserPlus as S, Users as C, Wifi as w } from "lucide-react";
7
7
  import { jsx as T, jsxs as E } from "react/jsx-runtime";
8
+ import { CTAOverflowMenu as D, EmphasisPanel as O } from "@burdenoff/fe-libs/ui";
8
9
  //#region src/kadaikodi/pages/admin/AdminDashboard.tsx
9
- function D() {
10
- let { navigateTo: D, currentUser: O } = e(), k = O?.firstName ?? O?.name ?? "Admin", [A, j] = a(null), [M, N] = a([]), [P, F] = a(null), [I, L] = a(!0);
10
+ function k() {
11
+ let { navigateTo: k, currentUser: A } = e(), j = A?.firstName ?? A?.name ?? "Admin", [M, N] = a(null), [P, F] = a([]), [I, L] = a(null), [R, z] = a(!0);
11
12
  i(() => {
12
13
  let e = setTimeout(() => {
13
- j({
14
+ N({
14
15
  totalUsers: 12847,
15
16
  totalCarts: 2934,
16
17
  totalOrders: 45621,
@@ -19,13 +20,13 @@ function D() {
19
20
  pendingApprovals: 47,
20
21
  totalRevenue: 245e4,
21
22
  platformCommission: 122500
22
- }), F({
23
+ }), L({
23
24
  customers: 8934,
24
25
  cartOwners: 2456,
25
26
  workers: 1245,
26
27
  investors: 212,
27
28
  growth: 15.7
28
- }), N([
29
+ }), F([
29
30
  {
30
31
  id: "ACT-001",
31
32
  type: "user_registration",
@@ -76,117 +77,109 @@ function D() {
76
77
  status: "completed",
77
78
  user: "Fatima Ali"
78
79
  }
79
- ]), L(!1);
80
+ ]), z(!1);
80
81
  }, 1e3);
81
82
  return () => clearTimeout(e);
82
83
  }, []);
83
- let R = (e) => /* @__PURE__ */ T({
84
+ let B = (e) => /* @__PURE__ */ T({
84
85
  user_registration: S,
85
86
  cart_approval: x,
86
87
  investment: h,
87
88
  order: b,
88
89
  dispute: s
89
- }[e] ?? o, { className: "h-4 w-4" }), z = (e) => ({
90
- user_registration: "text-blue-600 dark:text-blue-400",
91
- cart_approval: "text-purple-600 dark:text-purple-400",
92
- investment: "text-emerald-600 dark:text-emerald-400",
93
- order: "text-green-600 dark:text-green-400",
94
- dispute: "text-yellow-600 dark:text-yellow-400"
95
- })[e] ?? "text-muted-foreground", B = (e) => ({
96
- completed: "bg-green-500/20 text-green-600 dark:text-green-400",
97
- pending: "bg-yellow-500/20 text-yellow-600 dark:text-yellow-400",
98
- failed: "bg-red-500/20 text-red-600 dark:text-red-400"
90
+ }[e] ?? o, { className: "h-4 w-4" }), V = (e) => ({
91
+ user_registration: "text-text-primary",
92
+ cart_approval: "text-text-primary",
93
+ investment: "text-status-success-text",
94
+ order: "text-status-success-text",
95
+ dispute: "text-status-warning-text"
96
+ })[e] ?? "text-text-secondary", H = (e) => ({
97
+ completed: "bg-status-success-bg-subtle text-status-success-text",
98
+ pending: "bg-status-warning-bg-subtle text-status-warning-text",
99
+ failed: "bg-status-error-bg-subtle text-status-error-text"
99
100
  })[e] ?? "bg-secondary text-secondary-foreground";
100
- return I ? /* @__PURE__ */ T(n, {
101
+ return R ? /* @__PURE__ */ T(n, {
101
102
  title: "Admin Dashboard",
102
103
  description: "Loading...",
103
104
  children: /* @__PURE__ */ E("div", {
104
105
  className: "flex flex-col items-center justify-center py-20",
105
- children: [/* @__PURE__ */ T(g, { className: "h-10 w-10 animate-spin text-muted-foreground mb-4" }), /* @__PURE__ */ T("p", {
106
- className: "text-muted-foreground",
106
+ children: [/* @__PURE__ */ T(g, { className: "h-10 w-10 animate-spin text-text-secondary mb-4" }), /* @__PURE__ */ T("p", {
107
+ className: "text-text-secondary",
107
108
  children: "Loading admin dashboard..."
108
109
  })]
109
110
  })
110
111
  }) : /* @__PURE__ */ E(n, {
111
112
  title: "Admin Dashboard",
112
- description: `Welcome, ${k}! Monitor and manage the platform.`,
113
- actions: A?.pendingApprovals && A.pendingApprovals > 0 ? /* @__PURE__ */ E("div", {
114
- className: "flex items-center gap-2 rounded-lg border border-red-500/30 bg-red-500/10 px-3 py-2",
115
- children: [/* @__PURE__ */ T(s, { className: "h-4 w-4 text-red-600 dark:text-red-400" }), /* @__PURE__ */ E("span", {
116
- className: "text-sm font-medium text-red-600 dark:text-red-400",
117
- children: [A.pendingApprovals, " pending approvals"]
113
+ description: `Welcome, ${j}! Monitor and manage the platform.`,
114
+ actions: M?.pendingApprovals && M.pendingApprovals > 0 ? /* @__PURE__ */ E("div", {
115
+ className: "flex items-center gap-2 rounded-lg border border-status-error-text/30 bg-status-error-bg-subtle px-3 py-2",
116
+ children: [/* @__PURE__ */ T(s, { className: "h-4 w-4 text-status-error-text" }), /* @__PURE__ */ E("span", {
117
+ className: "text-sm font-medium text-status-error-text",
118
+ children: [M.pendingApprovals, " pending approvals"]
118
119
  })]
119
120
  }) : void 0,
120
121
  children: [
121
- /* @__PURE__ */ E("div", {
122
+ /* @__PURE__ */ T(O, {
122
123
  className: "mb-8",
123
- children: [/* @__PURE__ */ T("h2", {
124
- className: "text-lg font-semibold text-foreground mb-4",
125
- children: "Quick Actions"
126
- }), /* @__PURE__ */ E("div", {
127
- className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3",
128
- children: [
129
- /* @__PURE__ */ E("button", {
130
- type: "button",
131
- onClick: () => D("/admin/carts"),
132
- className: "flex items-center gap-3 rounded-lg bg-red-600 hover:bg-red-700 text-white p-3 text-sm font-medium transition-colors",
133
- children: [
134
- /* @__PURE__ */ T(s, { className: "h-5 w-5" }),
135
- "Approve Carts (",
136
- A?.pendingApprovals,
137
- ")"
138
- ]
139
- }),
140
- /* @__PURE__ */ E("button", {
141
- type: "button",
142
- onClick: () => D("/admin/carts"),
143
- className: "flex items-center gap-3 rounded-lg border border-border bg-card hover:bg-accent p-3 text-sm font-medium text-foreground transition-colors",
144
- children: [/* @__PURE__ */ T(x, { className: "h-5 w-5 text-muted-foreground" }), "Manage Carts"]
145
- }),
146
- /* @__PURE__ */ E("button", {
147
- type: "button",
148
- onClick: () => D("/admin/users"),
149
- className: "flex items-center gap-3 rounded-lg border border-border bg-card hover:bg-accent p-3 text-sm font-medium text-foreground transition-colors",
150
- children: [/* @__PURE__ */ T(C, { className: "h-5 w-5 text-muted-foreground" }), "User Management"]
151
- }),
152
- /* @__PURE__ */ E("button", {
153
- type: "button",
154
- onClick: () => D("/admin/orders"),
155
- className: "flex items-center gap-3 rounded-lg border border-border bg-card hover:bg-accent p-3 text-sm font-medium text-foreground transition-colors",
156
- children: [/* @__PURE__ */ T(b, { className: "h-5 w-5 text-muted-foreground" }), "Order Management"]
157
- }),
158
- /* @__PURE__ */ E("button", {
159
- type: "button",
160
- onClick: () => D("/admin/financial"),
161
- className: "flex items-center gap-3 rounded-lg border border-border bg-card hover:bg-accent p-3 text-sm font-medium text-foreground transition-colors",
162
- children: [/* @__PURE__ */ T(h, { className: "h-5 w-5 text-muted-foreground" }), "Financial Analytics"]
163
- }),
164
- /* @__PURE__ */ E("button", {
165
- type: "button",
166
- onClick: () => D("/admin/analytics"),
167
- className: "flex items-center gap-3 rounded-lg border border-border bg-card hover:bg-accent p-3 text-sm font-medium text-foreground transition-colors",
168
- children: [/* @__PURE__ */ T(l, { className: "h-5 w-5 text-muted-foreground" }), "Analytics"]
169
- }),
170
- /* @__PURE__ */ E("button", {
171
- type: "button",
172
- onClick: () => D("/admin/settings"),
173
- className: "flex items-center gap-3 rounded-lg border border-border bg-card hover:bg-accent p-3 text-sm font-medium text-foreground transition-colors",
174
- children: [/* @__PURE__ */ T(v, { className: "h-5 w-5 text-muted-foreground" }), "Settings"]
175
- }),
176
- /* @__PURE__ */ E("button", {
177
- type: "button",
178
- onClick: () => D("/admin/analytics"),
179
- className: "flex items-center gap-3 rounded-lg border border-border bg-card hover:bg-accent p-3 text-sm font-medium text-foreground transition-colors",
180
- children: [/* @__PURE__ */ T(m, { className: "h-5 w-5 text-muted-foreground" }), "Reports"]
181
- })
182
- ]
183
- })]
124
+ children: /* @__PURE__ */ E("div", {
125
+ className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
126
+ children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h2", {
127
+ className: "text-lg font-semibold text-text-primary",
128
+ children: "Quick Actions"
129
+ }), /* @__PURE__ */ T("p", {
130
+ className: "mt-1 text-sm text-text-secondary",
131
+ children: M?.pendingApprovals ? `${M.pendingApprovals} carts awaiting your approval.` : "All caught up — nothing pending review."
132
+ })] }), /* @__PURE__ */ T(D, {
133
+ primary: {
134
+ label: `Approve Carts${M?.pendingApprovals ? ` (${M.pendingApprovals})` : ""}`,
135
+ icon: /* @__PURE__ */ T(s, { className: "h-4 w-4" }),
136
+ onSelect: () => k("/admin/carts")
137
+ },
138
+ actions: [
139
+ {
140
+ label: "Manage Carts",
141
+ icon: /* @__PURE__ */ T(x, { className: "h-4 w-4" }),
142
+ onSelect: () => k("/admin/carts")
143
+ },
144
+ {
145
+ label: "User Management",
146
+ icon: /* @__PURE__ */ T(C, { className: "h-4 w-4" }),
147
+ onSelect: () => k("/admin/users")
148
+ },
149
+ {
150
+ label: "Order Management",
151
+ icon: /* @__PURE__ */ T(b, { className: "h-4 w-4" }),
152
+ onSelect: () => k("/admin/orders")
153
+ },
154
+ {
155
+ label: "Financial Analytics",
156
+ icon: /* @__PURE__ */ T(h, { className: "h-4 w-4" }),
157
+ onSelect: () => k("/admin/financial")
158
+ },
159
+ {
160
+ label: "Analytics",
161
+ icon: /* @__PURE__ */ T(l, { className: "h-4 w-4" }),
162
+ onSelect: () => k("/admin/analytics")
163
+ },
164
+ {
165
+ label: "Settings",
166
+ icon: /* @__PURE__ */ T(v, { className: "h-4 w-4" }),
167
+ onSelect: () => k("/admin/settings")
168
+ },
169
+ {
170
+ label: "Reports",
171
+ icon: /* @__PURE__ */ T(m, { className: "h-4 w-4" }),
172
+ onSelect: () => k("/admin/analytics")
173
+ }
174
+ ]
175
+ })]
176
+ })
184
177
  }),
185
- A && /* @__PURE__ */ E("div", {
178
+ M && /* @__PURE__ */ E("div", {
186
179
  className: "mb-8",
187
180
  children: [
188
181
  /* @__PURE__ */ T("h2", {
189
- className: "text-lg font-semibold text-foreground mb-4",
182
+ className: "text-lg font-semibold text-text-primary mb-4",
190
183
  children: "Platform Overview"
191
184
  }),
192
185
  /* @__PURE__ */ E("div", {
@@ -194,28 +187,29 @@ function D() {
194
187
  children: [
195
188
  /* @__PURE__ */ T(r, {
196
189
  icon: /* @__PURE__ */ T(C, { className: "h-5 w-5" }),
197
- value: A.totalUsers.toLocaleString("en-IN"),
190
+ value: M.totalUsers.toLocaleString("en-IN"),
198
191
  label: "Total Users",
199
192
  trend: "up",
200
193
  trendValue: "+15.7%"
201
194
  }),
202
195
  /* @__PURE__ */ T(r, {
203
196
  icon: /* @__PURE__ */ T(x, { className: "h-5 w-5" }),
204
- value: A.totalCarts.toLocaleString("en-IN"),
197
+ value: M.totalCarts.toLocaleString("en-IN"),
205
198
  label: "Active Carts",
206
199
  trend: "up",
207
200
  trendValue: "+8 this week"
208
201
  }),
209
202
  /* @__PURE__ */ T(r, {
210
203
  icon: /* @__PURE__ */ T(b, { className: "h-5 w-5" }),
211
- value: A.totalOrders.toLocaleString("en-IN"),
204
+ value: M.totalOrders.toLocaleString("en-IN"),
212
205
  label: "Total Orders",
213
206
  trend: "up",
214
207
  trendValue: "+12.3%"
215
208
  }),
216
209
  /* @__PURE__ */ T(r, {
210
+ featured: !0,
217
211
  icon: /* @__PURE__ */ T(h, { className: "h-5 w-5" }),
218
- value: `₹${(A.totalRevenue / 1e5).toFixed(1)}L`,
212
+ value: `₹${(M.totalRevenue / 1e5).toFixed(1)}L`,
219
213
  label: "Total Revenue",
220
214
  trend: "up",
221
215
  trendValue: "+8.5%"
@@ -226,45 +220,45 @@ function D() {
226
220
  className: "grid grid-cols-2 lg:grid-cols-4 gap-4 mt-4",
227
221
  children: [
228
222
  /* @__PURE__ */ E("div", {
229
- className: "rounded-lg border border-border bg-card p-4",
223
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
230
224
  children: [/* @__PURE__ */ T("p", {
231
- className: "text-xs text-muted-foreground",
225
+ className: "text-xs text-text-secondary",
232
226
  children: "Active Users (24h)"
233
227
  }), /* @__PURE__ */ T("p", {
234
- className: "text-xl font-bold text-green-600 dark:text-green-400",
235
- children: A.activeUsers.toLocaleString("en-IN")
228
+ className: "text-xl font-bold text-status-success-text",
229
+ children: M.activeUsers.toLocaleString("en-IN")
236
230
  })]
237
231
  }),
238
232
  /* @__PURE__ */ E("div", {
239
- className: "rounded-lg border border-border bg-card p-4",
233
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
240
234
  children: [/* @__PURE__ */ T("p", {
241
- className: "text-xs text-muted-foreground",
235
+ className: "text-xs text-text-secondary",
242
236
  children: "Pending Approvals"
243
237
  }), /* @__PURE__ */ T("p", {
244
- className: "text-xl font-bold text-red-600 dark:text-red-400",
245
- children: A.pendingApprovals
238
+ className: "text-xl font-bold text-status-error-text",
239
+ children: M.pendingApprovals
246
240
  })]
247
241
  }),
248
242
  /* @__PURE__ */ E("div", {
249
- className: "rounded-lg border border-border bg-card p-4",
243
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
250
244
  children: [/* @__PURE__ */ T("p", {
251
- className: "text-xs text-muted-foreground",
245
+ className: "text-xs text-text-secondary",
252
246
  children: "Total Investments"
253
247
  }), /* @__PURE__ */ T("p", {
254
- className: "text-xl font-bold text-blue-600 dark:text-blue-400",
255
- children: A.totalInvestments.toLocaleString("en-IN")
248
+ className: "text-xl font-bold text-text-primary",
249
+ children: M.totalInvestments.toLocaleString("en-IN")
256
250
  })]
257
251
  }),
258
252
  /* @__PURE__ */ E("div", {
259
- className: "rounded-lg border border-border bg-card p-4",
253
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
260
254
  children: [/* @__PURE__ */ T("p", {
261
- className: "text-xs text-muted-foreground",
255
+ className: "text-xs text-text-secondary",
262
256
  children: "Platform Commission"
263
257
  }), /* @__PURE__ */ E("p", {
264
- className: "text-xl font-bold text-purple-600 dark:text-purple-400",
258
+ className: "text-xl font-bold text-text-primary",
265
259
  children: [
266
260
  "₹",
267
- (A.platformCommission / 1e3).toFixed(0),
261
+ (M.platformCommission / 1e3).toFixed(0),
268
262
  "K"
269
263
  ]
270
264
  })]
@@ -273,13 +267,13 @@ function D() {
273
267
  })
274
268
  ]
275
269
  }),
276
- P && /* @__PURE__ */ E("div", {
270
+ I && /* @__PURE__ */ E("div", {
277
271
  className: "mb-8",
278
272
  children: [/* @__PURE__ */ T("h2", {
279
- className: "text-lg font-semibold text-foreground mb-4",
273
+ className: "text-lg font-semibold text-text-primary mb-4",
280
274
  children: "User Distribution"
281
275
  }), /* @__PURE__ */ E("div", {
282
- className: "rounded-lg border border-border bg-card p-6",
276
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
283
277
  children: [/* @__PURE__ */ E("div", {
284
278
  className: "grid grid-cols-2 lg:grid-cols-4 gap-6",
285
279
  children: [
@@ -287,15 +281,15 @@ function D() {
287
281
  className: "text-center",
288
282
  children: [
289
283
  /* @__PURE__ */ T("div", {
290
- className: "text-2xl sm:text-3xl font-bold text-blue-600 dark:text-blue-400",
291
- children: P.customers.toLocaleString("en-IN")
284
+ className: "text-2xl sm:text-3xl font-bold text-text-primary",
285
+ children: I.customers.toLocaleString("en-IN")
292
286
  }),
293
287
  /* @__PURE__ */ T("div", {
294
- className: "text-sm text-muted-foreground",
288
+ className: "text-sm text-text-secondary",
295
289
  children: "Customers"
296
290
  }),
297
291
  /* @__PURE__ */ T("div", {
298
- className: "text-xs text-muted-foreground",
292
+ className: "text-xs text-text-secondary",
299
293
  children: "69.5%"
300
294
  })
301
295
  ]
@@ -304,15 +298,15 @@ function D() {
304
298
  className: "text-center",
305
299
  children: [
306
300
  /* @__PURE__ */ T("div", {
307
- className: "text-2xl sm:text-3xl font-bold text-green-600 dark:text-green-400",
308
- children: P.cartOwners.toLocaleString("en-IN")
301
+ className: "text-2xl sm:text-3xl font-bold text-status-success-text",
302
+ children: I.cartOwners.toLocaleString("en-IN")
309
303
  }),
310
304
  /* @__PURE__ */ T("div", {
311
- className: "text-sm text-muted-foreground",
305
+ className: "text-sm text-text-secondary",
312
306
  children: "Cart Owners"
313
307
  }),
314
308
  /* @__PURE__ */ T("div", {
315
- className: "text-xs text-muted-foreground",
309
+ className: "text-xs text-text-secondary",
316
310
  children: "19.1%"
317
311
  })
318
312
  ]
@@ -321,15 +315,15 @@ function D() {
321
315
  className: "text-center",
322
316
  children: [
323
317
  /* @__PURE__ */ T("div", {
324
- className: "text-2xl sm:text-3xl font-bold text-yellow-600 dark:text-yellow-400",
325
- children: P.workers.toLocaleString("en-IN")
318
+ className: "text-2xl sm:text-3xl font-bold text-status-warning-text",
319
+ children: I.workers.toLocaleString("en-IN")
326
320
  }),
327
321
  /* @__PURE__ */ T("div", {
328
- className: "text-sm text-muted-foreground",
322
+ className: "text-sm text-text-secondary",
329
323
  children: "Workers"
330
324
  }),
331
325
  /* @__PURE__ */ T("div", {
332
- className: "text-xs text-muted-foreground",
326
+ className: "text-xs text-text-secondary",
333
327
  children: "9.7%"
334
328
  })
335
329
  ]
@@ -338,32 +332,32 @@ function D() {
338
332
  className: "text-center",
339
333
  children: [
340
334
  /* @__PURE__ */ T("div", {
341
- className: "text-2xl sm:text-3xl font-bold text-purple-600 dark:text-purple-400",
342
- children: P.investors.toLocaleString("en-IN")
335
+ className: "text-2xl sm:text-3xl font-bold text-text-primary",
336
+ children: I.investors.toLocaleString("en-IN")
343
337
  }),
344
338
  /* @__PURE__ */ T("div", {
345
- className: "text-sm text-muted-foreground",
339
+ className: "text-sm text-text-secondary",
346
340
  children: "Investors"
347
341
  }),
348
342
  /* @__PURE__ */ T("div", {
349
- className: "text-xs text-muted-foreground",
343
+ className: "text-xs text-text-secondary",
350
344
  children: "1.7%"
351
345
  })
352
346
  ]
353
347
  })
354
348
  ]
355
349
  }), /* @__PURE__ */ T("div", {
356
- className: "mt-4 pt-4 border-t border-border",
350
+ className: "mt-4 pt-4 border-t border-border-subtle",
357
351
  children: /* @__PURE__ */ E("div", {
358
352
  className: "flex justify-between items-center",
359
353
  children: [/* @__PURE__ */ T("span", {
360
- className: "text-sm text-muted-foreground",
354
+ className: "text-sm text-text-secondary",
361
355
  children: "User Growth (This Month)"
362
356
  }), /* @__PURE__ */ E("span", {
363
- className: "text-sm font-medium text-green-600 dark:text-green-400",
357
+ className: "text-sm font-medium text-status-success-text",
364
358
  children: [
365
359
  "+",
366
- P.growth,
360
+ I.growth,
367
361
  "%"
368
362
  ]
369
363
  })]
@@ -376,34 +370,34 @@ function D() {
376
370
  children: [/* @__PURE__ */ E("div", {
377
371
  className: "flex items-center justify-between mb-4",
378
372
  children: [/* @__PURE__ */ T("h2", {
379
- className: "text-lg font-semibold text-foreground",
373
+ className: "text-lg font-semibold text-text-primary",
380
374
  children: "Recent Platform Activity"
381
375
  }), /* @__PURE__ */ E("button", {
382
376
  type: "button",
383
- onClick: () => D("/admin/analytics"),
384
- className: "flex items-center gap-1 text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",
377
+ onClick: () => k("/admin/analytics"),
378
+ className: "flex items-center gap-1 text-sm font-medium text-text-secondary hover:text-text-primary transition-colors",
385
379
  children: ["View all activities", /* @__PURE__ */ T(c, { className: "h-4 w-4" })]
386
380
  })]
387
381
  }), /* @__PURE__ */ T("div", {
388
- className: "rounded-lg border border-border bg-card divide-y divide-border",
389
- children: M.map((e) => /* @__PURE__ */ E("div", {
382
+ className: "rounded-lg border border-border-subtle bg-bg-surface divide-y divide-border",
383
+ children: P.map((e) => /* @__PURE__ */ E("div", {
390
384
  className: "flex items-start gap-3 px-4 py-3",
391
385
  children: [/* @__PURE__ */ T("div", {
392
- className: t("flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-muted mt-0.5", z(e.type)),
393
- children: R(e.type)
386
+ className: t("flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-bg-sunken mt-0.5", V(e.type)),
387
+ children: B(e.type)
394
388
  }), /* @__PURE__ */ E("div", {
395
389
  className: "flex-1 min-w-0",
396
390
  children: [/* @__PURE__ */ E("div", {
397
391
  className: "flex flex-col sm:flex-row sm:items-center justify-between gap-2",
398
392
  children: [/* @__PURE__ */ T("p", {
399
- className: "text-sm font-medium text-foreground",
393
+ className: "text-sm font-medium text-text-primary",
400
394
  children: e.description
401
395
  }), /* @__PURE__ */ T("span", {
402
- className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium capitalize w-fit", B(e.status)),
396
+ className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium capitalize w-fit", H(e.status)),
403
397
  children: e.status
404
398
  })]
405
399
  }), /* @__PURE__ */ E("div", {
406
- className: "flex flex-wrap items-center mt-1 text-xs text-muted-foreground gap-3",
400
+ className: "flex flex-wrap items-center mt-1 text-xs text-text-secondary gap-3",
407
401
  children: [
408
402
  /* @__PURE__ */ T("span", { children: e.timestamp }),
409
403
  e.user && /* @__PURE__ */ E("span", {
@@ -427,11 +421,11 @@ function D() {
427
421
  /* @__PURE__ */ E("div", {
428
422
  className: "grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8",
429
423
  children: [/* @__PURE__ */ E("div", {
430
- className: "rounded-lg border border-border bg-card p-6",
424
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
431
425
  children: [/* @__PURE__ */ E("div", {
432
426
  className: "flex items-center gap-2 mb-4",
433
- children: [/* @__PURE__ */ T(y, { className: "h-5 w-5 text-muted-foreground" }), /* @__PURE__ */ T("h3", {
434
- className: "text-lg font-semibold text-foreground",
427
+ children: [/* @__PURE__ */ T(y, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ T("h3", {
428
+ className: "text-lg font-semibold text-text-primary",
435
429
  children: "System Health"
436
430
  })]
437
431
  }), /* @__PURE__ */ E("div", {
@@ -441,12 +435,12 @@ function D() {
441
435
  className: "flex items-center justify-between",
442
436
  children: [/* @__PURE__ */ E("div", {
443
437
  className: "flex items-center gap-3",
444
- children: [/* @__PURE__ */ T(_, { className: "h-4 w-4 text-muted-foreground" }), /* @__PURE__ */ T("span", {
445
- className: "text-sm text-muted-foreground",
438
+ children: [/* @__PURE__ */ T(_, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ T("span", {
439
+ className: "text-sm text-text-secondary",
446
440
  children: "Server Status"
447
441
  })]
448
442
  }), /* @__PURE__ */ E("span", {
449
- className: "inline-flex items-center gap-1.5 rounded-full bg-green-500/20 px-3 py-1 text-xs font-medium text-green-600 dark:text-green-400",
443
+ className: "inline-flex items-center gap-1.5 rounded-full bg-status-success-bg-subtle px-3 py-1 text-xs font-medium text-status-success-text",
450
444
  children: [/* @__PURE__ */ T(u, { className: "h-3 w-3" }), "Healthy"]
451
445
  })]
452
446
  }),
@@ -454,12 +448,12 @@ function D() {
454
448
  className: "flex items-center justify-between",
455
449
  children: [/* @__PURE__ */ E("div", {
456
450
  className: "flex items-center gap-3",
457
- children: [/* @__PURE__ */ T(p, { className: "h-4 w-4 text-muted-foreground" }), /* @__PURE__ */ T("span", {
458
- className: "text-sm text-muted-foreground",
451
+ children: [/* @__PURE__ */ T(p, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ T("span", {
452
+ className: "text-sm text-text-secondary",
459
453
  children: "Database Performance"
460
454
  })]
461
455
  }), /* @__PURE__ */ E("span", {
462
- className: "inline-flex items-center gap-1.5 rounded-full bg-green-500/20 px-3 py-1 text-xs font-medium text-green-600 dark:text-green-400",
456
+ className: "inline-flex items-center gap-1.5 rounded-full bg-status-success-bg-subtle px-3 py-1 text-xs font-medium text-status-success-text",
463
457
  children: [/* @__PURE__ */ T(u, { className: "h-3 w-3" }), "Optimal"]
464
458
  })]
465
459
  }),
@@ -467,12 +461,12 @@ function D() {
467
461
  className: "flex items-center justify-between",
468
462
  children: [/* @__PURE__ */ E("div", {
469
463
  className: "flex items-center gap-3",
470
- children: [/* @__PURE__ */ T(f, { className: "h-4 w-4 text-muted-foreground" }), /* @__PURE__ */ T("span", {
471
- className: "text-sm text-muted-foreground",
464
+ children: [/* @__PURE__ */ T(f, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ T("span", {
465
+ className: "text-sm text-text-secondary",
472
466
  children: "Payment Gateway"
473
467
  })]
474
468
  }), /* @__PURE__ */ E("span", {
475
- className: "inline-flex items-center gap-1.5 rounded-full bg-green-500/20 px-3 py-1 text-xs font-medium text-green-600 dark:text-green-400",
469
+ className: "inline-flex items-center gap-1.5 rounded-full bg-status-success-bg-subtle px-3 py-1 text-xs font-medium text-status-success-text",
476
470
  children: [/* @__PURE__ */ T(u, { className: "h-3 w-3" }), "Online"]
477
471
  })]
478
472
  }),
@@ -480,12 +474,12 @@ function D() {
480
474
  className: "flex items-center justify-between",
481
475
  children: [/* @__PURE__ */ E("div", {
482
476
  className: "flex items-center gap-3",
483
- children: [/* @__PURE__ */ T(w, { className: "h-4 w-4 text-muted-foreground" }), /* @__PURE__ */ T("span", {
484
- className: "text-sm text-muted-foreground",
477
+ children: [/* @__PURE__ */ T(w, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ T("span", {
478
+ className: "text-sm text-text-secondary",
485
479
  children: "API Response Time"
486
480
  })]
487
481
  }), /* @__PURE__ */ T("span", {
488
- className: "text-sm font-medium text-foreground",
482
+ className: "text-sm font-medium text-text-primary",
489
483
  children: "145ms"
490
484
  })]
491
485
  }),
@@ -493,23 +487,23 @@ function D() {
493
487
  className: "flex items-center justify-between",
494
488
  children: [/* @__PURE__ */ E("div", {
495
489
  className: "flex items-center gap-3",
496
- children: [/* @__PURE__ */ T(d, { className: "h-4 w-4 text-muted-foreground" }), /* @__PURE__ */ T("span", {
497
- className: "text-sm text-muted-foreground",
490
+ children: [/* @__PURE__ */ T(d, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ T("span", {
491
+ className: "text-sm text-text-secondary",
498
492
  children: "Uptime (30 days)"
499
493
  })]
500
494
  }), /* @__PURE__ */ T("span", {
501
- className: "text-sm font-medium text-foreground",
495
+ className: "text-sm font-medium text-text-primary",
502
496
  children: "99.8%"
503
497
  })]
504
498
  })
505
499
  ]
506
500
  })]
507
501
  }), /* @__PURE__ */ E("div", {
508
- className: "rounded-lg border border-border bg-card p-6",
502
+ className: "rounded-lg border border-border-subtle bg-bg-surface p-6",
509
503
  children: [/* @__PURE__ */ E("div", {
510
504
  className: "flex items-center gap-2 mb-4",
511
- children: [/* @__PURE__ */ T(h, { className: "h-5 w-5 text-muted-foreground" }), /* @__PURE__ */ T("h3", {
512
- className: "text-lg font-semibold text-foreground",
505
+ children: [/* @__PURE__ */ T(h, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ T("h3", {
506
+ className: "text-lg font-semibold text-text-primary",
513
507
  children: "Financial Overview"
514
508
  })]
515
509
  }), /* @__PURE__ */ E("div", {
@@ -518,50 +512,50 @@ function D() {
518
512
  /* @__PURE__ */ E("div", {
519
513
  className: "flex justify-between",
520
514
  children: [/* @__PURE__ */ T("span", {
521
- className: "text-sm text-muted-foreground",
515
+ className: "text-sm text-text-secondary",
522
516
  children: "Today's Revenue"
523
517
  }), /* @__PURE__ */ T("span", {
524
- className: "font-medium text-foreground",
518
+ className: "font-medium text-text-primary",
525
519
  children: "₹1,45,230"
526
520
  })]
527
521
  }),
528
522
  /* @__PURE__ */ E("div", {
529
523
  className: "flex justify-between",
530
524
  children: [/* @__PURE__ */ T("span", {
531
- className: "text-sm text-muted-foreground",
525
+ className: "text-sm text-text-secondary",
532
526
  children: "This Month"
533
527
  }), /* @__PURE__ */ T("span", {
534
- className: "font-medium text-foreground",
528
+ className: "font-medium text-text-primary",
535
529
  children: "₹24,50,000"
536
530
  })]
537
531
  }),
538
532
  /* @__PURE__ */ E("div", {
539
533
  className: "flex justify-between",
540
534
  children: [/* @__PURE__ */ T("span", {
541
- className: "text-sm text-muted-foreground",
535
+ className: "text-sm text-text-secondary",
542
536
  children: "Platform Commission"
543
537
  }), /* @__PURE__ */ T("span", {
544
- className: "font-medium text-foreground",
538
+ className: "font-medium text-text-primary",
545
539
  children: "₹1,22,500"
546
540
  })]
547
541
  }),
548
542
  /* @__PURE__ */ E("div", {
549
543
  className: "flex justify-between",
550
544
  children: [/* @__PURE__ */ T("span", {
551
- className: "text-sm text-muted-foreground",
545
+ className: "text-sm text-text-secondary",
552
546
  children: "Active Investments"
553
547
  }), /* @__PURE__ */ T("span", {
554
- className: "font-medium text-foreground",
548
+ className: "font-medium text-text-primary",
555
549
  children: "₹1.52Cr"
556
550
  })]
557
551
  }),
558
552
  /* @__PURE__ */ E("div", {
559
553
  className: "flex justify-between",
560
554
  children: [/* @__PURE__ */ T("span", {
561
- className: "text-sm text-muted-foreground",
555
+ className: "text-sm text-text-secondary",
562
556
  children: "Pending Payouts"
563
557
  }), /* @__PURE__ */ T("span", {
564
- className: "font-medium text-foreground",
558
+ className: "font-medium text-text-primary",
565
559
  children: "₹45,600"
566
560
  })]
567
561
  })
@@ -612,18 +606,18 @@ function D() {
612
606
  let n = e.icon;
613
607
  return /* @__PURE__ */ E("button", {
614
608
  type: "button",
615
- onClick: () => D(e.path),
616
- className: t("flex items-center gap-4 rounded-lg border border-border bg-card p-4 sm:p-6 text-left shadow-sm transition-all", "hover:bg-accent hover:shadow-md"),
609
+ onClick: () => k(e.path),
610
+ className: t("flex items-center gap-4 rounded-lg border border-border-subtle bg-bg-surface p-4 sm:p-6 text-left shadow-sm transition-all", "hover:bg-accent hover:shadow-md"),
617
611
  children: [/* @__PURE__ */ T("div", {
618
- className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground",
612
+ className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-bg-sunken text-text-secondary",
619
613
  children: /* @__PURE__ */ T(n, { className: "h-5 w-5" })
620
614
  }), /* @__PURE__ */ E("div", {
621
615
  className: "min-w-0",
622
616
  children: [/* @__PURE__ */ T("h3", {
623
- className: "font-semibold text-foreground text-sm sm:text-base",
617
+ className: "font-semibold text-text-primary text-sm sm:text-base",
624
618
  children: e.label
625
619
  }), /* @__PURE__ */ T("p", {
626
- className: "text-xs sm:text-sm text-muted-foreground",
620
+ className: "text-xs sm:text-sm text-text-secondary",
627
621
  children: e.desc
628
622
  })]
629
623
  })]
@@ -634,6 +628,6 @@ function D() {
634
628
  });
635
629
  }
636
630
  //#endregion
637
- export { D as AdminDashboard };
631
+ export { k as AdminDashboard };
638
632
 
639
633
  //# sourceMappingURL=AdminDashboard.js.map