@sybilion/uilib 1.3.105 → 1.4.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.
Files changed (193) hide show
  1. package/dist/agent-glossary/content-prompt.generated.ts +323 -0
  2. package/dist/agent-glossary/content.generated.ts +136 -63
  3. package/dist/agent-glossary/content.index.md +14 -0
  4. package/dist/agent-glossary/content.md +135 -63
  5. package/dist/agent-glossary/content.prompt.md +322 -0
  6. package/dist/agent-glossary/workspace.generated.ts +100 -269
  7. package/dist/agent-glossary/workspace.index.md +100 -0
  8. package/dist/agent-glossary/workspace.md +100 -269
  9. package/dist/esm/components/ui/Page/PageColumns/PageColumns.js +2 -2
  10. package/dist/esm/components/ui/Page/PageColumns/PageColumns.styl.js +2 -2
  11. package/dist/esm/types/src/components/ui/Chart/Chart.example.d.ts +1 -0
  12. package/dist/esm/types/src/components/ui/Page/PageColumns/PageColumns.d.ts +10 -3
  13. package/dist/esm/types/src/docs/agent-guidance/agent-md-utils.d.ts +10 -0
  14. package/dist/esm/types/src/docs/components/DocsGuidance/DocsGuidance.d.ts +3 -12
  15. package/package.json +1 -1
  16. package/src/components/ui/AnalysesSelector/AGENT.md +16 -0
  17. package/src/components/ui/AnalysisLineIcon/AGENT.md +11 -0
  18. package/src/components/ui/AppHeader/AGENT.md +16 -0
  19. package/src/components/ui/Avatar/AGENT.md +15 -0
  20. package/src/components/ui/Badge/AGENT.md +16 -0
  21. package/src/components/ui/BarChart/AGENT.md +16 -0
  22. package/src/components/ui/Breadcrumb/AGENT.md +15 -0
  23. package/src/components/ui/Button/AGENT.md +17 -0
  24. package/src/components/ui/Card/AGENT.md +16 -0
  25. package/src/components/ui/Chart/AGENT.md +18 -0
  26. package/src/components/ui/Chart/Chart.example.tsx +37 -0
  27. package/src/components/ui/ChartAreaInteractive/AGENT.md +24 -8
  28. package/src/components/ui/Chat/AGENT.md +15 -0
  29. package/src/components/ui/Checkbox/AGENT.md +16 -0
  30. package/src/components/ui/Chip/AGENT.md +18 -0
  31. package/src/components/ui/Confirm/AGENT.md +15 -0
  32. package/src/components/ui/Dialog/AGENT.md +15 -0
  33. package/src/components/ui/DonutChart/AGENT.md +15 -0
  34. package/src/components/ui/Drawer/AGENT.md +17 -0
  35. package/src/components/ui/DropZone/AGENT.md +16 -0
  36. package/src/components/ui/DropdownMenu/AGENT.md +16 -0
  37. package/src/components/ui/FileChip/AGENT.md +17 -0
  38. package/src/components/ui/FlickeringGrid/AGENT.md +15 -0
  39. package/src/components/ui/Foldable/AGENT.md +16 -0
  40. package/src/components/ui/GridLayout/AGENT.md +17 -0
  41. package/src/components/ui/Image/AGENT.md +16 -0
  42. package/src/components/ui/ImageWithFallback/AGENT.md +15 -0
  43. package/src/components/ui/Input/AGENT.md +16 -0
  44. package/src/components/ui/InteractiveContent/AGENT.md +21 -0
  45. package/src/components/ui/Kicker/AGENT.md +16 -0
  46. package/src/components/ui/Label/AGENT.md +15 -0
  47. package/src/components/ui/LabelWithId/AGENT.md +10 -0
  48. package/src/components/ui/LabeledInput/AGENT.md +11 -0
  49. package/src/components/ui/LegacyPlatformLink/AGENT.md +15 -0
  50. package/src/components/ui/Logo/AGENT.md +15 -0
  51. package/src/components/ui/MobileAdaptiveSelector/AGENT.md +15 -0
  52. package/src/components/ui/NavUserHeader/AGENT.md +15 -0
  53. package/src/components/ui/NumberControl/AGENT.md +15 -0
  54. package/src/components/ui/Page/AGENT.md +20 -7
  55. package/src/components/ui/Page/PageColumns/PageColumns.styl +5 -5
  56. package/src/components/ui/Page/PageColumns/PageColumns.styl.d.ts +3 -3
  57. package/src/components/ui/Page/PageColumns/PageColumns.tsx +11 -16
  58. package/src/components/ui/Sheet/AGENT.md +15 -0
  59. package/src/components/ui/SignalCard/AGENT.md +16 -0
  60. package/src/components/ui/Switch/AGENT.md +15 -0
  61. package/src/components/ui/Tooltip/AGENT.md +17 -0
  62. package/src/components/widgets/DriverMap/AGENT.md +27 -8
  63. package/src/components/widgets/DriversComparisonChart/AGENT.md +27 -13
  64. package/src/components/widgets/PerformanceChart/AGENT.md +23 -8
  65. package/src/declarations.d.ts +5 -0
  66. package/src/docs/agent-guidance/agent-md-utils.ts +48 -0
  67. package/src/docs/agent-guidance/chat-attachments-dropzone.md +15 -0
  68. package/src/docs/agent-guidance/chat-composer-prefill.md +15 -0
  69. package/src/docs/agent-guidance/chat-sheet.md +14 -0
  70. package/src/docs/agent-guidance/chat-slash-commands.md +15 -0
  71. package/src/docs/agent-guidance/chat-user-csv-attachment.md +14 -0
  72. package/src/docs/agent-guidance/colors.md +10 -0
  73. package/src/docs/agent-guidance/icons.md +11 -0
  74. package/src/docs/agent-guidance/lightweight-forecast-chart.md +17 -0
  75. package/src/docs/agent-guidance/motion.md +10 -0
  76. package/src/docs/agent-guidance/page-columns.md +19 -0
  77. package/src/docs/agent-guidance/page-footer.md +15 -0
  78. package/src/docs/agent-guidance/page-tabs.md +19 -0
  79. package/src/docs/agent-guidance/page.md +15 -0
  80. package/src/docs/agent-guidance/progress.md +11 -0
  81. package/src/docs/agent-guidance/pull-quote.md +15 -0
  82. package/src/docs/agent-guidance/radii-shadows.md +10 -0
  83. package/src/docs/agent-guidance/region-coords.md +11 -0
  84. package/src/docs/agent-guidance/renamer.md +15 -0
  85. package/src/docs/agent-guidance/select.md +15 -0
  86. package/src/docs/agent-guidance/separator.md +11 -0
  87. package/src/docs/agent-guidance/sidebar-datasets-items-grouped.md +11 -0
  88. package/src/docs/agent-guidance/sidebar.md +15 -0
  89. package/src/docs/agent-guidance/skeleton.md +16 -0
  90. package/src/docs/agent-guidance/slider.md +16 -0
  91. package/src/docs/agent-guidance/smart-text-truncate.md +11 -0
  92. package/src/docs/agent-guidance/spacing.md +10 -0
  93. package/src/docs/agent-guidance/sparkline.md +15 -0
  94. package/src/docs/agent-guidance/standalone-app-layout.md +16 -0
  95. package/src/docs/agent-guidance/sybilion-auth-layout.md +15 -0
  96. package/src/docs/agent-guidance/table.md +17 -0
  97. package/src/docs/agent-guidance/tabs.md +21 -0
  98. package/src/docs/agent-guidance/text-shimmer.md +11 -0
  99. package/src/docs/agent-guidance/text-with-defer-tooltip.md +15 -0
  100. package/src/docs/agent-guidance/time-range-controls.md +15 -0
  101. package/src/docs/agent-guidance/toggle-group.md +15 -0
  102. package/src/docs/agent-guidance/toggle.md +15 -0
  103. package/src/docs/agent-guidance/typography.md +10 -0
  104. package/src/docs/agent-guidance/vimeo-embed.md +11 -0
  105. package/src/docs/agent-guidance/world-map.md +11 -0
  106. package/src/docs/components/DocsGuidance/DocsGuidance.styl +26 -25
  107. package/src/docs/components/DocsGuidance/DocsGuidance.styl.d.ts +1 -4
  108. package/src/docs/components/DocsGuidance/DocsGuidance.tsx +9 -44
  109. package/src/docs/config/webpack.config.js +6 -1
  110. package/src/docs/pages/AnalysesSelectorPage.tsx +6 -17
  111. package/src/docs/pages/AnalysisLineIconPage.tsx +2 -11
  112. package/src/docs/pages/AvatarPage.tsx +2 -14
  113. package/src/docs/pages/BadgePage.tsx +2 -15
  114. package/src/docs/pages/BarChartPage.tsx +2 -15
  115. package/src/docs/pages/BreadcrumbPage.tsx +2 -14
  116. package/src/docs/pages/ButtonPage.tsx +2 -16
  117. package/src/docs/pages/CardPage.tsx +5 -18
  118. package/src/docs/pages/ChartAreaInteractivePage.tsx +2 -15
  119. package/src/docs/pages/ChartPage.tsx +4 -47
  120. package/src/docs/pages/ChatAttachmentsDropzonePage.tsx +2 -14
  121. package/src/docs/pages/ChatComposerPrefillPage.tsx +2 -14
  122. package/src/docs/pages/ChatPage.tsx +2 -14
  123. package/src/docs/pages/ChatSheetPage.tsx +2 -13
  124. package/src/docs/pages/ChatSlashCommandsPage.tsx +2 -14
  125. package/src/docs/pages/ChatUserCsvAttachmentPage.tsx +2 -13
  126. package/src/docs/pages/CheckboxPage.tsx +2 -15
  127. package/src/docs/pages/ChipPage.tsx +2 -17
  128. package/src/docs/pages/ColorsPage.tsx +2 -10
  129. package/src/docs/pages/ConfirmPage.tsx +2 -14
  130. package/src/docs/pages/DialogPage.tsx +2 -14
  131. package/src/docs/pages/DonutChartPage.tsx +2 -14
  132. package/src/docs/pages/DrawerPage.tsx +2 -16
  133. package/src/docs/pages/DriverMapPage.tsx +2 -16
  134. package/src/docs/pages/DriversComparisonChartPage.tsx +2 -16
  135. package/src/docs/pages/DropZonePage.tsx +2 -15
  136. package/src/docs/pages/DropdownMenuPage.tsx +2 -15
  137. package/src/docs/pages/FileChipPage.tsx +2 -16
  138. package/src/docs/pages/FlickeringGridPage.tsx +2 -14
  139. package/src/docs/pages/FoldablePage.tsx +2 -15
  140. package/src/docs/pages/GridLayoutPage.tsx +2 -15
  141. package/src/docs/pages/IconsPage.tsx +2 -11
  142. package/src/docs/pages/ImagePage.tsx +2 -15
  143. package/src/docs/pages/ImageWithFallbackPage.tsx +2 -14
  144. package/src/docs/pages/IncludeHiddenInYScalePage.tsx +2 -13
  145. package/src/docs/pages/InputPage.tsx +2 -15
  146. package/src/docs/pages/InteractiveContentPage.tsx +2 -17
  147. package/src/docs/pages/KickerPage.tsx +2 -15
  148. package/src/docs/pages/LabelPage.tsx +2 -14
  149. package/src/docs/pages/LabelWithIdPage.tsx +2 -10
  150. package/src/docs/pages/LabeledInputPage.tsx +2 -11
  151. package/src/docs/pages/LegacyPlatformLinkPage.tsx +2 -14
  152. package/src/docs/pages/LightweightChartPage.tsx +2 -16
  153. package/src/docs/pages/LogoPage.tsx +2 -14
  154. package/src/docs/pages/MobileAdaptiveSelectorPage.tsx +2 -14
  155. package/src/docs/pages/MotionPage.tsx +2 -10
  156. package/src/docs/pages/NavUserHeaderPage.tsx +2 -14
  157. package/src/docs/pages/NumberControlPage.tsx +2 -14
  158. package/src/docs/pages/PageColumnsPage.tsx +40 -17
  159. package/src/docs/pages/PageFooterPage.tsx +2 -14
  160. package/src/docs/pages/PagePage.tsx +2 -14
  161. package/src/docs/pages/PageTabsPage.tsx +2 -17
  162. package/src/docs/pages/PerformanceChartPage.tsx +2 -14
  163. package/src/docs/pages/ProgressPage.tsx +2 -11
  164. package/src/docs/pages/PullQuotePage.tsx +2 -14
  165. package/src/docs/pages/RadiiShadowsPage.tsx +2 -10
  166. package/src/docs/pages/RegionCoordsPage.tsx +2 -11
  167. package/src/docs/pages/RenamerPage.tsx +2 -14
  168. package/src/docs/pages/SelectPage.tsx +2 -14
  169. package/src/docs/pages/SeparatorPage.tsx +2 -11
  170. package/src/docs/pages/SheetPage.tsx +2 -14
  171. package/src/docs/pages/SidebarDatasetsItemsGroupedPage.tsx +2 -11
  172. package/src/docs/pages/SidebarPage.tsx +2 -14
  173. package/src/docs/pages/SignalCardPage.tsx +2 -15
  174. package/src/docs/pages/SkeletonPage.tsx +2 -15
  175. package/src/docs/pages/SliderPage.tsx +2 -15
  176. package/src/docs/pages/SmartTextTruncatePage.tsx +2 -11
  177. package/src/docs/pages/SpacingPage.tsx +2 -10
  178. package/src/docs/pages/SparklinePage.tsx +2 -14
  179. package/src/docs/pages/StandaloneAppLayoutPage/StandaloneAppLayoutPage.tsx +2 -15
  180. package/src/docs/pages/SwitchPage.tsx +2 -14
  181. package/src/docs/pages/SybilionAuthLayoutPage.tsx +2 -14
  182. package/src/docs/pages/TablePage.tsx +2 -15
  183. package/src/docs/pages/TabsPage.tsx +2 -19
  184. package/src/docs/pages/TextShimmerPage.tsx +2 -11
  185. package/src/docs/pages/TextWithDeferTooltipPage.tsx +2 -14
  186. package/src/docs/pages/TimeRangeControlsPage.tsx +2 -14
  187. package/src/docs/pages/ToggleGroupPage.tsx +2 -14
  188. package/src/docs/pages/TogglePage.tsx +2 -12
  189. package/src/docs/pages/TooltipPage.tsx +2 -16
  190. package/src/docs/pages/TypographyPage.tsx +2 -10
  191. package/src/docs/pages/VimeoEmbedPage.tsx +2 -11
  192. package/src/docs/pages/WorldMapPage.tsx +2 -11
  193. package/src/components/widgets/AGENT.md +0 -21
