@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.
Files changed (136) hide show
  1. package/dist/agent-glossary/content-prompt.generated.ts +28 -23
  2. package/dist/agent-glossary/content.generated.ts +28 -23
  3. package/dist/agent-glossary/content.index.md +1 -1
  4. package/dist/agent-glossary/content.md +28 -23
  5. package/dist/agent-glossary/content.prompt.md +28 -23
  6. package/dist/agent-glossary/workspace.generated.ts +1 -1
  7. package/dist/agent-glossary/workspace.index.md +1 -1
  8. package/dist/agent-glossary/workspace.md +1 -1
  9. package/dist/esm/components/ui/Chat/ChatChrome/ChatChrome.js +28 -3
  10. package/dist/esm/components/ui/Chat/ChatSheet/useChatPanelChromeModel.js +31 -1
  11. package/dist/esm/components/ui/DropdownMenu/DropdownMenu.styl.js +2 -2
  12. package/dist/esm/components/ui/Page/Breadcrumbs/Breadcrumbs.js +28 -1
  13. package/dist/esm/components/ui/PanelResizeHandle/PanelResizeHandle.js +50 -0
  14. package/dist/esm/components/ui/Sidebar/Sidebar.styl.js +3 -3
  15. package/dist/esm/components/ui/Sidebar/SidebarAside.js +36 -0
  16. package/dist/esm/components/ui/Sidebar/SidebarContent/SidebarContent.js +13 -0
  17. package/dist/esm/components/ui/Sidebar/SidebarContent/SidebarContent.styl.js +7 -0
  18. package/dist/esm/components/ui/Sidebar/SidebarFooter/SidebarFooter.js +9 -0
  19. package/dist/esm/components/ui/Sidebar/SidebarFooter/SidebarFooter.styl.js +7 -0
  20. package/dist/esm/components/ui/Sidebar/SidebarGroup/SidebarGroup.js +9 -0
  21. package/dist/esm/components/ui/Sidebar/SidebarGroup/SidebarGroup.styl.js +7 -0
  22. package/dist/esm/components/ui/Sidebar/SidebarGroupAction/SidebarGroupAction.js +11 -0
  23. package/dist/esm/components/ui/Sidebar/SidebarGroupAction/SidebarGroupAction.styl.js +7 -0
  24. package/dist/esm/components/ui/Sidebar/SidebarMenu/SidebarMenu.js +15 -0
  25. package/dist/esm/components/ui/Sidebar/SidebarMenu/SidebarMenu.styl.js +7 -0
  26. package/dist/esm/components/ui/Sidebar/SidebarMenuAction/SidebarMenuAction.js +11 -0
  27. package/dist/esm/components/ui/Sidebar/SidebarMenuAction/SidebarMenuAction.styl.js +7 -0
  28. package/dist/esm/components/ui/Sidebar/SidebarMenuButton/SidebarMenuButton.js +16 -0
  29. package/dist/esm/components/ui/Sidebar/SidebarMenuButton/SidebarMenuButton.styl.js +7 -0
  30. package/dist/esm/components/ui/Sidebar/SidebarMenuSub/SidebarMenuSub.js +12 -0
  31. package/dist/esm/components/ui/Sidebar/SidebarMenuSub/SidebarMenuSub.styl.js +7 -0
  32. package/dist/esm/components/ui/Sidebar/SidebarMenuSubButton/SidebarMenuSubButton.js +32 -0
  33. package/dist/esm/components/ui/Sidebar/SidebarMenuSubButton/SidebarMenuSubButton.styl.js +7 -0
  34. package/dist/esm/components/ui/Sidebar/SidebarProvider/SidebarProvider.js +314 -0
  35. package/dist/esm/components/ui/Sidebar/SidebarProvider/SidebarProvider.styl.js +7 -0
  36. package/dist/esm/components/ui/Sidebar/SidebarRail/SidebarRail.js +11 -0
  37. package/dist/esm/components/ui/Sidebar/SidebarRail/SidebarRail.styl.js +7 -0
  38. package/dist/esm/components/ui/Sidebar/SidebarResizeHandle/SidebarResizeHandle.js +26 -0
  39. package/dist/esm/components/ui/Sidebar/SidebarResizeHandle/SidebarResizeHandle.styl.js +7 -0
  40. package/dist/esm/components/ui/Sidebar/SidebarSeparator/SidebarSeparator.js +10 -0
  41. package/dist/esm/components/ui/Sidebar/SidebarSeparator/SidebarSeparator.styl.js +7 -0
  42. package/dist/esm/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.js +16 -0
  43. package/dist/esm/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.styl.js +7 -0
  44. package/dist/esm/components/ui/Sidebar/sidebarConstants.js +7 -0
  45. package/dist/esm/components/ui/Sidebar/sidebarContext.js +28 -0
  46. package/dist/esm/components/ui/Sidebar/sidebarUtils.js +41 -0
  47. package/dist/esm/components/widgets/DriversComparisonChart/DriversComparisonChart.js +26 -5
  48. package/dist/esm/components/widgets/PerformanceChart/PerformanceTable.js +26 -4
  49. package/dist/esm/components/widgets/SidebarDatasetsItemsGrouped/SidebarDatasetsItemsGrouped.js +28 -1
  50. package/dist/esm/index.js +18 -1
  51. package/dist/esm/types/src/components/ui/PanelResizeHandle/PanelResizeHandle.d.ts +9 -0
  52. package/dist/esm/types/src/components/ui/Sidebar/Sidebar.d.ts +19 -106
  53. package/dist/esm/types/src/components/ui/Sidebar/Sidebar.types.d.ts +41 -0
  54. package/dist/esm/types/src/components/ui/Sidebar/SidebarAside.d.ts +2 -0
  55. package/dist/esm/types/src/components/ui/Sidebar/SidebarContent/SidebarContent.d.ts +3 -0
  56. package/dist/esm/types/src/components/ui/Sidebar/SidebarFooter/SidebarFooter.d.ts +2 -0
  57. package/dist/esm/types/src/components/ui/Sidebar/SidebarGroup/SidebarGroup.d.ts +2 -0
  58. package/dist/esm/types/src/components/ui/Sidebar/SidebarGroupAction/SidebarGroupAction.d.ts +4 -0
  59. package/dist/esm/types/src/components/ui/Sidebar/SidebarMenu/SidebarMenu.d.ts +4 -0
  60. package/dist/esm/types/src/components/ui/Sidebar/SidebarMenuAction/SidebarMenuAction.d.ts +5 -0
  61. package/dist/esm/types/src/components/ui/Sidebar/SidebarMenuButton/SidebarMenuButton.d.ts +10 -0
  62. package/dist/esm/types/src/components/ui/Sidebar/SidebarMenuSub/SidebarMenuSub.d.ts +3 -0
  63. package/dist/esm/types/src/components/ui/Sidebar/SidebarMenuSubButton/SidebarMenuSubButton.d.ts +9 -0
  64. package/dist/esm/types/src/components/ui/Sidebar/SidebarProvider/SidebarProvider.d.ts +11 -0
  65. package/dist/esm/types/src/components/ui/Sidebar/SidebarRail/SidebarRail.d.ts +2 -0
  66. package/dist/esm/types/src/components/ui/Sidebar/SidebarResizeHandle/SidebarResizeHandle.d.ts +4 -0
  67. package/dist/esm/types/src/components/ui/Sidebar/SidebarSeparator/SidebarSeparator.d.ts +3 -0
  68. package/dist/esm/types/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.d.ts +3 -0
  69. package/dist/esm/types/src/components/ui/Sidebar/sidebarConstants.d.ts +5 -0
  70. package/dist/esm/types/src/components/ui/Sidebar/sidebarContext.d.ts +7 -0
  71. package/dist/esm/types/src/components/ui/Sidebar/sidebarUtils.d.ts +3 -0
  72. package/package.json +1 -1
  73. package/src/components/ui/ChartAreaInteractive/AGENT.md +0 -4
  74. package/src/components/ui/Chat/ChatChrome/ChatChrome.tsx +5 -2
  75. package/src/components/ui/DropdownMenu/DropdownMenu.styl +4 -1
  76. package/src/components/ui/PanelResizeHandle/PanelResizeHandle.tsx +89 -0
  77. package/src/components/ui/Sidebar/Sidebar.styl +23 -621
  78. package/src/components/ui/Sidebar/Sidebar.styl.d.ts +0 -33
  79. package/src/components/ui/Sidebar/Sidebar.tsx +25 -1145
  80. package/src/components/ui/Sidebar/Sidebar.types.ts +46 -0
  81. package/src/components/ui/Sidebar/SidebarAside.tsx +92 -0
  82. package/src/components/ui/Sidebar/SidebarContent/SidebarContent.styl +27 -0
  83. package/src/components/ui/Sidebar/SidebarContent/SidebarContent.styl.d.ts +7 -0
  84. package/src/components/ui/Sidebar/SidebarContent/SidebarContent.tsx +29 -0
  85. package/src/components/ui/Sidebar/SidebarFooter/SidebarFooter.styl +7 -0
  86. package/src/components/ui/Sidebar/SidebarFooter/SidebarFooter.styl.d.ts +7 -0
  87. package/src/components/ui/Sidebar/SidebarFooter/SidebarFooter.tsx +15 -0
  88. package/src/components/ui/Sidebar/SidebarGroup/SidebarGroup.styl +10 -0
  89. package/src/components/ui/Sidebar/SidebarGroup/SidebarGroup.styl.d.ts +7 -0
  90. package/src/components/ui/Sidebar/SidebarGroup/SidebarGroup.tsx +15 -0
  91. package/src/components/ui/Sidebar/SidebarGroupAction/SidebarGroupAction.styl +34 -0
  92. package/src/components/ui/Sidebar/SidebarGroupAction/SidebarGroupAction.styl.d.ts +7 -0
  93. package/src/components/ui/Sidebar/SidebarGroupAction/SidebarGroupAction.tsx +23 -0
  94. package/src/components/ui/Sidebar/SidebarMenu/SidebarMenu.styl +60 -0
  95. package/src/components/ui/Sidebar/SidebarMenu/SidebarMenu.styl.d.ts +12 -0
  96. package/src/components/ui/Sidebar/SidebarMenu/SidebarMenu.tsx +40 -0
  97. package/src/components/ui/Sidebar/SidebarMenuAction/SidebarMenuAction.styl +73 -0
  98. package/src/components/ui/Sidebar/SidebarMenuAction/SidebarMenuAction.styl.d.ts +8 -0
  99. package/src/components/ui/Sidebar/SidebarMenuAction/SidebarMenuAction.tsx +31 -0
  100. package/src/components/ui/Sidebar/SidebarMenuButton/SidebarMenuButton.styl +107 -0
  101. package/src/components/ui/Sidebar/SidebarMenuButton/SidebarMenuButton.styl.d.ts +15 -0
  102. package/src/components/ui/Sidebar/SidebarMenuButton/SidebarMenuButton.tsx +82 -0
  103. package/src/components/ui/Sidebar/SidebarMenuSub/SidebarMenuSub.styl +39 -0
  104. package/src/components/ui/Sidebar/SidebarMenuSub/SidebarMenuSub.styl.d.ts +8 -0
  105. package/src/components/ui/Sidebar/SidebarMenuSub/SidebarMenuSub.tsx +29 -0
  106. package/src/components/ui/Sidebar/SidebarMenuSubButton/SidebarMenuSubButton.styl +71 -0
  107. package/src/components/ui/Sidebar/SidebarMenuSubButton/SidebarMenuSubButton.styl.d.ts +8 -0
  108. package/src/components/ui/Sidebar/SidebarMenuSubButton/SidebarMenuSubButton.tsx +80 -0
  109. package/src/components/ui/Sidebar/SidebarProvider/SidebarProvider.styl +45 -0
  110. package/src/components/ui/Sidebar/SidebarProvider/SidebarProvider.styl.d.ts +9 -0
  111. package/src/components/ui/Sidebar/SidebarProvider/SidebarProvider.tsx +447 -0
  112. package/src/components/ui/Sidebar/SidebarRail/SidebarRail.styl +42 -0
  113. package/src/components/ui/Sidebar/SidebarRail/SidebarRail.styl.d.ts +7 -0
  114. package/src/components/ui/Sidebar/SidebarRail/SidebarRail.tsx +22 -0
  115. package/src/components/ui/Sidebar/SidebarResizeHandle/SidebarResizeHandle.styl +37 -0
  116. package/src/components/ui/Sidebar/SidebarResizeHandle/SidebarResizeHandle.styl.d.ts +7 -0
  117. package/src/components/ui/Sidebar/SidebarResizeHandle/SidebarResizeHandle.tsx +54 -0
  118. package/src/components/ui/Sidebar/SidebarSeparator/SidebarSeparator.styl +7 -0
  119. package/src/components/ui/Sidebar/SidebarSeparator/SidebarSeparator.styl.d.ts +7 -0
  120. package/src/components/ui/Sidebar/SidebarSeparator/SidebarSeparator.tsx +20 -0
  121. package/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.styl +11 -0
  122. package/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.styl.d.ts +7 -0
  123. package/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.tsx +34 -0
  124. package/src/components/ui/Sidebar/sidebarConstants.ts +6 -0
  125. package/src/components/ui/Sidebar/sidebarContext.tsx +46 -0
  126. package/src/components/ui/Sidebar/sidebarUtils.ts +47 -0
  127. package/src/components/widgets/DriverMap/AGENT.md +0 -4
  128. package/src/components/widgets/DriversComparisonChart/AGENT.md +0 -4
  129. package/src/components/widgets/PerformanceChart/AGENT.md +0 -4
  130. package/src/components/widgets/SidebarDatasetsItemsGrouped/AGENT.md +28 -11
  131. package/src/docs/components/DocsGuidance/DocsGuidance.styl +1 -0
  132. package/src/docs/components/DocsSidebar/DocsSidebar.tsx +14 -8
  133. package/src/docs/pages/SmartTextTruncatePage.styl +2 -14
  134. package/src/docs/pages/SmartTextTruncatePage.styl.d.ts +0 -1
  135. package/src/docs/pages/SmartTextTruncatePage.tsx +0 -6
  136. 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
