@burdenoff/microfe-movethewheels 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/{AIAssistantPage-FGGTN-DA.js → AIAssistantPage-CNyoKtID.js} +8 -8
- package/dist/{AnalyticsPage-DSLYCnln.js → AnalyticsPage-Ck615ox7.js} +21 -21
- package/dist/{CreateOrderPage-BgjA_QFT.js → CreateOrderPage-C9Vb57Yn.js} +8 -8
- package/dist/{CustomerDetailsPage-Cfvfw12U.js → CustomerDetailsPage-BVkHRZvi.js} +24 -24
- package/dist/CustomersPage-DhQg-6h_.js +118 -0
- package/dist/{DashboardPage-BeyvN3Mr.js → DashboardPage-DTmyuC11.js} +134 -127
- package/dist/{DataTable-oNjXEcUO.js → DataTable-CfWvFw5B.js} +13 -13
- package/dist/{DriverDetailsPage-DGTUZG5S.js → DriverDetailsPage-DaaCQ-2O.js} +27 -27
- package/dist/DriversPage-D0RMBB_t.js +129 -0
- package/dist/{FinancePage-Cyi75iWa.js → FinancePage-BUXqW1IM.js} +11 -11
- package/dist/{FleetPage-Dlupg1NZ.js → FleetPage-DCfOmBa2.js} +74 -73
- package/dist/{ImportExportPage-D81vnXbH.js → ImportExportPage-BM1BoRcE.js} +9 -9
- package/dist/{InventoryPage-D0u2nxRd.js → InventoryPage-BW0QXWuf.js} +68 -73
- package/dist/{LiveTrackingPage-CKIlbMBA.js → LiveTrackingPage-DqcGXdkw.js} +26 -26
- package/dist/{MarketplacePage-3NpZ0_SK.js → MarketplacePage-DFqsxNYU.js} +13 -13
- package/dist/MetricCard-B7yMyvMX.js +146 -0
- package/dist/{OrderDetailsPage-BeGWzAws.js → OrderDetailsPage-Dx1m3cVA.js} +34 -34
- package/dist/{OrdersListPage-DczM6NXa.js → OrdersListPage-DHYBGrWf.js} +78 -79
- package/dist/{PageLayout-3DR4pMQ9.js → PageLayout-D3N8MCTm.js} +628 -568
- package/dist/{ProductDetailsPage-Czcrqe2F.js → ProductDetailsPage-DOXO90kb.js} +15 -15
- package/dist/{ProductsPage-DJhdrfox.js → ProductsPage-RLMTwWN0.js} +42 -40
- package/dist/{ReportsPage-DPqE4Q3D.js → ReportsPage-Df3hciPy.js} +10 -10
- package/dist/{RouteDetailsPage-j6ZczLRT.js → RouteDetailsPage-xzFDeR-X.js} +22 -22
- package/dist/{RoutesPage-OZM7lJDi.js → RoutesPage-DDFy1QVi.js} +32 -30
- package/dist/{SettingsPage-v6vRyIAp.js → SettingsPage-JH_-UPbf.js} +7 -7
- package/dist/{StatusBadge-elLZA4Wl.js → StatusBadge-CijYQXtb.js} +5 -2
- package/dist/{TrackingPage-CBmGvTW_.js → TrackingPage-CU0Vk4mx.js} +31 -31
- package/dist/{VehicleDetailsPage-DJXYkTN2.js → VehicleDetailsPage-P4xDttKw.js} +21 -21
- package/dist/VehiclesPage-tJZ64QKV.js +129 -0
- package/dist/{WarehouseDetailsPage-nMZvp56W.js → WarehouseDetailsPage-Bt_w2Yf7.js} +19 -19
- package/dist/{WarehousesPage-BcJ_QrK3.js → WarehousesPage-HsPpEFeG.js} +40 -35
- package/dist/arrow-left-CBpZKkpq.js +11 -0
- package/dist/{box-CnErOGkD.js → box-CAaiElsb.js} +2 -2
- package/dist/{chart-column-CFT0jC9N.js → chart-column-D1Ym15-S.js} +2 -2
- package/dist/chevron-right-BIFGi0UA.js +8 -0
- package/dist/{circle-alert-B2pZQFzu.js → circle-alert-DjmNo5_L.js} +2 -2
- package/dist/circle-check-big-CjuPVo3_.js +11 -0
- package/dist/{clock-DP-76dyQ.js → clock-BjkdnddD.js} +2 -2
- package/dist/{dollar-sign-CrwqdoEC.js → dollar-sign-IB4O0wuQ.js} +2 -2
- package/dist/{download-CQqBpPk5.js → download-Dpa9vqoG.js} +2 -2
- package/dist/{file-text-CnHcsdsc.js → file-text-C8Uioy11.js} +2 -2
- package/dist/filter-Da5OZaHI.js +8 -0
- package/dist/index.js +52 -50
- package/dist/{map-qljBUQ1N.js → map-_Per4sT9.js} +2 -2
- package/dist/{map-pin-4a-IA2NP.js → map-pin-BSaf5IDL.js} +2 -2
- package/dist/navigation-DaTbrhw2.js +8 -0
- package/dist/{package-CPePjBwW.js → package-BE7U0wQE.js} +2 -2
- package/dist/{phone-2rkA8w_3.js → phone-DV4StZiA.js} +2 -2
- package/dist/plus-Dl1rLeJR.js +11 -0
- package/dist/{refresh-cw-oWEqfHnS.js → refresh-cw-CWfERAit.js} +2 -2
- package/dist/{route-DBljW-z4.js → route-Dp9JiN_E.js} +2 -2
- package/dist/{save-Cjsx5R5Y.js → save-XH8vydOn.js} +2 -2
- package/dist/search-OxoIiL_C.js +13 -0
- package/dist/{settings-CX94mtOc.js → settings-3Rw5NwFF.js} +2 -2
- package/dist/{square-pen-BIgbw83U.js → square-pen-hLIbFQFV.js} +2 -2
- package/dist/{star-BW23nRLp.js → star-YsVV3MNQ.js} +2 -2
- package/dist/{store-Cdk0UEPT.js → store-RCBl7HB-.js} +2 -2
- package/dist/{trending-up-DYQ3Xns5.js → trending-up-C-85AwGT.js} +2 -2
- package/dist/{triangle-alert-Ck_oBZ7n.js → triangle-alert-BOhfGgmh.js} +2 -2
- package/dist/{truck-Cd54agV-.js → truck-CtDjNFbi.js} +2 -2
- package/dist/{user-CUEmQUkJ.js → user-Dz5TJZFs.js} +2 -2
- package/dist/{users-e-wRlQnX.js → users-g2N0eL-Z.js} +2 -2
- package/dist/{warehouse-DXnNb4kf.js → warehouse-D3WWDeTX.js} +2 -2
- package/dist/{wrench-DYJo0U8_.js → wrench-CmxY1n4I.js} +2 -2
- package/package.json +2 -2
- package/src/dev/main.tsx +4 -4
- package/src/movethewheels/MoveTheWheelsRoutes.tsx +1 -1
- package/src/movethewheels/components/DataTable.tsx +10 -10
- package/src/movethewheels/components/MetricCard.tsx +52 -23
- package/src/movethewheels/components/PageLayout.tsx +70 -15
- package/src/movethewheels/components/StatusBadge.tsx +2 -1
- package/src/movethewheels/components/ui.tsx +3 -3
- package/src/movethewheels/pages/AIAssistantPage.tsx +3 -3
- package/src/movethewheels/pages/AnalyticsPage.tsx +13 -13
- package/src/movethewheels/pages/CreateOrderPage.tsx +2 -2
- package/src/movethewheels/pages/CustomerDetailsPage.tsx +14 -14
- package/src/movethewheels/pages/CustomersPage.tsx +14 -13
- package/src/movethewheels/pages/DashboardPage.tsx +71 -64
- package/src/movethewheels/pages/DriverDetailsPage.tsx +17 -17
- package/src/movethewheels/pages/DriversPage.tsx +12 -15
- package/src/movethewheels/pages/FinancePage.tsx +4 -4
- package/src/movethewheels/pages/FleetPage.tsx +23 -18
- package/src/movethewheels/pages/ImportExportPage.tsx +5 -5
- package/src/movethewheels/pages/InventoryPage.tsx +25 -18
- package/src/movethewheels/pages/LiveTrackingPage.tsx +18 -18
- package/src/movethewheels/pages/MarketplacePage.tsx +6 -6
- package/src/movethewheels/pages/OrderDetailsPage.tsx +20 -20
- package/src/movethewheels/pages/OrdersListPage.tsx +22 -16
- package/src/movethewheels/pages/ProductDetailsPage.tsx +8 -8
- package/src/movethewheels/pages/ProductsPage.tsx +10 -13
- package/src/movethewheels/pages/ReportsPage.tsx +5 -5
- package/src/movethewheels/pages/RouteDetailsPage.tsx +13 -13
- package/src/movethewheels/pages/RoutesPage.tsx +12 -9
- package/src/movethewheels/pages/SettingsPage.tsx +2 -2
- package/src/movethewheels/pages/TrackingPage.tsx +23 -23
- package/src/movethewheels/pages/VehicleDetailsPage.tsx +13 -13
- package/src/movethewheels/pages/VehiclesPage.tsx +11 -17
- package/src/movethewheels/pages/WarehouseDetailsPage.tsx +11 -11
- package/src/movethewheels/pages/WarehousesPage.tsx +11 -12
- package/dist/CustomersPage-DXnx04Au.js +0 -119
- package/dist/DriversPage-CRursDRZ.js +0 -127
- package/dist/MetricCard-BDcT-7Ei.js +0 -135
- package/dist/VehiclesPage-r_snhuEj.js +0 -127
- package/dist/arrow-left-Crb7WKr1.js +0 -11
- package/dist/chevron-right-Bzo6Rr8_.js +0 -8
- package/dist/circle-check-big-R_fjEgxM.js +0 -11
- package/dist/filter-CgTF21j9.js +0 -8
- package/dist/navigation-CqRTj3vI.js +0 -8
- package/dist/plus-Dew5yoQK.js +0 -11
- package/dist/search-FWYzDbBx.js +0 -13
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { M as e, d as t, f as n, g as r, h as i, i as a, l as o, n as s, r as c, u as l } from "./PageLayout-
|
|
2
|
-
import { t as u } from "./arrow-left-
|
|
3
|
-
import { t as d } from "./clock-
|
|
4
|
-
import { t as f } from "./dollar-sign-
|
|
5
|
-
import { t as p } from "./file-text-
|
|
6
|
-
import { t as m } from "./map-pin-
|
|
7
|
-
import { t as h } from "./square-pen-
|
|
8
|
-
import { t as g } from "./star-
|
|
9
|
-
import { t as _ } from "./users-
|
|
1
|
+
import { M as e, d as t, f as n, g as r, h as i, i as a, l as o, n as s, r as c, u as l } from "./PageLayout-D3N8MCTm.js";
|
|
2
|
+
import { t as u } from "./arrow-left-CBpZKkpq.js";
|
|
3
|
+
import { t as d } from "./clock-BjkdnddD.js";
|
|
4
|
+
import { t as f } from "./dollar-sign-IB4O0wuQ.js";
|
|
5
|
+
import { t as p } from "./file-text-C8Uioy11.js";
|
|
6
|
+
import { t as m } from "./map-pin-BSaf5IDL.js";
|
|
7
|
+
import { t as h } from "./square-pen-hLIbFQFV.js";
|
|
8
|
+
import { t as g } from "./star-YsVV3MNQ.js";
|
|
9
|
+
import { t as _ } from "./users-g2N0eL-Z.js";
|
|
10
10
|
import { r as v } from "./graphqlClient-CdJyR_ed.js";
|
|
11
11
|
import { t as y } from "./useFleet-BdETplNE.js";
|
|
12
|
-
import { r as b } from "./StatusBadge-
|
|
12
|
+
import { r as b } from "./StatusBadge-CijYQXtb.js";
|
|
13
13
|
import { n as x, r as S } from "./formatters-_vJlC-47.js";
|
|
14
14
|
import { t as C } from "./navigation-BgnOfsVd.js";
|
|
15
15
|
import { useParams as w } from "react-router-dom";
|
|
@@ -49,7 +49,7 @@ function D() {
|
|
|
49
49
|
children: A.ratings.overall.toFixed(1)
|
|
50
50
|
}),
|
|
51
51
|
/* @__PURE__ */ E("span", {
|
|
52
|
-
className: "text-
|
|
52
|
+
className: "text-text-secondary",
|
|
53
53
|
children: [
|
|
54
54
|
"(",
|
|
55
55
|
A.ratings.totalRatings,
|
|
@@ -91,7 +91,7 @@ function D() {
|
|
|
91
91
|
value: A.ratings.onTimeDelivery
|
|
92
92
|
}
|
|
93
93
|
].map((t) => /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
94
|
-
className: "text-sm text-
|
|
94
|
+
className: "text-sm text-text-secondary",
|
|
95
95
|
children: t.label
|
|
96
96
|
}), /* @__PURE__ */ E("div", {
|
|
97
97
|
className: "flex items-center gap-2 mt-1",
|
|
@@ -111,7 +111,7 @@ function D() {
|
|
|
111
111
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4",
|
|
112
112
|
children: [
|
|
113
113
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
114
|
-
className: "text-sm text-
|
|
114
|
+
className: "text-sm text-text-secondary",
|
|
115
115
|
children: "Shift"
|
|
116
116
|
}), /* @__PURE__ */ E("p", {
|
|
117
117
|
className: "font-medium",
|
|
@@ -122,14 +122,14 @@ function D() {
|
|
|
122
122
|
]
|
|
123
123
|
})] }),
|
|
124
124
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
125
|
-
className: "text-sm text-
|
|
125
|
+
className: "text-sm text-text-secondary",
|
|
126
126
|
children: "Working Days"
|
|
127
127
|
}), /* @__PURE__ */ E("p", {
|
|
128
128
|
className: "font-medium",
|
|
129
129
|
children: [A.workingHours.workingDays.length, " days/week"]
|
|
130
130
|
})] }),
|
|
131
131
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
132
|
-
className: "text-sm text-
|
|
132
|
+
className: "text-sm text-text-secondary",
|
|
133
133
|
children: "Hours Today"
|
|
134
134
|
}), /* @__PURE__ */ E("p", {
|
|
135
135
|
className: "font-medium",
|
|
@@ -141,7 +141,7 @@ function D() {
|
|
|
141
141
|
]
|
|
142
142
|
})] }),
|
|
143
143
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
144
|
-
className: "text-sm text-
|
|
144
|
+
className: "text-sm text-text-secondary",
|
|
145
145
|
children: "Hours This Week"
|
|
146
146
|
}), /* @__PURE__ */ E("p", {
|
|
147
147
|
className: "font-medium",
|
|
@@ -168,7 +168,7 @@ function D() {
|
|
|
168
168
|
children: "Driver's License"
|
|
169
169
|
}),
|
|
170
170
|
/* @__PURE__ */ E("p", {
|
|
171
|
-
className: "text-sm text-
|
|
171
|
+
className: "text-sm text-text-secondary",
|
|
172
172
|
children: [
|
|
173
173
|
A.licenseNumber,
|
|
174
174
|
" - ",
|
|
@@ -176,7 +176,7 @@ function D() {
|
|
|
176
176
|
]
|
|
177
177
|
}),
|
|
178
178
|
/* @__PURE__ */ E("p", {
|
|
179
|
-
className: "text-sm text-
|
|
179
|
+
className: "text-sm text-text-secondary",
|
|
180
180
|
children: ["Expires: ", S(A.licenseExpiry)]
|
|
181
181
|
})
|
|
182
182
|
] }), /* @__PURE__ */ T(o, {
|
|
@@ -189,7 +189,7 @@ function D() {
|
|
|
189
189
|
className: "font-medium capitalize",
|
|
190
190
|
children: e.type.replace("_", " ")
|
|
191
191
|
}), /* @__PURE__ */ E("p", {
|
|
192
|
-
className: "text-sm text-
|
|
192
|
+
className: "text-sm text-text-secondary",
|
|
193
193
|
children: ["Expires: ", S(e.expiryDate)]
|
|
194
194
|
})] }), /* @__PURE__ */ T(o, {
|
|
195
195
|
variant: e.verified ? "default" : "secondary",
|
|
@@ -205,21 +205,21 @@ function D() {
|
|
|
205
205
|
className: "space-y-4",
|
|
206
206
|
children: [
|
|
207
207
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
208
|
-
className: "text-sm text-
|
|
208
|
+
className: "text-sm text-text-secondary",
|
|
209
209
|
children: "Total Deliveries"
|
|
210
210
|
}), /* @__PURE__ */ T("p", {
|
|
211
211
|
className: "text-2xl font-bold",
|
|
212
212
|
children: A.completedOrders.toLocaleString()
|
|
213
213
|
})] }),
|
|
214
214
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
215
|
-
className: "text-sm text-
|
|
215
|
+
className: "text-sm text-text-secondary",
|
|
216
216
|
children: "Today's Deliveries"
|
|
217
217
|
}), /* @__PURE__ */ T("p", {
|
|
218
218
|
className: "text-2xl font-bold",
|
|
219
219
|
children: A.todayOrders
|
|
220
220
|
})] }),
|
|
221
221
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
222
|
-
className: "text-sm text-
|
|
222
|
+
className: "text-sm text-text-secondary",
|
|
223
223
|
children: "Join Date"
|
|
224
224
|
}), /* @__PURE__ */ T("p", {
|
|
225
225
|
className: "font-medium",
|
|
@@ -234,7 +234,7 @@ function D() {
|
|
|
234
234
|
className: "space-y-3",
|
|
235
235
|
children: [
|
|
236
236
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
237
|
-
className: "text-sm text-
|
|
237
|
+
className: "text-sm text-text-secondary",
|
|
238
238
|
children: "Total Earnings"
|
|
239
239
|
}), /* @__PURE__ */ T("p", {
|
|
240
240
|
className: "text-2xl font-bold",
|
|
@@ -243,13 +243,13 @@ function D() {
|
|
|
243
243
|
/* @__PURE__ */ E("div", {
|
|
244
244
|
className: "grid grid-cols-2 gap-3",
|
|
245
245
|
children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
246
|
-
className: "text-sm text-
|
|
246
|
+
className: "text-sm text-text-secondary",
|
|
247
247
|
children: "This Week"
|
|
248
248
|
}), /* @__PURE__ */ T("p", {
|
|
249
249
|
className: "font-medium",
|
|
250
250
|
children: x(A.earnings.weeklyEarnings)
|
|
251
251
|
})] }), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
252
|
-
className: "text-sm text-
|
|
252
|
+
className: "text-sm text-text-secondary",
|
|
253
253
|
children: "This Month"
|
|
254
254
|
}), /* @__PURE__ */ T("p", {
|
|
255
255
|
className: "font-medium",
|
|
@@ -257,7 +257,7 @@ function D() {
|
|
|
257
257
|
})] })]
|
|
258
258
|
}),
|
|
259
259
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
260
|
-
className: "text-sm text-
|
|
260
|
+
className: "text-sm text-text-secondary",
|
|
261
261
|
children: "Base Salary"
|
|
262
262
|
}), /* @__PURE__ */ E("p", {
|
|
263
263
|
className: "font-medium",
|
|
@@ -272,7 +272,7 @@ function D() {
|
|
|
272
272
|
className: "text-sm",
|
|
273
273
|
children: A.currentLocation.address || "Location updating..."
|
|
274
274
|
}), /* @__PURE__ */ E("p", {
|
|
275
|
-
className: "text-xs text-
|
|
275
|
+
className: "text-xs text-text-secondary mt-1",
|
|
276
276
|
children: ["Updated ", S(A.currentLocation.timestamp || /* @__PURE__ */ new Date(), "relative")]
|
|
277
277
|
})] })] }),
|
|
278
278
|
/* @__PURE__ */ E(t, { children: [/* @__PURE__ */ T(i, { children: /* @__PURE__ */ T(r, { children: "Compliance Status" }) }), /* @__PURE__ */ T(n, {
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { i as e, o as t, s as n } from "./PageLayout-D3N8MCTm.js";
|
|
2
|
+
import { t as r } from "./DataTable-CfWvFw5B.js";
|
|
3
|
+
import { t as i } from "./download-Dpa9vqoG.js";
|
|
4
|
+
import { t as a } from "./plus-Dl1rLeJR.js";
|
|
5
|
+
import { t as o } from "./refresh-cw-CWfERAit.js";
|
|
6
|
+
import { t as s } from "./star-YsVV3MNQ.js";
|
|
7
|
+
import { t as c } from "./users-g2N0eL-Z.js";
|
|
8
|
+
import { r as l } from "./graphqlClient-CdJyR_ed.js";
|
|
9
|
+
import { n as u } from "./useFleet-BdETplNE.js";
|
|
10
|
+
import { r as d } from "./StatusBadge-CijYQXtb.js";
|
|
11
|
+
import { r as f } from "./formatters-_vJlC-47.js";
|
|
12
|
+
import { t as p } from "./navigation-BgnOfsVd.js";
|
|
13
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
14
|
+
import { CTAOverflowMenu as g } from "@burdenoff/fe-libs/ui";
|
|
15
|
+
//#region src/movethewheels/pages/DriversPage.tsx
|
|
16
|
+
function _() {
|
|
17
|
+
let { basePath: _, navigate: v } = l(), { drivers: y, totalDrivers: b, isLoading: x, refetch: S } = u(), C = (e) => v?.(p(_, e));
|
|
18
|
+
return /* @__PURE__ */ m(e, {
|
|
19
|
+
title: "Drivers",
|
|
20
|
+
subtitle: `${b} drivers`,
|
|
21
|
+
icon: /* @__PURE__ */ m(c, { size: 24 }),
|
|
22
|
+
headerActions: /* @__PURE__ */ m(g, {
|
|
23
|
+
primary: {
|
|
24
|
+
label: "Add Driver",
|
|
25
|
+
icon: /* @__PURE__ */ m(a, { size: 16 }),
|
|
26
|
+
onSelect: () => {}
|
|
27
|
+
},
|
|
28
|
+
actions: [{
|
|
29
|
+
label: "Refresh",
|
|
30
|
+
icon: /* @__PURE__ */ m(o, { size: 16 }),
|
|
31
|
+
onSelect: () => S()
|
|
32
|
+
}, {
|
|
33
|
+
label: "Export",
|
|
34
|
+
icon: /* @__PURE__ */ m(i, { size: 16 }),
|
|
35
|
+
onSelect: () => {}
|
|
36
|
+
}]
|
|
37
|
+
}),
|
|
38
|
+
children: /* @__PURE__ */ m(r, {
|
|
39
|
+
columns: [
|
|
40
|
+
{
|
|
41
|
+
id: "driver",
|
|
42
|
+
header: "Driver",
|
|
43
|
+
cell: (e) => /* @__PURE__ */ h("div", {
|
|
44
|
+
className: "flex items-center gap-3",
|
|
45
|
+
children: [/* @__PURE__ */ m(t, { children: /* @__PURE__ */ m(n, { children: e.fullName.split(" ").map((e) => e[0]).join("") }) }), /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("p", {
|
|
46
|
+
className: "font-medium",
|
|
47
|
+
children: e.fullName
|
|
48
|
+
}), /* @__PURE__ */ m("p", {
|
|
49
|
+
className: "text-sm text-text-secondary",
|
|
50
|
+
children: e.employeeId
|
|
51
|
+
})] })]
|
|
52
|
+
})
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: "status",
|
|
56
|
+
header: "Status",
|
|
57
|
+
accessorKey: "status",
|
|
58
|
+
sortable: !0,
|
|
59
|
+
cell: (e) => /* @__PURE__ */ m(d, {
|
|
60
|
+
status: e.status,
|
|
61
|
+
type: "driver"
|
|
62
|
+
})
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
id: "rating",
|
|
66
|
+
header: "Rating",
|
|
67
|
+
cell: (e) => /* @__PURE__ */ h("div", {
|
|
68
|
+
className: "flex items-center gap-1",
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ m(s, {
|
|
71
|
+
size: 14,
|
|
72
|
+
className: "text-yellow-500 fill-yellow-500"
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ m("span", {
|
|
75
|
+
className: "font-medium",
|
|
76
|
+
children: e.ratings.overall.toFixed(1)
|
|
77
|
+
}),
|
|
78
|
+
/* @__PURE__ */ h("span", {
|
|
79
|
+
className: "text-text-secondary text-sm",
|
|
80
|
+
children: [
|
|
81
|
+
"(",
|
|
82
|
+
e.ratings.totalRatings,
|
|
83
|
+
")"
|
|
84
|
+
]
|
|
85
|
+
})
|
|
86
|
+
]
|
|
87
|
+
})
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
id: "deliveries",
|
|
91
|
+
header: "Deliveries",
|
|
92
|
+
accessorKey: "completedOrders",
|
|
93
|
+
sortable: !0,
|
|
94
|
+
cell: (e) => /* @__PURE__ */ m("span", {
|
|
95
|
+
className: "font-medium",
|
|
96
|
+
children: e.completedOrders.toLocaleString()
|
|
97
|
+
})
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
id: "license",
|
|
101
|
+
header: "License",
|
|
102
|
+
cell: (e) => /* @__PURE__ */ h("div", {
|
|
103
|
+
className: "text-sm",
|
|
104
|
+
children: [/* @__PURE__ */ m("p", { children: e.licenseType }), /* @__PURE__ */ h("p", {
|
|
105
|
+
className: "text-text-secondary",
|
|
106
|
+
children: ["Exp: ", f(e.licenseExpiry, "short")]
|
|
107
|
+
})]
|
|
108
|
+
})
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
id: "joined",
|
|
112
|
+
header: "Join Date",
|
|
113
|
+
accessorKey: "joinDate",
|
|
114
|
+
sortable: !0,
|
|
115
|
+
cell: (e) => f(e.joinDate, "short")
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
data: y,
|
|
119
|
+
isLoading: x,
|
|
120
|
+
searchable: !0,
|
|
121
|
+
searchPlaceholder: "Search drivers...",
|
|
122
|
+
searchFields: ["fullName", "employeeId"],
|
|
123
|
+
onRowClick: (e) => C(`fleet/drivers/${e.id}`),
|
|
124
|
+
getRowId: (e) => e.id
|
|
125
|
+
})
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
//#endregion
|
|
129
|
+
export { _ as default };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { d as e, f as t, g as n, h as r, i, it as a, u as o } from "./PageLayout-
|
|
2
|
-
import { t as s } from "./dollar-sign-
|
|
3
|
-
import { t as c } from "./download-
|
|
4
|
-
import { t as l } from "./file-text-
|
|
5
|
-
import { t as u } from "./trending-up-
|
|
1
|
+
import { d as e, f as t, g as n, h as r, i, it as a, u as o } from "./PageLayout-D3N8MCTm.js";
|
|
2
|
+
import { t as s } from "./dollar-sign-IB4O0wuQ.js";
|
|
3
|
+
import { t as c } from "./download-Dpa9vqoG.js";
|
|
4
|
+
import { t as l } from "./file-text-C8Uioy11.js";
|
|
5
|
+
import { t as u } from "./trending-up-C-85AwGT.js";
|
|
6
6
|
import { n as d } from "./useOrders-D_3_hGMp.js";
|
|
7
7
|
import { t as f } from "./useAnalytics-ph7eTIK6.js";
|
|
8
|
-
import { r as p, t as m } from "./MetricCard-
|
|
8
|
+
import { r as p, t as m } from "./MetricCard-B7yMyvMX.js";
|
|
9
9
|
import { n as h } from "./formatters-_vJlC-47.js";
|
|
10
10
|
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
11
|
-
//#region
|
|
11
|
+
//#region node_modules/lucide-react/dist/esm/icons/credit-card.js
|
|
12
12
|
var v = a("CreditCard", [["rect", {
|
|
13
13
|
width: "20",
|
|
14
14
|
height: "14",
|
|
@@ -77,7 +77,7 @@ function y() {
|
|
|
77
77
|
children: [/* @__PURE__ */ _(e, { children: [/* @__PURE__ */ g(r, { children: /* @__PURE__ */ g(n, { children: "Revenue by Month" }) }), /* @__PURE__ */ g(t, { children: /* @__PURE__ */ g("div", {
|
|
78
78
|
className: "space-y-4",
|
|
79
79
|
children: a.trends.revenue.map((e) => /* @__PURE__ */ _("div", {
|
|
80
|
-
className: "flex items-center justify-between p-3 bg-
|
|
80
|
+
className: "flex items-center justify-between p-3 bg-bg-sunken/50 rounded-lg",
|
|
81
81
|
children: [/* @__PURE__ */ _("span", {
|
|
82
82
|
className: "font-medium",
|
|
83
83
|
children: [e.month, " 2024"]
|
|
@@ -102,7 +102,7 @@ function y() {
|
|
|
102
102
|
className: "font-medium",
|
|
103
103
|
children: "Paid"
|
|
104
104
|
}), /* @__PURE__ */ _("p", {
|
|
105
|
-
className: "text-sm text-
|
|
105
|
+
className: "text-sm text-text-secondary",
|
|
106
106
|
children: [y.byStatus.delivered, " orders"]
|
|
107
107
|
})] })]
|
|
108
108
|
}), /* @__PURE__ */ g("span", {
|
|
@@ -123,7 +123,7 @@ function y() {
|
|
|
123
123
|
className: "font-medium",
|
|
124
124
|
children: "Pending"
|
|
125
125
|
}), /* @__PURE__ */ _("p", {
|
|
126
|
-
className: "text-sm text-
|
|
126
|
+
className: "text-sm text-text-secondary",
|
|
127
127
|
children: [y.byStatus.pending + y.byStatus.in_transit, " orders"]
|
|
128
128
|
})] })]
|
|
129
129
|
}), /* @__PURE__ */ g("span", {
|
|
@@ -134,7 +134,7 @@ function y() {
|
|
|
134
134
|
}) })] })]
|
|
135
135
|
}),
|
|
136
136
|
/* @__PURE__ */ _(e, { children: [/* @__PURE__ */ g(r, { children: /* @__PURE__ */ g(n, { children: "Recent Transactions" }) }), /* @__PURE__ */ g(t, { children: /* @__PURE__ */ _("div", {
|
|
137
|
-
className: "text-center py-8 text-
|
|
137
|
+
className: "text-center py-8 text-text-secondary",
|
|
138
138
|
children: [
|
|
139
139
|
/* @__PURE__ */ g(l, {
|
|
140
140
|
size: 48,
|