@burdenoff/microfe-govcitizenhub 2026.720.3 → 2026.720.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"BottomTabNav.d.ts","sourceRoot":"","sources":["../../../../src/govcitizenhub/components/mobile/BottomTabNav.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAqBhC,eAAO,MAAM,YAAY,EAAE,EA2C1B,CAAC"}
1
+ {"version":3,"file":"BottomTabNav.d.ts","sourceRoot":"","sources":["../../../../src/govcitizenhub/components/mobile/BottomTabNav.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAqBhC,eAAO,MAAM,YAAY,EAAE,EA2C1B,CAAC"}
@@ -36,16 +36,19 @@ var l = [
36
36
  "aria-label": "Citizen mobile navigation",
37
37
  className: t("fixed inset-x-0 bottom-0 z-40 md:hidden", "border-t border-border-seam bg-bg-surface/95 backdrop-blur-sm", "pb-[max(env(safe-area-inset-bottom),0px)]"),
38
38
  children: /* @__PURE__ */ s("ul", {
39
- className: "grid grid-cols-4",
39
+ className: "flex",
40
40
  children: l.map((e) => {
41
41
  let n = e.path ? `${a}/${e.path}` : a, o = i.pathname === n || e.path === "" && i.pathname === `${a}/`, l = e.icon;
42
- return /* @__PURE__ */ s("li", { children: /* @__PURE__ */ c("button", {
43
- type: "button",
44
- "aria-current": o ? "page" : void 0,
45
- onClick: () => r(e.path ? `m/${e.path}` : "m"),
46
- className: t("flex w-full flex-col items-center gap-1 py-2.5 text-[11px] font-medium transition-colors", o ? "text-action-primary-text" : "text-text-muted hover:text-text-secondary"),
47
- children: [/* @__PURE__ */ s(l, { className: t("size-5", o && "text-action-primary-text") }), e.label]
48
- }) }, e.id);
42
+ return /* @__PURE__ */ s("li", {
43
+ className: "flex-1",
44
+ children: /* @__PURE__ */ c("button", {
45
+ type: "button",
46
+ "aria-current": o ? "page" : void 0,
47
+ onClick: () => r(e.path ? `m/${e.path}` : "m"),
48
+ className: t("flex w-full flex-col items-center gap-1 py-2.5 text-[11px] font-medium transition-colors", o ? "text-action-primary-text" : "text-text-muted hover:text-text-secondary"),
49
+ children: [/* @__PURE__ */ s(l, { className: t("size-5", o && "text-action-primary-text") }), e.label]
50
+ })
51
+ }, e.id);
49
52
  })
50
53
  })
51
54
  });