- # SidebarDatasetsItemsGrouped
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
- Renders: expandable sidebar groups of datasets (by target type, regions, or categories).
297
+ ## When to use
310
298
 
311
- Use when: app shell needs grouped dataset navigation.
312
- Not when: in-page or report content (no sidebar slot).
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
- Host provides:
304
+ ## When not to use
315
305
 
316
- - \`datasets\` list (\`SidebarDatasetsItemsGroupedDataset\`)
317
- - \`groupBy\`, \`selectedDatasetId\`, \`onDatasetClick\`
318
- - Optional \`preItems\` / \`postItems\`, \`defaultExpandedGroupNames\`
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
- Report tile: Not used in report tiles.
310
+ ## Do
321
311
 
322
- Requires: \`datasets\`; \`groupBy\`; \`onDatasetClick\` for navigation.
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/loading: empty \`datasets\` renders no groups; loading handled by host before pass-in.`;
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
- # SidebarDatasetsItemsGrouped
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
- Renders: expandable sidebar groups of datasets (by target type, regions, or categories).
297
+ ## When to use
310
298
 
311
- Use when: app shell needs grouped dataset navigation.
312
- Not when: in-page or report content (no sidebar slot).
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
- Host provides:
304
+ ## When not to use
315
305
 
316
- - \`datasets\` list (\`SidebarDatasetsItemsGroupedDataset\`)
317
- - \`groupBy\`, \`selectedDatasetId\`, \`onDatasetClick\`
318
- - Optional \`preItems\` / \`postItems\`, \`defaultExpandedGroupNames\`
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
- Report tile: Not used in report tiles.
310
+ ## Do
321
311
 
322
- Requires: \`datasets\`; \`groupBy\`; \`onDatasetClick\` for navigation.
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/loading: empty \`datasets\` renders no groups; loading handled by host before pass-in.`;
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) — Renders: expandable sidebar groups of datasets (by target type, regions, or categories).
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
- # SidebarDatasetsItemsGrouped
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
- Renders: expandable sidebar groups of datasets (by target type, regions, or categories).
296
+ ## When to use
309
297
 
