@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,10 +1,10 @@
|
|
|
1
|
-
import { A as e, N as t, d as n, f as r, g as i, h as a, i as o, it as s, l as c, u as l } from "./PageLayout-
|
|
2
|
-
import { n as u, t as d } from "./route-
|
|
3
|
-
import { t as f } from "./circle-alert-
|
|
4
|
-
import { t as p } from "./trending-up-
|
|
1
|
+
import { A as e, N as t, d as n, f as r, g as i, h as a, i as o, it as s, l as c, u as l } from "./PageLayout-D3N8MCTm.js";
|
|
2
|
+
import { n as u, t as d } from "./route-Dp9JiN_E.js";
|
|
3
|
+
import { t as f } from "./circle-alert-DjmNo5_L.js";
|
|
4
|
+
import { t as p } from "./trending-up-C-85AwGT.js";
|
|
5
5
|
import { useState as m } from "react";
|
|
6
6
|
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
7
|
-
//#region
|
|
7
|
+
//#region node_modules/lucide-react/dist/esm/icons/lightbulb.js
|
|
8
8
|
var _ = s("Lightbulb", [
|
|
9
9
|
["path", {
|
|
10
10
|
d: "M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",
|
|
@@ -120,7 +120,7 @@ function b() {
|
|
|
120
120
|
children: x.map((e, t) => /* @__PURE__ */ h("div", {
|
|
121
121
|
className: `flex ${e.role === "user" ? "justify-end" : "justify-start"}`,
|
|
122
122
|
children: /* @__PURE__ */ h("div", {
|
|
123
|
-
className: `max-w-[80%] p-3 rounded-lg ${e.role === "user" ? "bg-primary text-primary-
|
|
123
|
+
className: `max-w-[80%] p-3 rounded-lg ${e.role === "user" ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken"}`,
|
|
124
124
|
children: /* @__PURE__ */ h("p", {
|
|
125
125
|
className: "whitespace-pre-line text-sm",
|
|
126
126
|
children: e.content
|
|
@@ -183,7 +183,7 @@ function b() {
|
|
|
183
183
|
}, t))
|
|
184
184
|
}) })] }),
|
|
185
185
|
/* @__PURE__ */ h(n, {
|
|
186
|
-
className: "bg-primary/5 border-primary/20",
|
|
186
|
+
className: "bg-action-primary-bg/5 border-primary/20",
|
|
187
187
|
children: /* @__PURE__ */ h(r, {
|
|
188
188
|
className: "p-4",
|
|
189
189
|
children: /* @__PURE__ */ g("div", {
|
|
@@ -195,7 +195,7 @@ function b() {
|
|
|
195
195
|
className: "font-medium text-sm",
|
|
196
196
|
children: "Pro Tip"
|
|
197
197
|
}), /* @__PURE__ */ h("p", {
|
|
198
|
-
className: "text-xs text-
|
|
198
|
+
className: "text-xs text-text-secondary",
|
|
199
199
|
children: "You can ask complex questions like \"What would happen if I added 2 more vehicles to my fleet?\" for scenario analysis."
|
|
200
200
|
})] })]
|
|
201
201
|
})
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { M as e, d as t, f as n, g as r, h as i, i as a } from "./PageLayout-
|
|
2
|
-
import { t as o } from "./chart-column-
|
|
3
|
-
import { t as s } from "./dollar-sign-
|
|
4
|
-
import { t as c } from "./package-
|
|
5
|
-
import { t as l } from "./trending-up-
|
|
6
|
-
import { t as u } from "./truck-
|
|
7
|
-
import { t as d } from "./users-
|
|
1
|
+
import { M as e, d as t, f as n, g as r, h as i, i as a } from "./PageLayout-D3N8MCTm.js";
|
|
2
|
+
import { t as o } from "./chart-column-D1Ym15-S.js";
|
|
3
|
+
import { t as s } from "./dollar-sign-IB4O0wuQ.js";
|
|
4
|
+
import { t as c } from "./package-BE7U0wQE.js";
|
|
5
|
+
import { t as l } from "./trending-up-C-85AwGT.js";
|
|
6
|
+
import { t as u } from "./truck-CtDjNFbi.js";
|
|
7
|
+
import { t as d } from "./users-g2N0eL-Z.js";
|
|
8
8
|
import { i as f, r as p, t as m } from "./useAnalytics-ph7eTIK6.js";
|
|
9
|
-
import { r as h, t as g } from "./MetricCard-
|
|
9
|
+
import { r as h, t as g } from "./MetricCard-B7yMyvMX.js";
|
|
10
10
|
import { n as _ } from "./formatters-_vJlC-47.js";
|
|
11
11
|
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
12
12
|
//#region src/movethewheels/pages/AnalyticsPage.tsx
|
|
@@ -58,9 +58,9 @@ function b() {
|
|
|
58
58
|
/* @__PURE__ */ y("div", {
|
|
59
59
|
className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
|
|
60
60
|
children: [/* @__PURE__ */ y(t, { children: [/* @__PURE__ */ v(i, { children: /* @__PURE__ */ v(r, { children: "Order Trends" }) }), /* @__PURE__ */ y(n, { children: [/* @__PURE__ */ v("div", {
|
|
61
|
-
className: "h-64 flex items-center justify-center bg-
|
|
61
|
+
className: "h-64 flex items-center justify-center bg-bg-sunken/50 rounded-lg",
|
|
62
62
|
children: /* @__PURE__ */ y("div", {
|
|
63
|
-
className: "text-center text-
|
|
63
|
+
className: "text-center text-text-secondary",
|
|
64
64
|
children: [
|
|
65
65
|
/* @__PURE__ */ v(o, {
|
|
66
66
|
size: 48,
|
|
@@ -76,9 +76,9 @@ function b() {
|
|
|
76
76
|
}), /* @__PURE__ */ v("div", {
|
|
77
77
|
className: "mt-4 grid grid-cols-4 gap-2",
|
|
78
78
|
children: x.trends.slice(-4).map((e) => /* @__PURE__ */ y("div", {
|
|
79
|
-
className: "text-center p-2 bg-
|
|
79
|
+
className: "text-center p-2 bg-bg-sunken/50 rounded",
|
|
80
80
|
children: [/* @__PURE__ */ v("p", {
|
|
81
|
-
className: "text-xs text-
|
|
81
|
+
className: "text-xs text-text-secondary",
|
|
82
82
|
children: e.date.split("-").slice(1).join("/")
|
|
83
83
|
}), /* @__PURE__ */ v("p", {
|
|
84
84
|
className: "font-medium",
|
|
@@ -86,9 +86,9 @@ function b() {
|
|
|
86
86
|
})]
|
|
87
87
|
}, e.date))
|
|
88
88
|
})] })] }), /* @__PURE__ */ y(t, { children: [/* @__PURE__ */ v(i, { children: /* @__PURE__ */ v(r, { children: "Revenue Trends" }) }), /* @__PURE__ */ y(n, { children: [/* @__PURE__ */ v("div", {
|
|
89
|
-
className: "h-64 flex items-center justify-center bg-
|
|
89
|
+
className: "h-64 flex items-center justify-center bg-bg-sunken/50 rounded-lg",
|
|
90
90
|
children: /* @__PURE__ */ y("div", {
|
|
91
|
-
className: "text-center text-
|
|
91
|
+
className: "text-center text-text-secondary",
|
|
92
92
|
children: [/* @__PURE__ */ v(l, {
|
|
93
93
|
size: 48,
|
|
94
94
|
className: "mx-auto mb-2 opacity-50"
|
|
@@ -97,9 +97,9 @@ function b() {
|
|
|
97
97
|
}), /* @__PURE__ */ v("div", {
|
|
98
98
|
className: "mt-4 grid grid-cols-5 gap-2",
|
|
99
99
|
children: b.trends.revenue.map((e) => /* @__PURE__ */ y("div", {
|
|
100
|
-
className: "text-center p-2 bg-
|
|
100
|
+
className: "text-center p-2 bg-bg-sunken/50 rounded",
|
|
101
101
|
children: [/* @__PURE__ */ v("p", {
|
|
102
|
-
className: "text-xs text-
|
|
102
|
+
className: "text-xs text-text-secondary",
|
|
103
103
|
children: e.month
|
|
104
104
|
}), /* @__PURE__ */ y("p", {
|
|
105
105
|
className: "font-medium text-sm",
|
|
@@ -144,7 +144,7 @@ function b() {
|
|
|
144
144
|
/* @__PURE__ */ y("div", {
|
|
145
145
|
className: "pt-2",
|
|
146
146
|
children: [/* @__PURE__ */ v("p", {
|
|
147
|
-
className: "text-sm text-
|
|
147
|
+
className: "text-sm text-text-secondary mb-2",
|
|
148
148
|
children: "Vehicles by Type"
|
|
149
149
|
}), S.vehiclesByType.map(({ type: e, count: t }) => /* @__PURE__ */ y("div", {
|
|
150
150
|
className: "flex justify-between text-sm py-1",
|
|
@@ -163,28 +163,28 @@ function b() {
|
|
|
163
163
|
className: "space-y-4",
|
|
164
164
|
children: [
|
|
165
165
|
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
166
|
-
className: "text-sm text-
|
|
166
|
+
className: "text-sm text-text-secondary",
|
|
167
167
|
children: "On-Time Pickup"
|
|
168
168
|
}), /* @__PURE__ */ y("p", {
|
|
169
169
|
className: "text-2xl font-bold",
|
|
170
170
|
children: [b.performance.onTimePickup, "%"]
|
|
171
171
|
})] }),
|
|
172
172
|
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
173
|
-
className: "text-sm text-
|
|
173
|
+
className: "text-sm text-text-secondary",
|
|
174
174
|
children: "On-Time Delivery"
|
|
175
175
|
}), /* @__PURE__ */ y("p", {
|
|
176
176
|
className: "text-2xl font-bold",
|
|
177
177
|
children: [b.performance.onTimeDelivery, "%"]
|
|
178
178
|
})] }),
|
|
179
179
|
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
180
|
-
className: "text-sm text-
|
|
180
|
+
className: "text-sm text-text-secondary",
|
|
181
181
|
children: "Damaged Items"
|
|
182
182
|
}), /* @__PURE__ */ y("p", {
|
|
183
183
|
className: "text-2xl font-bold text-green-600",
|
|
184
184
|
children: [b.performance.damagedItems, "%"]
|
|
185
185
|
})] }),
|
|
186
186
|
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
187
|
-
className: "text-sm text-
|
|
187
|
+
className: "text-sm text-text-secondary",
|
|
188
188
|
children: "Driver Ratings"
|
|
189
189
|
}), /* @__PURE__ */ y("p", {
|
|
190
190
|
className: "text-2xl font-bold",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as e, F as t, I as n, L as r, P as i, Q as a, R as o, d as s, f as c, g as l, h as u, i as d, it as f, j as p, u as m, z as h } from "./PageLayout-
|
|
2
|
-
import { t as g } from "./arrow-left-
|
|
3
|
-
import { t as _ } from "./package-
|
|
4
|
-
import { t as v } from "./plus-
|
|
5
|
-
import { t as y } from "./save-
|
|
1
|
+
import { A as e, F as t, I as n, L as r, P as i, Q as a, R as o, d as s, f as c, g as l, h as u, i as d, it as f, j as p, u as m, z as h } from "./PageLayout-D3N8MCTm.js";
|
|
2
|
+
import { t as g } from "./arrow-left-CBpZKkpq.js";
|
|
3
|
+
import { t as _ } from "./package-BE7U0wQE.js";
|
|
4
|
+
import { t as v } from "./plus-Dl1rLeJR.js";
|
|
5
|
+
import { t as y } from "./save-XH8vydOn.js";
|
|
6
6
|
import { r as b } from "./graphqlClient-CdJyR_ed.js";
|
|
7
7
|
import { r as x, t as S } from "./useOrders-D_3_hGMp.js";
|
|
8
8
|
import { r as C } from "./useCustomers-bS3a4ytk.js";
|
|
@@ -10,7 +10,7 @@ import { t as w } from "./navigation-BgnOfsVd.js";
|
|
|
10
10
|
import { useState as T } from "react";
|
|
11
11
|
import { useParams as E } from "react-router-dom";
|
|
12
12
|
import { jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
13
|
-
//#region
|
|
13
|
+
//#region node_modules/lucide-react/dist/esm/icons/trash-2.js
|
|
14
14
|
var k = f("Trash2", [
|
|
15
15
|
["path", {
|
|
16
16
|
d: "M3 6h18",
|
|
@@ -389,7 +389,7 @@ function A() {
|
|
|
389
389
|
children: [/* @__PURE__ */ D(v, { size: 16 }), "Add Item"]
|
|
390
390
|
})]
|
|
391
391
|
}), /* @__PURE__ */ D(c, { children: I.items.length === 0 ? /* @__PURE__ */ O("div", {
|
|
392
|
-
className: "text-center py-8 text-
|
|
392
|
+
className: "text-center py-8 text-text-secondary",
|
|
393
393
|
children: [
|
|
394
394
|
/* @__PURE__ */ D(_, {
|
|
395
395
|
size: 48,
|
|
@@ -449,7 +449,7 @@ function A() {
|
|
|
449
449
|
type: "button",
|
|
450
450
|
variant: "ghost",
|
|
451
451
|
size: "icon",
|
|
452
|
-
className: "text-
|
|
452
|
+
className: "text-status-error-text",
|
|
453
453
|
onClick: () => G(n),
|
|
454
454
|
children: /* @__PURE__ */ D(k, { size: 16 })
|
|
455
455
|
})
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { d as e, f as t, g as n, h as r, i, it 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 "./file-text-
|
|
4
|
-
import { n as f, t as p } from "./phone-
|
|
5
|
-
import { t as m } from "./map-pin-
|
|
6
|
-
import { t as h } from "./square-pen-
|
|
7
|
-
import { t as g } from "./star-
|
|
8
|
-
import { t as _ } from "./users-
|
|
1
|
+
import { d as e, f as t, g as n, h as r, i, it 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 "./file-text-C8Uioy11.js";
|
|
4
|
+
import { n as f, t as p } from "./phone-DV4StZiA.js";
|
|
5
|
+
import { t as m } from "./map-pin-BSaf5IDL.js";
|
|
6
|
+
import { t as h } from "./square-pen-hLIbFQFV.js";
|
|
7
|
+
import { t as g } from "./star-YsVV3MNQ.js";
|
|
8
|
+
import { t as _ } from "./users-g2N0eL-Z.js";
|
|
9
9
|
import { r as v } from "./graphqlClient-CdJyR_ed.js";
|
|
10
10
|
import { t as y } from "./useCustomers-bS3a4ytk.js";
|
|
11
|
-
import { i as b } from "./StatusBadge-
|
|
11
|
+
import { i as b } from "./StatusBadge-CijYQXtb.js";
|
|
12
12
|
import { r as x, t as S } from "./formatters-_vJlC-47.js";
|
|
13
13
|
import { t as C } from "./navigation-BgnOfsVd.js";
|
|
14
14
|
import { useParams as w } from "react-router-dom";
|
|
15
15
|
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
16
|
-
//#region
|
|
16
|
+
//#region node_modules/lucide-react/dist/esm/icons/building.js
|
|
17
17
|
var D = a("Building", [
|
|
18
18
|
["rect", {
|
|
19
19
|
width: "16",
|
|
@@ -117,9 +117,9 @@ function O() {
|
|
|
117
117
|
className: "flex items-center gap-3",
|
|
118
118
|
children: [/* @__PURE__ */ T(f, {
|
|
119
119
|
size: 18,
|
|
120
|
-
className: "text-
|
|
120
|
+
className: "text-text-secondary"
|
|
121
121
|
}), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
122
|
-
className: "text-sm text-
|
|
122
|
+
className: "text-sm text-text-secondary",
|
|
123
123
|
children: "Email"
|
|
124
124
|
}), /* @__PURE__ */ T("p", {
|
|
125
125
|
className: "font-medium",
|
|
@@ -129,9 +129,9 @@ function O() {
|
|
|
129
129
|
className: "flex items-center gap-3",
|
|
130
130
|
children: [/* @__PURE__ */ T(p, {
|
|
131
131
|
size: 18,
|
|
132
|
-
className: "text-
|
|
132
|
+
className: "text-text-secondary"
|
|
133
133
|
}), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
134
|
-
className: "text-sm text-
|
|
134
|
+
className: "text-sm text-text-secondary",
|
|
135
135
|
children: "Phone"
|
|
136
136
|
}), /* @__PURE__ */ T("p", {
|
|
137
137
|
className: "font-medium",
|
|
@@ -144,16 +144,16 @@ function O() {
|
|
|
144
144
|
className: "flex items-center gap-3",
|
|
145
145
|
children: [/* @__PURE__ */ T(D, {
|
|
146
146
|
size: 18,
|
|
147
|
-
className: "text-
|
|
147
|
+
className: "text-text-secondary"
|
|
148
148
|
}), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
149
|
-
className: "text-sm text-
|
|
149
|
+
className: "text-sm text-text-secondary",
|
|
150
150
|
children: "Company"
|
|
151
151
|
}), /* @__PURE__ */ T("p", {
|
|
152
152
|
className: "font-medium",
|
|
153
153
|
children: A.company
|
|
154
154
|
})] })]
|
|
155
155
|
}), A.website && /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
156
|
-
className: "text-sm text-
|
|
156
|
+
className: "text-sm text-text-secondary",
|
|
157
157
|
children: "Website"
|
|
158
158
|
}), /* @__PURE__ */ T("a", {
|
|
159
159
|
href: A.website,
|
|
@@ -177,28 +177,28 @@ function O() {
|
|
|
177
177
|
className: "space-y-3",
|
|
178
178
|
children: [
|
|
179
179
|
A.businessLicense && /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
180
|
-
className: "text-sm text-
|
|
180
|
+
className: "text-sm text-text-secondary",
|
|
181
181
|
children: "Business License"
|
|
182
182
|
}), /* @__PURE__ */ T("p", {
|
|
183
183
|
className: "font-mono",
|
|
184
184
|
children: A.businessLicense
|
|
185
185
|
})] }),
|
|
186
186
|
A.taxId && /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
187
|
-
className: "text-sm text-
|
|
187
|
+
className: "text-sm text-text-secondary",
|
|
188
188
|
children: "Tax ID"
|
|
189
189
|
}), /* @__PURE__ */ T("p", {
|
|
190
190
|
className: "font-mono",
|
|
191
191
|
children: A.taxId
|
|
192
192
|
})] }),
|
|
193
193
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
194
|
-
className: "text-sm text-
|
|
194
|
+
className: "text-sm text-text-secondary",
|
|
195
195
|
children: "Preferred Contact"
|
|
196
196
|
}), /* @__PURE__ */ T("p", {
|
|
197
197
|
className: "capitalize",
|
|
198
198
|
children: A.preferredContactMethod
|
|
199
199
|
})] }),
|
|
200
200
|
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
201
|
-
className: "text-sm text-
|
|
201
|
+
className: "text-sm text-text-secondary",
|
|
202
202
|
children: "Marketing Opt-in"
|
|
203
203
|
}), /* @__PURE__ */ T(o, {
|
|
204
204
|
variant: A.marketingOptIn ? "default" : "secondary",
|
|
@@ -208,10 +208,10 @@ function O() {
|
|
|
208
208
|
})] }), /* @__PURE__ */ E(e, { children: [/* @__PURE__ */ T(r, { children: /* @__PURE__ */ T(n, { children: "Account Info" }) }), /* @__PURE__ */ E(t, {
|
|
209
209
|
className: "space-y-3",
|
|
210
210
|
children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
211
|
-
className: "text-sm text-
|
|
211
|
+
className: "text-sm text-text-secondary",
|
|
212
212
|
children: "Created"
|
|
213
213
|
}), /* @__PURE__ */ T("p", { children: x(A.createdAt, "full") })] }), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
214
|
-
className: "text-sm text-
|
|
214
|
+
className: "text-sm text-text-secondary",
|
|
215
215
|
children: "Last Updated"
|
|
216
216
|
}), /* @__PURE__ */ T("p", { children: x(A.updatedAt, "relative") })] })]
|
|
217
217
|
})] })]
|
|
@@ -229,7 +229,7 @@ function O() {
|
|
|
229
229
|
children: /* @__PURE__ */ T(e, { children: /* @__PURE__ */ T(t, {
|
|
230
230
|
className: "p-8 text-center",
|
|
231
231
|
children: /* @__PURE__ */ T("p", {
|
|
232
|
-
className: "text-
|
|
232
|
+
className: "text-text-secondary",
|
|
233
233
|
children: "Customer creation form would go here"
|
|
234
234
|
})
|
|
235
235
|
}) })
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { i as e, l as t, o as n, s as r } from "./PageLayout-D3N8MCTm.js";
|
|
2
|
+
import { t as i } from "./DataTable-CfWvFw5B.js";
|
|
3
|
+
import { t as a } from "./download-Dpa9vqoG.js";
|
|
4
|
+
import { t as o } from "./plus-Dl1rLeJR.js";
|
|
5
|
+
import { t as s } from "./refresh-cw-CWfERAit.js";
|
|
6
|
+
import { t as c } from "./star-YsVV3MNQ.js";
|
|
7
|
+
import { t as l } from "./users-g2N0eL-Z.js";
|
|
8
|
+
import { r as u } from "./graphqlClient-CdJyR_ed.js";
|
|
9
|
+
import { r as d } from "./useCustomers-bS3a4ytk.js";
|
|
10
|
+
import { i as f } from "./StatusBadge-CijYQXtb.js";
|
|
11
|
+
import { r as p } from "./formatters-_vJlC-47.js";
|
|
12
|
+
import { t as m } from "./navigation-BgnOfsVd.js";
|
|
13
|
+
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
14
|
+
import { CTAOverflowMenu as _ } from "@burdenoff/fe-libs/ui";
|
|
15
|
+
//#region src/movethewheels/pages/CustomersPage.tsx
|
|
16
|
+
function v() {
|
|
17
|
+
let { basePath: v, navigate: y } = u(), { customers: b, totalCustomers: x, isLoading: S, refetch: C } = d({ limit: 100 }), w = (e) => y?.(m(v, e));
|
|
18
|
+
return /* @__PURE__ */ h(e, {
|
|
19
|
+
title: "Customers",
|
|
20
|
+
subtitle: `${x} customers`,
|
|
21
|
+
icon: /* @__PURE__ */ h(l, { size: 24 }),
|
|
22
|
+
headerActions: /* @__PURE__ */ h(_, {
|
|
23
|
+
primary: {
|
|
24
|
+
label: "Add Customer",
|
|
25
|
+
icon: /* @__PURE__ */ h(o, { size: 16 }),
|
|
26
|
+
onSelect: () => w("customers/new")
|
|
27
|
+
},
|
|
28
|
+
actions: [{
|
|
29
|
+
label: "Refresh",
|
|
30
|
+
icon: /* @__PURE__ */ h(s, { size: 16 }),
|
|
31
|
+
onSelect: () => C()
|
|
32
|
+
}, {
|
|
33
|
+
label: "Export",
|
|
34
|
+
icon: /* @__PURE__ */ h(a, { size: 16 }),
|
|
35
|
+
onSelect: () => {}
|
|
36
|
+
}]
|
|
37
|
+
}),
|
|
38
|
+
children: /* @__PURE__ */ h(i, {
|
|
39
|
+
columns: [
|
|
40
|
+
{
|
|
41
|
+
id: "customer",
|
|
42
|
+
header: "Customer",
|
|
43
|
+
cell: (e) => /* @__PURE__ */ g("div", {
|
|
44
|
+
className: "flex items-center gap-3",
|
|
45
|
+
children: [/* @__PURE__ */ h(n, { children: /* @__PURE__ */ h(r, { children: e.name.split(" ").map((e) => e[0]).join("") }) }), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
46
|
+
className: "font-medium",
|
|
47
|
+
children: e.name
|
|
48
|
+
}), /* @__PURE__ */ h("p", {
|
|
49
|
+
className: "text-sm text-text-secondary",
|
|
50
|
+
children: e.email
|
|
51
|
+
})] })]
|
|
52
|
+
})
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: "type",
|
|
56
|
+
header: "Type",
|
|
57
|
+
accessorKey: "type",
|
|
58
|
+
cell: (e) => /* @__PURE__ */ h(f, { type: e.type })
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
id: "company",
|
|
62
|
+
header: "Company",
|
|
63
|
+
accessorKey: "company",
|
|
64
|
+
cell: (e) => e.company || "-"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
id: "phone",
|
|
68
|
+
header: "Phone",
|
|
69
|
+
accessorKey: "phone"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: "location",
|
|
73
|
+
header: "Location",
|
|
74
|
+
cell: (e) => `${e.address.city}, ${e.address.state}`
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: "rating",
|
|
78
|
+
header: "Rating",
|
|
79
|
+
cell: (e) => /* @__PURE__ */ g("div", {
|
|
80
|
+
className: "flex items-center gap-1",
|
|
81
|
+
children: [/* @__PURE__ */ h(c, {
|
|
82
|
+
size: 14,
|
|
83
|
+
className: "text-yellow-500 fill-yellow-500"
|
|
84
|
+
}), /* @__PURE__ */ h("span", { children: e.rating.toFixed(1) })]
|
|
85
|
+
})
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
id: "status",
|
|
89
|
+
header: "Status",
|
|
90
|
+
cell: (e) => /* @__PURE__ */ h(t, {
|
|
91
|
+
variant: e.isActive ? "default" : "secondary",
|
|
92
|
+
children: e.isActive ? "Active" : "Inactive"
|
|
93
|
+
})
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
id: "created",
|
|
97
|
+
header: "Created",
|
|
98
|
+
accessorKey: "createdAt",
|
|
99
|
+
sortable: !0,
|
|
100
|
+
cell: (e) => p(e.createdAt, "short")
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
data: b,
|
|
104
|
+
isLoading: S,
|
|
105
|
+
searchable: !0,
|
|
106
|
+
searchPlaceholder: "Search customers...",
|
|
107
|
+
searchFields: [
|
|
108
|
+
"name",
|
|
109
|
+
"email",
|
|
110
|
+
"company"
|
|
111
|
+
],
|
|
112
|
+
onRowClick: (e) => w(`customers/${e.id}`),
|
|
113
|
+
getRowId: (e) => e.id
|
|
114
|
+
})
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
//#endregion
|
|
118
|
+
export { v as default };
|