@sybilion/uilib 1.4.13 → 1.4.15
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 +28 -23
- package/dist/agent-glossary/content.generated.ts +28 -23
- package/dist/agent-glossary/content.index.md +1 -1
- package/dist/agent-glossary/content.md +28 -23
- package/dist/agent-glossary/content.prompt.md +28 -23
- package/dist/agent-glossary/workspace.generated.ts +1 -1
- package/dist/agent-glossary/workspace.index.md +1 -1
- package/dist/agent-glossary/workspace.md +1 -1
- package/dist/esm/components/ui/Chat/ChatChrome/ChatChrome.js +28 -3
- package/dist/esm/components/ui/Chat/ChatSheet/useChatPanelChromeModel.js +31 -1
- package/dist/esm/components/ui/DropdownMenu/DropdownMenu.styl.js +2 -2
- package/dist/esm/components/ui/Page/Breadcrumbs/Breadcrumbs.js +28 -1
- package/dist/esm/components/ui/PanelResizeHandle/PanelResizeHandle.js +50 -0
- package/dist/esm/components/ui/Sidebar/Sidebar.styl.js +3 -3
- package/dist/esm/components/ui/Sidebar/SidebarAside.js +36 -0
- package/dist/esm/components/ui/Sidebar/SidebarContent/SidebarContent.js +13 -0
- package/dist/esm/components/ui/Sidebar/SidebarContent/SidebarContent.styl.js +7 -0
- package/dist/esm/components/ui/Sidebar/SidebarFooter/SidebarFooter.js +9 -0
- package/dist/esm/components/ui/Sidebar/SidebarFooter/SidebarFooter.styl.js +7 -0
- package/dist/esm/components/ui/Sidebar/SidebarGroup/SidebarGroup.js +9 -0
- package/dist/esm/components/ui/Sidebar/SidebarGroup/SidebarGroup.styl.js +7 -0
- package/dist/esm/components/ui/Sidebar/SidebarGroupAction/SidebarGroupAction.js +11 -0
- package/dist/esm/components/ui/Sidebar/SidebarGroupAction/SidebarGroupAction.styl.js +7 -0
- package/dist/esm/components/ui/Sidebar/SidebarMenu/SidebarMenu.js +15 -0
- package/dist/esm/components/ui/Sidebar/SidebarMenu/SidebarMenu.styl.js +7 -0
- package/dist/esm/components/ui/Sidebar/SidebarMenuAction/SidebarMenuAction.js +11 -0
- package/dist/esm/components/ui/Sidebar/SidebarMenuAction/SidebarMenuAction.styl.js +7 -0
- package/dist/esm/components/ui/Sidebar/SidebarMenuButton/SidebarMenuButton.js +16 -0
- package/dist/esm/components/ui/Sidebar/SidebarMenuButton/SidebarMenuButton.styl.js +7 -0
- package/dist/esm/components/ui/Sidebar/SidebarMenuSub/SidebarMenuSub.js +12 -0
- package/dist/esm/components/ui/Sidebar/SidebarMenuSub/SidebarMenuSub.styl.js +7 -0
- package/dist/esm/components/ui/Sidebar/SidebarMenuSubButton/SidebarMenuSubButton.js +32 -0
- package/dist/esm/components/ui/Sidebar/SidebarMenuSubButton/SidebarMenuSubButton.styl.js +7 -0
- package/dist/esm/components/ui/Sidebar/SidebarProvider/SidebarProvider.js +314 -0
- package/dist/esm/components/ui/Sidebar/SidebarProvider/SidebarProvider.styl.js +7 -0
- package/dist/esm/components/ui/Sidebar/SidebarRail/SidebarRail.js +11 -0
- package/dist/esm/components/ui/Sidebar/SidebarRail/SidebarRail.styl.js +7 -0
- package/dist/esm/components/ui/Sidebar/SidebarResizeHandle/SidebarResizeHandle.js +26 -0
- package/dist/esm/components/ui/Sidebar/SidebarResizeHandle/SidebarResizeHandle.styl.js +7 -0
- package/dist/esm/components/ui/Sidebar/SidebarSeparator/SidebarSeparator.js +10 -0
- package/dist/esm/components/ui/Sidebar/SidebarSeparator/SidebarSeparator.styl.js +7 -0
- package/dist/esm/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.js +16 -0
- package/dist/esm/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.styl.js +7 -0
- package/dist/esm/components/ui/Sidebar/sidebarConstants.js +7 -0
- package/dist/esm/components/ui/Sidebar/sidebarContext.js +28 -0
- package/dist/esm/components/ui/Sidebar/sidebarUtils.js +41 -0
- package/dist/esm/components/widgets/DriversComparisonChart/DriversComparisonChart.js +26 -5
- package/dist/esm/components/widgets/PerformanceChart/PerformanceTable.js +26 -4
- package/dist/esm/components/widgets/SidebarDatasetsItemsGrouped/SidebarDatasetsItemsGrouped.js +28 -1
- package/dist/esm/index.js +18 -1
- package/dist/esm/types/src/components/ui/PanelResizeHandle/PanelResizeHandle.d.ts +9 -0
- package/dist/esm/types/src/components/ui/Sidebar/Sidebar.d.ts +19 -106
- package/dist/esm/types/src/components/ui/Sidebar/Sidebar.types.d.ts +41 -0
- package/dist/esm/types/src/components/ui/Sidebar/SidebarAside.d.ts +2 -0
- package/dist/esm/types/src/components/ui/Sidebar/SidebarContent/SidebarContent.d.ts +3 -0
- package/dist/esm/types/src/components/ui/Sidebar/SidebarFooter/SidebarFooter.d.ts +2 -0
- package/dist/esm/types/src/components/ui/Sidebar/SidebarGroup/SidebarGroup.d.ts +2 -0
- package/dist/esm/types/src/components/ui/Sidebar/SidebarGroupAction/SidebarGroupAction.d.ts +4 -0
- package/dist/esm/types/src/components/ui/Sidebar/SidebarMenu/SidebarMenu.d.ts +4 -0
- package/dist/esm/types/src/components/ui/Sidebar/SidebarMenuAction/SidebarMenuAction.d.ts +5 -0
- package/dist/esm/types/src/components/ui/Sidebar/SidebarMenuButton/SidebarMenuButton.d.ts +10 -0
- package/dist/esm/types/src/components/ui/Sidebar/SidebarMenuSub/SidebarMenuSub.d.ts +3 -0
- package/dist/esm/types/src/components/ui/Sidebar/SidebarMenuSubButton/SidebarMenuSubButton.d.ts +9 -0
- package/dist/esm/types/src/components/ui/Sidebar/SidebarProvider/SidebarProvider.d.ts +11 -0
- package/dist/esm/types/src/components/ui/Sidebar/SidebarRail/SidebarRail.d.ts +2 -0
- package/dist/esm/types/src/components/ui/Sidebar/SidebarResizeHandle/SidebarResizeHandle.d.ts +4 -0
- package/dist/esm/types/src/components/ui/Sidebar/SidebarSeparator/SidebarSeparator.d.ts +3 -0
- package/dist/esm/types/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.d.ts +3 -0
- package/dist/esm/types/src/components/ui/Sidebar/sidebarConstants.d.ts +5 -0
- package/dist/esm/types/src/components/ui/Sidebar/sidebarContext.d.ts +7 -0
- package/dist/esm/types/src/components/ui/Sidebar/sidebarUtils.d.ts +3 -0
- package/package.json +1 -1
- package/src/components/ui/ChartAreaInteractive/AGENT.md +0 -4
- package/src/components/ui/Chat/ChatChrome/ChatChrome.tsx +5 -2
- package/src/components/ui/DropdownMenu/DropdownMenu.styl +4 -1
- package/src/components/ui/PanelResizeHandle/PanelResizeHandle.tsx +89 -0
- package/src/components/ui/Sidebar/Sidebar.styl +23 -621
- package/src/components/ui/Sidebar/Sidebar.styl.d.ts +0 -33
- package/src/components/ui/Sidebar/Sidebar.tsx +25 -1145
- package/src/components/ui/Sidebar/Sidebar.types.ts +46 -0
- package/src/components/ui/Sidebar/SidebarAside.tsx +92 -0
- package/src/components/ui/Sidebar/SidebarContent/SidebarContent.styl +27 -0
- package/src/components/ui/Sidebar/SidebarContent/SidebarContent.styl.d.ts +7 -0
- package/src/components/ui/Sidebar/SidebarContent/SidebarContent.tsx +29 -0
- package/src/components/ui/Sidebar/SidebarFooter/SidebarFooter.styl +7 -0
- package/src/components/ui/Sidebar/SidebarFooter/SidebarFooter.styl.d.ts +7 -0
- package/src/components/ui/Sidebar/SidebarFooter/SidebarFooter.tsx +15 -0
- package/src/components/ui/Sidebar/SidebarGroup/SidebarGroup.styl +10 -0
- package/src/components/ui/Sidebar/SidebarGroup/SidebarGroup.styl.d.ts +7 -0
- package/src/components/ui/Sidebar/SidebarGroup/SidebarGroup.tsx +15 -0
- package/src/components/ui/Sidebar/SidebarGroupAction/SidebarGroupAction.styl +34 -0
- package/src/components/ui/Sidebar/SidebarGroupAction/SidebarGroupAction.styl.d.ts +7 -0
- package/src/components/ui/Sidebar/SidebarGroupAction/SidebarGroupAction.tsx +23 -0
- package/src/components/ui/Sidebar/SidebarMenu/SidebarMenu.styl +60 -0
- package/src/components/ui/Sidebar/SidebarMenu/SidebarMenu.styl.d.ts +12 -0
- package/src/components/ui/Sidebar/SidebarMenu/SidebarMenu.tsx +40 -0
- package/src/components/ui/Sidebar/SidebarMenuAction/SidebarMenuAction.styl +73 -0
- package/src/components/ui/Sidebar/SidebarMenuAction/SidebarMenuAction.styl.d.ts +8 -0
- package/src/components/ui/Sidebar/SidebarMenuAction/SidebarMenuAction.tsx +31 -0
- package/src/components/ui/Sidebar/SidebarMenuButton/SidebarMenuButton.styl +107 -0
- package/src/components/ui/Sidebar/SidebarMenuButton/SidebarMenuButton.styl.d.ts +15 -0
- package/src/components/ui/Sidebar/SidebarMenuButton/SidebarMenuButton.tsx +82 -0
- package/src/components/ui/Sidebar/SidebarMenuSub/SidebarMenuSub.styl +39 -0
- package/src/components/ui/Sidebar/SidebarMenuSub/SidebarMenuSub.styl.d.ts +8 -0
- package/src/components/ui/Sidebar/SidebarMenuSub/SidebarMenuSub.tsx +29 -0
- package/src/components/ui/Sidebar/SidebarMenuSubButton/SidebarMenuSubButton.styl +71 -0
- package/src/components/ui/Sidebar/SidebarMenuSubButton/SidebarMenuSubButton.styl.d.ts +8 -0
- package/src/components/ui/Sidebar/SidebarMenuSubButton/SidebarMenuSubButton.tsx +80 -0
- package/src/components/ui/Sidebar/SidebarProvider/SidebarProvider.styl +45 -0
- package/src/components/ui/Sidebar/SidebarProvider/SidebarProvider.styl.d.ts +9 -0
- package/src/components/ui/Sidebar/SidebarProvider/SidebarProvider.tsx +447 -0
- package/src/components/ui/Sidebar/SidebarRail/SidebarRail.styl +42 -0
- package/src/components/ui/Sidebar/SidebarRail/SidebarRail.styl.d.ts +7 -0
- package/src/components/ui/Sidebar/SidebarRail/SidebarRail.tsx +22 -0
- package/src/components/ui/Sidebar/SidebarResizeHandle/SidebarResizeHandle.styl +37 -0
- package/src/components/ui/Sidebar/SidebarResizeHandle/SidebarResizeHandle.styl.d.ts +7 -0
- package/src/components/ui/Sidebar/SidebarResizeHandle/SidebarResizeHandle.tsx +54 -0
- package/src/components/ui/Sidebar/SidebarSeparator/SidebarSeparator.styl +7 -0
- package/src/components/ui/Sidebar/SidebarSeparator/SidebarSeparator.styl.d.ts +7 -0
- package/src/components/ui/Sidebar/SidebarSeparator/SidebarSeparator.tsx +20 -0
- package/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.styl +11 -0
- package/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.styl.d.ts +7 -0
- package/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.tsx +34 -0
- package/src/components/ui/Sidebar/sidebarConstants.ts +6 -0
- package/src/components/ui/Sidebar/sidebarContext.tsx +46 -0
- package/src/components/ui/Sidebar/sidebarUtils.ts +47 -0
- package/src/components/widgets/DriverMap/AGENT.md +0 -4
- package/src/components/widgets/DriversComparisonChart/AGENT.md +0 -4
- package/src/components/widgets/PerformanceChart/AGENT.md +0 -4
- package/src/components/widgets/SidebarDatasetsItemsGrouped/AGENT.md +28 -11
- package/src/docs/components/DocsGuidance/DocsGuidance.styl +1 -0
- package/src/docs/components/DocsSidebar/DocsSidebar.tsx +14 -8
- package/src/docs/pages/SmartTextTruncatePage.styl +2 -14
- package/src/docs/pages/SmartTextTruncatePage.styl.d.ts +0 -1
- package/src/docs/pages/SmartTextTruncatePage.tsx +0 -6
- package/dist/esm/components/ui/Sidebar/Sidebar.js +0 -541
|
@@ -52,10 +52,6 @@ DriverMap renders a world map with regional driver badges, a bottom strip for wo
|
|
|
52
52
|
- Pass isLoading to both the map and the card so their loading states stay in sync.
|
|
53
53
|
- Provide a driverSelector in DriverCard so users can page through drivers without using the map.
|
|
54
54
|
|
|
55
|
-
## Report tile
|
|
56
|
-
|
|
57
|
-
- \`drivers_map\` — tile resolves analysis id, fetches drivers, passes list + selection.
|
|
58
|
-
|
|
59
55
|
## Host provides
|
|
60
56
|
|
|
61
57
|
- \`drivers\` as \`DriverData[]\` from analysis API
|
|
@@ -90,10 +86,6 @@ DriversComparisonChart plots a normalized target line against the normalized ser
|
|
|
90
86
|
- Provide a statusHint when the payload is empty so users understand why the chart is blank.
|
|
91
87
|
- Control viewTab from the page when an external Lagged/Overlapped switcher should stay in sync.
|
|
92
88
|
|
|
93
|
-
## Report tile
|
|
94
|
-
|
|
95
|
-
- \`drivers_comparison_chart\` — host loads normalized backtests payload + dataset historical.
|
|
96
|
-
|
|
97
89
|
## Host provides
|
|
98
90
|
|
|
99
91
|
- \`payload\`: BacktestsComponentPayload from platform SDK (host fetch per analysis)
|
|
@@ -285,10 +277,6 @@ PerformanceChart is a widget for evaluating forecast accuracy. It plots per-hori
|
|
|
285
277
|
|
|
286
278
|
- Wire the loading, empty, and hint props to your data-fetch state so the widget shows the right placeholder.
|
|
287
279
|
|
|
288
|
-
## Report tile
|
|
289
|
-
|
|
290
|
-
- \`performance_chart\` — host loads performance payload + dataset series.
|
|
291
|
-
|
|
292
280
|
## Host provides
|
|
293
281
|
|
|
294
282
|
- \`performanceData\` (PerformanceChartPayload) and \`historicalData\` from performance API
|
|
@@ -304,21 +292,38 @@ PerformanceChart is a widget for evaluating forecast accuracy. It plots per-hori
|
|
|
304
292
|
|
|
305
293
|
## SidebarDatasetsItemsGrouped
|
|
306
294
|
|
|
307
|
-
|
|
295
|
+
SidebarDatasetsItemsGrouped renders expandable sidebar groups of datasets, bucketed by target type, region, or category. Each group toggles open to show dataset links with selection highlight; the group containing the selected dataset opens automatically.
|
|
308
296
|
|
|
309
|
-
|
|
297
|
+
## When to use
|
|
310
298
|
|
|
311
|
-
|
|
312
|
-
|
|
299
|
+
- When the app shell sidebar needs grouped dataset navigation instead of a flat list.
|
|
300
|
+
- To let users browse datasets by target type, region, or category with collapsible sections.
|
|
301
|
+
- When selection should highlight both the active dataset and its parent group.
|
|
302
|
+
- Alongside \`preItems\` / \`postItems\` to sandwich custom nav entries around the grouped list.
|
|
313
303
|
|
|
314
|
-
|
|
304
|
+
## When not to use
|
|
315
305
|
|
|
316
|
-
-
|
|
317
|
-
-
|
|
318
|
-
-
|
|
306
|
+
- In-page or report content where no sidebar slot exists.
|
|
307
|
+
- For a flat dataset list without grouping; render individual \`SidebarMenuItem\` entries instead.
|
|
308
|
+
- When datasets lack the metadata needed for the chosen \`groupBy\` key (regions, categories, or target type).
|
|
319
309
|
|
|
320
|
-
|
|
310
|
+
## Do
|
|
321
311
|
|
|
322
|
-
|
|
312
|
+
- Pass \`selectedDatasetId\` and \`onDatasetClick\` so clicks navigate and the active dataset stays highlighted.
|
|
313
|
+
- Set \`defaultExpandedGroupNames\` when specific groups should start open; omit it to start collapsed and rely on auto-expand for the selected dataset's group.
|
|
314
|
+
- Handle loading before passing \`datasets\`; the widget has no built-in loading state.
|
|
315
|
+
|
|
316
|
+
## Host provides
|
|
317
|
+
|
|
318
|
+
- \`datasets\` as \`SidebarDatasetsItemsGroupedDataset[]\` from the datasets API
|
|
319
|
+
- \`groupBy\` — \`'target_type'\`, \`'regions'\`, or \`'categories'\`
|
|
320
|
+
- \`selectedDatasetId\` and \`onDatasetClick\` for controlled navigation
|
|
321
|
+
- Optional \`preItems\` / \`postItems\`, \`defaultExpandedGroupNames\`, \`className\`
|
|
322
|
+
|
|
323
|
+
## Requires
|
|
324
|
+
|
|
325
|
+
- \`datasets\`; \`groupBy\`; \`onDatasetClick\` for navigation.
|
|
326
|
+
|
|
327
|
+
## Empty/loading
|
|
323
328
|
|
|
324
|
-
Empty
|
|
329
|
+
- Empty \`datasets\` renders no groups; loading is handled by the host before pass-in.`;
|
|
@@ -52,10 +52,6 @@ DriverMap renders a world map with regional driver badges, a bottom strip for wo
|
|
|
52
52
|
- Pass isLoading to both the map and the card so their loading states stay in sync.
|
|
53
53
|
- Provide a driverSelector in DriverCard so users can page through drivers without using the map.
|
|
54
54
|
|
|
55
|
-
## Report tile
|
|
56
|
-
|
|
57
|
-
- \`drivers_map\` — tile resolves analysis id, fetches drivers, passes list + selection.
|
|
58
|
-
|
|
59
55
|
## Host provides
|
|
60
56
|
|
|
61
57
|
- \`drivers\` as \`DriverData[]\` from analysis API
|
|
@@ -90,10 +86,6 @@ DriversComparisonChart plots a normalized target line against the normalized ser
|
|
|
90
86
|
- Provide a statusHint when the payload is empty so users understand why the chart is blank.
|
|
91
87
|
- Control viewTab from the page when an external Lagged/Overlapped switcher should stay in sync.
|
|
92
88
|
|
|
93
|
-
## Report tile
|
|
94
|
-
|
|
95
|
-
- \`drivers_comparison_chart\` — host loads normalized backtests payload + dataset historical.
|
|
96
|
-
|
|
97
89
|
## Host provides
|
|
98
90
|
|
|
99
91
|
- \`payload\`: BacktestsComponentPayload from platform SDK (host fetch per analysis)
|
|
@@ -285,10 +277,6 @@ PerformanceChart is a widget for evaluating forecast accuracy. It plots per-hori
|
|
|
285
277
|
|
|
286
278
|
- Wire the loading, empty, and hint props to your data-fetch state so the widget shows the right placeholder.
|
|
287
279
|
|
|
288
|
-
## Report tile
|
|
289
|
-
|
|
290
|
-
- \`performance_chart\` — host loads performance payload + dataset series.
|
|
291
|
-
|
|
292
280
|
## Host provides
|
|
293
281
|
|
|
294
282
|
- \`performanceData\` (PerformanceChartPayload) and \`historicalData\` from performance API
|
|
@@ -304,22 +292,39 @@ PerformanceChart is a widget for evaluating forecast accuracy. It plots per-hori
|
|
|
304
292
|
|
|
305
293
|
## SidebarDatasetsItemsGrouped
|
|
306
294
|
|
|
307
|
-
|
|
295
|
+
SidebarDatasetsItemsGrouped renders expandable sidebar groups of datasets, bucketed by target type, region, or category. Each group toggles open to show dataset links with selection highlight; the group containing the selected dataset opens automatically.
|
|
308
296
|
|
|
309
|
-
|
|
297
|
+
## When to use
|
|
310
298
|
|
|
311
|
-
|
|
312
|
-
|
|
299
|
+
- When the app shell sidebar needs grouped dataset navigation instead of a flat list.
|
|
300
|
+
- To let users browse datasets by target type, region, or category with collapsible sections.
|
|
301
|
+
- When selection should highlight both the active dataset and its parent group.
|
|
302
|
+
- Alongside \`preItems\` / \`postItems\` to sandwich custom nav entries around the grouped list.
|
|
313
303
|
|
|
314
|
-
|
|
304
|
+
## When not to use
|
|
315
305
|
|
|
316
|
-
-
|
|
317
|
-
-
|
|
318
|
-
-
|
|
306
|
+
- In-page or report content where no sidebar slot exists.
|
|
307
|
+
- For a flat dataset list without grouping; render individual \`SidebarMenuItem\` entries instead.
|
|
308
|
+
- When datasets lack the metadata needed for the chosen \`groupBy\` key (regions, categories, or target type).
|
|
319
309
|
|
|
320
|
-
|
|
310
|
+
## Do
|
|
321
311
|
|
|
322
|
-
|
|
312
|
+
- Pass \`selectedDatasetId\` and \`onDatasetClick\` so clicks navigate and the active dataset stays highlighted.
|
|
313
|
+
- Set \`defaultExpandedGroupNames\` when specific groups should start open; omit it to start collapsed and rely on auto-expand for the selected dataset's group.
|
|
314
|
+
- Handle loading before passing \`datasets\`; the widget has no built-in loading state.
|
|
315
|
+
|
|
316
|
+
## Host provides
|
|
317
|
+
|
|
318
|
+
- \`datasets\` as \`SidebarDatasetsItemsGroupedDataset[]\` from the datasets API
|
|
319
|
+
- \`groupBy\` — \`'target_type'\`, \`'regions'\`, or \`'categories'\`
|
|
320
|
+
- \`selectedDatasetId\` and \`onDatasetClick\` for controlled navigation
|
|
321
|
+
- Optional \`preItems\` / \`postItems\`, \`defaultExpandedGroupNames\`, \`className\`
|
|
322
|
+
|
|
323
|
+
## Requires
|
|
324
|
+
|
|
325
|
+
- \`datasets\`; \`groupBy\`; \`onDatasetClick\` for navigation.
|
|
326
|
+
|
|
327
|
+
## Empty/loading
|
|
323
328
|
|
|
324
|
-
Empty
|
|
329
|
+
- Empty \`datasets\` renders no groups; loading is handled by the host before pass-in.`;
|
|
325
330
|
export { CONTENT_AGENT_UI_PROMPT } from './content-prompt.generated.js';
|
|
@@ -15,4 +15,4 @@ Entry point for report/dashboard agents using `@sybilion/uilib`. Open linked AGE
|
|
|
15
15
|
- [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…
|
|
16
16
|
- [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…
|
|
17
17
|
- [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 …
|
|
18
|
-
- [SidebarDatasetsItemsGrouped](src/components/widgets/SidebarDatasetsItemsGrouped/AGENT.md) —
|
|
18
|
+
- [SidebarDatasetsItemsGrouped](src/components/widgets/SidebarDatasetsItemsGrouped/AGENT.md) — SidebarDatasetsItemsGrouped renders expandable sidebar groups of datasets, bucketed by target type, region, or catego…
|
|
@@ -51,10 +51,6 @@ DriverMap renders a world map with regional driver badges, a bottom strip for wo
|
|
|
51
51
|
- Pass isLoading to both the map and the card so their loading states stay in sync.
|
|
52
52
|
- Provide a driverSelector in DriverCard so users can page through drivers without using the map.
|
|
53
53
|
|
|
54
|
-
## Report tile
|
|
55
|
-
|
|
56
|
-
- `drivers_map` — tile resolves analysis id, fetches drivers, passes list + selection.
|
|
57
|
-
|
|
58
54
|
## Host provides
|
|
59
55
|
|
|
60
56
|
- `drivers` as `DriverData[]` from analysis API
|
|
@@ -89,10 +85,6 @@ DriversComparisonChart plots a normalized target line against the normalized ser
|
|
|
89
85
|
- Provide a statusHint when the payload is empty so users understand why the chart is blank.
|
|
90
86
|
- Control viewTab from the page when an external Lagged/Overlapped switcher should stay in sync.
|
|
91
87
|
|
|
92
|
-
## Report tile
|
|
93
|
-
|
|
94
|
-
- `drivers_comparison_chart` — host loads normalized backtests payload + dataset historical.
|
|
95
|
-
|
|
96
88
|
## Host provides
|
|
97
89
|
|
|
98
90
|
- `payload`: BacktestsComponentPayload from platform SDK (host fetch per analysis)
|
|
@@ -284,10 +276,6 @@ PerformanceChart is a widget for evaluating forecast accuracy. It plots per-hori
|
|
|
284
276
|
|
|
285
277
|
- Wire the loading, empty, and hint props to your data-fetch state so the widget shows the right placeholder.
|
|
286
278
|
|
|
287
|
-
## Report tile
|
|
288
|
-
|
|
289
|
-
- `performance_chart` — host loads performance payload + dataset series.
|
|
290
|
-
|
|
291
279
|
## Host provides
|
|
292
280
|
|
|
293
281
|
- `performanceData` (PerformanceChartPayload) and `historicalData` from performance API
|
|
@@ -303,21 +291,38 @@ PerformanceChart is a widget for evaluating forecast accuracy. It plots per-hori
|
|
|
303
291
|
|
|
304
292
|
## SidebarDatasetsItemsGrouped
|
|
305
293
|
|
|
306
|
-
|
|
294
|
+
SidebarDatasetsItemsGrouped renders expandable sidebar groups of datasets, bucketed by target type, region, or category. Each group toggles open to show dataset links with selection highlight; the group containing the selected dataset opens automatically.
|
|
307
295
|
|
|
308
|
-
|
|
296
|
+
## When to use
|
|
309
297
|
|
|
310
|
-
|
|
311
|
-
|
|
298
|
+
- When the app shell sidebar needs grouped dataset navigation instead of a flat list.
|
|
299
|
+
- To let users browse datasets by target type, region, or category with collapsible sections.
|
|
300
|
+
- When selection should highlight both the active dataset and its parent group.
|
|
301
|
+
- Alongside `preItems` / `postItems` to sandwich custom nav entries around the grouped list.
|
|
312
302
|
|
|
313
|
-
|
|
303
|
+
## When not to use
|
|
314
304
|
|
|
315
|
-
-
|
|
316
|
-
-
|
|
317
|
-
-
|
|
305
|
+
- In-page or report content where no sidebar slot exists.
|
|
306
|
+
- For a flat dataset list without grouping; render individual `SidebarMenuItem` entries instead.
|
|
307
|
+
- When datasets lack the metadata needed for the chosen `groupBy` key (regions, categories, or target type).
|
|
318
308
|
|
|
319
|
-
|
|
309
|
+
## Do
|
|
320
310
|
|
|
321
|
-
|
|
311
|
+
- Pass `selectedDatasetId` and `onDatasetClick` so clicks navigate and the active dataset stays highlighted.
|
|
312
|
+
- Set `defaultExpandedGroupNames` when specific groups should start open; omit it to start collapsed and rely on auto-expand for the selected dataset's group.
|
|
313
|
+
- Handle loading before passing `datasets`; the widget has no built-in loading state.
|
|
314
|
+
|
|
315
|
+
## Host provides
|
|
316
|
+
|
|
317
|
+
- `datasets` as `SidebarDatasetsItemsGroupedDataset[]` from the datasets API
|
|
318
|
+
- `groupBy` — `'target_type'`, `'regions'`, or `'categories'`
|
|
319
|
+
- `selectedDatasetId` and `onDatasetClick` for controlled navigation
|
|
320
|
+
- Optional `preItems` / `postItems`, `defaultExpandedGroupNames`, `className`
|
|
321
|
+
|
|
322
|
+
## Requires
|
|
323
|
+
|
|
324
|
+
- `datasets`; `groupBy`; `onDatasetClick` for navigation.
|
|
325
|
+
|
|
326
|
+
## Empty/loading
|
|
322
327
|
|
|
323
|
-
Empty
|
|
328
|
+
- Empty `datasets` renders no groups; loading is handled by the host before pass-in.
|
|
@@ -51,10 +51,6 @@ DriverMap renders a world map with regional driver badges, a bottom strip for wo
|
|
|
51
51
|
- Pass isLoading to both the map and the card so their loading states stay in sync.
|
|
52
52
|
- Provide a driverSelector in DriverCard so users can page through drivers without using the map.
|
|
53
53
|
|
|
54
|
-
## Report tile
|
|
55
|
-
|
|
56
|
-
- `drivers_map` — tile resolves analysis id, fetches drivers, passes list + selection.
|
|
57
|
-
|
|
58
54
|
## Host provides
|
|
59
55
|
|
|
60
56
|
- `drivers` as `DriverData[]` from analysis API
|
|
@@ -89,10 +85,6 @@ DriversComparisonChart plots a normalized target line against the normalized ser
|
|
|
89
85
|
- Provide a statusHint when the payload is empty so users understand why the chart is blank.
|
|
90
86
|
- Control viewTab from the page when an external Lagged/Overlapped switcher should stay in sync.
|
|
91
87
|
|
|
92
|
-
## Report tile
|
|
93
|
-
|
|
94
|
-
- `drivers_comparison_chart` — host loads normalized backtests payload + dataset historical.
|
|
95
|
-
|
|
96
88
|
## Host provides
|
|
97
89
|
|
|
98
90
|
- `payload`: BacktestsComponentPayload from platform SDK (host fetch per analysis)
|
|
@@ -284,10 +276,6 @@ PerformanceChart is a widget for evaluating forecast accuracy. It plots per-hori
|
|
|
284
276
|
|
|
285
277
|
- Wire the loading, empty, and hint props to your data-fetch state so the widget shows the right placeholder.
|
|
286
278
|
|
|
287
|
-
## Report tile
|
|
288
|
-
|
|
289
|
-
- `performance_chart` — host loads performance payload + dataset series.
|
|
290
|
-
|
|
291
279
|
## Host provides
|
|
292
280
|
|
|
293
281
|
- `performanceData` (PerformanceChartPayload) and `historicalData` from performance API
|
|
@@ -303,21 +291,38 @@ PerformanceChart is a widget for evaluating forecast accuracy. It plots per-hori
|
|
|
303
291
|
|
|
304
292
|
## SidebarDatasetsItemsGrouped
|
|
305
293
|
|
|
306
|
-
|
|
294
|
+
SidebarDatasetsItemsGrouped renders expandable sidebar groups of datasets, bucketed by target type, region, or category. Each group toggles open to show dataset links with selection highlight; the group containing the selected dataset opens automatically.
|
|
307
295
|
|
|
308
|
-
|
|
296
|
+
## When to use
|
|
309
297
|
|
|
310
|
-
|
|
311
|
-
|
|
298
|
+
- When the app shell sidebar needs grouped dataset navigation instead of a flat list.
|
|
299
|
+
- To let users browse datasets by target type, region, or category with collapsible sections.
|
|
300
|
+
- When selection should highlight both the active dataset and its parent group.
|
|
301
|
+
- Alongside `preItems` / `postItems` to sandwich custom nav entries around the grouped list.
|
|
312
302
|
|
|
313
|
-
|
|
303
|
+
## When not to use
|
|
314
304
|
|
|
315
|
-
-
|
|
316
|
-
-
|
|
317
|
-
-
|
|
305
|
+
- In-page or report content where no sidebar slot exists.
|
|
306
|
+
- For a flat dataset list without grouping; render individual `SidebarMenuItem` entries instead.
|
|
307
|
+
- When datasets lack the metadata needed for the chosen `groupBy` key (regions, categories, or target type).
|
|
318
308
|
|
|
319
|
-
|
|
309
|
+
## Do
|
|
320
310
|
|
|
321
|
-
|
|
311
|
+
- Pass `selectedDatasetId` and `onDatasetClick` so clicks navigate and the active dataset stays highlighted.
|
|
312
|
+
- Set `defaultExpandedGroupNames` when specific groups should start open; omit it to start collapsed and rely on auto-expand for the selected dataset's group.
|
|
313
|
+
- Handle loading before passing `datasets`; the widget has no built-in loading state.
|
|
314
|
+
|
|
315
|
+
## Host provides
|
|
316
|
+
|
|
317
|
+
- `datasets` as `SidebarDatasetsItemsGroupedDataset[]` from the datasets API
|
|
318
|
+
- `groupBy` — `'target_type'`, `'regions'`, or `'categories'`
|
|
319
|
+
- `selectedDatasetId` and `onDatasetClick` for controlled navigation
|
|
320
|
+
- Optional `preItems` / `postItems`, `defaultExpandedGroupNames`, `className`
|
|
321
|
+
|
|
322
|
+
## Requires
|
|
323
|
+
|
|
324
|
+
- `datasets`; `groupBy`; `onDatasetClick` for navigation.
|
|
325
|
+
|
|
326
|
+
## Empty/loading
|
|
322
327
|
|
|
323
|
-
Empty
|
|
328
|
+
- Empty `datasets` renders no groups; loading is handled by the host before pass-in.
|
|
@@ -78,7 +78,7 @@ Entry point for \`@sybilion/uilib\`. Open linked AGENT.md before using a compone
|
|
|
78
78
|
- [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…
|
|
79
79
|
- [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…
|
|
80
80
|
- [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 …
|
|
81
|
-
- [SidebarDatasetsItemsGrouped](src/components/widgets/SidebarDatasetsItemsGrouped/AGENT.md) —
|
|
81
|
+
- [SidebarDatasetsItemsGrouped](src/components/widgets/SidebarDatasetsItemsGrouped/AGENT.md) — SidebarDatasetsItemsGrouped renders expandable sidebar groups of datasets, bucketed by target type, region, or catego…
|
|
82
82
|
|
|
83
83
|
## Foundations
|
|
84
84
|
|
|
@@ -77,7 +77,7 @@ Entry point for `@sybilion/uilib`. Open linked AGENT.md before using a component
|
|
|
77
77
|
- [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…
|
|
78
78
|
- [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…
|
|
79
79
|
- [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 …
|
|
80
|
-
- [SidebarDatasetsItemsGrouped](src/components/widgets/SidebarDatasetsItemsGrouped/AGENT.md) —
|
|
80
|
+
- [SidebarDatasetsItemsGrouped](src/components/widgets/SidebarDatasetsItemsGrouped/AGENT.md) — SidebarDatasetsItemsGrouped renders expandable sidebar groups of datasets, bucketed by target type, region, or catego…
|
|
81
81
|
|
|
82
82
|
## Foundations
|
|
83
83
|
|
|
@@ -77,7 +77,7 @@ Entry point for `@sybilion/uilib`. Open linked AGENT.md before using a component
|
|
|
77
77
|
- [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…
|
|
78
78
|
- [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…
|
|
79
79
|
- [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 …
|
|
80
|
-
- [SidebarDatasetsItemsGrouped](src/components/widgets/SidebarDatasetsItemsGrouped/AGENT.md) —
|
|
80
|
+
- [SidebarDatasetsItemsGrouped](src/components/widgets/SidebarDatasetsItemsGrouped/AGENT.md) — SidebarDatasetsItemsGrouped renders expandable sidebar groups of datasets, bucketed by target type, region, or catego…
|
|
81
81
|
|
|
82
82
|
## Foundations
|
|
83
83
|
|
|
@@ -7,8 +7,33 @@ import { Scroll } from '@homecode/ui';
|
|
|
7
7
|
import { X, PaperPlaneRightIcon } from '@phosphor-icons/react';
|
|
8
8
|
import { Button } from '../../Button/Button.js';
|
|
9
9
|
import { DropZone } from '../../DropZone/DropZone.js';
|
|
10
|
-
import
|
|
11
|
-
import
|
|
10
|
+
import '../../Sidebar/sidebarContext.js';
|
|
11
|
+
import '../../Tooltip/Tooltip.js';
|
|
12
|
+
import '../../../../tools/env.js';
|
|
13
|
+
import '../../Sidebar/SidebarProvider/SidebarProvider.styl.js';
|
|
14
|
+
import '@radix-ui/react-dialog';
|
|
15
|
+
import '../../Sheet/Sheet.styl.js';
|
|
16
|
+
import '../../Logo/Logo.styl.js';
|
|
17
|
+
import '../../Sidebar/Sidebar.styl.js';
|
|
18
|
+
import { PanelResizeHandle } from '../../PanelResizeHandle/PanelResizeHandle.js';
|
|
19
|
+
import SidebarResizeStem from '../../Sidebar/SidebarResizeHandle/SidebarResizeHandle.styl.js';
|
|
20
|
+
import 'lucide-react';
|
|
21
|
+
import '../../Sidebar/SidebarTrigger/SidebarTrigger.styl.js';
|
|
22
|
+
import '../../Sidebar/SidebarRail/SidebarRail.styl.js';
|
|
23
|
+
import '../../Sidebar/SidebarFooter/SidebarFooter.styl.js';
|
|
24
|
+
import '@radix-ui/react-separator';
|
|
25
|
+
import '../../Separator/Separator.styl.js';
|
|
26
|
+
import '../../Sidebar/SidebarSeparator/SidebarSeparator.styl.js';
|
|
27
|
+
import '../../Sidebar/SidebarContent/SidebarContent.styl.js';
|
|
28
|
+
import '../../Sidebar/SidebarGroup/SidebarGroup.styl.js';
|
|
29
|
+
import '@radix-ui/react-slot';
|
|
30
|
+
import '../../Sidebar/SidebarGroupAction/SidebarGroupAction.styl.js';
|
|
31
|
+
import '../../Sidebar/SidebarMenu/SidebarMenu.styl.js';
|
|
32
|
+
import '../../SmartTextTruncate/SmartTextTruncate.js';
|
|
33
|
+
import '../../Sidebar/SidebarMenuButton/SidebarMenuButton.styl.js';
|
|
34
|
+
import '../../Sidebar/SidebarMenuAction/SidebarMenuAction.styl.js';
|
|
35
|
+
import '../../Sidebar/SidebarMenuSub/SidebarMenuSub.styl.js';
|
|
36
|
+
import '../../Sidebar/SidebarMenuSubButton/SidebarMenuSubButton.styl.js';
|
|
12
37
|
import { Chat } from '../Chat.js';
|
|
13
38
|
import { MessageRole } from '../Chat.types.js';
|
|
14
39
|
import { filterToTextAttachments, isAttachmentsDropzoneEnabled, buildAcceptAttr } from '../chatAttachmentAccept.js';
|
|
@@ -77,7 +102,7 @@ function ChatChrome({ variant = 'default', showResizeHandle, resizeHandle, onClo
|
|
|
77
102
|
showSyntheticBranchButtons,
|
|
78
103
|
]);
|
|
79
104
|
const isClean = variant === 'clean';
|
|
80
|
-
return (jsxs("div", { className: cn(S.root, isClean && S.rootClean), children: [showResizeHandle && resizeHandle ? (jsx(PanelResizeHandle, { edge: "leading", isActive: resizeHandle.isActive, startWidthPx: resizeHandle.startWidthPx, getShellWidth: resizeHandle.getShellWidth, onDragWidth: resizeHandle.onDragWidth, onDragComplete: resizeHandle.onDragComplete, className: cn(
|
|
105
|
+
return (jsxs("div", { className: cn(S.root, isClean && S.rootClean), children: [showResizeHandle && resizeHandle ? (jsx(PanelResizeHandle, { edge: "leading", isActive: resizeHandle.isActive, startWidthPx: resizeHandle.startWidthPx, getShellWidth: resizeHandle.getShellWidth, onDragWidth: resizeHandle.onDragWidth, onDragComplete: resizeHandle.onDragComplete, className: cn(SidebarResizeStem.sidebarResizeHandle, S.chatResizeHandle) })) : null, jsx("div", { className: S.panelHeader, children: onClose ? (jsx(Button, { type: "button", variant: "ghost", icon: true, className: S.panelClose, "aria-label": "Close chat", onClick: onClose, children: jsx(X, { className: "size-4" }) })) : null }), jsxs("div", { className: S.content, children: [attachmentsDropzoneEnabled ? (jsx(DropZone, { accept: attachmentAccept, label: "Drop text files to attach", multiple: true, ghost: true, overlayScope: "container", disabled: promptDisabled, className: S.attachmentDropzone, onFiles: handleAttachmentFiles })) : null, jsxs(Chat, { className: isClean ? S.chatClean : undefined, isEmpty: isEmpty, scopeId: effectiveScopeId, onChatDeleted: onChatDeleted, onNewChat: onNewChat, hideChatSelector: hideChatSelector, children: [isEmpty ? (jsx("div", { className: S.emptyBody, children: jsx(Chat.EmptyState, { ...emptyState }) })) : (jsx("div", { className: S.scrollWrapper, children: jsxs(Scroll, { y: true, yScrollbarClassName: S.scrollbar, className: S.scroll, innerClassName: S.scrollInner, offset: { y: { before: 56, after: 24 } }, fadeSize: "m", autoHide: true, ref: scrollRef, children: [messages.map((msg, index, arr) => {
|
|
81
106
|
const isLast = index === arr.length - 1;
|
|
82
107
|
const messageClassName = messageClassNames
|
|
83
108
|
? {
|
|
@@ -11,7 +11,37 @@ import { useIsMobile } from '../../../../hooks/useIsMobile.js';
|
|
|
11
11
|
import { useQueryParams } from '../../../../hooks/useQueryParams.js';
|
|
12
12
|
import logger from '../../../../lib/logger.js';
|
|
13
13
|
import { mergePresetFreeformDefaults } from '../../../../utils/chatPresetMerge.js';
|
|
14
|
-
import {
|
|
14
|
+
import { DISMISS_CHAT_FOR_LAYOUT_EVENT } from '../../Sidebar/sidebarConstants.js';
|
|
15
|
+
import { useSidebarState, useSidebarActions } from '../../Sidebar/sidebarContext.js';
|
|
16
|
+
import 'classnames';
|
|
17
|
+
import '../../Tooltip/Tooltip.js';
|
|
18
|
+
import '../../../../tools/env.js';
|
|
19
|
+
import '@homecode/ui';
|
|
20
|
+
import '../../Sidebar/SidebarProvider/SidebarProvider.styl.js';
|
|
21
|
+
import '@phosphor-icons/react';
|
|
22
|
+
import '@radix-ui/react-dialog';
|
|
23
|
+
import '../../Sheet/Sheet.styl.js';
|
|
24
|
+
import '../../Logo/Logo.styl.js';
|
|
25
|
+
import '../../Sidebar/Sidebar.styl.js';
|
|
26
|
+
import '../../SmartTextTruncate/SmartTextTruncate.js';
|
|
27
|
+
import '../../Sidebar/SidebarResizeHandle/SidebarResizeHandle.styl.js';
|
|
28
|
+
import '@radix-ui/react-slot';
|
|
29
|
+
import '../../Button/Button.styl.js';
|
|
30
|
+
import 'lucide-react';
|
|
31
|
+
import '../../Sidebar/SidebarTrigger/SidebarTrigger.styl.js';
|
|
32
|
+
import '../../Sidebar/SidebarRail/SidebarRail.styl.js';
|
|
33
|
+
import '../../Sidebar/SidebarFooter/SidebarFooter.styl.js';
|
|
34
|
+
import '@radix-ui/react-separator';
|
|
35
|
+
import '../../Separator/Separator.styl.js';
|
|
36
|
+
import '../../Sidebar/SidebarSeparator/SidebarSeparator.styl.js';
|
|
37
|
+
import '../../Sidebar/SidebarContent/SidebarContent.styl.js';
|
|
38
|
+
import '../../Sidebar/SidebarGroup/SidebarGroup.styl.js';
|
|
39
|
+
import '../../Sidebar/SidebarGroupAction/SidebarGroupAction.styl.js';
|
|
40
|
+
import '../../Sidebar/SidebarMenu/SidebarMenu.styl.js';
|
|
41
|
+
import '../../Sidebar/SidebarMenuButton/SidebarMenuButton.styl.js';
|
|
42
|
+
import '../../Sidebar/SidebarMenuAction/SidebarMenuAction.styl.js';
|
|
43
|
+
import '../../Sidebar/SidebarMenuSub/SidebarMenuSub.styl.js';
|
|
44
|
+
import '../../Sidebar/SidebarMenuSubButton/SidebarMenuSubButton.styl.js';
|
|
15
45
|
import { Chat } from '../Chat.js';
|
|
16
46
|
import { shouldOpenChatFromUrl, shouldHealChatShellDesync, shouldCloseStaleLocalChatOpen, shouldCloseOrphanShellChat, shouldDismissChatAfterShellClosed, isChatPanelVisible } from './chatPanelOpenSync.js';
|
|
17
47
|
|
|
@@ -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)}}.DropdownMenu_content__OlE4W{background-color:var(--popover);border:1px solid var(--border);border-radius:var(--p-4);color:var(--popover-foreground);max-height:var(--radix-dropdown-menu-content-available-height);min-width:8rem;overflow-x:hidden;overflow-y:auto;padding:var(--p-1);transform-origin:var(--radix-dropdown-menu-content-transform-origin);z-index:50}.DropdownMenu_content__OlE4W.DropdownMenu_elevation-sm__YxqSi{box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06)}.DropdownMenu_content__OlE4W.DropdownMenu_elevation-lg__b-ucu,.DropdownMenu_content__OlE4W.DropdownMenu_elevation-md__-Bfe-{box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05)}.DropdownMenu_content__OlE4W[data-state=open]{animation:DropdownMenu_fade-in__cJFMk .15s ease-out,DropdownMenu_zoom-in__x7YdK .15s ease-out}.DropdownMenu_content__OlE4W[data-state=closed]{animation:DropdownMenu_fade-out__dQTVr .1s ease-in,DropdownMenu_zoom-out__O6NNb .1s ease-in}.DropdownMenu_content__OlE4W[data-state=open][data-side=bottom]{animation:DropdownMenu_fade-in__cJFMk .15s ease-out,DropdownMenu_zoom-in__x7YdK .15s ease-out,DropdownMenu_slide-in-from-top__S6fwM .15s ease-out}.DropdownMenu_content__OlE4W[data-state=open][data-side=left]{animation:DropdownMenu_fade-in__cJFMk .15s ease-out,DropdownMenu_zoom-in__x7YdK .15s ease-out,DropdownMenu_slide-in-from-right__x7eXI .15s ease-out}.DropdownMenu_content__OlE4W[data-state=open][data-side=right]{animation:DropdownMenu_fade-in__cJFMk .15s ease-out,DropdownMenu_zoom-in__x7YdK .15s ease-out,DropdownMenu_slide-in-from-left__JVDGh .15s ease-out}.DropdownMenu_content__OlE4W[data-state=open][data-side=top]{animation:DropdownMenu_fade-in__cJFMk .15s ease-out,DropdownMenu_zoom-in__x7YdK .15s ease-out,DropdownMenu_slide-in-from-bottom__HlK53 .15s ease-out}.DropdownMenu_content__OlE4W[data-state=closed][data-side=bottom],.DropdownMenu_content__OlE4W[data-state=closed][data-side=left],.DropdownMenu_content__OlE4W[data-state=closed][data-side=right],.DropdownMenu_content__OlE4W[data-state=closed][data-side=top]{animation:DropdownMenu_fade-out__dQTVr .1s ease-in,DropdownMenu_zoom-out__O6NNb .1s ease-in}.DropdownMenu_item__5U8Si{align-items:center;border-radius:var(--p-1);cursor:pointer;display:flex;font-size:.875rem;gap:var(--p-2);outline:2px solid transparent;outline-offset:2px;
|
|
4
|
-
var S = {"content":"DropdownMenu_content__OlE4W","elevation-sm":"DropdownMenu_elevation-sm__YxqSi","elevation-md":"DropdownMenu_elevation-md__-Bfe-","elevation-lg":"DropdownMenu_elevation-lg__b-ucu","fade-in":"DropdownMenu_fade-in__cJFMk","zoom-in":"DropdownMenu_zoom-in__x7YdK","fade-out":"DropdownMenu_fade-out__dQTVr","zoom-out":"DropdownMenu_zoom-out__O6NNb","slide-in-from-top":"DropdownMenu_slide-in-from-top__S6fwM","slide-in-from-right":"DropdownMenu_slide-in-from-right__x7eXI","slide-in-from-left":"DropdownMenu_slide-in-from-left__JVDGh","slide-in-from-bottom":"DropdownMenu_slide-in-from-bottom__HlK53","item":"DropdownMenu_item__5U8Si","checkboxItem":"DropdownMenu_checkboxItem__L3vB5","radioItem":"DropdownMenu_radioItem__eSRBK","
|
|
3
|
+
var css_248z = "@media (max-width:768px){:root{--page-x-padding:var(--p-6);--page-y-padding:var(--p-6)}}.DropdownMenu_content__OlE4W{background-color:var(--popover);border:1px solid var(--border);border-radius:var(--p-4);color:var(--popover-foreground);max-height:var(--radix-dropdown-menu-content-available-height);min-width:8rem;overflow-x:hidden;overflow-y:auto;padding:var(--p-1);transform-origin:var(--radix-dropdown-menu-content-transform-origin);z-index:50}.DropdownMenu_content__OlE4W.DropdownMenu_elevation-sm__YxqSi{box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06)}.DropdownMenu_content__OlE4W.DropdownMenu_elevation-lg__b-ucu,.DropdownMenu_content__OlE4W.DropdownMenu_elevation-md__-Bfe-{box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05)}.DropdownMenu_content__OlE4W[data-state=open]{animation:DropdownMenu_fade-in__cJFMk .15s ease-out,DropdownMenu_zoom-in__x7YdK .15s ease-out}.DropdownMenu_content__OlE4W[data-state=closed]{animation:DropdownMenu_fade-out__dQTVr .1s ease-in,DropdownMenu_zoom-out__O6NNb .1s ease-in}.DropdownMenu_content__OlE4W[data-state=open][data-side=bottom]{animation:DropdownMenu_fade-in__cJFMk .15s ease-out,DropdownMenu_zoom-in__x7YdK .15s ease-out,DropdownMenu_slide-in-from-top__S6fwM .15s ease-out}.DropdownMenu_content__OlE4W[data-state=open][data-side=left]{animation:DropdownMenu_fade-in__cJFMk .15s ease-out,DropdownMenu_zoom-in__x7YdK .15s ease-out,DropdownMenu_slide-in-from-right__x7eXI .15s ease-out}.DropdownMenu_content__OlE4W[data-state=open][data-side=right]{animation:DropdownMenu_fade-in__cJFMk .15s ease-out,DropdownMenu_zoom-in__x7YdK .15s ease-out,DropdownMenu_slide-in-from-left__JVDGh .15s ease-out}.DropdownMenu_content__OlE4W[data-state=open][data-side=top]{animation:DropdownMenu_fade-in__cJFMk .15s ease-out,DropdownMenu_zoom-in__x7YdK .15s ease-out,DropdownMenu_slide-in-from-bottom__HlK53 .15s ease-out}.DropdownMenu_content__OlE4W[data-state=closed][data-side=bottom],.DropdownMenu_content__OlE4W[data-state=closed][data-side=left],.DropdownMenu_content__OlE4W[data-state=closed][data-side=right],.DropdownMenu_content__OlE4W[data-state=closed][data-side=top]{animation:DropdownMenu_fade-out__dQTVr .1s ease-in,DropdownMenu_zoom-out__O6NNb .1s ease-in}.DropdownMenu_item__5U8Si,.DropdownMenu_label__IiIlF{padding:6px var(--p-2)}.DropdownMenu_item__5U8Si{align-items:center;border-radius:var(--p-1);cursor:pointer;display:flex;font-size:.875rem;gap:var(--p-2);outline:2px solid transparent;outline-offset:2px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}a.DropdownMenu_item__5U8Si{color:inherit;text-decoration:none}.DropdownMenu_item__5U8Si:focus{background-color:var(--accent);color:var(--accent-foreground)}.DropdownMenu_item__5U8Si:first-child{border-top-left-radius:var(--p-3);border-top-right-radius:var(--p-3)}.DropdownMenu_item__5U8Si:last-child{border-bottom-left-radius:var(--p-3);border-bottom-right-radius:var(--p-3)}[role=group] .DropdownMenu_item__5U8Si{border-radius:0}[role=group]:first-child .DropdownMenu_item__5U8Si:first-child{border-top-left-radius:var(--p-3);border-top-right-radius:var(--p-3)}[role=group]:last-child .DropdownMenu_item__5U8Si:last-child{border-bottom-left-radius:var(--p-3);border-bottom-right-radius:var(--p-3)}.DropdownMenu_item__5U8Si[data-variant=destructive]{color:var(--destructive)}.DropdownMenu_item__5U8Si[data-variant=destructive]:focus{background-color:var(--destructive-100);color:var(--destructive)}.DropdownMenu_item__5U8Si[data-variant=destructive] svg{color:var(--destructive)!important}.dark .DropdownMenu_item__5U8Si[data-variant=destructive]:focus{background-color:var(--destructive-200)}.DropdownMenu_item__5U8Si[data-disabled]{opacity:.5;pointer-events:none}.DropdownMenu_item__5U8Si[data-inset]{padding-left:var(--p-8)}.DropdownMenu_item__5U8Si svg:not([class*=text-]){color:var(--muted-foreground)}.DropdownMenu_item__5U8Si svg{flex-shrink:0;pointer-events:none}.DropdownMenu_item__5U8Si svg:not([class*=size-]){height:1rem;width:1rem}.DropdownMenu_checkboxItem__L3vB5{align-items:center;border-radius:.125rem;display:flex;font-size:.875rem;gap:var(--p-2);outline:2px solid transparent;outline-offset:2px;padding:6px var(--p-2) 6px var(--p-8);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.DropdownMenu_checkboxItem__L3vB5:focus{background-color:var(--accent);color:var(--accent-foreground)}.DropdownMenu_checkboxItem__L3vB5[data-disabled]{opacity:.5;pointer-events:none}.DropdownMenu_checkboxItem__L3vB5 svg{flex-shrink:0;pointer-events:none}.DropdownMenu_checkboxItem__L3vB5 svg:not([class*=size-]){height:1rem;width:1rem}.DropdownMenu_radioItem__eSRBK{align-items:center;border-radius:.125rem;display:flex;font-size:.875rem;gap:var(--p-2);outline:2px solid transparent;outline-offset:2px;padding:6px var(--p-2) 6px var(--p-8);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.DropdownMenu_radioItem__eSRBK:focus{background-color:var(--accent);color:var(--accent-foreground)}.DropdownMenu_radioItem__eSRBK[data-disabled]{opacity:.5;pointer-events:none}.DropdownMenu_radioItem__eSRBK svg{flex-shrink:0;pointer-events:none}.DropdownMenu_radioItem__eSRBK svg:not([class*=size-]){height:1rem;width:1rem}.DropdownMenu_label__IiIlF{font-size:.875rem;font-weight:500}.DropdownMenu_label__IiIlF[data-inset]{padding-left:var(--p-8)}.DropdownMenu_separator__Avmek{background-color:var(--border);height:1px;margin:var(--p-1) calc(var(--p-1)*-1)}.DropdownMenu_shortcut__nJhEM{color:var(--muted-foreground);font-size:.75rem;letter-spacing:.1em;margin-left:auto}.DropdownMenu_subTrigger__6bIVO{align-items:center;border-radius:.125rem;display:flex;font-size:.875rem;outline:2px solid transparent;outline-offset:2px;padding:6px var(--p-2);-webkit-user-select:none;-moz-user-select:none;user-select:none}.DropdownMenu_subTrigger__6bIVO:focus,.DropdownMenu_subTrigger__6bIVO[data-state=open]{background-color:var(--accent);color:var(--accent-foreground)}.DropdownMenu_subTrigger__6bIVO[data-inset]{padding-left:var(--p-8)}.DropdownMenu_subContent__svUx-{background-color:var(--popover);border:1px solid var(--border);border-radius:.375rem;box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05);color:var(--popover-foreground);min-width:8rem;overflow:hidden;padding:var(--p-1);transform-origin:var(--radix-dropdown-menu-content-transform-origin);z-index:50}.DropdownMenu_subContent__svUx-[data-state=open]{animation:DropdownMenu_fade-in__cJFMk .15s ease-out,DropdownMenu_zoom-in__x7YdK .15s ease-out}.DropdownMenu_subContent__svUx-[data-state=closed]{animation:DropdownMenu_fade-out__dQTVr .1s ease-in,DropdownMenu_zoom-out__O6NNb .1s ease-in}.DropdownMenu_subContent__svUx-[data-state=open][data-side=bottom]{animation:DropdownMenu_fade-in__cJFMk .15s ease-out,DropdownMenu_zoom-in__x7YdK .15s ease-out,DropdownMenu_slide-in-from-top__S6fwM .15s ease-out}.DropdownMenu_subContent__svUx-[data-state=open][data-side=left]{animation:DropdownMenu_fade-in__cJFMk .15s ease-out,DropdownMenu_zoom-in__x7YdK .15s ease-out,DropdownMenu_slide-in-from-right__x7eXI .15s ease-out}.DropdownMenu_subContent__svUx-[data-state=open][data-side=right]{animation:DropdownMenu_fade-in__cJFMk .15s ease-out,DropdownMenu_zoom-in__x7YdK .15s ease-out,DropdownMenu_slide-in-from-left__JVDGh .15s ease-out}.DropdownMenu_subContent__svUx-[data-state=open][data-side=top]{animation:DropdownMenu_fade-in__cJFMk .15s ease-out,DropdownMenu_zoom-in__x7YdK .15s ease-out,DropdownMenu_slide-in-from-bottom__HlK53 .15s ease-out}.DropdownMenu_subContent__svUx-[data-state=closed][data-side=bottom],.DropdownMenu_subContent__svUx-[data-state=closed][data-side=left],.DropdownMenu_subContent__svUx-[data-state=closed][data-side=right],.DropdownMenu_subContent__svUx-[data-state=closed][data-side=top]{animation:DropdownMenu_fade-out__dQTVr .1s ease-in,DropdownMenu_zoom-out__O6NNb .1s ease-in}.DropdownMenu_indicator__TCByB{align-items:center;display:flex;height:.875rem;justify-content:center;left:var(--p-2);pointer-events:none;position:absolute;width:.875rem}@keyframes DropdownMenu_fade-in__cJFMk{0%{opacity:0}to{opacity:1}}@keyframes DropdownMenu_fade-out__dQTVr{0%{opacity:1}to{opacity:0}}@keyframes DropdownMenu_zoom-in__x7YdK{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes DropdownMenu_zoom-out__O6NNb{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.95)}}@keyframes DropdownMenu_slide-in-from-top__S6fwM{0%{opacity:0;transform:translateY(-.5rem)}to{opacity:1;transform:translateY(0)}}@keyframes DropdownMenu_slide-in-from-right__x7eXI{0%{opacity:0;transform:translateX(.5rem)}to{opacity:1;transform:translateX(0)}}@keyframes DropdownMenu_slide-in-from-left__JVDGh{0%{opacity:0;transform:translateX(-.5rem)}to{opacity:1;transform:translateX(0)}}@keyframes DropdownMenu_slide-in-from-bottom__HlK53{0%{opacity:0;transform:translateY(.5rem)}to{opacity:1;transform:translateY(0)}}";
|
|
4
|
+
var S = {"content":"DropdownMenu_content__OlE4W","elevation-sm":"DropdownMenu_elevation-sm__YxqSi","elevation-md":"DropdownMenu_elevation-md__-Bfe-","elevation-lg":"DropdownMenu_elevation-lg__b-ucu","fade-in":"DropdownMenu_fade-in__cJFMk","zoom-in":"DropdownMenu_zoom-in__x7YdK","fade-out":"DropdownMenu_fade-out__dQTVr","zoom-out":"DropdownMenu_zoom-out__O6NNb","slide-in-from-top":"DropdownMenu_slide-in-from-top__S6fwM","slide-in-from-right":"DropdownMenu_slide-in-from-right__x7eXI","slide-in-from-left":"DropdownMenu_slide-in-from-left__JVDGh","slide-in-from-bottom":"DropdownMenu_slide-in-from-bottom__HlK53","label":"DropdownMenu_label__IiIlF","item":"DropdownMenu_item__5U8Si","checkboxItem":"DropdownMenu_checkboxItem__L3vB5","radioItem":"DropdownMenu_radioItem__eSRBK","separator":"DropdownMenu_separator__Avmek","shortcut":"DropdownMenu_shortcut__nJhEM","subTrigger":"DropdownMenu_subTrigger__6bIVO","subContent":"DropdownMenu_subContent__svUx-","indicator":"DropdownMenu_indicator__TCByB"};
|
|
5
5
|
styleInject(css_248z);
|
|
6
6
|
|
|
7
7
|
export { S as default };
|
|
@@ -2,8 +2,35 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { Fragment as Fragment$1 } from 'react';
|
|
4
4
|
import { Link } from 'react-router-dom';
|
|
5
|
-
import
|
|
5
|
+
import '../../Sidebar/sidebarContext.js';
|
|
6
|
+
import '../../Tooltip/Tooltip.js';
|
|
7
|
+
import '../../../../tools/env.js';
|
|
8
|
+
import '@homecode/ui';
|
|
9
|
+
import '../../Sidebar/SidebarProvider/SidebarProvider.styl.js';
|
|
10
|
+
import '@phosphor-icons/react';
|
|
11
|
+
import '@radix-ui/react-dialog';
|
|
12
|
+
import '../../Sheet/Sheet.styl.js';
|
|
13
|
+
import '../../Logo/Logo.styl.js';
|
|
14
|
+
import '../../Sidebar/Sidebar.styl.js';
|
|
15
|
+
import '../../SmartTextTruncate/SmartTextTruncate.js';
|
|
16
|
+
import '../../Sidebar/SidebarResizeHandle/SidebarResizeHandle.styl.js';
|
|
17
|
+
import { SidebarTrigger } from '../../Sidebar/SidebarTrigger/SidebarTrigger.js';
|
|
18
|
+
import '../../Sidebar/SidebarRail/SidebarRail.styl.js';
|
|
19
|
+
import '../../Sidebar/SidebarFooter/SidebarFooter.styl.js';
|
|
20
|
+
import '@radix-ui/react-separator';
|
|
21
|
+
import '../../Separator/Separator.styl.js';
|
|
22
|
+
import '../../Sidebar/SidebarSeparator/SidebarSeparator.styl.js';
|
|
23
|
+
import '../../Sidebar/SidebarContent/SidebarContent.styl.js';
|
|
24
|
+
import '../../Sidebar/SidebarGroup/SidebarGroup.styl.js';
|
|
25
|
+
import '@radix-ui/react-slot';
|
|
26
|
+
import '../../Sidebar/SidebarGroupAction/SidebarGroupAction.styl.js';
|
|
27
|
+
import '../../Sidebar/SidebarMenu/SidebarMenu.styl.js';
|
|
28
|
+
import '../../Button/Button.styl.js';
|
|
6
29
|
import { SlashIcon } from 'lucide-react';
|
|
30
|
+
import '../../Sidebar/SidebarMenuButton/SidebarMenuButton.styl.js';
|
|
31
|
+
import '../../Sidebar/SidebarMenuAction/SidebarMenuAction.styl.js';
|
|
32
|
+
import '../../Sidebar/SidebarMenuSub/SidebarMenuSub.styl.js';
|
|
33
|
+
import '../../Sidebar/SidebarMenuSubButton/SidebarMenuSubButton.styl.js';
|
|
7
34
|
import S from './Breadcrumbs.styl.js';
|
|
8
35
|
|
|
9
36
|
function Breadcrumbs({ className, items, children, clientLogo, companyName,
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useRef, useCallback } from 'react';
|
|
3
|
+
import { notifyPanelWidthDragStart, notifyPanelWidthDragEnd } from '../SmartTextTruncate/SmartTextTruncate.js';
|
|
4
|
+
import useElemDrag from '../../../hooks/useDragElem.js';
|
|
5
|
+
|
|
6
|
+
function PanelResizeHandle({ className, edge, isActive, startWidthPx, getShellWidth, onDragWidth, onDragComplete, ...props }) {
|
|
7
|
+
const handleRef = useRef(null);
|
|
8
|
+
const startWidthRef = useRef(0);
|
|
9
|
+
const lastRawRef = useRef(0);
|
|
10
|
+
const handleDrag = useCallback((delta) => {
|
|
11
|
+
notifyPanelWidthDragStart();
|
|
12
|
+
const shellW = getShellWidth();
|
|
13
|
+
if (shellW <= 0)
|
|
14
|
+
return;
|
|
15
|
+
const raw = edge === 'trailing'
|
|
16
|
+
? startWidthRef.current + delta.x
|
|
17
|
+
: startWidthRef.current - delta.x;
|
|
18
|
+
lastRawRef.current = raw;
|
|
19
|
+
onDragWidth(raw);
|
|
20
|
+
}, [edge, getShellWidth, onDragWidth]);
|
|
21
|
+
const handleDragStart = useCallback((e) => {
|
|
22
|
+
startWidthRef.current = startWidthPx;
|
|
23
|
+
lastRawRef.current = startWidthPx;
|
|
24
|
+
handleRef.current?.setPointerCapture(e.pointerId);
|
|
25
|
+
}, [startWidthPx]);
|
|
26
|
+
const handleDragEnd = useCallback((e) => {
|
|
27
|
+
onDragComplete?.(lastRawRef.current);
|
|
28
|
+
notifyPanelWidthDragEnd();
|
|
29
|
+
try {
|
|
30
|
+
handleRef.current?.releasePointerCapture(e.pointerId);
|
|
31
|
+
}
|
|
32
|
+
catch {
|
|
33
|
+
// Capture already released
|
|
34
|
+
}
|
|
35
|
+
startWidthRef.current = 0;
|
|
36
|
+
}, [onDragComplete]);
|
|
37
|
+
useElemDrag({
|
|
38
|
+
elem: handleRef,
|
|
39
|
+
onDrag: handleDrag,
|
|
40
|
+
onDragStart: handleDragStart,
|
|
41
|
+
onDragEnd: handleDragEnd,
|
|
42
|
+
isActive,
|
|
43
|
+
});
|
|
44
|
+
if (!isActive) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return (jsx("div", { ref: handleRef, "data-slot": "panel-resize-handle", "data-edge": edge, className: className, ...props }));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export { PanelResizeHandle };
|