@estiva-app/ui 0.37.0 → 0.37.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.
- package/dist/Panel.d.ts +6 -3
- package/dist/Panel.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/registry.json +1 -1
- package/src/Panel.stories.tsx +13 -0
- package/src/Panel.tsx +7 -4
package/dist/Panel.d.ts
CHANGED
|
@@ -12,9 +12,12 @@ import type { ReactNode, Ref, UIEventHandler } from 'react';
|
|
|
12
12
|
* nothing to scroll. Here the body is always a `ScrollArea`, so the bar shows
|
|
13
13
|
* as soon as there is more, and an empty panel or a short one has none.
|
|
14
14
|
*
|
|
15
|
-
* It takes the room
|
|
16
|
-
*
|
|
17
|
-
*
|
|
15
|
+
* It takes the room it is given, never its content's height, so the body is
|
|
16
|
+
* what scrolls, not the page: the rest of a flex column (`flex-1 min-h-0`), or
|
|
17
|
+
* the whole of a plain box with a height (`h-full`). The second was missing in
|
|
18
|
+
* 0.37.0, and a panel in a plain box grew past it: Peek's thread story pushed
|
|
19
|
+
* its reply box out of its frame. Two panels in one column share it; a
|
|
20
|
+
* `max-h-*` in `className` caps one of them.
|
|
18
21
|
*
|
|
19
22
|
* It keeps a crash inside itself, as ListColumn does: if its body, its actions
|
|
20
23
|
* or its footer break, the panel keeps its title and shows `ErrorBoundary`'s
|
package/dist/Panel.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../src/Panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAM3D
|
|
1
|
+
{"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../src/Panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAM3D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,UAAU;IACzB,mFAAmF;IACnF,KAAK,EAAE,SAAS,CAAA;IAChB,gEAAgE;IAChE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,6GAA6G;IAC7G,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,6DAA6D;IAC7D,QAAQ,EAAE,SAAS,CAAA;IACnB,mEAAmE;IACnE,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,iGAAiG;IACjG,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,sHAAsH;IACtH,OAAO,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;IAC7B,iCAAiC;IACjC,YAAY,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAA;IAC7C,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAmBD,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,+BActC"}
|
package/dist/index.js
CHANGED
|
@@ -3002,7 +3002,7 @@ function SectionHeader({ title, chevron = false, isExpanded = true, onToggle, tr
|
|
|
3002
3002
|
// src/Panel.tsx
|
|
3003
3003
|
import { jsx as jsx53, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
3004
3004
|
function Frame({ title, chevron = false, actions, children, footer, bodyClassName, bodyRef, onBodyScroll, className, broken = false }) {
|
|
3005
|
-
return /* @__PURE__ */ jsxs36("div", { className: cn("flex min-h-0 flex-1 flex-col", className), children: [
|
|
3005
|
+
return /* @__PURE__ */ jsxs36("div", { className: cn("flex h-full min-h-0 flex-1 flex-col", className), children: [
|
|
3006
3006
|
/* @__PURE__ */ jsx53(ContainerHeader, { title, chevron, actions }),
|
|
3007
3007
|
broken ? (
|
|
3008
3008
|
// The message takes the room the body had and centres itself in it.
|