@burdenoff/microfe-movethewheels 2026.624.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 (83) hide show
  1. package/dist/{AIAssistantPage-BrHX2lQn.js → AIAssistantPage-CNyoKtID.js} +4 -4
  2. package/dist/{AnalyticsPage-DI6Wcaw5.js → AnalyticsPage-Ck615ox7.js} +8 -8
  3. package/dist/{CreateOrderPage-DfkSi6JF.js → CreateOrderPage-C9Vb57Yn.js} +5 -5
  4. package/dist/{CustomerDetailsPage-DzAIu_tH.js → CustomerDetailsPage-BVkHRZvi.js} +9 -9
  5. package/dist/CustomersPage-DhQg-6h_.js +118 -0
  6. package/dist/{DashboardPage-3ZOnwg1a.js → DashboardPage-DTmyuC11.js} +118 -111
  7. package/dist/{DataTable-CZGz3SJu.js → DataTable-CfWvFw5B.js} +6 -6
  8. package/dist/{DriverDetailsPage-YuZSlPSV.js → DriverDetailsPage-DaaCQ-2O.js} +10 -10
  9. package/dist/DriversPage-D0RMBB_t.js +129 -0
  10. package/dist/{FinancePage-CnjUNXOb.js → FinancePage-BUXqW1IM.js} +6 -6
  11. package/dist/{FleetPage-CPS7r4J3.js → FleetPage-DCfOmBa2.js} +66 -65
  12. package/dist/{ImportExportPage-zNjs7xsV.js → ImportExportPage-BM1BoRcE.js} +3 -3
  13. package/dist/{InventoryPage-C9g5d3SW.js → InventoryPage-BW0QXWuf.js} +61 -66
  14. package/dist/{LiveTrackingPage-DoBvtdBG.js → LiveTrackingPage-DqcGXdkw.js} +8 -8
  15. package/dist/{MarketplacePage-BEj5hcBF.js → MarketplacePage-DFqsxNYU.js} +7 -7
  16. package/dist/MetricCard-B7yMyvMX.js +146 -0
  17. package/dist/{OrderDetailsPage-D-9lDZYU.js → OrderDetailsPage-Dx1m3cVA.js} +13 -13
  18. package/dist/{OrdersListPage-CJzHbgY3.js → OrdersListPage-DHYBGrWf.js} +76 -77
  19. package/dist/{PageLayout-xDTiBTDS.js → PageLayout-D3N8MCTm.js} +213 -195
  20. package/dist/{ProductDetailsPage-3rKtzXpy.js → ProductDetailsPage-DOXO90kb.js} +6 -6
  21. package/dist/{ProductsPage-B0P_wjBJ.js → ProductsPage-RLMTwWN0.js} +41 -39
  22. package/dist/{ReportsPage-B8OyWGzl.js → ReportsPage-Df3hciPy.js} +4 -4
  23. package/dist/{RouteDetailsPage-DGjKTUMj.js → RouteDetailsPage-xzFDeR-X.js} +8 -8
  24. package/dist/{RoutesPage-CpopY8xN.js → RoutesPage-DDFy1QVi.js} +32 -30
  25. package/dist/{SettingsPage-BvXSa3gi.js → SettingsPage-JH_-UPbf.js} +4 -4
  26. package/dist/{StatusBadge-C--7NhoW.js → StatusBadge-CijYQXtb.js} +5 -2
  27. package/dist/{TrackingPage-BldUm_g7.js → TrackingPage-CU0Vk4mx.js} +11 -11
  28. package/dist/{VehicleDetailsPage-Dqv--MVW.js → VehicleDetailsPage-P4xDttKw.js} +8 -8
  29. package/dist/{VehiclesPage-CCBHRDHu.js → VehiclesPage-tJZ64QKV.js} +42 -40
  30. package/dist/{WarehouseDetailsPage-ZObC_c7W.js → WarehouseDetailsPage-Bt_w2Yf7.js} +8 -8
  31. package/dist/{WarehousesPage-CpgZEVW9.js → WarehousesPage-HsPpEFeG.js} +37 -32
  32. package/dist/{arrow-left-Bk5GsGNk.js → arrow-left-CBpZKkpq.js} +1 -1
  33. package/dist/{box-BAMv2-7M.js → box-CAaiElsb.js} +1 -1
  34. package/dist/{chart-column-CAfkf4o6.js → chart-column-D1Ym15-S.js} +1 -1
  35. package/dist/{chevron-right-Czrt_Qew.js → chevron-right-BIFGi0UA.js} +1 -1
  36. package/dist/{circle-alert-CEuV9Pij.js → circle-alert-DjmNo5_L.js} +1 -1
  37. package/dist/{circle-check-big-Cx8aO6B-.js → circle-check-big-CjuPVo3_.js} +1 -1
  38. package/dist/{clock-Be95bq7_.js → clock-BjkdnddD.js} +1 -1
  39. package/dist/{dollar-sign-kJqItPli.js → dollar-sign-IB4O0wuQ.js} +1 -1
  40. package/dist/{download-caab0D3V.js → download-Dpa9vqoG.js} +1 -1
  41. package/dist/{file-text-b1qhrJn1.js → file-text-C8Uioy11.js} +1 -1
  42. package/dist/{filter-BWmLTZB-.js → filter-Da5OZaHI.js} +1 -1
  43. package/dist/index.js +16 -16
  44. package/dist/{map-CS2aFgyO.js → map-_Per4sT9.js} +1 -1
  45. package/dist/{map-pin-96FeqL7H.js → map-pin-BSaf5IDL.js} +1 -1
  46. package/dist/{navigation-i6UXEjTC.js → navigation-DaTbrhw2.js} +1 -1
  47. package/dist/{package-KhSi3xaT.js → package-BE7U0wQE.js} +1 -1
  48. package/dist/{phone-B-h3tbsr.js → phone-DV4StZiA.js} +1 -1
  49. package/dist/{plus-D2BYAzMn.js → plus-Dl1rLeJR.js} +1 -1
  50. package/dist/{refresh-cw-D5Sy01s-.js → refresh-cw-CWfERAit.js} +1 -1
  51. package/dist/{route-CBDXuwH9.js → route-Dp9JiN_E.js} +1 -1
  52. package/dist/{save-CMc7h-Vi.js → save-XH8vydOn.js} +1 -1
  53. package/dist/{search-DVrUQbOg.js → search-OxoIiL_C.js} +1 -1
  54. package/dist/{settings-BwzIRYv3.js → settings-3Rw5NwFF.js} +1 -1
  55. package/dist/{square-pen-DmW36Bau.js → square-pen-hLIbFQFV.js} +1 -1
  56. package/dist/{star-Cv2MzxZL.js → star-YsVV3MNQ.js} +1 -1
  57. package/dist/{store-CLH957vl.js → store-RCBl7HB-.js} +1 -1
  58. package/dist/{trending-up-l8M0BO_w.js → trending-up-C-85AwGT.js} +1 -1
  59. package/dist/{triangle-alert-BI45s6bH.js → triangle-alert-BOhfGgmh.js} +1 -1
  60. package/dist/{truck-DX3lNQkz.js → truck-CtDjNFbi.js} +1 -1
  61. package/dist/{user-D8EY1uvt.js → user-Dz5TJZFs.js} +1 -1
  62. package/dist/{users-CfG0J8wP.js → users-g2N0eL-Z.js} +1 -1
  63. package/dist/{warehouse-Dt_bAr82.js → warehouse-D3WWDeTX.js} +1 -1
  64. package/dist/{wrench-C50eI_Iy.js → wrench-CmxY1n4I.js} +1 -1
  65. package/package.json +2 -2
  66. package/src/movethewheels/components/DataTable.tsx +4 -4
  67. package/src/movethewheels/components/MetricCard.tsx +49 -20
  68. package/src/movethewheels/components/PageLayout.tsx +60 -5
  69. package/src/movethewheels/components/StatusBadge.tsx +2 -1
  70. package/src/movethewheels/pages/CustomersPage.tsx +13 -12
  71. package/src/movethewheels/pages/DashboardPage.tsx +55 -48
  72. package/src/movethewheels/pages/DriversPage.tsx +9 -12
  73. package/src/movethewheels/pages/FleetPage.tsx +15 -10
  74. package/src/movethewheels/pages/InventoryPage.tsx +18 -11
  75. package/src/movethewheels/pages/OrdersListPage.tsx +20 -14
  76. package/src/movethewheels/pages/ProductsPage.tsx +9 -12
  77. package/src/movethewheels/pages/RoutesPage.tsx +12 -9
  78. package/src/movethewheels/pages/TrackingPage.tsx +2 -2
  79. package/src/movethewheels/pages/VehiclesPage.tsx +9 -15
  80. package/src/movethewheels/pages/WarehousesPage.tsx +8 -9
  81. package/dist/CustomersPage-d21ixOYa.js +0 -119
  82. package/dist/DriversPage-BOhqEBTv.js +0 -127
  83. package/dist/MetricCard-DeHVeVwl.js +0 -135
