@craftzbay/ui 0.6.1 → 0.7.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-lib/index.cjs +2 -2
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +301 -305
- package/dist-lib/index.js.map +1 -1
- package/dist-lib/showcase/guides/Migration.d.ts +1 -0
- package/dist-lib/showcase/layout/DocLayout.d.ts +2 -2
- package/dist-lib/showcase/layout/DocSidebar.d.ts +9 -1
- package/dist-lib/showcase/layout/ShowcaseFooter.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function MigrationBody(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -21,8 +21,8 @@ interface DocLayoutProps {
|
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Two-column doc shell: left sidebar (sticky), right scrollable content.
|
|
24
|
-
*
|
|
25
|
-
*
|
|
24
|
+
* On screens < md the sidebar collapses behind a hamburger button that
|
|
25
|
+
* opens its contents in a left Sheet drawer.
|
|
26
26
|
*/
|
|
27
27
|
export declare function DocLayout({ sidebar, topLinks, current, crossKindSections, children, }: DocLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
28
28
|
export {};
|
|
@@ -28,6 +28,14 @@ interface DocSidebarProps {
|
|
|
28
28
|
* without showing them when the query is empty.
|
|
29
29
|
*/
|
|
30
30
|
crossKindSections?: DocSidebarSection[];
|
|
31
|
+
/**
|
|
32
|
+
* Render variant. `'desktop'` (default) is sticky-positioned and hidden
|
|
33
|
+
* on screens < md. `'mobile'` is plain block — meant to be embedded inside
|
|
34
|
+
* a Sheet content.
|
|
35
|
+
*/
|
|
36
|
+
variant?: 'desktop' | 'mobile';
|
|
37
|
+
/** Called when a link is clicked. Mobile uses this to close the Sheet. */
|
|
38
|
+
onNavigate?: () => void;
|
|
31
39
|
}
|
|
32
|
-
export declare function DocSidebar({ sections, current, topLinks, crossKindSections, }: DocSidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export declare function DocSidebar({ sections, current, topLinks, crossKindSections, variant, onNavigate, }: DocSidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
33
41
|
export {};
|
package/package.json
CHANGED