@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,100 +1,95 @@
1
- import { M as e, a as t, d as n, f as r, g as i, h as a, i as o, l as s, u as c } from "./PageLayout-xDTiBTDS.js";
2
- import { t as l } from "./chevron-right-Czrt_Qew.js";
3
- import { t as u } from "./package-KhSi3xaT.js";
4
- import { t as d } from "./plus-D2BYAzMn.js";
5
- import { t as f } from "./triangle-alert-BI45s6bH.js";
6
- import { t as p } from "./warehouse-Dt_bAr82.js";
1
+ import { M as e, a as t, d as n, f as r, g as i, h as a, i as o, l as s, u as c } from "./PageLayout-D3N8MCTm.js";
2
+ import { t as l } from "./chevron-right-BIFGi0UA.js";
3
+ import { t as u } from "./package-BE7U0wQE.js";
4
+ import { t as d } from "./plus-Dl1rLeJR.js";
5
+ import { t as f } from "./triangle-alert-BOhfGgmh.js";
6
+ import { t as p } from "./warehouse-D3WWDeTX.js";
7
7
  import { r as m } from "./graphqlClient-CdJyR_ed.js";
8
8
  import { n as h, t as g } from "./useInventory-Dwn18FPz.js";
9
- import { r as _, t as v } from "./MetricCard-DeHVeVwl.js";
9
+ import { r as _, t as v } from "./MetricCard-B7yMyvMX.js";
10
10
  import { n as y } from "./formatters-_vJlC-47.js";
11
11
  import { t as b } from "./navigation-BgnOfsVd.js";
12
12
  import { jsx as x, jsxs as S } from "react/jsx-runtime";
13
- import { useI18n as C } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
13
+ import { CTAOverflowMenu as C } from "@burdenoff/fe-libs/ui";
14
+ import { useI18n as w } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
14
15
  //#region src/movethewheels/pages/InventoryPage.tsx
