@mlw-packages/react-components 1.8.5 → 1.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +59 -40
- package/dist/index.d.mts +80 -8
- package/dist/index.d.ts +80 -8
- package/dist/index.js +721 -268
- package/dist/index.mjs +699 -238
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -429,9 +429,15 @@ body {
|
|
|
429
429
|
.-left-1 {
|
|
430
430
|
left: -0.25rem;
|
|
431
431
|
}
|
|
432
|
+
.-left-3 {
|
|
433
|
+
left: -0.75rem;
|
|
434
|
+
}
|
|
432
435
|
.-right-1 {
|
|
433
436
|
right: -0.25rem;
|
|
434
437
|
}
|
|
438
|
+
.-right-3 {
|
|
439
|
+
right: -0.75rem;
|
|
440
|
+
}
|
|
435
441
|
.-top-1 {
|
|
436
442
|
top: -0.25rem;
|
|
437
443
|
}
|
|
@@ -1548,12 +1554,18 @@ body {
|
|
|
1548
1554
|
.cursor-default {
|
|
1549
1555
|
cursor: default;
|
|
1550
1556
|
}
|
|
1557
|
+
.cursor-ew-resize {
|
|
1558
|
+
cursor: ew-resize;
|
|
1559
|
+
}
|
|
1551
1560
|
.cursor-grab {
|
|
1552
1561
|
cursor: grab;
|
|
1553
1562
|
}
|
|
1554
1563
|
.cursor-grabbing {
|
|
1555
1564
|
cursor: grabbing;
|
|
1556
1565
|
}
|
|
1566
|
+
.cursor-move {
|
|
1567
|
+
cursor: move;
|
|
1568
|
+
}
|
|
1557
1569
|
.cursor-not-allowed {
|
|
1558
1570
|
cursor: not-allowed;
|
|
1559
1571
|
}
|
|
@@ -1622,6 +1634,9 @@ body {
|
|
|
1622
1634
|
.grid-cols-5 {
|
|
1623
1635
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
1624
1636
|
}
|
|
1637
|
+
.grid-cols-6 {
|
|
1638
|
+
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
1639
|
+
}
|
|
1625
1640
|
.grid-cols-7 {
|
|
1626
1641
|
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
1627
1642
|
}
|
|
@@ -2195,6 +2210,9 @@ body {
|
|
|
2195
2210
|
.bg-background\/80 {
|
|
2196
2211
|
background-color: hsl(var(--background) / 0.8);
|
|
2197
2212
|
}
|
|
2213
|
+
.bg-background\/95 {
|
|
2214
|
+
background-color: hsl(var(--background) / 0.95);
|
|
2215
|
+
}
|
|
2198
2216
|
.bg-black\/40 {
|
|
2199
2217
|
background-color: rgb(0 0 0 / 0.4);
|
|
2200
2218
|
}
|
|
@@ -2303,6 +2321,10 @@ body {
|
|
|
2303
2321
|
--tw-bg-opacity: 1;
|
|
2304
2322
|
background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
|
|
2305
2323
|
}
|
|
2324
|
+
.bg-gray-500 {
|
|
2325
|
+
--tw-bg-opacity: 1;
|
|
2326
|
+
background-color: rgb(107 114 128 / var(--tw-bg-opacity, 1));
|
|
2327
|
+
}
|
|
2306
2328
|
.bg-gray-700 {
|
|
2307
2329
|
--tw-bg-opacity: 1;
|
|
2308
2330
|
background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
|
|
@@ -2366,6 +2388,9 @@ body {
|
|
|
2366
2388
|
.bg-muted\/50 {
|
|
2367
2389
|
background-color: hsl(var(--muted) / 0.5);
|
|
2368
2390
|
}
|
|
2391
|
+
.bg-muted\/60 {
|
|
2392
|
+
background-color: hsl(var(--muted) / 0.6);
|
|
2393
|
+
}
|
|
2369
2394
|
.bg-muted\/80 {
|
|
2370
2395
|
background-color: hsl(var(--muted) / 0.8);
|
|
2371
2396
|
}
|
|
@@ -3120,6 +3145,10 @@ body {
|
|
|
3120
3145
|
--tw-text-opacity: 1;
|
|
3121
3146
|
color: rgb(107 114 128 / var(--tw-text-opacity, 1));
|
|
3122
3147
|
}
|
|
3148
|
+
.text-gray-600 {
|
|
3149
|
+
--tw-text-opacity: 1;
|
|
3150
|
+
color: rgb(75 85 99 / var(--tw-text-opacity, 1));
|
|
3151
|
+
}
|
|
3123
3152
|
.text-gray-700 {
|
|
3124
3153
|
--tw-text-opacity: 1;
|
|
3125
3154
|
color: rgb(55 65 81 / var(--tw-text-opacity, 1));
|
|
@@ -3350,15 +3379,9 @@ body {
|
|
|
3350
3379
|
.underline {
|
|
3351
3380
|
text-decoration-line: underline;
|
|
3352
3381
|
}
|
|
3353
|
-
.line-through {
|
|
3354
|
-
text-decoration-line: line-through;
|
|
3355
|
-
}
|
|
3356
3382
|
.no-underline {
|
|
3357
3383
|
text-decoration-line: none;
|
|
3358
3384
|
}
|
|
3359
|
-
.decoration-2 {
|
|
3360
|
-
text-decoration-thickness: 2px;
|
|
3361
|
-
}
|
|
3362
3385
|
.underline-offset-4 {
|
|
3363
3386
|
text-underline-offset: 4px;
|
|
3364
3387
|
}
|
|
@@ -4934,38 +4957,38 @@ body {
|
|
|
4934
4957
|
--tw-border-opacity: 1;
|
|
4935
4958
|
border-color: rgb(167 139 250 / var(--tw-border-opacity, 1));
|
|
4936
4959
|
}
|
|
4937
|
-
.data-\[type\=InfoIcon\]\:border-blue-500[data-type=InfoIcon] {
|
|
4938
|
-
--tw-border-opacity: 1;
|
|
4939
|
-
border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
|
|
4940
|
-
}
|
|
4941
|
-
.data-\[type\=WarningIcon\]\:border-yellow-500[data-type=WarningIcon] {
|
|
4942
|
-
--tw-border-opacity: 1;
|
|
4943
|
-
border-color: rgb(234 179 8 / var(--tw-border-opacity, 1));
|
|
4944
|
-
}
|
|
4945
4960
|
.data-\[type\=error\]\:border-red-500[data-type=error] {
|
|
4946
4961
|
--tw-border-opacity: 1;
|
|
4947
4962
|
border-color: rgb(239 68 68 / var(--tw-border-opacity, 1));
|
|
4948
4963
|
}
|
|
4949
|
-
.data-\[type\=
|
|
4964
|
+
.data-\[type\=info\]\:border-blue-500[data-type=info] {
|
|
4950
4965
|
--tw-border-opacity: 1;
|
|
4951
|
-
border-color: rgb(
|
|
4966
|
+
border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
|
|
4952
4967
|
}
|
|
4953
|
-
.data-\[type\=
|
|
4968
|
+
.data-\[type\=success\]\:border-green-500[data-type=success] {
|
|
4954
4969
|
--tw-border-opacity: 1;
|
|
4955
|
-
border-
|
|
4970
|
+
border-color: rgb(34 197 94 / var(--tw-border-opacity, 1));
|
|
4956
4971
|
}
|
|
4957
|
-
.data-\[type\=
|
|
4972
|
+
.data-\[type\=warning\]\:border-yellow-500[data-type=warning] {
|
|
4958
4973
|
--tw-border-opacity: 1;
|
|
4959
|
-
border-
|
|
4974
|
+
border-color: rgb(234 179 8 / var(--tw-border-opacity, 1));
|
|
4960
4975
|
}
|
|
4961
4976
|
.data-\[type\=error\]\:border-l-red-500[data-type=error] {
|
|
4962
4977
|
--tw-border-opacity: 1;
|
|
4963
4978
|
border-left-color: rgb(239 68 68 / var(--tw-border-opacity, 1));
|
|
4964
4979
|
}
|
|
4980
|
+
.data-\[type\=info\]\:border-l-blue-500[data-type=info] {
|
|
4981
|
+
--tw-border-opacity: 1;
|
|
4982
|
+
border-left-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
|
|
4983
|
+
}
|
|
4965
4984
|
.data-\[type\=success\]\:border-l-green-500[data-type=success] {
|
|
4966
4985
|
--tw-border-opacity: 1;
|
|
4967
4986
|
border-left-color: rgb(34 197 94 / var(--tw-border-opacity, 1));
|
|
4968
4987
|
}
|
|
4988
|
+
.data-\[type\=warning\]\:border-l-yellow-500[data-type=warning] {
|
|
4989
|
+
--tw-border-opacity: 1;
|
|
4990
|
+
border-left-color: rgb(234 179 8 / var(--tw-border-opacity, 1));
|
|
4991
|
+
}
|
|
4969
4992
|
.data-\[active\=true\]\:bg-accent\/50[data-active=true] {
|
|
4970
4993
|
background-color: hsl(var(--accent) / 0.5);
|
|
4971
4994
|
}
|
|
@@ -5021,21 +5044,17 @@ body {
|
|
|
5021
5044
|
.data-\[state\=unchecked\]\:bg-input[data-state=unchecked] {
|
|
5022
5045
|
background-color: hsl(var(--input));
|
|
5023
5046
|
}
|
|
5024
|
-
.data-\[type\=
|
|
5025
|
-
|
|
5026
|
-
background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));
|
|
5047
|
+
.data-\[type\=error\]\:bg-red-50\/95[data-type=error] {
|
|
5048
|
+
background-color: rgb(254 242 242 / 0.95);
|
|
5027
5049
|
}
|
|
5028
|
-
.data-\[type\=
|
|
5029
|
-
|
|
5030
|
-
background-color: rgb(254 252 232 / var(--tw-bg-opacity, 1));
|
|
5050
|
+
.data-\[type\=info\]\:bg-blue-50\/95[data-type=info] {
|
|
5051
|
+
background-color: rgb(239 246 255 / 0.95);
|
|
5031
5052
|
}
|
|
5032
|
-
.data-\[type\=
|
|
5033
|
-
|
|
5034
|
-
background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
|
|
5053
|
+
.data-\[type\=success\]\:bg-green-50\/95[data-type=success] {
|
|
5054
|
+
background-color: rgb(240 253 244 / 0.95);
|
|
5035
5055
|
}
|
|
5036
|
-
.data-\[type\=
|
|
5037
|
-
|
|
5038
|
-
background-color: rgb(240 253 244 / var(--tw-bg-opacity, 1));
|
|
5056
|
+
.data-\[type\=warning\]\:bg-yellow-50\/95[data-type=warning] {
|
|
5057
|
+
background-color: rgb(254 252 232 / 0.95);
|
|
5039
5058
|
}
|
|
5040
5059
|
.data-\[inset\]\:pl-8[data-inset] {
|
|
5041
5060
|
padding-left: 2rem;
|
|
@@ -5061,22 +5080,22 @@ body {
|
|
|
5061
5080
|
.data-\[state\=open\]\:text-muted-foreground[data-state=open] {
|
|
5062
5081
|
color: hsl(var(--muted-foreground));
|
|
5063
5082
|
}
|
|
5064
|
-
.data-\[type\=InfoIcon\]\:text-blue-800[data-type=InfoIcon] {
|
|
5065
|
-
--tw-text-opacity: 1;
|
|
5066
|
-
color: rgb(30 64 175 / var(--tw-text-opacity, 1));
|
|
5067
|
-
}
|
|
5068
|
-
.data-\[type\=WarningIcon\]\:text-yellow-800[data-type=WarningIcon] {
|
|
5069
|
-
--tw-text-opacity: 1;
|
|
5070
|
-
color: rgb(133 77 14 / var(--tw-text-opacity, 1));
|
|
5071
|
-
}
|
|
5072
5083
|
.data-\[type\=error\]\:text-red-800[data-type=error] {
|
|
5073
5084
|
--tw-text-opacity: 1;
|
|
5074
5085
|
color: rgb(153 27 27 / var(--tw-text-opacity, 1));
|
|
5075
5086
|
}
|
|
5087
|
+
.data-\[type\=info\]\:text-blue-800[data-type=info] {
|
|
5088
|
+
--tw-text-opacity: 1;
|
|
5089
|
+
color: rgb(30 64 175 / var(--tw-text-opacity, 1));
|
|
5090
|
+
}
|
|
5076
5091
|
.data-\[type\=success\]\:text-green-800[data-type=success] {
|
|
5077
5092
|
--tw-text-opacity: 1;
|
|
5078
5093
|
color: rgb(22 101 52 / var(--tw-text-opacity, 1));
|
|
5079
5094
|
}
|
|
5095
|
+
.data-\[type\=warning\]\:text-yellow-800[data-type=warning] {
|
|
5096
|
+
--tw-text-opacity: 1;
|
|
5097
|
+
color: rgb(133 77 14 / var(--tw-text-opacity, 1));
|
|
5098
|
+
}
|
|
5080
5099
|
.data-\[variant\=destructive\]\:text-destructive[data-variant=destructive] {
|
|
5081
5100
|
color: hsl(var(--destructive));
|
|
5082
5101
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -252,11 +252,11 @@ type ToasterProps = React.ComponentProps<typeof Toaster$1> & {
|
|
|
252
252
|
};
|
|
253
253
|
declare const Toaster: ({ testId, ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
|
|
254
254
|
declare const toast: {
|
|
255
|
-
success: (message: string) => string | number;
|
|
256
|
-
error: (message: string) => string | number;
|
|
257
|
-
warning: (message: string) => string | number;
|
|
258
|
-
info: (message: string) => string | number;
|
|
259
|
-
loading: (message: string) => string | number;
|
|
255
|
+
success: (message: string, description?: string) => string | number;
|
|
256
|
+
error: (message: string, description?: string) => string | number;
|
|
257
|
+
warning: (message: string, description?: string) => string | number;
|
|
258
|
+
info: (message: string, description?: string) => string | number;
|
|
259
|
+
loading: (message: string, description?: string) => string | number;
|
|
260
260
|
};
|
|
261
261
|
|
|
262
262
|
declare const TooltipProviderBase: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
@@ -1639,7 +1639,7 @@ declare const renderPillLabel: (color: string, variant: Variant, valueFormatter?
|
|
|
1639
1639
|
|
|
1640
1640
|
declare const renderInsideBarLabel: (color: string, valueFormatter?: valueFormatter) => (props: LabelRendererProps) => react_jsx_runtime.JSX.Element;
|
|
1641
1641
|
|
|
1642
|
-
interface ChartData$
|
|
1642
|
+
interface ChartData$4 {
|
|
1643
1643
|
[key: string]: string | number | boolean | null | undefined;
|
|
1644
1644
|
}
|
|
1645
1645
|
interface XAxisConfig$2 {
|
|
@@ -1655,13 +1655,23 @@ interface BiaxialConfig {
|
|
|
1655
1655
|
decimals?: number;
|
|
1656
1656
|
stroke?: string | Record<string, string>;
|
|
1657
1657
|
}
|
|
1658
|
+
interface TimeSeriesConfig {
|
|
1659
|
+
start?: number;
|
|
1660
|
+
end?: number;
|
|
1661
|
+
onRangeChange?: (startIndex: number, endIndex: number) => void;
|
|
1662
|
+
height?: number;
|
|
1663
|
+
brushColor?: string;
|
|
1664
|
+
brushStroke?: string;
|
|
1665
|
+
miniChartOpacity?: number;
|
|
1666
|
+
chartHeight?: number;
|
|
1667
|
+
}
|
|
1658
1668
|
type SeriesProp$1 = {
|
|
1659
1669
|
bar?: string[];
|
|
1660
1670
|
line?: string[];
|
|
1661
1671
|
area?: string[];
|
|
1662
1672
|
};
|
|
1663
1673
|
interface ChartProps {
|
|
1664
|
-
data: ChartData$
|
|
1674
|
+
data: ChartData$4[];
|
|
1665
1675
|
series?: SeriesProp$1;
|
|
1666
1676
|
className?: string;
|
|
1667
1677
|
chartMargin?: Partial<{
|
|
@@ -1697,6 +1707,7 @@ interface ChartProps {
|
|
|
1697
1707
|
formatBR?: boolean;
|
|
1698
1708
|
legendUppercase?: boolean;
|
|
1699
1709
|
isLoading?: boolean;
|
|
1710
|
+
timeSeries?: boolean | TimeSeriesConfig;
|
|
1700
1711
|
}
|
|
1701
1712
|
declare const Chart: React__default.FC<ChartProps>;
|
|
1702
1713
|
|
|
@@ -1790,6 +1801,26 @@ interface CustomPieChartProps {
|
|
|
1790
1801
|
}
|
|
1791
1802
|
declare const CustomPieChart: React__default.FC<CustomPieChartProps>;
|
|
1792
1803
|
|
|
1804
|
+
interface TimeSeriesData {
|
|
1805
|
+
[key: string]: string | number | boolean | null | undefined;
|
|
1806
|
+
}
|
|
1807
|
+
interface TimeSeriesProps extends Omit<React__default.ComponentProps<typeof Chart>, "data" | "xAxis" | "timeSeries"> {
|
|
1808
|
+
data: TimeSeriesData[];
|
|
1809
|
+
xAxis: string;
|
|
1810
|
+
chartHeight?: number;
|
|
1811
|
+
height?: number;
|
|
1812
|
+
brushHeight?: number;
|
|
1813
|
+
start?: number;
|
|
1814
|
+
end?: number;
|
|
1815
|
+
defaultStartIndex?: number;
|
|
1816
|
+
defaultEndIndex?: number;
|
|
1817
|
+
onRangeChange?: (startIndex: number, endIndex: number) => void;
|
|
1818
|
+
brushColor?: string;
|
|
1819
|
+
brushStroke?: string;
|
|
1820
|
+
miniChartOpacity?: number;
|
|
1821
|
+
}
|
|
1822
|
+
declare const TimeSeries: React__default.FC<TimeSeriesProps>;
|
|
1823
|
+
|
|
1793
1824
|
interface Props$4 {
|
|
1794
1825
|
processedData: Array<{
|
|
1795
1826
|
name: string;
|
|
@@ -1908,6 +1939,33 @@ interface Props {
|
|
|
1908
1939
|
}
|
|
1909
1940
|
declare const TooltipSimple: React__default.FC<Props>;
|
|
1910
1941
|
|
|
1942
|
+
interface ChartData$3 {
|
|
1943
|
+
[key: string]: string | number | boolean | null | undefined;
|
|
1944
|
+
}
|
|
1945
|
+
interface BrushProps {
|
|
1946
|
+
data: ChartData$3[];
|
|
1947
|
+
startIndex: number;
|
|
1948
|
+
endIndex: number;
|
|
1949
|
+
onMouseDown: (e: React__default.MouseEvent, type: "start" | "end" | "middle") => void;
|
|
1950
|
+
brushRef: React__default.RefObject<HTMLDivElement | null>;
|
|
1951
|
+
xAxisKey: string;
|
|
1952
|
+
seriesOrder: Array<{
|
|
1953
|
+
type: "bar" | "line" | "area";
|
|
1954
|
+
key: string;
|
|
1955
|
+
}>;
|
|
1956
|
+
finalColors: Record<string, string>;
|
|
1957
|
+
brushHeight?: number;
|
|
1958
|
+
brushColor?: string;
|
|
1959
|
+
miniChartOpacity?: number;
|
|
1960
|
+
showGrid?: boolean;
|
|
1961
|
+
gridColor?: string;
|
|
1962
|
+
margin?: {
|
|
1963
|
+
left?: number;
|
|
1964
|
+
right?: number;
|
|
1965
|
+
};
|
|
1966
|
+
}
|
|
1967
|
+
declare const Brush: React__default.FC<BrushProps>;
|
|
1968
|
+
|
|
1911
1969
|
interface UseChartHighlightsReturn {
|
|
1912
1970
|
highlightedSeries: Set<string>;
|
|
1913
1971
|
showOnlyHighlighted: boolean;
|
|
@@ -1976,6 +2034,20 @@ declare const useChartClick: ({ enableDraggableTooltips, xAxisDataKey, toggleToo
|
|
|
1976
2034
|
handleSeriesClick: (...args: unknown[]) => void;
|
|
1977
2035
|
};
|
|
1978
2036
|
|
|
2037
|
+
interface UseTimeSeriesRangeProps {
|
|
2038
|
+
dataLength: number;
|
|
2039
|
+
defaultStartIndex?: number;
|
|
2040
|
+
defaultEndIndex?: number;
|
|
2041
|
+
onRangeChange?: (startIndex: number, endIndex: number) => void;
|
|
2042
|
+
}
|
|
2043
|
+
declare function useTimeSeriesRange({ dataLength, defaultStartIndex, defaultEndIndex, onRangeChange, }: UseTimeSeriesRangeProps): {
|
|
2044
|
+
startIndex: number;
|
|
2045
|
+
endIndex: number;
|
|
2046
|
+
isDragging: "end" | "start" | "middle" | null;
|
|
2047
|
+
brushRef: React$1.RefObject<HTMLDivElement | null>;
|
|
2048
|
+
handleMouseDown: (e: React.MouseEvent, type: "start" | "end" | "middle") => void;
|
|
2049
|
+
};
|
|
2050
|
+
|
|
1979
2051
|
interface NoDataProps {
|
|
1980
2052
|
paddingLeft?: number;
|
|
1981
2053
|
height?: number | string;
|
|
@@ -2098,4 +2170,4 @@ declare const useDrag: (options?: UseDragOptions) => {
|
|
|
2098
2170
|
isDragging: boolean;
|
|
2099
2171
|
};
|
|
2100
2172
|
|
|
2101
|
-
export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, type AvatarComboboxProps, type AvatarComboboxPropsWithGroupItems, type AvatarComboboxPropsWithItems, type AvatarComboboxTestIds, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, type BannerProps, BarChart, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, ButtonBase, ButtonGroupBase, type ButtonProps, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, type CalendarEvent, type CalendarEventAgenda, type CalendarProps, type CalendarView, type CalendarViewAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPreviousBase, ChangeButton, Chart, type ChartData, type ChartHooksArgs, CheckButton, CheckboxBase, CheckboxTree, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, CopyButton, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, type DebouncedInputProps, type DefaultAvatarComboboxProps, DefaultEndHour, DefaultEndHourAgenda, type DefaultMultiSelectProps, type DefaultSelectProps, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, DraggableEvent, DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage, EventAgenda, EventCalendar, type EventColor, type EventColorAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileUploader, type FileUploaderProps, type FileWithPreview, FilterButton, type FinalValueFormatter, HideButton, Highlights, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, type IconProps, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, LabelBase, Leaderboard, type LeaderboardItem, type LeaderboardProps, LikeButton, CustomLineChart as LineChart, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, type Margins, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, type MultiComboboxProps, type MultiComboboxTestIds, MultiSelect, MultiSelectBase, MultiSelectContentBase, type MultiSelectContextType, MultiSelectGroupBase, type MultiSelectItem, MultiSelectItemBase, type MultiSelectProps, type MultiSelectPropsWithGroupItems, type MultiSelectPropsWithItems, MultiSelectSeparatorBase, type MultiSelectTestIds, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, type NewSelectProps, NoData, NotificationButton, type Padding, type Period, PeriodsDropdown, CustomPieChart as PieChart, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, type Primitive, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, RangePicker, type RangePickerProps, RefreshButton, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectGroupBase, type SelectItem, SelectItemBase, SelectLabelBase, type SelectPropsWithGroupItems, type SelectPropsWithItems, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, type SelectTestIds, SelectTriggerBase, SelectValueBase, SeparatorBase, type SeriesCounts, type SeriesEntry, type SeriesProp, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, type SliderBaseProps, StartHour, StartHourAgenda, StatusIndicator, type StatusProps, SwitchBase, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, type TextAreaBaseProps, type Theme, ThemeProviderBase, TimePicker, TimePickerInput, type TimePickerInputProps, type TimePickerType, Toaster, type TooltipAdaptedRow, TooltipBase, TooltipContentBase, type TooltipItem, TooltipProviderBase, TooltipSimple, TooltipTriggerBase, RechartTooltipWithTotal as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, type ValueFormatter, type ValueFormatterType, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getMaxDataValue, getMinDataValue, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normalizeAttendDate, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, toast, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useTheme, type valueFormatter, visualForItem };
|
|
2173
|
+
export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, type AvatarComboboxProps, type AvatarComboboxPropsWithGroupItems, type AvatarComboboxPropsWithItems, type AvatarComboboxTestIds, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, type BannerProps, BarChart, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, Brush, ButtonBase, ButtonGroupBase, type ButtonProps, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, type CalendarEvent, type CalendarEventAgenda, type CalendarProps, type CalendarView, type CalendarViewAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPreviousBase, ChangeButton, Chart, type ChartData, type ChartHooksArgs, CheckButton, CheckboxBase, CheckboxTree, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, CopyButton, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, type DebouncedInputProps, type DefaultAvatarComboboxProps, DefaultEndHour, DefaultEndHourAgenda, type DefaultMultiSelectProps, type DefaultSelectProps, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, DraggableEvent, DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage, EventAgenda, EventCalendar, type EventColor, type EventColorAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileUploader, type FileUploaderProps, type FileWithPreview, FilterButton, type FinalValueFormatter, HideButton, Highlights, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, type IconProps, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, LabelBase, Leaderboard, type LeaderboardItem, type LeaderboardProps, LikeButton, CustomLineChart as LineChart, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, type Margins, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, type MultiComboboxProps, type MultiComboboxTestIds, MultiSelect, MultiSelectBase, MultiSelectContentBase, type MultiSelectContextType, MultiSelectGroupBase, type MultiSelectItem, MultiSelectItemBase, type MultiSelectProps, type MultiSelectPropsWithGroupItems, type MultiSelectPropsWithItems, MultiSelectSeparatorBase, type MultiSelectTestIds, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, type NewSelectProps, NoData, NotificationButton, type Padding, type Period, PeriodsDropdown, CustomPieChart as PieChart, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, type Primitive, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, RangePicker, type RangePickerProps, RefreshButton, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectGroupBase, type SelectItem, SelectItemBase, SelectLabelBase, type SelectPropsWithGroupItems, type SelectPropsWithItems, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, type SelectTestIds, SelectTriggerBase, SelectValueBase, SeparatorBase, type SeriesCounts, type SeriesEntry, type SeriesProp, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, type SliderBaseProps, StartHour, StartHourAgenda, StatusIndicator, type StatusProps, SwitchBase, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, type TextAreaBaseProps, type Theme, ThemeProviderBase, TimePicker, TimePickerInput, type TimePickerInputProps, type TimePickerType, TimeSeries, Toaster, type TooltipAdaptedRow, TooltipBase, TooltipContentBase, type TooltipItem, TooltipProviderBase, TooltipSimple, TooltipTriggerBase, RechartTooltipWithTotal as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, type ValueFormatter, type ValueFormatterType, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getMaxDataValue, getMinDataValue, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normalizeAttendDate, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, toast, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useTheme, useTimeSeriesRange, type valueFormatter, visualForItem };
|
package/dist/index.d.ts
CHANGED
|
@@ -252,11 +252,11 @@ type ToasterProps = React.ComponentProps<typeof Toaster$1> & {
|
|
|
252
252
|
};
|
|
253
253
|
declare const Toaster: ({ testId, ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
|
|
254
254
|
declare const toast: {
|
|
255
|
-
success: (message: string) => string | number;
|
|
256
|
-
error: (message: string) => string | number;
|
|
257
|
-
warning: (message: string) => string | number;
|
|
258
|
-
info: (message: string) => string | number;
|
|
259
|
-
loading: (message: string) => string | number;
|
|
255
|
+
success: (message: string, description?: string) => string | number;
|
|
256
|
+
error: (message: string, description?: string) => string | number;
|
|
257
|
+
warning: (message: string, description?: string) => string | number;
|
|
258
|
+
info: (message: string, description?: string) => string | number;
|
|
259
|
+
loading: (message: string, description?: string) => string | number;
|
|
260
260
|
};
|
|
261
261
|
|
|
262
262
|
declare const TooltipProviderBase: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
@@ -1639,7 +1639,7 @@ declare const renderPillLabel: (color: string, variant: Variant, valueFormatter?
|
|
|
1639
1639
|
|
|
1640
1640
|
declare const renderInsideBarLabel: (color: string, valueFormatter?: valueFormatter) => (props: LabelRendererProps) => react_jsx_runtime.JSX.Element;
|
|
1641
1641
|
|
|
1642
|
-
interface ChartData$
|
|
1642
|
+
interface ChartData$4 {
|
|
1643
1643
|
[key: string]: string | number | boolean | null | undefined;
|
|
1644
1644
|
}
|
|
1645
1645
|
interface XAxisConfig$2 {
|
|
@@ -1655,13 +1655,23 @@ interface BiaxialConfig {
|
|
|
1655
1655
|
decimals?: number;
|
|
1656
1656
|
stroke?: string | Record<string, string>;
|
|
1657
1657
|
}
|
|
1658
|
+
interface TimeSeriesConfig {
|
|
1659
|
+
start?: number;
|
|
1660
|
+
end?: number;
|
|
1661
|
+
onRangeChange?: (startIndex: number, endIndex: number) => void;
|
|
1662
|
+
height?: number;
|
|
1663
|
+
brushColor?: string;
|
|
1664
|
+
brushStroke?: string;
|
|
1665
|
+
miniChartOpacity?: number;
|
|
1666
|
+
chartHeight?: number;
|
|
1667
|
+
}
|
|
1658
1668
|
type SeriesProp$1 = {
|
|
1659
1669
|
bar?: string[];
|
|
1660
1670
|
line?: string[];
|
|
1661
1671
|
area?: string[];
|
|
1662
1672
|
};
|
|
1663
1673
|
interface ChartProps {
|
|
1664
|
-
data: ChartData$
|
|
1674
|
+
data: ChartData$4[];
|
|
1665
1675
|
series?: SeriesProp$1;
|
|
1666
1676
|
className?: string;
|
|
1667
1677
|
chartMargin?: Partial<{
|
|
@@ -1697,6 +1707,7 @@ interface ChartProps {
|
|
|
1697
1707
|
formatBR?: boolean;
|
|
1698
1708
|
legendUppercase?: boolean;
|
|
1699
1709
|
isLoading?: boolean;
|
|
1710
|
+
timeSeries?: boolean | TimeSeriesConfig;
|
|
1700
1711
|
}
|
|
1701
1712
|
declare const Chart: React__default.FC<ChartProps>;
|
|
1702
1713
|
|
|
@@ -1790,6 +1801,26 @@ interface CustomPieChartProps {
|
|
|
1790
1801
|
}
|
|
1791
1802
|
declare const CustomPieChart: React__default.FC<CustomPieChartProps>;
|
|
1792
1803
|
|
|
1804
|
+
interface TimeSeriesData {
|
|
1805
|
+
[key: string]: string | number | boolean | null | undefined;
|
|
1806
|
+
}
|
|
1807
|
+
interface TimeSeriesProps extends Omit<React__default.ComponentProps<typeof Chart>, "data" | "xAxis" | "timeSeries"> {
|
|
1808
|
+
data: TimeSeriesData[];
|
|
1809
|
+
xAxis: string;
|
|
1810
|
+
chartHeight?: number;
|
|
1811
|
+
height?: number;
|
|
1812
|
+
brushHeight?: number;
|
|
1813
|
+
start?: number;
|
|
1814
|
+
end?: number;
|
|
1815
|
+
defaultStartIndex?: number;
|
|
1816
|
+
defaultEndIndex?: number;
|
|
1817
|
+
onRangeChange?: (startIndex: number, endIndex: number) => void;
|
|
1818
|
+
brushColor?: string;
|
|
1819
|
+
brushStroke?: string;
|
|
1820
|
+
miniChartOpacity?: number;
|
|
1821
|
+
}
|
|
1822
|
+
declare const TimeSeries: React__default.FC<TimeSeriesProps>;
|
|
1823
|
+
|
|
1793
1824
|
interface Props$4 {
|
|
1794
1825
|
processedData: Array<{
|
|
1795
1826
|
name: string;
|
|
@@ -1908,6 +1939,33 @@ interface Props {
|
|
|
1908
1939
|
}
|
|
1909
1940
|
declare const TooltipSimple: React__default.FC<Props>;
|
|
1910
1941
|
|
|
1942
|
+
interface ChartData$3 {
|
|
1943
|
+
[key: string]: string | number | boolean | null | undefined;
|
|
1944
|
+
}
|
|
1945
|
+
interface BrushProps {
|
|
1946
|
+
data: ChartData$3[];
|
|
1947
|
+
startIndex: number;
|
|
1948
|
+
endIndex: number;
|
|
1949
|
+
onMouseDown: (e: React__default.MouseEvent, type: "start" | "end" | "middle") => void;
|
|
1950
|
+
brushRef: React__default.RefObject<HTMLDivElement | null>;
|
|
1951
|
+
xAxisKey: string;
|
|
1952
|
+
seriesOrder: Array<{
|
|
1953
|
+
type: "bar" | "line" | "area";
|
|
1954
|
+
key: string;
|
|
1955
|
+
}>;
|
|
1956
|
+
finalColors: Record<string, string>;
|
|
1957
|
+
brushHeight?: number;
|
|
1958
|
+
brushColor?: string;
|
|
1959
|
+
miniChartOpacity?: number;
|
|
1960
|
+
showGrid?: boolean;
|
|
1961
|
+
gridColor?: string;
|
|
1962
|
+
margin?: {
|
|
1963
|
+
left?: number;
|
|
1964
|
+
right?: number;
|
|
1965
|
+
};
|
|
1966
|
+
}
|
|
1967
|
+
declare const Brush: React__default.FC<BrushProps>;
|
|
1968
|
+
|
|
1911
1969
|
interface UseChartHighlightsReturn {
|
|
1912
1970
|
highlightedSeries: Set<string>;
|
|
1913
1971
|
showOnlyHighlighted: boolean;
|
|
@@ -1976,6 +2034,20 @@ declare const useChartClick: ({ enableDraggableTooltips, xAxisDataKey, toggleToo
|
|
|
1976
2034
|
handleSeriesClick: (...args: unknown[]) => void;
|
|
1977
2035
|
};
|
|
1978
2036
|
|
|
2037
|
+
interface UseTimeSeriesRangeProps {
|
|
2038
|
+
dataLength: number;
|
|
2039
|
+
defaultStartIndex?: number;
|
|
2040
|
+
defaultEndIndex?: number;
|
|
2041
|
+
onRangeChange?: (startIndex: number, endIndex: number) => void;
|
|
2042
|
+
}
|
|
2043
|
+
declare function useTimeSeriesRange({ dataLength, defaultStartIndex, defaultEndIndex, onRangeChange, }: UseTimeSeriesRangeProps): {
|
|
2044
|
+
startIndex: number;
|
|
2045
|
+
endIndex: number;
|
|
2046
|
+
isDragging: "end" | "start" | "middle" | null;
|
|
2047
|
+
brushRef: React$1.RefObject<HTMLDivElement | null>;
|
|
2048
|
+
handleMouseDown: (e: React.MouseEvent, type: "start" | "end" | "middle") => void;
|
|
2049
|
+
};
|
|
2050
|
+
|
|
1979
2051
|
interface NoDataProps {
|
|
1980
2052
|
paddingLeft?: number;
|
|
1981
2053
|
height?: number | string;
|
|
@@ -2098,4 +2170,4 @@ declare const useDrag: (options?: UseDragOptions) => {
|
|
|
2098
2170
|
isDragging: boolean;
|
|
2099
2171
|
};
|
|
2100
2172
|
|
|
2101
|
-
export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, type AvatarComboboxProps, type AvatarComboboxPropsWithGroupItems, type AvatarComboboxPropsWithItems, type AvatarComboboxTestIds, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, type BannerProps, BarChart, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, ButtonBase, ButtonGroupBase, type ButtonProps, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, type CalendarEvent, type CalendarEventAgenda, type CalendarProps, type CalendarView, type CalendarViewAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPreviousBase, ChangeButton, Chart, type ChartData, type ChartHooksArgs, CheckButton, CheckboxBase, CheckboxTree, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, CopyButton, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, type DebouncedInputProps, type DefaultAvatarComboboxProps, DefaultEndHour, DefaultEndHourAgenda, type DefaultMultiSelectProps, type DefaultSelectProps, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, DraggableEvent, DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage, EventAgenda, EventCalendar, type EventColor, type EventColorAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileUploader, type FileUploaderProps, type FileWithPreview, FilterButton, type FinalValueFormatter, HideButton, Highlights, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, type IconProps, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, LabelBase, Leaderboard, type LeaderboardItem, type LeaderboardProps, LikeButton, CustomLineChart as LineChart, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, type Margins, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, type MultiComboboxProps, type MultiComboboxTestIds, MultiSelect, MultiSelectBase, MultiSelectContentBase, type MultiSelectContextType, MultiSelectGroupBase, type MultiSelectItem, MultiSelectItemBase, type MultiSelectProps, type MultiSelectPropsWithGroupItems, type MultiSelectPropsWithItems, MultiSelectSeparatorBase, type MultiSelectTestIds, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, type NewSelectProps, NoData, NotificationButton, type Padding, type Period, PeriodsDropdown, CustomPieChart as PieChart, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, type Primitive, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, RangePicker, type RangePickerProps, RefreshButton, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectGroupBase, type SelectItem, SelectItemBase, SelectLabelBase, type SelectPropsWithGroupItems, type SelectPropsWithItems, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, type SelectTestIds, SelectTriggerBase, SelectValueBase, SeparatorBase, type SeriesCounts, type SeriesEntry, type SeriesProp, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, type SliderBaseProps, StartHour, StartHourAgenda, StatusIndicator, type StatusProps, SwitchBase, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, type TextAreaBaseProps, type Theme, ThemeProviderBase, TimePicker, TimePickerInput, type TimePickerInputProps, type TimePickerType, Toaster, type TooltipAdaptedRow, TooltipBase, TooltipContentBase, type TooltipItem, TooltipProviderBase, TooltipSimple, TooltipTriggerBase, RechartTooltipWithTotal as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, type ValueFormatter, type ValueFormatterType, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getMaxDataValue, getMinDataValue, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normalizeAttendDate, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, toast, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useTheme, type valueFormatter, visualForItem };
|
|
2173
|
+
export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, type AvatarComboboxProps, type AvatarComboboxPropsWithGroupItems, type AvatarComboboxPropsWithItems, type AvatarComboboxTestIds, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, type BannerProps, BarChart, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, Brush, ButtonBase, ButtonGroupBase, type ButtonProps, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, type CalendarEvent, type CalendarEventAgenda, type CalendarProps, type CalendarView, type CalendarViewAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPreviousBase, ChangeButton, Chart, type ChartData, type ChartHooksArgs, CheckButton, CheckboxBase, CheckboxTree, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, CopyButton, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, type DebouncedInputProps, type DefaultAvatarComboboxProps, DefaultEndHour, DefaultEndHourAgenda, type DefaultMultiSelectProps, type DefaultSelectProps, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, DraggableEvent, DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage, EventAgenda, EventCalendar, type EventColor, type EventColorAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileUploader, type FileUploaderProps, type FileWithPreview, FilterButton, type FinalValueFormatter, HideButton, Highlights, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, type IconProps, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, LabelBase, Leaderboard, type LeaderboardItem, type LeaderboardProps, LikeButton, CustomLineChart as LineChart, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, type Margins, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, type MultiComboboxProps, type MultiComboboxTestIds, MultiSelect, MultiSelectBase, MultiSelectContentBase, type MultiSelectContextType, MultiSelectGroupBase, type MultiSelectItem, MultiSelectItemBase, type MultiSelectProps, type MultiSelectPropsWithGroupItems, type MultiSelectPropsWithItems, MultiSelectSeparatorBase, type MultiSelectTestIds, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, type NewSelectProps, NoData, NotificationButton, type Padding, type Period, PeriodsDropdown, CustomPieChart as PieChart, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, type Primitive, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, RangePicker, type RangePickerProps, RefreshButton, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectGroupBase, type SelectItem, SelectItemBase, SelectLabelBase, type SelectPropsWithGroupItems, type SelectPropsWithItems, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, type SelectTestIds, SelectTriggerBase, SelectValueBase, SeparatorBase, type SeriesCounts, type SeriesEntry, type SeriesProp, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, type SliderBaseProps, StartHour, StartHourAgenda, StatusIndicator, type StatusProps, SwitchBase, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, type TextAreaBaseProps, type Theme, ThemeProviderBase, TimePicker, TimePickerInput, type TimePickerInputProps, type TimePickerType, TimeSeries, Toaster, type TooltipAdaptedRow, TooltipBase, TooltipContentBase, type TooltipItem, TooltipProviderBase, TooltipSimple, TooltipTriggerBase, RechartTooltipWithTotal as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, type ValueFormatter, type ValueFormatterType, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getMaxDataValue, getMinDataValue, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normalizeAttendDate, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, toast, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useTheme, useTimeSeriesRange, type valueFormatter, visualForItem };
|