@@ -1 +1 @@
1
- {"version":3,"file":"BottomTabNav.js","names":[],"sources":["../../../../src/govcitizenhub/components/mobile/BottomTabNav.tsx"],"sourcesContent":["/**\n * BottomTabNav — citizen mobile tab bar (BOFF-4088)\n * @module govcitizenhub/components/mobile\n *\n * A fixed bottom navigation bar for the citizen mobile surface, mounted only\n * inside the `m/*` route subtree so it never appears on the officer/desktop\n * pages. Hidden at and above the `md` breakpoint via `md:hidden` (desktop\n * users reach the same four destinations through the shell's registered\n * side-nav, unaffected by this component).\n *\n * Safe-area aware: pads for the iOS/Android home indicator via\n * `env(safe-area-inset-bottom)` so it does not collide with system gesture\n * chrome inside the Capacitor shell.\n */\n\nimport type { FC } from 'react';\nimport { Home, ClipboardList, ScanLine, UserRound } from 'lucide-react';\nimport { useLocation } from 'react-router-dom';\nimport { useGovCitizenHub } from '../../context';\nimport { cn } from '../../utils/cn';\n\ninterface TabDef {\n id: string;\n label: string;\n /** Path relative to the `m` mobile subtree, e.g. '' for the home tab. */\n path: string;\n icon: FC<{ className?: string }>;\n}\n\nconst TABS: TabDef[] = [\n { id: 'home', label: 'Home', path: '', icon: Home },\n { id: 'requests', label: 'Requests', path: 'requests', icon: ClipboardList },\n { id: 'scan', label: 'Scan', path: 'scan', icon: ScanLine },\n { id: 'profile', label: 'Profile', path: 'profile', icon: UserRound },\n];\n\nexport const BottomTabNav: FC = () => {\n const { getPath, navigateTo } = useGovCitizenHub();\n const location = useLocation();\n const mobileRoot = getPath('m');\n\n return (\n <nav\n aria-label=\"Citizen mobile navigation\"\n className={cn(\n 'fixed inset-x-0 bottom-0 z-40 md:hidden',\n 'border-t border-border-seam bg-bg-surface/95 backdrop-blur-sm',\n 'pb-[max(env(safe-area-inset-bottom),0px)]'\n )}\n >\n <ul className=\"grid grid-cols-4\">\n {TABS.map((tab) => {\n const target = tab.path ? `${mobileRoot}/${tab.path}` : mobileRoot;\n const isActive =\n location.pathname === target ||\n (tab.path === '' && location.pathname === `${mobileRoot}/`);\n const Icon = tab.icon;\n return (\n <li key={tab.id}>\n <button\n type=\"button\"\n aria-current={isActive ? 'page' : undefined}\n onClick={() => navigateTo(tab.path ? `m/${tab.path}` : 'm')}\n className={cn(\n 'flex w-full flex-col items-center gap-1 py-2.5 text-[11px] font-medium transition-colors',\n isActive\n ? 'text-action-primary-text'\n : 'text-text-muted hover:text-text-secondary'\n )}\n >\n <Icon className={cn('size-5', isActive && 'text-action-primary-text')} />\n {tab.label}\n </button>\n </li>\n );\n })}\n </ul>\n </nav>\n );\n};\n"],"mappings":";;;;;;;AA6BA,IAAM,IAAiB;CACrB;EAAE,IAAI;EAAQ,OAAO;EAAQ,MAAM;EAAI,MAAM;CAAK;CAClD;EAAE,IAAI;EAAY,OAAO;EAAY,MAAM;EAAY,MAAM;CAAc;CAC3E;EAAE,IAAI;EAAQ,OAAO;EAAQ,MAAM;EAAQ,MAAM;CAAS;CAC1D;EAAE,IAAI;EAAW,OAAO;EAAW,MAAM;EAAW,MAAM;CAAU;AACtE,GAEa,UAAyB;CACpC,IAAM,EAAE,YAAS,kBAAe,EAAiB,GAC3C,IAAW,EAAY,GACvB,IAAa,EAAQ,GAAG;CAE9B,OACE,kBAAC,OAAD;EACE,cAAW;EACX,WAAW,EACT,2CACA,iEACA,2CACF;YAEA,kBAAC,MAAD;GAAI,WAAU;aACX,EAAK,KAAK,MAAQ;IACjB,IAAM,IAAS,EAAI,OAAO,GAAG,EAAW,GAAG,EAAI,SAAS,GAClD,IACJ,EAAS,aAAa,KACrB,EAAI,SAAS,MAAM,EAAS,aAAa,GAAG,EAAW,IACpD,IAAO,EAAI;IACjB,OACE,kBAAC,MAAD,EAAA,UACE,kBAAC,UAAD;KACE,MAAK;KACL,gBAAc,IAAW,SAAS,KAAA;KAClC,eAAe,EAAW,EAAI,OAAO,KAAK,EAAI,SAAS,GAAG;KAC1D,WAAW,EACT,4FACA,IACI,6BACA,2CACN;eATF,CAWE,kBAAC,GAAD,EAAM,WAAW,EAAG,UAAU,KAAY,0BAA0B,EAAI,CAAA,GACvE,EAAI,KACC;OACN,GAfK,EAAI,EAeT;GAER,CAAC;EACC,CAAA;CACD,CAAA;AAET"}
1
+ {"version":3,"file":"BottomTabNav.js","names":[],"sources":["../../../../src/govcitizenhub/components/mobile/BottomTabNav.tsx"],"sourcesContent":["/**\n * BottomTabNav — citizen mobile tab bar (BOFF-4088)\n * @module govcitizenhub/components/mobile\n *\n * A fixed bottom navigation bar for the citizen mobile surface, mounted only\n * inside the `m/*` route subtree so it never appears on the officer/desktop\n * pages. Hidden at and above the `md` breakpoint via `md:hidden` (desktop\n * users reach the same four destinations through the shell's registered\n * side-nav, unaffected by this component).\n *\n * Safe-area aware: pads for the iOS/Android home indicator via\n * `env(safe-area-inset-bottom)` so it does not collide with system gesture\n * chrome inside the Capacitor shell.\n *\n * Layout uses `flex` (each tab `flex-1`), not `grid`/`grid-cols-4`: build-time\n * MFE composition means only the utility classes the host shell's own Tailwind\n * build already emits reach this MFE at runtime, and `grid` is one of the\n * classes that does not survive — verified live on app.govcitizenhub.com,\n * where an earlier `grid grid-cols-4` build rendered the four tabs stacked\n * full-width instead of a compact bar (same class of issue documented next to\n * the `md:table`/`md:grid` note in ApplicationsPage.tsx's QueueTableRow).\n */\n\nimport type { FC } from 'react';\nimport { Home, ClipboardList, ScanLine, UserRound } from 'lucide-react';\nimport { useLocation } from 'react-router-dom';\nimport { useGovCitizenHub } from '../../context';\nimport { cn } from '../../utils/cn';\n\ninterface TabDef {\n id: string;\n label: string;\n /** Path relative to the `m` mobile subtree, e.g. '' for the home tab. */\n path: string;\n icon: FC<{ className?: string }>;\n}\n\nconst TABS: TabDef[] = [\n { id: 'home', label: 'Home', path: '', icon: Home },\n { id: 'requests', label: 'Requests', path: 'requests', icon: ClipboardList },\n { id: 'scan', label: 'Scan', path: 'scan', icon: ScanLine },\n { id: 'profile', label: 'Profile', path: 'profile', icon: UserRound },\n];\n\nexport const BottomTabNav: FC = () => {\n const { getPath, navigateTo } = useGovCitizenHub();\n const location = useLocation();\n const mobileRoot = getPath('m');\n\n return (\n <nav\n aria-label=\"Citizen mobile navigation\"\n className={cn(\n 'fixed inset-x-0 bottom-0 z-40 md:hidden',\n 'border-t border-border-seam bg-bg-surface/95 backdrop-blur-sm',\n 'pb-[max(env(safe-area-inset-bottom),0px)]'\n )}\n >\n <ul className=\"flex\">\n {TABS.map((tab) => {\n const target = tab.path ? `${mobileRoot}/${tab.path}` : mobileRoot;\n const isActive =\n location.pathname === target ||\n (tab.path === '' && location.pathname === `${mobileRoot}/`);\n const Icon = tab.icon;\n return (\n <li key={tab.id} className=\"flex-1\">\n <button\n type=\"button\"\n aria-current={isActive ? 'page' : undefined}\n onClick={() => navigateTo(tab.path ? `m/${tab.path}` : 'm')}\n className={cn(\n 'flex w-full flex-col items-center gap-1 py-2.5 text-[11px] font-medium transition-colors',\n isActive\n ? 'text-action-primary-text'\n : 'text-text-muted hover:text-text-secondary'\n )}\n >\n <Icon className={cn('size-5', isActive && 'text-action-primary-text')} />\n {tab.label}\n </button>\n </li>\n );\n })}\n </ul>\n </nav>\n );\n};\n"],"mappings":";;;;;;;AAqCA,IAAM,IAAiB;CACrB;EAAE,IAAI;EAAQ,OAAO;EAAQ,MAAM;EAAI,MAAM;CAAK;CAClD;EAAE,IAAI;EAAY,OAAO;EAAY,MAAM;EAAY,MAAM;CAAc;CAC3E;EAAE,IAAI;EAAQ,OAAO;EAAQ,MAAM;EAAQ,MAAM;CAAS;CAC1D;EAAE,IAAI;EAAW,OAAO;EAAW,MAAM;EAAW,MAAM;CAAU;AACtE,GAEa,UAAyB;CACpC,IAAM,EAAE,YAAS,kBAAe,EAAiB,GAC3C,IAAW,EAAY,GACvB,IAAa,EAAQ,GAAG;CAE9B,OACE,kBAAC,OAAD;EACE,cAAW;EACX,WAAW,EACT,2CACA,iEACA,2CACF;YAEA,kBAAC,MAAD;GAAI,WAAU;aACX,EAAK,KAAK,MAAQ;IACjB,IAAM,IAAS,EAAI,OAAO,GAAG,EAAW,GAAG,EAAI,SAAS,GAClD,IACJ,EAAS,aAAa,KACrB,EAAI,SAAS,MAAM,EAAS,aAAa,GAAG,EAAW,IACpD,IAAO,EAAI;IACjB,OACE,kBAAC,MAAD;KAAiB,WAAU;eACzB,kBAAC,UAAD;MACE,MAAK;MACL,gBAAc,IAAW,SAAS,KAAA;MAClC,eAAe,EAAW,EAAI,OAAO,KAAK,EAAI,SAAS,GAAG;MAC1D,WAAW,EACT,4FACA,IACI,6BACA,2CACN;gBATF,CAWE,kBAAC,GAAD,EAAM,WAAW,EAAG,UAAU,KAAY,0BAA0B,EAAI,CAAA,GACvE,EAAI,KACC;;IACN,GAfK,EAAI,EAeT;GAER,CAAC;EACC,CAAA;CACD,CAAA;AAET"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-govcitizenhub",
3
- "version": "2026.720.3",
3
+ "version": "2026.720.4",
4
4
  "description": "Burdenoff GovCitizenHub Microfrontend",
5
5
  "type": "module",
6
6
  "files": [