@sybilion/uilib 1.3.98 → 1.3.100

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 (61) hide show
  1. package/dist/esm/components/ui/AnalysesSelector/AnalysesSelector.js +61 -14
  2. package/dist/esm/components/ui/AnalysesSelector/AnalysesSelector.styl.js +2 -2
  3. package/dist/esm/components/ui/AnalysesSelector/SelectInlineRenamer.js +102 -0
  4. package/dist/esm/components/ui/Button/Button.styl.js +1 -1
  5. package/dist/esm/components/ui/Chart/Chart.js +9 -5
  6. package/dist/esm/components/ui/Chart/chartForecastVisualization.constants.js +23 -0
  7. package/dist/esm/components/ui/Chart/components/BaseChartWrapper.js +12 -10
  8. package/dist/esm/components/ui/Chart/components/BaseChartWrapper.styl.js +2 -2
  9. package/dist/esm/components/ui/Chart/components/ConfidenceBands.js +9 -0
  10. package/dist/esm/components/ui/Chart/components/CustomChartLegend/CustomChartLegend.js +2 -2
  11. package/dist/esm/components/ui/Chart/components/ForecastBoundaries.js +32 -0
  12. package/dist/esm/components/ui/Chart/components/ForecastLine.js +24 -0
  13. package/dist/esm/components/ui/Chart/components/HistoricalLine.js +24 -0
  14. package/dist/esm/components/ui/Chart/hooks/useChartAnimation.js +17 -0
  15. package/dist/esm/components/ui/Chart/hooks/useChartColors.js +12 -0
  16. package/dist/esm/components/ui/Chart/hooks/useLegendState.js +30 -0
  17. package/dist/esm/components/ui/Chart/tools/formatters.js +19 -3
  18. package/dist/esm/components/ui/ChartAreaInteractive/ChartAreaInteractive.helpers.js +1 -10
  19. package/dist/esm/components/ui/Chat/ChatMessage/AgentMessageContent.helpers.js +19 -7
  20. package/dist/esm/components/ui/Select/Select.js +3 -3
  21. package/dist/esm/components/widgets/DriverCard/DriverCard.js +6 -6
  22. package/dist/esm/components/widgets/DriverCard/DriverPerformanceChart.js +9 -5
  23. package/dist/esm/components/widgets/DriversComparisonChart/DriversComparisonChart.styl.js +1 -1
  24. package/dist/esm/components/widgets/PerformanceChart/PerformanceChart.styl.js +1 -1
  25. package/dist/esm/index.js +10 -1
  26. package/dist/esm/types/src/components/ui/AnalysesSelector/AnalysesSelector.d.ts +1 -1
  27. package/dist/esm/types/src/components/ui/AnalysesSelector/AnalysesSelector.types.d.ts +7 -1
  28. package/dist/esm/types/src/components/ui/AnalysesSelector/SelectInlineRenamer.d.ts +12 -0
  29. package/dist/esm/types/src/components/ui/Chart/Chart.d.ts +11 -2
  30. package/dist/esm/types/src/components/ui/Chart/components/BaseChartWrapper.d.ts +7 -1
  31. package/dist/esm/types/src/components/ui/Chart/components/index.d.ts +1 -1
  32. package/dist/esm/types/src/components/ui/Chart/tools/formatters.d.ts +3 -1
  33. package/dist/esm/types/src/components/ui/ChartAreaInteractive/index.d.ts +1 -1
  34. package/dist/esm/types/src/components/ui/Chat/ChatMessage/AgentMessageContent.helpers.d.ts +1 -1
  35. package/dist/esm/types/src/components/ui/Select/Select.d.ts +1 -1
  36. package/dist/esm/types/src/components/ui/Select/Select.types.d.ts +1 -0
  37. package/dist/esm/types/src/components/ui/SmartTextTruncate/SmartTextTruncate.types.d.ts +1 -3
  38. package/package.json +1 -1
  39. package/src/components/ui/AnalysesSelector/AnalysesSelector.styl +62 -1
  40. package/src/components/ui/AnalysesSelector/AnalysesSelector.styl.d.ts +8 -0
  41. package/src/components/ui/AnalysesSelector/AnalysesSelector.tsx +136 -27
  42. package/src/components/ui/AnalysesSelector/AnalysesSelector.types.ts +7 -2
  43. package/src/components/ui/AnalysesSelector/SelectInlineRenamer.tsx +191 -0
  44. package/src/components/ui/Button/Button.styl +5 -8
  45. package/src/components/ui/Chart/Chart.tsx +21 -1
  46. package/src/components/ui/Chart/components/BaseChartWrapper.styl +9 -0
  47. package/src/components/ui/Chart/components/BaseChartWrapper.styl.d.ts +2 -0
  48. package/src/components/ui/Chart/components/BaseChartWrapper.tsx +62 -14
  49. package/src/components/ui/Chart/components/CustomChartLegend/CustomChartLegend.tsx +2 -3
  50. package/src/components/ui/Chart/components/index.ts +5 -1
  51. package/src/components/ui/Chart/tools/formatters.ts +20 -2
  52. package/src/components/ui/ChartAreaInteractive/index.ts +15 -1
  53. package/src/components/ui/Chat/ChatMessage/AgentMessageContent.helpers.test.tsx +17 -0
  54. package/src/components/ui/Chat/ChatMessage/AgentMessageContent.helpers.tsx +23 -7
  55. package/src/components/ui/Select/Select.tsx +13 -5
  56. package/src/components/ui/Select/Select.types.ts +1 -0
  57. package/src/components/ui/SmartTextTruncate/SmartTextTruncate.types.ts +1 -3
  58. package/src/components/widgets/DriverCard/DriverCard.tsx +7 -8
  59. package/src/components/widgets/DriversComparisonChart/DriversComparisonChart.styl +0 -1
  60. package/src/components/widgets/PerformanceChart/PerformanceChart.styl +1 -1
  61. package/src/docs/components/DocsSidebar/DocsSidebar.tsx +7 -2
@@ -1,13 +1,4 @@
1
1
  // Helper function to format large numbers with k/m abbreviations
2
- const formatNumber = (value) => {
3
- if (value >= 1000000) {
4
- return (value / 1000000).toFixed(1).replace(/\.0$/, '') + 'm';
5
- }
6
- else if (value >= 1000) {
7
- return (value / 1000).toFixed(1).replace(/\.0$/, '') + 'k';
8
- }
9
- return value.toFixed(0);
10
- };
11
2
  // Find pin position for a specific date in the current filtered data
