@burdenoff/microfe-healthybowl 2026.813.23 → 2026.813.24

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.
@@ -15,7 +15,10 @@ var c = {
15
15
  className: c[m],
16
16
  children: [
17
17
  /* @__PURE__ */ t(o, { children: [d && /* @__PURE__ */ e(s, { children: d }), f && /* @__PURE__ */ e(i, { children: f })] }),
18
- p,
18
+ /* @__PURE__ */ e("div", {
19
+ className: "max-h-[60dvh] overflow-y-auto overscroll-contain pr-1",
20
+ children: p
21
+ }),
19
22
  h && /* @__PURE__ */ e(a, { children: h })
20
23
  ]
21
24
  })
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.js","names":[],"sources":["../../../src/healthybowl/components/Modal.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\nimport {\n ResponsiveDialog,\n ResponsiveDialogContent,\n ResponsiveDialogDescription,\n ResponsiveDialogFooter,\n ResponsiveDialogHeader,\n ResponsiveDialogTitle,\n} from '@burdenoff/fe-libs/ui';\n\ninterface ModalProps {\n open: boolean;\n onClose: () => void;\n title: string;\n description?: string;\n children: ReactNode;\n size?: 'sm' | 'md' | 'lg' | 'xl';\n footer?: ReactNode;\n}\n\nconst sizeClasses: Record<NonNullable<ModalProps['size']>, string> = {\n sm: 'sm:max-w-sm',\n md: 'sm:max-w-lg',\n lg: 'sm:max-w-2xl',\n xl: 'sm:max-w-3xl',\n};\n\n/**\n * Modal scaffold wrapping the Boff `ResponsiveDialog` (centred dialog on\n * desktop, bottom-sheet on mobile). The primitive provides the scrim, Escape\n * handling, scroll-lock and close affordance, so those are no longer hand-rolled\n * here. `onClose` fires whenever the dialog is dismissed.\n */\nexport const Modal: FC<ModalProps> = ({ open, onClose, title, description, children, size = 'md', footer }) => {\n return (\n <ResponsiveDialog\n open={open}\n onOpenChange={(next) => {\n if (!next) {\n onClose();\n }\n }}\n >\n <ResponsiveDialogContent className={sizeClasses[size]}>\n <ResponsiveDialogHeader>\n {title && <ResponsiveDialogTitle>{title}</ResponsiveDialogTitle>}\n {description && <ResponsiveDialogDescription>{description}</ResponsiveDialogDescription>}\n </ResponsiveDialogHeader>\n {children}\n {footer && <ResponsiveDialogFooter>{footer}</ResponsiveDialogFooter>}\n </ResponsiveDialogContent>\n </ResponsiveDialog>\n );\n};\n"],"mappings":";;;AAoBA,IAAM,IAA+D;CACnE,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACL,EAQY,KAAyB,EAAE,SAAM,YAAS,UAAO,gBAAa,aAAU,UAAO,MAAM,gBAE9F,kBAAC,GAAD;CACQ;CACN,eAAe,MAAS;AACtB,EAAK,KACH,GAAS;;WAIb,kBAAC,GAAD;EAAyB,WAAW,EAAY;YAAhD;GACE,kBAAC,GAAD,EAAA,UAAA,CACG,KAAS,kBAAC,GAAD,EAAA,UAAwB,GAA8B,CAAA,EAC/D,KAAe,kBAAC,GAAD,EAAA,UAA8B,GAA0C,CAAA,CACjE,EAAA,CAAA;GACxB;GACA,KAAU,kBAAC,GAAD,EAAA,UAAyB,GAAgC,CAAA;GAC5C;;CACT,CAAA"}
1
+ {"version":3,"file":"Modal.js","names":[],"sources":["../../../src/healthybowl/components/Modal.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\nimport {\n ResponsiveDialog,\n ResponsiveDialogContent,\n ResponsiveDialogDescription,\n ResponsiveDialogFooter,\n ResponsiveDialogHeader,\n ResponsiveDialogTitle,\n} from '@burdenoff/fe-libs/ui';\n\ninterface ModalProps {\n open: boolean;\n onClose: () => void;\n title: string;\n description?: string;\n children: ReactNode;\n size?: 'sm' | 'md' | 'lg' | 'xl';\n footer?: ReactNode;\n}\n\nconst sizeClasses: Record<NonNullable<ModalProps['size']>, string> = {\n sm: 'sm:max-w-sm',\n md: 'sm:max-w-lg',\n lg: 'sm:max-w-2xl',\n xl: 'sm:max-w-3xl',\n};\n\n/**\n * Modal scaffold wrapping the Boff `ResponsiveDialog` (centred dialog on\n * desktop, bottom-sheet on mobile). The primitive provides the scrim, Escape\n * handling, scroll-lock and close affordance, so those are no longer hand-rolled\n * here. `onClose` fires whenever the dialog is dismissed.\n */\nexport const Modal: FC<ModalProps> = ({ open, onClose, title, description, children, size = 'md', footer }) => {\n return (\n <ResponsiveDialog\n open={open}\n onOpenChange={(next) => {\n if (!next) {\n onClose();\n }\n }}\n >\n <ResponsiveDialogContent className={sizeClasses[size]}>\n <ResponsiveDialogHeader>\n {title && <ResponsiveDialogTitle>{title}</ResponsiveDialogTitle>}\n {description && <ResponsiveDialogDescription>{description}</ResponsiveDialogDescription>}\n </ResponsiveDialogHeader>\n {/*\n Cap the body so a tall form scrolls instead of pushing the footer — and with it the\n submit button — below the fold. `ResponsiveDialogContent` grows to fit its children and\n nothing here was scrollable, so on a short viewport (a laptop with ~500px of usable\n height, or a phone) the primary action simply became unreachable: visible in the DOM,\n enabled, and impossible to click.\n\n `max-h` only engages once the content would exceed it, so short modals are unchanged.\n `dvh` rather than `vh` so mobile browser chrome is accounted for.\n */}\n <div className=\"max-h-[60dvh] overflow-y-auto overscroll-contain pr-1\">{children}</div>\n {footer && <ResponsiveDialogFooter>{footer}</ResponsiveDialogFooter>}\n </ResponsiveDialogContent>\n </ResponsiveDialog>\n );\n};\n"],"mappings":";;;AAoBA,IAAM,IAA+D;CACnE,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACL,EAQY,KAAyB,EAAE,SAAM,YAAS,UAAO,gBAAa,aAAU,UAAO,MAAM,gBAE9F,kBAAC,GAAD;CACQ;CACN,eAAe,MAAS;AACtB,EAAK,KACH,GAAS;;WAIb,kBAAC,GAAD;EAAyB,WAAW,EAAY;YAAhD;GACE,kBAAC,GAAD,EAAA,UAAA,CACG,KAAS,kBAAC,GAAD,EAAA,UAAwB,GAA8B,CAAA,EAC/D,KAAe,kBAAC,GAAD,EAAA,UAA8B,GAA0C,CAAA,CACjE,EAAA,CAAA;GAWzB,kBAAC,OAAD;IAAK,WAAU;IAAyD;IAAe,CAAA;GACtF,KAAU,kBAAC,GAAD,EAAA,UAAyB,GAAgC,CAAA;GAC5C;;CACT,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-healthybowl",
3
- "version": "2026.813.23",
3
+ "version": "2026.813.24",
4
4
  "description": "Burdenoff HealthyBowl Microfrontend - Comprehensive organic farming and agro-foods management platform",
5
5
  "type": "module",
6
6
  "files": [