@burdenoff/microfe-movethewheels 2026.626.2 → 2026.703.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 (120) hide show
  1. package/dist/{AIAssistantPage-AvsMbunM.js → AIAssistantPage-C3ovZ0Fh.js} +100 -73
  2. package/dist/AnalyticsPage-O8SpY-V4.js +215 -0
  3. package/dist/{CreateOrderPage-CjlnEtk3.js → CreateOrderPage-CB1_-_mN.js} +33 -35
  4. package/dist/{CustomerDetailsPage-I6cdDHUi.js → CustomerDetailsPage-BaeKEI1D.js} +42 -44
  5. package/dist/{CustomersPage-CGGfD4ki.js → CustomersPage-DRaLuHMC.js} +26 -28
  6. package/dist/{DashboardPage-D2HRqwg9.js → DashboardPage-DPjhNfKB.js} +85 -83
  7. package/dist/{DataTable-CD9ZhpLB.js → DataTable-DmciIKKM.js} +3 -3
  8. package/dist/{DriverDetailsPage-rg_pGNuP.js → DriverDetailsPage-CSSQTOzn.js} +52 -54
  9. package/dist/{DriversPage-DKiynISH.js → DriversPage-C2Bk0w4Q.js} +24 -26
  10. package/dist/{FinancePage-Vg8WPs38.js → FinancePage-lmp0Sdsw.js} +9 -9
  11. package/dist/FleetPage-DZn5pIqd.js +365 -0
  12. package/dist/ImportExportPage-BIUJZc7O.js +290 -0
  13. package/dist/InventoryPage-Cxh1zYJd.js +253 -0
  14. package/dist/{LiveTrackingPage-DQ1q4Id3.js → LiveTrackingPage-BY1yAkIt.js} +60 -56
  15. package/dist/MarketplacePage-RMuL17EA.js +247 -0
  16. package/dist/{MetricCard-B7yMyvMX.js → MetricCard-7aYgzZHK.js} +1 -1
  17. package/dist/{OrderDetailsPage-CFASgsYX.js → OrderDetailsPage-C2Mf4KSy.js} +83 -85
  18. package/dist/{OrdersListPage-BHeT8S5o.js → OrdersListPage-BrPBtnhp.js} +31 -33
  19. package/dist/{PageLayout-D3N8MCTm.js → PageLayout-D4LDHJJq.js} +483 -422
  20. package/dist/{ProductDetailsPage-CFGcbaHo.js → ProductDetailsPage-CezzzZcj.js} +27 -29
  21. package/dist/{ProductsPage--xEpbQ8A.js → ProductsPage-I5DilIoY.js} +21 -23
  22. package/dist/ReportsPage-BDXNmUng.js +284 -0
  23. package/dist/RouteDetailsPage-BcomL20M.js +263 -0
  24. package/dist/RoutesPage-lqX9ylHP.js +144 -0
  25. package/dist/SettingsPage-CQVIOaNs.js +421 -0
  26. package/dist/StatusBadge-NpTeHVlw.js +152 -0
  27. package/dist/{TrackingPage-CcRc_dva.js → TrackingPage-BXrjz7V8.js} +59 -61
  28. package/dist/{VehicleDetailsPage-3YDMPsPs.js → VehicleDetailsPage-DZjLcJgr.js} +40 -42
  29. package/dist/{VehiclesPage-UlxPWP9K.js → VehiclesPage-6W39XT5W.js} +19 -21
  30. package/dist/{WarehouseDetailsPage-Db7KeN-d.js → WarehouseDetailsPage-C10pgRGW.js} +38 -40
  31. package/dist/{WarehousesPage-CuTO-OPp.js → WarehousesPage-CHvBqNaQ.js} +15 -17
  32. package/dist/{arrow-left-CBpZKkpq.js → arrow-left-n48Y-Wis.js} +1 -1
  33. package/dist/{box-CAaiElsb.js → box-D9Pal4HM.js} +1 -1
  34. package/dist/{chart-column-D1Ym15-S.js → chart-column-BFIJysDR.js} +1 -1
  35. package/dist/{chevron-right-BIFGi0UA.js → chevron-right-EMIIyyJ1.js} +1 -1
  36. package/dist/{circle-alert-DjmNo5_L.js → circle-alert-iY24lSlp.js} +1 -1
  37. package/dist/{circle-check-big-CjuPVo3_.js → circle-check-big-w0TrLKMF.js} +1 -1
  38. package/dist/{clock-BjkdnddD.js → clock-DJZtdl8u.js} +1 -1
  39. package/dist/{dollar-sign-IB4O0wuQ.js → dollar-sign-CgKQRz_e.js} +1 -1
  40. package/dist/{download-Dpa9vqoG.js → download-DRXxoiQR.js} +1 -1
  41. package/dist/{file-text-C8Uioy11.js → file-text-DWWY6_f5.js} +1 -1
  42. package/dist/{filter-Da5OZaHI.js → filter-DloLC2eE.js} +1 -1
  43. package/dist/index.js +119 -111
  44. package/dist/{map-_Per4sT9.js → map-CkJaULb2.js} +1 -1
  45. package/dist/{map-pin-BSaf5IDL.js → map-pin-BGiCvyCs.js} +1 -1
  46. package/dist/{navigation-DaTbrhw2.js → navigation-D36prnAn.js} +1 -1
  47. package/dist/{package-BE7U0wQE.js → package-BChUzpJS.js} +1 -1
  48. package/dist/{phone-DV4StZiA.js → phone-Ac9s3mo_.js} +1 -1
  49. package/dist/{plus-Dl1rLeJR.js → plus-Z76q-FZm.js} +1 -1
  50. package/dist/{refresh-cw-CWfERAit.js → refresh-cw-DKt6f5T6.js} +1 -1
  51. package/dist/{save-XH8vydOn.js → save-CojywNhG.js} +1 -1
  52. package/dist/{search-OxoIiL_C.js → search-CDGefqb3.js} +1 -1
  53. package/dist/{square-pen-hLIbFQFV.js → square-pen-CopE9GmB.js} +1 -1
  54. package/dist/{star-YsVV3MNQ.js → star-nHlLjDKR.js} +1 -1
  55. package/dist/{store-RCBl7HB-.js → store-BR9Voi5E.js} +1 -1
  56. package/dist/{trending-up-C-85AwGT.js → trending-up-B7W-GL6P.js} +1 -1
  57. package/dist/{triangle-alert-BOhfGgmh.js → triangle-alert-BonHFFNz.js} +1 -1
  58. package/dist/{truck-CtDjNFbi.js → truck-DrlfSpRC.js} +1 -1
  59. package/dist/{useAnalytics-ph7eTIK6.js → useAnalytics-CgdzUfY_.js} +40 -40
  60. package/dist/useAssistant-D4v3oxD3.js +84 -0
  61. package/dist/{useCustomers-bS3a4ytk.js → useCustomers-QrlozybF.js} +24 -24
  62. package/dist/{useFleet-BdETplNE.js → useFleet-DiAC-IiH.js} +70 -67
  63. package/dist/useImportExport-BLMnAKCC.js +55 -0
  64. package/dist/{useInventory-Dwn18FPz.js → useInventory-DKoks37x.js} +33 -33
  65. package/dist/{useOrders-D_3_hGMp.js → useOrders-D3UZVy8Y.js} +42 -42
  66. package/dist/useReports-Puq4DCH9.js +78 -0
  67. package/dist/{useRoutes-v4aBaS-E.js → useRoutes-Do57LvRb.js} +31 -31
  68. package/dist/useSettings-CkDH_-gM.js +81 -0
  69. package/dist/{useTracking-De2KIUNu.js → useTracking-GJify4HN.js} +22 -22
  70. package/dist/{user-Dz5TJZFs.js → user-CjSoudeu.js} +1 -1
  71. package/dist/{users-g2N0eL-Z.js → users-BAM4gHTn.js} +1 -1
  72. package/dist/{warehouse-D3WWDeTX.js → warehouse-C7MSr47B.js} +1 -1
  73. package/dist/{wrench-CmxY1n4I.js → wrench-CANXWxF-.js} +1 -1
  74. package/package.json +1 -1
  75. package/src/movethewheels/MoveTheWheelsRoutes.tsx +27 -3
  76. package/src/movethewheels/components/StatusBadge.tsx +18 -37
  77. package/src/movethewheels/constants/index.ts +67 -26
  78. package/src/movethewheels/hooks/index.ts +12 -0
  79. package/src/movethewheels/hooks/useAnalytics.ts +20 -6
  80. package/src/movethewheels/hooks/useAssistant.ts +74 -0
  81. package/src/movethewheels/hooks/useFleet.ts +63 -59
  82. package/src/movethewheels/hooks/useImportExport.ts +101 -0
  83. package/src/movethewheels/hooks/useReports.ts +158 -0
  84. package/src/movethewheels/hooks/useSettings.ts +120 -0
  85. package/src/movethewheels/pages/AIAssistantPage.tsx +53 -15
  86. package/src/movethewheels/pages/AnalyticsPage.tsx +67 -64
  87. package/src/movethewheels/pages/CustomerDetailsPage.tsx +1 -1
  88. package/src/movethewheels/pages/CustomersPage.tsx +1 -1
  89. package/src/movethewheels/pages/DashboardPage.tsx +42 -22
  90. package/src/movethewheels/pages/DriverDetailsPage.tsx +1 -1
  91. package/src/movethewheels/pages/DriversPage.tsx +1 -1
  92. package/src/movethewheels/pages/FleetPage.tsx +96 -38
  93. package/src/movethewheels/pages/ImportExportPage.tsx +174 -68
  94. package/src/movethewheels/pages/InventoryPage.tsx +66 -28
  95. package/src/movethewheels/pages/LiveTrackingPage.tsx +12 -3
  96. package/src/movethewheels/pages/MarketplacePage.tsx +87 -45
  97. package/src/movethewheels/pages/OrderDetailsPage.tsx +2 -2
  98. package/src/movethewheels/pages/ReportsPage.tsx +194 -90
  99. package/src/movethewheels/pages/RouteDetailsPage.tsx +5 -11
  100. package/src/movethewheels/pages/RoutesPage.tsx +4 -9
  101. package/src/movethewheels/pages/SettingsPage.tsx +234 -56
  102. package/src/movethewheels/pages/TrackingPage.tsx +6 -6
  103. package/src/movethewheels/providers/MoveTheWheelsProvider.tsx +7 -6
  104. package/src/movethewheels/store/movethewheelsStore.ts +1 -1
  105. package/dist/AnalyticsPage-CCLfHgQZ.js +0 -212
  106. package/dist/FleetPage-DddXt8r8.js +0 -332
  107. package/dist/ImportExportPage-BW6qO3kc.js +0 -248
  108. package/dist/InventoryPage-rMGuaJN-.js +0 -222
  109. package/dist/MarketplacePage-DKrXAv62.js +0 -219
  110. package/dist/ReportsPage-Bb7_90rK.js +0 -235
  111. package/dist/RouteDetailsPage-CVtDVb1N.js +0 -282
  112. package/dist/RoutesPage-s57PtgcQ.js +0 -163
  113. package/dist/SettingsPage-BYNCBOpN.js +0 -298
  114. package/dist/StatusBadge-CijYQXtb.js +0 -209
  115. package/dist/graphqlClient-CdJyR_ed.js +0 -55
  116. package/dist/navigation-BgnOfsVd.js +0 -6
  117. package/dist/route-Dp9JiN_E.js +0 -51
  118. package/dist/settings-3Rw5NwFF.js +0 -28
  119. package/src/movethewheels/constants/mockData.ts +0 -1342
  120. /package/dist/{formatters-_vJlC-47.js → formatters-DhKZ-eA1.js} +0 -0
