@sybilion/uilib 1.3.97 → 1.3.99

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 (30) hide show
  1. package/dist/esm/components/ui/AnalysesSelector/AnalysesSelector.js +4 -4
  2. package/dist/esm/components/ui/Button/Button.styl.js +1 -1
  3. package/dist/esm/components/ui/Chart/Chart.js +5 -5
  4. package/dist/esm/components/ui/Chart/components/BaseChartWrapper.js +12 -10
  5. package/dist/esm/components/ui/Chart/components/BaseChartWrapper.styl.js +2 -2
  6. package/dist/esm/components/ui/Chat/ChatMessage/AgentMessageContent.helpers.js +19 -7
  7. package/dist/esm/components/ui/Dialog/Dialog.js +7 -6
  8. package/dist/esm/components/ui/Select/Select.styl.js +1 -1
  9. package/dist/esm/components/widgets/DriverCard/DriverPerformanceChart.js +5 -5
  10. package/dist/esm/types/src/components/ui/Chart/Chart.d.ts +2 -2
  11. package/dist/esm/types/src/components/ui/Chart/components/BaseChartWrapper.d.ts +7 -1
  12. package/dist/esm/types/src/components/ui/Chat/ChatMessage/AgentMessageContent.helpers.d.ts +1 -1
  13. package/dist/esm/types/src/components/ui/Dialog/Dialog.d.ts +1 -1
  14. package/dist/esm/types/src/components/ui/Dialog/Dialog.types.d.ts +2 -0
  15. package/dist/esm/types/src/components/ui/SmartTextTruncate/SmartTextTruncate.types.d.ts +1 -3
  16. package/package.json +1 -1
  17. package/src/components/ui/AnalysesSelector/AnalysesSelector.tsx +13 -14
  18. package/src/components/ui/Button/Button.styl +5 -8
  19. package/src/components/ui/Chart/Chart.tsx +5 -1
  20. package/src/components/ui/Chart/components/BaseChartWrapper.styl +9 -0
  21. package/src/components/ui/Chart/components/BaseChartWrapper.styl.d.ts +2 -0
  22. package/src/components/ui/Chart/components/BaseChartWrapper.tsx +62 -14
  23. package/src/components/ui/Chat/ChatMessage/AgentMessageContent.helpers.test.tsx +17 -0
  24. package/src/components/ui/Chat/ChatMessage/AgentMessageContent.helpers.tsx +23 -7
  25. package/src/components/ui/Dialog/Dialog.tsx +13 -11
  26. package/src/components/ui/Dialog/Dialog.types.ts +3 -0
  27. package/src/components/ui/Select/Select.styl +4 -4
  28. package/src/components/ui/SmartTextTruncate/SmartTextTruncate.types.ts +1 -3
  29. package/src/docs/components/DocsSidebar/DocsSidebar.tsx +7 -2
  30. package/src/docs/pages/AnalysesSelectorPage.tsx +3 -4
@@ -1,14 +1,14 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
- import cn from 'classnames';
2
+ import { EyeClosedIcon, EyeIcon } from '@phosphor-icons/react';
3
+ import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from '../Select/Select.js';
3
4
  import { useRef, useMemo, useEffect } from 'react';
4
5
  import { AnalysisLineIcon } from '../AnalysisLineIcon/AnalysisLineIcon.js';
5
6
  import { Badge } from '../Badge/Badge.js';
6
7
  import { LabelWithId } from '../LabelWithId/LabelWithId.js';
7
- import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from '../Select/Select.js';
8
+ import S from './AnalysesSelector.styl.js';
8
9
  import { TextShimmer } from '../TextShimmer/TextShimmer.js';
10
+ import cn from 'classnames';
9
11
  import { getLatestByUpdatedAt } from '../../../utils/analysisDate.js';
10
- import { EyeClosedIcon, EyeIcon } from '@phosphor-icons/react';
11
- import S from './AnalysesSelector.styl.js';
12
12
 
13
13
  const isFailed = (item) => item.status?.toLowerCase() === 'fail';
14
14
  const isDashedIcon = (item) => item.id !== -1;
@@ -1,6 +1,6 @@
1
1
  import styleInject from 'style-inject';
2
2
 
3
- var css_248z = ".Button_root__NT88y{align-items:center;border:0;border-radius:var(--radius-button);cursor:pointer;display:inline-flex;flex-shrink:0;font-family:Manrope,sans-serif;font-size:15px;font-weight:500;gap:10px;justify-content:center;line-height:1;outline:none;transition:all var(--dur-base) var(--ease-standard);white-space:nowrap}.Button_root__NT88y:disabled{opacity:.5;pointer-events:none}.Button_root__NT88y:focus-visible{border-color:var(--ring);ring:3px var(--ring-50)}.Button_root__NT88y[aria-invalid=true]{border-color:var(--destructive);ring:3px var(--destructive-200)}.Button_root__NT88y svg{flex-shrink:0;pointer-events:none}.Button_default__xZ4lt{background-color:var(--primary);color:var(--primary-foreground)}.Button_default__xZ4lt:hover{background-color:var(--sb-gray-800)}.Button_destructive__g1Ume{background-color:var(--destructive);color:#fff}.Button_destructive__g1Ume:hover{background-color:var(--destructive-900)}.Button_destructive__g1Ume:focus-visible{ring:3px var(--destructive-200)}.dark .Button_destructive__g1Ume{background-color:var(--destructive-600)}.dark .Button_destructive__g1Ume:focus-visible{ring:3px var(--destructive-400)}.Button_outline__E4R5l{background-color:var(--background);border:1px solid var(--border)}.Button_outline__E4R5l:hover{background-color:var(--sb-gray-50);border-color:var(--border)}.dark .Button_outline__E4R5l{background-color:var(--sb-gray-900);border-color:var(--border)}.dark .Button_outline__E4R5l:hover{background-color:var(--sb-gray-800)}.Button_secondary__ptn3U{background-color:var(--secondary);color:var(--secondary-foreground)}.Button_secondary__ptn3U:hover{background-color:var(--secondary-800)}.Button_ghost__okHgV:hover{background-color:var(--accent);color:var(--accent-foreground)}.dark .Button_ghost__okHgV:hover{background-color:var(--accent-500)}.Button_link__yHy2o{color:var(--primary);text-decoration:underline;text-underline-offset:4px}.Button_link__yHy2o:hover{text-decoration:underline}.Button_sizeSm__skgOG{border-radius:var(--p-5);font-size:13px;height:30px;padding:0 14px}.Button_sizeMd__7MeqU{border-radius:var(--p-4);height:44px;padding:var(--p-3) var(--p-4)}.Button_sizeLg__Xfon-{border-radius:var(--p-4);font-size:var(--text-base);height:48px;padding:0 var(--p-6)}.Button_sizeIcon__9ef49{height:48px;padding:0;width:48px}.Button_sizeIcon__9ef49.Button_sizeSm__skgOG{height:36px;padding:0;width:36px}.Button_sizeIcon__9ef49.Button_sizeMd__7MeqU{height:48px;padding:0;width:48px}.Button_sizeIcon__9ef49.Button_sizeLg__Xfon-{height:56px;padding:0;width:56px}";
3
+ var css_248z = ".Button_root__NT88y{align-items:center;border:0;border-radius:var(--radius-button);cursor:pointer;display:inline-flex;flex-shrink:0;font-family:Manrope,sans-serif;font-size:15px;font-weight:500;gap:10px;justify-content:center;line-height:1;outline:none;transition:all var(--dur-base) var(--ease-standard);white-space:nowrap}.Button_root__NT88y:disabled{opacity:.5;pointer-events:none}.Button_root__NT88y:focus-visible{border-color:var(--ring);ring:3px var(--ring-50)}.Button_root__NT88y[aria-invalid=true]{border-color:var(--destructive);ring:3px var(--destructive-200)}.Button_root__NT88y svg{flex-shrink:0;pointer-events:none}.Button_default__xZ4lt{background-color:var(--primary);color:var(--primary-foreground)}.Button_default__xZ4lt:hover{background-color:var(--sb-gray-800)}.Button_destructive__g1Ume{background-color:var(--destructive-900);color:#fff}.Button_destructive__g1Ume:hover{background-color:var(--destructive-600)}.Button_destructive__g1Ume:focus-visible{ring:3px var(--destructive-200)}.dark .Button_destructive__g1Ume:focus-visible{ring:3px var(--destructive-400)}.Button_outline__E4R5l{background-color:var(--background);border:1px solid var(--border)}.Button_outline__E4R5l:hover{background-color:var(--sb-gray-50);border-color:var(--border)}.dark .Button_outline__E4R5l{background-color:var(--sb-gray-900);border-color:var(--border)}.dark .Button_outline__E4R5l:hover{background-color:var(--sb-gray-800)}.Button_secondary__ptn3U{background-color:var(--secondary);color:var(--secondary-foreground)}.Button_secondary__ptn3U:hover{background-color:var(--secondary-800)}.Button_ghost__okHgV:hover{background-color:var(--accent);color:var(--accent-foreground)}.dark .Button_ghost__okHgV:hover{background-color:var(--accent-500)}.Button_link__yHy2o{color:var(--primary);text-decoration:underline;text-underline-offset:4px}.Button_link__yHy2o:hover{text-decoration:underline}.Button_sizeSm__skgOG{border-radius:var(--p-5);font-size:13px;height:30px;padding:0 14px}.Button_sizeMd__7MeqU{border-radius:var(--p-4);height:44px;padding:0 var(--p-4)}.Button_sizeLg__Xfon-{border-radius:var(--p-4);font-size:var(--text-base);height:48px;padding:0 var(--p-6)}.Button_sizeIcon__9ef49{height:48px;padding:0;width:48px}.Button_sizeIcon__9ef49.Button_sizeSm__skgOG{height:36px;padding:0;width:36px}.Button_sizeIcon__9ef49.Button_sizeMd__7MeqU{height:48px;padding:0;width:48px}.Button_sizeIcon__9ef49.Button_sizeLg__Xfon-{height:56px;padding:0;width:56px}";
4
4
  var S = {"root":"Button_root__NT88y","default":"Button_default__xZ4lt","destructive":"Button_destructive__g1Ume","outline":"Button_outline__E4R5l","secondary":"Button_secondary__ptn3U","ghost":"Button_ghost__okHgV","link":"Button_link__yHy2o","sizeSm":"Button_sizeSm__skgOG","sizeMd":"Button_sizeMd__7MeqU","sizeLg":"Button_sizeLg__Xfon-","sizeIcon":"Button_sizeIcon__9ef49"};
