@sybilion/uilib 1.4.28 → 1.4.30
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/agent-glossary/content-prompt.generated.ts +8 -2
- package/dist/agent-glossary/content.generated.ts +8 -2
- package/dist/agent-glossary/content.md +8 -2
- package/dist/agent-glossary/content.prompt.md +8 -2
- package/dist/agent-glossary/workspace.generated.ts +3 -9
- package/dist/agent-glossary/workspace.index.md +3 -9
- package/dist/agent-glossary/workspace.md +3 -9
- package/dist/esm/src/components/ui/VimeoEmbed/VimeoEmbed.js +16 -1
- package/dist/esm/src/components/ui/VimeoEmbed/VimeoEmbed.styl.js +1 -1
- package/dist/esm/types/src/docs/pages/PageEmptyCanvasPage.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/ui/Chat/AGENT.md +18 -0
- package/src/components/ui/Chat/ChatChrome/AGENT.md +55 -0
- package/src/{docs/agent-guidance/chat-sheet.md → components/ui/Chat/ChatSheet/AGENT.md} +2 -2
- package/src/components/ui/Page/AGENT.md +8 -2
- package/src/components/ui/Page/PageEmptyCanvas/AGENT.md +17 -0
- package/src/components/ui/VimeoEmbed/VimeoEmbed.styl +1 -3
- package/src/components/ui/VimeoEmbed/VimeoEmbed.tsx +16 -0
- package/src/docs/pages/ChatAttachmentsDropzonePage.tsx +1 -1
- package/src/docs/pages/ChatComposerPrefillPage.tsx +1 -1
- package/src/docs/pages/ChatSheetPage.tsx +2 -2
- package/src/docs/pages/ChatSlashCommandsPage.tsx +1 -1
- package/src/docs/pages/ChatUserCsvAttachmentPage.tsx +1 -1
- package/src/docs/pages/PageColumnsPage.tsx +1 -1
- package/src/docs/pages/PageEmptyCanvasPage.tsx +86 -0
- package/src/docs/pages/PageFooterPage.tsx +21 -2
- package/src/docs/pages/PagePage.tsx +1 -1
- package/src/docs/pages/PageTabsPage.tsx +1 -1
- package/src/docs/registry.ts +6 -0
- package/src/docs/agent-guidance/chat-attachments-dropzone.md +0 -15
- package/src/docs/agent-guidance/chat-composer-prefill.md +0 -15
- package/src/docs/agent-guidance/chat-slash-commands.md +0 -15
- package/src/docs/agent-guidance/chat-user-csv-attachment.md +0 -14
- package/src/docs/agent-guidance/page-columns.md +0 -19
- package/src/docs/agent-guidance/page-footer.md +0 -15
- package/src/docs/agent-guidance/page-tabs.md +0 -19
- package/src/docs/agent-guidance/page.md +0 -15
|
@@ -128,6 +128,8 @@ Global tokens (host app \`:root\`, e.g. \`standalone-global.css\`): \`--page-wid
|
|
|
128
128
|
|
|
129
129
|
## PageTabs — rules and patterns
|
|
130
130
|
|
|
131
|
+
Use \`PageTabs\` to divide a page into a few parallel views that share the same context. The tab strip scrolls horizontally (via \`PageXScroll\`) when triggers overflow the container; an outline variant exists for muted surfaces.
|
|
132
|
+
|
|
131
133
|
**NEVER** place \`PageTabs\` inside \`PageContentSection\`. Tabs manage their own horizontal inset via \`PageXScroll\` / \`tabsListProps.withPaddings\`.
|
|
132
134
|
|
|
133
135
|
### Unified (tabs + panels inside PageContent)
|
|
@@ -226,7 +228,7 @@ In-section title block (\`title\`, \`description\`, \`actions\`). Use **inside**
|
|
|
226
228
|
|
|
227
229
|
### PageEmptyCanvas
|
|
228
230
|
|
|
229
|
-
Centered empty state: \`title\`, \`hint\`, optional \`children\` (e.g. CTA button).
|
|
231
|
+
Centered empty state: \`title\`, \`hint\`, optional \`children\` (e.g. CTA button). Place directly in \`PageContent\` (typically a \`PageContentSection\`); see \`PageEmptyCanvas/AGENT.md\`.
|
|
230
232
|
|
|
231
233
|
### GridLayout
|
|
232
234
|
|
|
@@ -240,13 +242,17 @@ Use inside sections for grouped content; see package \`AGENT.md\` on those compo
|
|
|
240
242
|
|
|
241
243
|
Not part of the per-route skeleton but part of host app wiring:
|
|
242
244
|
|
|
243
|
-
- **AppShell** / **AppShellMainContent** — sidebar + main column + header
|
|
245
|
+
- **AppShell** / **AppShellMainContent** — sidebar + main column + \`header\` / \`footer\` slots. Standalone apps pre-wire the page footer in \`AppLayout\`; route pages do not compose footer primitives.
|
|
244
246
|
- **PageScroll** — scroll root for the main column.
|
|
245
247
|
- **SybilionAppHeader** — workspace app switcher + user menu (lives in header slot, not inside \`PageContent\`).
|
|
246
248
|
|
|
247
249
|
## Anti-patterns
|
|
248
250
|
|
|
249
251
|
- \`PageTabs\` inside \`PageContentSection\`.
|
|
252
|
+
- \`PageTabs\` nested inside another \`PageTabs\`.
|
|
253
|
+
- \`PageTabs\` for sequential flow steps — use a wizard or stepper pattern instead.
|
|
254
|
+
- \`PageContentSection\` nested inside another \`PageContentSection\`.
|
|
255
|
+
- \`PageContentSection\` used as a generic container inside cards or other components — it is page-level structure, not a wrapper.
|
|
250
256
|
- Inline styles or Tailwind for page structure.
|
|
251
257
|
- Second \`PageHeader\` nested in content.
|
|
252
258
|
- \`PageContent\` without sections for multi-block pages (prefer multiple \`PageContentSection\`).
|
|
@@ -128,6 +128,8 @@ Global tokens (host app \`:root\`, e.g. \`standalone-global.css\`): \`--page-wid
|
|
|
128
128
|
|
|
129
129
|
## PageTabs — rules and patterns
|
|
130
130
|
|
|
131
|
+
Use \`PageTabs\` to divide a page into a few parallel views that share the same context. The tab strip scrolls horizontally (via \`PageXScroll\`) when triggers overflow the container; an outline variant exists for muted surfaces.
|
|
132
|
+
|
|
131
133
|
**NEVER** place \`PageTabs\` inside \`PageContentSection\`. Tabs manage their own horizontal inset via \`PageXScroll\` / \`tabsListProps.withPaddings\`.
|
|
132
134
|
|
|
133
135
|
### Unified (tabs + panels inside PageContent)
|
|
@@ -226,7 +228,7 @@ In-section title block (\`title\`, \`description\`, \`actions\`). Use **inside**
|
|
|
226
228
|
|
|
227
229
|
### PageEmptyCanvas
|
|
228
230
|
|
|
229
|
-
Centered empty state: \`title\`, \`hint\`, optional \`children\` (e.g. CTA button).
|
|
231
|
+
Centered empty state: \`title\`, \`hint\`, optional \`children\` (e.g. CTA button). Place directly in \`PageContent\` (typically a \`PageContentSection\`); see \`PageEmptyCanvas/AGENT.md\`.
|
|
230
232
|
|
|
231
233
|
### GridLayout
|
|
232
234
|
|
|
@@ -240,13 +242,17 @@ Use inside sections for grouped content; see package \`AGENT.md\` on those compo
|
|
|
240
242
|
|
|
241
243
|
Not part of the per-route skeleton but part of host app wiring:
|
|
242
244
|
|
|
243
|
-
- **AppShell** / **AppShellMainContent** — sidebar + main column + header
|
|
245
|
+
- **AppShell** / **AppShellMainContent** — sidebar + main column + \`header\` / \`footer\` slots. Standalone apps pre-wire the page footer in \`AppLayout\`; route pages do not compose footer primitives.
|
|
244
246
|
- **PageScroll** — scroll root for the main column.
|
|
245
247
|
- **SybilionAppHeader** — workspace app switcher + user menu (lives in header slot, not inside \`PageContent\`).
|
|
246
248
|
|
|
247
249
|
## Anti-patterns
|
|
248
250
|
|
|
249
251
|
- \`PageTabs\` inside \`PageContentSection\`.
|
|
252
|
+
- \`PageTabs\` nested inside another \`PageTabs\`.
|
|
253
|
+
- \`PageTabs\` for sequential flow steps — use a wizard or stepper pattern instead.
|
|
254
|
+
- \`PageContentSection\` nested inside another \`PageContentSection\`.
|
|
255
|
+
- \`PageContentSection\` used as a generic container inside cards or other components — it is page-level structure, not a wrapper.
|
|
250
256
|
- Inline styles or Tailwind for page structure.
|
|
251
257
|
- Second \`PageHeader\` nested in content.
|
|
252
258
|
- \`PageContent\` without sections for multi-block pages (prefer multiple \`PageContentSection\`).
|
|
@@ -127,6 +127,8 @@ Global tokens (host app `:root`, e.g. `standalone-global.css`): `--page-width`,
|
|
|
127
127
|
|
|
128
128
|
## PageTabs — rules and patterns
|
|
129
129
|
|
|
130
|
+
Use `PageTabs` to divide a page into a few parallel views that share the same context. The tab strip scrolls horizontally (via `PageXScroll`) when triggers overflow the container; an outline variant exists for muted surfaces.
|
|
131
|
+
|
|
130
132
|
**NEVER** place `PageTabs` inside `PageContentSection`. Tabs manage their own horizontal inset via `PageXScroll` / `tabsListProps.withPaddings`.
|
|
131
133
|
|
|
132
134
|
### Unified (tabs + panels inside PageContent)
|
|
@@ -225,7 +227,7 @@ In-section title block (`title`, `description`, `actions`). Use **inside** `Page
|
|
|
225
227
|
|
|
226
228
|
### PageEmptyCanvas
|
|
227
229
|
|
|
228
|
-
Centered empty state: `title`, `hint`, optional `children` (e.g. CTA button).
|
|
230
|
+
Centered empty state: `title`, `hint`, optional `children` (e.g. CTA button). Place directly in `PageContent` (typically a `PageContentSection`); see `PageEmptyCanvas/AGENT.md`.
|
|
229
231
|
|
|
230
232
|
### GridLayout
|
|
231
233
|
|
|
@@ -239,13 +241,17 @@ Use inside sections for grouped content; see package `AGENT.md` on those compone
|
|
|
239
241
|
|
|
240
242
|
Not part of the per-route skeleton but part of host app wiring:
|
|
241
243
|
|
|
242
|
-
- **AppShell** / **AppShellMainContent** — sidebar + main column + header
|
|
244
|
+
- **AppShell** / **AppShellMainContent** — sidebar + main column + `header` / `footer` slots. Standalone apps pre-wire the page footer in `AppLayout`; route pages do not compose footer primitives.
|
|
243
245
|
- **PageScroll** — scroll root for the main column.
|
|
244
246
|
- **SybilionAppHeader** — workspace app switcher + user menu (lives in header slot, not inside `PageContent`).
|
|
245
247
|
|
|
246
248
|
## Anti-patterns
|
|
247
249
|
|
|
248
250
|
- `PageTabs` inside `PageContentSection`.
|
|
251
|
+
- `PageTabs` nested inside another `PageTabs`.
|
|
252
|
+
- `PageTabs` for sequential flow steps — use a wizard or stepper pattern instead.
|
|
253
|
+
- `PageContentSection` nested inside another `PageContentSection`.
|
|
254
|
+
- `PageContentSection` used as a generic container inside cards or other components — it is page-level structure, not a wrapper.
|
|
249
255
|
- Inline styles or Tailwind for page structure.
|
|
250
256
|
- Second `PageHeader` nested in content.
|
|
251
257
|
- `PageContent` without sections for multi-block pages (prefer multiple `PageContentSection`).
|
|
@@ -127,6 +127,8 @@ Global tokens (host app `:root`, e.g. `standalone-global.css`): `--page-width`,
|
|
|
127
127
|
|
|
128
128
|
## PageTabs — rules and patterns
|
|
129
129
|
|
|
130
|
+
Use `PageTabs` to divide a page into a few parallel views that share the same context. The tab strip scrolls horizontally (via `PageXScroll`) when triggers overflow the container; an outline variant exists for muted surfaces.
|
|
131
|
+
|
|
130
132
|
**NEVER** place `PageTabs` inside `PageContentSection`. Tabs manage their own horizontal inset via `PageXScroll` / `tabsListProps.withPaddings`.
|
|
131
133
|
|
|
132
134
|
### Unified (tabs + panels inside PageContent)
|
|
@@ -225,7 +227,7 @@ In-section title block (`title`, `description`, `actions`). Use **inside** `Page
|
|
|
225
227
|
|
|
226
228
|
### PageEmptyCanvas
|
|
227
229
|
|
|
228
|
-
Centered empty state: `title`, `hint`, optional `children` (e.g. CTA button).
|
|
230
|
+
Centered empty state: `title`, `hint`, optional `children` (e.g. CTA button). Place directly in `PageContent` (typically a `PageContentSection`); see `PageEmptyCanvas/AGENT.md`.
|
|
229
231
|
|
|
230
232
|
### GridLayout
|
|
231
233
|
|
|
@@ -239,13 +241,17 @@ Use inside sections for grouped content; see package `AGENT.md` on those compone
|
|
|
239
241
|
|
|
240
242
|
Not part of the per-route skeleton but part of host app wiring:
|
|
241
243
|
|
|
242
|
-
- **AppShell** / **AppShellMainContent** — sidebar + main column + header
|
|
244
|
+
- **AppShell** / **AppShellMainContent** — sidebar + main column + `header` / `footer` slots. Standalone apps pre-wire the page footer in `AppLayout`; route pages do not compose footer primitives.
|
|
243
245
|
- **PageScroll** — scroll root for the main column.
|
|
244
246
|
- **SybilionAppHeader** — workspace app switcher + user menu (lives in header slot, not inside `PageContent`).
|
|
245
247
|
|
|
246
248
|
## Anti-patterns
|
|
247
249
|
|
|
248
250
|
- `PageTabs` inside `PageContentSection`.
|
|
251
|
+
- `PageTabs` nested inside another `PageTabs`.
|
|
252
|
+
- `PageTabs` for sequential flow steps — use a wizard or stepper pattern instead.
|
|
253
|
+
- `PageContentSection` nested inside another `PageContentSection`.
|
|
254
|
+
- `PageContentSection` used as a generic container inside cards or other components — it is page-level structure, not a wrapper.
|
|
249
255
|
- Inline styles or Tailwind for page structure.
|
|
250
256
|
- Second `PageHeader` nested in content.
|
|
251
257
|
- `PageContent` without sections for multi-block pages (prefer multiple `PageContentSection`).
|
|
@@ -21,6 +21,8 @@ Entry point for \`@sybilion/uilib\`. Open linked AGENT.md before using a compone
|
|
|
21
21
|
- [Chart](src/components/ui/Chart/AGENT.md) — ChartContainer wraps Recharts charts with the library’s theming, mapping a ChartConfig of labels and colours onto CSS…
|
|
22
22
|
- [ChartAreaInteractive](src/components/ui/ChartAreaInteractive/AGENT.md) — ChartAreaInteractive is the full chart shell for time series data, combining an area chart with a time range selector…
|
|
23
23
|
- [Chat](src/components/ui/Chat/AGENT.md) — ChatChrome is the complete chat shell: message list, prompt composer, empty state, and optional preset bubbles. Drive…
|
|
24
|
+
- [ChatChrome](src/components/ui/Chat/ChatChrome/AGENT.md) — ChatChrome is the complete chat shell: message list, prompt composer, empty state, and optional preset bubbles. It su…
|
|
25
|
+
- [ChatSheet](src/components/ui/Chat/ChatSheet/AGENT.md) — ChatSheet portals the chat panel into the shell chat slot; the consumer supplies a trigger element wherever it fits t…
|
|
24
26
|
- [Checkbox](src/components/ui/Checkbox/AGENT.md) — Checkbox is a binary control for selecting or deselecting an option. Pair it with a Label linked via htmlFor so the t…
|
|
25
27
|
- [Chip](src/components/ui/Chip/AGENT.md) — Chips are compact capsules for filters, status labels, version tags, and quantitative delta indicators. Use the defau…
|
|
26
28
|
- [Confirm](src/components/ui/Confirm/AGENT.md) — Confirm is a focused confirmation dialog built on Dialog, with a title, body, and paired confirm and cancel actions. …
|
|
@@ -51,6 +53,7 @@ Entry point for \`@sybilion/uilib\`. Open linked AGENT.md before using a compone
|
|
|
51
53
|
- [NavUserHeader](src/components/ui/NavUserHeader/AGENT.md) — NavUserHeader shows the signed-in user with their name, email, and avatar, and opens a dropdown menu containing custo…
|
|
52
54
|
- [Notifications](src/components/ui/Notifications/AGENT.md) — Toast stack for transient feedback — warning, danger, and loading states. Mount \`NotificationsProvider\` once near the…
|
|
53
55
|
- [NumberControl](src/components/ui/NumberControl/AGENT.md) — NumberControl is a numeric stepper with minus and plus buttons for adjusting a value within a bounded range. Configur…
|
|
56
|
+
- [PageEmptyCanvas](src/components/ui/Page/PageEmptyCanvas/AGENT.md) — PageEmptyCanvas renders a centered empty state with a \`title\`, a \`hint\` (string or ReactNode), and an optional \`child…
|
|
54
57
|
- [Progress](src/components/ui/Progress/AGENT.md) — Progress is a horizontal bar that communicates how much of a process has completed. Pass a value between 0 and 100 to…
|
|
55
58
|
- [PullQuote](src/components/ui/PullQuote/AGENT.md) — PullQuote presents an editorial quote with a 2px accent rule on the left, display-face body text, and a small Manrope…
|
|
56
59
|
- [RadioGroup](src/components/ui/RadioGroup/AGENT.md) — RadioGroup is a single-choice control for selecting one option from a short list. Pair each RadioGroupItem with a Lab…
|
|
@@ -86,18 +89,9 @@ Entry point for \`@sybilion/uilib\`. Open linked AGENT.md before using a compone
|
|
|
86
89
|
|
|
87
90
|
## Foundations
|
|
88
91
|
|
|
89
|
-
- [Chat Attachments Dropzone](src/docs/agent-guidance/chat-attachments-dropzone.md) — ChatChrome supports a file dropzone: users drag text, Office, or PDF files onto the chat panel and the parsed content…
|
|
90
|
-
- [Chat Composer Prefill](src/docs/agent-guidance/chat-composer-prefill.md) — The chat composer can be prefilled without auto-sending: pass promptPrefill to ChatChrome, call ChatSheetActions.open…
|
|
91
|
-
- [Chat Sheet](src/docs/agent-guidance/chat-sheet.md) — ChatSheet places the chat panel behind a trigger in the page header and portals it into the shell chat slot, matching…
|
|
92
|
-
- [Chat Slash Commands](src/docs/agent-guidance/chat-slash-commands.md) — The chat composer supports a slash command palette built on TipTap mentions: typing / at the start of a line or after…
|
|
93
|
-
- [Chat User Csv Attachment](src/docs/agent-guidance/chat-user-csv-attachment.md) — User messages can carry downloadable text file attachments via userTextFileAttachments: the bubble shows the message …
|
|
94
92
|
- [Colors](src/docs/agent-guidance/colors.md) — Colour is defined as a set of core ramps (--sb-cyan/purple/red/green/yellow/gray/slate) plus semantic tokens that map…
|
|
95
93
|
- [Icons](src/docs/agent-guidance/icons.md) — Icons come from the lucide-react package and are drawn at a 1.5px stroke (--icon-stroke). Use the --icon-size-\\* toke…
|
|
96
94
|
- [Motion](src/docs/agent-guidance/motion.md) — Motion is quick and purposeful. Use --ease-standard for elements entering or changing state, --ease-exit for elements…
|
|
97
|
-
- [Page](src/docs/agent-guidance/page.md) — PageContent and PageContentSection are the structural building blocks of a page body. PageContent wraps the whole bod…
|
|
98
|
-
- [Page Columns](src/docs/agent-guidance/page-columns.md) — PageColumns lays out a responsive row of columns inside a page section. Omit fill for equal columns; use left or righ…
|
|
99
|
-
- [Page Footer](src/docs/agent-guidance/page-footer.md) — PageFooter renders the page-level footer with copyright, a version label, and an optional row of links that wrap on n…
|
|
100
|
-
- [Page Tabs](src/docs/agent-guidance/page-tabs.md) — PageTabs renders a page-scoped tab bar with optional panels. The tab strip scrolls horizontally when triggers overflo…
|
|
101
95
|
- [Radii Shadows](src/docs/agent-guidance/radii-shadows.md) — Corners are small and square-biased: the scale runs from 0 to 12px, with semantic aliases for buttons, cards, and inp…
|
|
102
96
|
- [Spacing](src/docs/agent-guidance/spacing.md) — The --p-\\* tokens are the canonical spacing scale: each step is a multiple of 4px, from --p-1 (4px) up to --p-24 (96p…
|
|
103
97
|
- [Standalone App Layout](src/docs/agent-guidance/standalone-app-layout.md) — The standalone app layout composes AppShell, Sidebar, and AppShellMainContent into the full chrome for a Sybilion sta…
|
|
@@ -20,6 +20,8 @@ Entry point for `@sybilion/uilib`. Open linked AGENT.md before using a component
|
|
|
20
20
|
- [Chart](src/components/ui/Chart/AGENT.md) — ChartContainer wraps Recharts charts with the library’s theming, mapping a ChartConfig of labels and colours onto CSS…
|
|
21
21
|
- [ChartAreaInteractive](src/components/ui/ChartAreaInteractive/AGENT.md) — ChartAreaInteractive is the full chart shell for time series data, combining an area chart with a time range selector…
|
|
22
22
|
- [Chat](src/components/ui/Chat/AGENT.md) — ChatChrome is the complete chat shell: message list, prompt composer, empty state, and optional preset bubbles. Drive…
|
|
23
|
+
- [ChatChrome](src/components/ui/Chat/ChatChrome/AGENT.md) — ChatChrome is the complete chat shell: message list, prompt composer, empty state, and optional preset bubbles. It su…
|
|
24
|
+
- [ChatSheet](src/components/ui/Chat/ChatSheet/AGENT.md) — ChatSheet portals the chat panel into the shell chat slot; the consumer supplies a trigger element wherever it fits t…
|
|
23
25
|
- [Checkbox](src/components/ui/Checkbox/AGENT.md) — Checkbox is a binary control for selecting or deselecting an option. Pair it with a Label linked via htmlFor so the t…
|
|
24
26
|
- [Chip](src/components/ui/Chip/AGENT.md) — Chips are compact capsules for filters, status labels, version tags, and quantitative delta indicators. Use the defau…
|
|
25
27
|
- [Confirm](src/components/ui/Confirm/AGENT.md) — Confirm is a focused confirmation dialog built on Dialog, with a title, body, and paired confirm and cancel actions. …
|
|
@@ -50,6 +52,7 @@ Entry point for `@sybilion/uilib`. Open linked AGENT.md before using a component
|
|
|
50
52
|
- [NavUserHeader](src/components/ui/NavUserHeader/AGENT.md) — NavUserHeader shows the signed-in user with their name, email, and avatar, and opens a dropdown menu containing custo…
|
|
51
53
|
- [Notifications](src/components/ui/Notifications/AGENT.md) — Toast stack for transient feedback — warning, danger, and loading states. Mount `NotificationsProvider` once near the…
|
|
52
54
|
- [NumberControl](src/components/ui/NumberControl/AGENT.md) — NumberControl is a numeric stepper with minus and plus buttons for adjusting a value within a bounded range. Configur…
|
|
55
|
+
- [PageEmptyCanvas](src/components/ui/Page/PageEmptyCanvas/AGENT.md) — PageEmptyCanvas renders a centered empty state with a `title`, a `hint` (string or ReactNode), and an optional `child…
|
|
53
56
|
- [Progress](src/components/ui/Progress/AGENT.md) — Progress is a horizontal bar that communicates how much of a process has completed. Pass a value between 0 and 100 to…
|
|
54
57
|
- [PullQuote](src/components/ui/PullQuote/AGENT.md) — PullQuote presents an editorial quote with a 2px accent rule on the left, display-face body text, and a small Manrope…
|
|
55
58
|
- [RadioGroup](src/components/ui/RadioGroup/AGENT.md) — RadioGroup is a single-choice control for selecting one option from a short list. Pair each RadioGroupItem with a Lab…
|
|
@@ -85,18 +88,9 @@ Entry point for `@sybilion/uilib`. Open linked AGENT.md before using a component
|
|
|
85
88
|
|
|
86
89
|
## Foundations
|
|
87
90
|
|
|
88
|
-
- [Chat Attachments Dropzone](src/docs/agent-guidance/chat-attachments-dropzone.md) — ChatChrome supports a file dropzone: users drag text, Office, or PDF files onto the chat panel and the parsed content…
|
|
89
|
-
- [Chat Composer Prefill](src/docs/agent-guidance/chat-composer-prefill.md) — The chat composer can be prefilled without auto-sending: pass promptPrefill to ChatChrome, call ChatSheetActions.open…
|
|
90
|
-
- [Chat Sheet](src/docs/agent-guidance/chat-sheet.md) — ChatSheet places the chat panel behind a trigger in the page header and portals it into the shell chat slot, matching…
|
|
91
|
-
- [Chat Slash Commands](src/docs/agent-guidance/chat-slash-commands.md) — The chat composer supports a slash command palette built on TipTap mentions: typing / at the start of a line or after…
|
|
92
|
-
- [Chat User Csv Attachment](src/docs/agent-guidance/chat-user-csv-attachment.md) — User messages can carry downloadable text file attachments via userTextFileAttachments: the bubble shows the message …
|
|
93
91
|
- [Colors](src/docs/agent-guidance/colors.md) — Colour is defined as a set of core ramps (--sb-cyan/purple/red/green/yellow/gray/slate) plus semantic tokens that map…
|
|
94
92
|
- [Icons](src/docs/agent-guidance/icons.md) — Icons come from the lucide-react package and are drawn at a 1.5px stroke (--icon-stroke). Use the --icon-size-\* toke…
|
|
95
93
|
- [Motion](src/docs/agent-guidance/motion.md) — Motion is quick and purposeful. Use --ease-standard for elements entering or changing state, --ease-exit for elements…
|
|
96
|
-
- [Page](src/docs/agent-guidance/page.md) — PageContent and PageContentSection are the structural building blocks of a page body. PageContent wraps the whole bod…
|
|
97
|
-
- [Page Columns](src/docs/agent-guidance/page-columns.md) — PageColumns lays out a responsive row of columns inside a page section. Omit fill for equal columns; use left or righ…
|
|
98
|
-
- [Page Footer](src/docs/agent-guidance/page-footer.md) — PageFooter renders the page-level footer with copyright, a version label, and an optional row of links that wrap on n…
|
|
99
|
-
- [Page Tabs](src/docs/agent-guidance/page-tabs.md) — PageTabs renders a page-scoped tab bar with optional panels. The tab strip scrolls horizontally when triggers overflo…
|
|
100
94
|
- [Radii Shadows](src/docs/agent-guidance/radii-shadows.md) — Corners are small and square-biased: the scale runs from 0 to 12px, with semantic aliases for buttons, cards, and inp…
|
|
101
95
|
- [Spacing](src/docs/agent-guidance/spacing.md) — The --p-\* tokens are the canonical spacing scale: each step is a multiple of 4px, from --p-1 (4px) up to --p-24 (96p…
|
|
102
96
|
- [Standalone App Layout](src/docs/agent-guidance/standalone-app-layout.md) — The standalone app layout composes AppShell, Sidebar, and AppShellMainContent into the full chrome for a Sybilion sta…
|
|
@@ -20,6 +20,8 @@ Entry point for `@sybilion/uilib`. Open linked AGENT.md before using a component
|
|
|
20
20
|
- [Chart](src/components/ui/Chart/AGENT.md) — ChartContainer wraps Recharts charts with the library’s theming, mapping a ChartConfig of labels and colours onto CSS…
|
|
21
21
|
- [ChartAreaInteractive](src/components/ui/ChartAreaInteractive/AGENT.md) — ChartAreaInteractive is the full chart shell for time series data, combining an area chart with a time range selector…
|
|
22
22
|
- [Chat](src/components/ui/Chat/AGENT.md) — ChatChrome is the complete chat shell: message list, prompt composer, empty state, and optional preset bubbles. Drive…
|
|
23
|
+
- [ChatChrome](src/components/ui/Chat/ChatChrome/AGENT.md) — ChatChrome is the complete chat shell: message list, prompt composer, empty state, and optional preset bubbles. It su…
|
|
24
|
+
- [ChatSheet](src/components/ui/Chat/ChatSheet/AGENT.md) — ChatSheet portals the chat panel into the shell chat slot; the consumer supplies a trigger element wherever it fits t…
|
|
23
25
|
- [Checkbox](src/components/ui/Checkbox/AGENT.md) — Checkbox is a binary control for selecting or deselecting an option. Pair it with a Label linked via htmlFor so the t…
|
|
24
26
|
- [Chip](src/components/ui/Chip/AGENT.md) — Chips are compact capsules for filters, status labels, version tags, and quantitative delta indicators. Use the defau…
|
|
25
27
|
- [Confirm](src/components/ui/Confirm/AGENT.md) — Confirm is a focused confirmation dialog built on Dialog, with a title, body, and paired confirm and cancel actions. …
|
|
@@ -50,6 +52,7 @@ Entry point for `@sybilion/uilib`. Open linked AGENT.md before using a component
|
|
|
50
52
|
- [NavUserHeader](src/components/ui/NavUserHeader/AGENT.md) — NavUserHeader shows the signed-in user with their name, email, and avatar, and opens a dropdown menu containing custo…
|
|
51
53
|
- [Notifications](src/components/ui/Notifications/AGENT.md) — Toast stack for transient feedback — warning, danger, and loading states. Mount `NotificationsProvider` once near the…
|
|
52
54
|
- [NumberControl](src/components/ui/NumberControl/AGENT.md) — NumberControl is a numeric stepper with minus and plus buttons for adjusting a value within a bounded range. Configur…
|
|
55
|
+
- [PageEmptyCanvas](src/components/ui/Page/PageEmptyCanvas/AGENT.md) — PageEmptyCanvas renders a centered empty state with a `title`, a `hint` (string or ReactNode), and an optional `child…
|
|
53
56
|
- [Progress](src/components/ui/Progress/AGENT.md) — Progress is a horizontal bar that communicates how much of a process has completed. Pass a value between 0 and 100 to…
|
|
54
57
|
- [PullQuote](src/components/ui/PullQuote/AGENT.md) — PullQuote presents an editorial quote with a 2px accent rule on the left, display-face body text, and a small Manrope…
|
|
55
58
|
- [RadioGroup](src/components/ui/RadioGroup/AGENT.md) — RadioGroup is a single-choice control for selecting one option from a short list. Pair each RadioGroupItem with a Lab…
|
|
@@ -85,18 +88,9 @@ Entry point for `@sybilion/uilib`. Open linked AGENT.md before using a component
|
|
|
85
88
|
|
|
86
89
|
## Foundations
|
|
87
90
|
|
|
88
|
-
- [Chat Attachments Dropzone](src/docs/agent-guidance/chat-attachments-dropzone.md) — ChatChrome supports a file dropzone: users drag text, Office, or PDF files onto the chat panel and the parsed content…
|
|
89
|
-
- [Chat Composer Prefill](src/docs/agent-guidance/chat-composer-prefill.md) — The chat composer can be prefilled without auto-sending: pass promptPrefill to ChatChrome, call ChatSheetActions.open…
|
|
90
|
-
- [Chat Sheet](src/docs/agent-guidance/chat-sheet.md) — ChatSheet places the chat panel behind a trigger in the page header and portals it into the shell chat slot, matching…
|
|
91
|
-
- [Chat Slash Commands](src/docs/agent-guidance/chat-slash-commands.md) — The chat composer supports a slash command palette built on TipTap mentions: typing / at the start of a line or after…
|
|
92
|
-
- [Chat User Csv Attachment](src/docs/agent-guidance/chat-user-csv-attachment.md) — User messages can carry downloadable text file attachments via userTextFileAttachments: the bubble shows the message …
|
|
93
91
|
- [Colors](src/docs/agent-guidance/colors.md) — Colour is defined as a set of core ramps (--sb-cyan/purple/red/green/yellow/gray/slate) plus semantic tokens that map…
|
|
94
92
|
- [Icons](src/docs/agent-guidance/icons.md) — Icons come from the lucide-react package and are drawn at a 1.5px stroke (--icon-stroke). Use the --icon-size-\* toke…
|
|
95
93
|
- [Motion](src/docs/agent-guidance/motion.md) — Motion is quick and purposeful. Use --ease-standard for elements entering or changing state, --ease-exit for elements…
|
|
96
|
-
- [Page](src/docs/agent-guidance/page.md) — PageContent and PageContentSection are the structural building blocks of a page body. PageContent wraps the whole bod…
|
|
97
|
-
- [Page Columns](src/docs/agent-guidance/page-columns.md) — PageColumns lays out a responsive row of columns inside a page section. Omit fill for equal columns; use left or righ…
|
|
98
|
-
- [Page Footer](src/docs/agent-guidance/page-footer.md) — PageFooter renders the page-level footer with copyright, a version label, and an optional row of links that wrap on n…
|
|
99
|
-
- [Page Tabs](src/docs/agent-guidance/page-tabs.md) — PageTabs renders a page-scoped tab bar with optional panels. The tab strip scrolls horizontally when triggers overflo…
|
|
100
94
|
- [Radii Shadows](src/docs/agent-guidance/radii-shadows.md) — Corners are small and square-biased: the scale runs from 0 to 12px, with semantic aliases for buttons, cards, and inp…
|
|
101
95
|
- [Spacing](src/docs/agent-guidance/spacing.md) — The --p-\* tokens are the canonical spacing scale: each step is a multiple of 4px, from --p-1 (4px) up to --p-24 (96p…
|
|
102
96
|
- [Standalone App Layout](src/docs/agent-guidance/standalone-app-layout.md) — The standalone app layout composes AppShell, Sidebar, and AppShellMainContent into the full chrome for a Sybilion sta…
|
|
@@ -20,6 +20,9 @@ function VimeoEmbed({ videoId, videoHash, gifMode = false, playButtonColor, clas
|
|
|
20
20
|
const playerRef = useRef(null);
|
|
21
21
|
const [isPlaying, setIsPlaying] = useState(false);
|
|
22
22
|
const [isPlayerReady, setIsPlayerReady] = useState(false);
|
|
23
|
+
// Intrinsic video aspect ratio (width / height) reported by the Vimeo SDK.
|
|
24
|
+
// Null until the player reports it; falls back to the CSS default meanwhile.
|
|
25
|
+
const [aspectRatio, setAspectRatio] = useState(null);
|
|
23
26
|
const parsed = parseVimeoUrl(videoId);
|
|
24
27
|
const id = parsed.id;
|
|
25
28
|
const hash = videoHash ?? parsed.hash;
|
|
@@ -31,6 +34,7 @@ function VimeoEmbed({ videoId, videoHash, gifMode = false, playButtonColor, clas
|
|
|
31
34
|
const embedUrl = `https://player.vimeo.com/video/${id}?${baseParams}&${gifParams}${hashParam}`;
|
|
32
35
|
// Cleanup player when id/hash changes
|
|
33
36
|
useEffect(() => {
|
|
37
|
+
setAspectRatio(null);
|
|
34
38
|
if (playerRef.current) {
|
|
35
39
|
playerRef.current
|
|
36
40
|
.destroy()
|
|
@@ -67,6 +71,17 @@ function VimeoEmbed({ videoId, videoHash, gifMode = false, playButtonColor, clas
|
|
|
67
71
|
.ready()
|
|
68
72
|
.then(() => {
|
|
69
73
|
setIsPlayerReady(true);
|
|
74
|
+
// Read the video's intrinsic dimensions so the container can adopt
|
|
75
|
+
// the exact aspect ratio — eliminates letterbox stripes from the
|
|
76
|
+
// hardcoded box ratio mismatching the source video.
|
|
77
|
+
Promise.all([player.getVideoWidth(), player.getVideoHeight()])
|
|
78
|
+
.then(([w, h]) => {
|
|
79
|
+
if (w > 0 && h > 0)
|
|
80
|
+
setAspectRatio(w / h);
|
|
81
|
+
})
|
|
82
|
+
.catch(() => {
|
|
83
|
+
// Ignore dimension errors; CSS fallback ratio stays in effect
|
|
84
|
+
});
|
|
70
85
|
// Listen to SDK events
|
|
71
86
|
player.on('play', () => setIsPlaying(true));
|
|
72
87
|
player.on('pause', () => setIsPlaying(false));
|
|
@@ -131,7 +146,7 @@ function VimeoEmbed({ videoId, videoHash, gifMode = false, playButtonColor, clas
|
|
|
131
146
|
observer.disconnect();
|
|
132
147
|
};
|
|
133
148
|
}, [play, pause]);
|
|
134
|
-
return (jsxs("div", { ref: containerRef, className: cn(S.root, className, isPlaying && S.isPlaying), ...props, children: [jsx("iframe", { ref: iframeRef, src: embedUrl, className: S.iframe, allow: "autoplay; fullscreen; picture-in-picture; encrypted-media", allowFullScreen: true, title: "Vimeo video player", onLoad: handleIframeLoad }), !gifMode && (jsx("button", { type: "button", className: S.playButton, onClick: play, "aria-label": "Play video", children: jsx("svg", { className: S.playIcon, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: jsx("path", { d: "M8 5v14l11-7z", fill: "currentColor" }) }) }))] }));
|
|
149
|
+
return (jsxs("div", { ref: containerRef, className: cn(S.root, className, isPlaying && S.isPlaying), style: aspectRatio ? { aspectRatio: String(aspectRatio) } : undefined, ...props, children: [jsx("iframe", { ref: iframeRef, src: embedUrl, className: S.iframe, allow: "autoplay; fullscreen; picture-in-picture; encrypted-media", allowFullScreen: true, title: "Vimeo video player", onLoad: handleIframeLoad }), !gifMode && (jsx("button", { type: "button", className: S.playButton, onClick: play, "aria-label": "Play video", children: jsx("svg", { className: S.playIcon, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: jsx("path", { d: "M8 5v14l11-7z", fill: "currentColor" }) }) }))] }));
|
|
135
150
|
}
|
|
136
151
|
|
|
137
152
|
export { VimeoEmbed };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styleInject from 'style-inject';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".VimeoEmbed_root__22Izc{align-self:stretch;aspect-ratio:16/9
|
|
3
|
+
var css_248z = ".VimeoEmbed_root__22Izc{align-self:stretch;aspect-ratio:16/9;border-radius:var(--p-5);box-shadow:0 0 0 1px var(--border);flex-shrink:0;height:auto!important;height:0;margin:0;min-width:0;overflow:hidden;padding-bottom:0;position:relative}.VimeoEmbed_iframe__fuiCR{border:none;border-radius:var(--p-5);display:block;height:100%;left:0;margin:0;opacity:.5;padding:0;position:absolute;top:0;transition:opacity .5s ease;width:100%;z-index:1}.VimeoEmbed_isPlaying__IU81- .VimeoEmbed_iframe__fuiCR{opacity:1}.VimeoEmbed_playButton__2T-Wn{align-items:center;background:var(--background-alpha-500);border:none;box-shadow:0 2px 16px var(--page-color);cursor:pointer;display:flex;height:100%;justify-content:center;position:absolute;transition:all .2s ease;width:100%;z-index:3}.VimeoEmbed_playButton__2T-Wn:hover{background:transparent}.VimeoEmbed_isPlaying__IU81- .VimeoEmbed_playButton__2T-Wn{opacity:0;pointer-events:none}.VimeoEmbed_playIcon__GlKI1{color:var(--brand-color-400);height:var(--p-16);margin-left:4px;width:var(--p-16)}";
|
|
4
4
|
var S = {"root":"VimeoEmbed_root__22Izc","iframe":"VimeoEmbed_iframe__fuiCR","isPlaying":"VimeoEmbed_isPlaying__IU81-","playButton":"VimeoEmbed_playButton__2T-Wn","playIcon":"VimeoEmbed_playIcon__GlKI1"};
|
|
5
5
|
styleInject(css_248z);
|
|
6
6
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function PageEmptyCanvasPage(): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -13,3 +13,21 @@ ChatChrome is the complete chat shell: message list, prompt composer, empty stat
|
|
|
13
13
|
## Do
|
|
14
14
|
|
|
15
15
|
- Provide a meaningful emptyState title and description so the first-run view explains what the assistant can do.
|
|
16
|
+
|
|
17
|
+
## Composer prefill
|
|
18
|
+
|
|
19
|
+
The chat composer can be prefilled without auto-sending: pass `promptPrefill` to `ChatChrome`, call `ChatSheetActions.openNewChatWithPrefill` for the portal sheet, or use a `?prompt=` deep link. Focus lands at the end of the text so users can edit before submitting.
|
|
20
|
+
|
|
21
|
+
### When to use
|
|
22
|
+
|
|
23
|
+
- To seed the composer from a call to action, such as a suggested question on a dataset page.
|
|
24
|
+
- To deep link into the product with a prepared prompt via `?prompt=`.
|
|
25
|
+
- When opening a new chat session that should start from a template prompt.
|
|
26
|
+
|
|
27
|
+
### When not to use
|
|
28
|
+
|
|
29
|
+
- To send a message automatically on behalf of the user; prefill never submits.
|
|
30
|
+
|
|
31
|
+
### Do
|
|
32
|
+
|
|
33
|
+
- Keep prefilled text short and editable; it is a starting point, not a command.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
ChatChrome is the complete chat shell: message list, prompt composer, empty state, and optional preset bubbles. It supports a file dropzone: users drag text, Office, or PDF files onto the chat panel and the parsed content attaches to the prompt until they send. Configure accepted types via `allowedAttachments` and enable PDFs with `allowPdfAttachments`.
|
|
2
|
+
|
|
3
|
+
## When to use
|
|
4
|
+
|
|
5
|
+
- To embed an assistant conversation inline on a page or in a side panel.
|
|
6
|
+
- When you want preset prompt chips scoped to the current dataset or context.
|
|
7
|
+
- When users need to give the assistant file context, such as CSV data or documents.
|
|
8
|
+
- When attached files should be reviewed alongside the typed prompt before sending.
|
|
9
|
+
|
|
10
|
+
## When not to use
|
|
11
|
+
|
|
12
|
+
- For a single one-off prompt without conversation history; a simple form may suffice.
|
|
13
|
+
- For notification or activity feeds; the shell is designed for two-way conversation.
|
|
14
|
+
- For persistent file uploads to storage; use a dedicated upload flow.
|
|
15
|
+
- When only plain text input is expected; omit the attachment props to disable the dropzone.
|
|
16
|
+
|
|
17
|
+
## Do
|
|
18
|
+
|
|
19
|
+
- Provide a meaningful emptyState title and description so the first-run view explains what the assistant can do.
|
|
20
|
+
- Office and PDF parsers load on demand, so the first attachment of those types incurs a one-off load.
|
|
21
|
+
|
|
22
|
+
## Slash commands
|
|
23
|
+
|
|
24
|
+
ChatChrome's composer supports a slash command palette built on TipTap mentions: typing `/` at the start of a line or after a space opens a picker, and choosing an item inserts an inline mention chip. Configure the palette by passing `slashCommandItems` to `ChatChrome` (or to `ChatSheet`, which forwards it to the underlying shell). Each item accepts optional `className` and `color` to style its chip.
|
|
25
|
+
|
|
26
|
+
### When to use
|
|
27
|
+
|
|
28
|
+
- To expose a small set of named commands users can invoke from the composer.
|
|
29
|
+
- When commands should read as part of the message, such as `/generate-report`.
|
|
30
|
+
|
|
31
|
+
### When not to use
|
|
32
|
+
|
|
33
|
+
- For long or hierarchical command sets; the palette works best with a handful of items.
|
|
34
|
+
- For primary actions that deserve a visible button outside the composer.
|
|
35
|
+
|
|
36
|
+
### Do
|
|
37
|
+
|
|
38
|
+
- Keep command ids stable, since plain-text sends fall back to the item id.
|
|
39
|
+
|
|
40
|
+
## User file attachments
|
|
41
|
+
|
|
42
|
+
User messages rendered by ChatChrome can carry downloadable text file attachments via the `userTextFileAttachments` field on a `Message`: the bubble shows the message text with a separate file row beneath it, matching the dashboard preset pattern. Users can download the attached file from that row.
|
|
43
|
+
|
|
44
|
+
### When to use
|
|
45
|
+
|
|
46
|
+
- When a preset or automated flow sends data, such as a CSV extract, on the user's behalf.
|
|
47
|
+
- To keep generated file context visible and retrievable in the conversation history.
|
|
48
|
+
|
|
49
|
+
### When not to use
|
|
50
|
+
|
|
51
|
+
- For user-initiated uploads; use the attachments dropzone instead.
|
|
52
|
+
|
|
53
|
+
### Do
|
|
54
|
+
|
|
55
|
+
- Give each attachment a readable displayName so the file row makes sense out of context.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
ChatSheet
|
|
1
|
+
ChatSheet portals the chat panel into the shell chat slot; the consumer supplies a trigger element wherever it fits the page layout (commonly the page header actions area, but not required). Presets, slash commands, and the empty state are passed through to the underlying chat shell.
|
|
2
2
|
|
|
3
3
|
## When to use
|
|
4
4
|
|
|
5
|
-
- When chat is a secondary tool on the page and should open on demand from the
|
|
5
|
+
- When chat is a secondary tool on the page and should open on demand from a trigger you place in the layout.
|
|
6
6
|
- To reuse one assistant entry point across pages with page-scoped presets.
|
|
7
7
|
|
|
8
8
|
## When not to use
|
|
@@ -20,6 +20,8 @@ Global tokens (host app `:root`, e.g. `standalone-global.css`): `--page-width`,
|
|
|
20
20
|
|
|
21
21
|
## PageTabs — rules and patterns
|
|
22
22
|
|
|
23
|
+
Use `PageTabs` to divide a page into a few parallel views that share the same context. The tab strip scrolls horizontally (via `PageXScroll`) when triggers overflow the container; an outline variant exists for muted surfaces.
|
|
24
|
+
|
|
23
25
|
**NEVER** place `PageTabs` inside `PageContentSection`. Tabs manage their own horizontal inset via `PageXScroll` / `tabsListProps.withPaddings`.
|
|
24
26
|
|
|
25
27
|
### Unified (tabs + panels inside PageContent)
|
|
@@ -118,7 +120,7 @@ In-section title block (`title`, `description`, `actions`). Use **inside** `Page
|
|
|
118
120
|
|
|
119
121
|
### PageEmptyCanvas
|
|
120
122
|
|
|
121
|
-
Centered empty state: `title`, `hint`, optional `children` (e.g. CTA button).
|
|
123
|
+
Centered empty state: `title`, `hint`, optional `children` (e.g. CTA button). Place directly in `PageContent` (typically a `PageContentSection`); see `PageEmptyCanvas/AGENT.md`.
|
|
122
124
|
|
|
123
125
|
### GridLayout
|
|
124
126
|
|
|
@@ -132,13 +134,17 @@ Use inside sections for grouped content; see package `AGENT.md` on those compone
|
|
|
132
134
|
|
|
133
135
|
Not part of the per-route skeleton but part of host app wiring:
|
|
134
136
|
|
|
135
|
-
- **AppShell** / **AppShellMainContent** — sidebar + main column + header
|
|
137
|
+
- **AppShell** / **AppShellMainContent** — sidebar + main column + `header` / `footer` slots. Standalone apps pre-wire the page footer in `AppLayout`; route pages do not compose footer primitives.
|
|
136
138
|
- **PageScroll** — scroll root for the main column.
|
|
137
139
|
- **SybilionAppHeader** — workspace app switcher + user menu (lives in header slot, not inside `PageContent`).
|
|
138
140
|
|
|
139
141
|
## Anti-patterns
|
|
140
142
|
|
|
141
143
|
- `PageTabs` inside `PageContentSection`.
|
|
144
|
+
- `PageTabs` nested inside another `PageTabs`.
|
|
145
|
+
- `PageTabs` for sequential flow steps — use a wizard or stepper pattern instead.
|
|
146
|
+
- `PageContentSection` nested inside another `PageContentSection`.
|
|
147
|
+
- `PageContentSection` used as a generic container inside cards or other components — it is page-level structure, not a wrapper.
|
|
142
148
|
- Inline styles or Tailwind for page structure.
|
|
143
149
|
- Second `PageHeader` nested in content.
|
|
144
150
|
- `PageContent` without sections for multi-block pages (prefer multiple `PageContentSection`).
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
PageEmptyCanvas renders a centered empty state with a `title`, a `hint` (string or ReactNode), and an optional `children` slot for a CTA. It centers itself, grows to fill remaining height (`flex-grow: 1`, `min-height: 280px`), and caps its width so the empty state stays scannable.
|
|
2
|
+
|
|
3
|
+
## When to use
|
|
4
|
+
|
|
5
|
+
- When a route or view has no data yet and the user should see a clear next step instead of a blank panel.
|
|
6
|
+
- As the primary empty state for a route: place it directly in `PageContent` (typically inside a `PageContentSection`) for empty list, first-run, or no-results views.
|
|
7
|
+
|
|
8
|
+
## When not to use
|
|
9
|
+
|
|
10
|
+
- Inside a `Card`, nested widget, or other small container; PageEmptyCanvas is a page-level surface meant to sit directly in `PageContent`.
|
|
11
|
+
- For error states with recovery actions that need structured layout; build a dedicated section instead.
|
|
12
|
+
|
|
13
|
+
## Do
|
|
14
|
+
|
|
15
|
+
- Place directly inside `PageContent` (in a `PageContentSection`), not inside `Card` or extra centered flex wrappers — it centers itself.
|
|
16
|
+
- Pass a concise `title` and a `hint` that tells the user what to do next.
|
|
17
|
+
- Put the primary action (e.g. a `Button`) in `children` so it sits below the hint.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
margin 0
|
|
7
7
|
padding-bottom 0
|
|
8
8
|
|
|
9
|
-
aspect-ratio 16 / 9
|
|
9
|
+
aspect-ratio 16 / 9
|
|
10
10
|
overflow hidden
|
|
11
11
|
border-radius var(--p-5)
|
|
12
12
|
|
|
@@ -30,8 +30,6 @@
|
|
|
30
30
|
opacity .5
|
|
31
31
|
transition opacity 0.5s ease
|
|
32
32
|
|
|
33
|
-
transform scale(1.01) // fix rounded border cut off issue
|
|
34
|
-
|
|
35
33
|
.isPlaying &
|
|
36
34
|
opacity 1
|
|
37
35
|
|
|
@@ -32,6 +32,9 @@ function VimeoEmbed({
|
|
|
32
32
|
const playerRef = useRef<Player | null>(null);
|
|
33
33
|
const [isPlaying, setIsPlaying] = useState(false);
|
|
34
34
|
const [isPlayerReady, setIsPlayerReady] = useState(false);
|
|
35
|
+
// Intrinsic video aspect ratio (width / height) reported by the Vimeo SDK.
|
|
36
|
+
// Null until the player reports it; falls back to the CSS default meanwhile.
|
|
37
|
+
const [aspectRatio, setAspectRatio] = useState<number | null>(null);
|
|
35
38
|
|
|
36
39
|
const parsed = parseVimeoUrl(videoId);
|
|
37
40
|
const id = parsed.id;
|
|
@@ -46,6 +49,7 @@ function VimeoEmbed({
|
|
|
46
49
|
|
|
47
50
|
// Cleanup player when id/hash changes
|
|
48
51
|
useEffect(() => {
|
|
52
|
+
setAspectRatio(null);
|
|
49
53
|
if (playerRef.current) {
|
|
50
54
|
playerRef.current
|
|
51
55
|
.destroy()
|
|
@@ -87,6 +91,17 @@ function VimeoEmbed({
|
|
|
87
91
|
.then(() => {
|
|
88
92
|
setIsPlayerReady(true);
|
|
89
93
|
|
|
94
|
+
// Read the video's intrinsic dimensions so the container can adopt
|
|
95
|
+
// the exact aspect ratio — eliminates letterbox stripes from the
|
|
96
|
+
// hardcoded box ratio mismatching the source video.
|
|
97
|
+
Promise.all([player.getVideoWidth(), player.getVideoHeight()])
|
|
98
|
+
.then(([w, h]) => {
|
|
99
|
+
if (w > 0 && h > 0) setAspectRatio(w / h);
|
|
100
|
+
})
|
|
101
|
+
.catch(() => {
|
|
102
|
+
// Ignore dimension errors; CSS fallback ratio stays in effect
|
|
103
|
+
});
|
|
104
|
+
|
|
90
105
|
// Listen to SDK events
|
|
91
106
|
player.on('play', () => setIsPlaying(true));
|
|
92
107
|
player.on('pause', () => setIsPlaying(false));
|
|
@@ -156,6 +171,7 @@ function VimeoEmbed({
|
|
|
156
171
|
<div
|
|
157
172
|
ref={containerRef}
|
|
158
173
|
className={cn(S.root, className, isPlaying && S.isPlaying)}
|
|
174
|
+
style={aspectRatio ? { aspectRatio: String(aspectRatio) } : undefined}
|
|
159
175
|
{...props}
|
|
160
176
|
>
|
|
161
177
|
<iframe
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
MessageRole,
|
|
8
8
|
TEXT_ATTACHMENT_ACCEPT_PARTS,
|
|
9
9
|
} from '#uilib/components/ui/Chat';
|
|
10
|
+
import chatAttachmentsDropzoneGuidance from '#uilib/components/ui/Chat/ChatChrome/AGENT.md';
|
|
10
11
|
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
11
|
-
import chatAttachmentsDropzoneGuidance from '#uilib/docs/agent-guidance/chat-attachments-dropzone.md';
|
|
12
12
|
import { ScrollRef } from '@homecode/ui';
|
|
13
13
|
|
|
14
14
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
type Message,
|
|
8
8
|
MessageRole,
|
|
9
9
|
} from '#uilib/components/ui/Chat';
|
|
10
|
+
import chatComposerPrefillGuidance from '#uilib/components/ui/Chat/AGENT.md';
|
|
10
11
|
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
11
|
-
import chatComposerPrefillGuidance from '#uilib/docs/agent-guidance/chat-composer-prefill.md';
|
|
12
12
|
import { ScrollRef } from '@homecode/ui';
|
|
13
13
|
import { MessageSquare } from 'lucide-react';
|
|
14
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SlashCommandItem } from '#uilib/components/ui/Chat';
|
|
2
|
+
import chatSheetGuidance from '#uilib/components/ui/Chat/ChatSheet/AGENT.md';
|
|
2
3
|
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
3
|
-
import chatSheetGuidance from '#uilib/docs/agent-guidance/chat-sheet.md';
|
|
4
4
|
import { MessageSquare } from 'lucide-react';
|
|
5
5
|
|
|
6
6
|
import {
|
|
@@ -28,7 +28,7 @@ export default function ChatSheetPage() {
|
|
|
28
28
|
<AppPageHeader
|
|
29
29
|
breadcrumbs={[{ label: 'Chat' }, { label: 'Chat sheet' }]}
|
|
30
30
|
title="Chat sheet (portal)"
|
|
31
|
-
subheader={`Same integration as the app dataset page: ChatSheet
|
|
31
|
+
subheader={`Same integration pattern as the app dataset page: portal ChatSheet with dataset-scoped presets for "${DOCS_SAMPLE_DATASET_NAME}" (this demo uses header actions for the trigger). Panel portaled into the shell chat slot.`}
|
|
32
32
|
actions={
|
|
33
33
|
<DocsHeaderActions
|
|
34
34
|
scopeId={DOCS_CHAT_SHEET_SCOPE_ID}
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
MessageRole,
|
|
8
8
|
type SlashCommandItem,
|
|
9
9
|
} from '#uilib/components/ui/Chat';
|
|
10
|
+
import chatSlashCommandsGuidance from '#uilib/components/ui/Chat/ChatChrome/AGENT.md';
|
|
10
11
|
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
11
|
-
import chatSlashCommandsGuidance from '#uilib/docs/agent-guidance/chat-slash-commands.md';
|
|
12
12
|
import { ScrollRef } from '@homecode/ui';
|
|
13
13
|
|
|
14
14
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
type Message,
|
|
7
7
|
MessageRole,
|
|
8
8
|
} from '#uilib/components/ui/Chat';
|
|
9
|
+
import chatUserCsvAttachmentGuidance from '#uilib/components/ui/Chat/ChatChrome/AGENT.md';
|
|
9
10
|
import { PageContentSection } from '#uilib/components/ui/Page';
|
|
10
|
-
import chatUserCsvAttachmentGuidance from '#uilib/docs/agent-guidance/chat-user-csv-attachment.md';
|
|
11
11
|
import { ScrollRef } from '@homecode/ui';
|
|
12
12
|
|
|
13
13
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CSSProperties } from 'react';
|
|
2
2
|
|
|
3
3
|
import { PageColumns, PageContentSection } from '#uilib/components/ui/Page';
|
|
4
|
-
import pageColumnsGuidance from '#uilib/
|
|
4
|
+
import pageColumnsGuidance from '#uilib/components/ui/Page/AGENT.md';
|
|
5
5
|
|
|
6
6
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
7
7
|
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Button } from '#uilib/components/ui/Button';
|
|
2
|
+
import {
|
|
3
|
+
PageContent,
|
|
4
|
+
PageContentSection,
|
|
5
|
+
PageEmptyCanvas,
|
|
6
|
+
} from '#uilib/components/ui/Page';
|
|
7
|
+
import pageEmptyCanvasGuidance from '#uilib/components/ui/Page/PageEmptyCanvas/AGENT.md';
|
|
8
|
+
|
|
9
|
+
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
10
|
+
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
11
|
+
import { DocsHeaderActions } from '../docsHeaderActions';
|
|
12
|
+
|
|
13
|
+
const demoFrameStyle = {
|
|
14
|
+
border: '2px dashed var(--border)',
|
|
15
|
+
borderRadius: 'var(--p-3)',
|
|
16
|
+
minHeight: 320,
|
|
17
|
+
display: 'flex',
|
|
18
|
+
} as const;
|
|
19
|
+
|
|
20
|
+
export default function PageEmptyCanvasPage() {
|
|
21
|
+
return (
|
|
22
|
+
<>
|
|
23
|
+
<AppPageHeader
|
|
24
|
+
breadcrumbs={[{ label: 'PageEmptyCanvas' }]}
|
|
25
|
+
title="PageEmptyCanvas"
|
|
26
|
+
subheader="Centered empty state with title, hint, and optional CTA. Use when a route has no data yet."
|
|
27
|
+
actions={<DocsHeaderActions />}
|
|
28
|
+
/>
|
|
29
|
+
<DocsGuidance source={pageEmptyCanvasGuidance} />
|
|
30
|
+
<PageContentSection
|
|
31
|
+
style={{ display: 'flex', flexDirection: 'column', gap: '2rem' }}
|
|
32
|
+
>
|
|
33
|
+
<section>
|
|
34
|
+
<h3>Title and hint</h3>
|
|
35
|
+
<p
|
|
36
|
+
style={{
|
|
37
|
+
marginBottom: '1rem',
|
|
38
|
+
color: 'var(--muted-foreground)',
|
|
39
|
+
}}
|
|
40
|
+
>
|
|
41
|
+
Minimal empty state: a short <code>title</code> plus a{' '}
|
|
42
|
+
<code>hint</code> describing what to do next.
|
|
43
|
+
</p>
|
|
44
|
+
<div style={demoFrameStyle}>
|
|
45
|
+
<PageEmptyCanvas
|
|
46
|
+
title="No alerts yet"
|
|
47
|
+
hint="When a news alert fires, it will appear here."
|
|
48
|
+
/>
|
|
49
|
+
</div>
|
|
50
|
+
</section>
|
|
51
|
+
|
|
52
|
+
<section>
|
|
53
|
+
<h3>Extended example</h3>
|
|
54
|
+
<p
|
|
55
|
+
style={{
|
|
56
|
+
marginBottom: '1rem',
|
|
57
|
+
color: 'var(--muted-foreground)',
|
|
58
|
+
}}
|
|
59
|
+
>
|
|
60
|
+
Real-world placement: render directly under <code>PageContent</code>
|
|
61
|
+
; the canvas centers and grows itself.
|
|
62
|
+
</p>
|
|
63
|
+
<div style={{ ...demoFrameStyle, minHeight: 360 }}>
|
|
64
|
+
<PageContent variant="clean">
|
|
65
|
+
<PageEmptyCanvas
|
|
66
|
+
title="This workspace is empty"
|
|
67
|
+
hint="Connect a data source to populate your dashboard with drivers and forecasts."
|
|
68
|
+
>
|
|
69
|
+
<Button type="button" variant="default">
|
|
70
|
+
Connect data source
|
|
71
|
+
</Button>
|
|
72
|
+
<a
|
|
73
|
+
href="https://sybilion.com"
|
|
74
|
+
target="_blank"
|
|
75
|
+
rel="noopener noreferrer"
|
|
76
|
+
>
|
|
77
|
+
Learn how to connect a data source
|
|
78
|
+
</a>
|
|
79
|
+
</PageEmptyCanvas>
|
|
80
|
+
</PageContent>
|
|
81
|
+
</div>
|
|
82
|
+
</section>
|
|
83
|
+
</PageContentSection>
|
|
84
|
+
</>
|
|
85
|
+
);
|
|
86
|
+
}
|
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
} from '#uilib/components/ui/Page';
|
|
9
9
|
import type { PageFooterLinkItem } from '#uilib/components/ui/Page/PageFooter/PageFooter';
|
|
10
10
|
import { Switch } from '#uilib/components/ui/Switch';
|
|
11
|
-
import pageFooterGuidance from '#uilib/docs/agent-guidance/page-footer.md';
|
|
12
11
|
import { GlobeIcon, Hash, MailIcon, MessageCircle } from 'lucide-react';
|
|
13
12
|
|
|
14
13
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
@@ -16,6 +15,26 @@ import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
|
16
15
|
import { DocsHeaderActions } from '../docsHeaderActions';
|
|
17
16
|
import S from './PageFooterPage.styl';
|
|
18
17
|
|
|
18
|
+
/** Human-maintainer docs only — not in agent glossary (shell-wired via AppLayout). */
|
|
19
|
+
const PAGE_FOOTER_GUIDANCE = `PageFooter renders the page-level footer with copyright, a version label, and an optional row of links that wrap on narrow viewports. Links accept an icon and label and open external destinations.
|
|
20
|
+
|
|
21
|
+
**Shell-only.** Standalone apps wire this in \`AppLayout\` via \`AppShellMainContent footer={…}\`; agents composing route pages do not import or render PageFooter.
|
|
22
|
+
|
|
23
|
+
## When to use
|
|
24
|
+
|
|
25
|
+
- At the bottom of an application shell to show copyright, version, and support links.
|
|
26
|
+
- When you need a consistent set of external links, such as website, email, or community channels.
|
|
27
|
+
|
|
28
|
+
## When not to use
|
|
29
|
+
|
|
30
|
+
- For page actions or navigation within the app; keep those in the header or sidebar.
|
|
31
|
+
- Inside individual sections or cards; the footer belongs to the page shell.
|
|
32
|
+
|
|
33
|
+
## Do
|
|
34
|
+
|
|
35
|
+
- Keep the link list short so it remains scannable when it wraps on mobile.
|
|
36
|
+
`;
|
|
37
|
+
|
|
19
38
|
const DEMO_LINKS: PageFooterLinkItem[] = [
|
|
20
39
|
{
|
|
21
40
|
id: 'site',
|
|
@@ -70,7 +89,7 @@ export default function PageFooterPage() {
|
|
|
70
89
|
subheader="Copyright + optional link row with gap and wrapping."
|
|
71
90
|
actions={<DocsHeaderActions />}
|
|
72
91
|
/>
|
|
73
|
-
<DocsGuidance source={
|
|
92
|
+
<DocsGuidance source={PAGE_FOOTER_GUIDANCE} />
|
|
74
93
|
<PageContent>
|
|
75
94
|
<PageContentSection title="With links prop">
|
|
76
95
|
<div
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PageContent, PageContentSection } from '#uilib/components/ui/Page';
|
|
2
|
-
import pageGuidance from '#uilib/
|
|
2
|
+
import pageGuidance from '#uilib/components/ui/Page/AGENT.md';
|
|
3
3
|
|
|
4
4
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
5
5
|
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PageContentSection, PageTabs } from '#uilib/components/ui/Page';
|
|
2
|
-
import pageTabsGuidance from '#uilib/
|
|
2
|
+
import pageTabsGuidance from '#uilib/components/ui/Page/AGENT.md';
|
|
3
3
|
|
|
4
4
|
import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
|
|
5
5
|
import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
|
package/src/docs/registry.ts
CHANGED
|
@@ -428,6 +428,12 @@ export const DOC_REGISTRY: DocEntry[] = [
|
|
|
428
428
|
section: 'Layout',
|
|
429
429
|
load: () => import('./pages/PageColumnsPage'),
|
|
430
430
|
},
|
|
431
|
+
{
|
|
432
|
+
slug: 'page-empty-canvas',
|
|
433
|
+
title: 'PageEmptyCanvas',
|
|
434
|
+
section: 'Layout',
|
|
435
|
+
load: () => import('./pages/PageEmptyCanvasPage'),
|
|
436
|
+
},
|
|
431
437
|
{
|
|
432
438
|
slug: 'page-footer',
|
|
433
439
|
title: 'PageFooter',
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
ChatChrome supports a file dropzone: users drag text, Office, or PDF files onto the chat panel and the parsed content attaches to the prompt until they send. Configure accepted types via allowedAttachments and enable PDFs with allowPdfAttachments.
|
|
2
|
-
|
|
3
|
-
## When to use
|
|
4
|
-
|
|
5
|
-
- When users need to give the assistant file context, such as CSV data or documents.
|
|
6
|
-
- When attached files should be reviewed alongside the typed prompt before sending.
|
|
7
|
-
|
|
8
|
-
## When not to use
|
|
9
|
-
|
|
10
|
-
- For persistent file uploads to storage; use a dedicated upload flow.
|
|
11
|
-
- When only plain text input is expected; omit the attachment props to disable the dropzone.
|
|
12
|
-
|
|
13
|
-
## Do
|
|
14
|
-
|
|
15
|
-
- Office and PDF parsers load on demand, so the first attachment of those types incurs a one-off load.
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
The chat composer can be prefilled without auto-sending: pass promptPrefill to ChatChrome, call ChatSheetActions.openNewChatWithPrefill for the portal sheet, or use a ?prompt= deep link. Focus lands at the end of the text so users can edit before submitting.
|
|
2
|
-
|
|
3
|
-
## When to use
|
|
4
|
-
|
|
5
|
-
- To seed the composer from a call to action, such as a suggested question on a dataset page.
|
|
6
|
-
- To deep link into the product with a prepared prompt via ?prompt=.
|
|
7
|
-
- When opening a new chat session that should start from a template prompt.
|
|
8
|
-
|
|
9
|
-
## When not to use
|
|
10
|
-
|
|
11
|
-
- To send a message automatically on behalf of the user; prefill never submits.
|
|
12
|
-
|
|
13
|
-
## Do
|
|
14
|
-
|
|
15
|
-
- Keep prefilled text short and editable; it is a starting point, not a command.
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
The chat composer supports a slash command palette built on TipTap mentions: typing / at the start of a line or after a space opens a picker, and choosing an item inserts an inline mention chip. Supply items through slashCommandItems; optional className and color style each chip.
|
|
2
|
-
|
|
3
|
-
## When to use
|
|
4
|
-
|
|
5
|
-
- To expose a small set of named commands users can invoke from the composer.
|
|
6
|
-
- When commands should read as part of the message, such as /generate-report.
|
|
7
|
-
|
|
8
|
-
## When not to use
|
|
9
|
-
|
|
10
|
-
- For long or hierarchical command sets; the palette works best with a handful of items.
|
|
11
|
-
- For primary actions that deserve a visible button outside the composer.
|
|
12
|
-
|
|
13
|
-
## Do
|
|
14
|
-
|
|
15
|
-
- Keep command ids stable, since plain-text sends fall back to the item id.
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
User messages can carry downloadable text file attachments via userTextFileAttachments: the bubble shows the message text with a separate file row beneath it, matching the dashboard preset pattern. Users can download the attached file from that row.
|
|
2
|
-
|
|
3
|
-
## When to use
|
|
4
|
-
|
|
5
|
-
- When a preset or automated flow sends data, such as a CSV extract, on the user’s behalf.
|
|
6
|
-
- To keep generated file context visible and retrievable in the conversation history.
|
|
7
|
-
|
|
8
|
-
## When not to use
|
|
9
|
-
|
|
10
|
-
- For user-initiated uploads; use the attachments dropzone instead.
|
|
11
|
-
|
|
12
|
-
## Do
|
|
13
|
-
|
|
14
|
-
- Give each attachment a readable displayName so the file row makes sense out of context.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
PageColumns lays out a responsive row of columns inside a page section. Omit fill for equal columns; use left or right for main-plus-aside layouts on wide viewports.
|
|
2
|
-
|
|
3
|
-
## When to use
|
|
4
|
-
|
|
5
|
-
- To place two or more content blocks side by side within a PageContentSection.
|
|
6
|
-
- For main-plus-aside layouts where one column should grow and the other stays at a fixed width.
|
|
7
|
-
- For 3- or 4-column equal dashboards (metrics rows, panel groups) without fill.
|
|
8
|
-
|
|
9
|
-
## When not to use
|
|
10
|
-
|
|
11
|
-
- For card or tile grids; use GridLayout instead.
|
|
12
|
-
- For arbitrary flex layouts inside a component; PageColumns is a page-structure primitive.
|
|
13
|
-
|
|
14
|
-
## Do
|
|
15
|
-
|
|
16
|
-
- For 3 or 4 equal columns, omit fill (default); do not use left/right.
|
|
17
|
-
- Use fill=
|
|
18
|
-
- or fill=
|
|
19
|
-
- to keep a sidebar column at the default fixed width on wide screens (2 columns only).
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
PageFooter renders the page-level footer with copyright, a version label, and an optional row of links that wrap on narrow viewports. Links accept an icon and label and open external destinations.
|
|
2
|
-
|
|
3
|
-
## When to use
|
|
4
|
-
|
|
5
|
-
- At the bottom of an application shell to show copyright, version, and support links.
|
|
6
|
-
- When you need a consistent set of external links, such as website, email, or community channels.
|
|
7
|
-
|
|
8
|
-
## When not to use
|
|
9
|
-
|
|
10
|
-
- For page actions or navigation within the app; keep those in the header or sidebar.
|
|
11
|
-
- Inside individual sections or cards; the footer belongs to the page shell.
|
|
12
|
-
|
|
13
|
-
## Do
|
|
14
|
-
|
|
15
|
-
- Keep the link list short so it remains scannable when it wraps on mobile.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
PageTabs renders a page-scoped tab bar with optional panels. The tab strip scrolls horizontally when triggers overflow the container, and an outline variant is available for muted surfaces.
|
|
2
|
-
|
|
3
|
-
## When to use
|
|
4
|
-
|
|
5
|
-
- To divide a page into a few parallel views that share the same context.
|
|
6
|
-
- When the tab row may overflow on narrow viewports and needs built-in horizontal scrolling.
|
|
7
|
-
|
|
8
|
-
## When not to use
|
|
9
|
-
|
|
10
|
-
- Inside a PageContentSection; PageTabs is a page-structure primitive and must sit alongside sections.
|
|
11
|
-
- For sequential steps in a flow; use a wizard or stepper pattern instead.
|
|
12
|
-
|
|
13
|
-
## Do
|
|
14
|
-
|
|
15
|
-
- Wrap each tab’s content in its own PageContentSection so padding stays consistent.
|
|
16
|
-
|
|
17
|
-
## Don't
|
|
18
|
-
|
|
19
|
-
- Don’t nest PageTabs inside another PageTabs or a PageContentSection.
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
PageContent and PageContentSection are the structural building blocks of a page body. PageContent wraps the whole body and applies the page width cap, while each PageContentSection forms a vertical section that owns the horizontal page padding.
|
|
2
|
-
|
|
3
|
-
## When to use
|
|
4
|
-
|
|
5
|
-
- On every authenticated page, directly below the page header, to structure the body.
|
|
6
|
-
- To split a page into vertical sections with consistent spacing and padding.
|
|
7
|
-
|
|
8
|
-
## When not to use
|
|
9
|
-
|
|
10
|
-
- Inside cards or other components; sections are page-level structure, not generic containers.
|
|
11
|
-
- Nested within another PageContentSection.
|
|
12
|
-
|
|
13
|
-
## Do
|
|
14
|
-
|
|
15
|
-
- Place all body content inside at least one PageContentSection so page padding stays consistent.
|