@cboxdk/cbox-ui 0.12.0 → 0.13.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/index.d.ts +6 -8
- package/dist/index.js +751 -708
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/tokens/cbox.css +1 -0
- package/tokens/page-tabs.css +26 -0
- package/tokens/shell.css +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -634,6 +634,9 @@ type ShellCreateForm = {
|
|
|
634
634
|
done: (created?: ShellCreated) => void;
|
|
635
635
|
/** Close the whole sheet without creating anything. */
|
|
636
636
|
close: () => void;
|
|
637
|
+
/** Report unsaved work and in-flight writes so leaving cannot silently discard them. */
|
|
638
|
+
setDirty?: (dirty: boolean) => void;
|
|
639
|
+
setBusy?: (busy: boolean) => void;
|
|
637
640
|
/** The current environment, when the app has one. */
|
|
638
641
|
environment: ContextItem | null;
|
|
639
642
|
};
|
|
@@ -726,12 +729,7 @@ declare function useShellCreate(): {
|
|
|
726
729
|
} | null;
|
|
727
730
|
/** Help for a page's own `?` button, or `null` outside the shell. */
|
|
728
731
|
declare function useShellHelp(): Pick<ShellApi, 'toggleHelp' | 'openArticle' | 'ask'> | null;
|
|
729
|
-
/**
|
|
730
|
-
* The title the phone's top bar shows large (the current area's name), or `null` on a desktop and
|
|
731
|
-
* outside the shell. A page heading that says the same is hidden on the phone (shown to screen
|
|
732
|
-
* readers), so the title is not there twice: `PageHeader` does this itself; any other heading
|
|
733
|
-
* opts in with `data-cbx-page-title`.
|
|
734
|
-
*/
|
|
732
|
+
/** The compact area navigator no longer replaces a page's heading. Kept for existing consumers. */
|
|
735
733
|
declare function useShellPageTitle(): string | null;
|
|
736
734
|
|
|
737
735
|
type CboxShellProps = {
|
|
@@ -1288,11 +1286,11 @@ declare function PageShell({ children, width, className, }: Props): react_jsx_ru
|
|
|
1288
1286
|
* panel renders, with no client-side coordination required.
|
|
1289
1287
|
*
|
|
1290
1288
|
* Layout:
|
|
1291
|
-
* ≥
|
|
1289
|
+
* ≥ 56rem container width: horizontal underline strip + optional `actions` slot to
|
|
1292
1290
|
* the right; sticky just under the TopBar with a hairline
|
|
1293
1291
|
* border-bottom and a backdrop-blur for the scroll-into
|
|
1294
1292
|
* effect.
|
|
1295
|
-
* <
|
|
1293
|
+
* < 56rem container width: dropdown showing the active tab + chevron; opens a panel
|
|
1296
1294
|
* with the full list. Actions reflow below the trigger.
|
|
1297
1295
|
*
|
|
1298
1296
|
* The same primitive runs the section nav across every Cbox app. It
|