@bergetai/ui 0.12.0 → 0.12.1

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
@@ -411,14 +411,15 @@ declare function SidebarFooter({ className, ...props }: React$1.ComponentProps<t
411
411
  * against the full 60px rail width. */
412
412
  declare function SidebarHeader({ className, ...props }: React$1.ComponentProps<typeof SidebarHeader$1>): react_jsx_runtime.JSX.Element;
413
413
  /** Berget brand slot for the sidebar header. Fades between the full logo
414
- * (expanded) and the symbol pinned to the icon-rail slot (collapsed).
414
+ * (expanded) and the symbol (collapsed icon rail).
415
415
  *
416
416
  * Implementation notes — all load-bearing:
417
- * - The symbol is pinned to the rail slot (60px, px-3) so it appears in its
418
- * final position the moment collapse starts — its glyph lines up with the
419
- * leading glyph of the full logo, which fades away beneath it. px-3 on both
420
- * layers keeps the logo's left inset identical in both states (12px), so
421
- * the mark never shifts when toggling.
417
+ * - The symbol glides instead of popping: at pl-5 its box sits pixel-perfect
418
+ * under the leading glyph of the full logo (both 35.5x32 at x=20), and its
419
+ * padding-left animates to pl-3 (centered in the 60px rail) over 200ms
420
+ * linear — exactly matching the sidebar width transition. The mark never
421
+ * jumps: collapse fades the logotype out while the symbol glides into its
422
+ * gliding position; expand reverses it.
422
423
  * - Both layers stay mounted: display isn't animatable, so unmounting the
423
424
  * symbol on expand would blink it off in one frame while the logotype is
424
425
  * still fading in. visibility+opacity handle hiding instead; visibility is
@@ -427,6 +428,9 @@ declare function SidebarHeader({ className, ...props }: React$1.ComponentProps<t
427
428
  * - The row is overflow-hidden and the logo shrink-0: when the rail narrows,
428
429
  * the fading full logo is clipped at the moving edge instead of being
429
430
  * squeezed (the SVG viewBox would otherwise scale it down).
431
+ * - px-5 aligns the logo's left edge with the 20px content line of the
432
+ * expanded sidebar (menu icons and group-label text both sit at 20px).
433
+ * The fading full logo clips under the shrinking rail edge while fading.
430
434
  *
431
435
  * Renders its own SidebarHeader (px-0 — the row owns all horizontal padding,
432
436
  * so its position can't jump when the header's icon-mode padding lands).
package/dist/index.d.ts CHANGED
@@ -411,14 +411,15 @@ declare function SidebarFooter({ className, ...props }: React$1.ComponentProps<t
411
411
  * against the full 60px rail width. */
412
412
  declare function SidebarHeader({ className, ...props }: React$1.ComponentProps<typeof SidebarHeader$1>): react_jsx_runtime.JSX.Element;
413
413
  /** Berget brand slot for the sidebar header. Fades between the full logo
414
- * (expanded) and the symbol pinned to the icon-rail slot (collapsed).
414
+ * (expanded) and the symbol (collapsed icon rail).
415
415
  *
416
416
  * Implementation notes — all load-bearing:
417
- * - The symbol is pinned to the rail slot (60px, px-3) so it appears in its
418
- * final position the moment collapse starts — its glyph lines up with the
419
- * leading glyph of the full logo, which fades away beneath it. px-3 on both
420
- * layers keeps the logo's left inset identical in both states (12px), so
421
- * the mark never shifts when toggling.
417
+ * - The symbol glides instead of popping: at pl-5 its box sits pixel-perfect
418
+ * under the leading glyph of the full logo (both 35.5x32 at x=20), and its
419
+ * padding-left animates to pl-3 (centered in the 60px rail) over 200ms
420
+ * linear — exactly matching the sidebar width transition. The mark never
421
+ * jumps: collapse fades the logotype out while the symbol glides into its
422
+ * gliding position; expand reverses it.
422
423
  * - Both layers stay mounted: display isn't animatable, so unmounting the
423
424
  * symbol on expand would blink it off in one frame while the logotype is
424
425
  * still fading in. visibility+opacity handle hiding instead; visibility is
@@ -427,6 +428,9 @@ declare function SidebarHeader({ className, ...props }: React$1.ComponentProps<t
427
428
  * - The row is overflow-hidden and the logo shrink-0: when the rail narrows,
428
429
  * the fading full logo is clipped at the moving edge instead of being
429
430
  * squeezed (the SVG viewBox would otherwise scale it down).
431
+ * - px-5 aligns the logo's left edge with the 20px content line of the
432
+ * expanded sidebar (menu icons and group-label text both sit at 20px).
433
+ * The fading full logo clips under the shrinking rail edge while fading.
430
434
  *
431
435
  * Renders its own SidebarHeader (px-0 — the row owns all horizontal padding,
432
436
  * so its position can't jump when the header's icon-mode padding lands).
package/dist/index.js CHANGED
@@ -2506,7 +2506,7 @@ function SidebarHeader2({
2506
2506
  );
2507
2507
  }
2508
2508
  function SidebarLogo() {
2509
- return /* @__PURE__ */ jsx25(SidebarHeader, { className: "px-0", children: /* @__PURE__ */ jsxs14("div", { className: "relative flex h-15 items-center overflow-hidden px-3", children: [
2509
+ return /* @__PURE__ */ jsx25(SidebarHeader, { className: "px-0", children: /* @__PURE__ */ jsxs14("div", { className: "relative flex h-15 items-center overflow-hidden px-5", children: [
2510
2510
  /* @__PURE__ */ jsx25(
2511
2511
  BergetLogo,
2512
2512
  {
@@ -2515,7 +2515,7 @@ function SidebarLogo() {
2515
2515
  className: "shrink-0 transition-[opacity,visibility] duration-150 group-data-[collapsible=icon]:pointer-events-none group-data-[collapsible=icon]:invisible group-data-[collapsible=icon]:opacity-0"
2516
2516
  }
2517
2517
  ),
2518
- /* @__PURE__ */ jsx25("span", { className: "pointer-events-none invisible absolute inset-y-0 left-0 w-15 flex items-center justify-center px-3 opacity-0 transition-[opacity,visibility] duration-150 group-data-[collapsible=icon]:visible group-data-[collapsible=icon]:opacity-100", children: /* @__PURE__ */ jsx25(BergetLogo, { variant: "symbol", size: 32 }) })
2518
+ /* @__PURE__ */ jsx25("span", { className: "pointer-events-none invisible absolute inset-y-0 left-0 flex w-15 items-center pl-5 opacity-0 transition-[padding-left,opacity,visibility] duration-200 ease-linear group-data-[collapsible=icon]:visible group-data-[collapsible=icon]:pl-3 group-data-[collapsible=icon]:opacity-100", children: /* @__PURE__ */ jsx25(BergetLogo, { variant: "symbol", size: 32 }) })
2519
2519
  ] }) });
2520
2520
  }
2521
2521
  function SidebarPageHeader({ className, ...props }) {