@bergetai/ui 0.13.3 → 0.13.4

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.cts CHANGED
@@ -394,7 +394,7 @@ declare function Sidebar({ side, variant, collapsible, className, children, dir,
394
394
  }): react_jsx_runtime.JSX.Element;
395
395
  declare function SidebarTrigger({ className, onClick, ...props }: React$1.ComponentProps<typeof Button$1>): react_jsx_runtime.JSX.Element;
396
396
  declare function SidebarRail({ className, ...props }: React$1.ComponentProps<"button">): react_jsx_runtime.JSX.Element;
397
- declare function SidebarInset({ className, ...props }: React$1.ComponentProps<"main">): react_jsx_runtime.JSX.Element;
397
+ declare function SidebarInset$1({ className, ...props }: React$1.ComponentProps<"main">): react_jsx_runtime.JSX.Element;
398
398
  declare function SidebarInput({ className, ...props }: React$1.ComponentProps<typeof Input>): react_jsx_runtime.JSX.Element;
399
399
  declare function SidebarHeader$1({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
400
400
  declare function SidebarFooter$1({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
@@ -435,6 +435,15 @@ declare function SidebarGroupLabel({ className, ...props }: React$1.ComponentPro
435
435
  /** Provider with the Berget icon-rail width (60px = 10px gutters + 40px
436
436
  * buttons). Consumers can still override via `style`. */
437
437
  declare function SidebarProvider({ className, style, ...props }: React$1.ComponentProps<typeof SidebarProvider$1>): react_jsx_runtime.JSX.Element;
438
+ /** Inset with min-w-0 so the content column can shrink below its min-content
439
+ * width. Without it (flex items default to min-width:auto), wide content — a
440
+ * nowrap table, a code block — makes the inset refuse to yield space: the
441
+ * sidebar's gap spacer collapses and the inset (and its sticky page header)
442
+ * slides under the fixed sidebar, painting over it on scroll. A scroll
443
+ * wrapper on the wide child alone is not sufficient — block-level
444
+ * overflow-x-auto still propagates min-content up to the flex item.
445
+ * Upstream shadcn-ui/ui#11370; no-op for pages that don't overflow. */
446
+ declare function SidebarInset({ className, ...props }: React$1.ComponentProps<typeof SidebarInset$1>): react_jsx_runtime.JSX.Element;
438
447
  /** Group with 10px horizontal gutters in icon mode (10 + 40 + 10 = 60px). */
439
448
  declare function SidebarGroup({ className, ...props }: React$1.ComponentProps<typeof SidebarGroup$1>): react_jsx_runtime.JSX.Element;
440
449
  /** Footer with a top border mirroring the sidebar header's bottom border, and
package/dist/index.d.ts CHANGED
@@ -394,7 +394,7 @@ declare function Sidebar({ side, variant, collapsible, className, children, dir,
394
394
  }): react_jsx_runtime.JSX.Element;
395
395
  declare function SidebarTrigger({ className, onClick, ...props }: React$1.ComponentProps<typeof Button$1>): react_jsx_runtime.JSX.Element;
396
396
  declare function SidebarRail({ className, ...props }: React$1.ComponentProps<"button">): react_jsx_runtime.JSX.Element;
397
- declare function SidebarInset({ className, ...props }: React$1.ComponentProps<"main">): react_jsx_runtime.JSX.Element;
397
+ declare function SidebarInset$1({ className, ...props }: React$1.ComponentProps<"main">): react_jsx_runtime.JSX.Element;
398
398
  declare function SidebarInput({ className, ...props }: React$1.ComponentProps<typeof Input>): react_jsx_runtime.JSX.Element;
399
399
  declare function SidebarHeader$1({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
400
400
  declare function SidebarFooter$1({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
@@ -435,6 +435,15 @@ declare function SidebarGroupLabel({ className, ...props }: React$1.ComponentPro
435
435
  /** Provider with the Berget icon-rail width (60px = 10px gutters + 40px
436
436
  * buttons). Consumers can still override via `style`. */
437
437
  declare function SidebarProvider({ className, style, ...props }: React$1.ComponentProps<typeof SidebarProvider$1>): react_jsx_runtime.JSX.Element;
438
+ /** Inset with min-w-0 so the content column can shrink below its min-content
439
+ * width. Without it (flex items default to min-width:auto), wide content — a
440
+ * nowrap table, a code block — makes the inset refuse to yield space: the
441
+ * sidebar's gap spacer collapses and the inset (and its sticky page header)
442
+ * slides under the fixed sidebar, painting over it on scroll. A scroll
443
+ * wrapper on the wide child alone is not sufficient — block-level
444
+ * overflow-x-auto still propagates min-content up to the flex item.
445
+ * Upstream shadcn-ui/ui#11370; no-op for pages that don't overflow. */
446
+ declare function SidebarInset({ className, ...props }: React$1.ComponentProps<typeof SidebarInset$1>): react_jsx_runtime.JSX.Element;
438
447
  /** Group with 10px horizontal gutters in icon mode (10 + 40 + 10 = 60px). */
439
448
  declare function SidebarGroup({ className, ...props }: React$1.ComponentProps<typeof SidebarGroup$1>): react_jsx_runtime.JSX.Element;
440
449
  /** Footer with a top border mirroring the sidebar header's bottom border, and
package/dist/index.js CHANGED
@@ -2708,6 +2708,9 @@ function SidebarProvider2({
2708
2708
  }
2709
2709
  );
2710
2710
  }
2711
+ function SidebarInset2({ className, ...props }) {
2712
+ return /* @__PURE__ */ jsx27(SidebarInset, { className: cn("min-w-0", className), ...props });
2713
+ }
2711
2714
  function SidebarGroup2({ className, ...props }) {
2712
2715
  return /* @__PURE__ */ jsx27(
2713
2716
  SidebarGroup,
@@ -5360,7 +5363,7 @@ export {
5360
5363
  SidebarGroupLabel2 as SidebarGroupLabel,
5361
5364
  SidebarHeader2 as SidebarHeader,
5362
5365
  SidebarInput,
5363
- SidebarInset,
5366
+ SidebarInset2 as SidebarInset,
5364
5367
  SidebarLogo,
5365
5368
  SidebarMenu,
5366
5369
  SidebarMenuAction,