@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.
@@ -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
- * The sticky ShowcaseTopBar sits above this in App.tsx, so the sidebar
25
- * top offset is 3.5rem (h-14).
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 {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Site-wide footer rendered on Home + all doc routes. Hidden on
3
+ * full-bleed preview routes so it doesn't pollute template screenshots.
4
+ */
5
+ export declare function ShowcaseFooter(): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@craftzbay/ui",
3
- "version": "0.6.1",
3
+ "version": "0.7.0",
4
4
  "description": "Refined-minimal Tailwind v4 + React design system — 40+ accessible primitives and ready-made page patterns.",
5
5
  "license": "MIT",
6
6
  "author": "craftzbay",