@burdenoff/microfe-brainyrich 2026.1028.3 → 2026.1101.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.
@@ -0,0 +1,22 @@
1
+ /**
2
+ * HouseholdDetailRail — persistent right rail on the household detail sheet.
3
+ * @module brainyrich/components/HouseholdDetailRail
4
+ *
5
+ * Mirrors mock `br-10-household-detail`: Tags and Comments/Notes sit in a rail
6
+ * beside the tab body so they stay visible whichever tab is active. On wide
7
+ * viewports the rail is a sticky column next to the tabs; on narrow viewports
8
+ * it stacks below them (still outside the tab panels, so it never disappears
9
+ * when the user switches tabs).
10
+ *
11
+ * Reuses the platform surfaces — `TagField` (wspace-tags-svc UniversalTag) and
12
+ * `CommentThread` (wspace-comments) — keyed by `(entityType, entityId)`.
13
+ */
14
+ export declare const HOUSEHOLD_ENTITY_TYPE = "brainyrich-household";
15
+ export interface HouseholdDetailRailProps {
16
+ householdId: string;
17
+ /** Legacy free-text tags stored on the household record (read-only here). */
18
+ legacyTags: string[];
19
+ tr: (key: string, fallback: string, params?: Record<string, string | number>) => string;
20
+ }
21
+ export declare function HouseholdDetailRail({ householdId, legacyTags, tr }: HouseholdDetailRailProps): import("react/jsx-runtime").JSX.Element;
22
+ //# sourceMappingURL=HouseholdDetailRail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HouseholdDetailRail.d.ts","sourceRoot":"","sources":["../../../src/brainyrich/components/HouseholdDetailRail.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAOH,eAAO,MAAM,qBAAqB,yBAAyB,CAAC;AAE5D,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,6EAA6E;IAC7E,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,EAAE,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;CACzF;AAED,wBAAgB,mBAAmB,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,wBAAwB,2CAqC5F"}
@@ -0,0 +1,39 @@
1
+ import { TagField as e } from "./reuse/TagField.js";
2
+ import { CommentThread as t } from "./reuse/CommentThread.js";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ import { Badge as i, Card as a, CardContent as o } from "@burdenoff/fe-libs/ui";
5
+ //#region src/brainyrich/components/HouseholdDetailRail.tsx
6
+ var s = "brainyrich-household";
7
+ function c({ householdId: c, legacyTags: l, tr: u }) {
8
+ return /* @__PURE__ */ r("aside", {
9
+ "aria-label": u("brainyrich.households.rail.label", "Household tags and notes"),
10
+ "data-testid": "household-detail-rail",
11
+ className: "min-w-0 space-y-4 lg:sticky lg:top-0 lg:max-h-[calc(100dvh-2rem)] lg:self-start lg:overflow-y-auto",
12
+ children: [/* @__PURE__ */ n(a, { children: /* @__PURE__ */ r(o, {
13
+ className: "space-y-3 p-4",
14
+ children: [l.length > 0 ? /* @__PURE__ */ n("div", {
15
+ className: "flex flex-wrap gap-1",
16
+ "data-testid": "household-legacy-tags",
17
+ children: l.map((e, t) => /* @__PURE__ */ n(i, {
18
+ variant: "outline",
19
+ children: e
20
+ }, `${e}-${t}`))
21
+ }) : null, /* @__PURE__ */ n(e, {
22
+ entityType: s,
23
+ entityId: c,
24
+ label: u("brainyrich.households.rail.tags", "Tags")
25
+ })]
26
+ }) }), /* @__PURE__ */ n(a, { children: /* @__PURE__ */ n(o, {
27
+ className: "p-4",
28
+ children: /* @__PURE__ */ n(t, {
29
+ entityType: s,
30
+ entityId: c,
31
+ heading: u("brainyrich.households.rail.comments", "Comments/Notes")
32
+ })
33
+ }) })]
34
+ });
35
+ }
36
+ //#endregion
37
+ export { s as HOUSEHOLD_ENTITY_TYPE, c as HouseholdDetailRail };
38
+
39
+ //# sourceMappingURL=HouseholdDetailRail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HouseholdDetailRail.js","names":[],"sources":["../../../src/brainyrich/components/HouseholdDetailRail.tsx"],"sourcesContent":["/**\n * HouseholdDetailRail — persistent right rail on the household detail sheet.\n * @module brainyrich/components/HouseholdDetailRail\n *\n * Mirrors mock `br-10-household-detail`: Tags and Comments/Notes sit in a rail\n * beside the tab body so they stay visible whichever tab is active. On wide\n * viewports the rail is a sticky column next to the tabs; on narrow viewports\n * it stacks below them (still outside the tab panels, so it never disappears\n * when the user switches tabs).\n *\n * Reuses the platform surfaces — `TagField` (wspace-tags-svc UniversalTag) and\n * `CommentThread` (wspace-comments) — keyed by `(entityType, entityId)`.\n */\n\nimport { Badge, Card, CardContent } from '@burdenoff/fe-libs/ui';\n\nimport { TagField } from './reuse/TagField';\nimport { CommentThread } from './reuse/CommentThread';\n\nexport const HOUSEHOLD_ENTITY_TYPE = 'brainyrich-household';\n\nexport interface HouseholdDetailRailProps {\n householdId: string;\n /** Legacy free-text tags stored on the household record (read-only here). */\n legacyTags: string[];\n tr: (key: string, fallback: string, params?: Record<string, string | number>) => string;\n}\n\nexport function HouseholdDetailRail({ householdId, legacyTags, tr }: HouseholdDetailRailProps) {\n return (\n <aside\n aria-label={tr('brainyrich.households.rail.label', 'Household tags and notes')}\n data-testid=\"household-detail-rail\"\n className=\"min-w-0 space-y-4 lg:sticky lg:top-0 lg:max-h-[calc(100dvh-2rem)] lg:self-start lg:overflow-y-auto\"\n >\n <Card>\n <CardContent className=\"space-y-3 p-4\">\n {legacyTags.length > 0 ? (\n <div className=\"flex flex-wrap gap-1\" data-testid=\"household-legacy-tags\">\n {legacyTags.map((tag, i) => (\n <Badge key={`${tag}-${i}`} variant=\"outline\">\n {tag}\n </Badge>\n ))}\n </div>\n ) : null}\n <TagField\n entityType={HOUSEHOLD_ENTITY_TYPE}\n entityId={householdId}\n label={tr('brainyrich.households.rail.tags', 'Tags')}\n />\n </CardContent>\n </Card>\n\n <Card>\n <CardContent className=\"p-4\">\n <CommentThread\n entityType={HOUSEHOLD_ENTITY_TYPE}\n entityId={householdId}\n heading={tr('brainyrich.households.rail.comments', 'Comments/Notes')}\n />\n </CardContent>\n </Card>\n </aside>\n );\n}\n"],"mappings":";;;;;AAmBA,IAAa,IAAwB;AASrC,SAAgB,EAAoB,EAAE,gBAAa,eAAY,SAAgC;CAC7F,OACE,kBAAC,SAAD;EACE,cAAY,EAAG,oCAAoC,0BAA0B;EAC7E,eAAY;EACZ,WAAU;YAHZ,CAKE,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;GAAa,WAAU;aAAvB,CACG,EAAW,SAAS,IACnB,kBAAC,OAAD;IAAK,WAAU;IAAuB,eAAY;cAC/C,EAAW,KAAK,GAAK,MACpB,kBAAC,GAAD;KAA2B,SAAQ;eAChC;IACI,GAFK,GAAG,EAAI,GAAG,GAEf,CACR;GACE,CAAA,IACH,MACJ,kBAAC,GAAD;IACE,YAAY;IACZ,UAAU;IACV,OAAO,EAAG,mCAAmC,MAAM;GACpD,CAAA,CACU;KACT,CAAA,GAEN,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;GAAa,WAAU;aACrB,kBAAC,GAAD;IACE,YAAY;IACZ,UAAU;IACV,SAAS,EAAG,uCAAuC,gBAAgB;GACpE,CAAA;EACU,CAAA,EACT,CAAA,CACD;;AAEX"}
@@ -1 +1 @@
1
- {"version":3,"file":"FamilyPage.d.ts","sourceRoot":"","sources":["../../../src/brainyrich/pages/FamilyPage.tsx"],"names":[],"mappings":"AAmKA,wBAAgB,UAAU,4CA4ZzB"}
1
+ {"version":3,"file":"FamilyPage.d.ts","sourceRoot":"","sources":["../../../src/brainyrich/pages/FamilyPage.tsx"],"names":[],"mappings":"AAqKA,wBAAgB,UAAU,4CA4ZzB"}