@burdenoff/microfe-healthybowl 2026.609.7 → 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.
- package/dist/healthybowl/components/ErrorState.js +30 -0
- package/dist/healthybowl/components/ErrorState.js.map +1 -0
- package/dist/healthybowl/components/index.js +1 -0
- package/dist/healthybowl/hooks/useHealthyBowlData.js +682 -648
- package/dist/healthybowl/hooks/useHealthyBowlData.js.map +1 -1
- package/dist/healthybowl/pages/analytics/AnalyticsDashboardPage.js +63 -62
- package/dist/healthybowl/pages/analytics/AnalyticsDashboardPage.js.map +1 -1
- package/dist/healthybowl/pages/analytics/AnalyticsOverviewPage.js +66 -65
- package/dist/healthybowl/pages/analytics/AnalyticsOverviewPage.js.map +1 -1
- package/dist/healthybowl/pages/analytics/InsightsPage.js +39 -38
- package/dist/healthybowl/pages/analytics/InsightsPage.js.map +1 -1
- package/dist/healthybowl/pages/analytics/ReportsPage.js +64 -63
- package/dist/healthybowl/pages/analytics/ReportsPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/CropDetailsPage.js +159 -158
- package/dist/healthybowl/pages/crops/CropDetailsPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/CropFieldsPage.js +118 -117
- package/dist/healthybowl/pages/crops/CropFieldsPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/CropHarvestPage.js +158 -157
- package/dist/healthybowl/pages/crops/CropHarvestPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/CropPlanningPage.js +131 -130
- package/dist/healthybowl/pages/crops/CropPlanningPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/CropsPage.js +173 -172
- package/dist/healthybowl/pages/crops/CropsPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/FieldDetailsPage.js +183 -182
- package/dist/healthybowl/pages/crops/FieldDetailsPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/HarvestDetailsPage.js +224 -223
- package/dist/healthybowl/pages/crops/HarvestDetailsPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/PlanningDetailsPage.js +224 -223
- package/dist/healthybowl/pages/crops/PlanningDetailsPage.js.map +1 -1
- package/dist/healthybowl/pages/farm/FarmProfilePage.js +26 -25
- package/dist/healthybowl/pages/farm/FarmProfilePage.js.map +1 -1
- package/dist/healthybowl/pages/financial/FinancialDashboardPage.js +58 -57
- package/dist/healthybowl/pages/financial/FinancialDashboardPage.js.map +1 -1
- package/dist/healthybowl/pages/financial/FinancialReportsPage.js +120 -119
- package/dist/healthybowl/pages/financial/FinancialReportsPage.js.map +1 -1
- package/dist/healthybowl/pages/financial/TransactionsPage.js +147 -146
- package/dist/healthybowl/pages/financial/TransactionsPage.js.map +1 -1
- package/dist/healthybowl/pages/government-schemes/ApplicationTrackingPage.js +90 -89
- package/dist/healthybowl/pages/government-schemes/ApplicationTrackingPage.js.map +1 -1
- package/dist/healthybowl/pages/government-schemes/GovernmentDashboardPage.js +108 -107
- package/dist/healthybowl/pages/government-schemes/GovernmentDashboardPage.js.map +1 -1
- package/dist/healthybowl/pages/government-schemes/SchemeDetailsPage.js +93 -92
- package/dist/healthybowl/pages/government-schemes/SchemeDetailsPage.js.map +1 -1
- package/dist/healthybowl/pages/government-schemes/SchemeDiscoveryPage.js +95 -94
- package/dist/healthybowl/pages/government-schemes/SchemeDiscoveryPage.js.map +1 -1
- package/dist/healthybowl/pages/government-schemes/SchemesOverviewPage.js +133 -132
- package/dist/healthybowl/pages/government-schemes/SchemesOverviewPage.js.map +1 -1
- package/dist/healthybowl/pages/government-schemes/TrainingProgramsPage.js +151 -150
- package/dist/healthybowl/pages/government-schemes/TrainingProgramsPage.js.map +1 -1
- package/dist/healthybowl/pages/livestock/AnimalDetailsPage.js +342 -341
- package/dist/healthybowl/pages/livestock/AnimalDetailsPage.js.map +1 -1
- package/dist/healthybowl/pages/livestock/LivestockDashboardPage.js +50 -49
- package/dist/healthybowl/pages/livestock/LivestockDashboardPage.js.map +1 -1
- package/dist/healthybowl/pages/marketplace/MarketplacePage.js +324 -323
- package/dist/healthybowl/pages/marketplace/MarketplacePage.js.map +1 -1
- package/dist/healthybowl/pages/marketplace/OrdersPage.js +204 -203
- package/dist/healthybowl/pages/marketplace/OrdersPage.js.map +1 -1
- package/dist/healthybowl/pages/marketplace/ProductDetailPage.js +167 -166
- package/dist/healthybowl/pages/marketplace/ProductDetailPage.js.map +1 -1
- package/dist/healthybowl/pages/marketplace/WishlistPage.js +121 -120
- package/dist/healthybowl/pages/marketplace/WishlistPage.js.map +1 -1
- package/dist/healthybowl/pages/network/CommunityPage.js +64 -63
- package/dist/healthybowl/pages/network/CommunityPage.js.map +1 -1
- package/dist/healthybowl/pages/network/EventsPage.js +228 -227
- package/dist/healthybowl/pages/network/EventsPage.js.map +1 -1
- package/dist/healthybowl/pages/network/ExpertsPage.js +74 -73
- package/dist/healthybowl/pages/network/ExpertsPage.js.map +1 -1
- package/dist/healthybowl/pages/network/MentorsPage.js +186 -185
- package/dist/healthybowl/pages/network/MentorsPage.js.map +1 -1
- package/dist/healthybowl/pages/pest-management/PestOverviewPage.js +69 -68
- package/dist/healthybowl/pages/pest-management/PestOverviewPage.js.map +1 -1
- package/dist/healthybowl/pages/products/BatchesPage.js +255 -254
- package/dist/healthybowl/pages/products/BatchesPage.js.map +1 -1
- package/dist/healthybowl/pages/products/ProductsOverviewPage.js +196 -195
- package/dist/healthybowl/pages/products/ProductsOverviewPage.js.map +1 -1
- package/dist/healthybowl/pages/soil/SoilDashboardPage.js +59 -58
- package/dist/healthybowl/pages/soil/SoilDashboardPage.js.map +1 -1
- package/dist/healthybowl/pages/soil/SoilMonitoringPage.js +43 -42
- package/dist/healthybowl/pages/soil/SoilMonitoringPage.js.map +1 -1
- package/dist/healthybowl/pages/traceability/BatchTrackingPage.js +117 -116
- package/dist/healthybowl/pages/traceability/BatchTrackingPage.js.map +1 -1
- package/dist/healthybowl/pages/traceability/QRCodesPage.js +56 -55
- package/dist/healthybowl/pages/traceability/QRCodesPage.js.map +1 -1
- package/dist/healthybowl/pages/traceability/SupplyChainPage.js +49 -48
- package/dist/healthybowl/pages/traceability/SupplyChainPage.js.map +1 -1
- package/dist/healthybowl/pages/traceability/TraceTrackingPage.js +75 -74
- package/dist/healthybowl/pages/traceability/TraceTrackingPage.js.map +1 -1
- package/dist/healthybowl/pages/weather/WeatherAlertsPage.js +53 -52
- package/dist/healthybowl/pages/weather/WeatherAlertsPage.js.map +1 -1
- 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"}
|