@sybilion/uilib 1.4.2 → 1.4.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sybilion/uilib",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Sybilion Design System — React UI components (Webpack + Stylus)",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -1,12 +1,5 @@
1
- import {
2
- AppBanner,
3
- AppShell,
4
- AppShellMainContent,
5
- } from '#uilib/components/ui/Page';
6
- import {
7
- DOCS_CHAT_USER_KEY,
8
- DOCS_SIDEBAR_WIDTH_LS_KEY,
9
- } from '../docsConstants';
1
+ import cn from 'classnames';
2
+ import { useState } from 'react';
10
3
  import {
11
4
  Link,
12
5
  Navigate,
@@ -19,20 +12,28 @@ import {
19
12
 
20
13
  import { AppHeaderHost } from '#uilib/components/ui/AppHeader';
21
14
  import { Button } from '#uilib/components/ui/Button';
22
- import { ChatProvider } from '#uilib/contexts/chat-context';
23
- import type { ChatResponse } from '#uilib/types/chat-api.types';
24
- import { DOC_DEFAULT_SLUG } from '../registry';
25
- import { DocPage } from '../DocPage';
26
- import { DocsSidebar } from '#uilib/docs/components/DocsSidebar/DocsSidebar';
27
15
  import { Logo } from '#uilib/components/ui/Logo';
16
+ import {
17
+ AppBanner,
18
+ AppShell,
19
+ AppShellMainContent,
20
+ } from '#uilib/components/ui/Page';
28
21
  import { PageFooter } from '#uilib/components/ui/Page/PageFooter/PageFooter';
29
22
  import { PageScroll } from '#uilib/components/ui/Page/PageScroll/PageScroll';
30
- import S from '../DocsShell.styl';
31
23
  import { SidebarProvider } from '#uilib/components/ui/Sidebar/Sidebar';
32
24
  import { SybilionAppHeader } from '#uilib/components/widgets/SybilionAppHeader';
25
+ import { ChatProvider } from '#uilib/contexts/chat-context';
26
+ import { DocsSidebar } from '#uilib/docs/components/DocsSidebar/DocsSidebar';
27
+ import type { ChatResponse } from '#uilib/types/chat-api.types';
28
+
29
+ import { DocPage } from '../DocPage';
30
+ import S from '../DocsShell.styl';
31
+ import {
32
+ DOCS_CHAT_USER_KEY,
33
+ DOCS_SIDEBAR_WIDTH_LS_KEY,
34
+ } from '../docsConstants';
35
+ import { DOC_DEFAULT_SLUG } from '../registry';
33
36
  import { ThemeToggle } from './ThemeToggle';
34
- import cn from 'classnames';
35
- import { useState } from 'react';
36
37
 
37
38
  async function mockDocsSendChatMessage(
38
39
  message: string,
@@ -63,7 +64,7 @@ function DocsLayout() {
63
64
  </div>
64
65
  ) : null}
65
66
  <div className={S.pageScrollSlot}>
66
- <PageScroll className={S.root}>
67
+ <PageScroll className={S.root} rootClassName={S.pageScrollRoot}>
67
68
  <AppShell>
68
69
  <DocsSidebar />
69
70
 
@@ -26,10 +26,17 @@
26
26
  height 100%
27
27
  min-height 0
28
28
 
29
+ // PageScroll default is 100vh; inside banner viewport the slot is shorter — fill slot, not viewport.
30
+ .pageScrollRoot
31
+ flex 1
32
+ min-height 0
33
+ height 100% !important
34
+ max-height 100% !important
35
+
29
36
  .root
30
37
  display flex
31
38
  flex-direction column
32
- height 100vh
39
+ min-height 100%
33
40
 
34
41
  .mainHeaderBar
35
42
  flex-shrink 0
@@ -5,6 +5,7 @@ interface CssExports {
5
5
  'loading': string;
6
6
  'mainContent': string;
7
7
  'mainHeaderBar': string;
8
+ 'pageScrollRoot': string;
8
9
  'pageScrollSlot': string;
9
10
  'root': string;
10
11
  'viewport': string;