@@ -1,15 +1,13 @@
1
- import { F as e, I as t, L as n, P as r, R as i, d as a, f as o, i as s, l as c, u as l } from "./PageLayout-D3N8MCTm.js";
2
- import { t as u } from "./DataTable-CD9ZhpLB.js";
3
- import { t as d } from "./download-Dpa9vqoG.js";
4
- import { t as f } from "./filter-Da5OZaHI.js";
5
- import { t as p } from "./package-BE7U0wQE.js";
6
- import { t as m } from "./plus-Dl1rLeJR.js";
7
- import { t as h } from "./refresh-cw-CWfERAit.js";
8
- import { r as g } from "./graphqlClient-CdJyR_ed.js";
9
- import { r as _ } from "./useOrders-D_3_hGMp.js";
10
- import { i as v, n as y, r as b } from "./StatusBadge-CijYQXtb.js";
11
- import { n as x, r as S } from "./formatters-_vJlC-47.js";
12
- import { t as C } from "./navigation-BgnOfsVd.js";
1
+ import { F as e, I as t, L as n, P as r, R as i, ct as a, d as o, f as s, i as c, l, ot as u, u as d } from "./PageLayout-D4LDHJJq.js";
2
+ import { t as f } from "./DataTable-DmciIKKM.js";
3
+ import { t as p } from "./download-DRXxoiQR.js";
4
+ import { t as m } from "./filter-DloLC2eE.js";
5
+ import { t as h } from "./package-BChUzpJS.js";
6
+ import { t as g } from "./plus-Z76q-FZm.js";
7
+ import { t as _ } from "./refresh-cw-DKt6f5T6.js";
8
+ import { r as v } from "./useOrders-D3UZVy8Y.js";
9
+ import { i as y, n as b, r as x } from "./StatusBadge-NpTeHVlw.js";
10
+ import { n as S, r as C } from "./formatters-DhKZ-eA1.js";
13
11
  import { useState as w } from "react";