12
3
  const findPinPositionForDate = (targetDate, filteredData) => {
13
4
  if (!filteredData.length)
@@ -207,4 +198,4 @@ const isAnalysisFailed = (analysis) => {
207
198
  const isAnalysisNotFailed = (analysis) => !isAnalysisFailed(analysis);
208
199
  const isAnalysisDone = (analysis) => analysis.status?.toLowerCase() === 'done';
209
200
 
210
- export { DRAG_TIME_RANGE_PREFIX, encodeDragTimeRange, filterDataForTimeRange, findPinPositionForDate, formatNumber, isAnalysisDone, isAnalysisFailed, isAnalysisNotFailed, isTimeRangePreset, longDateFormatter, parseDragTimeRange, shortDateFormatter };
201
+ export { DRAG_TIME_RANGE_PREFIX, encodeDragTimeRange, filterDataForTimeRange, findPinPositionForDate, isAnalysisDone, isAnalysisFailed, isAnalysisNotFailed, isTimeRangePreset, longDateFormatter, parseDragTimeRange, shortDateFormatter };
@@ -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,4 +1,4 @@
1
- import { jsx, jsxs } from 'react/jsx-runtime';
1
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
2
  import cn from 'classnames';
3
3
  import * as SelectPrimitive from '@radix-ui/react-select';
4
4
  import { ChevronDownIcon, ChevronUpIcon } from 'lucide-react';
@@ -13,8 +13,8 @@ function SelectGroup({ ...props }) {
13
13
  function SelectValue({ ...props }) {
14
14
  return jsx(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
15
15
  }
16
- function SelectTrigger({ className, size = 'md', variant = 'default', darker = false, children, hideChevron = false, ...props }) {
17
- return (jsxs(SelectPrimitive.Trigger, { "data-slot": "select-trigger", "data-size": size, "data-variant": variant, className: cn(S.selectTrigger, darker && S.darker, className), ...props, children: [children, !hideChevron && (jsx(SelectPrimitive.Icon, { asChild: true, children: jsx(ChevronDownIcon, { className: S.selectIcon }) }))] }));
16
+ function SelectTrigger({ className, size = 'md', variant = 'default', darker = false, children, hideChevron = false, asChild = false, ...props }) {
17
+ return (jsx(SelectPrimitive.Trigger, { "data-slot": "select-trigger", "data-size": size, "data-variant": variant, className: cn(S.selectTrigger, darker && S.darker, className), asChild: asChild, ...props, children: asChild ? (children) : (jsxs(Fragment, { children: [children, !hideChevron && (jsx(SelectPrimitive.Icon, { asChild: true, children: jsx(ChevronDownIcon, { className: S.selectIcon }) }))] })) }));
18
18
  }
19
19
  function SelectContent({ className, children, position = 'popper', ...props }) {
20
20
  return (jsx(SelectPrimitive.Portal, { children: jsxs(SelectPrimitive.Content, { "data-slot": "select-content", className: cn(S.selectContent, position === 'popper' && S.selectContentPopper, className), position: position, ...props, children: [jsx(SelectScrollUpButton, {}), jsx(SelectPrimitive.Viewport, { className: cn(S.selectViewport, position === 'popper' && S.selectViewportPopper, className), children: children }), jsx(SelectScrollDownButton, {})] }) }));
@@ -1,14 +1,14 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
- import React__default, { useMemo } from 'react';
3
2
  import { CoffeeIcon, TrendUpIcon, TrendDownIcon } from '@phosphor-icons/react';
3
+ import React__default, { useMemo } from 'react';
4
+ import { Tooltip, TooltipTrigger, TooltipContent } from '../../ui/Tooltip/Tooltip.js';
4
5
  import { Badge } from '../../ui/Badge/Badge.js';
5
- import { Card, CardContent } from '../../ui/Card/Card.js';
6
+ import { DriverPerformanceChart } from './DriverPerformanceChart.js';
6
7
  import { LabelWithId } from '../../ui/LabelWithId/LabelWithId.js';
8
+ import S from './DriverCard.styl.js';
7
9
  import { Skeleton } from '../../ui/Skeleton/Skeleton.js';
8
- import { Tooltip, TooltipTrigger, TooltipContent } from '../../ui/Tooltip/Tooltip.js';
9
10
  import { getCategoryIcon } from '../DriverMap/driverCategoryIcon.js';
10
- import S from './DriverCard.styl.js';
11
- import { DriverPerformanceChart } from './DriverPerformanceChart.js';
11
+ import { Card, CardContent } from '../../ui/Card/Card.js';
12
12
 
13
13
  function DriverCard({ selectedDriver, isLoading, inQueue = false, driverSelector, }) {
14
14
  const importanceDisplay = useMemo(() => {
@@ -74,7 +74,7 @@ function DriverCard({ selectedDriver, isLoading, inQueue = false, driverSelector
74
74
  return (jsx(Card, { className: S.root, children: jsx(CardContent, { centered: true, fullHeight: true, noScroll: true, children: jsxs("div", { className: S.queueMessage, children: [jsx(CoffeeIcon, { size: 24, weight: "regular" }), jsxs("div", { children: [jsx("p", { children: "Retrieving drivers data." }), jsx("p", { children: "This may take a while." })] })] }) }) }));
75
75
  }
76
76
  if (isLoading) {
77
- return (jsx(Card, { className: S.root, children: jsx(CardContent, { noScroll: true, children: jsxs("div", { className: S.skeletonContainer, children: [jsx(Skeleton, { className: `${S.skeletonItem} ${S.hs} ${S.w75}` }), jsx(Skeleton, { className: `${S.skeletonItem} ${S.hm} ${S.w50}` }), jsx(Skeleton, { className: `${S.skeletonItem} ${S.hs} ${S.w33}` }), jsxs("div", { className: S.skeletonGroup, children: [jsx(Skeleton, { className: `${S.skeletonItem} ${S.hs} ${S.wFull}` }), jsx(Skeleton, { className: `${S.skeletonItem} ${S.hs} ${S.w75}` }), jsx(Skeleton, { className: `${S.skeletonItem} ${S.hs} ${S.w50}` })] }), jsx(Skeleton, { className: `${S.skeletonItem} ${S.hl} ${S.wFull}` }), jsxs("div", { className: S.skeletonGroup, children: [jsx(Skeleton, { className: `${S.skeletonItem} ${S.hs} ${S.wFull}` }), jsx(Skeleton, { className: `${S.skeletonItem} ${S.hs} ${S.w75}` })] })] }) }) }));
77
+ return (jsx(Card, { className: S.root, radiusSize: "xl", children: jsx(CardContent, { noScroll: true, children: jsxs("div", { className: S.skeletonContainer, children: [jsx(Skeleton, { className: `${S.skeletonItem} ${S.hs} ${S.w75}` }), jsx(Skeleton, { className: `${S.skeletonItem} ${S.hm} ${S.w50}` }), jsx(Skeleton, { className: `${S.skeletonItem} ${S.hs} ${S.w33}` }), jsxs("div", { className: S.skeletonGroup, children: [jsx(Skeleton, { className: `${S.skeletonItem} ${S.hs} ${S.wFull}` }), jsx(Skeleton, { className: `${S.skeletonItem} ${S.hs} ${S.w75}` }), jsx(Skeleton, { className: `${S.skeletonItem} ${S.hs} ${S.w50}` })] }), jsx(Skeleton, { className: `${S.skeletonItem} ${S.hl} ${S.wFull}` }), jsxs("div", { className: S.skeletonGroup, children: [jsx(Skeleton, { className: `${S.skeletonItem} ${S.hs} ${S.wFull}` }), jsx(Skeleton, { className: `${S.skeletonItem} ${S.hs} ${S.w75}` })] })] }) }) }));
78
78
  }
79
79
  if (!selectedDriver) {
80
80
  return (jsx(Card, { className: S.root, children: jsx(CardContent, { centered: true, fullHeight: true, noScroll: true, children: jsx("span", { className: S.noDriverSelected, children: "No driver selected" }) }) }));
@@ -6,22 +6,26 @@ 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';
13
9
  import '../../ui/AnalysisLineIcon/AnalysisLineIcon.styl.js';
14
10
  import '@radix-ui/react-slot';
15
11
  import '../../ui/Badge/Badge.styl.js';
16
12
  import '../../ui/LabelWithId/LabelWithId.styl.js';
17
- import '../../ui/AnalysesSelector/AnalysesSelector.styl.js';
13
+ import '@radix-ui/react-select';
14
+ import 'lucide-react';
15
+ import '../../ui/Select/Select.styl.js';
18
16
  import '../../ui/TextShimmer/TextShimmer.js';
17
+ import '@phosphor-icons/react';
18
+ import '../../ui/AnalysesSelector/AnalysesSelector.styl.js';
19
+ import '../../ui/Button/Button.styl.js';
20
+ import '../../ui/Input/Input.js';
21
+ import '../../ui/Tooltip/Tooltip.js';
19
22
  import '../../ui/Chart/components/CustomChartLegend/CustomChartLegend.styl.js';
20
23
  import '../../ui/ChartAreaInteractive/ChartLines.js';
21
24
  import '../../ui/Skeleton/Skeleton.styl.js';
22
25
  import 'lightweight-charts';
23
26
  import '../../ui/Chart/lightweight/LightweightForecastChart.styl.js';
24
27
  import { ChartEmptyState } from '../../ui/Chart/components/ChartEmptyState/ChartEmptyState.js';
28
+ import '../../ui/Chart/components/QuantileBands.js';
25
29
  import S from './DriverPerformanceChart.styl.js';
26
30
  import { generateDriverChartData } from './driverPerformanceChartData.js';
27
31
 
@@ -1,6 +1,6 @@
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)}}.DriversComparisonChart_root__GLnlF{display:flex;flex-direction:column;gap:var(--p-4);width:100%}.DriversComparisonChart_chartShell__0AzAz{position:relative;width:100%}.DriversComparisonChart_chartShellLoading__wTLod .DriversComparisonChart_chartSlot__WKe6N{opacity:.3;pointer-events:none}.DriversComparisonChart_chartShellLoading__wTLod .recharts-line-dots{display:none}.DriversComparisonChart_chartSlot__WKe6N{width:100%}.DriversComparisonChart_loadingLayer__HlEmA{inset:0;pointer-events:none;position:absolute;z-index:10}.DriversComparisonChart_loadingMessage__Li3S7{color:var(--foreground);display:block;left:0;position:absolute;text-align:center;top:calc(50% - 4em);width:100%;z-index:1}.DriversComparisonChart_loadingText__0y3Ms{backdrop-filter:blur(10px);border-radius:var(--p-4);box-shadow:0 0 0 2px var(--page-color);color:var(--foreground);font-size:16px;font-weight:500;padding:0 var(--p-3)}.DriversComparisonChart_chartWithOverlay__SMToK{position:relative;width:100%}.DriversComparisonChart_chartInteractiveLayer__0aquh{transition:opacity .2s ease-out;width:100%}.DriversComparisonChart_chartInteractiveDimmed__us1dv{opacity:.3;pointer-events:none}.DriversComparisonChart_chartInteractiveDimmed__us1dv .recharts-line-dots{display:none}.DriversComparisonChart_chartEmptyOverlay__eXqzk{align-items:center;display:flex;inset:0;justify-content:center;padding:var(--p-4);pointer-events:none;position:absolute;z-index:6}.DriversComparisonChart_chartEmptyBlurb__Tjy9E{max-width:42rem;padding:0 var(--p-3)}.DriversComparisonChart_seriesEmptyWrap__RyRs5{display:flex;justify-content:center;padding:var(--p-8) var(--p-4)}.DriversComparisonChart_seriesSection__yrf4I{width:100%}.DriversComparisonChart_seriesTableWrapper__oredC{margin:0 calc(var(--page-x-padding)*-1);position:relative}.DriversComparisonChart_seriesTableContainer__dhfXK{overflow-x:auto;position:relative;width:100%}.DriversComparisonChart_seriesScrollbar__2jgk6{bottom:calc(var(--p-7)*-1 + 2px)!important}.DriversComparisonChart_seriesTable__NybPR{max-width:100%;table-layout:auto;width:100%}.DriversComparisonChart_seriesTable__NybPR tr{cursor:pointer;position:relative}.DriversComparisonChart_seriesTable__NybPR td:not(:first-child),.DriversComparisonChart_seriesTable__NybPR th:not(:first-child){text-align:right}.DriversComparisonChart_seriesColSeries__--0mj{text-align:left;vertical-align:middle}.DriversComparisonChart_rowHidden__Fwhna{opacity:.4}.DriversComparisonChart_colorSwatch__o3ZVr{border-radius:2px;display:inline-flex;flex-shrink:0;height:10px;margin-right:var(--p-2);width:10px}.DriversComparisonChart_seriesLabel__Aidof{display:-webkit-box;-webkit-line-clamp:3;max-width:60vw;min-width:0;padding:var(--p-2) 0;-webkit-box-orient:vertical;white-space:break-spaces}.DriversComparisonChart_chartContainer__1eM-O{margin-left:calc(var(--page-x-padding)*-1 + 26px);max-width:calc(100% + 60px);transition:opacity .3s ease-out;width:calc(100% + 60px)}.DriversComparisonChart_chartContainer__1eM-O .recharts-yAxis-tick-labels{display:none}@media (max-width:768px){.DriversComparisonChart_chartContainer__1eM-O{margin-left:calc(var(--page-x-padding)*-1 + 10px);width:calc(100% + 30px)}}";
3
+ var css_248z = "@media (max-width:768px){:root{--page-x-padding:var(--p-6);--page-y-padding:var(--p-6)}}.DriversComparisonChart_root__GLnlF{display:flex;flex-direction:column;gap:var(--p-4);width:100%}.DriversComparisonChart_chartShell__0AzAz{position:relative;width:100%}.DriversComparisonChart_chartShellLoading__wTLod .DriversComparisonChart_chartSlot__WKe6N{opacity:.3;pointer-events:none}.DriversComparisonChart_chartShellLoading__wTLod .recharts-line-dots{display:none}.DriversComparisonChart_chartSlot__WKe6N{width:100%}.DriversComparisonChart_loadingLayer__HlEmA{inset:0;pointer-events:none;position:absolute;z-index:10}.DriversComparisonChart_loadingMessage__Li3S7{color:var(--foreground);display:block;left:0;position:absolute;text-align:center;top:calc(50% - 4em);width:100%;z-index:1}.DriversComparisonChart_loadingText__0y3Ms{backdrop-filter:blur(10px);border-radius:var(--p-4);box-shadow:0 0 0 2px var(--page-color);color:var(--foreground);font-size:16px;font-weight:500;padding:0 var(--p-3)}.DriversComparisonChart_chartWithOverlay__SMToK{position:relative;width:100%}.DriversComparisonChart_chartInteractiveLayer__0aquh{transition:opacity .2s ease-out;width:100%}.DriversComparisonChart_chartInteractiveDimmed__us1dv{opacity:.3;pointer-events:none}.DriversComparisonChart_chartInteractiveDimmed__us1dv .recharts-line-dots{display:none}.DriversComparisonChart_chartEmptyOverlay__eXqzk{align-items:center;display:flex;inset:0;justify-content:center;padding:var(--p-4);pointer-events:none;position:absolute;z-index:6}.DriversComparisonChart_chartEmptyBlurb__Tjy9E{max-width:42rem;padding:0 var(--p-3)}.DriversComparisonChart_seriesEmptyWrap__RyRs5{display:flex;justify-content:center;padding:var(--p-8) var(--p-4)}.DriversComparisonChart_seriesSection__yrf4I{width:100%}.DriversComparisonChart_seriesTableWrapper__oredC{margin:0 calc(var(--page-x-padding)*-1);position:relative}.DriversComparisonChart_seriesTableContainer__dhfXK{overflow-x:auto;position:relative;width:100%}.DriversComparisonChart_seriesScrollbar__2jgk6{bottom:calc(var(--p-7)*-1 + 2px)!important}.DriversComparisonChart_seriesTable__NybPR{max-width:100%;table-layout:auto;width:100%}.DriversComparisonChart_seriesTable__NybPR tr{cursor:pointer;position:relative}.DriversComparisonChart_seriesTable__NybPR td:not(:first-child),.DriversComparisonChart_seriesTable__NybPR th:not(:first-child){text-align:right}.DriversComparisonChart_seriesColSeries__--0mj{text-align:left;vertical-align:middle}.DriversComparisonChart_rowHidden__Fwhna{opacity:.4}.DriversComparisonChart_colorSwatch__o3ZVr{border-radius:2px;display:inline-flex;flex-shrink:0;height:10px;margin-right:var(--p-2);width:10px}.DriversComparisonChart_seriesLabel__Aidof{display:-webkit-box;-webkit-line-clamp:3;max-width:60vw;min-width:0;-webkit-box-orient:vertical;white-space:break-spaces}.DriversComparisonChart_chartContainer__1eM-O{margin-left:calc(var(--page-x-padding)*-1 + 26px);max-width:calc(100% + 60px);transition:opacity .3s ease-out;width:calc(100% + 60px)}.DriversComparisonChart_chartContainer__1eM-O .recharts-yAxis-tick-labels{display:none}@media (max-width:768px){.DriversComparisonChart_chartContainer__1eM-O{margin-left:calc(var(--page-x-padding)*-1 + 10px);width:calc(100% + 30px)}}";
4
4
  var S = {"root":"DriversComparisonChart_root__GLnlF","chartShell":"DriversComparisonChart_chartShell__0AzAz","chartShellLoading":"DriversComparisonChart_chartShellLoading__wTLod","chartSlot":"DriversComparisonChart_chartSlot__WKe6N","loadingLayer":"DriversComparisonChart_loadingLayer__HlEmA","loadingMessage":"DriversComparisonChart_loadingMessage__Li3S7","loadingText":"DriversComparisonChart_loadingText__0y3Ms","chartWithOverlay":"DriversComparisonChart_chartWithOverlay__SMToK","chartInteractiveLayer":"DriversComparisonChart_chartInteractiveLayer__0aquh","chartInteractiveDimmed":"DriversComparisonChart_chartInteractiveDimmed__us1dv","chartEmptyOverlay":"DriversComparisonChart_chartEmptyOverlay__eXqzk","chartEmptyBlurb":"DriversComparisonChart_chartEmptyBlurb__Tjy9E","seriesEmptyWrap":"DriversComparisonChart_seriesEmptyWrap__RyRs5","seriesSection":"DriversComparisonChart_seriesSection__yrf4I","seriesTableWrapper":"DriversComparisonChart_seriesTableWrapper__oredC","seriesTableContainer":"DriversComparisonChart_seriesTableContainer__dhfXK","seriesScrollbar":"DriversComparisonChart_seriesScrollbar__2jgk6","seriesTable":"DriversComparisonChart_seriesTable__NybPR","seriesColSeries":"DriversComparisonChart_seriesColSeries__--0mj","rowHidden":"DriversComparisonChart_rowHidden__Fwhna","colorSwatch":"DriversComparisonChart_colorSwatch__o3ZVr","seriesLabel":"DriversComparisonChart_seriesLabel__Aidof","chartContainer":"DriversComparisonChart_chartContainer__1eM-O"};
5
5
  styleInject(css_248z);
6
6
 
@@ -1,6 +1,6 @@
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)}}.PerformanceChart_root__sda5D{transition:opacity .3s ease-out}.PerformanceChart_root__sda5D,.PerformanceChart_viewTabs__5aHg1{display:flex;flex:1;flex-direction:column;min-height:0;width:100%}.PerformanceChart_toolbarRow__SwRJc{align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--p-4);margin-bottom:var(--p-4);width:100%}.PerformanceChart_toolBarRight__ODMr4{align-items:center;display:flex;flex-grow:1;gap:var(--p-4);justify-content:flex-end}.PerformanceChart_viewTabsList__fNv-x{align-items:center;background-color:transparent;display:inline-flex;flex-shrink:0;flex-wrap:wrap;gap:var(--p-2);margin-bottom:0}.PerformanceChart_perHorizonChartWrap__j15JS{min-height:var(--chart-height);position:relative;width:100%}.PerformanceChart_perHorizonChartWrapLoading__1ZGCz .PerformanceChart_chartContainer__qXeA8{opacity:.3;pointer-events:none}.PerformanceChart_perHorizonChartWrapLoading__1ZGCz .recharts-line-dots{display:none}.PerformanceChart_performanceLoadingLayer__GmfFi{inset:0;pointer-events:none;position:absolute;z-index:10}.PerformanceChart_chartEmptyOverlay__zrZ5M{align-items:center;display:flex;inset:0;justify-content:center;padding:var(--p-6);pointer-events:none;position:absolute;z-index:11}.PerformanceChart_chartEmptyOverlay__zrZ5M a{pointer-events:auto}.PerformanceChart_performanceLoadingText__Jwxg3{color:var(--foreground);font-size:16px;font-weight:500}.PerformanceChart_loading__sCsV8{opacity:.5}.PerformanceChart_loaded__a-dM9{opacity:1}.PerformanceChart_chartContainer__qXeA8{margin-left:calc(var(--page-x-padding)*-1 + 26px);max-width:calc(100% + 60px);transition:opacity .3s ease-out;width:calc(100% + 60px)}.PerformanceChart_chartContainer__qXeA8 [data-slot=skeleton]{filter:opacity(.6);height:100%!important;position:relative;width:100%!important}.PerformanceChart_loaded__a-dM9 .PerformanceChart_chartContainer__qXeA8 [data-slot=skeleton]{opacity:0}.PerformanceChart_chartContainer__qXeA8 svg{overflow:visible}@media (max-width:768px){.PerformanceChart_chartContainer__qXeA8{margin-left:calc(var(--page-x-padding)*-1 + 10px);max-width:calc(100% + 30px);width:calc(100% + 30px)}}.PerformanceChart_isEmpty__Xutg2 .PerformanceChart_chartContainer__qXeA8{opacity:.3;pointer-events:none}.PerformanceChart_isEmpty__Xutg2 .recharts-line-dots{display:none}.PerformanceChart_tableSection__tTV55{--side-margin:calc(var(--page-x-padding)*-1);display:flex;flex-direction:column;gap:var(--p-4);margin:var(--p-6) var(--side-margin) 0 var(--side-margin)}.PerformanceChart_tableWrapper__3uB5y{position:relative}.PerformanceChart_tableContainer__PyPUV{overflow-x:auto;position:relative;width:100%}.PerformanceChart_table__8GI8O{background:var(--card);border-radius:14px;box-shadow:inset 0 0 0 1px var(--border)}.PerformanceChart_table__8GI8O td:first-child,.PerformanceChart_table__8GI8O th:first-child{padding-left:var(--p-10)!important}.PerformanceChart_table__8GI8O td:last-child,.PerformanceChart_table__8GI8O th:last-child{padding-right:0!important}.PerformanceChart_tableCustomDataFooterRow__011Jx td{border-top:1px solid var(--border);text-align:center;vertical-align:middle}.PerformanceChart_tableCustomDataFooterCell__zeEFL:first-child:last-child{padding:0!important;text-align:center}.PerformanceChart_tableCustomDataFooterCell__zeEFL:first-child:last-child button{border-radius:0;height:calc(100% - 2px);width:calc(100% - 2px)}.PerformanceChart_scrollbar__f3WD9{bottom:calc(var(--p-7)*-1 + 2px)!important}.PerformanceChart_forecastCell__vItmM{align-items:center;display:flex;gap:8px}.PerformanceChart_editCustomPerformanceButton__jmzox{margin:-12px 0 -8px}.PerformanceChart_colorCircle__-uXyr{border-radius:10px;flex-shrink:0;height:20px;margin-left:-10px;width:5px}.PerformanceChart_emptyState__UCpW4{color:var(--muted-foreground);display:block;left:0;padding:var(--p-4) var(--p-10);position:absolute;text-align:center;top:calc(50% - 4em);width:100%;z-index:1}.PerformanceChart_performanceLoadingLayer__GmfFi .PerformanceChart_emptyState__UCpW4{color:var(--foreground)}.PerformanceChart_emptyState__UCpW4 a{padding:0 var(--p-1);text-decoration:underline}.PerformanceChart_emptyState__UCpW4 a:hover{color:var(--sb-cyan-400)}";
3
+ var css_248z = "@media (max-width:768px){:root{--page-x-padding:var(--p-6);--page-y-padding:var(--p-6)}}.PerformanceChart_root__sda5D{transition:opacity .3s ease-out}.PerformanceChart_root__sda5D,.PerformanceChart_viewTabs__5aHg1{display:flex;flex:1;flex-direction:column;min-height:0;width:100%}.PerformanceChart_toolbarRow__SwRJc{align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--p-4);margin-bottom:var(--p-4);width:100%}.PerformanceChart_toolBarRight__ODMr4{align-items:center;display:flex;flex-grow:1;gap:var(--p-4);justify-content:flex-end}.PerformanceChart_viewTabsList__fNv-x{align-items:center;background-color:transparent;display:inline-flex;flex-shrink:0;flex-wrap:wrap;gap:var(--p-2);margin-bottom:0}.PerformanceChart_perHorizonChartWrap__j15JS{min-height:var(--chart-height);position:relative;width:100%}.PerformanceChart_perHorizonChartWrapLoading__1ZGCz .PerformanceChart_chartContainer__qXeA8{opacity:.3;pointer-events:none}.PerformanceChart_perHorizonChartWrapLoading__1ZGCz .recharts-line-dots{display:none}.PerformanceChart_performanceLoadingLayer__GmfFi{inset:0;pointer-events:none;position:absolute;z-index:10}.PerformanceChart_chartEmptyOverlay__zrZ5M{align-items:center;display:flex;inset:0;justify-content:center;padding:var(--p-6);pointer-events:none;position:absolute;z-index:11}.PerformanceChart_chartEmptyOverlay__zrZ5M a{pointer-events:auto}.PerformanceChart_performanceLoadingText__Jwxg3{color:var(--foreground);font-size:16px;font-weight:500}.PerformanceChart_loading__sCsV8{opacity:.5}.PerformanceChart_loaded__a-dM9{opacity:1}.PerformanceChart_chartContainer__qXeA8{margin-left:calc(var(--page-x-padding)*-1 + 26px);max-width:calc(100% + 60px);transition:opacity .3s ease-out;width:calc(100% + 60px)}.PerformanceChart_chartContainer__qXeA8 [data-slot=skeleton]{filter:opacity(.6);height:100%!important;position:relative;width:100%!important}.PerformanceChart_loaded__a-dM9 .PerformanceChart_chartContainer__qXeA8 [data-slot=skeleton]{opacity:0}.PerformanceChart_chartContainer__qXeA8 svg{overflow:visible}@media (max-width:768px){.PerformanceChart_chartContainer__qXeA8{margin-left:calc(var(--page-x-padding)*-1 + 10px);max-width:calc(100% + 30px);width:calc(100% + 30px)}}.PerformanceChart_isEmpty__Xutg2 .PerformanceChart_chartContainer__qXeA8{opacity:.3;pointer-events:none}.PerformanceChart_isEmpty__Xutg2 .recharts-line-dots{display:none}.PerformanceChart_tableSection__tTV55{--side-margin:calc(var(--page-x-padding)*-1);display:flex;flex-direction:column;gap:var(--p-4);margin:var(--p-6) var(--side-margin) 0 var(--side-margin)}.PerformanceChart_tableWrapper__3uB5y{position:relative}.PerformanceChart_tableContainer__PyPUV{overflow-x:auto;position:relative;width:100%}.PerformanceChart_table__8GI8O{background:var(--card);border-radius:14px;box-shadow:inset 0 0 0 1px var(--border)}.PerformanceChart_table__8GI8O td:first-child,.PerformanceChart_table__8GI8O th:first-child{padding-left:var(--p-10)!important}.PerformanceChart_table__8GI8O td:last-child,.PerformanceChart_table__8GI8O th:last-child{padding-right:0!important}.PerformanceChart_tableCustomDataFooterRow__011Jx td{border-top:1px solid var(--border);text-align:center;vertical-align:middle}.PerformanceChart_tableCustomDataFooterCell__zeEFL:first-child:last-child{padding:0!important;text-align:center}.PerformanceChart_tableCustomDataFooterCell__zeEFL:first-child:last-child button{border-radius:0;height:var(--p-12);width:calc(100% - 2px)}.PerformanceChart_scrollbar__f3WD9{bottom:calc(var(--p-7)*-1 + 2px)!important}.PerformanceChart_forecastCell__vItmM{align-items:center;display:flex;gap:8px}.PerformanceChart_editCustomPerformanceButton__jmzox{margin:-12px 0 -8px}.PerformanceChart_colorCircle__-uXyr{border-radius:10px;flex-shrink:0;height:20px;margin-left:-10px;width:5px}.PerformanceChart_emptyState__UCpW4{color:var(--muted-foreground);display:block;left:0;padding:var(--p-4) var(--p-10);position:absolute;text-align:center;top:calc(50% - 4em);width:100%;z-index:1}.PerformanceChart_performanceLoadingLayer__GmfFi .PerformanceChart_emptyState__UCpW4{color:var(--foreground)}.PerformanceChart_emptyState__UCpW4 a{padding:0 var(--p-1);text-decoration:underline}.PerformanceChart_emptyState__UCpW4 a:hover{color:var(--sb-cyan-400)}";
4
4
  var S = {"root":"PerformanceChart_root__sda5D","viewTabs":"PerformanceChart_viewTabs__5aHg1","toolbarRow":"PerformanceChart_toolbarRow__SwRJc","toolBarRight":"PerformanceChart_toolBarRight__ODMr4","viewTabsList":"PerformanceChart_viewTabsList__fNv-x","perHorizonChartWrap":"PerformanceChart_perHorizonChartWrap__j15JS","perHorizonChartWrapLoading":"PerformanceChart_perHorizonChartWrapLoading__1ZGCz","chartContainer":"PerformanceChart_chartContainer__qXeA8","performanceLoadingLayer":"PerformanceChart_performanceLoadingLayer__GmfFi","chartEmptyOverlay":"PerformanceChart_chartEmptyOverlay__zrZ5M","performanceLoadingText":"PerformanceChart_performanceLoadingText__Jwxg3","loading":"PerformanceChart_loading__sCsV8","loaded":"PerformanceChart_loaded__a-dM9","isEmpty":"PerformanceChart_isEmpty__Xutg2","tableSection":"PerformanceChart_tableSection__tTV55","tableWrapper":"PerformanceChart_tableWrapper__3uB5y","tableContainer":"PerformanceChart_tableContainer__PyPUV","table":"PerformanceChart_table__8GI8O","tableCustomDataFooterRow":"PerformanceChart_tableCustomDataFooterRow__011Jx","tableCustomDataFooterCell":"PerformanceChart_tableCustomDataFooterCell__zeEFL","scrollbar":"PerformanceChart_scrollbar__f3WD9","forecastCell":"PerformanceChart_forecastCell__vItmM","editCustomPerformanceButton":"PerformanceChart_editCustomPerformanceButton__jmzox","colorCircle":"PerformanceChart_colorCircle__-uXyr","emptyState":"PerformanceChart_emptyState__UCpW4"};
5
5
  styleInject(css_248z);
6
6
 
package/dist/esm/index.js CHANGED
@@ -25,7 +25,7 @@ export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader,
25
25
  export { ChartLegend, ChartTooltip } from './components/ui/Chart/Chart.js';
26
26
  export { THEMES } from './components/ui/Chart/Chart.types.js';
27
27
  export { ChartAreaInteractive, chartConfig } from './components/ui/ChartAreaInteractive/ChartAreaInteractive.js';
28
- export { DRAG_TIME_RANGE_PREFIX, encodeDragTimeRange, filterDataForTimeRange, findPinPositionForDate, formatNumber, isAnalysisDone, isAnalysisFailed, isAnalysisNotFailed, isTimeRangePreset, longDateFormatter, parseDragTimeRange, shortDateFormatter } from './components/ui/ChartAreaInteractive/ChartAreaInteractive.helpers.js';
28
+ export { DRAG_TIME_RANGE_PREFIX, encodeDragTimeRange, filterDataForTimeRange, findPinPositionForDate, isAnalysisDone, isAnalysisFailed, isAnalysisNotFailed, isTimeRangePreset, longDateFormatter, parseDragTimeRange, shortDateFormatter } from './components/ui/ChartAreaInteractive/ChartAreaInteractive.helpers.js';
29
29
  export { ChartLines, FORECAST_COLORS_MAP, FORECAST_LINE_COLORS, getForecastColor, getForecastQuantileBandColor, resolveQuantileBandFillForForecastLine } from './components/ui/ChartAreaInteractive/ChartLines.js';
30
30
  export { DonutChart } from './components/ui/DonutChart/DonutChart.js';
31
31
  export { BarChart } from './components/ui/BarChart/BarChart.js';
@@ -133,6 +133,15 @@ export { ChartLegendItem } from './components/ui/Chart/components/ChartLegendIte
133
133
  export { CustomChartLegend } from './components/ui/Chart/components/CustomChartLegend/CustomChartLegend.js';
134
134
  export { LightweightForecastChart } from './components/ui/Chart/lightweight/LightweightForecastChart.js';
135
135
  export { ChartEmptyState } from './components/ui/Chart/components/ChartEmptyState/ChartEmptyState.js';
136
+ export { ConfidenceBands } from './components/ui/Chart/components/ConfidenceBands.js';
137
+ export { ForecastBoundaries } from './components/ui/Chart/components/ForecastBoundaries.js';
138
+ export { ForecastLine } from './components/ui/Chart/components/ForecastLine.js';
139
+ export { HistoricalLine } from './components/ui/Chart/components/HistoricalLine.js';
140
+ export { DEFAULT_QUANTILE_BAND_COLOR, QuantileBands } from './components/ui/Chart/components/QuantileBands.js';
141
+ export { formatCompactAxisNumber, formatDate, formatNumber } from './components/ui/Chart/tools/formatters.js';
142
+ export { useChartAnimation } from './components/ui/Chart/hooks/useChartAnimation.js';
143
+ export { useChartColors } from './components/ui/Chart/hooks/useChartColors.js';
144
+ export { useLegendState } from './components/ui/Chart/hooks/useLegendState.js';
136
145
  export { ChartContainer, ChartStyle } from './components/ui/Chart/components/ChartContainer.js';
137
146
  export { ChartTooltipContent } from './components/ui/Chart/components/ChartTooltipContent.js';
138
147
  export { ChartLegendContent } from './components/ui/Chart/components/ChartLegendContent.js';
@@ -1,2 +1,2 @@
1
1
  import type { AnalysesSelectorProps } from './AnalysesSelector.types';
2
- export declare function AnalysesSelector({ items, selectedIds, onItemToggle, inlineMode, placeholder, disabled, size, variant, darker, className, triggerProps, onFailedItemClick, showHistorical, enableToggleHidden, maxVisibleItems, preventDeselection, hiddenSeries: hiddenSeriesProp, onToggleSeries, isAnalysisInProgress: isAnalysisInProgressProp, }: AnalysesSelectorProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function AnalysesSelector({ items, selectedIds, onItemToggle, inlineMode, placeholder, disabled, size, variant, darker, className, triggerProps, onFailedItemClick, showHistorical, enableToggleHidden, maxVisibleItems, preventDeselection, hiddenSeries: hiddenSeriesProp, onToggleSeries, isAnalysisInProgress: isAnalysisInProgressProp, rename, }: AnalysesSelectorProps): import("react/jsx-runtime").JSX.Element;
@@ -16,7 +16,7 @@ export interface AnalysesSelectorProps {
16
16
  inlineMode?: boolean;
17
17
  placeholder?: string;
18
18
  disabled?: boolean;
19
- size?: 'sm' | 'md' | 'lg';
19
+ size?: SelectTriggerProps['size'];
20
20
  variant?: 'default' | 'clear';
21
21
  darker?: boolean;
22
22
  className?: string;
@@ -35,4 +35,10 @@ export interface AnalysesSelectorProps {
35
35
  onToggleSeries?: (analysisId: number | string) => void;
36
36
  /** Override default pending/running/cancelling detection for labels. */
37
37
  isAnalysisInProgress?: (status?: string) => boolean;
38
+ rename?: {
39
+ value: string;
40
+ onChange: (value: string) => void | Promise<void>;
41
+ /** Only show Renamer when selected item id is in this set */
42
+ renameableItemIds: Set<number>;
43
+ };
38
44
  }
@@ -0,0 +1,12 @@
1
+ type SelectInlineRenamerProps = {
2
+ value: string;
3
+ /** Shown in trigger when not editing; defaults to `value`. */
4
+ displayLabel?: string;
5
+ onChange: (value: string) => void | Promise<void>;
6
+ disabled?: boolean;
7
+ className?: string;
8
+ isRenaming: boolean;
9
+ onEnterRenaming: () => void;
10
+ };
11
+ export declare function SelectInlineRenamer({ value, displayLabel, onChange, onEnterRenaming, disabled, className, isRenaming, }: SelectInlineRenamerProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -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,15 @@ 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';
15
+ export { ConfidenceBands } from './components/ConfidenceBands';
16
+ export { ForecastBoundaries } from './components/ForecastBoundaries';
17
+ export { ForecastLine } from './components/ForecastLine';
18
+ export { HistoricalLine } from './components/HistoricalLine';
19
+ export { DEFAULT_QUANTILE_BAND_COLOR, QuantileBands, } from './components/QuantileBands';
20
+ export { formatCompactAxisNumber, formatDate, formatNumber, } from './tools/formatters';
21
+ export { useChartAnimation } from './hooks/useChartAnimation';
22
+ export { useChartColors } from './hooks/useChartColors';
23
+ export { useLegendState } from './hooks/useLegendState';
@@ -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;
@@ -5,7 +5,7 @@ export { ChartGrid } from './ChartGrid';
5
5
  export { ChartLegendContent } from './ChartLegendContent';
6
6
  export { ChartTooltipContent } from './ChartTooltipContent';
7
7
  export { ForecastLine } from './ForecastLine';
8
- export { formatDate, formatNumber } from '../tools/formatters';
8
+ export { formatCompactAxisNumber, formatDate, formatNumber, } from '../tools/formatters';
9
9
  export { HistoricalLine } from './HistoricalLine';
10
10
  export { useChartAnimation } from '../hooks/useChartAnimation';
11
11
  export { useChartColors } from '../hooks/useChartColors';
@@ -1,7 +1,9 @@
1
1
  /**
2
- * Format number for display (with k/m abbreviations)
2
+ * Format number for display (with k/m/b abbreviations)
3
3
  */
4
4
  export declare const formatNumber: (value: number) => string;
5
+ /** Shorter Y-axis style labels (integer B/M/K) for tight layouts. */
6
+ export declare const formatCompactAxisNumber: (value: number) => string;
5
7
  /**
6
8
  * Format Y-axis number with smart rounding based on magnitude
7
9
  */
@@ -1,5 +1,5 @@
1
1
  export * from './ChartAreaInteractive';
2
- export * from './ChartAreaInteractive.helpers';
2
+ export { DRAG_TIME_RANGE_PREFIX, encodeDragTimeRange, filterDataForTimeRange, findPinPositionForDate, isAnalysisDone, isAnalysisFailed, isAnalysisNotFailed, isTimeRangePreset, longDateFormatter, parseDragTimeRange, shortDateFormatter, type FilterDataForTimeRangeOptions, type TimeRangePreset, } from './ChartAreaInteractive.helpers';
3
3
  export * from './ChartAreaInteractive.types';
4
4
  export * from './ChartLines';
5
5
  export type { OverlayMode } from './ChartAreaInteractive.types';
@@ -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;
@@ -4,7 +4,7 @@ declare function Select({ variant, ...props }: SelectProps & {
4
4
  }): import("react/jsx-runtime").JSX.Element;
5
5
  declare function SelectGroup({ ...props }: SelectGroupProps): import("react/jsx-runtime").JSX.Element;
6
6
  declare function SelectValue({ ...props }: SelectValueProps): import("react/jsx-runtime").JSX.Element;
7
- declare function SelectTrigger({ className, size, variant, darker, children, hideChevron, ...props }: SelectTriggerProps): import("react/jsx-runtime").JSX.Element;
7
+ declare function SelectTrigger({ className, size, variant, darker, children, hideChevron, asChild, ...props }: SelectTriggerProps): import("react/jsx-runtime").JSX.Element;
8
8
  declare function SelectContent({ className, children, position, ...props }: SelectContentProps): import("react/jsx-runtime").JSX.Element;
9
9
  declare function SelectItem({ className, children, selected, ...props }: SelectItemProps): import("react/jsx-runtime").JSX.Element;
10
10
  declare function SelectSeparator({ className, ...props }: SelectSeparatorProps): import("react/jsx-runtime").JSX.Element;
@@ -6,6 +6,7 @@ export interface SelectTriggerProps extends React.ComponentProps<typeof SelectPr
6
6
  className?: string;
7
7
  children?: React.ReactNode;
8
8
  hideChevron?: boolean;
9
+ asChild?: boolean;
9
10
  }
10
11
  export type SelectProps = React.ComponentProps<typeof SelectPrimitive.Root>;
11
12
  export type SelectGroupProps = React.ComponentProps<typeof SelectPrimitive.Group>;
@@ -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.98",
3
+ "version": "1.3.100",
4
4
  "description": "Sybilion Design System — React UI components (Webpack + Stylus)",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -5,6 +5,28 @@
5
5
  flex-wrap wrap
6
6
  // margin-left calc(var(--p-2) * -1)
7
7
 
8
+ .selectTriggerRenamer
9
+ min-width 0
10
+
11
+ .selectInlineRenamer
12
+ display flex
13
+ align-items center
14
+ min-width 0
15
+
16
+ .selectInlineRenamerInput
17
+ padding 0 var(--p-2)
18
+ margin-left calc(var(--p-2) * -1)
19
+ max-width calc(100% - var(--p-4)) !important
20
+ border-radius var(--p-2)
21
+
22
+ .renamerEditButton
23
+ opacity 0.5
24
+ flex-shrink 0
25
+ transition opacity 0.2s ease-out
26
+
27
+ .selectInlineRenamer:hover &
28
+ opacity 1
29
+
8
30
  .variant-default.single
9
31
  background-color var(--background)
10
32
  border-radius var(--p-4)
@@ -33,6 +55,10 @@
33
55
  &.dimmed
34
56
  opacity 0.5
35
57
 
58
+ .itemBadge
59
+ margin-top -2px
60
+ margin-bottom -2px
61
+
36
62
  .icon
37
63
  width 16px
38
64
  height 16px
@@ -69,24 +95,59 @@
69
95
  object-fit contain
70
96
 
71
97
  .label
72
- flex-grow 1
98
+ flex 1 1 auto
99
+ min-width 0
73
100
  font-size var(--text-xs)
74
101
  white-space nowrap
102
+ overflow hidden
103
+ text-overflow ellipsis
75
104
 
76
105
  .selectItemContent
77
106
  display flex
107
+ flex-direction row
108
+ flex-wrap nowrap
78
109
  align-items center
79
110
  gap var(--p-2)
80
111
  width 100%
112
+ min-width 0
113
+ flex 1
81
114
 
82
115
  .selectTrigger
83
116
  min-width auto
84
117
  height auto
85
118
  font-size var(--text-xs)
86
119
 
120
+ .selectTriggerRenaming
121
+ width 100% !important
122
+ max-width 100% !important
123
+
124
+ .selectTriggerContent
125
+ flex 1
126
+ width 100%
127
+ min-width 0
128
+
129
+ .selectTriggerRenamer
130
+ min-width 0
131
+
87
132
  .selectTriggerLabelWithId
88
133
  display flex
89
134
 
135
+ .selectTriggerContent
136
+ display flex
137
+ align-items center
138
+ gap var(--p-2)
139
+ min-width 0
140
+ min-height var(--p-9)
141
+
142
+ > :last-child
143
+ flex-shrink 0
144
+ min-width 0
145
+ max-width 100%
146
+
147
+ .selectTriggerRenamerDisabled
148
+ button
149
+ pointer-events none
150
+
90
151
  .itemLabelWithId
91
152
  flex-grow 1
92
153
  min-width 0
@@ -8,12 +8,20 @@ interface CssExports {
8
8
  'iconImage': string;
9
9
  'iconWrapper': string;
10
10
  'item': string;
11
+ 'itemBadge': string;
11
12
  'itemLabelWithId': string;
12
13
  'label': string;
14
+ 'renamerEditButton': string;
13
15
  'root': string;
16
+ 'selectInlineRenamer': string;
17
+ 'selectInlineRenamerInput': string;
14
18
  'selectItemContent': string;
15
19
  'selectTrigger': string;
20
+ 'selectTriggerContent': string;
16
21
  'selectTriggerLabelWithId': string;
22
+ 'selectTriggerRenamer': string;
23
+ 'selectTriggerRenamerDisabled': string;
24
+ 'selectTriggerRenaming': string;
17
25
  'single': string;
18
26
  'variant-default': string;
19
27
  }