310
- Use when: app shell needs grouped dataset navigation.
311
- Not when: in-page or report content (no sidebar slot).
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
- Host provides:
303
+ ## When not to use
314
304
 
315
- - `datasets` list (`SidebarDatasetsItemsGroupedDataset`)
316
- - `groupBy`, `selectedDatasetId`, `onDatasetClick`
317
- - Optional `preItems` / `postItems`, `defaultExpandedGroupNames`
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
- Report tile: Not used in report tiles.
309
+ ## Do
320
310
 
321
- Requires: `datasets`; `groupBy`; `onDatasetClick` for navigation.
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/loading: empty `datasets` renders no groups; loading handled by host before pass-in.
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
- # SidebarDatasetsItemsGrouped
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
- Renders: expandable sidebar groups of datasets (by target type, regions, or categories).
296
+ ## When to use
309
297
 
310
- Use when: app shell needs grouped dataset navigation.
311
- Not when: in-page or report content (no sidebar slot).
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
- Host provides:
303
+ ## When not to use
314
304
 
315
- - `datasets` list (`SidebarDatasetsItemsGroupedDataset`)
316
- - `groupBy`, `selectedDatasetId`, `onDatasetClick`
317
- - Optional `preItems` / `postItems`, `defaultExpandedGroupNames`
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
- Report tile: Not used in report tiles.
309
+ ## Do
320
310
 