15
- function w() {
16
- let { t: w } = C(), T = (e, t) => {
17
- let n = w(e);
16
+ function T() {
17
+ let { t: T } = w(), E = (e, t) => {
18
+ let n = T(e);
18
19
  return n === e ? t : n;
19
- }, { basePath: E, navigate: D } = m(), { inventory: O, products: k, warehouses: A } = g(), { stats: j } = h(), M = (e) => D?.(b(E, e)), N = O.filter((e) => e.availableQuantity <= e.reorderLevel);
20
+ }, { basePath: D, navigate: O } = m(), { inventory: k, products: A, warehouses: j } = g(), { stats: M } = h(), N = (e) => O?.(b(D, e)), P = k.filter((e) => e.availableQuantity <= e.reorderLevel);
20
21
  return /* @__PURE__ */ S(o, {
21
- title: T("movethewheels.inventory.title", "Inventory"),
22
- subtitle: T("movethewheels.inventory.subtitle", "Manage your products and warehouses"),
22
+ title: E("movethewheels.inventory.title", "Inventory"),
23
+ subtitle: E("movethewheels.inventory.subtitle", "Manage your products and warehouses"),
23
24
  icon: /* @__PURE__ */ x(u, { size: 24 }),
24
- headerActions: /* @__PURE__ */ S("div", {
25
- className: "flex gap-2",
26
- children: [
27
- /* @__PURE__ */ x(c, {
28
- variant: "outline",
29
- onClick: () => M("inventory/products"),
30
- children: T("movethewheels.inventory.actions.products", "Products")
31
- }),
32
- /* @__PURE__ */ x(c, {
33
- variant: "outline",
34
- onClick: () => M("inventory/warehouses"),
35
- children: T("movethewheels.inventory.actions.warehouses", "Warehouses")
36
- }),
37
- /* @__PURE__ */ S(c, { children: [
38
- /* @__PURE__ */ x(d, { size: 16 }),
39
- " ",
40
- T("movethewheels.inventory.actions.addProduct", "Add Product")
41
- ] })
42
- ]
25
+ headerActions: /* @__PURE__ */ x(C, {
26
+ primary: {
27
+ label: E("movethewheels.inventory.actions.addProduct", "Add Product"),
28
+ icon: /* @__PURE__ */ x(d, { size: 16 }),
29
+ onSelect: () => {}
30
+ },
31
+ actions: [{
32
+ label: E("movethewheels.inventory.actions.products", "Products"),
33
+ onSelect: () => N("inventory/products")
34
+ }, {
35
+ label: E("movethewheels.inventory.actions.warehouses", "Warehouses"),
36
+ onSelect: () => N("inventory/warehouses")
37
+ }]
43
38
  }),
44
39
  children: [
45
40
  /* @__PURE__ */ S(_, {
46
41
  columns: 4,
47
42
  children: [
48
43
  /* @__PURE__ */ x(v, {
49
- label: T("movethewheels.inventory.metrics.totalProducts", "Total Products"),
50
- value: j.totalProducts,
44
+ label: E("movethewheels.inventory.metrics.totalProducts", "Total Products"),
45
+ value: M.totalProducts,
51
46
  icon: /* @__PURE__ */ x(u, { size: 20 }),
52
- onClick: () => M("inventory/products")
47
+ onClick: () => N("inventory/products")
53
48
  }),
54
49
  /* @__PURE__ */ x(v, {
55
- label: T("movethewheels.inventory.metrics.totalItems", "Total Items"),
56
- value: j.totalItems.toLocaleString(),
50
+ label: E("movethewheels.inventory.metrics.totalItems", "Total Items"),
51
+ value: M.totalItems.toLocaleString(),
57
52
  icon: /* @__PURE__ */ x(u, { size: 20 })
58
53
  }),
59
54
  /* @__PURE__ */ x(v, {
60
- label: T("movethewheels.inventory.metrics.inventoryValue", "Inventory Value"),
61
- value: y(j.totalValue),
55
+ label: E("movethewheels.inventory.metrics.inventoryValue", "Inventory Value"),
56
+ value: y(M.totalValue),
62
57
  icon: /* @__PURE__ */ x(u, { size: 20 })
63
58
  }),
64
59
  /* @__PURE__ */ x(v, {
65
- label: T("movethewheels.inventory.metrics.warehouses", "Warehouses"),
66
- value: j.totalWarehouses,
60
+ label: E("movethewheels.inventory.metrics.warehouses", "Warehouses"),
61
+ value: M.totalWarehouses,
67
62
  icon: /* @__PURE__ */ x(p, { size: 20 }),
68
- onClick: () => M("inventory/warehouses")
63
+ onClick: () => N("inventory/warehouses")
69
64
  })
70
65
  ]
71
66
  }),
72
- N.length > 0 && /* @__PURE__ */ S(n, {
67
+ P.length > 0 && /* @__PURE__ */ S(n, {
73
68
  className: "border-yellow-200",
74
69
  children: [/* @__PURE__ */ x(a, { children: /* @__PURE__ */ S(i, {
75
70
  className: "flex items-center gap-2 text-yellow-600",
76
71
  children: [
77
72
  /* @__PURE__ */ x(f, { size: 18 }),
78
- T("movethewheels.inventory.lowStock.title", "Low Stock Alert"),
73
+ E("movethewheels.inventory.lowStock.title", "Low Stock Alert"),
79
74
  " (",
80
- N.length,
75
+ P.length,
81
76
  " ",
82
- T("movethewheels.inventory.lowStock.items", "items"),
77
+ E("movethewheels.inventory.lowStock.items", "items"),
83
78
  ")"
84
79
  ]
85
80
  }) }), /* @__PURE__ */ x(r, { children: /* @__PURE__ */ x("div", {
86
81
  className: "space-y-3",
87
- children: N.slice(0, 5).map((e) => {
88
- let t = k.find((t) => t.id === e.productId);
82
+ children: P.slice(0, 5).map((e) => {
83
+ let t = A.find((t) => t.id === e.productId);
89
84
  return /* @__PURE__ */ S("div", {
90
85
  className: "flex items-center justify-between p-3 bg-yellow-50 dark:bg-yellow-900/20 rounded-lg",
91
86
  children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
92
87
  className: "font-medium",
93
- children: t?.name || T("movethewheels.inventory.lowStock.unknownProduct", "Unknown Product")
88
+ children: t?.name || E("movethewheels.inventory.lowStock.unknownProduct", "Unknown Product")
94
89
  }), /* @__PURE__ */ S("p", {
95
90
  className: "text-sm text-text-secondary",
96
91
  children: [
97
- T("movethewheels.inventory.lowStock.sku", "SKU:"),
92
+ E("movethewheels.inventory.lowStock.sku", "SKU:"),
98
93
  " ",
99
94
  t?.sku
100
95
  ]
@@ -105,12 +100,12 @@ function w() {
105
100
  children: [
106
101
  e.availableQuantity,
107
102
  " ",
108
- T("movethewheels.inventory.lowStock.left", "left")
103
+ E("movethewheels.inventory.lowStock.left", "left")
109
104
  ]
110
105
  }), /* @__PURE__ */ S("p", {
111
106
  className: "text-sm text-text-secondary",
112
107
  children: [
113
- T("movethewheels.inventory.lowStock.reorderAt", "Reorder at:"),
108
+ E("movethewheels.inventory.lowStock.reorderAt", "Reorder at:"),
114
109
  " ",
115
110
  e.reorderLevel
116
111
  ]
@@ -123,13 +118,13 @@ function w() {
123
118
  /* @__PURE__ */ S("div", {
124
119
  className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
125
120
  children: [/* @__PURE__ */ x(t, {
126
- title: T("movethewheels.inventory.warehouses.title", "Warehouses"),
121
+ title: E("movethewheels.inventory.warehouses.title", "Warehouses"),
127
122
  actions: /* @__PURE__ */ S(c, {
128
123
  variant: "ghost",
129
124
  size: "sm",
130
- onClick: () => M("inventory/warehouses"),
125
+ onClick: () => N("inventory/warehouses"),
131
126
  children: [
132
- T("movethewheels.inventory.common.viewAll", "View all"),
127
+ E("movethewheels.inventory.common.viewAll", "View all"),
133
128
  " ",
134
129
  /* @__PURE__ */ x(l, { size: 16 })
135
130
  ]
@@ -138,9 +133,9 @@ function w() {
138
133
  className: "p-0",
139
134
  children: /* @__PURE__ */ x("div", {
140
135
  className: "divide-y",
141
- children: A.map((t) => /* @__PURE__ */ x("div", {
136
+ children: j.map((t) => /* @__PURE__ */ x("div", {
142
137
  className: "p-4 hover:bg-bg-sunken/50 cursor-pointer",
143
- onClick: () => M(`inventory/warehouses/${t.id}`),
138
+ onClick: () => N(`inventory/warehouses/${t.id}`),
144
139
  children: /* @__PURE__ */ S("div", {
145
140
  className: "flex items-center justify-between",
146
141
  children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
@@ -157,12 +152,12 @@ function w() {
157
152
  className: "text-right",
158
153
  children: [/* @__PURE__ */ x(s, {
159
154
  variant: t.isActive ? "default" : "secondary",
160
- children: t.isActive ? T("movethewheels.inventory.warehouses.active", "Active") : T("movethewheels.inventory.warehouses.inactive", "Inactive")
155
+ children: t.isActive ? E("movethewheels.inventory.warehouses.active", "Active") : E("movethewheels.inventory.warehouses.inactive", "Inactive")
161
156
  }), /* @__PURE__ */ S("div", {
162
157
  className: "mt-2",
163
158
  children: [/* @__PURE__ */ x("p", {
164
159
  className: "text-xs text-text-secondary",
165
- children: T("movethewheels.inventory.warehouses.utilization", "Utilization")
160
+ children: E("movethewheels.inventory.warehouses.utilization", "Utilization")
166
161
  }), /* @__PURE__ */ x(e, {
167
162
  value: t.capacity.usedSpace / t.capacity.totalSpace * 100,
168
163
  className: "w-24 h-2"
@@ -174,13 +169,13 @@ function w() {
174
169
  })
175
170
  }) })
176
171
  }), /* @__PURE__ */ x(t, {
177
- title: T("movethewheels.inventory.products.title", "Recent Products"),
172
+ title: E("movethewheels.inventory.products.title", "Recent Products"),
178
173
  actions: /* @__PURE__ */ S(c, {
179
174
  variant: "ghost",
180
175
  size: "sm",
181
- onClick: () => M("inventory/products"),
176
+ onClick: () => N("inventory/products"),
182
177
  children: [
183
- T("movethewheels.inventory.common.viewAll", "View all"),
178
+ E("movethewheels.inventory.common.viewAll", "View all"),
184
179
  " ",
185
180
  /* @__PURE__ */ x(l, { size: 16 })
186
181
  ]
@@ -189,9 +184,9 @@ function w() {
189
184
  className: "p-0",
190
185
  children: /* @__PURE__ */ x("div", {
191
186
  className: "divide-y",
192
- children: k.slice(0, 5).map((e) => /* @__PURE__ */ x("div", {
187
+ children: A.slice(0, 5).map((e) => /* @__PURE__ */ x("div", {
193
188
  className: "p-4 hover:bg-bg-sunken/50 cursor-pointer",
194
- onClick: () => M(`inventory/products/${e.id}`),
189
+ onClick: () => N(`inventory/products/${e.id}`),
195
190
  children: /* @__PURE__ */ S("div", {
196
191
  className: "flex items-center justify-between",
197
192
  children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
@@ -220,4 +215,4 @@ function w() {
220
215
  });
221
216
  }
222
217
  //#endregion
223
- export { w as default };
218
+ export { T as default };
@@ -1,13 +1,13 @@
1
- import { J as e, N as t, X as n, Z as r, d as i, f as a, g as o, h as s, i as c, it as l, l as u, u as d } from "./PageLayout-xDTiBTDS.js";
2
- import { t as f } from "./map-pin-96FeqL7H.js";
3
- import { t as p } from "./map-CS2aFgyO.js";
4
- import { t as m } from "./package-KhSi3xaT.js";
5
- import { t as h } from "./refresh-cw-D5Sy01s-.js";
6
- import { t as g } from "./truck-DX3lNQkz.js";
1
+ import { J as e, N as t, X as n, Z as r, d as i, f as a, g as o, h as s, i as c, it as l, l as u, u as d } from "./PageLayout-D3N8MCTm.js";
2
+ import { t as f } from "./map-pin-BSaf5IDL.js";
3
+ import { t as p } from "./map-_Per4sT9.js";
4
+ import { t as m } from "./package-BE7U0wQE.js";
5
+ import { t as h } from "./refresh-cw-CWfERAit.js";
6
+ import { t as g } from "./truck-CtDjNFbi.js";
7
7
  import { r as _ } from "./graphqlClient-CdJyR_ed.js";
8
8
  import { o as v, r as y } from "./useTracking-De2KIUNu.js";
9
- import { r as b, t as x } from "./MetricCard-DeHVeVwl.js";
10
- import { r as S } from "./StatusBadge-C--7NhoW.js";
9
+ import { r as b, t as x } from "./MetricCard-B7yMyvMX.js";
10
+ import { r as S } from "./StatusBadge-CijYQXtb.js";
11
11
  import { r as C } from "./formatters-_vJlC-47.js";
12
12
  import { t as w } from "./navigation-BgnOfsVd.js";
13
13
  import { useState as T } from "react";
@@ -1,10 +1,10 @@
1
- import { A as e, d as t, f as n, g as r, h as i, i as a, l as o, u as s } from "./PageLayout-xDTiBTDS.js";
2
- import { t as c } from "./clock-Be95bq7_.js";
3
- import { t as l } from "./filter-BWmLTZB-.js";
4
- import { t as u } from "./map-pin-96FeqL7H.js";
5
- import { t as d } from "./search-DVrUQbOg.js";
6
- import { t as f } from "./star-Cv2MzxZL.js";
7
- import { t as p } from "./store-CLH957vl.js";
1
+ import { A as e, d as t, f as n, g as r, h as i, i as a, l as o, u as s } from "./PageLayout-D3N8MCTm.js";
2
+ import { t as c } from "./clock-BjkdnddD.js";
3
+ import { t as l } from "./filter-Da5OZaHI.js";
4
+ import { t as u } from "./map-pin-BSaf5IDL.js";
5
+ import { t as d } from "./search-OxoIiL_C.js";
6
+ import { t as f } from "./star-YsVV3MNQ.js";
7
+ import { t as p } from "./store-RCBl7HB-.js";
8
8
  import { r as m, t as h } from "./graphqlClient-CdJyR_ed.js";
9
9
  import { n as g } from "./formatters-_vJlC-47.js";
10
10
  import { useCallback as _, useEffect as v, useMemo as y, useState as b } from "react";
@@ -0,0 +1,146 @@
1
+ import { rt as e } from "./PageLayout-D3N8MCTm.js";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ import { GlassCard as r } from "@burdenoff/fe-libs/ui";
4
+ //#region src/movethewheels/components/MetricCard.tsx
5
+ var i = {
6
+ sm: {
7
+ card: "p-3",
8
+ value: "text-xl font-bold",
9
+ label: "text-xs",
10
+ icon: "w-8 h-8"
11
+ },
12
+ md: {
13
+ card: "p-4",
14
+ value: "text-2xl font-bold",
15
+ label: "text-sm",
16
+ icon: "w-10 h-10"
17
+ },
18
+ lg: {
19
+ card: "p-6",
20
+ value: "text-3xl font-bold",
21
+ label: "text-base",
22
+ icon: "w-12 h-12"
23
+ }
24
+ };
25
+ function a({ value: a, label: o, icon: s, change: c, changeType: l = "neutral", subtitle: u, trend: d, size: f = "md", onClick: p, className: m, treatment: h = "metric", glow: g = !1 }) {
26
+ let _ = i[f], v = {
27
+ positive: "text-status-success-text",
28
+ negative: "text-status-error-text",
29
+ neutral: "text-text-secondary"
30
+ }, y = {
31
+ up: /* @__PURE__ */ t("svg", {
32
+ className: "w-4 h-4",
33
+ fill: "none",
34
+ viewBox: "0 0 24 24",
35
+ stroke: "currentColor",
36
+ children: /* @__PURE__ */ t("path", {
37
+ strokeLinecap: "round",
38
+ strokeLinejoin: "round",
39
+ strokeWidth: 2,
40
+ d: "M5 10l7-7m0 0l7 7m-7-7v18"
41
+ })
42
+ }),
43
+ down: /* @__PURE__ */ t("svg", {
44
+ className: "w-4 h-4",
45
+ fill: "none",
46
+ viewBox: "0 0 24 24",
47
+ stroke: "currentColor",
48
+ children: /* @__PURE__ */ t("path", {
49
+ strokeLinecap: "round",
50
+ strokeLinejoin: "round",
51
+ strokeWidth: 2,
52
+ d: "M19 14l-7 7m0 0l-7-7m7 7V3"
53
+ })
54
+ }),
55
+ flat: /* @__PURE__ */ t("svg", {
56
+ className: "w-4 h-4",
57
+ fill: "none",
58
+ viewBox: "0 0 24 24",
59
+ stroke: "currentColor",
60
+ children: /* @__PURE__ */ t("path", {
61
+ strokeLinecap: "round",
62
+ strokeLinejoin: "round",
63
+ strokeWidth: 2,
64
+ d: "M5 12h14"
65
+ })
66
+ })
67
+ };
68
+ return /* @__PURE__ */ t(r, {
69
+ treatment: h,
70
+ glow: g,
71
+ className: e("overflow-hidden border-border-seam", p && "cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-action-primary-bg focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base", m),
72
+ onClick: p,
73
+ ...p ? {
74
+ role: "button",
75
+ tabIndex: 0,
76
+ onKeyDown: (e) => {
77
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), p());
78
+ }
79
+ } : {},
80
+ children: /* @__PURE__ */ t("div", {
81
+ className: _.card,
82
+ children: /* @__PURE__ */ n("div", {
83
+ className: "flex items-start justify-between",
84
+ children: [/* @__PURE__ */ n("div", {
85
+ className: "space-y-1",
86
+ children: [
87
+ /* @__PURE__ */ t("p", {
88
+ className: e("text-text-secondary", _.label),
89
+ children: o
90
+ }),
91
+ /* @__PURE__ */ t("p", {
92
+ className: e("text-text-primary tracking-tight tabular-nums", _.value),
93
+ children: typeof a == "number" ? a.toLocaleString() : a
94
+ }),
95
+ u && /* @__PURE__ */ t("p", {
96
+ className: "text-xs text-text-secondary",
97
+ children: u
98
+ }),
99
+ c && /* @__PURE__ */ n("div", {
100
+ className: e("flex items-center gap-1 text-sm tabular-nums", v[l]),
101
+ children: [d && y[d], /* @__PURE__ */ t("span", { children: c })]
102
+ })
103
+ ]
104
+ }), s && /* @__PURE__ */ t("div", {
105
+ className: e("flex-shrink-0 p-2 rounded-lg bg-action-primary-bg/10 text-action-primary-bg", _.icon),
106
+ children: s
107
+ })]
108
+ })
109
+ })
110
+ });
111
+ }
112
+ function o({ size: a = "md" }) {
113
+ let o = i[a];
114
+ return /* @__PURE__ */ t(r, {
115
+ treatment: "metric",
116
+ className: "overflow-hidden border-border-seam",
117
+ children: /* @__PURE__ */ t("div", {
118
+ className: o.card,
119
+ children: /* @__PURE__ */ n("div", {
120
+ className: "flex items-start justify-between",
121
+ children: [/* @__PURE__ */ n("div", {
122
+ className: "space-y-2 flex-1",
123
+ children: [
124
+ /* @__PURE__ */ t("div", { className: "h-4 w-24 bg-bg-sunken motion-safe:animate-vc-shimmer rounded" }),
125
+ /* @__PURE__ */ t("div", { className: "h-8 w-32 bg-bg-sunken motion-safe:animate-vc-shimmer rounded" }),
126
+ /* @__PURE__ */ t("div", { className: "h-3 w-20 bg-bg-sunken motion-safe:animate-vc-shimmer rounded" })
127
+ ]
128
+ }), /* @__PURE__ */ t("div", { className: e("bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg", o.icon) })]
129
+ })
130
+ })
131
+ });
132
+ }
133
+ function s({ children: n, columns: r = 4, className: i }) {
134
+ return /* @__PURE__ */ t("div", {
135
+ className: e("grid gap-4", {
136
+ 2: "grid-cols-1 sm:grid-cols-2",
137
+ 3: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
138
+ 4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4",
139
+ 5: "grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5",
140
+ 6: "grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-6"
141
+ }[r], i),
142
+ children: n
143
+ });
144
+ }
145
+ //#endregion
146
+ export { o as n, s as r, a as t };
@@ -1,18 +1,18 @@
1
- import { G as e, H as t, K as n, U as r, W as i, d as a, f as o, g as s, h as c, i as l, it as u, l as d, n as f, q as p, r as m, u as h, z as g } from "./PageLayout-xDTiBTDS.js";
2
- import { t as _ } from "./arrow-left-Bk5GsGNk.js";
3
- import { t as v } from "./circle-check-big-Cx8aO6B-.js";
4
- import { t as y } from "./clock-Be95bq7_.js";
5
- import { t as b } from "./dollar-sign-kJqItPli.js";
6
- import { t as x } from "./file-text-b1qhrJn1.js";
7
- import { n as S, t as C } from "./phone-B-h3tbsr.js";
8
- import { t as w } from "./map-pin-96FeqL7H.js";
9
- import { t as T } from "./package-KhSi3xaT.js";
10
- import { t as E } from "./square-pen-DmW36Bau.js";
11
- import { t as D } from "./truck-DX3lNQkz.js";
12
- import { t as O } from "./user-D8EY1uvt.js";
1
+ import { G as e, H as t, K as n, U as r, W as i, d as a, f as o, g as s, h as c, i as l, it as u, l as d, n as f, q as p, r as m, u as h, z as g } from "./PageLayout-D3N8MCTm.js";
2
+ import { t as _ } from "./arrow-left-CBpZKkpq.js";
3
+ import { t as v } from "./circle-check-big-CjuPVo3_.js";
4
+ import { t as y } from "./clock-BjkdnddD.js";
5
+ import { t as b } from "./dollar-sign-IB4O0wuQ.js";
6
+ import { t as x } from "./file-text-C8Uioy11.js";
7
+ import { n as S, t as C } from "./phone-DV4StZiA.js";
8
+ import { t as w } from "./map-pin-BSaf5IDL.js";
9
+ import { t as T } from "./package-BE7U0wQE.js";
10
+ import { t as E } from "./square-pen-hLIbFQFV.js";
11
+ import { t as D } from "./truck-CtDjNFbi.js";
12
+ import { t as O } from "./user-Dz5TJZFs.js";
13
13
  import { r as k } from "./graphqlClient-CdJyR_ed.js";
14
14
  import { t as A } from "./useOrders-D_3_hGMp.js";
15
- import { i as j, n as M, r as N, t as P } from "./StatusBadge-C--7NhoW.js";
15
+ import { i as j, n as M, r as N, t as P } from "./StatusBadge-CijYQXtb.js";
16
16
  import { n as F, r as I, t as L } from "./formatters-_vJlC-47.js";
17
17
  import { t as R } from "./navigation-BgnOfsVd.js";
18
18
  import { useParams as z } from "react-router-dom";