@@ -1,269 +1,100 @@
1
- Sybilion workspace page glossary (workspace profile)
2
-
3
-
4
- # Page layout system
5
-
6
- Sybilion workspace and report surfaces use a small set of **Page** primitives from `@sybilion/uilib`. Agents must compose these instead of inventing layout with inline styles, Tailwind structure classes, or ad-hoc wrappers.
7
-
8
- ## Two modes
9
-
10
- | Mode | When | Shell |
11
- | ------------------ | ------------------------------------------------ | ------------------------------------------------------------------------------------- |
12
- | **workspace-page** | Route inside `AppShell` / scrolled main column | `PageHeader` → `PageContent` → `PageContentSection`(s). Optional `PageTabs`. |
13
- | **content** | Report tiles, json-dashboard, embedded body only | No `PageHeader` / `AppShell` chrome. Map React blocks to dashboard tiles (see below). |
14
-
15
- Do not nest workspace shell components inside **content** mode output.
16
-
17
- ## Mandatory workspace-page skeleton
18
-
19
- ```tsx
20
- <PageHeader title="…" subheader="…" breadcrumbs={[…]} actions={…} />
21
- <PageContent>
22
- <PageContentSection>{/* section A */}</PageContentSection>
23
- <PageContentSection grow={false}>{/* section B */}</PageContentSection>
24
- </PageContent>
25
- ```
26
-
27
- - **PageHeader**: one per route view in the main column; title, optional subheader, breadcrumbs, actions.
28
- - **PageContent**: vertical stack for the body below the header; `variant="clean"` when you need a flatter body (no extra chrome).
29
- - **PageContentSection**: primary vertical band; applies horizontal **page-x-padding** via Stylus (`pageXPadding()`). Use multiple sections to separate logical blocks.
30
-
31
- Global tokens (host app `:root`, e.g. `standalone-global.css`): `--page-width`, `--page-x-padding`, `--page-y-padding`. `PageContent` caps width at `--page-width`.
32
-
33
- ## PageTabs — rules and patterns
34
-
35
- **NEVER** place `PageTabs` inside `PageContentSection`. Tabs manage their own horizontal inset via `PageXScroll` / `tabsListProps.withPaddings`.
36
-
37
- ### Unified (tabs + panels inside PageContent)
38
-
39
- ```tsx
40
- <PageHeader … />
41
- <PageContent>
42
- <PageTabs
43
- items={[
44
- { value: 'a', label: 'Tab A', content: <PageContentSection>…</PageContentSection> },
45
- { value: 'b', label: 'Tab B', content: <PageContentSection>…</PageContentSection> },
46
- ]}
47
- />
48
- </PageContent>
49
- ```
50
-
51
- Tab **panels** use `PageContentSection` so section padding stays correct.
52
-
53
- ### Split (bar-only sibling)
54
-
55
- Use when the tab bar must sit between header and a custom scroll region:
56
-
57
- ```tsx
58
- <PageHeader … />
59
- <PageTabs
60
- items={[
61
- { value: 'a', label: 'Tab A', content: null },
62
- { value: 'b', label: 'Tab B', content: null },
63
- ]}
64
- />
65
- <PageContent>…</PageContent>
66
- ```
67
-
68
- Set `content: null` (or omit) for bar-only items; render panel bodies in `PageContent` yourself.
69
-
70
- ## Spacing ownership
71
-
72
- | Component | Owns horizontal page padding? |
73
- | ---------------------- | --------------------------------------------------------- |
74
- | **PageContentSection** | Yes (`pageXPadding`) |
75
- | **PageTabs** | Via `tabsListProps.withPaddings` + internal `PageXScroll` |
76
- | **PageXScroll** | Reads `--page-x-padding` for inset when used standalone |
77
- | **PageHeader** | Own header inner layout (not `PageContentSection`) |
78
-
79
- Do not duplicate `padding-left/right` on children that already sit in `PageContentSection`.
80
-
81
- ## Styling rules
82
-
83
- - **No** `style={{…}}` for layout or spacing (margins, padding, flex, width, gap).
84
- - **No** Tailwind (or other) utility classes for **structural** layout on page primitives.
85
- - Custom layout CSS only in co-located `ComponentName.styl`, using design tokens (`var(--p-*)`, `var(--page-x-padding)`, `pageXPadding()`, etc.).
86
- - `className` on Page components is for Stylus module classes or state hooks, not one-off pixel tweaks.
87
-
88
- ## Component reference
89
-
90
- ### PageHeader
91
-
92
- Sticky-style page title row: breadcrumbs (optional sidebar trigger in full app), `title`, `subheader`, `actions`. Lives **above** `PageContent`, never inside a section.
93
-
94
- ### PageContent / PageContentSection
95
-
96
- `PageContent`: column flex child, `max-width: var(--page-width)`.
97
- `PageContentSection`: `grow` (default `true`) lets the section absorb remaining height in flex layouts.
98
-
99
- ### PageColumns
100
-
101
- Side-by-side columns with gap. **`fill`** controls which column(s) grow:
102
-
103
- | `fill` | Behavior |
104
- | --------------- | ----------------------------------------------------------------------------------------------- |
105
- | `all` (default) | Every column `flex-grow: 1`, `max-width` unset — use for equal split or fluid grids of columns. |
106
- | `left` | First column grows; others stay at fixed min/max column width. |
107
- | `right` | Last column grows. |
108
-
109
- Pass `columns={[node1, node2, …]}`. On mobile, stacks vertically. Typical pattern: main + aside inside one `PageContentSection`.
110
-
111
- ### PageXScroll
112
-
113
- Horizontal scroll strip; used inside `PageTabs` and anywhere a overflowing row needs page-aligned padding. Props: `size`, `fullWidth`, `innerClassName`, `scrollbarClassName`.
114
-
115
- ### SectionHeader
116
-
117
- In-section title block (`title`, `description`, `actions`). Use **inside** `PageContentSection`, not as a replacement for `PageHeader`.
118
-
119
- ### PageEmptyCanvas
120
-
121
- Centered empty state: `title`, `hint`, optional `children` (e.g. CTA button). Use when a route has no data yet.
122
-
123
- ### GridLayout
124
-
125
- Responsive CSS grid (`repeat(auto-fit, minmax(colWidth, 1fr))`). Use for card/tile dashboards inside a section. Report mapping: dashboard **grid** rows / multi-column tile groups.
126
-
127
- ### Card / Foldable
128
-
129
- Use inside sections for grouped content; see package `AGENT.md` on those components when present. Do not wrap the whole page in Card.
130
-
131
- ## Content mode — React → json-dashboard tiles
132
-
133
- When generating **report** / dashboard specs (not workspace routes), map UI blocks to tiles:
134
-
135
- | React / intent | Dashboard tile / markdown |
136
- | ------------------------------- | ----------------------------------------------------------------- |
137
- | `PageHeader` title text | First `markdown` tile `# Title` or report title field |
138
- | `SectionHeader` `title` | `markdown` with `## …` |
139
- | `SectionHeader` `description` | markdown paragraph under that heading |
140
- | `PageContentSection` block | group of tiles or one markdown section |
141
- | `GridLayout` children | grid row of widget tiles |
142
- | `ChartAreaInteractive` / charts | `dataset_card`, `performance_chart`, etc. (see widget `AGENT.md`) |
143
- | `PageEmptyCanvas` copy | `markdown` explanatory tile |
144
-
145
- See `AGENT.report-only-tiles.md` in the app repo for tiles without a uilib widget.
146
-
147
- ## Shell components (workspace only)
148
-
149
- Not part of the per-route skeleton but part of **workspace-page** host wiring:
150
-
151
- - **AppShell** / **AppShellMainContent** — sidebar + main column + header slot + footer.
152
- - **PageScroll** — scroll root for the main column.
153
- - **SybilionAppHeader** — workspace app switcher + user menu (lives in header slot, not inside `PageContent`).
154
-
155
- ## Anti-patterns
156
-
157
- - `PageTabs` inside `PageContentSection`.
158
- - Inline styles or Tailwind for page structure.
159
- - Second `PageHeader` nested in content.
160
- - `PageContent` without sections for multi-block pages (prefer multiple `PageContentSection`).
161
- - Wrapping data widgets in extra layout divs with hard-coded padding.
162
-
163
- ## Future candidates (not implemented)
164
-
165
- - **PageToolbar** — dedicated action row between header and tabs.
166
- - **PageFullBleed** — edge-to-edge section escape hatch.
167
-
168
- Do not add these locally; extend uilib when product needs them.
169
-
170
- # SidebarDatasetsItemsGrouped
171
-
172
- Renders: expandable sidebar groups of datasets (by target type, regions, or categories).
173
-
174
- Use when: app shell needs grouped dataset navigation.
175
- Not when: in-page or report content (no sidebar slot).
176
-
177
- Host provides:
178
-
179
- - `datasets` list (`SidebarDatasetsItemsGroupedDataset`)
180
- - `groupBy`, `selectedDatasetId`, `onDatasetClick`
181
- - Optional `preItems` / `postItems`, `defaultExpandedGroupNames`
182
-
183
- Report tile: Not used in report tiles.
184
-
185
- Requires: `datasets`; `groupBy`; `onDatasetClick` for navigation.
186
-
187
- Empty/loading: empty `datasets` renders no groups; loading handled by host before pass-in.
188
-
189
- # ChartAreaInteractive
190
-
191
- Renders: time-series chart with historical line, forecast lines, optional pin / quantile-band / threshold overlays.
192
-
193
- Use when: custom forecast UI with overlays or full chart control.
194
- Not when: packaged performance or drivers-comparison views (use PerformanceChart or DriversComparisonChart).
195
-
196
- Host provides:
197
-
198
- - `chartData`, `forecastData` built from API
199
- - `timeRange` / `onTimeRangeChange` or brush-only range
200
- - Optional `mode`: pin | intervals | thresholds + overlay state
201
-
202
- Report tile: `dataset_card` — host loads dataset + analysis; chart inside dashboard card.
203
-
204
- Requires: `chartData`; `forecastData`; `loading`; `toggleLegendSeries` / `ensureAnalysisSeriesVisible` when legend is external.
205
-
206
- Empty/loading: `loading`, `error`; empty data shows chart empty state via host message props.
207
-
208
- # DriverMap
209
-
210
- Renders: world map with regional driver badges, bottom strip for world-level drivers, selection highlight.
211
-
212
- Use when: geographic driver exploration for one analysis.
213
- Not when: driver detail metrics card alone (pair with DriverCard) or normalized series chart (use DriversComparisonChart).
214
-
215
- Host provides:
216
-
217
- - `drivers` as `DriverData[]` from analysis API
218
- - Controlled `selectedDriver` + `setSelectedDriver`
219
- - `isLoading` while fetching drivers
220
-
221
- Report tile: `drivers_map` — tile resolves analysis id, fetches drivers, passes list + selection.
222
-
223
- Requires: `drivers`; `isLoading`; `selectedDriver`; `setSelectedDriver`.
224
-
225
- Empty/loading: `isLoading` shows overlay; empty `drivers` leaves map without badges.
226
-
227
- # PerformanceChart
228
-
229
- Renders: forecast performance on ChartAreaInteractive — per-horizon tab (24m window, MAE/MAPE table) and spaghetti tab (all horizons overlaid).
230
-
231
- Use when: dataset performance tab with horizon selector and error metrics.
232
- Not when: simple forecast card or driver backtests — use ChartAreaInteractive or DriversComparisonChart.
233
-
234
- Host provides:
235
-
236
- - `performanceData` (PerformanceChartPayload) and `historicalData` from performance API
237
- - Optional `forecastData`, `customPerformanceMatrix`, `userSeries` for spaghetti
238
-
239
- Report tile: `performance_chart` — host loads performance payload + dataset series.
240
-
241
- Requires: `performanceData` — model/drift forecasts and metrics; `historicalData` — baseline series; `loading` / `chartLoading` / `performanceDataLoading` — spinners; `runAnalysisHint` / `statusHint` — empty states.
242
-
243
- Empty/loading: loading props show shimmer/spinner; null `performanceData` with `runAnalysisHint` prompts to run analysis.
244
-
245
- # DriversComparisonChart
246
-
247
- Renders: target vs drivers backtests chart with ChartAreaInteractive plus table; row click toggles series visibility.
248
-
249
- Use when: drivers comparison tab with normalized target and driver series from backtests payload.
250
- Not when: geographic map or performance horizons — use DriverMap or PerformanceChart.
251
-
252
- Host provides:
253
-
254
- - `payload`: BacktestsComponentPayload from platform SDK (host fetch per analysis)
255
- - Optional `datasetHistorical` overlay
256
- - `seriesInitKey` when selected analysis changes
257
- - `viewTab` / `onViewTabChange`: `lagged` (calendar-aligned, raw dates) or `overlapped` (driver series shifted backward by parsed lag months)
258
-
259
- View tabs: host should render uilib `Tabs variant="button"` with **Lagged** / **Overlapped** in the toolbar. Chart applies `applyDriversComparisonViewToPayload` internally.
260
-
261
- Report tile: `drivers_comparison_chart` — host loads normalized backtests payload + dataset historical.
262
-
263
- Requires: `payload` — target + driver normalized_series; `loading` / `chartLoading` — spinners; `seriesInitKey` — reset visible series on analysis or view tab change; `runAnalysisHint` / `statusHint` — empty/error text.
264
-
265
- Lag column: **Lagged** shows API `lag` string (may be a range). **Overlapped** shows single `N month(s)` from `parseLagMonthsFromLabel` (range uses max month).
266
-
267
- Historical window: lead-in is anchored to the **lagged** (unshifted) view (`computeDriversComparisonHistoricalWindowFloor`); overlapped tab shifts driver lines backward only — switching tabs does not change historical extent when floor is pinned.
268
-
269
- Empty/loading: loading props shimmer chart; null `payload` with `runAnalysisHint` prompts to run analysis.
1
+ # Sybilion UI glossary (workspace)
2
+
3
+ Entry point for `@sybilion/uilib`. Open linked AGENT.md before using a component.
4
+
5
+ ## Layout
6
+
7
+ - [Page](src/components/ui/Page/AGENT.md) — Sybilion workspace and report surfaces use a small set of **Page** primitives from `@sybilion/uilib`. Agents must com…
8
+
9
+ ## UI
10
+
11
+ - [AnalysesSelector](src/components/ui/AnalysesSelector/AGENT.md) — AnalysesSelector lets users choose which analyses are shown alongside historical data, rendered as an inline row or a…
12
+ - [AnalysisLineIcon](src/components/ui/AnalysisLineIcon/AGENT.md) — AnalysisLineIcon renders a small solid or dashed line marker in a given colour. Use it as a legend swatch so users ca…
13
+ - [AppHeader](src/components/ui/AppHeader/AGENT.md) — The standalone app layout composes AppShell, Sidebar, and AppShellMainContent into the full chrome for a Sybilion sta…
14
+ - [Avatar](src/components/ui/Avatar/AGENT.md) — Avatar displays a user or entity image with an automatic fallback to initials when the image is missing or fails to l…
15
+ - [Badge](src/components/ui/Badge/AGENT.md) — Badges are compact labels that highlight a status, category, or count. Choose a variant that matches the meaning: def…
16
+ - [BarChart](src/components/ui/BarChart/AGENT.md) — BarChart compares values across categories. Provide rows of data, a category key, and a list of series; choose vertic…
17
+ - [Breadcrumb](src/components/ui/Breadcrumb/AGENT.md) — Breadcrumb shows the user’s location within the page hierarchy as an inline trail of links, with the current page ren…
18
+ - [Button](src/components/ui/Button/AGENT.md) — Buttons trigger an action or event, such as submitting a form or confirming a dialog. Choose a variant that matches t…
19
+ - [Card](src/components/ui/Card/AGENT.md) — Card groups related content and actions into a single bounded container with optional header, content, and footer slo…
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
+ - [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
+ - [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
+ - [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
+ - [Chip](src/components/ui/Chip/AGENT.md) — Chips are compact pill-shaped capsules for filters, status pills, version tags, and quantitative delta indicators. Un…
25
+ - [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. …
26
+ - [Dialog](src/components/ui/Dialog/AGENT.md) — Dialog presents content in a modal layer above the page, with a trigger, title, optional subtitle, body content, and …
27
+ - [DonutChart](src/components/ui/DonutChart/AGENT.md) — DonutChart shows how a small number of categories make up a whole. Each datum carries a key, value, and optional labe…
28
+ - [Drawer](src/components/ui/Drawer/AGENT.md) — Drawer is a panel that slides in from the edge of the screen, built on Vaul for touch-friendly drag-to-dismiss behavi…
29
+ - [DropdownMenu](src/components/ui/DropdownMenu/AGENT.md) — DropdownMenu displays a list of actions or options in a floating panel opened from a trigger, typically a button. Gro…
30
+ - [DropZone](src/components/ui/DropZone/AGENT.md) — DropZone is a file upload target that accepts a dragged file or opens the system file picker on click. Restrict accep…
31
+ - [FileChip](src/components/ui/FileChip/AGENT.md) — FileChip is a compact row that represents a file with a format icon, name, and hint text. It supports an onClick hand…
32
+ - [FlickeringGrid](src/components/ui/FlickeringGrid/AGENT.md) — FlickeringGrid is a purely decorative animated grid of squares that flicker at random. Place it behind content in a p…
33
+ - [Foldable](src/components/ui/Foldable/AGENT.md) — Foldable is a collapsible section with a clickable header that shows or hides its content. Pass the header and conten…
34
+ - [GridLayout](src/components/ui/GridLayout/AGENT.md) — GridLayout is a responsive CSS grid that fits as many columns as the container allows, with each cell keeping at leas…
35
+ - [Image](src/components/ui/Image/AGENT.md) — Image is a thin wrapper around the native img element that loads a remote URL and accepts a fallback for when the req…
36
+ - [ImageWithFallback](src/components/ui/ImageWithFallback/AGENT.md) — ImageWithFallback renders an image from a URL and swaps in the provided fallback content when the image fails to load…
37
+ - [Input](src/components/ui/Input/AGENT.md) — Input is the standard single-line text field. Pair it with a Label linked via htmlFor and id, and control the value t…
38
+ - [InteractiveContent](src/components/ui/InteractiveContent/AGENT.md) — InteractiveContent renders assistant-style plain text with inline formatting: bold and italic emphasis, inline code v…
39
+ - [Kicker](src/components/ui/Kicker/AGENT.md) — Kicker is a small eyebrow label rendered above a heading, card, or section. It uses the 12px Manrope label style in s…
40
+ - [Label](src/components/ui/Label/AGENT.md) — Label is the styled form label used across the library. Link it to its control with htmlFor so clicking the label foc…
41
+ - [LabeledInput](src/components/ui/LabeledInput/AGENT.md) — LabeledInput combines a Label and an Input into a single row, wiring the label to the field automatically via the id …
42
+ - [LabelWithId](src/components/ui/LabelWithId/AGENT.md) — LabelWithId renders a text label preceded by a small numeric id badge, giving entities such as analyses a stable, sca…
43
+ - [LegacyPlatformLink](src/components/ui/LegacyPlatformLink/AGENT.md) — LegacyPlatformLink is an anchor that points at the legacy platform, building the destination from the API domain plus…
44
+ - [Logo](src/components/ui/Logo/AGENT.md) — Logo renders the brand mark with an optional wordmark. Choose a size that fits the surrounding chrome and hide the te…
45
+ - [MobileAdaptiveSelector](src/components/ui/MobileAdaptiveSelector/AGENT.md) — MobileAdaptiveSelector presents a single-choice control that renders as a toggle group on desktop and switches to a s…
46
+ - [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…
47
+ - [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…
48
+ - [Sheet](src/components/ui/Sheet/AGENT.md) — Sheet is a slide-over panel built on the Radix dialog primitive. It opens from a screen edge over the current page an…
49
+ - [SignalCard](src/components/ui/SignalCard/AGENT.md) — SignalCard is the product primitive for a single metric: an optional kicker and icon header, a large Manrope figure w…
50
+ - [Switch](src/components/ui/Switch/AGENT.md) — Switch is a binary control for turning a setting on or off. Unlike a checkbox, a switch implies the change takes effe…
51
+ - [Tooltip](src/components/ui/Tooltip/AGENT.md) — Tooltip shows brief, supplementary text when users hover or focus a trigger element. Compose Tooltip, TooltipTrigger,…
52
+
53
+ ## Widgets
54
+
55
+ - [DriverMap](src/components/widgets/DriverMap/AGENT.md) — DriverMap renders a world map with regional driver badges, a bottom strip for world-level drivers, and selection high…
56
+ - [DriversComparisonChart](src/components/widgets/DriversComparisonChart/AGENT.md) — DriversComparisonChart plots a normalized target line against the normalized series of its drivers, with a table of d…
57
+ - [PerformanceChart](src/components/widgets/PerformanceChart/AGENT.md) — PerformanceChart is a widget for evaluating forecast accuracy. It plots per-horizon and spaghetti views of model and …
58
+ - [SidebarDatasetsItemsGrouped](src/components/widgets/SidebarDatasetsItemsGrouped/AGENT.md) — Renders: expandable sidebar groups of datasets (by target type, regions, or categories).
59
+
60
+ ## Foundations
61
+
62
+ - [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…
63
+ - [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…
64
+ - [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…
65
+ - [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…
66
+ - [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 …
67
+ - [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…
68
+ - [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…
69
+ - [Lightweight Forecast Chart](src/docs/agent-guidance/lightweight-forecast-chart.md) — LightweightForecastChart renders historical and forecast time series using TradingView Lightweight Charts, with optio…
70
+ - [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…
71
+ - [Page](src/docs/agent-guidance/page.md) — PageContent and PageContentSection are the structural building blocks of a page body. PageContent wraps the whole bod…
72
+ - [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…
73
+ - [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…
74
+ - [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…
75
+ - [Progress](src/docs/agent-guidance/progress.md) — Progress is a horizontal bar that communicates how much of a process has completed. Pass a value between 0 and 100 to…
76
+ - [Pull Quote](src/docs/agent-guidance/pull-quote.md) — PullQuote presents an editorial quote with a 2px accent rule on the left, display-face body text, and a small Manrope…
77
+ - [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…
78
+ - [Region Coords](src/docs/agent-guidance/region-coords.md) — RegionSelector lets the user pick a named region from a map of geographic coordinates. Pass a record of region names …
79
+ - [Renamer](src/docs/agent-guidance/renamer.md) — Renamer wraps a displayed name with an inline rename affordance: a pencil control switches the text into an editable …
80
+ - [Select](src/docs/agent-guidance/select.md) — Select is a Radix-based dropdown for choosing a single option from a list. Compose it from Select, SelectTrigger, Sel…
81
+ - [Separator](src/docs/agent-guidance/separator.md) — Separator draws a thin horizontal rule that visually divides adjacent content. It is purely presentational and carrie…
82
+ - [Sidebar](src/docs/agent-guidance/sidebar.md) — Sidebar provides the primitives for building application navigation rails: SidebarGroup, SidebarMenu, SidebarMenuItem…
83
+ - [Sidebar Datasets Items Grouped](src/docs/agent-guidance/sidebar-datasets-items-grouped.md) — SidebarDatasetsItemsGrouped renders a dataset list for the application sidebar, organised into collapsible groups wit…
84
+ - [Skeleton](src/docs/agent-guidance/skeleton.md) — Skeleton is a loading placeholder that reserves space for content while it loads. Compose simple shapes — lines and b…
85
+ - [Slider](src/docs/agent-guidance/slider.md) — Slider lets users select a numeric value from a continuous or stepped range by dragging a thumb along a track. Contro…
86
+ - [Smart Text Truncate](src/docs/agent-guidance/smart-text-truncate.md) — SmartTextTruncate shortens a long string in the middle so it fits its container, keeping the end of the string visibl…
87
+ - [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…
88
+ - [Sparkline](src/docs/agent-guidance/sparkline.md) — Sparkline renders a compact line chart from an array of numbers, sized to fit inline alongside text or inside table c…
89
+ - [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…
90
+ - [Sybilion Auth Layout](src/docs/agent-guidance/sybilion-auth-layout.md) — SybilionAuthLayout provides the split-view chrome for authentication routes: a branded hero column beside a form colu…
91
+ - [Table](src/docs/agent-guidance/table.md) — Table is a set of semantic primitives — Table, TableHeader, TableBody, TableRow, TableHead, and TableCell — for prese…
92
+ - [Tabs](src/docs/agent-guidance/tabs.md) — Tabs organise related content into panels that share the same space, with only one panel visible at a time. Three var…
93
+ - [Text Shimmer](src/docs/agent-guidance/text-shimmer.md) — TextShimmer animates a shimmer effect across its text content to signal that an operation is in progress. It keeps th…
94
+ - [Text With Defer Tooltip](src/docs/agent-guidance/text-with-defer-tooltip.md) — TextWithDeferTooltip truncates its text with an ellipsis and shows the full value in a tooltip, but only when the tex…
95
+ - [Time Range Controls](src/docs/agent-guidance/time-range-controls.md) — TimeRangeControls renders a row of preset time range toggles, such as one month or one year, for switching the window…
96
+ - [Toggle](src/docs/agent-guidance/toggle.md) — Toggle is a two-state button that can be pressed or unpressed, typically showing an icon. It suits tool-style options…
97
+ - [Toggle Group](src/docs/agent-guidance/toggle-group.md) — ToggleGroup presents a set of related toggle buttons where, in single mode, exactly one option is active at a time. I…
98
+ - [Typography](src/docs/agent-guidance/typography.md) — The system pairs KMR Apparat for display and headings with Manrope for body copy. Sizes come from the --text-_ scale,…
99
+ - [Vimeo Embed](src/docs/agent-guidance/vimeo-embed.md) — VimeoEmbed renders a responsive Vimeo player from a video ID, handling the iframe markup and aspect ratio for you. Co…
100
+ - [World Map](src/docs/agent-guidance/world-map.md) — WorldMap renders a bundled SVG map of the world, intended as a backdrop for geographic visualisations such as DriverM…
@@ -2,8 +2,8 @@ import { jsx } from 'react/jsx-runtime';
2
2
  import cn from 'classnames';
3
3
  import S from './PageColumns.styl.js';
4
4
 
5
- function PageColumns({ columns, fill = 'all', className, }) {
6
- return (jsx("div", { className: cn(S.root, fill === 'left' && S.fillLeft, fill === 'right' && S.fillRight, fill === 'all' && S.fillAll, className), children: columns.map((column, index) => (jsx("div", { className: cn(S.column), children: column }, index))) }));
5
+ function PageColumns({ columns, fill, className }) {
6
+ return (jsx("div", { className: cn(S.root, S[`fill-${fill || 'all'}`], className), children: columns.map((column, index) => (jsx("div", { className: cn(S.column), children: column }, index))) }));
7
7
  }
8
8
 
9
9
  export { PageColumns };
@@ -1,7 +1,7 @@
1
1
  import styleInject from 'style-inject';
2
2
 
3
- var css_248z = "@media (max-width:768px){:root{--page-x-padding:var(--p-6);--page-y-padding:var(--p-6)}}.PageColumns_root__bokbA{display:flex;gap:var(--p-10);width:100%}.PageColumns_column__rgXYS{flex-shrink:1;max-width:360px;min-width:360px;position:relative}@media (max-width:768px){.PageColumns_root__bokbA{flex-direction:column}.PageColumns_column__rgXYS{max-width:100%;min-width:100%}}.PageColumns_fillAll__0n856 .PageColumns_column__rgXYS,.PageColumns_fillLeft__Gvsse .PageColumns_column__rgXYS:first-child,.PageColumns_fillRight__N3PFQ .PageColumns_column__rgXYS:last-child{flex-grow:1;max-width:none}";
4
- var S = {"root":"PageColumns_root__bokbA","column":"PageColumns_column__rgXYS","fillLeft":"PageColumns_fillLeft__Gvsse","fillRight":"PageColumns_fillRight__N3PFQ","fillAll":"PageColumns_fillAll__0n856"};
3
+ var css_248z = "@media (max-width:768px){:root{--page-x-padding:var(--p-6);--page-y-padding:var(--p-6)}}.PageColumns_root__bokbA{display:flex;gap:var(--p-10);width:100%}.PageColumns_column__rgXYS{flex-shrink:1;max-width:360px;min-width:360px;position:relative}@media (max-width:768px){.PageColumns_root__bokbA{flex-direction:column}.PageColumns_column__rgXYS{max-width:100%;min-width:100%}}.PageColumns_fill-all__bePzl .PageColumns_column__rgXYS,.PageColumns_fill-left__6JuP9 .PageColumns_column__rgXYS:first-child,.PageColumns_fill-right__FLFUt .PageColumns_column__rgXYS:last-child{flex:1 1 0;max-width:none;min-width:0}";
4
+ var S = {"root":"PageColumns_root__bokbA","column":"PageColumns_column__rgXYS","fill-left":"PageColumns_fill-left__6JuP9","fill-right":"PageColumns_fill-right__FLFUt","fill-all":"PageColumns_fill-all__bePzl"};
5
5
  styleInject(css_248z);
6
6
 
7
7
  export { S as default };
@@ -0,0 +1 @@
1
+ export declare function ChartExample(): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,12 @@
1
- export declare function PageColumns({ columns, fill, className, }: {
1
+ type PageColumnsProps = {
2
+ /** Column content nodes. Pass 2–4 siblings for equal splits; 2 only for main+aside. */
2
3
  columns: React.ReactNode[];
3
- fill?: 'left' | 'right' | 'all';
4
+ /**
5
+ * Column growth mode. Omit for 2–4 equal columns (default).
6
+ * `left` / `right` are for **2-column** main+aside only (fixed 360px sidebar).
7
+ */
8
+ fill?: 'left' | 'right';
4
9
  className?: string;
5
- }): import("react/jsx-runtime").JSX.Element;
10
+ };
11
+ export declare function PageColumns({ columns, fill, className }: PageColumnsProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,10 @@
1
+ export type AgentFrontmatter = {
2
+ profiles?: string[];
3
+ summary?: string;
4
+ };
5
+ export declare function parseAgentFrontmatter(raw: string): {
6
+ frontmatter: AgentFrontmatter;
7
+ body: string;
8
+ };
9
+ /** Strip optional YAML frontmatter before rendering in docs. */
10
+ export declare function stripAgentFrontmatter(source: string): string;
@@ -1,14 +1,5 @@
1
- import type { ReactNode } from 'react';
2
1
  export interface DocsGuidanceProps {
3
- /** 1-3 sentence description of what the component is and how to use it. */
4
- overview: ReactNode;
5
- /** Bullet points describing situations where the component fits. */
6
- whenToUse?: ReactNode[];
7
- /** Bullet points describing situations where another pattern fits better. */
8
- whenNotToUse?: ReactNode[];
9
- /** Optional short "do" guidance notes. */
10
- doNotes?: ReactNode[];
11
- /** Optional short "don't" guidance notes. */
12
- dontNotes?: ReactNode[];
2
+ /** Markdown from AGENT.md (frontmatter stripped at render). */
3
+ source: string;
13
4
  }
14
- export declare function DocsGuidance({ overview, whenToUse, whenNotToUse, doNotes, dontNotes, }: DocsGuidanceProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare function DocsGuidance({ source }: DocsGuidanceProps): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sybilion/uilib",
3
- "version": "1.3.105",
3
+ "version": "1.4.0",
4
4
  "description": "Sybilion Design System — React UI components (Webpack + Stylus)",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -0,0 +1,16 @@
1
+ AnalysesSelector lets users choose which analyses are shown alongside historical data, rendered as an inline row or a compact dropdown depending on available space. Each item carries a colour swatch and optional status so users can match selections to chart series.
2
+
3
+ ## When to use
4
+
5
+ - To toggle which analysis series are visible on a chart or comparison view.
6
+ - When users need to compare several analyses against historical data at once.
7
+ - When the selection should collapse into a dropdown in constrained layouts.
8
+
9
+ ## When not to use
10
+
11
+ - To pick a single value from a generic list; use Select instead.
12
+ - To filter tabular data by arbitrary fields; use dedicated filter controls.
13
+
14
+ ## Do
15
+
16
+ - Keep item colours in sync with the corresponding chart series so the mapping stays obvious.
@@ -0,0 +1,11 @@
1
+ AnalysisLineIcon renders a small solid or dashed line marker in a given colour. Use it as a legend swatch so users can match a label to its line on a chart.
2
+
3
+ ## When to use
4
+
5
+ - In chart legends, selectors, or tooltips to identify a series by colour and line style.
6
+ - To distinguish historical series (solid) from forecast series (dashed).
7
+
8
+ ## When not to use
9
+
10
+ - As a generic decorative icon; it only conveys meaning next to a chart.
11
+ - To indicate status or severity; use Badge instead.
@@ -0,0 +1,16 @@
1
+ The standalone app layout composes AppShell, Sidebar, and AppShellMainContent into the full chrome for a Sybilion standalone application: collapsible sidebar, sticky app header, scrollable main column, and page footer. This page embeds a live, layout-only preview; for real wiring, copy the standalone app template and follow its README.
2
+
3
+ ## When to use
4
+
5
+ - When building a new standalone Sybilion app that needs the standard workspace shell.
6
+ - As a reference for how AppShell, Sidebar, PageScroll, and SybilionAppHeader fit together.
7
+ - To verify scrolling, sidebar resizing, and header behaviour before wiring real routes.
8
+
9
+ ## When not to use
10
+
11
+ - For individual pages inside an existing app; use PageHeader, PageContent, and PageContentSection instead.
12
+ - As a nested shell inside another AppShell; an app should have exactly one shell.
13
+
14
+ ## Do
15
+
16
+ - Start from the app template rather than assembling the shell by hand, so auth and SDK wiring come for free.
@@ -0,0 +1,15 @@
1
+ Avatar displays a user or entity image with an automatic fallback to initials when the image is missing or fails to load. Compose it from AvatarImage and AvatarFallback.
2
+
3
+ ## When to use
4
+
5
+ - To represent a person or account in headers, lists, comments, or menus.
6
+ - When an image may be unavailable and a textual fallback is acceptable.
7
+
8
+ ## When not to use
9
+
10
+ - For arbitrary illustrative imagery; use a plain image instead.
11
+ - To convey status on its own; pair it with a Badge or status indicator.
12
+
13
+ ## Do
14
+
15
+ - Always provide an AvatarFallback with one or two initials so the component degrades gracefully.
@@ -0,0 +1,16 @@
1
+ Badges are compact labels that highlight a status, category, or count. Choose a variant that matches the meaning: default or outline for neutral labels, red and green for negative and positive states.
2
+
3
+ ## When to use
4
+
5
+ - To show the status of an item, such as active, failed, or done.
6
+ - To label or categorise content in lists, tables, and cards.
7
+ - To surface short metadata next to a title.
8
+
9
+ ## When not to use
10
+
11
+ - For interactive actions; badges are not clickable, use Button instead.
12
+ - For long descriptive text; keep badge labels to one or two words.
13
+
14
+ ## Do
15
+
16
+ - Use colour variants consistently so a given colour always carries the same meaning across the product.
@@ -0,0 +1,16 @@
1
+ BarChart compares values across categories. Provide rows of data, a category key, and a list of series; choose vertical or horizontal orientation and grouped or stacked mode. Grid, axes, tooltip, and legend follow the shared chart styling.
2
+
3
+ ## When to use
4
+
5
+ - To compare discrete categories such as regions, models, or scenarios.
6
+ - Stacked mode when the per-category total matters as much as the breakdown.
7
+ - Horizontal orientation when category labels are long or there are many categories.
8
+
9
+ ## When not to use
10
+
11
+ - For continuous time series; use ChartAreaInteractive or a line chart instead.
12
+ - For part-to-whole of a single total; use DonutChart.
13
+
14
+ ## Do
15
+
16
+ - Start the value axis at zero so bar lengths stay proportional.
@@ -0,0 +1,15 @@
1
+ Breadcrumb shows the user’s location within the page hierarchy as an inline trail of links, with the current page rendered as plain text. Compose it from BreadcrumbList, BreadcrumbItem, BreadcrumbLink, and BreadcrumbSeparator.
2
+
3
+ ## When to use
4
+
5
+ - On pages nested two or more levels deep, so users can move back up the hierarchy.
6
+ - When users arrive deep in the product from search or a direct link and need orientation.
7
+
8
+ ## When not to use
9
+
10
+ - On top-level pages with no parent; a trail with one item adds noise.
11
+ - As a substitute for primary navigation or a stepper in a multi-step flow.
12
+
13
+ ## Do
14
+
15
+ - Render the current page with BreadcrumbPage rather than a link so it is not clickable.
@@ -0,0 +1,17 @@
1
+ Buttons trigger an action or event, such as submitting a form or confirming a dialog. Choose a variant that matches the weight of the action: default for the primary action, secondary or outline for supporting actions, ghost for low-emphasis actions, and destructive for irreversible ones.
2
+
3
+ ## When to use
4
+
5
+ - To trigger an immediate action, such as saving, submitting, or confirming.
6
+ - To open a dialog, drawer, or other transient surface.
7
+ - As the primary call to action in a form, card, or empty state.
8
+
9
+ ## When not to use
10
+
11
+ - To navigate to another page; use a link or the link variant instead.
12
+ - To switch between mutually exclusive options; use Tabs, Toggle, or ToggleGroup.
13
+
14
+ ## Do
15
+
16
+ - Use one default-variant button per view so the primary action stays clear.
17
+ - Label buttons with a verb that describes the action, such as “Save changes”.