321
- Requires: `datasets`; `groupBy`; `onDatasetClick` for navigation.
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/loading: empty `datasets` renders no groups; loading handled by host before pass-in.
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) — Renders: expandable sidebar groups of datasets (by target type, regions, or categories).
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) — Renders: expandable sidebar groups of datasets (by target type, regions, or categories).
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) — Renders: expandable sidebar groups of datasets (by target type, regions, or categories).
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 { PanelResizeHandle } from '../../Sidebar/Sidebar.js';
11
- import SidebarStem from '../../Sidebar/Sidebar.styl.js';
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(SidebarStem.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) => {
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 { useSidebarState, useSidebarActions, DISMISS_CHAT_FOR_LAYOUT_EVENT } from '../../Sidebar/Sidebar.js';
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;padding:6px var(--p-2);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","item":"DropdownMenu_item__5U8Si","checkboxItem":"DropdownMenu_checkboxItem__L3vB5","radioItem":"DropdownMenu_radioItem__eSRBK","label":"DropdownMenu_label__IiIlF","separator":"DropdownMenu_separator__Avmek","shortcut":"DropdownMenu_shortcut__nJhEM","subTrigger":"DropdownMenu_subTrigger__6bIVO","subContent":"DropdownMenu_subContent__svUx-","indicator":"DropdownMenu_indicator__TCByB"};
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 { SidebarTrigger } from '../../Sidebar/Sidebar.js';
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 };