@@ -1,35 +1,36 @@
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-xDTiBTDS.js";
2
- import { t as u } from "./DataTable-CZGz3SJu.js";
3
- import { t as d } from "./download-caab0D3V.js";
4
- import { t as f } from "./filter-BWmLTZB-.js";
5
- import { t as p } from "./package-KhSi3xaT.js";
6
- import { t as m } from "./plus-D2BYAzMn.js";
7
- import { t as h } from "./refresh-cw-D5Sy01s-.js";
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-CfWvFw5B.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
8
  import { r as g } from "./graphqlClient-CdJyR_ed.js";
9
9
  import { r as _ } from "./useOrders-D_3_hGMp.js";
10
- import { i as v, n as y, r as b } from "./StatusBadge-C--7NhoW.js";
10
+ import { i as v, n as y, r as b } from "./StatusBadge-CijYQXtb.js";
11
11
  import { n as x, r as S } from "./formatters-_vJlC-47.js";
12
12
  import { t as C } from "./navigation-BgnOfsVd.js";
13
13
  import { useState as w } from "react";
14
14
  import { jsx as T, jsxs as E } from "react/jsx-runtime";
15
- import { useI18n as D } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
15
+ import { CTAOverflowMenu as D } from "@burdenoff/fe-libs/ui";
16
+ import { useI18n as O } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
16
17
  //#region src/movethewheels/pages/OrdersListPage.tsx
