@photon-ai/pho-ui 4.4.0 → 4.5.0
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/chunks/basic-page-D3MY3uY6.js +1797 -0
- package/dist/chunks/basic-page-D3MY3uY6.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/sections/basic-page.js +1 -1
- package/dist/src/sections/basic-page/basic-page.d.ts +15 -2
- package/package.json +1 -1
- package/dist/chunks/basic-page-ijv-ijUB.js +0 -1768
- package/dist/chunks/basic-page-ijv-ijUB.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { a as s } from "../chunks/data-table-Mog6m3d9.js";
|
|
3
|
-
import { a as E, c as a, d as C, f as S, i as I, l as e, m as o, n as B, o as P, p as N, r, s as t, t as D, u as R } from "../chunks/basic-page-
|
|
3
|
+
import { a as E, c as a, d as C, f as S, i as I, l as e, m as o, n as B, o as P, p as N, r, s as t, t as D, u as R } from "../chunks/basic-page-D3MY3uY6.js";
|
|
4
4
|
export {
|
|
5
5
|
D as AUTO_SAVE_DELAY_MS,
|
|
6
6
|
B as BASIC_PAGE_CALLOUT,
|
|
@@ -73,8 +73,19 @@ export interface BasicPageRootProps extends ComponentProps<"div"> {
|
|
|
73
73
|
* name: the large title collapsing into its bar. It assembles itself
|
|
74
74
|
* from `Title` and the trail's tail crumb; nothing to wire. Pass `false`
|
|
75
75
|
* for a page that should scroll away whole.
|
|
76
|
+
*
|
|
77
|
+
* `"pinned"` makes the condensed state the page's only state: the bar
|
|
78
|
+
* is up from the first paint, with no entrance, and never dissolves —
|
|
79
|
+
* nothing is observed. The heading block leaves the flow: `Title` still
|
|
80
|
+
* names the page (its `h1` stays, visually hidden) and still hands the
|
|
81
|
+
* bar its words; the trail in the flow hides, and the bar's tail crumb
|
|
82
|
+
* is the way back. The column starts right under the bar — its top seat
|
|
83
|
+
* is the bar's height, nothing more — and `Stack` sits at the untitled
|
|
84
|
+
* rhythm, 12px below it. For a page that is one surface (an inbox, a
|
|
85
|
+
* board) and has no room for a title block. A shell adopting the bar
|
|
86
|
+
* reads `condensed: true` from the start, as it does after a scroll.
|
|
76
87
|
*/
|
|
77
|
-
condense?: boolean;
|
|
88
|
+
condense?: boolean | "pinned";
|
|
78
89
|
/**
|
|
79
90
|
* The content column's cap. `base` is the 42rem reading column every
|
|
80
91
|
* settings page uses; `wide` opens it to 80rem for a page that is a
|
|
@@ -117,7 +128,9 @@ declare function Root({ condense, width, prerendered, className, children, ref,
|
|
|
117
128
|
* `Breadcrumbs` report what belongs in it (the heading, the tail crumb)
|
|
118
129
|
* through this context, so the bar assembles itself and consumers only set
|
|
119
130
|
* the flag. The bar stays out of the way until the whole heading has left
|
|
120
|
-
* the scrollport, then fades in pinned to the top.
|
|
131
|
+
* the scrollport, then fades in pinned to the top. `condense="pinned"` is
|
|
132
|
+
* the one exception: there, `Title` mounts the bar itself instead of
|
|
133
|
+
* reporting to it — see `CondenseBar`'s doc.
|
|
121
134
|
*/
|
|
122
135
|
interface CondenseTail {
|
|
123
136
|
label: ReactNode;
|