5
5
  styleInject(css_248z);
6
6
 
@@ -5,16 +5,16 @@ import 'classnames';
5
5
  import 'react';
6
6
  import './Chart.context.js';
7
7
  import './Chart.styl.js';
8
+ import '@phosphor-icons/react';
9
+ import '@radix-ui/react-select';
10
+ import 'lucide-react';
11
+ import '../Select/Select.styl.js';
8
12
  import '../AnalysisLineIcon/AnalysisLineIcon.styl.js';
9
13
  import '@radix-ui/react-slot';
10
14
  import '../Badge/Badge.styl.js';
11
15
  import '../LabelWithId/LabelWithId.styl.js';
12
- import '@radix-ui/react-select';
13
- import 'lucide-react';
14
- import '../Select/Select.styl.js';
15
- import '../TextShimmer/TextShimmer.js';
16
- import '@phosphor-icons/react';
17
16
  import '../AnalysesSelector/AnalysesSelector.styl.js';
17
+ import '../TextShimmer/TextShimmer.js';
18
18
  import './components/CustomChartLegend/CustomChartLegend.styl.js';
19
19
  import '../ChartAreaInteractive/ChartLines.js';
20
20
  import '../Skeleton/Skeleton.styl.js';
@@ -11,6 +11,7 @@ import { formatDate } from '../tools/formatters.js';
11
11
  import S from './BaseChartWrapper.styl.js';
12
12
  import { ChartAxes } from './ChartAxes.js';
13
13
  import { ChartContainer } from './ChartContainer.js';
14
+ import { ChartEmptyState } from './ChartEmptyState/ChartEmptyState.js';
14
15
  import { ChartGrid } from './ChartGrid.js';
15
16
  import { ChartTooltipContent } from './ChartTooltipContent.js';
16
17
  import { CustomChartLegend } from './CustomChartLegend/CustomChartLegend.js';