17
- function O() {
18
- let { t: O } = D(), k = (e, t) => {
19
- let n = O(e);
18
+ function k() {
19
+ let { t: k } = O(), A = (e, t) => {
20
+ let n = k(e);
20
21
  return n === e ? t : n;
21
- }, { basePath: A, navigate: j } = g(), [M, N] = w("all"), [P, F] = w("all"), { orders: I, totalOrders: L, isLoading: R, refetch: z } = _({
22
+ }, { basePath: j, navigate: M } = g(), [N, P] = w("all"), [F, I] = w("all"), { orders: L, totalOrders: R, isLoading: z, refetch: B } = _({
22
23
  filters: {
23
- status: M === "all" ? void 0 : M,
24
- orderType: P === "all" ? void 0 : P
24
+ status: N === "all" ? void 0 : N,
25
+ orderType: F === "all" ? void 0 : F
25
26
  },
26
27
  limit: 50
27
- }), B = (e) => {
28
- j && j(C(A, e));
29
- }, V = [
28
+ }), V = (e) => {
29
+ M && M(C(j, e));
30
+ }, H = [
30
31
  {
31
32
  id: "orderNumber",
32
- header: k("movethewheels.orders.table.orderNumber", "Order #"),
33
+ header: A("movethewheels.orders.table.orderNumber", "Order #"),
33
34
  accessorKey: "orderNumber",
34
35
  sortable: !0,
35
36
  className: "min-w-[100px] whitespace-nowrap",
@@ -40,7 +41,7 @@ function O() {
40
41
  },
41
42
  {
42
43
  id: "customer",
43
- header: k("movethewheels.orders.table.customer", "Customer"),
44
+ header: A("movethewheels.orders.table.customer", "Customer"),
44
45
  className: "min-w-[180px] max-w-[220px]",
45
46
  cell: (e) => /* @__PURE__ */ E("div", {
46
47
  className: "min-w-0",
@@ -55,7 +56,7 @@ function O() {
55
56
  },
56
57
  {
57
58
  id: "status",
58
- header: k("movethewheels.orders.table.status", "Status"),
59
+ header: A("movethewheels.orders.table.status", "Status"),
59
60
  accessorKey: "status",
60
61
  sortable: !0,
61
62
  className: "min-w-[130px] whitespace-nowrap",
@@ -66,14 +67,14 @@ function O() {
66
67
  },
67
68
  {
68
69
  id: "type",
69
- header: k("movethewheels.orders.table.type", "Type"),
70
+ header: A("movethewheels.orders.table.type", "Type"),
70
71
  accessorKey: "orderType",
71
72
  className: "min-w-[70px] whitespace-nowrap",
72
73
  cell: (e) => /* @__PURE__ */ T(v, { type: e.orderType })
73
74
  },
74
75
  {
75
76
  id: "priority",
76
- header: k("movethewheels.orders.table.priority", "Priority"),
77
+ header: A("movethewheels.orders.table.priority", "Priority"),
77
78
  accessorKey: "priority",
78
79
  sortable: !0,
79
80
  className: "min-w-[90px] whitespace-nowrap",
@@ -81,20 +82,20 @@ function O() {
81
82
  },
82
83
  {
83
84
  id: "items",
84
- header: k("movethewheels.orders.table.items", "Items"),
85
+ header: A("movethewheels.orders.table.items", "Items"),
85
86
  className: "min-w-[80px] whitespace-nowrap",
86
87
  cell: (e) => /* @__PURE__ */ E(c, {
87
88
  variant: "secondary",
88
89
  children: [
89
90
  e.items.length,
90
91
  " ",
91
- k("movethewheels.orders.table.itemsSuffix", "items")
92
+ A("movethewheels.orders.table.itemsSuffix", "items")
92
93
  ]
93
94
  })
94
95
  },
95
96
  {
96
97
  id: "total",
97
- header: k("movethewheels.orders.table.total", "Total"),
98
+ header: A("movethewheels.orders.table.total", "Total"),
98
99
  accessorKey: "pricing",
99
100
  sortable: !0,
100
101
  className: "min-w-[100px] whitespace-nowrap text-right",
@@ -105,7 +106,7 @@ function O() {
105
106
  },
106
107
  {
107
108
  id: "scheduledDelivery",
108
- header: k("movethewheels.orders.table.deliveryDate", "Delivery Date"),
109
+ header: A("movethewheels.orders.table.deliveryDate", "Delivery Date"),
109
110
  accessorKey: "scheduledDelivery",
110
111
  sortable: !0,
111
112
  className: "min-w-[110px] whitespace-nowrap",
@@ -113,75 +114,73 @@ function O() {
113
114
  },
114
115
  {
115
116
  id: "createdAt",
116
- header: k("movethewheels.orders.table.created", "Created"),
117
+ header: A("movethewheels.orders.table.created", "Created"),
117
118
  accessorKey: "createdAt",
118
119
  sortable: !0,
119
120
  className: "min-w-[100px] whitespace-nowrap",
120
121
  cell: (e) => S(e.createdAt, "relative")
121
122
  }
122
- ], H = [
123
+ ], U = [
123
124
  {
124
125
  value: "all",
125
- label: k("movethewheels.orders.filters.allStatuses", "All Statuses")
126
+ label: A("movethewheels.orders.filters.allStatuses", "All Statuses")
126
127
  },
127
128
  {
128
129
  value: "pending",
129
- label: k("movethewheels.orders.status.pending", "Pending")
130
+ label: A("movethewheels.orders.status.pending", "Pending")
130
131
  },
131
132
  {
132
133
  value: "confirmed",
133
- label: k("movethewheels.orders.status.confirmed", "Confirmed")
134
+ label: A("movethewheels.orders.status.confirmed", "Confirmed")
134
135
  },
135
136
  {
136
137
  value: "assigned",
137
- label: k("movethewheels.orders.status.assigned", "Assigned")
138
+ label: A("movethewheels.orders.status.assigned", "Assigned")
138
139
  },
139
140
  {
140
141
  value: "picked_up",
141
- label: k("movethewheels.orders.status.pickedUp", "Picked Up")
142
+ label: A("movethewheels.orders.status.pickedUp", "Picked Up")
142
143
  },
143
144
  {
144
145
  value: "in_transit",
145
- label: k("movethewheels.orders.status.inTransit", "In Transit")
146
+ label: A("movethewheels.orders.status.inTransit", "In Transit")
146
147
  },
147
148
  {
148
149
  value: "out_for_delivery",
149
- label: k("movethewheels.orders.status.outForDelivery", "Out for Delivery")
150
+ label: A("movethewheels.orders.status.outForDelivery", "Out for Delivery")
150
151
  },
151
152
  {
152
153
  value: "delivered",
153
- label: k("movethewheels.orders.status.delivered", "Delivered")
154
+ label: A("movethewheels.orders.status.delivered", "Delivered")
154
155
  },
155
156
  {
156
157
  value: "cancelled",
157
- label: k("movethewheels.orders.status.cancelled", "Cancelled")
158
+ label: A("movethewheels.orders.status.cancelled", "Cancelled")
158
159
  },
159
160
  {
160
161
  value: "failed",
161
- label: k("movethewheels.orders.status.failed", "Failed")
162
+ label: A("movethewheels.orders.status.failed", "Failed")
162
163
  }
163
164
  ];
164
165
  return /* @__PURE__ */ E(s, {
165
- title: k("movethewheels.orders.title", "Orders"),
166
- subtitle: `${L} ${k("movethewheels.orders.subtitle", "total orders")}`,
166
+ title: A("movethewheels.orders.title", "Orders"),
167
+ subtitle: `${R} ${A("movethewheels.orders.subtitle", "total orders")}`,
167
168
  icon: /* @__PURE__ */ T(p, { size: 24 }),
168
- headerActions: /* @__PURE__ */ E("div", {
169
- className: "flex gap-2",
170
- children: [
171
- /* @__PURE__ */ E(l, {
172
- variant: "outline",
173
- onClick: z,
174
- children: [/* @__PURE__ */ T(h, { size: 16 }), k("movethewheels.orders.actions.refresh", "Refresh")]
175
- }),
176
- /* @__PURE__ */ E(l, {
177
- variant: "outline",
178
- children: [/* @__PURE__ */ T(d, { size: 16 }), k("movethewheels.orders.actions.export", "Export")]
179
- }),
180
- /* @__PURE__ */ E(l, {
181
- onClick: () => B("orders/new"),
182
- children: [/* @__PURE__ */ T(m, { size: 16 }), k("movethewheels.orders.actions.newOrder", "New Order")]
183
- })
184
- ]
169
+ headerActions: /* @__PURE__ */ T(D, {
170
+ primary: {
171
+ label: A("movethewheels.orders.actions.newOrder", "New Order"),
172
+ icon: /* @__PURE__ */ T(m, { size: 16 }),
173
+ onSelect: () => V("orders/new")
174
+ },
175
+ actions: [{
176
+ label: A("movethewheels.orders.actions.refresh", "Refresh"),
177
+ icon: /* @__PURE__ */ T(h, { size: 16 }),
178
+ onSelect: () => B()
179
+ }, {
180
+ label: A("movethewheels.orders.actions.export", "Export"),
181
+ icon: /* @__PURE__ */ T(d, { size: 16 }),
182
+ onSelect: () => {}
183
+ }]
185
184
  }),
186
185
  children: [/* @__PURE__ */ T(a, { children: /* @__PURE__ */ T(o, {
187
186
  className: "p-4",
@@ -195,30 +194,30 @@ function O() {
195
194
  className: "text-text-secondary"
196
195
  }), /* @__PURE__ */ T("span", {
197
196
  className: "text-sm font-medium",
198
- children: k("movethewheels.orders.filters.label", "Filters:")
197
+ children: A("movethewheels.orders.filters.label", "Filters:")
199
198
  })]
200
199
  }),
201
200
  /* @__PURE__ */ E(r, {
202
- value: M,
203
- onValueChange: (e) => N(e),
201
+ value: N,
202
+ onValueChange: (e) => P(e),
204
203
  children: [/* @__PURE__ */ T(n, {
205
204
  className: "w-[180px]",
206
- children: /* @__PURE__ */ T(i, { placeholder: k("movethewheels.orders.filters.status", "Status") })
207
- }), /* @__PURE__ */ T(e, { children: H.map((e) => /* @__PURE__ */ T(t, {
205
+ children: /* @__PURE__ */ T(i, { placeholder: A("movethewheels.orders.filters.status", "Status") })
206
+ }), /* @__PURE__ */ T(e, { children: U.map((e) => /* @__PURE__ */ T(t, {
208
207
  value: e.value,
209
208
  children: e.label
210
209
  }, e.value)) })]
211
210
  }),
212
211
  /* @__PURE__ */ E(r, {
213
- value: P,
214
- onValueChange: (e) => F(e),
212
+ value: F,
213
+ onValueChange: (e) => I(e),
215
214
  children: [/* @__PURE__ */ T(n, {
216
215
  className: "w-[150px]",
217
- children: /* @__PURE__ */ T(i, { placeholder: k("movethewheels.orders.filters.type", "Type") })
216
+ children: /* @__PURE__ */ T(i, { placeholder: A("movethewheels.orders.filters.type", "Type") })
218
217
  }), /* @__PURE__ */ E(e, { children: [
219
218
  /* @__PURE__ */ T(t, {
220
219
  value: "all",
221
- children: k("movethewheels.orders.filters.allTypes", "All Types")
220
+ children: A("movethewheels.orders.filters.allTypes", "All Types")
222
221
  }),
223
222
  /* @__PURE__ */ T(t, {
224
223
  value: "b2b",
@@ -230,28 +229,28 @@ function O() {
230
229
  })
231
230
  ] })]
232
231
  }),
233
- (M !== "all" || P !== "all") && /* @__PURE__ */ T(l, {
232
+ (N !== "all" || F !== "all") && /* @__PURE__ */ T(l, {
234
233
  variant: "ghost",
235
234
  size: "sm",
236
235
  onClick: () => {
237
- N("all"), F("all");
236
+ P("all"), I("all");
238
237
  },
239
- children: k("movethewheels.orders.filters.clear", "Clear filters")
238
+ children: A("movethewheels.orders.filters.clear", "Clear filters")
240
239
  })
241
240
  ]
242
241
  })
243
242
  }) }), /* @__PURE__ */ T(u, {
244
- columns: V,
245
- data: I,
246
- isLoading: R,
243
+ columns: H,
244
+ data: L,
245
+ isLoading: z,
247
246
  searchable: !0,
248
- searchPlaceholder: k("movethewheels.orders.searchPlaceholder", "Search orders..."),
247
+ searchPlaceholder: A("movethewheels.orders.searchPlaceholder", "Search orders..."),
249
248
  searchFields: ["orderNumber", "customerInfo"],
250
- onRowClick: (e) => B(`orders/${e.id}`),
249
+ onRowClick: (e) => V(`orders/${e.id}`),
251
250
  getRowId: (e) => e.id,
252
- emptyMessage: k("movethewheels.orders.empty", "No orders found")
251
+ emptyMessage: A("movethewheels.orders.empty", "No orders found")
253
252
  })]
254
253
  });
255
254
  }
256
255
  //#endregion
257
- export { O as default };
256
+ export { k as default };