@burdenoff/microfe-healthybowl 2026.625.7 → 2026.625.9
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/ChartCard.js +7 -7
- package/dist/healthybowl/components/ChartCard.js.map +1 -1
- package/dist/healthybowl/components/DataTable.js +2 -2
- package/dist/healthybowl/components/DataTable.js.map +1 -1
- package/dist/healthybowl/components/EmptyState.js +15 -8
- package/dist/healthybowl/components/EmptyState.js.map +1 -1
- package/dist/healthybowl/components/PageLayout.js +29 -12
- package/dist/healthybowl/components/PageLayout.js.map +1 -1
- package/dist/healthybowl/components/StatCard.js +15 -13
- package/dist/healthybowl/components/StatCard.js.map +1 -1
- package/dist/healthybowl/components/StatusBadge.js +1 -1
- package/dist/healthybowl/components/StatusBadge.js.map +1 -1
- package/dist/healthybowl/pages/GettingStartedPage.js +85 -83
- package/dist/healthybowl/pages/GettingStartedPage.js.map +1 -1
- package/dist/healthybowl/pages/HomePage.js +202 -197
- package/dist/healthybowl/pages/HomePage.js.map +1 -1
- package/dist/healthybowl/pages/consultant/FarmerAdvisorsPage.js +115 -129
- package/dist/healthybowl/pages/consultant/FarmerAdvisorsPage.js.map +1 -1
- package/dist/healthybowl/pages/crops/PlanningDetailsPage.js +1 -1
- package/dist/healthybowl/pages/crops/PlanningDetailsPage.js.map +1 -1
- package/dist/healthybowl/pages/financial/FinancierAccessPage.js +191 -201
- package/dist/healthybowl/pages/financial/FinancierAccessPage.js.map +1 -1
- package/dist/healthybowl/pages/livestock/AnimalDetailsPage.js +500 -509
- package/dist/healthybowl/pages/livestock/AnimalDetailsPage.js.map +1 -1
- package/dist/healthybowl/pages/network/CohortsPage.js +143 -155
- package/dist/healthybowl/pages/network/CohortsPage.js.map +1 -1
- package/dist/healthybowl/pages/production/RecipeManagementPage.js +3 -3
- package/dist/healthybowl/pages/production/RecipeManagementPage.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { cn as e } from "../utils/helpers.js";
|
|
2
2
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { CardContent as r, CardDescription as i, CardHeader as a, CardTitle as o, GlassCard as s } from "@burdenoff/fe-libs/ui";
|
|
4
4
|
//#region src/healthybowl/components/ChartCard.tsx
|
|
5
|
-
var c = ({ title: c, description: l, actions: u, children: d, className: f }) => /* @__PURE__ */ n(
|
|
6
|
-
className: e("p-0", f),
|
|
7
|
-
children: [/* @__PURE__ */ n(
|
|
5
|
+
var c = ({ title: c, description: l, actions: u, children: d, className: f }) => /* @__PURE__ */ n(s, {
|
|
6
|
+
className: e("border-border-seam p-0", f),
|
|
7
|
+
children: [/* @__PURE__ */ n(a, {
|
|
8
8
|
className: "flex-row items-center justify-between space-y-0 p-4 pb-4",
|
|
9
9
|
children: [/* @__PURE__ */ n("div", {
|
|
10
10
|
className: "space-y-0.5",
|
|
11
|
-
children: [/* @__PURE__ */ t(
|
|
11
|
+
children: [/* @__PURE__ */ t(o, {
|
|
12
12
|
className: "text-sm font-medium text-text-primary",
|
|
13
13
|
children: c
|
|
14
|
-
}), l && /* @__PURE__ */ t(
|
|
14
|
+
}), l && /* @__PURE__ */ t(i, {
|
|
15
15
|
className: "text-xs text-text-secondary",
|
|
16
16
|
children: l
|
|
17
17
|
})]
|
|
@@ -19,7 +19,7 @@ var c = ({ title: c, description: l, actions: u, children: d, className: f }) =>
|
|
|
19
19
|
className: "flex items-center gap-2",
|
|
20
20
|
children: u
|
|
21
21
|
})]
|
|
22
|
-
}), /* @__PURE__ */ t(
|
|
22
|
+
}), /* @__PURE__ */ t(r, {
|
|
23
23
|
className: "p-4 pt-0",
|
|
24
24
|
children: d
|
|
25
25
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartCard.js","names":[],"sources":["../../../src/healthybowl/components/ChartCard.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\nimport {
|
|
1
|
+
{"version":3,"file":"ChartCard.js","names":[],"sources":["../../../src/healthybowl/components/ChartCard.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\nimport { GlassCard, CardContent, CardDescription, CardHeader, CardTitle } from '@burdenoff/fe-libs/ui';\nimport { cn } from '../utils/helpers';\n\ninterface ChartCardProps {\n title: string;\n description?: string;\n actions?: ReactNode;\n children: ReactNode;\n className?: string;\n}\n\n/**\n * Insight-treatment card for charts and dashboard widgets. Wraps the Boff UI 2.0\n * `GlassCard` primitive (glass surface, seam border, soft pop; hover only deepens\n * the shadow — no movement) and lays out a\n * compact header (title / optional description / optional right-aligned actions)\n * above a body slot. Class overrides keep the original compact density\n * (`p-4`, `text-sm` title, `text-xs` description) rather than the primitive's\n * larger defaults, so existing dashboards render unchanged. `className` is\n * forwarded to the outer card so per-call-site grid spans (e.g. `lg:col-span-2`)\n * keep working.\n */\nexport const ChartCard: FC<ChartCardProps> = ({ title, description, actions, children, className }) => {\n return (\n <GlassCard className={cn('border-border-seam p-0', className)}>\n <CardHeader className=\"flex-row items-center justify-between space-y-0 p-4 pb-4\">\n <div className=\"space-y-0.5\">\n <CardTitle className=\"text-sm font-medium text-text-primary\">{title}</CardTitle>\n {description && <CardDescription className=\"text-xs text-text-secondary\">{description}</CardDescription>}\n </div>\n {actions && <div className=\"flex items-center gap-2\">{actions}</div>}\n </CardHeader>\n <CardContent className=\"p-4 pt-0\">{children}</CardContent>\n </GlassCard>\n );\n};\n"],"mappings":";;;;AAuBA,IAAa,KAAiC,EAAE,UAAO,gBAAa,YAAS,aAAU,mBAEnF,kBAAC,GAAD;CAAW,WAAW,EAAG,0BAA0B,EAAU;WAA7D,CACE,kBAAC,GAAD;EAAY,WAAU;YAAtB,CACE,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,GAAD;IAAW,WAAU;cAAyC;IAAkB,CAAA,EAC/E,KAAe,kBAAC,GAAD;IAAiB,WAAU;cAA+B;IAA8B,CAAA,CACpG;MACL,KAAW,kBAAC,OAAD;GAAK,WAAU;aAA2B;GAAc,CAAA,CACzD;KACb,kBAAC,GAAD;EAAa,WAAU;EAAY;EAAuB,CAAA,CAChD"}
|
|
@@ -95,7 +95,7 @@ function h({ columns: h, data: g, keyField: _, onRowClick: v, emptyMessage: y =
|
|
|
95
95
|
R
|
|
96
96
|
]);
|
|
97
97
|
return g.length === 0 ? /* @__PURE__ */ l("div", {
|
|
98
|
-
className: "flex items-center justify-center rounded-
|
|
98
|
+
className: "flex items-center justify-center rounded-xl border border-border-seam bg-gloss-card p-12",
|
|
99
99
|
children: /* @__PURE__ */ l("p", {
|
|
100
100
|
className: "text-sm text-text-secondary",
|
|
101
101
|
children: y
|
|
@@ -103,7 +103,7 @@ function h({ columns: h, data: g, keyField: _, onRowClick: v, emptyMessage: y =
|
|
|
103
103
|
}) : /* @__PURE__ */ u("div", {
|
|
104
104
|
className: e("space-y-3", b),
|
|
105
105
|
children: [/* @__PURE__ */ l("div", {
|
|
106
|
-
className: "rounded-
|
|
106
|
+
className: "overflow-hidden rounded-xl border border-border-seam bg-gloss-card shadow-pop",
|
|
107
107
|
children: /* @__PURE__ */ l(d, {
|
|
108
108
|
columns: V,
|
|
109
109
|
data: P,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.js","names":[],"sources":["../../../src/healthybowl/components/DataTable.tsx"],"sourcesContent":["import { useState, useMemo, useCallback, type ReactNode } from 'react';\nimport { ChevronUp, ChevronDown, ChevronsUpDown, ChevronLeft, ChevronRight } from 'lucide-react';\nimport { ResponsiveTable, type ResponsiveTableColumn, type ResponsiveTableColumnPriority } from '@burdenoff/fe-libs/ui';\nimport { cn } from '../utils/helpers';\n\nexport interface Column<T> {\n key: string;\n header: string;\n render?: (item: T) => ReactNode;\n className?: string;\n sortable?: boolean;\n}\n\ntype SortDirection = 'asc' | 'desc' | null;\n\ninterface DataTableProps<T> {\n columns: Column<T>[];\n data: T[];\n keyField: string;\n onRowClick?: (item: T) => void;\n emptyMessage?: string;\n className?: string;\n pageSize?: number;\n selectable?: boolean;\n selectedKeys?: Set<string>;\n onSelectionChange?: (keys: Set<string>) => void;\n}\n\n/** Row-action columns (edit / delete / adjust). Shown on the desktop table AND\n * kept on the mobile card (as a secondary field) so row operations stay\n * reachable below 767px — the old horizontally-scrollable table exposed them. */\nconst ACTION_COLUMN_KEYS = new Set(['actions', 'action']);\n/** Pure-control columns (row-select / expand) — dropped from the mobile card. */\nconst CONTROL_COLUMN_KEYS = new Set(['expand', 'select', 'selection']);\n/** All non-content keys, used only to skip them when picking the card heading. */\nconst UTIL_COLUMN_KEYS = new Set([...ACTION_COLUMN_KEYS, ...CONTROL_COLUMN_KEYS]);\n\n/**\n * Tabular list wrapping the Boff `ResponsiveTable` (real <table> at md+, a stack\n * of cards below 767px). The bespoke client-side sorting, pagination and row\n * selection are retained here because the primitive does not provide them — only\n * the current page slice is handed to `ResponsiveTable`. The public prop +\n * `Column` API is unchanged so existing call sites compile as-is.\n */\nexport function DataTable<T extends object>({\n columns,\n data,\n keyField,\n onRowClick,\n emptyMessage = 'No data available',\n className,\n pageSize = 10,\n selectable = false,\n selectedKeys,\n onSelectionChange,\n}: DataTableProps<T>) {\n const [sortKey, setSortKey] = useState<string | null>(null);\n const [sortDir, setSortDir] = useState<SortDirection>(null);\n const [page, setPage] = useState(0);\n\n const handleSort = useCallback(\n (key: string) => {\n if (sortKey === key) {\n if (sortDir === 'asc') setSortDir('desc');\n else if (sortDir === 'desc') {\n setSortKey(null);\n setSortDir(null);\n } else setSortDir('asc');\n } else {\n setSortKey(key);\n setSortDir('asc');\n }\n setPage(0);\n },\n [sortKey, sortDir]\n );\n\n const sorted = useMemo(() => {\n if (!sortKey || !sortDir) return data;\n return [...data].sort((a, b) => {\n const av = (a as Record<string, unknown>)[sortKey];\n const bv = (b as Record<string, unknown>)[sortKey];\n if (av == null && bv == null) return 0;\n if (av == null) return 1;\n if (bv == null) return -1;\n const cmp = typeof av === 'number' && typeof bv === 'number' ? av - bv : String(av).localeCompare(String(bv));\n return sortDir === 'asc' ? cmp : -cmp;\n });\n }, [data, sortKey, sortDir]);\n\n const totalPages = Math.max(1, Math.ceil(sorted.length / pageSize));\n const paged = sorted.slice(page * pageSize, (page + 1) * pageSize);\n\n const rowKeyFor = useCallback((item: T) => String((item as Record<string, unknown>)[keyField]), [keyField]);\n\n const allPageKeysSelected =\n selectable && selectedKeys ? paged.length > 0 && paged.every((item) => selectedKeys.has(rowKeyFor(item))) : false;\n\n const handleSelectAll = useCallback(() => {\n if (!onSelectionChange || !selectedKeys) return;\n const keys = new Set(selectedKeys);\n if (allPageKeysSelected) {\n paged.forEach((item) => keys.delete(rowKeyFor(item)));\n } else {\n paged.forEach((item) => keys.add(rowKeyFor(item)));\n }\n onSelectionChange(keys);\n }, [allPageKeysSelected, onSelectionChange, paged, rowKeyFor, selectedKeys]);\n\n const handleSelectRow = useCallback(\n (item: T) => {\n if (!onSelectionChange || !selectedKeys) return;\n const key = rowKeyFor(item);\n const keys = new Set(selectedKeys);\n if (keys.has(key)) keys.delete(key);\n else keys.add(key);\n onSelectionChange(keys);\n },\n [onSelectionChange, rowKeyFor, selectedKeys]\n );\n\n // Derive a mobile-card priority for each column: the first content column is\n // the card heading; util columns (actions/expand/select) are hidden on mobile;\n // everything else is a labelled secondary field. Desktop renders every column\n // regardless, so this never changes the md+ table.\n const firstContentKey = useMemo(() => {\n const content = columns.find((c) => !UTIL_COLUMN_KEYS.has(c.key) && c.header.trim() !== '');\n return content?.key;\n }, [columns]);\n\n const priorityFor = useCallback(\n (col: Column<T>): ResponsiveTableColumnPriority => {\n if (col.key === firstContentKey) return 'primary';\n // Edit/delete actions stay on the mobile card so rows remain operable.\n if (ACTION_COLUMN_KEYS.has(col.key)) return 'secondary';\n // Pure controls + unlabelled columns drop off the mobile card.\n if (CONTROL_COLUMN_KEYS.has(col.key) || col.header.trim() === '') return 'hidden-on-mobile';\n return 'secondary';\n },\n [firstContentKey]\n );\n\n const responsiveColumns = useMemo<ResponsiveTableColumn<T>[]>(() => {\n const mapped = columns.map((col): ResponsiveTableColumn<T> => {\n const isSortable = col.sortable !== false;\n const isActive = sortKey === col.key;\n return {\n key: col.key,\n priority: priorityFor(col),\n headerClassName: col.className,\n cellClassName: col.className,\n mobileLabel: col.header,\n header: (\n <span\n className={cn(\n 'inline-flex items-center gap-1 text-xs font-medium uppercase tracking-wider text-text-secondary',\n isSortable && 'cursor-pointer select-none hover:text-text-primary'\n )}\n onClick={isSortable ? () => handleSort(col.key) : undefined}\n >\n {col.header}\n {isSortable &&\n (isActive ? (\n sortDir === 'asc' ? (\n <ChevronUp className=\"h-3 w-3\" />\n ) : (\n <ChevronDown className=\"h-3 w-3\" />\n )\n ) : (\n <ChevronsUpDown className=\"h-3 w-3 opacity-30\" />\n ))}\n </span>\n ),\n cell: (item: T) => (col.render ? col.render(item) : String((item as Record<string, unknown>)[col.key] ?? '')),\n };\n });\n\n if (!selectable) return mapped;\n\n const selectColumn: ResponsiveTableColumn<T> = {\n key: '__select__',\n priority: 'hidden-on-mobile',\n headerClassName: 'w-10',\n cellClassName: 'w-10',\n header: (\n <input\n type=\"checkbox\"\n checked={allPageKeysSelected}\n onChange={handleSelectAll}\n className=\"h-4 w-4 rounded border-border-subtle\"\n aria-label=\"Select all rows on this page\"\n />\n ),\n cell: (item: T) => (\n <span onClick={(e) => e.stopPropagation()}>\n <input\n type=\"checkbox\"\n checked={selectedKeys?.has(rowKeyFor(item)) ?? false}\n onChange={() => handleSelectRow(item)}\n className=\"h-4 w-4 rounded border-border-subtle\"\n aria-label=\"Select row\"\n />\n </span>\n ),\n };\n return [selectColumn, ...mapped];\n }, [\n columns,\n priorityFor,\n sortKey,\n sortDir,\n handleSort,\n selectable,\n allPageKeysSelected,\n handleSelectAll,\n selectedKeys,\n rowKeyFor,\n handleSelectRow,\n ]);\n\n if (data.length === 0) {\n return (\n <div className=\"flex items-center justify-center rounded-lg border border-border-subtle bg-bg-surface p-12\">\n <p className=\"text-sm text-text-secondary\">{emptyMessage}</p>\n </div>\n );\n }\n\n return (\n <div className={cn('space-y-3', className)}>\n <div className=\"rounded-lg border border-border-subtle\">\n <ResponsiveTable<T> columns={responsiveColumns} data={paged} rowKey={rowKeyFor} onRowClick={onRowClick} />\n </div>\n\n {/* Pagination */}\n {sorted.length > pageSize && (\n <div className=\"flex items-center justify-between text-sm\">\n <span className=\"text-text-secondary\">\n Showing {page * pageSize + 1}-{Math.min((page + 1) * pageSize, sorted.length)} of {sorted.length}\n </span>\n <div className=\"flex items-center gap-1\">\n <button\n onClick={() => setPage((p) => Math.max(0, p - 1))}\n disabled={page === 0}\n className=\"rounded-md border border-border-subtle p-1.5 text-text-secondary transition-colors hover:text-text-primary disabled:cursor-not-allowed disabled:opacity-40\"\n aria-label=\"Previous page\"\n >\n <ChevronLeft className=\"h-4 w-4\" />\n </button>\n {Array.from({ length: totalPages }).map((_, i) => (\n <button\n key={i}\n onClick={() => setPage(i)}\n aria-current={i === page ? 'page' : undefined}\n className={cn(\n 'h-8 w-8 rounded-md text-xs font-medium transition-colors',\n i === page ? 'bg-foreground text-background' : 'text-text-secondary hover:bg-bg-sunken'\n )}\n >\n {i + 1}\n </button>\n ))}\n <button\n onClick={() => setPage((p) => Math.min(totalPages - 1, p + 1))}\n disabled={page >= totalPages - 1}\n className=\"rounded-md border border-border-subtle p-1.5 text-text-secondary transition-colors hover:text-text-primary disabled:cursor-not-allowed disabled:opacity-40\"\n aria-label=\"Next page\"\n >\n <ChevronRight className=\"h-4 w-4\" />\n </button>\n </div>\n </div>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;AA+BA,IAAM,IAAqB,IAAI,IAAI,CAAC,WAAW,SAAS,CAAC,EAEnD,IAAsB,IAAI,IAAI;CAAC;CAAU;CAAU;CAAY,CAAC,EAEhE,IAAmB,IAAI,IAAI,CAAC,GAAG,GAAoB,GAAG,EAAoB,CAAC;AASjF,SAAgB,EAA4B,EAC1C,YACA,SACA,aACA,eACA,kBAAe,qBACf,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AAC,GAAD,EAAa,WAAU,WAAY,CAAA;MAC5B,CAAA;KACR,MAAM,KAAK,EAAE,QAAQ,GAAY,CAAC,CAAC,KAAK,GAAG,MAC1C,kBAAC,UAAD;MAEE,eAAe,EAAQ,EAAE;MACzB,gBAAc,MAAM,IAAO,SAAS,KAAA;MACpC,WAAW,EACT,4DACA,MAAM,IAAO,kCAAkC,yCAChD;gBAEA,IAAI;MACE,EATF,EASE,CACT;KACF,kBAAC,UAAD;MACE,eAAe,GAAS,MAAM,KAAK,IAAI,IAAa,GAAG,IAAI,EAAE,CAAC;MAC9D,UAAU,KAAQ,IAAa;MAC/B,WAAU;MACV,cAAW;gBAEX,kBAAC,GAAD,EAAc,WAAU,WAAY,CAAA;MAC7B,CAAA;KACL;MACF;KAEJ"}
|
|
1
|
+
{"version":3,"file":"DataTable.js","names":[],"sources":["../../../src/healthybowl/components/DataTable.tsx"],"sourcesContent":["import { useState, useMemo, useCallback, type ReactNode } from 'react';\nimport { ChevronUp, ChevronDown, ChevronsUpDown, ChevronLeft, ChevronRight } from 'lucide-react';\nimport { ResponsiveTable, type ResponsiveTableColumn, type ResponsiveTableColumnPriority } from '@burdenoff/fe-libs/ui';\nimport { cn } from '../utils/helpers';\n\nexport interface Column<T> {\n key: string;\n header: string;\n render?: (item: T) => ReactNode;\n className?: string;\n sortable?: boolean;\n}\n\ntype SortDirection = 'asc' | 'desc' | null;\n\ninterface DataTableProps<T> {\n columns: Column<T>[];\n data: T[];\n keyField: string;\n onRowClick?: (item: T) => void;\n emptyMessage?: string;\n className?: string;\n pageSize?: number;\n selectable?: boolean;\n selectedKeys?: Set<string>;\n onSelectionChange?: (keys: Set<string>) => void;\n}\n\n/** Row-action columns (edit / delete / adjust). Shown on the desktop table AND\n * kept on the mobile card (as a secondary field) so row operations stay\n * reachable below 767px — the old horizontally-scrollable table exposed them. */\nconst ACTION_COLUMN_KEYS = new Set(['actions', 'action']);\n/** Pure-control columns (row-select / expand) — dropped from the mobile card. */\nconst CONTROL_COLUMN_KEYS = new Set(['expand', 'select', 'selection']);\n/** All non-content keys, used only to skip them when picking the card heading. */\nconst UTIL_COLUMN_KEYS = new Set([...ACTION_COLUMN_KEYS, ...CONTROL_COLUMN_KEYS]);\n\n/**\n * Tabular list wrapping the Boff `ResponsiveTable` (real <table> at md+, a stack\n * of cards below 767px). The bespoke client-side sorting, pagination and row\n * selection are retained here because the primitive does not provide them — only\n * the current page slice is handed to `ResponsiveTable`. The public prop +\n * `Column` API is unchanged so existing call sites compile as-is.\n */\nexport function DataTable<T extends object>({\n columns,\n data,\n keyField,\n onRowClick,\n emptyMessage = 'No data available',\n className,\n pageSize = 10,\n selectable = false,\n selectedKeys,\n onSelectionChange,\n}: DataTableProps<T>) {\n const [sortKey, setSortKey] = useState<string | null>(null);\n const [sortDir, setSortDir] = useState<SortDirection>(null);\n const [page, setPage] = useState(0);\n\n const handleSort = useCallback(\n (key: string) => {\n if (sortKey === key) {\n if (sortDir === 'asc') setSortDir('desc');\n else if (sortDir === 'desc') {\n setSortKey(null);\n setSortDir(null);\n } else setSortDir('asc');\n } else {\n setSortKey(key);\n setSortDir('asc');\n }\n setPage(0);\n },\n [sortKey, sortDir]\n );\n\n const sorted = useMemo(() => {\n if (!sortKey || !sortDir) return data;\n return [...data].sort((a, b) => {\n const av = (a as Record<string, unknown>)[sortKey];\n const bv = (b as Record<string, unknown>)[sortKey];\n if (av == null && bv == null) return 0;\n if (av == null) return 1;\n if (bv == null) return -1;\n const cmp = typeof av === 'number' && typeof bv === 'number' ? av - bv : String(av).localeCompare(String(bv));\n return sortDir === 'asc' ? cmp : -cmp;\n });\n }, [data, sortKey, sortDir]);\n\n const totalPages = Math.max(1, Math.ceil(sorted.length / pageSize));\n const paged = sorted.slice(page * pageSize, (page + 1) * pageSize);\n\n const rowKeyFor = useCallback((item: T) => String((item as Record<string, unknown>)[keyField]), [keyField]);\n\n const allPageKeysSelected =\n selectable && selectedKeys ? paged.length > 0 && paged.every((item) => selectedKeys.has(rowKeyFor(item))) : false;\n\n const handleSelectAll = useCallback(() => {\n if (!onSelectionChange || !selectedKeys) return;\n const keys = new Set(selectedKeys);\n if (allPageKeysSelected) {\n paged.forEach((item) => keys.delete(rowKeyFor(item)));\n } else {\n paged.forEach((item) => keys.add(rowKeyFor(item)));\n }\n onSelectionChange(keys);\n }, [allPageKeysSelected, onSelectionChange, paged, rowKeyFor, selectedKeys]);\n\n const handleSelectRow = useCallback(\n (item: T) => {\n if (!onSelectionChange || !selectedKeys) return;\n const key = rowKeyFor(item);\n const keys = new Set(selectedKeys);\n if (keys.has(key)) keys.delete(key);\n else keys.add(key);\n onSelectionChange(keys);\n },\n [onSelectionChange, rowKeyFor, selectedKeys]\n );\n\n // Derive a mobile-card priority for each column: the first content column is\n // the card heading; util columns (actions/expand/select) are hidden on mobile;\n // everything else is a labelled secondary field. Desktop renders every column\n // regardless, so this never changes the md+ table.\n const firstContentKey = useMemo(() => {\n const content = columns.find((c) => !UTIL_COLUMN_KEYS.has(c.key) && c.header.trim() !== '');\n return content?.key;\n }, [columns]);\n\n const priorityFor = useCallback(\n (col: Column<T>): ResponsiveTableColumnPriority => {\n if (col.key === firstContentKey) return 'primary';\n // Edit/delete actions stay on the mobile card so rows remain operable.\n if (ACTION_COLUMN_KEYS.has(col.key)) return 'secondary';\n // Pure controls + unlabelled columns drop off the mobile card.\n if (CONTROL_COLUMN_KEYS.has(col.key) || col.header.trim() === '') return 'hidden-on-mobile';\n return 'secondary';\n },\n [firstContentKey]\n );\n\n const responsiveColumns = useMemo<ResponsiveTableColumn<T>[]>(() => {\n const mapped = columns.map((col): ResponsiveTableColumn<T> => {\n const isSortable = col.sortable !== false;\n const isActive = sortKey === col.key;\n return {\n key: col.key,\n priority: priorityFor(col),\n headerClassName: col.className,\n cellClassName: col.className,\n mobileLabel: col.header,\n header: (\n <span\n className={cn(\n 'inline-flex items-center gap-1 text-xs font-medium uppercase tracking-wider text-text-secondary',\n isSortable && 'cursor-pointer select-none hover:text-text-primary'\n )}\n onClick={isSortable ? () => handleSort(col.key) : undefined}\n >\n {col.header}\n {isSortable &&\n (isActive ? (\n sortDir === 'asc' ? (\n <ChevronUp className=\"h-3 w-3\" />\n ) : (\n <ChevronDown className=\"h-3 w-3\" />\n )\n ) : (\n <ChevronsUpDown className=\"h-3 w-3 opacity-30\" />\n ))}\n </span>\n ),\n cell: (item: T) => (col.render ? col.render(item) : String((item as Record<string, unknown>)[col.key] ?? '')),\n };\n });\n\n if (!selectable) return mapped;\n\n const selectColumn: ResponsiveTableColumn<T> = {\n key: '__select__',\n priority: 'hidden-on-mobile',\n headerClassName: 'w-10',\n cellClassName: 'w-10',\n header: (\n <input\n type=\"checkbox\"\n checked={allPageKeysSelected}\n onChange={handleSelectAll}\n className=\"h-4 w-4 rounded border-border-subtle\"\n aria-label=\"Select all rows on this page\"\n />\n ),\n cell: (item: T) => (\n <span onClick={(e) => e.stopPropagation()}>\n <input\n type=\"checkbox\"\n checked={selectedKeys?.has(rowKeyFor(item)) ?? false}\n onChange={() => handleSelectRow(item)}\n className=\"h-4 w-4 rounded border-border-subtle\"\n aria-label=\"Select row\"\n />\n </span>\n ),\n };\n return [selectColumn, ...mapped];\n }, [\n columns,\n priorityFor,\n sortKey,\n sortDir,\n handleSort,\n selectable,\n allPageKeysSelected,\n handleSelectAll,\n selectedKeys,\n rowKeyFor,\n handleSelectRow,\n ]);\n\n if (data.length === 0) {\n return (\n <div className=\"flex items-center justify-center rounded-xl border border-border-seam bg-gloss-card p-12\">\n <p className=\"text-sm text-text-secondary\">{emptyMessage}</p>\n </div>\n );\n }\n\n return (\n <div className={cn('space-y-3', className)}>\n <div className=\"overflow-hidden rounded-xl border border-border-seam bg-gloss-card shadow-pop\">\n <ResponsiveTable<T> columns={responsiveColumns} data={paged} rowKey={rowKeyFor} onRowClick={onRowClick} />\n </div>\n\n {/* Pagination */}\n {sorted.length > pageSize && (\n <div className=\"flex items-center justify-between text-sm\">\n <span className=\"text-text-secondary\">\n Showing {page * pageSize + 1}-{Math.min((page + 1) * pageSize, sorted.length)} of {sorted.length}\n </span>\n <div className=\"flex items-center gap-1\">\n <button\n onClick={() => setPage((p) => Math.max(0, p - 1))}\n disabled={page === 0}\n className=\"rounded-md border border-border-subtle p-1.5 text-text-secondary transition-colors hover:text-text-primary disabled:cursor-not-allowed disabled:opacity-40\"\n aria-label=\"Previous page\"\n >\n <ChevronLeft className=\"h-4 w-4\" />\n </button>\n {Array.from({ length: totalPages }).map((_, i) => (\n <button\n key={i}\n onClick={() => setPage(i)}\n aria-current={i === page ? 'page' : undefined}\n className={cn(\n 'h-8 w-8 rounded-md text-xs font-medium transition-colors',\n i === page ? 'bg-foreground text-background' : 'text-text-secondary hover:bg-bg-sunken'\n )}\n >\n {i + 1}\n </button>\n ))}\n <button\n onClick={() => setPage((p) => Math.min(totalPages - 1, p + 1))}\n disabled={page >= totalPages - 1}\n className=\"rounded-md border border-border-subtle p-1.5 text-text-secondary transition-colors hover:text-text-primary disabled:cursor-not-allowed disabled:opacity-40\"\n aria-label=\"Next page\"\n >\n <ChevronRight className=\"h-4 w-4\" />\n </button>\n </div>\n </div>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;AA+BA,IAAM,IAAqB,IAAI,IAAI,CAAC,WAAW,SAAS,CAAC,EAEnD,IAAsB,IAAI,IAAI;CAAC;CAAU;CAAU;CAAY,CAAC,EAEhE,IAAmB,IAAI,IAAI,CAAC,GAAG,GAAoB,GAAG,EAAoB,CAAC;AASjF,SAAgB,EAA4B,EAC1C,YACA,SACA,aACA,eACA,kBAAe,qBACf,cACA,cAAW,IACX,gBAAa,IACb,iBACA,wBACoB;CACpB,IAAM,CAAC,GAAS,KAAc,EAAwB,KAAK,EACrD,CAAC,GAAS,KAAc,EAAwB,KAAK,EACrD,CAAC,GAAM,KAAW,EAAS,EAAE,EAE7B,IAAa,GAChB,MAAgB;AAWf,EAVI,MAAY,IACV,MAAY,QAAO,EAAW,OAAO,GAChC,MAAY,UACnB,EAAW,KAAK,EAChB,EAA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ACT;KACF,kBAAC,UAAD;MACE,eAAe,GAAS,MAAM,KAAK,IAAI,IAAa,GAAG,IAAI,EAAE,CAAC;MAC9D,UAAU,KAAQ,IAAa;MAC/B,WAAU;MACV,cAAW;gBAEX,kBAAC,GAAD,EAAc,WAAU,WAAY,CAAA;MAC7B,CAAA;KACL;MACF;KAEJ"}
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { EmptyState as t } from "@burdenoff/fe-libs/ui";
|
|
2
|
+
import { EmptyState as t, IllustratedEmptyState as n } from "@burdenoff/fe-libs/ui";
|
|
3
3
|
//#region src/healthybowl/components/EmptyState.tsx
|
|
4
|
-
var
|
|
5
|
-
icon:
|
|
6
|
-
title:
|
|
7
|
-
description:
|
|
8
|
-
action:
|
|
9
|
-
className:
|
|
4
|
+
var r = ({ icon: r, title: i, description: a, action: o, illustration: s = "empty-data", className: c }) => r ? /* @__PURE__ */ e(t, {
|
|
5
|
+
icon: r,
|
|
6
|
+
title: i,
|
|
7
|
+
description: a,
|
|
8
|
+
action: o,
|
|
9
|
+
className: c
|
|
10
|
+
}) : /* @__PURE__ */ e(n, {
|
|
11
|
+
illustration: s,
|
|
12
|
+
title: i,
|
|
13
|
+
description: a,
|
|
14
|
+
action: o,
|
|
15
|
+
alt: i,
|
|
16
|
+
className: c
|
|
10
17
|
});
|
|
11
18
|
//#endregion
|
|
12
|
-
export {
|
|
19
|
+
export { r as EmptyState };
|
|
13
20
|
|
|
14
21
|
//# sourceMappingURL=EmptyState.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyState.js","names":[],"sources":["../../../src/healthybowl/components/EmptyState.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\nimport { EmptyState as BoffEmptyState } from '@burdenoff/fe-libs/ui';\n\ninterface EmptyStateProps {\n icon?: ReactNode;\n title: string;\n description?: string;\n action?: ReactNode;\n className?: string;\n}\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"EmptyState.js","names":[],"sources":["../../../src/healthybowl/components/EmptyState.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\nimport { EmptyState as BoffEmptyState, IllustratedEmptyState } from '@burdenoff/fe-libs/ui';\n\ninterface EmptyStateProps {\n icon?: ReactNode;\n title: string;\n description?: string;\n action?: ReactNode;\n /**\n * Boff UI 2.0 on-brand illustration name (host serves /illustrations/<name>.webp).\n * Standard names: empty-data, empty-search, empty-files, empty-people,\n * empty-notifications, onboarding, empty-generic. Defaults to \"empty-data\".\n * Ignored when a custom `icon` is supplied (legacy icon path).\n */\n illustration?: string;\n className?: string;\n}\n\n/**\n * Boff UI 2.0 zero state. With no custom `icon` it renders the calm,\n * illustration-led `IllustratedEmptyState` (on-brand glass illustration + title\n * + description + optional action). Call sites that pass a meaningful domain\n * `icon` keep the lighter icon-based primitive for continuity. The local prop API\n * is preserved so existing call sites are untouched.\n */\nexport const EmptyState: FC<EmptyStateProps> = ({\n icon,\n title,\n description,\n action,\n illustration = 'empty-data',\n className,\n}) => {\n if (!icon) {\n return (\n <IllustratedEmptyState\n illustration={illustration}\n title={title}\n description={description}\n action={action}\n alt={title}\n className={className}\n />\n );\n }\n\n return <BoffEmptyState icon={icon} title={title} description={description} action={action} className={className} />;\n};\n"],"mappings":";;;AAyBA,IAAa,KAAmC,EAC9C,SACA,UACA,gBACA,WACA,kBAAe,cACf,mBAEK,IAaE,kBAAC,GAAD;CAAsB;CAAa;CAAoB;CAAqB;CAAmB;CAAa,CAAA,GAX/G,kBAAC,GAAD;CACgB;CACP;CACM;CACL;CACR,KAAK;CACM;CACX,CAAA"}
|
|
@@ -1,17 +1,34 @@
|
|
|
1
1
|
import { cn as e } from "../utils/helpers.js";
|
|
2
|
-
import {
|
|
3
|
-
import { PageContainer as
|
|
4
|
-
import { PageHeader as
|
|
2
|
+
import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
|
+
import { AuroraBackground as i, GradientText as a, PageContainer as o } from "@burdenoff/fe-libs/ui";
|
|
4
|
+
import { PageHeader as s } from "@burdenoff/fe-libs/chrome";
|
|
5
5
|
//#region src/healthybowl/components/PageLayout.tsx
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
});
|
|
6
|
+
var c = (e, i) => {
|
|
7
|
+
if (!i) return e;
|
|
8
|
+
let o = e.indexOf(i);
|
|
9
|
+
return o === -1 ? e : /* @__PURE__ */ r(t, { children: [
|
|
10
|
+
e.slice(0, o),
|
|
11
|
+
/* @__PURE__ */ n(a, { children: i }),
|
|
12
|
+
e.slice(o + i.length)
|
|
13
|
+
] });
|
|
14
|
+
}, l = ({ title: t, description: a, actions: l, children: u, hero: d = !1, titleAccent: f, className: p }) => {
|
|
15
|
+
let m = /* @__PURE__ */ n(s, {
|
|
16
|
+
title: c(t, f),
|
|
17
|
+
description: a,
|
|
18
|
+
actions: l
|
|
19
|
+
});
|
|
20
|
+
return /* @__PURE__ */ r(o, {
|
|
21
|
+
className: e("space-y-6", p),
|
|
22
|
+
children: [d ? /* @__PURE__ */ r("div", {
|
|
23
|
+
className: "relative overflow-hidden rounded-2xl border border-border-seam bg-hero-mesh px-6 py-5 shadow-pop",
|
|
24
|
+
children: [/* @__PURE__ */ n(i, { intensity: "subtle" }), /* @__PURE__ */ n("div", {
|
|
25
|
+
className: "relative z-10",
|
|
26
|
+
children: m
|
|
27
|
+
})]
|
|
28
|
+
}) : m, u]
|
|
29
|
+
});
|
|
30
|
+
};
|
|
14
31
|
//#endregion
|
|
15
|
-
export {
|
|
32
|
+
export { l as PageLayout };
|
|
16
33
|
|
|
17
34
|
//# sourceMappingURL=PageLayout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageLayout.js","names":[],"sources":["../../../src/healthybowl/components/PageLayout.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\nimport { PageContainer } from '@burdenoff/fe-libs/ui';\nimport { PageHeader } from '@burdenoff/fe-libs/chrome';\nimport { cn } from '../utils/helpers';\n\ninterface PageLayoutProps {\n title: string;\n description?: string;\n actions?: ReactNode;\n children: ReactNode;\n className?: string;\n}\n\n/**\n * Standard page scaffold. Wraps the Boff `PageContainer` (background + padding)\n * and `PageHeader` (title/description/actions) so every page is theme-compliant.\n * `PageContainer` supplies the default page padding
|
|
1
|
+
{"version":3,"file":"PageLayout.js","names":[],"sources":["../../../src/healthybowl/components/PageLayout.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\nimport { PageContainer, AuroraBackground, GradientText } from '@burdenoff/fe-libs/ui';\nimport { PageHeader } from '@burdenoff/fe-libs/chrome';\nimport { cn } from '../utils/helpers';\n\ninterface PageLayoutProps {\n title: string;\n description?: string;\n actions?: ReactNode;\n children: ReactNode;\n /**\n * Boff UI 2.0 hero header — wraps the page header in a glass card with a subtle\n * living AuroraBackground backdrop. Use on the MFE's PRIMARY page only (one\n * aurora per MFE). The backdrop sits behind the content (-z-10), never shifts\n * layout, and goes static under reduced-motion.\n */\n hero?: boolean;\n /**\n * Key noun of the title to render with GradientText (the one hero heading per\n * page). Must be a substring of `title`; the surrounding text stays plain.\n */\n titleAccent?: string;\n className?: string;\n}\n\n/** Renders the title, highlighting `accent` (if present) with GradientText. */\nconst renderTitle = (title: string, accent?: string): ReactNode => {\n if (!accent) return title;\n const idx = title.indexOf(accent);\n if (idx === -1) return title;\n return (\n <>\n {title.slice(0, idx)}\n <GradientText>{accent}</GradientText>\n {title.slice(idx + accent.length)}\n </>\n );\n};\n\n/**\n * Standard page scaffold. Wraps the Boff `PageContainer` (background + padding)\n * and `PageHeader` (title/description/actions) so every page is theme-compliant.\n * With `hero`, the header is wrapped in a glassy mesh card with a living aurora\n * backdrop (Boff UI 2.0) for the MFE's primary page; `titleAccent` clips the key\n * noun into a brand gradient. `PageContainer` supplies the default page padding;\n * we re-add the inter-section vertical gap so header→content spacing is preserved.\n */\nexport const PageLayout: FC<PageLayoutProps> = ({\n title,\n description,\n actions,\n children,\n hero = false,\n titleAccent,\n className,\n}) => {\n const header = (\n <PageHeader title={renderTitle(title, titleAccent)} description={description} actions={actions} />\n );\n\n return (\n <PageContainer className={cn('space-y-6', className)}>\n {hero ? (\n <div className=\"relative overflow-hidden rounded-2xl border border-border-seam bg-hero-mesh px-6 py-5 shadow-pop\">\n <AuroraBackground intensity=\"subtle\" />\n <div className=\"relative z-10\">{header}</div>\n </div>\n ) : (\n header\n )}\n {children}\n </PageContainer>\n );\n};\n"],"mappings":";;;;;AA0BA,IAAM,KAAe,GAAe,MAA+B;AACjE,KAAI,CAAC,EAAQ,QAAO;CACpB,IAAM,IAAM,EAAM,QAAQ,EAAO;AAEjC,QADI,MAAQ,KAAW,IAErB,kBAAA,GAAA,EAAA,UAAA;EACG,EAAM,MAAM,GAAG,EAAI;EACpB,kBAAC,GAAD,EAAA,UAAe,GAAsB,CAAA;EACpC,EAAM,MAAM,IAAM,EAAO,OAAO;EAChC,EAAA,CAAA;GAYM,KAAmC,EAC9C,UACA,gBACA,YACA,aACA,UAAO,IACP,gBACA,mBACI;CACJ,IAAM,IACJ,kBAAC,GAAD;EAAY,OAAO,EAAY,GAAO,EAAY;EAAe;EAAsB;EAAW,CAAA;AAGpG,QACE,kBAAC,GAAD;EAAe,WAAW,EAAG,aAAa,EAAU;YAApD,CACG,IACC,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,GAAD,EAAkB,WAAU,UAAW,CAAA,EACvC,kBAAC,OAAD;IAAK,WAAU;cAAiB;IAAa,CAAA,CACzC;OAEN,GAED,EACa"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { cn as e, formatCurrency as t, formatNumber as n } from "../utils/helpers.js";
|
|
2
2
|
import { Minus as r, TrendingDown as i, TrendingUp as a } from "lucide-react";
|
|
3
3
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
4
|
-
import { Badge as c,
|
|
4
|
+
import { Badge as c, GlassCard as l } from "@burdenoff/fe-libs/ui";
|
|
5
5
|
//#region src/healthybowl/components/StatCard.tsx
|
|
6
6
|
var u = {
|
|
7
7
|
up: "success",
|
|
8
8
|
down: "destructive",
|
|
9
9
|
stable: "secondary"
|
|
10
|
-
}, d = ({ label: d, value: f, previousValue: p, unit: m, prefix: h, icon: g, trend: _, change: v,
|
|
11
|
-
let
|
|
10
|
+
}, d = ({ label: d, value: f, previousValue: p, unit: m, prefix: h, icon: g, trend: _, change: v, hero: y = !1, className: b }) => {
|
|
11
|
+
let x = v ?? (p ? Math.round(((typeof f == "number" ? f : 0) - p) / p * 100) : 0), S = _ ?? (x > 0 ? "up" : x < 0 ? "down" : "stable"), C = typeof f == "string" ? f : h === "$" ? t(f) : `${n(f)}${m ? ` ${m}` : ""}`;
|
|
12
12
|
return /* @__PURE__ */ s(l, {
|
|
13
|
-
|
|
13
|
+
treatment: y ? "glass" : "metric",
|
|
14
|
+
glow: y,
|
|
15
|
+
className: e("border-border-seam p-4", b),
|
|
14
16
|
children: [
|
|
15
17
|
/* @__PURE__ */ s("div", {
|
|
16
18
|
className: "flex items-center justify-between",
|
|
@@ -18,7 +20,7 @@ var u = {
|
|
|
18
20
|
className: "text-sm font-medium text-text-secondary",
|
|
19
21
|
children: d
|
|
20
22
|
}), g && /* @__PURE__ */ o("span", {
|
|
21
|
-
className: "text-text-
|
|
23
|
+
className: "flex size-8 items-center justify-center rounded-lg bg-[var(--color-accent-soft)] text-text-primary [&>svg]:size-4",
|
|
22
24
|
children: g
|
|
23
25
|
})]
|
|
24
26
|
}),
|
|
@@ -26,23 +28,23 @@ var u = {
|
|
|
26
28
|
className: "mt-2 flex items-baseline gap-2",
|
|
27
29
|
children: /* @__PURE__ */ o("span", {
|
|
28
30
|
className: "text-3xl font-semibold tabular-nums text-text-primary",
|
|
29
|
-
children:
|
|
31
|
+
children: C
|
|
30
32
|
})
|
|
31
33
|
}),
|
|
32
|
-
|
|
34
|
+
x !== 0 && /* @__PURE__ */ s("div", {
|
|
33
35
|
className: "mt-2 flex items-center gap-2",
|
|
34
36
|
children: [/* @__PURE__ */ s(c, {
|
|
35
|
-
variant: u[
|
|
37
|
+
variant: u[S],
|
|
36
38
|
className: "gap-1",
|
|
37
39
|
children: [
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
S === "up" && /* @__PURE__ */ o(a, { className: "h-3 w-3" }),
|
|
41
|
+
S === "down" && /* @__PURE__ */ o(i, { className: "h-3 w-3" }),
|
|
42
|
+
S === "stable" && /* @__PURE__ */ o(r, { className: "h-3 w-3" }),
|
|
41
43
|
/* @__PURE__ */ s("span", {
|
|
42
44
|
className: "tabular-nums",
|
|
43
45
|
children: [
|
|
44
|
-
|
|
45
|
-
|
|
46
|
+
x > 0 ? "+" : "",
|
|
47
|
+
x,
|
|
46
48
|
"%"
|
|
47
49
|
]
|
|
48
50
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatCard.js","names":[],"sources":["../../../src/healthybowl/components/StatCard.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\nimport { TrendingUp, TrendingDown, Minus } from 'lucide-react';\nimport {
|
|
1
|
+
{"version":3,"file":"StatCard.js","names":[],"sources":["../../../src/healthybowl/components/StatCard.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\nimport { TrendingUp, TrendingDown, Minus } from 'lucide-react';\nimport { GlassCard, Badge } from '@burdenoff/fe-libs/ui';\nimport { cn, formatNumber, formatCurrency } from '../utils/helpers';\n\ninterface StatCardProps {\n label: string;\n value: number | string;\n previousValue?: number;\n unit?: string;\n prefix?: string;\n icon?: ReactNode;\n trend?: 'up' | 'down' | 'stable';\n change?: number;\n /** Render this tile as the page's hero metric (glass treatment + accent glow). */\n hero?: boolean;\n className?: string;\n}\n\n/**\n * KPI tile re-based onto the Boff UI 2.0 `GlassCard` \"metric\" treatment (accent\n * wash + seam border + soft pop) so every metric reads as elevated-but-quiet\n * glass. The single hero metric per page may opt into the richer \"glass\"\n * treatment with an accent glow via `hero`. A large `tabular-nums` value plus an\n * optional period-over-period delta rendered as a `Badge`. The public prop\n * contract is unchanged so existing call sites are untouched. No hover movement —\n * GlassCard only intensifies its shadow. Semantic tokens only — no raw colors.\n */\nconst trendBadgeVariant: Record<'up' | 'down' | 'stable', 'success' | 'destructive' | 'secondary'> = {\n up: 'success',\n down: 'destructive',\n stable: 'secondary',\n};\n\nexport const StatCard: FC<StatCardProps> = ({\n label,\n value,\n previousValue,\n unit,\n prefix,\n icon,\n trend,\n change,\n hero = false,\n className,\n}) => {\n const numericValue = typeof value === 'number' ? value : 0;\n const computedChange =\n change ?? (previousValue ? Math.round(((numericValue - previousValue) / previousValue) * 100) : 0);\n const computedTrend = trend ?? (computedChange > 0 ? 'up' : computedChange < 0 ? 'down' : 'stable');\n\n const displayValue =\n typeof value === 'string'\n ? value\n : prefix === '$'\n ? formatCurrency(value)\n : `${formatNumber(value)}${unit ? ` ${unit}` : ''}`;\n\n return (\n <GlassCard treatment={hero ? 'glass' : 'metric'} glow={hero} className={cn('border-border-seam p-4', className)}>\n <div className=\"flex items-center justify-between\">\n <span className=\"text-sm font-medium text-text-secondary\">{label}</span>\n {icon && (\n <span className=\"flex size-8 items-center justify-center rounded-lg bg-[var(--color-accent-soft)] text-text-primary [&>svg]:size-4\">\n {icon}\n </span>\n )}\n </div>\n <div className=\"mt-2 flex items-baseline gap-2\">\n <span className=\"text-3xl font-semibold tabular-nums text-text-primary\">{displayValue}</span>\n </div>\n {computedChange !== 0 && (\n <div className=\"mt-2 flex items-center gap-2\">\n <Badge variant={trendBadgeVariant[computedTrend]} className=\"gap-1\">\n {computedTrend === 'up' && <TrendingUp className=\"h-3 w-3\" />}\n {computedTrend === 'down' && <TrendingDown className=\"h-3 w-3\" />}\n {computedTrend === 'stable' && <Minus className=\"h-3 w-3\" />}\n <span className=\"tabular-nums\">\n {computedChange > 0 ? '+' : ''}\n {computedChange}%\n </span>\n </Badge>\n <span className=\"text-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D;;GAEE"}
|
|
@@ -19,7 +19,7 @@ var i = {
|
|
|
19
19
|
}, o = ({ label: o, variant: s = "default", dot: c = !1, className: l }) => /* @__PURE__ */ n(r, {
|
|
20
20
|
variant: i[s],
|
|
21
21
|
className: e("gap-1.5", l),
|
|
22
|
-
children: [c && /* @__PURE__ */ t("span", { className: e("h-1.5 w-1.5 rounded-full", a[s]) }), o]
|
|
22
|
+
children: [c && /* @__PURE__ */ t("span", { className: e("h-1.5 w-1.5 rounded-full motion-safe:animate-vc-glow-pulse", a[s]) }), o]
|
|
23
23
|
});
|
|
24
24
|
//#endregion
|
|
25
25
|
export { o as StatusBadge };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusBadge.js","names":[],"sources":["../../../src/healthybowl/components/StatusBadge.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { Badge, type BadgeProps } from '@burdenoff/fe-libs/ui';\nimport { cn } from '../utils/helpers';\n\ntype BadgeVariant = 'success' | 'warning' | 'error' | 'info' | 'default' | 'muted';\n\ninterface StatusBadgeProps {\n label: string;\n variant?: BadgeVariant;\n dot?: boolean;\n className?: string;\n}\n\n/**\n * Maps the local status vocabulary onto Boff `Badge` variants. `Badge` has no\n * `muted`/`error` variants, so they map to the nearest equivalents:\n * - `muted` → `secondary`\n * - `error` → `destructive`\n * `success | warning | info | default` pass through unchanged.\n */\nconst variantMap: Record<BadgeVariant, NonNullable<BadgeProps['variant']>> = {\n success: 'success',\n warning: 'warning',\n error: 'destructive',\n info: 'info',\n default: 'default',\n muted: 'secondary',\n};\n\nconst dotStyles: Record<BadgeVariant, string> = {\n success: 'bg-status-success-text',\n warning: 'bg-status-warning-text',\n error: 'bg-destructive',\n info: 'bg-status-info-text',\n default: 'bg-primary-foreground',\n muted: 'bg-text-secondary',\n};\n\nexport const StatusBadge: FC<StatusBadgeProps> = ({ label, variant = 'default', dot = false, className }) => {\n return (\n <Badge variant={variantMap[variant]} className={cn('gap-1.5', className)}>\n {dot && <span className={cn('h-1.5 w-1.5 rounded-full', dotStyles[variant])}
|
|
1
|
+
{"version":3,"file":"StatusBadge.js","names":[],"sources":["../../../src/healthybowl/components/StatusBadge.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { Badge, type BadgeProps } from '@burdenoff/fe-libs/ui';\nimport { cn } from '../utils/helpers';\n\ntype BadgeVariant = 'success' | 'warning' | 'error' | 'info' | 'default' | 'muted';\n\ninterface StatusBadgeProps {\n label: string;\n variant?: BadgeVariant;\n dot?: boolean;\n className?: string;\n}\n\n/**\n * Maps the local status vocabulary onto Boff `Badge` variants. `Badge` has no\n * `muted`/`error` variants, so they map to the nearest equivalents:\n * - `muted` → `secondary`\n * - `error` → `destructive`\n * `success | warning | info | default` pass through unchanged.\n */\nconst variantMap: Record<BadgeVariant, NonNullable<BadgeProps['variant']>> = {\n success: 'success',\n warning: 'warning',\n error: 'destructive',\n info: 'info',\n default: 'default',\n muted: 'secondary',\n};\n\nconst dotStyles: Record<BadgeVariant, string> = {\n success: 'bg-status-success-text',\n warning: 'bg-status-warning-text',\n error: 'bg-destructive',\n info: 'bg-status-info-text',\n default: 'bg-primary-foreground',\n muted: 'bg-text-secondary',\n};\n\nexport const StatusBadge: FC<StatusBadgeProps> = ({ label, variant = 'default', dot = false, className }) => {\n return (\n <Badge variant={variantMap[variant]} className={cn('gap-1.5', className)}>\n {dot && (\n <span className={cn('h-1.5 w-1.5 rounded-full motion-safe:animate-vc-glow-pulse', dotStyles[variant])} />\n )}\n {label}\n </Badge>\n );\n};\n"],"mappings":";;;;AAoBA,IAAM,IAAuE;CAC3E,SAAS;CACT,SAAS;CACT,OAAO;CACP,MAAM;CACN,SAAS;CACT,OAAO;CACR,EAEK,IAA0C;CAC9C,SAAS;CACT,SAAS;CACT,OAAO;CACP,MAAM;CACN,SAAS;CACT,OAAO;CACR,EAEY,KAAqC,EAAE,UAAO,aAAU,WAAW,SAAM,IAAO,mBAEzF,kBAAC,GAAD;CAAO,SAAS,EAAW;CAAU,WAAW,EAAG,WAAW,EAAU;WAAxE,CACG,KACC,kBAAC,QAAD,EAAM,WAAW,EAAG,8DAA8D,EAAU,GAAS,EAAI,CAAA,EAE1G,EACK"}
|