@burdenoff/microfe-healthybowl 2026.609.6 → 2026.609.8

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 (90) hide show
  1. package/dist/healthybowl/components/ErrorState.js +30 -0
  2. package/dist/healthybowl/components/ErrorState.js.map +1 -0
  3. package/dist/healthybowl/components/index.js +1 -0
  4. package/dist/healthybowl/hooks/useHealthyBowlData.js +683 -649
  5. package/dist/healthybowl/hooks/useHealthyBowlData.js.map +1 -1
  6. package/dist/healthybowl/pages/analytics/AnalyticsDashboardPage.js +63 -62
  7. package/dist/healthybowl/pages/analytics/AnalyticsDashboardPage.js.map +1 -1
  8. package/dist/healthybowl/pages/analytics/AnalyticsOverviewPage.js +66 -65
  9. package/dist/healthybowl/pages/analytics/AnalyticsOverviewPage.js.map +1 -1
  10. package/dist/healthybowl/pages/analytics/InsightsPage.js +39 -38
  11. package/dist/healthybowl/pages/analytics/InsightsPage.js.map +1 -1
  12. package/dist/healthybowl/pages/analytics/ReportsPage.js +64 -63
  13. package/dist/healthybowl/pages/analytics/ReportsPage.js.map +1 -1
  14. package/dist/healthybowl/pages/crops/CropDetailsPage.js +159 -158
  15. package/dist/healthybowl/pages/crops/CropDetailsPage.js.map +1 -1
  16. package/dist/healthybowl/pages/crops/CropFieldsPage.js +118 -117
  17. package/dist/healthybowl/pages/crops/CropFieldsPage.js.map +1 -1
  18. package/dist/healthybowl/pages/crops/CropHarvestPage.js +158 -157
  19. package/dist/healthybowl/pages/crops/CropHarvestPage.js.map +1 -1
  20. package/dist/healthybowl/pages/crops/CropPlanningPage.js +131 -130
  21. package/dist/healthybowl/pages/crops/CropPlanningPage.js.map +1 -1
  22. package/dist/healthybowl/pages/crops/CropsPage.js +173 -172
  23. package/dist/healthybowl/pages/crops/CropsPage.js.map +1 -1
  24. package/dist/healthybowl/pages/crops/FieldDetailsPage.js +183 -182
  25. package/dist/healthybowl/pages/crops/FieldDetailsPage.js.map +1 -1
  26. package/dist/healthybowl/pages/crops/HarvestDetailsPage.js +224 -223
  27. package/dist/healthybowl/pages/crops/HarvestDetailsPage.js.map +1 -1
  28. package/dist/healthybowl/pages/crops/PlanningDetailsPage.js +224 -223
  29. package/dist/healthybowl/pages/crops/PlanningDetailsPage.js.map +1 -1
  30. package/dist/healthybowl/pages/farm/FarmProfilePage.js +26 -25
  31. package/dist/healthybowl/pages/farm/FarmProfilePage.js.map +1 -1
  32. package/dist/healthybowl/pages/financial/FinancialDashboardPage.js +58 -57
  33. package/dist/healthybowl/pages/financial/FinancialDashboardPage.js.map +1 -1
  34. package/dist/healthybowl/pages/financial/FinancialReportsPage.js +120 -119
  35. package/dist/healthybowl/pages/financial/FinancialReportsPage.js.map +1 -1
  36. package/dist/healthybowl/pages/financial/TransactionsPage.js +147 -146
  37. package/dist/healthybowl/pages/financial/TransactionsPage.js.map +1 -1
  38. package/dist/healthybowl/pages/government-schemes/ApplicationTrackingPage.js +90 -89
  39. package/dist/healthybowl/pages/government-schemes/ApplicationTrackingPage.js.map +1 -1
  40. package/dist/healthybowl/pages/government-schemes/GovernmentDashboardPage.js +108 -107
  41. package/dist/healthybowl/pages/government-schemes/GovernmentDashboardPage.js.map +1 -1
  42. package/dist/healthybowl/pages/government-schemes/SchemeDetailsPage.js +93 -92
  43. package/dist/healthybowl/pages/government-schemes/SchemeDetailsPage.js.map +1 -1
  44. package/dist/healthybowl/pages/government-schemes/SchemeDiscoveryPage.js +95 -94
  45. package/dist/healthybowl/pages/government-schemes/SchemeDiscoveryPage.js.map +1 -1
  46. package/dist/healthybowl/pages/government-schemes/SchemesOverviewPage.js +133 -132
  47. package/dist/healthybowl/pages/government-schemes/SchemesOverviewPage.js.map +1 -1
  48. package/dist/healthybowl/pages/government-schemes/TrainingProgramsPage.js +151 -150
  49. package/dist/healthybowl/pages/government-schemes/TrainingProgramsPage.js.map +1 -1
  50. package/dist/healthybowl/pages/livestock/AnimalDetailsPage.js +342 -341
  51. package/dist/healthybowl/pages/livestock/AnimalDetailsPage.js.map +1 -1
  52. package/dist/healthybowl/pages/livestock/LivestockDashboardPage.js +50 -49
  53. package/dist/healthybowl/pages/livestock/LivestockDashboardPage.js.map +1 -1
  54. package/dist/healthybowl/pages/marketplace/MarketplacePage.js +324 -323
  55. package/dist/healthybowl/pages/marketplace/MarketplacePage.js.map +1 -1
  56. package/dist/healthybowl/pages/marketplace/OrdersPage.js +204 -203
  57. package/dist/healthybowl/pages/marketplace/OrdersPage.js.map +1 -1
  58. package/dist/healthybowl/pages/marketplace/ProductDetailPage.js +167 -166
  59. package/dist/healthybowl/pages/marketplace/ProductDetailPage.js.map +1 -1
  60. package/dist/healthybowl/pages/marketplace/WishlistPage.js +121 -120
  61. package/dist/healthybowl/pages/marketplace/WishlistPage.js.map +1 -1
  62. package/dist/healthybowl/pages/network/CommunityPage.js +64 -63
  63. package/dist/healthybowl/pages/network/CommunityPage.js.map +1 -1
  64. package/dist/healthybowl/pages/network/EventsPage.js +228 -227
  65. package/dist/healthybowl/pages/network/EventsPage.js.map +1 -1
  66. package/dist/healthybowl/pages/network/ExpertsPage.js +74 -73
  67. package/dist/healthybowl/pages/network/ExpertsPage.js.map +1 -1
  68. package/dist/healthybowl/pages/network/MentorsPage.js +186 -185
  69. package/dist/healthybowl/pages/network/MentorsPage.js.map +1 -1
  70. package/dist/healthybowl/pages/pest-management/PestOverviewPage.js +69 -68
  71. package/dist/healthybowl/pages/pest-management/PestOverviewPage.js.map +1 -1
  72. package/dist/healthybowl/pages/products/BatchesPage.js +255 -254
  73. package/dist/healthybowl/pages/products/BatchesPage.js.map +1 -1
  74. package/dist/healthybowl/pages/products/ProductsOverviewPage.js +196 -195
  75. package/dist/healthybowl/pages/products/ProductsOverviewPage.js.map +1 -1
  76. package/dist/healthybowl/pages/soil/SoilDashboardPage.js +59 -58
  77. package/dist/healthybowl/pages/soil/SoilDashboardPage.js.map +1 -1
  78. package/dist/healthybowl/pages/soil/SoilMonitoringPage.js +43 -42
  79. package/dist/healthybowl/pages/soil/SoilMonitoringPage.js.map +1 -1
  80. package/dist/healthybowl/pages/traceability/BatchTrackingPage.js +117 -116
  81. package/dist/healthybowl/pages/traceability/BatchTrackingPage.js.map +1 -1
  82. package/dist/healthybowl/pages/traceability/QRCodesPage.js +56 -55
  83. package/dist/healthybowl/pages/traceability/QRCodesPage.js.map +1 -1
  84. package/dist/healthybowl/pages/traceability/SupplyChainPage.js +49 -48
  85. package/dist/healthybowl/pages/traceability/SupplyChainPage.js.map +1 -1
  86. package/dist/healthybowl/pages/traceability/TraceTrackingPage.js +75 -74
  87. package/dist/healthybowl/pages/traceability/TraceTrackingPage.js.map +1 -1
  88. package/dist/healthybowl/pages/weather/WeatherAlertsPage.js +53 -52
  89. package/dist/healthybowl/pages/weather/WeatherAlertsPage.js.map +1 -1
  90. package/package.json +1 -1
