@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,119 +0,0 @@
1
- import { i as e, l as t, o as n, s as r, u as i } from "./PageLayout-xDTiBTDS.js";
2
- import { t as a } from "./DataTable-CZGz3SJu.js";
3
- import { t as o } from "./download-caab0D3V.js";
4
- import { t as s } from "./plus-D2BYAzMn.js";
5
- import { t as c } from "./refresh-cw-D5Sy01s-.js";
6
- import { t as l } from "./star-Cv2MzxZL.js";
7
- import { t as u } from "./users-CfG0J8wP.js";
8
- import { r as d } from "./graphqlClient-CdJyR_ed.js";
9
- import { r as f } from "./useCustomers-bS3a4ytk.js";
10
- import { i as p } from "./StatusBadge-C--7NhoW.js";
11
- import { r as m } from "./formatters-_vJlC-47.js";
12
- import { t as h } from "./navigation-BgnOfsVd.js";
13
- import { jsx as g, jsxs as _ } from "react/jsx-runtime";
14
- //#region src/movethewheels/pages/CustomersPage.tsx
15
- function v() {
16
- let { basePath: v, navigate: y } = d(), { customers: b, totalCustomers: x, isLoading: S, refetch: C } = f({ limit: 100 }), w = (e) => y?.(h(v, e));
17
- return /* @__PURE__ */ g(e, {
18
- title: "Customers",
19
- subtitle: `${x} customers`,
20
- icon: /* @__PURE__ */ g(u, { size: 24 }),
21
- headerActions: /* @__PURE__ */ _("div", {
22
- className: "flex gap-2",
23
- children: [
24
- /* @__PURE__ */ _(i, {
25
- variant: "outline",
26
- onClick: C,
27
- children: [/* @__PURE__ */ g(c, { size: 16 }), " Refresh"]
28
- }),
29
- /* @__PURE__ */ _(i, {
30
- variant: "outline",
31
- children: [/* @__PURE__ */ g(o, { size: 16 }), " Export"]
32
- }),
33
- /* @__PURE__ */ _(i, {
34
- onClick: () => w("customers/new"),
35
- children: [/* @__PURE__ */ g(s, { size: 16 }), " Add Customer"]
36
- })
37
- ]
38
- }),
39
- children: /* @__PURE__ */ g(a, {
40
- columns: [
41
- {
42
- id: "customer",
43
- header: "Customer",
44
- cell: (e) => /* @__PURE__ */ _("div", {
45
- className: "flex items-center gap-3",
46
- children: [/* @__PURE__ */ g(n, { children: /* @__PURE__ */ g(r, { children: e.name.split(" ").map((e) => e[0]).join("") }) }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
47
- className: "font-medium",
48
- children: e.name
49
- }), /* @__PURE__ */ g("p", {
50
- className: "text-sm text-text-secondary",
51
- children: e.email
52
- })] })]
53
- })
54
- },
55
- {
56
- id: "type",
57
- header: "Type",
58
- accessorKey: "type",
59
- cell: (e) => /* @__PURE__ */ g(p, { type: e.type })
60
- },
61
- {
62
- id: "company",
63
- header: "Company",
64
- accessorKey: "company",
65
- cell: (e) => e.company || "-"
66
- },
67
- {
68
- id: "phone",
69
- header: "Phone",
70
- accessorKey: "phone"
71
- },
72
- {
73
- id: "location",
74
- header: "Location",
75
- cell: (e) => `${e.address.city}, ${e.address.state}`
76
- },
77
- {
78
- id: "rating",
79
- header: "Rating",
80
- cell: (e) => /* @__PURE__ */ _("div", {
81
- className: "flex items-center gap-1",
82
- children: [/* @__PURE__ */ g(l, {
83
- size: 14,
84
- className: "text-yellow-500 fill-yellow-500"
85
- }), /* @__PURE__ */ g("span", { children: e.rating.toFixed(1) })]
86
- })
87
- },
88
- {
89
- id: "status",
90
- header: "Status",
91
- cell: (e) => /* @__PURE__ */ g(t, {
92
- variant: e.isActive ? "default" : "secondary",
93
- children: e.isActive ? "Active" : "Inactive"
94
- })
95
- },
96
- {
97
- id: "created",
98
- header: "Created",
99
- accessorKey: "createdAt",
100
- sortable: !0,
101
- cell: (e) => m(e.createdAt, "short")
102
- }
103
- ],
104
- data: b,
105
- isLoading: S,
106
- searchable: !0,
107
- searchPlaceholder: "Search customers...",
108
- searchFields: [
109
- "name",
110
- "email",
111
- "company"
112
- ],
113
- onRowClick: (e) => w(`customers/${e.id}`),
114
- getRowId: (e) => e.id
115
- })
116
- });
117
- }
118
- //#endregion
119
- export { v as default };
@@ -1,127 +0,0 @@
1
- import { i as e, o as t, s as n, u as r } from "./PageLayout-xDTiBTDS.js";
2
- import { t as i } from "./DataTable-CZGz3SJu.js";
3
- import { t as a } from "./download-caab0D3V.js";
4
- import { t as o } from "./plus-D2BYAzMn.js";
5
- import { t as s } from "./refresh-cw-D5Sy01s-.js";
6
- import { t as c } from "./star-Cv2MzxZL.js";
7
- import { t as l } from "./users-CfG0J8wP.js";
8
- import { r as u } from "./graphqlClient-CdJyR_ed.js";
9
- import { n as d } from "./useFleet-BdETplNE.js";
10
- import { r as f } from "./StatusBadge-C--7NhoW.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
- //#region src/movethewheels/pages/DriversPage.tsx
15
- function _() {
16
- let { basePath: _, navigate: v } = u(), { drivers: y, totalDrivers: b, isLoading: x, refetch: S } = d(), C = (e) => v?.(m(_, e));
17
- return /* @__PURE__ */ h(e, {
18
- title: "Drivers",
19
- subtitle: `${b} drivers`,
20
- icon: /* @__PURE__ */ h(l, { size: 24 }),
21
- headerActions: /* @__PURE__ */ g("div", {
22
- className: "flex gap-2",
23
- children: [
24
- /* @__PURE__ */ g(r, {
25
- variant: "outline",
26
- onClick: S,
27
- children: [/* @__PURE__ */ h(s, { size: 16 }), " Refresh"]
28
- }),
29
- /* @__PURE__ */ g(r, {
30
- variant: "outline",
31
- children: [/* @__PURE__ */ h(a, { size: 16 }), " Export"]
32
- }),
33
- /* @__PURE__ */ g(r, { children: [/* @__PURE__ */ h(o, { size: 16 }), " Add Driver"] })
34
- ]
35
- }),
36
- children: /* @__PURE__ */ h(i, {
37
- columns: [
38
- {
39
- id: "driver",
40
- header: "Driver",
41
- cell: (e) => /* @__PURE__ */ g("div", {
42
- className: "flex items-center gap-3",
43
- children: [/* @__PURE__ */ h(t, { children: /* @__PURE__ */ h(n, { children: e.fullName.split(" ").map((e) => e[0]).join("") }) }), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
44
- className: "font-medium",
45
- children: e.fullName
46
- }), /* @__PURE__ */ h("p", {
47
- className: "text-sm text-text-secondary",
48
- children: e.employeeId
49
- })] })]
50
- })
51
- },
52
- {
53
- id: "status",
54
- header: "Status",
55
- accessorKey: "status",
56
- sortable: !0,
57
- cell: (e) => /* @__PURE__ */ h(f, {
58
- status: e.status,
59
- type: "driver"
60
- })
61
- },
62
- {
63
- id: "rating",
64
- header: "Rating",
65
- cell: (e) => /* @__PURE__ */ g("div", {
66
- className: "flex items-center gap-1",
67
- children: [
68
- /* @__PURE__ */ h(c, {
69
- size: 14,
70
- className: "text-yellow-500 fill-yellow-500"
71
- }),
72
- /* @__PURE__ */ h("span", {
73
- className: "font-medium",
74
- children: e.ratings.overall.toFixed(1)
75
- }),
76
- /* @__PURE__ */ g("span", {
77
- className: "text-text-secondary text-sm",
78
- children: [
79
- "(",
80
- e.ratings.totalRatings,
81
- ")"
82
- ]
83
- })
84
- ]
85
- })
86
- },
87
- {
88
- id: "deliveries",
89
- header: "Deliveries",
90
- accessorKey: "completedOrders",
91
- sortable: !0,
92
- cell: (e) => /* @__PURE__ */ h("span", {
93
- className: "font-medium",
94
- children: e.completedOrders.toLocaleString()
95
- })
96
- },
97
- {
98
- id: "license",
99
- header: "License",
100
- cell: (e) => /* @__PURE__ */ g("div", {
101
- className: "text-sm",
102
- children: [/* @__PURE__ */ h("p", { children: e.licenseType }), /* @__PURE__ */ g("p", {
103
- className: "text-text-secondary",
104
- children: ["Exp: ", p(e.licenseExpiry, "short")]
105
- })]
106
- })
107
- },
108
- {
109
- id: "joined",
110
- header: "Join Date",
111
- accessorKey: "joinDate",
112
- sortable: !0,
113
- cell: (e) => p(e.joinDate, "short")
114
- }
115
- ],
116
- data: y,
117
- isLoading: x,
118
- searchable: !0,
119
- searchPlaceholder: "Search drivers...",
120
- searchFields: ["fullName", "employeeId"],
121
- onRowClick: (e) => C(`fleet/drivers/${e.id}`),
122
- getRowId: (e) => e.id
123
- })
124
- });
125
- }
126
- //#endregion
127
- export { _ as default };
@@ -1,135 +0,0 @@
1
- import { d as e, f as t, rt as n } from "./PageLayout-xDTiBTDS.js";
2
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
3
- //#region src/movethewheels/components/MetricCard.tsx
4
- var a = {
5
- sm: {
6
- card: "p-3",
7
- value: "text-xl font-bold",
8
- label: "text-xs",
9
- icon: "w-8 h-8"
10
- },
11
- md: {
12
- card: "p-4",
13
- value: "text-2xl font-bold",
14
- label: "text-sm",
15
- icon: "w-10 h-10"
16
- },
17
- lg: {
18
- card: "p-6",
19
- value: "text-3xl font-bold",
20
- label: "text-base",
21
- icon: "w-12 h-12"
22
- }
23
- };
24
- function o({ value: o, label: s, icon: c, change: l, changeType: u = "neutral", subtitle: d, trend: f, size: p = "md", onClick: m, className: h }) {
25
- let g = a[p], _ = {
26
- positive: "text-green-600 dark:text-green-400",
27
- negative: "text-red-600 dark:text-red-400",
28
- neutral: "text-text-secondary"
29
- }, v = {
30
- up: /* @__PURE__ */ r("svg", {
31
- className: "w-4 h-4",
32
- fill: "none",
33
- viewBox: "0 0 24 24",
34
- stroke: "currentColor",
35
- children: /* @__PURE__ */ r("path", {
36
- strokeLinecap: "round",
37
- strokeLinejoin: "round",
38
- strokeWidth: 2,
39
- d: "M5 10l7-7m0 0l7 7m-7-7v18"
40
- })
41
- }),
42
- down: /* @__PURE__ */ r("svg", {
43
- className: "w-4 h-4",
44
- fill: "none",
45
- viewBox: "0 0 24 24",
46
- stroke: "currentColor",
47
- children: /* @__PURE__ */ r("path", {
48
- strokeLinecap: "round",
49
- strokeLinejoin: "round",
50
- strokeWidth: 2,
51
- d: "M19 14l-7 7m0 0l-7-7m7 7V3"
52
- })
53
- }),
54
- flat: /* @__PURE__ */ r("svg", {
55
- className: "w-4 h-4",
56
- fill: "none",
57
- viewBox: "0 0 24 24",
58
- stroke: "currentColor",
59
- children: /* @__PURE__ */ r("path", {
60
- strokeLinecap: "round",
61
- strokeLinejoin: "round",
62
- strokeWidth: 2,
63
- d: "M5 12h14"
64
- })
65
- })
66
- };
67
- return /* @__PURE__ */ r(e, {
68
- className: n("overflow-hidden transition-all duration-200", m && "cursor-pointer hover:shadow-md hover:border-primary/30", h),
69
- onClick: m,
70
- children: /* @__PURE__ */ r(t, {
71
- className: g.card,
72
- children: /* @__PURE__ */ i("div", {
73
- className: "flex items-start justify-between",
74
- children: [/* @__PURE__ */ i("div", {
75
- className: "space-y-1",
76
- children: [
77
- /* @__PURE__ */ r("p", {
78
- className: n("text-text-secondary", g.label),
79
- children: s
80
- }),
81
- /* @__PURE__ */ r("p", {
82
- className: n("text-text-primary tracking-tight", g.value),
83
- children: typeof o == "number" ? o.toLocaleString() : o
84
- }),
85
- d && /* @__PURE__ */ r("p", {
86
- className: "text-xs text-text-secondary",
87
- children: d
88
- }),
89
- l && /* @__PURE__ */ i("div", {
90
- className: n("flex items-center gap-1 text-sm", _[u]),
91
- children: [f && v[f], /* @__PURE__ */ r("span", { children: l })]
92
- })
93
- ]
94
- }), c && /* @__PURE__ */ r("div", {
95
- className: n("flex-shrink-0 p-2 rounded-lg bg-action-primary-bg/10 text-primary", g.icon),
96
- children: c
97
- })]
98
- })
99
- })
100
- });
101
- }
102
- function s({ size: o = "md" }) {
103
- let s = a[o];
104
- return /* @__PURE__ */ r(e, {
105
- className: "overflow-hidden",
106
- children: /* @__PURE__ */ r(t, {
107
- className: s.card,
108
- children: /* @__PURE__ */ i("div", {
109
- className: "flex items-start justify-between",
110
- children: [/* @__PURE__ */ i("div", {
111
- className: "space-y-2 flex-1",
112
- children: [
113
- /* @__PURE__ */ r("div", { className: "h-4 w-24 bg-bg-sunken animate-pulse rounded" }),
114
- /* @__PURE__ */ r("div", { className: "h-8 w-32 bg-bg-sunken animate-pulse rounded" }),
115
- /* @__PURE__ */ r("div", { className: "h-3 w-20 bg-bg-sunken animate-pulse rounded" })
116
- ]
117
- }), /* @__PURE__ */ r("div", { className: n("bg-bg-sunken animate-pulse rounded-lg", s.icon) })]
118
- })
119
- })
120
- });
121
- }
122
- function c({ children: e, columns: t = 4, className: i }) {
123
- return /* @__PURE__ */ r("div", {
124
- className: n("grid gap-4", {
125
- 2: "grid-cols-1 sm:grid-cols-2",
126
- 3: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
127
- 4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4",
128
- 5: "grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5",
129
- 6: "grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-6"
130
- }[t], i),
131
- children: e
132
- });
133
- }
134
- //#endregion
135
- export { s as n, c as r, o as t };