@@ -40,8 +41,8 @@ function clampTooltipTranslate(args) {
40
41
  * Simple loading component without hooks for better performance
41
42
  * Rendered when chart is waiting in render queue
42
43
  */
43
- const BaseChartWrapperLoading = forwardRef(({ className, height, loadingMessage }, ref) => {
44
- return (jsx("div", { ref: ref, className: cn(S.root, className), children: jsx("div", { className: S.chartLoadingContainer, style: height ? { height: `${height}px` } : undefined, children: loadingMessage || (jsx("div", { className: S.loadingOverlay, children: jsx(Skeleton, { style: { width: '100%', height: '100%' } }) })) }) }));
44
+ const BaseChartWrapperLoading = forwardRef(({ className, loadingComponentClassName, height, loadingMessage }, ref) => {
45
+ return (jsx("div", { ref: ref, className: cn(S.root, className), children: jsx("div", { className: S.chartLoadingContainer, style: height ? { height: `${height}px` } : undefined, children: jsx("div", { "data-slot": "chart", className: S.loadingChartSlot, children: loadingMessage || (jsx("div", { className: cn(S.loadingOverlay, loadingComponentClassName), children: jsx(Skeleton, { style: { width: '100%', height: '100%' } }) })) }) }) }));
45
46
  });
46
47
  BaseChartWrapperLoading.displayName = 'BaseChartWrapperLoading';
47
48
  /**
@@ -49,7 +50,7 @@ BaseChartWrapperLoading.displayName = 'BaseChartWrapperLoading';
49
50
  * Separated to maintain hook order consistency
50
51
  */
51
52
  const BaseChartWrapperContent = forwardRef((props, ref) => {
52
- const { chartConfig = {}, chartData, historicalLineColor, forecastData = [], loading, hasCombinedData, renderId, isDarkTheme, height, className, loadingComponentClassName, footerClassName, chartClassName, xAxisClassName, yAxisClassName, legendClassName, footerActions, quantileBands, quantileBandKey, xMin, xMax, yMin, yMax, autoScaleYAxis = true, formatNumber, formatDate: formatDateFn = formatDate, labelFormatter, onLegendClick, margin, chartType = 'composed', disableAnimation = false, disableLineDrawAnimation = false, showGrid = true, showAxes = true, showTooltip = true, showLegend = true, showChartAxesLegend = true, xAxisLabel, yAxisLabel, showActiveDots = true, overlayElements, hiddenSeries, includeHiddenInYScale = false, excludeLegendIds, onAnalysisSelect, onFailedAnalysisClick, containerProps, error, loadingMessage, noDataMessage = 'No data available', onGridHeightChange, forecastLineStyle = 'dashed', disableHistoricalAnimation = false, onShowAll: _onShowAll, onShowOnly: _onShowOnly, maxVisibleItems, preventDeselection, legendVariant = 'default', legendWidth = 1000, legendMarginLeft = 0, } = props;
53
+ const { chartConfig = {}, chartData, historicalLineColor, forecastData = [], loading, hasCombinedData, renderId, isDarkTheme, height, className, loadingComponentClassName, footerClassName, chartClassName, xAxisClassName, yAxisClassName, legendClassName, footerActions, quantileBands, quantileBandKey, xMin, xMax, yMin, yMax, autoScaleYAxis = true, formatNumber, formatDate: formatDateFn = formatDate, labelFormatter, onLegendClick, margin, chartType = 'composed', disableAnimation = false, disableLineDrawAnimation = false, showGrid = true, showAxes = true, showTooltip = true, showLegend = true, showChartAxesLegend = true, xAxisLabel, yAxisLabel, showActiveDots = true, overlayElements, hiddenSeries, includeHiddenInYScale = false, excludeLegendIds, onAnalysisSelect, onFailedAnalysisClick, containerProps, error, loadingMessage, noDataHint, noDataMessage = 'No data available', noDataStatusTone = 'muted', suppressNoDataState = false, onGridHeightChange, forecastLineStyle = 'dashed', disableHistoricalAnimation = false, onShowAll: _onShowAll, onShowOnly: _onShowOnly, maxVisibleItems, preventDeselection, legendVariant = 'default', legendWidth = 1000, legendMarginLeft = 0, } = props;
53
54
  const [shouldAnimate, setShouldAnimate] = useState(false);
54
55
  const lineDataInitializedRef = useRef(false);
55
56
  const rootRef = useRef(null);
@@ -276,15 +277,16 @@ const BaseChartWrapperContent = forwardRef((props, ref) => {
276
277
  if (!chartData.length) {
277
278
  // If hasCombinedData is true but chartData is empty, data is being processed - wait instead of showing "No data"
278
279
  if (hasCombinedData) {
279
- // Return empty div to wait for chartData to be populated
280
- return jsx("div", { className: cn(S.root, className) });
280
+ return (jsx("div", { className: cn(S.root, className), children: jsx("div", { className: S.emptyChartSizer, style: height ? { minHeight: height } : undefined, "aria-hidden": true }) }));
281
281
  }
282
282
  // If renderId is undefined/null, we're still initializing - wait instead of showing "No data"
283
283
  if (!renderId) {
284
- // Return empty div to wait for initialization to complete
285
- return jsx("div", { className: cn(S.root, className) });
284
+ return (jsx("div", { className: cn(S.root, className), children: jsx("div", { className: S.emptyChartSizer, style: height ? { minHeight: height } : undefined, "aria-hidden": true }) }));
286
285
  }
287
- return (jsx("div", { className: cn(S.root, className), children: jsx("div", { className: S.errorContainer, children: noDataMessage }) }));
286
+ if (suppressNoDataState) {
287
+ return (jsx("div", { className: cn(S.root, className), children: jsx("div", { className: S.emptyChartSizer, style: height ? { minHeight: height } : undefined, "aria-hidden": true }) }));
288
+ }
289
+ return (jsx("div", { className: cn(S.root, className), children: jsx(ChartEmptyState, { variant: "panel", align: "center", hint: noDataHint, status: noDataMessage, statusTone: noDataStatusTone }) }));
288
290
  }
289
291
  // Smart auto-scaling: detect when explicit bounds are too wide
290
292
  // Only apply smart auto-scaling if autoScaleYAxis is not explicitly set to false
@@ -396,11 +398,11 @@ function BaseChartWrapper(props) {
396
398
  }, [renderId, chartData.length, loading, hasCombinedData, legendVariant]);
397
399
  // Show loading skeleton when datasets list is loading (after all hooks are called)
398
400
  if (loading) {
399
- return (jsx(BaseChartWrapperLoading, { ref: containerRef, className: cn(props.className, props.loadingComponentClassName), height: props.height, loadingMessage: props.loadingMessage }));
401
+ return (jsx(BaseChartWrapperLoading, { ref: containerRef, className: props.className, loadingComponentClassName: props.loadingComponentClassName, height: props.height, loadingMessage: props.loadingMessage }));
400
402
  }
401
403
  // If not ready to render, show loading component (no hooks initialized)
402
404
  if (!isReadyToRender) {
403
- return (jsx(BaseChartWrapperLoading, { ref: containerRef, className: cn(props.className, props.loadingComponentClassName), height: props.height, loadingMessage: props.loadingMessage }));
405
+ return (jsx(BaseChartWrapperLoading, { ref: containerRef, className: props.className, loadingComponentClassName: props.loadingComponentClassName, height: props.height, loadingMessage: props.loadingMessage }));
404
406
  }
405
407
  // Render chart content with all hooks
406
408
  return jsx(BaseChartWrapperContent, { ref: containerRef, ...props });
@@ -1,7 +1,7 @@
1
1
  import styleInject from 'style-inject';
2
2
 
3
- var css_248z = ".BaseChartWrapper_chartContainer__J6CIc,.BaseChartWrapper_root__hhfho{min-height:100%}.BaseChartWrapper_root__hhfho{position:relative;width:100%}.BaseChartWrapper_gridLayer__cwJXA{pointer-events:none;position:absolute;z-index:1}.BaseChartWrapper_gridLayer__cwJXA .recharts-cartesian-axis{pointer-events:auto;z-index:1}.BaseChartWrapper_chartLayer__HmBaJ{inset:0;pointer-events:auto;position:relative;z-index:3}.BaseChartWrapper_chartLayer__HmBaJ .recharts-surface{background:transparent}.BaseChartWrapper_chartLayer__HmBaJ .recharts-layer{pointer-events:none}.BaseChartWrapper_chartLayer__HmBaJ .recharts-tooltip-wrapper{visibility:visible!important}.BaseChartWrapper_invisibleAxis__TQ-Zk .recharts-cartesian-axis-tick{visibility:hidden}.BaseChartWrapper_legend__gkSy1{position:absolute;top:100%;width:100%}.BaseChartWrapper_noLegend__jqaPa{display:block}.BaseChartWrapper_hideChartAxesLegend__dgVx- .recharts-cartesian-axis-tick-label{display:none!important}.BaseChartWrapper_chartLoadingContainer__AJP-0{align-items:center;display:flex;height:var(--chart-height);justify-content:center;width:100%}.BaseChartWrapper_loadingOverlay__GcOkA{height:100%;inset:0;opacity:.5;pointer-events:none;position:absolute;transition:opacity .1s ease-out;width:100%;z-index:10}.BaseChartWrapper_loadingOverlay__GcOkA [data-slot=skeleton]{border-radius:var(--p-4)!important}.BaseChartWrapper_loaded__Gj15C .BaseChartWrapper_loadingOverlay__GcOkA{opacity:0}.BaseChartWrapper_errorContainer__1bXy1{align-items:center;color:var(--destructive);display:flex;justify-content:center;min-height:250px}.BaseChartWrapper_errorMessage__veSmB{color:var(--destructive)}.BaseChartWrapper_noLineDrawAnimation__cyrzV .recharts-line-curve{stroke-dasharray:inherit!important}.BaseChartWrapper_footer__nP5u6{align-items:center;display:flex;gap:var(--p-2);justify-content:space-between}";
4
- var S = {"root":"BaseChartWrapper_root__hhfho","chartContainer":"BaseChartWrapper_chartContainer__J6CIc","gridLayer":"BaseChartWrapper_gridLayer__cwJXA","chartLayer":"BaseChartWrapper_chartLayer__HmBaJ","invisibleAxis":"BaseChartWrapper_invisibleAxis__TQ-Zk","legend":"BaseChartWrapper_legend__gkSy1","noLegend":"BaseChartWrapper_noLegend__jqaPa","hideChartAxesLegend":"BaseChartWrapper_hideChartAxesLegend__dgVx-","chartLoadingContainer":"BaseChartWrapper_chartLoadingContainer__AJP-0","loadingOverlay":"BaseChartWrapper_loadingOverlay__GcOkA","loaded":"BaseChartWrapper_loaded__Gj15C","errorContainer":"BaseChartWrapper_errorContainer__1bXy1","errorMessage":"BaseChartWrapper_errorMessage__veSmB","noLineDrawAnimation":"BaseChartWrapper_noLineDrawAnimation__cyrzV","footer":"BaseChartWrapper_footer__nP5u6"};
3
+ var css_248z = ".BaseChartWrapper_chartContainer__J6CIc,.BaseChartWrapper_root__hhfho{min-height:100%}.BaseChartWrapper_root__hhfho{position:relative;width:100%}.BaseChartWrapper_gridLayer__cwJXA{pointer-events:none;position:absolute;z-index:1}.BaseChartWrapper_gridLayer__cwJXA .recharts-cartesian-axis{pointer-events:auto;z-index:1}.BaseChartWrapper_chartLayer__HmBaJ{inset:0;pointer-events:auto;position:relative;z-index:3}.BaseChartWrapper_chartLayer__HmBaJ .recharts-surface{background:transparent}.BaseChartWrapper_chartLayer__HmBaJ .recharts-layer{pointer-events:none}.BaseChartWrapper_chartLayer__HmBaJ .recharts-tooltip-wrapper{visibility:visible!important}.BaseChartWrapper_invisibleAxis__TQ-Zk .recharts-cartesian-axis-tick{visibility:hidden}.BaseChartWrapper_legend__gkSy1{position:absolute;top:100%;width:100%}.BaseChartWrapper_noLegend__jqaPa{display:block}.BaseChartWrapper_hideChartAxesLegend__dgVx- .recharts-cartesian-axis-tick-label{display:none!important}.BaseChartWrapper_chartLoadingContainer__AJP-0{align-items:center;display:flex;height:var(--chart-height);justify-content:center;width:100%}.BaseChartWrapper_loadingChartSlot__eG2BL{height:100%;position:relative;width:100%}.BaseChartWrapper_loadingOverlay__GcOkA{height:100%;inset:0;opacity:.5;pointer-events:none;position:absolute;transition:opacity .1s ease-out;width:100%;z-index:10}.BaseChartWrapper_loadingOverlay__GcOkA [data-slot=skeleton]{border-radius:var(--p-4)!important}.BaseChartWrapper_loaded__Gj15C .BaseChartWrapper_loadingOverlay__GcOkA{opacity:0}.BaseChartWrapper_errorContainer__1bXy1{align-items:center;color:var(--destructive);display:flex;justify-content:center;min-height:250px}.BaseChartWrapper_emptyChartSizer__Wg--C{min-height:var(--chart-height);width:100%}.BaseChartWrapper_errorMessage__veSmB{color:var(--destructive)}.BaseChartWrapper_noLineDrawAnimation__cyrzV .recharts-line-curve{stroke-dasharray:inherit!important}.BaseChartWrapper_footer__nP5u6{align-items:center;display:flex;gap:var(--p-2);justify-content:space-between}";
4
+ var S = {"root":"BaseChartWrapper_root__hhfho","chartContainer":"BaseChartWrapper_chartContainer__J6CIc","gridLayer":"BaseChartWrapper_gridLayer__cwJXA","chartLayer":"BaseChartWrapper_chartLayer__HmBaJ","invisibleAxis":"BaseChartWrapper_invisibleAxis__TQ-Zk","legend":"BaseChartWrapper_legend__gkSy1","noLegend":"BaseChartWrapper_noLegend__jqaPa","hideChartAxesLegend":"BaseChartWrapper_hideChartAxesLegend__dgVx-","chartLoadingContainer":"BaseChartWrapper_chartLoadingContainer__AJP-0","loadingChartSlot":"BaseChartWrapper_loadingChartSlot__eG2BL","loadingOverlay":"BaseChartWrapper_loadingOverlay__GcOkA","loaded":"BaseChartWrapper_loaded__Gj15C","errorContainer":"BaseChartWrapper_errorContainer__1bXy1","emptyChartSizer":"BaseChartWrapper_emptyChartSizer__Wg--C","errorMessage":"BaseChartWrapper_errorMessage__veSmB","noLineDrawAnimation":"BaseChartWrapper_noLineDrawAnimation__cyrzV","footer":"BaseChartWrapper_footer__nP5u6"};
5
5
  styleInject(css_248z);
6
6
 
7
7
  export { S as default };
@@ -37,18 +37,30 @@ const injectBold = (content) => {
37
37
  length: matches[0].length,
38
38
  };
39
39
  };
40
- /** `_italic_` (underscore) — avoids clashing with `* ` bullet markers. */
40
+ /** `*italic*` or `_italic_` — single `*` only (not `**` or `* ` bullets). */
41
41
  const injectItalic = (content) => {
42
- const matches = content.match(/(?<![A-Za-z0-9])_([^_\n]+?)_(?![A-Za-z0-9])/);
43
- if (!matches || matches.index === undefined)
42
+ const patterns = [
43
+ /(?<![*\\])\*(?!\*)([^*\n]+?)\*(?!\*)/,
44
+ /(?<![A-Za-z0-9])_([^_\n]+?)_(?![A-Za-z0-9])/,
45
+ ];
46
+ let match = null;
47
+ for (const pattern of patterns) {
48
+ const candidate = content.match(pattern);
49
+ if (candidate &&
50
+ candidate.index !== undefined &&
51
+ (match === null || candidate.index < match.index)) {
52
+ match = candidate;
53
+ }
54
+ }
55
+ if (!match || match.index === undefined)
44
56
  return null;
45
- if (isInsideHtmlListOrTable(content, matches.index)) {
57
+ if (isInsideHtmlListOrTable(content, match.index)) {
46
58
  return null;
47
59
  }
48
60
  return {
49
- elem: jsx("em", { children: matches[1] }),
50
- index: matches.index,
51
- length: matches[0].length,
61
+ elem: jsx("em", { children: match[1] }),
62
+ index: match.index,
63
+ length: match[0].length,
52
64
  };
53
65
  };
54
66
  const injectBullet = (content) => {
@@ -1,13 +1,13 @@
1
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
- import cn from 'classnames';
3
- import React__default, { useState, useRef, useId, useEffect, useLayoutEffect } from 'react';
4
- import { createPortal } from 'react-dom';
5
2
  import { Card, CardHeader, CardContent, CardFooter } from '../Card/Card.js';
3
+ import React__default, { useState, useRef, useId, useEffect, useLayoutEffect } from 'react';
6
4
  import { APP_MODAL_ID } from '../../../constants/appMount.js';
7
- import { XIcon } from '@phosphor-icons/react';
8
5
  import S from './Dialog.styl.js';
6
+ import { XIcon } from '@phosphor-icons/react';
7
+ import cn from 'classnames';
8
+ import { createPortal } from 'react-dom';
9
9
 
10
- function Dialog({ open, onOpenChange, disabled, trigger, title, subtitle, disableCloseButton, icon, content, contentClassName, contentScrollbarClassName, footer, footerClassName, footerAlignment = 'center', size = 'default', className, noScroll, maxHeight, autoScrollBottom, width, }) {
10
+ function Dialog({ open, onOpenChange, disabled, trigger, cardProps = {}, title, subtitle, disableCloseButton, icon, content, contentClassName, contentScrollbarClassName, footer, footerClassName, footerAlignment = 'center', size = 'default', className, noScroll, maxHeight, autoScrollBottom, width, }) {
11
11
  const [isMounted, setIsMounted] = useState(false);
12
12
  const [modalContainer, setModalContainer] = useState(null);
13
13
  const [isAnimating, setIsAnimating] = useState(false);
@@ -118,7 +118,8 @@ function Dialog({ open, onOpenChange, disabled, trigger, title, subtitle, disabl
118
118
  }, [trigger]);
119
119
  if (!isMounted)
120
120
  return null;
121
- const dialogContent = (jsxs(Fragment, { children: [jsx("div", { className: cn(S.dialogOverlay, open && !isAnimating && S.isOpen), onClick: handleOverlayClick, "aria-hidden": "true" }), jsxs(Card, { ref: dialogRef, role: "dialog", "aria-modal": "true", "aria-labelledby": title ? titleId : undefined, "aria-describedby": subtitle ? descriptionId : undefined, className: cn(S.dialogContent, S[`size-${size}`], open && !isAnimating && S.isOpen, !open && isAnimating && S.isClosed, className), tabIndex: -1, style: {
121
+ const dialogContent = (jsxs(Fragment, { children: [jsx("div", { className: cn(S.dialogOverlay, open && !isAnimating && S.isOpen), onClick: handleOverlayClick, "aria-hidden": "true" }), jsxs(Card, { ref: dialogRef, role: "dialog", "aria-modal": "true", "aria-labelledby": title ? titleId : undefined, "aria-describedby": subtitle ? descriptionId : undefined, className: cn(S.dialogContent, S[`size-${size}`], open && !isAnimating && S.isOpen, !open && isAnimating && S.isClosed, className), tabIndex: -1, ...cardProps, style: {
122
+ ...cardProps.style,
122
123
  width,
123
124
  maxHeight: maxHeight
124
125
  ? `min(${maxHeight}, calc(100% - var(--p-4)))`
@@ -1,6 +1,6 @@
1
1
  import styleInject from 'style-inject';
2
2
 
3
- var css_248z = ".Select_selectTrigger__oTOBl{align-items:center;background-color:var(--background);border:none;border-radius:var(--radius-input);box-shadow:none;color:var(--foreground);cursor:pointer;display:flex;font-size:var(--text-sm);font-weight:500;gap:var(--p-1);justify-content:space-between;max-width:calc(90vw - var(--page-x-padding)*2);outline:none;overflow:hidden;padding:var(--p-1) var(--p-3);position:relative;transition:all .2s ease-in-out;white-space:nowrap;width:-moz-fit-content;width:fit-content}.Select_selectTrigger__oTOBl:before{background-image:linear-gradient(to right,transparent,var(--background));content:\"\";display:block;height:100%;left:60vw;min-height:100%;min-width:var(--page-x-padding);position:absolute;width:var(--page-x-padding);width:20%}.Select_selectTrigger__oTOBl[aria-expanded=true]:before{display:none}.Select_selectTrigger__oTOBl.Select_darker__wwisI{background-color:var(--muted)}.Select_selectTrigger__oTOBl:hover{box-shadow:0 0 0 2px var(--background)}.Select_selectTrigger__oTOBl[data-size=xs]{border-radius:var(--p-4);font-size:var(--text-xs);height:auto;min-height:28px;padding:0 10px}.Select_selectTrigger__oTOBl[data-size=sm]{border-radius:var(--radius-3);font-size:13px;height:auto;min-height:32px;padding:0 14px}.Select_selectTrigger__oTOBl[data-size=md]{border-radius:var(--radius-input);font-size:var(--text-sm);height:auto;min-height:40px;padding:11px 14px}.Select_selectTrigger__oTOBl[data-size=lg]{border-radius:var(--radius-4);font-size:var(--text-base);height:auto;min-height:48px;padding:var(--p-4) var(--p-6)}.Select_selectTrigger__oTOBl[data-placeholder]{color:var(--muted-foreground)}.Select_selectTrigger__oTOBl:focus-visible{border-color:var(--ring)}.Select_selectTrigger__oTOBl[aria-invalid=true]{border-color:var(--destructive)}.Select_selectTrigger__oTOBl:disabled{cursor:not-allowed;opacity:.5}.Select_selectTrigger__oTOBl [data-slot=select-value]{align-items:center;display:flex;gap:var(--p-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Select_selectTrigger__oTOBl svg{flex-shrink:0;pointer-events:none}.Select_selectTrigger__oTOBl svg:not([class*=text-]){color:var(--foreground)}.Select_selectTrigger__oTOBl svg:not([class*=size-]){height:1rem;width:1rem}.dark .Select_selectTrigger__oTOBl:not(.Select_darker__wwisI){background-color:var(--background)}.dark .Select_selectTrigger__oTOBl:not(.Select_darker__wwisI):hover{background-color:var(--background-alpha-800)}.Select_clear__vxo-N{background-color:transparent;border:none;box-shadow:none}.Select_clear__vxo-N:focus-visible{border:none;box-shadow:none}@media (prefers-color-scheme:dark){.Select_clear__vxo-N,.Select_clear__vxo-N:hover{background-color:transparent}}.Select_selectContent__Wbegi{background-color:var(--popover);border:1px solid var(--border);border-radius:var(--radius-input);box-shadow:0 10px 15px -3px rgba(0,0,0,.1);color:var(--popover-foreground);max-height:var(--radix-select-content-available-height);min-width:8rem;overflow-x:hidden;overflow-y:auto;position:relative;transform-origin:var(--radix-select-content-transform-origin);z-index:1100}.Select_selectContent__Wbegi[data-state=open]{animation:Select_fadeIn__hm7v- .25s,Select_zoomIn__ep77v .1s}.Select_selectContent__Wbegi[data-state=closed]{animation:Select_fadeOut__A-ccN .25s,Select_zoomOut__pZ-7e .1s}.Select_selectContent__Wbegi[data-side=bottom]{animation:Select_fadeIn__hm7v- .25s,Select_slideInFromTop__O1LeF .1s}.Select_selectContent__Wbegi[data-side=left]{animation:Select_fadeIn__hm7v- .25s,Select_slideInFromRight__iJq-J .1s}.Select_selectContent__Wbegi[data-side=right]{animation:Select_fadeIn__hm7v- .25s,Select_slideInFromLeft__8tm7S .1s}.Select_selectContent__Wbegi[data-side=top]{animation:Select_fadeIn__hm7v- .25s,Select_slideInFromBottom__PsvX6 .1s}.Select_selectContentPopper__TU8Jn[data-side=bottom]{transform:translateY(.25rem)}.Select_selectContentPopper__TU8Jn[data-side=left]{transform:translateX(-.25rem)}.Select_selectContentPopper__TU8Jn[data-side=right]{transform:translateX(.25rem)}.Select_selectContentPopper__TU8Jn[data-side=top]{transform:translateY(-.25rem)}.Select_selectViewport__OtOW7{padding:var(--p-1)}.Select_selectViewportPopper__dUoFi{height:var(--radix-select-trigger-height);min-width:var(--radix-select-trigger-width);scroll-margin:var(--p-1) 0;width:100%}.Select_selectLabel__rX9cj{color:var(--muted-foreground);font-size:var(--text-xs);padding:var(--p-2) var(--p-2);padding-bottom:var(--p-2);padding-top:var(--p-2)}.Select_selectItem__JLg4D{align-items:center;border-radius:var(--radius-sm);cursor:default;display:flex;flex-grow:1;font-size:var(--text-sm);gap:var(--p-2);outline:none;padding:var(--p-1) var(--p-2);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.Select_selectItem__JLg4D.Select_selected__tmqut{background-color:var(--accent);font-weight:600}.Select_selectItem__JLg4D:first-child{border-top-left-radius:var(--radius-md);border-top-right-radius:var(--radius-md)}.Select_selectItem__JLg4D:last-child{border-bottom-left-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.Select_selectItem__JLg4D:focus{background-color:var(--accent);color:var(--accent-foreground)}.Select_selectItem__JLg4D[data-disabled]{opacity:.5;pointer-events:none}.Select_selectItem__JLg4D svg{flex-shrink:0;pointer-events:none}.Select_selectItem__JLg4D svg:not([class*=text-]){color:var(--muted-foreground)}.Select_selectItem__JLg4D svg:not([class*=size-]){height:1rem;width:1rem}.Select_selectItem__JLg4D span:not([data-slot=analysis-icon]){display:flex;flex-grow:1;width:100%}.Select_selectItem__JLg4D span:last-child{align-items:center;display:flex;gap:var(--p-2)}.Select_selectItemText__9JXv9{align-items:center;display:flex;gap:var(--p-1)}.Select_selectItemIndicatorContainer__Vte2-{align-items:center;display:flex;height:var(--p-8);justify-content:center;position:absolute;right:0;width:var(--p-8)}.Select_selectItemIndicator__9HcxQ{height:1rem;width:1rem}.Select_selectSeparator__OZw53{background-color:var(--border);height:1px;margin:-.25rem var(--p-1) var(--p-1);pointer-events:none}.Select_selectScrollButton__-z-iR{align-items:center;cursor:default;display:flex;justify-content:center;padding:var(--p-1) 0}.Select_selectIcon__-TfP9{height:1rem;margin-right:calc(var(--p-1)*-1);opacity:.5;width:1rem}.Select_selectScrollIcon__ZyTUI{height:1rem;width:1rem}@keyframes Select_fadeIn__hm7v-{0%{opacity:0}to{opacity:1}}@keyframes Select_fadeOut__A-ccN{0%{opacity:1}to{opacity:0}}@keyframes Select_zoomIn__ep77v{0%{transform:scale(.95)}to{transform:scale(1)}}@keyframes Select_zoomOut__pZ-7e{0%{transform:scale(1)}to{transform:scale(.95)}}@keyframes Select_slideInFromTop__O1LeF{0%{transform:translateY(-.5rem)}to{transform:translateY(.2)}}@keyframes Select_slideInFromBottom__PsvX6{0%{transform:translateY(.5rem)}to{transform:translateY(.2)}}@keyframes Select_slideInFromLeft__8tm7S{0%{transform:translateX(-.5rem)}to{transform:translateX(.2)}}@keyframes Select_slideInFromRight__iJq-J{0%{transform:translateX(.5rem)}to{transform:translateY(.2)}}";
3
+ var css_248z = ".Select_selectTrigger__oTOBl{align-items:center;background-color:var(--background);border:none;box-shadow:none;color:var(--foreground);cursor:pointer;display:flex;font-size:var(--text-sm);font-weight:500;gap:var(--p-1);justify-content:space-between;max-width:calc(90vw - var(--page-x-padding)*2);outline:none;overflow:hidden;padding:var(--p-1) var(--p-3);position:relative;transition:all .2s ease-in-out;white-space:nowrap;width:-moz-fit-content;width:fit-content}.Select_selectTrigger__oTOBl:before{background-image:linear-gradient(to right,transparent,var(--background));content:\"\";display:block;height:100%;left:60vw;min-height:100%;min-width:var(--page-x-padding);position:absolute;width:var(--page-x-padding);width:20%}.Select_selectTrigger__oTOBl[aria-expanded=true]:before{display:none}.Select_selectTrigger__oTOBl.Select_darker__wwisI{background-color:var(--muted)}.Select_selectTrigger__oTOBl:hover{box-shadow:0 0 0 2px var(--background)}.Select_selectTrigger__oTOBl[data-size=xs]{border-radius:var(--p-4);font-size:var(--text-xs);height:auto;min-height:28px;padding:0 10px}.Select_selectTrigger__oTOBl[data-size=sm]{border-radius:var(--p-4);font-size:13px;height:auto;min-height:32px;padding:0 14px}.Select_selectTrigger__oTOBl[data-size=md]{border-radius:var(--p-4);font-size:var(--text-sm);height:auto;min-height:40px;padding:11px 14px}.Select_selectTrigger__oTOBl[data-size=lg]{border-radius:var(--p-4);font-size:var(--text-base);height:auto;min-height:48px;padding:var(--p-4) var(--p-6)}.Select_selectTrigger__oTOBl[data-placeholder]{color:var(--muted-foreground)}.Select_selectTrigger__oTOBl:focus-visible{border-color:var(--ring)}.Select_selectTrigger__oTOBl[aria-invalid=true]{border-color:var(--destructive)}.Select_selectTrigger__oTOBl:disabled{cursor:not-allowed;opacity:.5}.Select_selectTrigger__oTOBl [data-slot=select-value]{align-items:center;display:flex;gap:var(--p-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Select_selectTrigger__oTOBl svg{flex-shrink:0;pointer-events:none}.Select_selectTrigger__oTOBl svg:not([class*=text-]){color:var(--foreground)}.Select_selectTrigger__oTOBl svg:not([class*=size-]){height:1rem;width:1rem}.dark .Select_selectTrigger__oTOBl:not(.Select_darker__wwisI){background-color:var(--background)}.dark .Select_selectTrigger__oTOBl:not(.Select_darker__wwisI):hover{background-color:var(--background-alpha-800)}.Select_clear__vxo-N{background-color:transparent;border:none;box-shadow:none}.Select_clear__vxo-N:focus-visible{border:none;box-shadow:none}@media (prefers-color-scheme:dark){.Select_clear__vxo-N,.Select_clear__vxo-N:hover{background-color:transparent}}.Select_selectContent__Wbegi{background-color:var(--popover);border:1px solid var(--border);border-radius:var(--radius-input);box-shadow:0 10px 15px -3px rgba(0,0,0,.1);color:var(--popover-foreground);max-height:var(--radix-select-content-available-height);min-width:8rem;overflow-x:hidden;overflow-y:auto;position:relative;transform-origin:var(--radix-select-content-transform-origin);z-index:1100}.Select_selectContent__Wbegi[data-state=open]{animation:Select_fadeIn__hm7v- .25s,Select_zoomIn__ep77v .1s}.Select_selectContent__Wbegi[data-state=closed]{animation:Select_fadeOut__A-ccN .25s,Select_zoomOut__pZ-7e .1s}.Select_selectContent__Wbegi[data-side=bottom]{animation:Select_fadeIn__hm7v- .25s,Select_slideInFromTop__O1LeF .1s}.Select_selectContent__Wbegi[data-side=left]{animation:Select_fadeIn__hm7v- .25s,Select_slideInFromRight__iJq-J .1s}.Select_selectContent__Wbegi[data-side=right]{animation:Select_fadeIn__hm7v- .25s,Select_slideInFromLeft__8tm7S .1s}.Select_selectContent__Wbegi[data-side=top]{animation:Select_fadeIn__hm7v- .25s,Select_slideInFromBottom__PsvX6 .1s}.Select_selectContentPopper__TU8Jn[data-side=bottom]{transform:translateY(.25rem)}.Select_selectContentPopper__TU8Jn[data-side=left]{transform:translateX(-.25rem)}.Select_selectContentPopper__TU8Jn[data-side=right]{transform:translateX(.25rem)}.Select_selectContentPopper__TU8Jn[data-side=top]{transform:translateY(-.25rem)}.Select_selectViewport__OtOW7{padding:var(--p-1)}.Select_selectViewportPopper__dUoFi{height:var(--radix-select-trigger-height);min-width:var(--radix-select-trigger-width);scroll-margin:var(--p-1) 0;width:100%}.Select_selectLabel__rX9cj{color:var(--muted-foreground);font-size:var(--text-xs);padding:var(--p-2) var(--p-2);padding-bottom:var(--p-2);padding-top:var(--p-2)}.Select_selectItem__JLg4D{align-items:center;border-radius:var(--radius-sm);cursor:default;display:flex;flex-grow:1;font-size:var(--text-sm);gap:var(--p-2);outline:none;padding:var(--p-1) var(--p-2);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.Select_selectItem__JLg4D.Select_selected__tmqut{background-color:var(--accent);font-weight:600}.Select_selectItem__JLg4D:first-child{border-top-left-radius:var(--radius-md);border-top-right-radius:var(--radius-md)}.Select_selectItem__JLg4D:last-child{border-bottom-left-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.Select_selectItem__JLg4D:focus{background-color:var(--accent);color:var(--accent-foreground)}.Select_selectItem__JLg4D[data-disabled]{opacity:.5;pointer-events:none}.Select_selectItem__JLg4D svg{flex-shrink:0;pointer-events:none}.Select_selectItem__JLg4D svg:not([class*=text-]){color:var(--muted-foreground)}.Select_selectItem__JLg4D svg:not([class*=size-]){height:1rem;width:1rem}.Select_selectItem__JLg4D span:not([data-slot=analysis-icon]){display:flex;flex-grow:1;width:100%}.Select_selectItem__JLg4D span:last-child{align-items:center;display:flex;gap:var(--p-2)}.Select_selectItemText__9JXv9{align-items:center;display:flex;gap:var(--p-1)}.Select_selectItemIndicatorContainer__Vte2-{align-items:center;display:flex;height:var(--p-8);justify-content:center;position:absolute;right:0;width:var(--p-8)}.Select_selectItemIndicator__9HcxQ{height:1rem;width:1rem}.Select_selectSeparator__OZw53{background-color:var(--border);height:1px;margin:-.25rem var(--p-1) var(--p-1);pointer-events:none}.Select_selectScrollButton__-z-iR{align-items:center;cursor:default;display:flex;justify-content:center;padding:var(--p-1) 0}.Select_selectIcon__-TfP9{height:1rem;margin-right:calc(var(--p-1)*-1);opacity:.5;width:1rem}.Select_selectScrollIcon__ZyTUI{height:1rem;width:1rem}@keyframes Select_fadeIn__hm7v-{0%{opacity:0}to{opacity:1}}@keyframes Select_fadeOut__A-ccN{0%{opacity:1}to{opacity:0}}@keyframes Select_zoomIn__ep77v{0%{transform:scale(.95)}to{transform:scale(1)}}@keyframes Select_zoomOut__pZ-7e{0%{transform:scale(1)}to{transform:scale(.95)}}@keyframes Select_slideInFromTop__O1LeF{0%{transform:translateY(-.5rem)}to{transform:translateY(.2)}}@keyframes Select_slideInFromBottom__PsvX6{0%{transform:translateY(.5rem)}to{transform:translateY(.2)}}@keyframes Select_slideInFromLeft__8tm7S{0%{transform:translateX(-.5rem)}to{transform:translateX(.2)}}@keyframes Select_slideInFromRight__iJq-J{0%{transform:translateX(.5rem)}to{transform:translateY(.2)}}";
4
4
  var S = {"selectTrigger":"Select_selectTrigger__oTOBl","darker":"Select_darker__wwisI","clear":"Select_clear__vxo-N","selectContent":"Select_selectContent__Wbegi","fadeIn":"Select_fadeIn__hm7v-","zoomIn":"Select_zoomIn__ep77v","fadeOut":"Select_fadeOut__A-ccN","zoomOut":"Select_zoomOut__pZ-7e","slideInFromTop":"Select_slideInFromTop__O1LeF","slideInFromRight":"Select_slideInFromRight__iJq-J","slideInFromLeft":"Select_slideInFromLeft__8tm7S","slideInFromBottom":"Select_slideInFromBottom__PsvX6","selectContentPopper":"Select_selectContentPopper__TU8Jn","selectViewport":"Select_selectViewport__OtOW7","selectViewportPopper":"Select_selectViewportPopper__dUoFi","selectLabel":"Select_selectLabel__rX9cj","selectItem":"Select_selectItem__JLg4D","selected":"Select_selected__tmqut","selectItemText":"Select_selectItemText__9JXv9","selectItemIndicatorContainer":"Select_selectItemIndicatorContainer__Vte2-","selectItemIndicator":"Select_selectItemIndicator__9HcxQ","selectSeparator":"Select_selectSeparator__OZw53","selectScrollButton":"Select_selectScrollButton__-z-iR","selectIcon":"Select_selectIcon__-TfP9","selectScrollIcon":"Select_selectScrollIcon__ZyTUI"};
5
5
  styleInject(css_248z);
6
6
 
@@ -6,16 +6,16 @@ import '../../ui/Chart/components/BaseChartWrapper.js';
6
6
  import { ChartContainer } from '../../ui/Chart/components/ChartContainer.js';
7
7
  import '../../ui/Chart/Chart.context.js';
8
8
  import '../../ui/Chart/Chart.styl.js';
9
+ import '@phosphor-icons/react';
10
+ import '@radix-ui/react-select';
11
+ import 'lucide-react';
12
+ import '../../ui/Select/Select.styl.js';
9
13
  import '../../ui/AnalysisLineIcon/AnalysisLineIcon.styl.js';
10
14
  import '@radix-ui/react-slot';
11
15
  import '../../ui/Badge/Badge.styl.js';
12
16
  import '../../ui/LabelWithId/LabelWithId.styl.js';
13
- import '@radix-ui/react-select';
14
- import 'lucide-react';
15
- import '../../ui/Select/Select.styl.js';
16
- import '../../ui/TextShimmer/TextShimmer.js';
17
- import '@phosphor-icons/react';
18
17
  import '../../ui/AnalysesSelector/AnalysesSelector.styl.js';
18
+ import '../../ui/TextShimmer/TextShimmer.js';
19
19
  import '../../ui/Chart/components/CustomChartLegend/CustomChartLegend.styl.js';
20
20
  import '../../ui/ChartAreaInteractive/ChartLines.js';
21
21
  import '../../ui/Skeleton/Skeleton.styl.js';
@@ -1,5 +1,5 @@
1
1
  import * as RechartsPrimitive from 'recharts';
2
- import { BaseChartWrapper } from './components/BaseChartWrapper';
2
+ import { BaseChartWrapper, type BaseChartWrapperProps } from './components/BaseChartWrapper';
3
3
  import { ChartContainer, ChartStyle } from './components/ChartContainer';
4
4
  import { ChartLegendContent } from './components/ChartLegendContent';
5
5
  import { ChartTooltipContent } from './components/ChartTooltipContent';
@@ -9,6 +9,6 @@ export * from './Chart.types';
9
9
  export { ChartTooltipItem } from './components/ChartTooltipItem';
10
10
  export { ChartLegendItem } from './components/ChartLegendItem';
11
11
  export { CustomChartLegend } from './components/CustomChartLegend/CustomChartLegend';
12
- export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle, BaseChartWrapper, };
12
+ export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle, BaseChartWrapper, type BaseChartWrapperProps, };
13
13
  export { LightweightForecastChart, type LightweightForecastChartProps, } from './lightweight/LightweightForecastChart';
14
14
  export { ChartEmptyState, type ChartEmptyStateProps, type ChartEmptyStatusTone, } from './components/ChartEmptyState/ChartEmptyState';
@@ -5,6 +5,7 @@ import { ForecastItemData } from '#uilib/components/ui/ChartAreaInteractive/Char
5
5
  import { LegendPayload } from 'recharts/types/component/DefaultLegendContent';
6
6
  import type { ChartConfig } from '../Chart.types';
7
7
  import { ChartContainer } from './ChartContainer';
8
+ import { type ChartEmptyStatusTone } from './ChartEmptyState/ChartEmptyState';
8
9
  export interface BaseChartWrapperProps {
9
10
  renderId?: string;
10
11
  chartConfig?: ChartConfig;
@@ -71,7 +72,12 @@ export interface BaseChartWrapperProps {
71
72
  containerProps?: Omit<ComponentProps<typeof ChartContainer>, 'config' | 'className' | 'children'>;
72
73
  error?: string | null;
73
74
  loadingMessage?: ReactNode;
74
- noDataMessage?: string;
75
+ /** Shown above `noDataMessage` when the chart has no series (muted). */
76
+ noDataHint?: ReactNode;
77
+ noDataMessage?: ReactNode;
78
+ noDataStatusTone?: ChartEmptyStatusTone;
79
+ /** When true, no placeholder UI for empty `chartData` (parent renders overlay). */
80
+ suppressNoDataState?: boolean;
75
81
  onGridHeightChange?: (height: number) => void;
76
82
  forecastLineStyle?: 'dashed' | 'solid';
77
83
  disableHistoricalAnimation?: boolean;
@@ -4,7 +4,7 @@ declare const injectBold: (content: string) => {
4
4
  index: number;
5
5
  length: number;
6
6
  };
7
- /** `_italic_` (underscore) — avoids clashing with `* ` bullet markers. */
7
+ /** `*italic*` or `_italic_` — single `*` only (not `**` or `* ` bullets). */
8
8
  declare const injectItalic: (content: string) => {
9
9
  elem: import("react/jsx-runtime").JSX.Element;
10
10
  index: number;
@@ -1,3 +1,3 @@
1
1
  import type { DialogProps } from './Dialog.types';
2
- export declare function Dialog({ open, onOpenChange, disabled, trigger, title, subtitle, disableCloseButton, icon, content, contentClassName, contentScrollbarClassName, footer, footerClassName, footerAlignment, size, className, noScroll, maxHeight, autoScrollBottom, width, }: DialogProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function Dialog({ open, onOpenChange, disabled, trigger, cardProps, title, subtitle, disableCloseButton, icon, content, contentClassName, contentScrollbarClassName, footer, footerClassName, footerAlignment, size, className, noScroll, maxHeight, autoScrollBottom, width, }: DialogProps): import("react/jsx-runtime").JSX.Element;
3
3
  export { default as DialogStyles } from './Dialog.styl';
@@ -1,7 +1,9 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
+ import { Card } from '../Card';
2
3
  export interface DialogProps {
3
4
  open: boolean;
4
5
  disabled?: boolean;
6
+ cardProps?: React.ComponentProps<typeof Card>;
5
7
  /** When true, the header close control is hidden. */
6
8
  disableCloseButton?: boolean;
7
9
  onOpenChange: (isOpen: boolean) => void;
@@ -1,4 +1,2 @@
1
1
  import { ComponentProps } from 'react';
2
- export type SmartTextTruncateProps = ComponentProps<'span'> & {
3
- children: string;
4
- };
2
+ export type SmartTextTruncateProps = ComponentProps<'span'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sybilion/uilib",
3
- "version": "1.3.97",
3
+ "version": "1.3.99",
4
4
  "description": "Sybilion Design System — React UI components (Webpack + Stylus)",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -1,10 +1,8 @@
1
- import cn from 'classnames';
2
- import { useEffect, useMemo, useRef } from 'react';
3
-
4
- import { AnalysisLineIcon } from '#uilib/components/ui/AnalysisLineIcon';
5
- import { Badge } from '#uilib/components/ui/Badge';
6
- import { Button } from '#uilib/components/ui/Button';
7
- import { LabelWithId } from '#uilib/components/ui/LabelWithId';
1
+ import type {
2
+ AnalysesSelectorItem,
3
+ AnalysesSelectorProps,
4
+ } from './AnalysesSelector.types';
5
+ import { EyeClosedIcon, EyeIcon } from '@phosphor-icons/react';
8
6
  import {
9
7
  Select,
10
8
  SelectContent,
@@ -12,15 +10,16 @@ import {
12
10
  SelectTrigger,
13
11
  SelectValue,
14
12
  } from '#uilib/components/ui/Select';
15
- import { TextShimmer } from '#uilib/components/ui/TextShimmer/TextShimmer';
16
- import { getLatestByUpdatedAt } from '#uilib/utils/analysisDate';
17
- import { EyeClosedIcon, EyeIcon } from '@phosphor-icons/react';
13
+ import { useEffect, useMemo, useRef } from 'react';
18
14
 
15
+ import { AnalysisLineIcon } from '#uilib/components/ui/AnalysisLineIcon';
16
+ import { Badge } from '#uilib/components/ui/Badge';
17
+ import { Button } from '#uilib/components/ui/Button';
18
+ import { LabelWithId } from '#uilib/components/ui/LabelWithId';
19
19
  import S from './AnalysesSelector.styl';
20
- import type {
21
- AnalysesSelectorItem,
22
- AnalysesSelectorProps,
23
- } from './AnalysesSelector.types';
20
+ import { TextShimmer } from '#uilib/components/ui/TextShimmer/TextShimmer';
21
+ import cn from 'classnames';
22
+ import { getLatestByUpdatedAt } from '#uilib/utils/analysisDate';
24
23
 
25
24
  const isFailed = (item: AnalysesSelectorItem) =>
26
25
  item.status?.toLowerCase() === 'fail';
@@ -44,19 +44,16 @@
44
44
  background-color var(--sb-gray-800)
45
45
 
46
46
  .destructive
47
- background-color var(--destructive)
47
+ background-color var(--destructive-900)
48
48
  color white
49
49
 
50
50
  &:hover
51
- background-color var(--destructive-900)
51
+ background-color var(--destructive-600)
52
52
 
53
53
  &:focus-visible
54
- ring 3px var(--destructive-200)
55
-
56
- :global(.dark) &
57
- background-color var(--destructive-600)
54
+ ring 3px var(--destructive-200)
58
55
 
59
- &:focus-visible
56
+ :global(.dark) &
60
57
  ring 3px var(--destructive-400)
61
58
 
62
59
  .outline
@@ -107,7 +104,7 @@
107
104
 
108
105
  .sizeMd
109
106
  height 44px
110
- padding var(--p-3) var(--p-4)
107
+ padding 0 var(--p-4)
111
108
  border-radius var(--p-4)
112
109
 
113
110
  .sizeLg
@@ -1,6 +1,9 @@
1
1
  import * as RechartsPrimitive from 'recharts';
2
2
 
3
- import { BaseChartWrapper } from './components/BaseChartWrapper';
3
+ import {
4
+ BaseChartWrapper,
5
+ type BaseChartWrapperProps,
6
+ } from './components/BaseChartWrapper';
4
7
  import { ChartContainer, ChartStyle } from './components/ChartContainer';
5
8
  import { ChartLegendContent } from './components/ChartLegendContent';
6
9
  import { ChartTooltipContent } from './components/ChartTooltipContent';
@@ -20,6 +23,7 @@ export {
20
23
  ChartLegendContent,
21
24
  ChartStyle,
22
25
  BaseChartWrapper,
26
+ type BaseChartWrapperProps,
23
27
  };
24
28
  export {
25
29
  LightweightForecastChart,
@@ -62,6 +62,11 @@
62
62
  align-items center
63
63
  justify-content center
64
64
 
65
+ .loadingChartSlot
66
+ position relative
67
+ width 100%
68
+ height 100%
69
+
65
70
  .loadingOverlay
66
71
  position absolute
67
72
  inset 0
@@ -86,6 +91,10 @@
86
91
  min-height 250px
87
92
  color var(--destructive)
88
93
 
94
+ .emptyChartSizer
95
+ width 100%
96
+ min-height var(--chart-height)
97
+
89
98
  .errorMessage
90
99
  color var(--destructive)
91
100
 
@@ -4,6 +4,7 @@ interface CssExports {
4
4
  'chartContainer': string;
5
5
  'chartLayer': string;
6
6
  'chartLoadingContainer': string;
7
+ 'emptyChartSizer': string;
7
8
  'errorContainer': string;
8
9
  'errorMessage': string;
9
10
  'footer': string;
@@ -12,6 +13,7 @@ interface CssExports {
12
13
  'invisibleAxis': string;
13
14
  'legend': string;
14
15
  'loaded': string;
16
+ 'loadingChartSlot': string;
15
17
  'loadingOverlay': string;
16
18
  'noLegend': string;
17
19
  'noLineDrawAnimation': string;
@@ -28,6 +28,10 @@ import { formatDate } from '../tools/formatters';
28
28
  import S from './BaseChartWrapper.styl';
29
29
  import { ChartAxes } from './ChartAxes';
30
30
  import { ChartContainer } from './ChartContainer';
31
+ import {
32
+ ChartEmptyState,
33
+ type ChartEmptyStatusTone,
34
+ } from './ChartEmptyState/ChartEmptyState';
31
35
  import { ChartGrid } from './ChartGrid';
32
36
  import { ChartTooltipContent } from './ChartTooltipContent';
33
37
  import { CustomChartLegend } from './CustomChartLegend/CustomChartLegend';
@@ -138,7 +142,12 @@ export interface BaseChartWrapperProps {
138
142
  >;
139
143
  error?: string | null;
140
144
  loadingMessage?: ReactNode;
141
- noDataMessage?: string;
145
+ /** Shown above `noDataMessage` when the chart has no series (muted). */
146
+ noDataHint?: ReactNode;
147
+ noDataMessage?: ReactNode;
148
+ noDataStatusTone?: ChartEmptyStatusTone;
149
+ /** When true, no placeholder UI for empty `chartData` (parent renders overlay). */
150
+ suppressNoDataState?: boolean;
142
151
  onGridHeightChange?: (height: number) => void;
143
152
  forecastLineStyle?: 'dashed' | 'solid';
144
153
  disableHistoricalAnimation?: boolean;
@@ -156,21 +165,24 @@ const BaseChartWrapperLoading = forwardRef<
156
165
  HTMLDivElement,
157
166
  {
158
167
  className?: string;
168
+ loadingComponentClassName?: string;
159
169
  height?: number;
160
170
  loadingMessage?: ReactNode;
161
171
  }
162
- >(({ className, height, loadingMessage }, ref) => {
172
+ >(({ className, loadingComponentClassName, height, loadingMessage }, ref) => {
163
173
  return (
164
174
  <div ref={ref} className={cn(S.root, className)}>
165
175
  <div
166
176
  className={S.chartLoadingContainer}
167
177
  style={height ? { height: `${height}px` } : undefined}
168
178
  >
169
- {loadingMessage || (
170
- <div className={S.loadingOverlay}>
171
- <Skeleton style={{ width: '100%', height: '100%' }} />
172
- </div>
173
- )}
179
+ <div data-slot="chart" className={S.loadingChartSlot}>
180
+ {loadingMessage || (
181
+ <div className={cn(S.loadingOverlay, loadingComponentClassName)}>
182
+ <Skeleton style={{ width: '100%', height: '100%' }} />
183
+ </div>
184
+ )}
185
+ </div>
174
186
  </div>
175
187
  </div>
176
188
  );
@@ -235,7 +247,10 @@ const BaseChartWrapperContent = forwardRef<
235
247
  containerProps,
236
248
  error,
237
249
  loadingMessage,
250
+ noDataHint,
238
251
  noDataMessage = 'No data available',
252
+ noDataStatusTone = 'muted',
253
+ suppressNoDataState = false,
239
254
  onGridHeightChange,
240
255
  forecastLineStyle = 'dashed',
241
256
  disableHistoricalAnimation = false,
@@ -547,17 +562,48 @@ const BaseChartWrapperContent = forwardRef<
547
562
  if (!chartData.length) {
548
563
  // If hasCombinedData is true but chartData is empty, data is being processed - wait instead of showing "No data"
549
564
  if (hasCombinedData) {
550
- // Return empty div to wait for chartData to be populated
551
- return <div className={cn(S.root, className)}></div>;
565
+ return (
566
+ <div className={cn(S.root, className)}>
567
+ <div
568
+ className={S.emptyChartSizer}
569
+ style={height ? { minHeight: height } : undefined}
570
+ aria-hidden
571
+ />
572
+ </div>
573
+ );
552
574
  }
553
575
  // If renderId is undefined/null, we're still initializing - wait instead of showing "No data"
554
576
  if (!renderId) {
555
- // Return empty div to wait for initialization to complete
556
- return <div className={cn(S.root, className)}></div>;
577
+ return (
578
+ <div className={cn(S.root, className)}>
579
+ <div
580
+ className={S.emptyChartSizer}
581
+ style={height ? { minHeight: height } : undefined}
582
+ aria-hidden
583
+ />
584
+ </div>
585
+ );
586
+ }
587
+ if (suppressNoDataState) {
588
+ return (
589
+ <div className={cn(S.root, className)}>
590
+ <div
591
+ className={S.emptyChartSizer}
592
+ style={height ? { minHeight: height } : undefined}
593
+ aria-hidden
594
+ />
595
+ </div>
596
+ );
557
597
  }
558
598
  return (
559
599
  <div className={cn(S.root, className)}>
560
- <div className={S.errorContainer}>{noDataMessage}</div>
600
+ <ChartEmptyState
601
+ variant="panel"
602
+ align="center"
603
+ hint={noDataHint}
604
+ status={noDataMessage}
605
+ statusTone={noDataStatusTone}
606
+ />
561
607
  </div>
562
608
  );
563
609
  }
@@ -837,7 +883,8 @@ export function BaseChartWrapper(props: BaseChartWrapperProps) {
837
883
  return (
838
884
  <BaseChartWrapperLoading
839
885
  ref={containerRef}
840
- className={cn(props.className, props.loadingComponentClassName)}
886
+ className={props.className}
887
+ loadingComponentClassName={props.loadingComponentClassName}
841
888
  height={props.height}
842
889
  loadingMessage={props.loadingMessage}
843
890
  />
@@ -849,7 +896,8 @@ export function BaseChartWrapper(props: BaseChartWrapperProps) {
849
896
  return (
850
897
  <BaseChartWrapperLoading
851
898
  ref={containerRef}
852
- className={cn(props.className, props.loadingComponentClassName)}
899
+ className={props.className}
900
+ loadingComponentClassName={props.loadingComponentClassName}
853
901
  height={props.height}
854
902
  loadingMessage={props.loadingMessage}
855
903
  />
@@ -7,6 +7,23 @@ function renderFormatting(text: string) {
7
7
  return render(<>{parts}</>);
8
8
  }
9
9
 
10
+ describe('applyFormatting emphasis', () => {
11
+ it('renders asterisk italic and bold in the same line', () => {
12
+ const { container } = renderFormatting(
13
+ 'Use **bold** and *italic* in formatted text.',
14
+ );
15
+
16
+ expect(container.querySelector('strong')?.textContent).toBe('bold');
17
+ expect(container.querySelector('em')?.textContent).toBe('italic');
18
+ });
19
+
20
+ it('renders underscore italic', () => {
21
+ const { container } = renderFormatting('Use _italic_ emphasis.');
22
+
23
+ expect(container.querySelector('em')?.textContent).toBe('italic');
24
+ });
25
+ });
26
+
10
27
  describe('applyFormatting headers', () => {
11
28
  it('renders bold inside markdown headers', () => {
12
29
  const { container } = renderFormatting(
@@ -56,20 +56,36 @@ const injectBold = (content: string) => {
56
56
  };
57
57
  };
58
58
 
59
- /** `_italic_` (underscore) — avoids clashing with `* ` bullet markers. */
59
+ /** `*italic*` or `_italic_` — single `*` only (not `**` or `* ` bullets). */
60
60
  const injectItalic = (content: string) => {
61
- const matches = content.match(/(?<![A-Za-z0-9])_([^_\n]+?)_(?![A-Za-z0-9])/);
61
+ const patterns = [
62
+ /(?<![*\\])\*(?!\*)([^*\n]+?)\*(?!\*)/,
63
+ /(?<![A-Za-z0-9])_([^_\n]+?)_(?![A-Za-z0-9])/,
64
+ ];
62
65
 
63
- if (!matches || matches.index === undefined) return null;
66
+ let match: RegExpMatchArray | null = null;
64
67
 
65
- if (isInsideHtmlListOrTable(content, matches.index)) {
68
+ for (const pattern of patterns) {
69
+ const candidate = content.match(pattern);
70
+ if (
71
+ candidate &&
72
+ candidate.index !== undefined &&
73
+ (match === null || candidate.index < match.index!)
74
+ ) {
75
+ match = candidate;
76
+ }
77
+ }
78
+
79
+ if (!match || match.index === undefined) return null;
80
+
81
+ if (isInsideHtmlListOrTable(content, match.index)) {
66
82
  return null;
67
83
  }
68
84
 
69
85
  return {
70
- elem: <em>{matches[1]}</em>,
71
- index: matches.index,
72
- length: matches[0].length,
86
+ elem: <em>{match[1]}</em>,
87
+ index: match.index,
88
+ length: match[0].length,
73
89
  };
74
90
  };
75
91
 
@@ -1,4 +1,9 @@
1
- import cn from 'classnames';
1
+ import {
2
+ Card,
3
+ CardContent,
4
+ CardFooter,
5
+ CardHeader,
6
+ } from '#uilib/components/ui/Card/Card';
2
7
  import React, {
3
8
  useEffect,
4
9
  useId,
@@ -6,25 +11,20 @@ import React, {
6
11
  useRef,
7
12
  useState,
8
13
  } from 'react';
9
- import { createPortal } from 'react-dom';
10
14
 
11
- import {
12
- Card,
13
- CardContent,
14
- CardFooter,
15
- CardHeader,
16
- } from '#uilib/components/ui/Card/Card';
17
15
  import { APP_MODAL_ID } from '#uilib/constants/appMount';
18
- import { XIcon } from '@phosphor-icons/react';
19
-
20
- import S from './Dialog.styl';
21
16
  import type { DialogProps } from './Dialog.types';
17
+ import S from './Dialog.styl';
18
+ import { XIcon } from '@phosphor-icons/react';
19
+ import cn from 'classnames';
20
+ import { createPortal } from 'react-dom';
22
21
 
23
22
  export function Dialog({
24
23
  open,
25
24
  onOpenChange,
26
25
  disabled,
27
26
  trigger,
27
+ cardProps = {},
28
28
  title,
29
29
  subtitle,
30
30
  disableCloseButton,
@@ -191,7 +191,9 @@ export function Dialog({
191
191
  className,
192
192
  )}
193
193
  tabIndex={-1}
194
+ {...cardProps}
194
195
  style={{
196
+ ...cardProps.style,
195
197
  width,
196
198
  maxHeight: maxHeight
197
199
  ? `min(${maxHeight}, calc(100% - var(--p-4)))`
@@ -1,8 +1,11 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
2
 
3
+ import { Card } from '../Card';
4
+
3
5
  export interface DialogProps {
4
6
  open: boolean;
5
7
  disabled?: boolean;
8
+ cardProps?: React.ComponentProps<typeof Card>;
6
9
  /** When true, the header close control is hidden. */
7
10
  disableCloseButton?: boolean;
8
11
  onOpenChange: (isOpen: boolean) => void;
@@ -11,7 +11,7 @@
11
11
 
12
12
  padding var(--p-1) var(--p-3)
13
13
  // Match Input styling
14
- border-radius var(--radius-input)
14
+ // border-radius var(--radius-input)
15
15
  border none
16
16
  box-shadow none
17
17
  background-color var(--background)
@@ -57,21 +57,21 @@
57
57
  height auto
58
58
  min-height 32px
59
59
  padding 0 14px
60
- border-radius var(--radius-3)
60
+ border-radius var(--p-4)
61
61
  font-size 13px
62
62
 
63
63
  &[data-size="md"]
64
64
  height auto
65
65
  min-height 40px
66
66
  padding 11px 14px
67
- border-radius var(--radius-input)
67
+ border-radius var(--p-4)
68
68
  font-size var(--text-sm)
69
69
 
70
70
  &[data-size="lg"]
71
71
  height auto
72
72
  min-height 48px
73
73
  padding var(--p-4) var(--p-6)
74
- border-radius var(--radius-4)
74
+ border-radius var(--p-4)
75
75
  font-size var(--text-base)
76
76
 
77
77
  &[data-placeholder]
@@ -1,5 +1,3 @@
1
1
  import { ComponentProps } from 'react';
2
2
 
3
- export type SmartTextTruncateProps = ComponentProps<'span'> & {
4
- children: string;
5
- };
3
+ export type SmartTextTruncateProps = ComponentProps<'span'>;
@@ -13,6 +13,7 @@ import {
13
13
  SidebarMenuSubButton,
14
14
  SidebarMenuSubItem,
15
15
  } from '#uilib/components/ui/Sidebar/Sidebar';
16
+ import { SmartTextTruncate } from '#uilib/components/ui/SmartTextTruncate';
16
17
  import { ChevronDown, ChevronRight } from 'lucide-react';
17
18
 
18
19
  import { DOC_REGISTRY, DOC_SECTION_ORDER } from '../../registry';
@@ -134,7 +135,9 @@ export function DocsSidebar() {
134
135
  }}
135
136
  isActive={sectionHasActive}
136
137
  >
137
- <span>{section}</span>
138
+ <span>
139
+ <SmartTextTruncate>{section}</SmartTextTruncate>
140
+ </span>
138
141
  {isFiltering ? null : renderSectionChevron(isExpanded)}
139
142
  </SidebarMenuButton>
140
143
  {isExpanded ? (
@@ -149,7 +152,9 @@ export function DocsSidebar() {
149
152
  isActive={isActive}
150
153
  size="md"
151
154
  >
152
- <Link to={to}>{e.title}</Link>
155
+ <Link to={to}>
156
+ <SmartTextTruncate>{e.title}</SmartTextTruncate>
157
+ </Link>
153
158
  </SidebarMenuSubButton>
154
159
  </SidebarMenuSubItem>
155
160
  );
@@ -1,11 +1,9 @@
1
- import { useState } from 'react';
2
-
3
1
  import { AnalysesSelector } from '#uilib/components/ui/AnalysesSelector';
4
- import { PageContentSection } from '#uilib/components/ui/Page';
5
-
6
2
  import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
7
3
  import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
8
4
  import { DocsHeaderActions } from '../docsHeaderActions';
5
+ import { PageContentSection } from '#uilib/components/ui/Page';
6
+ import { useState } from 'react';
9
7
 
10
8
  const ITEMS = [
11
9
  { id: -1, label: 'Historical', color: 'var(--foreground)' },
@@ -55,6 +53,7 @@ export default function AnalysesSelectorPage() {
55
53
  />
56
54
  <PageContentSection style={{ maxWidth: 420 }}>
57
55
  <AnalysesSelector
56
+ size="sm"
58
57
  items={ITEMS}
59
58
  selectedIds={selectedIds}
60
59
  onItemToggle={id => {