14
12
  import { jsx as T, jsxs as E } from "react/jsx-runtime";
15
13
  import { CTAOverflowMenu as D, EmphasisPanel as O, PagePurpose as k } from "@burdenoff/fe-libs/ui";
@@ -19,14 +17,14 @@ function j() {
19
17
  let { t: j } = A(), M = (e, t) => {
20
18
  let n = j(e);
21
19
  return n === e ? t : n;
22
- }, { basePath: N, navigate: P } = g(), [F, I] = w("all"), [L, R] = w("all"), { orders: z, totalOrders: B, isLoading: V, refetch: H } = _({
20
+ }, { basePath: N, navigate: P } = u(), [F, I] = w("all"), [L, R] = w("all"), { orders: z, totalOrders: B, isLoading: V, refetch: H } = v({
23
21
  filters: {
24
22
  status: F === "all" ? void 0 : F,
25
23
  orderType: L === "all" ? void 0 : L
26
24
  },
27
25
  limit: 50
28
26
  }), U = (e) => {
29
- P && P(C(N, e));
27
+ P && P(a(N, e));
30
28
  }, W = [
31
29
  {
32
30
  id: "orderNumber",
@@ -60,7 +58,7 @@ function j() {
60
58
  accessorKey: "status",
61
59
  sortable: !0,
62
60
  className: "min-w-[130px] whitespace-nowrap",
63
- cell: (e) => /* @__PURE__ */ T(b, {
61
+ cell: (e) => /* @__PURE__ */ T(x, {
64
62
  status: e.status,
65
63
  type: "order"
66
64
  })
@@ -70,7 +68,7 @@ function j() {
70
68
  header: M("movethewheels.orders.table.type", "Type"),
71
69
  accessorKey: "orderType",
72
70
  className: "min-w-[70px] whitespace-nowrap",
73
- cell: (e) => /* @__PURE__ */ T(v, { type: e.orderType })
71
+ cell: (e) => /* @__PURE__ */ T(y, { type: e.orderType })
74
72
  },
75
73
  {
76
74
  id: "priority",
@@ -78,13 +76,13 @@ function j() {
78
76
  accessorKey: "priority",
79
77
  sortable: !0,
80
78
  className: "min-w-[90px] whitespace-nowrap",
81
- cell: (e) => /* @__PURE__ */ T(y, { priority: e.priority })
79
+ cell: (e) => /* @__PURE__ */ T(b, { priority: e.priority })
82
80
  },
83
81
  {
84
82
  id: "items",
85
83
  header: M("movethewheels.orders.table.items", "Items"),
86
84
  className: "min-w-[80px] whitespace-nowrap",
87
- cell: (e) => /* @__PURE__ */ E(c, {
85
+ cell: (e) => /* @__PURE__ */ E(l, {
88
86
  variant: "secondary",
89
87
  children: [
90
88
  e.items.length,
@@ -101,7 +99,7 @@ function j() {
101
99
  className: "min-w-[100px] whitespace-nowrap text-right",
102
100
  cell: (e) => /* @__PURE__ */ T("span", {
103
101
  className: "font-medium",
104
- children: x(e.pricing.total)
102
+ children: S(e.pricing.total)
105
103
  })
106
104
  },
107
105
  {
@@ -110,7 +108,7 @@ function j() {
110
108
  accessorKey: "scheduledDelivery",
111
109
  sortable: !0,
112
110
  className: "min-w-[110px] whitespace-nowrap",
113
- cell: (e) => e.scheduledDelivery ? S(e.scheduledDelivery) : "-"
111
+ cell: (e) => e.scheduledDelivery ? C(e.scheduledDelivery) : "-"
114
112
  },
115
113
  {
116
114
  id: "createdAt",
@@ -118,7 +116,7 @@ function j() {
118
116
  accessorKey: "createdAt",
119
117
  sortable: !0,
120
118
  className: "min-w-[100px] whitespace-nowrap",
121
- cell: (e) => S(e.createdAt, "relative")
119
+ cell: (e) => C(e.createdAt, "relative")
122
120
  }
123
121
  ], G = [
124
122
  {
@@ -162,29 +160,29 @@ function j() {
162
160
  label: M("movethewheels.orders.status.failed", "Failed")
163
161
  }
164
162
  ];
165
- return /* @__PURE__ */ E(s, {
163
+ return /* @__PURE__ */ E(c, {
166
164
  title: M("movethewheels.orders.title", "Orders"),
167
165
  subtitle: `${B} ${M("movethewheels.orders.subtitle", "total orders")}`,
168
- icon: /* @__PURE__ */ T(p, { size: 24 }),
166
+ icon: /* @__PURE__ */ T(h, { size: 24 }),
169
167
  headerActions: /* @__PURE__ */ T(D, {
170
168
  primary: {
171
169
  label: M("movethewheels.orders.actions.newOrder", "New Order"),
172
- icon: /* @__PURE__ */ T(m, { size: 16 }),
170
+ icon: /* @__PURE__ */ T(g, { size: 16 }),
173
171
  onSelect: () => U("orders/new")
174
172
  },
175
173
  actions: [{
176
174
  label: M("movethewheels.orders.actions.refresh", "Refresh"),
177
- icon: /* @__PURE__ */ T(h, { size: 16 }),
175
+ icon: /* @__PURE__ */ T(_, { size: 16 }),
178
176
  onSelect: () => H()
179
177
  }, {
180
178
  label: M("movethewheels.orders.actions.export", "Export"),
181
- icon: /* @__PURE__ */ T(d, { size: 16 }),
179
+ icon: /* @__PURE__ */ T(p, { size: 16 }),
182
180
  onSelect: () => {}
183
181
  }]
184
182
  }),
185
183
  children: [
186
184
  /* @__PURE__ */ T(k, {
187
- icon: /* @__PURE__ */ T(p, { size: 18 }),
185
+ icon: /* @__PURE__ */ T(h, { size: 18 }),
188
186
  children: M("movethewheels.orders.purpose", "Every delivery job lives here — B2B and B2C orders, their status, priority and value. Use this list to find an order, filter by status or type, and open one to assign a driver, track it, or update fulfilment.")
189
187
  }),
190
188
  /* @__PURE__ */ E(O, { children: [/* @__PURE__ */ T("p", {
@@ -223,14 +221,14 @@ function j() {
223
221
  })] })
224
222
  ]
225
223
  })] }),
226
- /* @__PURE__ */ T(a, { children: /* @__PURE__ */ T(o, {
224
+ /* @__PURE__ */ T(o, { children: /* @__PURE__ */ T(s, {
227
225
  className: "p-4",
228
226
  children: /* @__PURE__ */ E("div", {
229
227
  className: "flex flex-wrap items-center gap-4",
230
228
  children: [
231
229
  /* @__PURE__ */ E("div", {
232
230
  className: "flex items-center gap-2",
233
- children: [/* @__PURE__ */ T(f, {
231
+ children: [/* @__PURE__ */ T(m, {
234
232
  size: 16,
235
233
  className: "text-text-secondary"
236
234
  }), /* @__PURE__ */ T("span", {
@@ -270,7 +268,7 @@ function j() {
270
268
  })
271
269
  ] })]
272
270
  }),
273
- (F !== "all" || L !== "all") && /* @__PURE__ */ T(l, {
271
+ (F !== "all" || L !== "all") && /* @__PURE__ */ T(d, {
274
272
  variant: "ghost",
275
273
  size: "sm",
276
274
  onClick: () => {
@@ -281,7 +279,7 @@ function j() {
281
279
  ]
282
280
  })
283
281
  }) }),
284
- /* @__PURE__ */ T(u, {
282
+ /* @__PURE__ */ T(f, {
285
283
  columns: W,
286
284
  data: z,
287
285
  isLoading: V,
@@ -294,9 +292,9 @@ function j() {
294
292
  emptyIllustration: "empty-data",
295
293
  emptyTitle: M("movethewheels.orders.emptyTitle", "No orders yet"),
296
294
  emptyDescription: M("movethewheels.orders.emptyDescription", "Create your first order to start moving shipments through the pipeline."),
297
- emptyAction: /* @__PURE__ */ E(l, {
295
+ emptyAction: /* @__PURE__ */ E(d, {
298
296
  onClick: () => U("orders/new"),
299
- children: [/* @__PURE__ */ T(m, {
297
+ children: [/* @__PURE__ */ T(g, {
300
298
  size: 16,
301
299
  className: "mr-1.5"
302
300
  }), M("movethewheels.orders.actions.newOrder", "New Order")]