@@ -0,0 +1,30 @@
1
+ import { cn as e } from "../utils/helpers.js";
2
+ import { AlertCircle as t } from "lucide-react";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ //#region src/healthybowl/components/ErrorState.tsx
5
+ var i = ({ title: i = "Couldn't load this data", description: a = "Something went wrong while loading. Please try again.", onRetry: o, icon: s, className: c }) => /* @__PURE__ */ r("div", {
6
+ className: e("flex flex-col items-center justify-center rounded-lg border border-border bg-card p-12 text-center", c),
7
+ children: [
8
+ /* @__PURE__ */ n("div", {
9
+ className: "mb-4 text-destructive",
10
+ children: s || /* @__PURE__ */ n(t, { className: "h-12 w-12" })
11
+ }),
12
+ /* @__PURE__ */ n("h3", {
13
+ className: "text-lg font-medium text-foreground",
14
+ children: i
15
+ }),
16
+ a && /* @__PURE__ */ n("p", {
17
+ className: "mt-1 max-w-md text-sm text-muted-foreground",
18
+ children: a
19
+ }),
20
+ o && /* @__PURE__ */ n("button", {
21
+ onClick: o,
22
+ className: "mt-4 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90",
23
+ children: "Try again"
24
+ })
25
+ ]
26
+ });
27
+ //#endregion
28
+ export { i as ErrorState };
29
+
30
+ //# sourceMappingURL=ErrorState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorState.js","names":[],"sources":["../../../src/healthybowl/components/ErrorState.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\nimport { AlertCircle } from 'lucide-react';\nimport { cn } from '../utils/helpers';\n\ninterface ErrorStateProps {\n /** Honest title — defaults to a generic load-failure message. */\n title?: string;\n description?: string;\n /** Optional retry handler (e.g. the hook's `refetch`). */\n onRetry?: () => void;\n icon?: ReactNode;\n className?: string;\n}\n\n/**\n * Shown when a query FAILED (vs. EmptyState, which means it succeeded with no data). Pages render\n * this instead of an empty state when the relevant query errored, so a load failure is never\n * silently disguised as \"no data yet\".\n */\nexport const ErrorState: FC<ErrorStateProps> = ({\n title = \"Couldn't load this data\",\n description = 'Something went wrong while loading. Please try again.',\n onRetry,\n icon,\n className,\n}) => {\n return (\n <div\n className={cn(\n 'flex flex-col items-center justify-center rounded-lg border border-border bg-card p-12 text-center',\n className\n )}\n >\n <div className=\"mb-4 text-destructive\">{icon || <AlertCircle className=\"h-12 w-12\" />}</div>\n <h3 className=\"text-lg font-medium text-foreground\">{title}</h3>\n {description && <p className=\"mt-1 max-w-md text-sm text-muted-foreground\">{description}</p>}\n {onRetry && (\n <button\n onClick={onRetry}\n className=\"mt-4 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90\"\n >\n Try again\n </button>\n )}\n </div>\n );\n};\n"],"mappings":";;;;AAmBA,IAAa,KAAmC,EAC9C,WAAQ,2BACR,iBAAc,yDACd,YACA,SACA,mBAGE,kBAAC,OAAD;CACE,WAAW,EACT,sGACA,EACD;WAJH;EAME,kBAAC,OAAD;GAAK,WAAU;aAAyB,KAAQ,kBAAC,GAAD,EAAa,WAAU,aAAc,CAAA;GAAO,CAAA;EAC5F,kBAAC,MAAD;GAAI,WAAU;aAAuC;GAAW,CAAA;EAC/D,KAAe,kBAAC,KAAD;GAAG,WAAU;aAA+C;GAAgB,CAAA;EAC3F,KACC,kBAAC,UAAD;GACE,SAAS;GACT,WAAU;aACX;GAEQ,CAAA;EAEP"}
@@ -3,6 +3,7 @@ import "./StatCard.js";
3
3
  import "./DataTable.js";
4
4
  import "./StatusBadge.js";
5
5
  import "./EmptyState.js";
6
+ import "./ErrorState.js";
6
7
  import "./ComingSoon.js";
7
8
  import "./ChartCard.js";
8
9
  import "./FilterBar.js";