@sybilion/uilib 1.3.104 → 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.
- package/dist/agent-glossary/content-prompt.generated.ts +323 -0
- package/dist/agent-glossary/content.generated.ts +136 -63
- package/dist/agent-glossary/content.index.md +14 -0
- package/dist/agent-glossary/content.md +135 -63
- package/dist/agent-glossary/content.prompt.md +322 -0
- package/dist/agent-glossary/workspace.generated.ts +100 -269
- package/dist/agent-glossary/workspace.index.md +100 -0
- package/dist/agent-glossary/workspace.md +100 -269
- package/dist/esm/components/ui/Chat/ChatMessage/AgentMessageContent.helpers.js +34 -0
- package/dist/esm/components/ui/InteractiveContent/InteractiveContent.styl.js +1 -1
- package/dist/esm/components/ui/Page/PageColumns/PageColumns.js +2 -2
- package/dist/esm/components/ui/Page/PageColumns/PageColumns.styl.js +2 -2
- package/dist/esm/types/src/components/ui/Chart/Chart.example.d.ts +1 -0
- package/dist/esm/types/src/components/ui/Page/PageColumns/PageColumns.d.ts +10 -3
- package/dist/esm/types/src/docs/agent-guidance/agent-md-utils.d.ts +10 -0
- package/dist/esm/types/src/docs/components/DocsGuidance/DocsGuidance.d.ts +3 -12
- package/package.json +1 -1
- package/src/components/ui/AnalysesSelector/AGENT.md +16 -0
- package/src/components/ui/AnalysisLineIcon/AGENT.md +11 -0
- package/src/components/ui/AppHeader/AGENT.md +16 -0
- package/src/components/ui/Avatar/AGENT.md +15 -0
- package/src/components/ui/Badge/AGENT.md +16 -0
- package/src/components/ui/BarChart/AGENT.md +16 -0
- package/src/components/ui/Breadcrumb/AGENT.md +15 -0
- package/src/components/ui/Button/AGENT.md +17 -0
- package/src/components/ui/Card/AGENT.md +16 -0
- package/src/components/ui/Chart/AGENT.md +18 -0
- package/src/components/ui/Chart/Chart.example.tsx +37 -0
- package/src/components/ui/ChartAreaInteractive/AGENT.md +24 -8
- package/src/components/ui/Chat/AGENT.md +15 -0
- package/src/components/ui/Chat/ChatMessage/AgentMessageContent.helpers.test.tsx +22 -1
- package/src/components/ui/Chat/ChatMessage/AgentMessageContent.helpers.tsx +40 -0
- package/src/components/ui/Checkbox/AGENT.md +16 -0
- package/src/components/ui/Chip/AGENT.md +18 -0
- package/src/components/ui/Confirm/AGENT.md +15 -0
- package/src/components/ui/Dialog/AGENT.md +15 -0
- package/src/components/ui/DonutChart/AGENT.md +15 -0
- package/src/components/ui/Drawer/AGENT.md +17 -0
- package/src/components/ui/DropZone/AGENT.md +16 -0
- package/src/components/ui/DropdownMenu/AGENT.md +16 -0
- package/src/components/ui/FileChip/AGENT.md +17 -0
- package/src/components/ui/FlickeringGrid/AGENT.md +15 -0
- package/src/components/ui/Foldable/AGENT.md +16 -0
- package/src/components/ui/GridLayout/AGENT.md +17 -0
- package/src/components/ui/Image/AGENT.md +16 -0
- package/src/components/ui/ImageWithFallback/AGENT.md +15 -0
- package/src/components/ui/Input/AGENT.md +16 -0
- package/src/components/ui/InteractiveContent/AGENT.md +21 -0
- package/src/components/ui/InteractiveContent/InteractiveContent.styl +9 -0
- package/src/components/ui/Kicker/AGENT.md +16 -0
- package/src/components/ui/Label/AGENT.md +15 -0
- package/src/components/ui/LabelWithId/AGENT.md +10 -0
- package/src/components/ui/LabeledInput/AGENT.md +11 -0
- package/src/components/ui/LegacyPlatformLink/AGENT.md +15 -0
- package/src/components/ui/Logo/AGENT.md +15 -0
- package/src/components/ui/MobileAdaptiveSelector/AGENT.md +15 -0
- package/src/components/ui/NavUserHeader/AGENT.md +15 -0
- package/src/components/ui/NumberControl/AGENT.md +15 -0
- package/src/components/ui/Page/AGENT.md +20 -7
- package/src/components/ui/Page/PageColumns/PageColumns.styl +5 -5
- package/src/components/ui/Page/PageColumns/PageColumns.styl.d.ts +3 -3
- package/src/components/ui/Page/PageColumns/PageColumns.tsx +11 -16
- package/src/components/ui/Sheet/AGENT.md +15 -0
- package/src/components/ui/SignalCard/AGENT.md +16 -0
- package/src/components/ui/Switch/AGENT.md +15 -0
- package/src/components/ui/Tooltip/AGENT.md +17 -0
- package/src/components/widgets/DriverMap/AGENT.md +27 -8
- package/src/components/widgets/DriversComparisonChart/AGENT.md +27 -13
- package/src/components/widgets/PerformanceChart/AGENT.md +23 -8
- package/src/declarations.d.ts +5 -0
- package/src/docs/agent-guidance/agent-md-utils.ts +48 -0
- package/src/docs/agent-guidance/chat-attachments-dropzone.md +15 -0
- package/src/docs/agent-guidance/chat-composer-prefill.md +15 -0
- package/src/docs/agent-guidance/chat-sheet.md +14 -0
- package/src/docs/agent-guidance/chat-slash-commands.md +15 -0
- package/src/docs/agent-guidance/chat-user-csv-attachment.md +14 -0
- package/src/docs/agent-guidance/colors.md +10 -0
- package/src/docs/agent-guidance/icons.md +11 -0
- package/src/docs/agent-guidance/lightweight-forecast-chart.md +17 -0
- package/src/docs/agent-guidance/motion.md +10 -0
- package/src/docs/agent-guidance/page-columns.md +19 -0
- package/src/docs/agent-guidance/page-footer.md +15 -0
- package/src/docs/agent-guidance/page-tabs.md +19 -0
- package/src/docs/agent-guidance/page.md +15 -0
- package/src/docs/agent-guidance/progress.md +11 -0
- package/src/docs/agent-guidance/pull-quote.md +15 -0
- package/src/docs/agent-guidance/radii-shadows.md +10 -0
- package/src/docs/agent-guidance/region-coords.md +11 -0
- package/src/docs/agent-guidance/renamer.md +15 -0
- package/src/docs/agent-guidance/select.md +15 -0
- package/src/docs/agent-guidance/separator.md +11 -0
- package/src/docs/agent-guidance/sidebar-datasets-items-grouped.md +11 -0
- package/src/docs/agent-guidance/sidebar.md +15 -0
- package/src/docs/agent-guidance/skeleton.md +16 -0
- package/src/docs/agent-guidance/slider.md +16 -0
- package/src/docs/agent-guidance/smart-text-truncate.md +11 -0
- package/src/docs/agent-guidance/spacing.md +10 -0
- package/src/docs/agent-guidance/sparkline.md +15 -0
- package/src/docs/agent-guidance/standalone-app-layout.md +16 -0
- package/src/docs/agent-guidance/sybilion-auth-layout.md +15 -0
- package/src/docs/agent-guidance/table.md +17 -0
- package/src/docs/agent-guidance/tabs.md +21 -0
- package/src/docs/agent-guidance/text-shimmer.md +11 -0
- package/src/docs/agent-guidance/text-with-defer-tooltip.md +15 -0
- package/src/docs/agent-guidance/time-range-controls.md +15 -0
- package/src/docs/agent-guidance/toggle-group.md +15 -0
- package/src/docs/agent-guidance/toggle.md +15 -0
- package/src/docs/agent-guidance/typography.md +10 -0
- package/src/docs/agent-guidance/vimeo-embed.md +11 -0
- package/src/docs/agent-guidance/world-map.md +11 -0
- package/src/docs/components/DocsGuidance/DocsGuidance.styl +26 -25
- package/src/docs/components/DocsGuidance/DocsGuidance.styl.d.ts +1 -4
- package/src/docs/components/DocsGuidance/DocsGuidance.tsx +9 -44
- package/src/docs/config/webpack.config.js +6 -1
- package/src/docs/pages/AnalysesSelectorPage.tsx +6 -17
- package/src/docs/pages/AnalysisLineIconPage.tsx +2 -11
- package/src/docs/pages/AvatarPage.tsx +2 -14
- package/src/docs/pages/BadgePage.tsx +2 -15
- package/src/docs/pages/BarChartPage.tsx +2 -15
- package/src/docs/pages/BreadcrumbPage.tsx +2 -14
- package/src/docs/pages/ButtonPage.tsx +2 -16
- package/src/docs/pages/CardPage.tsx +5 -18
- package/src/docs/pages/ChartAreaInteractivePage.tsx +2 -15
- package/src/docs/pages/ChartPage.tsx +4 -47
- package/src/docs/pages/ChatAttachmentsDropzonePage.tsx +2 -14
- package/src/docs/pages/ChatComposerPrefillPage.tsx +2 -14
- package/src/docs/pages/ChatPage.tsx +2 -14
- package/src/docs/pages/ChatSheetPage.tsx +2 -13
- package/src/docs/pages/ChatSlashCommandsPage.tsx +2 -14
- package/src/docs/pages/ChatUserCsvAttachmentPage.tsx +2 -13
- package/src/docs/pages/CheckboxPage.tsx +2 -15
- package/src/docs/pages/ChipPage.tsx +2 -17
- package/src/docs/pages/ColorsPage.tsx +2 -10
- package/src/docs/pages/ConfirmPage.tsx +2 -14
- package/src/docs/pages/DialogPage.tsx +2 -14
- package/src/docs/pages/DonutChartPage.tsx +2 -14
- package/src/docs/pages/DrawerPage.tsx +2 -16
- package/src/docs/pages/DriverMapPage.tsx +2 -16
- package/src/docs/pages/DriversComparisonChartPage.tsx +2 -16
- package/src/docs/pages/DropZonePage.tsx +2 -15
- package/src/docs/pages/DropdownMenuPage.tsx +2 -15
- package/src/docs/pages/FileChipPage.tsx +2 -16
- package/src/docs/pages/FlickeringGridPage.tsx +2 -14
- package/src/docs/pages/FoldablePage.tsx +2 -15
- package/src/docs/pages/GridLayoutPage.tsx +2 -15
- package/src/docs/pages/IconsPage.tsx +2 -11
- package/src/docs/pages/ImagePage.tsx +2 -15
- package/src/docs/pages/ImageWithFallbackPage.tsx +2 -14
- package/src/docs/pages/IncludeHiddenInYScalePage.tsx +2 -13
- package/src/docs/pages/InputPage.tsx +2 -15
- package/src/docs/pages/InteractiveContentPage.tsx +91 -18
- package/src/docs/pages/KickerPage.tsx +2 -15
- package/src/docs/pages/LabelPage.tsx +2 -14
- package/src/docs/pages/LabelWithIdPage.tsx +2 -10
- package/src/docs/pages/LabeledInputPage.tsx +2 -11
- package/src/docs/pages/LegacyPlatformLinkPage.tsx +2 -14
- package/src/docs/pages/LightweightChartPage.tsx +2 -16
- package/src/docs/pages/LogoPage.tsx +2 -14
- package/src/docs/pages/MobileAdaptiveSelectorPage.tsx +2 -14
- package/src/docs/pages/MotionPage.tsx +2 -10
- package/src/docs/pages/NavUserHeaderPage.tsx +2 -14
- package/src/docs/pages/NumberControlPage.tsx +2 -14
- package/src/docs/pages/PageColumnsPage.tsx +40 -17
- package/src/docs/pages/PageFooterPage.tsx +2 -14
- package/src/docs/pages/PagePage.tsx +2 -14
- package/src/docs/pages/PageTabsPage.tsx +2 -17
- package/src/docs/pages/PerformanceChartPage.tsx +2 -14
- package/src/docs/pages/ProgressPage.tsx +2 -11
- package/src/docs/pages/PullQuotePage.tsx +2 -14
- package/src/docs/pages/RadiiShadowsPage.tsx +2 -10
- package/src/docs/pages/RegionCoordsPage.tsx +2 -11
- package/src/docs/pages/RenamerPage.tsx +2 -14
- package/src/docs/pages/SelectPage.tsx +2 -14
- package/src/docs/pages/SeparatorPage.tsx +2 -11
- package/src/docs/pages/SheetPage.tsx +2 -14
- package/src/docs/pages/SidebarDatasetsItemsGroupedPage.tsx +2 -11
- package/src/docs/pages/SidebarPage.tsx +2 -14
- package/src/docs/pages/SignalCardPage.tsx +2 -15
- package/src/docs/pages/SkeletonPage.tsx +2 -15
- package/src/docs/pages/SliderPage.tsx +2 -15
- package/src/docs/pages/SmartTextTruncatePage.tsx +2 -11
- package/src/docs/pages/SpacingPage.tsx +2 -10
- package/src/docs/pages/SparklinePage.tsx +2 -14
- package/src/docs/pages/StandaloneAppLayoutPage/StandaloneAppLayoutPage.tsx +2 -15
- package/src/docs/pages/SwitchPage.tsx +2 -14
- package/src/docs/pages/SybilionAuthLayoutPage.tsx +2 -14
- package/src/docs/pages/TablePage.tsx +2 -15
- package/src/docs/pages/TabsPage.tsx +2 -19
- package/src/docs/pages/TextShimmerPage.tsx +2 -11
- package/src/docs/pages/TextWithDeferTooltipPage.tsx +2 -14
- package/src/docs/pages/TimeRangeControlsPage.tsx +2 -14
- package/src/docs/pages/ToggleGroupPage.tsx +2 -14
- package/src/docs/pages/TogglePage.tsx +2 -12
- package/src/docs/pages/TooltipPage.tsx +2 -16
- package/src/docs/pages/TypographyPage.tsx +2 -10
- package/src/docs/pages/VimeoEmbedPage.tsx +2 -11
- package/src/docs/pages/WorldMapPage.tsx +2 -11
- package/src/components/widgets/AGENT.md +0 -21
|
@@ -1,269 +1,100 @@
|
|
|
1
|
-
Sybilion
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
-
|
|
84
|
-
-
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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…
|
|
@@ -26,6 +26,34 @@ const injectHTMLTags = (content) => {
|
|
|
26
26
|
length: matches[0].length,
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
+
const injectHTMLCodeTags = (content) => {
|
|
30
|
+
const regex = /<(code)\s*>([\s\S]*?)<\/\1\s*>/i;
|
|
31
|
+
const matches = content.match(regex);
|
|
32
|
+
if (!matches)
|
|
33
|
+
return null;
|
|
34
|
+
if (isInsideHtmlListOrTable(content, matches.index)) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
elem: jsx("code", { children: matches[2] }),
|
|
39
|
+
index: matches.index,
|
|
40
|
+
length: matches[0].length,
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
const injectBacktickCode = (content) => {
|
|
44
|
+
const regex = /`([^`\n]+?)`/;
|
|
45
|
+
const matches = content.match(regex);
|
|
46
|
+
if (!matches)
|
|
47
|
+
return null;
|
|
48
|
+
if (isInsideHtmlListOrTable(content, matches.index)) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
elem: jsx("code", { children: matches[1] }),
|
|
53
|
+
index: matches.index,
|
|
54
|
+
length: matches[0].length,
|
|
55
|
+
};
|
|
56
|
+
};
|
|
29
57
|
const injectBold = (content) => {
|
|
30
58
|
const regex = /\*\*([^*]+?)\*\*/;
|
|
31
59
|
const matches = content.match(regex);
|
|
@@ -296,6 +324,8 @@ const runFormattingPipeline = (text, injectors) => {
|
|
|
296
324
|
};
|
|
297
325
|
const linkLabelInjectors = [
|
|
298
326
|
injectHTMLTags,
|
|
327
|
+
injectHTMLCodeTags,
|
|
328
|
+
injectBacktickCode,
|
|
299
329
|
injectBold,
|
|
300
330
|
injectItalic,
|
|
301
331
|
injectNewlines,
|
|
@@ -427,6 +457,8 @@ const applyFormatting = (text) => runFormattingPipeline(text, [
|
|
|
427
457
|
injectAnchor,
|
|
428
458
|
injectMarkdownLink,
|
|
429
459
|
injectHTMLTags,
|
|
460
|
+
injectHTMLCodeTags,
|
|
461
|
+
injectBacktickCode,
|
|
430
462
|
injectBullet,
|
|
431
463
|
injectBold,
|
|
432
464
|
injectItalic,
|
|
@@ -437,6 +469,8 @@ const applyFormattingInline = (text) => runFormattingPipeline(text, [
|
|
|
437
469
|
injectAnchor,
|
|
438
470
|
injectMarkdownLink,
|
|
439
471
|
injectHTMLTags,
|
|
472
|
+
injectHTMLCodeTags,
|
|
473
|
+
injectBacktickCode,
|
|
440
474
|
injectBold,
|
|
441
475
|
injectItalic,
|
|
442
476
|
injectAutolinkUrl,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styleInject from 'style-inject';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".InteractiveContent_root__FHnlY{box-sizing:border-box;display:inline-block;max-width:100%;min-width:0;overflow-wrap:anywhere;word-break:break-word}.InteractiveContent_root__FHnlY strong{font-weight:600}.InteractiveContent_root__FHnlY em{font-style:italic}.InteractiveContent_textLink__Ubh4i{color:var(--sb-green-600);text-decoration:underline;text-underline-offset:2px}.InteractiveContent_textLink__Ubh4i:hover{color:var(--sb-green-700)}.dark .InteractiveContent_textLink__Ubh4i{color:var(--sb-green-400)}.dark .InteractiveContent_textLink__Ubh4i:hover{color:var(--sb-green-300)}.InteractiveContent_autolinkUrl__W0tQH{align-items:center;border-radius:var(--p-2);box-sizing:border-box;color:var(--link-color);display:inline-flex;font-size:var(--text-xs);gap:6px;line-height:1.4;margin:0 1px;max-width:100%;padding:2px 8px 2px 6px;position:relative;text-decoration:none;vertical-align:middle}.InteractiveContent_autolinkUrl__W0tQH:before{background-color:var(--link-color);border-radius:inherit;content:\"\";display:inline-block;height:100%;left:0;opacity:.1;position:absolute;top:0;width:100%}.InteractiveContent_autolinkUrl__W0tQH:hover:before{opacity:.2}.InteractiveContent_autolinkUrlIcon__QoqlQ{flex-shrink:0}.InteractiveContent_autolinkUrlLabel__CcJOG{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";
|
|
3
|
+
var css_248z = ".InteractiveContent_root__FHnlY{box-sizing:border-box;display:inline-block;max-width:100%;min-width:0;overflow-wrap:anywhere;word-break:break-word}.InteractiveContent_root__FHnlY strong{font-weight:600}.InteractiveContent_root__FHnlY em{font-style:italic}.InteractiveContent_root__FHnlY code{background-color:var(--background);border-radius:var(--p-1);box-shadow:0 0 1px var(--foreground);color:var(--foreground);font-family:ui-monospace,SF Mono,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.875em;padding:.2em .35em}.InteractiveContent_textLink__Ubh4i{color:var(--sb-green-600);text-decoration:underline;text-underline-offset:2px}.InteractiveContent_textLink__Ubh4i:hover{color:var(--sb-green-700)}.dark .InteractiveContent_textLink__Ubh4i{color:var(--sb-green-400)}.dark .InteractiveContent_textLink__Ubh4i:hover{color:var(--sb-green-300)}.InteractiveContent_autolinkUrl__W0tQH{align-items:center;border-radius:var(--p-2);box-sizing:border-box;color:var(--link-color);display:inline-flex;font-size:var(--text-xs);gap:6px;line-height:1.4;margin:0 1px;max-width:100%;padding:2px 8px 2px 6px;position:relative;text-decoration:none;vertical-align:middle}.InteractiveContent_autolinkUrl__W0tQH:before{background-color:var(--link-color);border-radius:inherit;content:\"\";display:inline-block;height:100%;left:0;opacity:.1;position:absolute;top:0;width:100%}.InteractiveContent_autolinkUrl__W0tQH:hover:before{opacity:.2}.InteractiveContent_autolinkUrlIcon__QoqlQ{flex-shrink:0}.InteractiveContent_autolinkUrlLabel__CcJOG{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";
|
|
4
4
|
var S = {"root":"InteractiveContent_root__FHnlY","textLink":"InteractiveContent_textLink__Ubh4i","autolinkUrl":"InteractiveContent_autolinkUrl__W0tQH","autolinkUrlIcon":"InteractiveContent_autolinkUrlIcon__QoqlQ","autolinkUrlLabel":"InteractiveContent_autolinkUrlLabel__CcJOG"};
|
|
5
5
|
styleInject(css_248z);
|
|
6
6
|
|
|
@@ -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
|
|
6
|
-
return (jsx("div", { className: cn(S.root,
|
|
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%}}.
|
|
4
|
-
var S = {"root":"PageColumns_root__bokbA","column":"PageColumns_column__rgXYS","
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
}
|
|
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
|
-
/**
|
|
4
|
-
|
|
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({
|
|
5
|
+
export declare function DocsGuidance({ source }: DocsGuidanceProps): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -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.
|