@mlw-packages/react-components 1.7.28 → 1.8.0
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 +64 -10
- package/dist/index.d.mts +90 -5
- package/dist/index.d.ts +90 -5
- package/dist/index.js +1722 -1563
- package/dist/index.mjs +1241 -1089
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1108,6 +1108,9 @@ body {
|
|
|
1108
1108
|
.w-0\.5 {
|
|
1109
1109
|
width: 0.125rem;
|
|
1110
1110
|
}
|
|
1111
|
+
.w-1 {
|
|
1112
|
+
width: 0.25rem;
|
|
1113
|
+
}
|
|
1111
1114
|
.w-1\.5 {
|
|
1112
1115
|
width: 0.375rem;
|
|
1113
1116
|
}
|
|
@@ -1299,6 +1302,9 @@ body {
|
|
|
1299
1302
|
.min-w-\[200px\] {
|
|
1300
1303
|
min-width: 200px;
|
|
1301
1304
|
}
|
|
1305
|
+
.min-w-\[250px\] {
|
|
1306
|
+
min-width: 250px;
|
|
1307
|
+
}
|
|
1302
1308
|
.min-w-\[2rem\] {
|
|
1303
1309
|
min-width: 2rem;
|
|
1304
1310
|
}
|
|
@@ -1668,9 +1674,6 @@ body {
|
|
|
1668
1674
|
.gap-12 {
|
|
1669
1675
|
gap: 3rem;
|
|
1670
1676
|
}
|
|
1671
|
-
.gap-16 {
|
|
1672
|
-
gap: 4rem;
|
|
1673
|
-
}
|
|
1674
1677
|
.gap-2 {
|
|
1675
1678
|
gap: 0.5rem;
|
|
1676
1679
|
}
|
|
@@ -2558,6 +2561,16 @@ body {
|
|
|
2558
2561
|
--tw-gradient-to: hsl(var(--background) / 0) var(--tw-gradient-to-position);
|
|
2559
2562
|
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
2560
2563
|
}
|
|
2564
|
+
.from-blue-50 {
|
|
2565
|
+
--tw-gradient-from: #eff6ff var(--tw-gradient-from-position);
|
|
2566
|
+
--tw-gradient-to: rgb(239 246 255 / 0) var(--tw-gradient-to-position);
|
|
2567
|
+
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
2568
|
+
}
|
|
2569
|
+
.from-blue-600 {
|
|
2570
|
+
--tw-gradient-from: #2563eb var(--tw-gradient-from-position);
|
|
2571
|
+
--tw-gradient-to: rgb(37 99 235 / 0) var(--tw-gradient-to-position);
|
|
2572
|
+
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
2573
|
+
}
|
|
2561
2574
|
.from-muted\/50 {
|
|
2562
2575
|
--tw-gradient-from: hsl(var(--muted) / 0.5) var(--tw-gradient-from-position);
|
|
2563
2576
|
--tw-gradient-to: hsl(var(--muted) / 0) var(--tw-gradient-to-position);
|
|
@@ -2568,6 +2581,11 @@ body {
|
|
|
2568
2581
|
--tw-gradient-to: hsl(var(--primary) / 0) var(--tw-gradient-to-position);
|
|
2569
2582
|
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
2570
2583
|
}
|
|
2584
|
+
.from-purple-50 {
|
|
2585
|
+
--tw-gradient-from: #faf5ff var(--tw-gradient-from-position);
|
|
2586
|
+
--tw-gradient-to: rgb(250 245 255 / 0) var(--tw-gradient-to-position);
|
|
2587
|
+
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
2588
|
+
}
|
|
2571
2589
|
.from-ring\/20 {
|
|
2572
2590
|
--tw-gradient-from: hsl(var(--ring) / 0.2) var(--tw-gradient-from-position);
|
|
2573
2591
|
--tw-gradient-to: hsl(var(--ring) / 0) var(--tw-gradient-to-position);
|
|
@@ -2580,15 +2598,28 @@ body {
|
|
|
2580
2598
|
hsl(var(--ring) / 0.1) var(--tw-gradient-via-position),
|
|
2581
2599
|
var(--tw-gradient-to);
|
|
2582
2600
|
}
|
|
2601
|
+
.to-indigo-50 {
|
|
2602
|
+
--tw-gradient-to: #eef2ff var(--tw-gradient-to-position);
|
|
2603
|
+
}
|
|
2583
2604
|
.to-muted {
|
|
2584
2605
|
--tw-gradient-to: hsl(var(--muted)) var(--tw-gradient-to-position);
|
|
2585
2606
|
}
|
|
2607
|
+
.to-pink-50 {
|
|
2608
|
+
--tw-gradient-to: #fdf2f8 var(--tw-gradient-to-position);
|
|
2609
|
+
}
|
|
2586
2610
|
.to-primary\/70 {
|
|
2587
2611
|
--tw-gradient-to: hsl(var(--primary) / 0.7) var(--tw-gradient-to-position);
|
|
2588
2612
|
}
|
|
2613
|
+
.to-purple-600 {
|
|
2614
|
+
--tw-gradient-to: #9333ea var(--tw-gradient-to-position);
|
|
2615
|
+
}
|
|
2589
2616
|
.to-ring\/20 {
|
|
2590
2617
|
--tw-gradient-to: hsl(var(--ring) / 0.2) var(--tw-gradient-to-position);
|
|
2591
2618
|
}
|
|
2619
|
+
.bg-clip-text {
|
|
2620
|
+
-webkit-background-clip: text;
|
|
2621
|
+
background-clip: text;
|
|
2622
|
+
}
|
|
2592
2623
|
.fill-current {
|
|
2593
2624
|
fill: currentColor;
|
|
2594
2625
|
}
|
|
@@ -3229,6 +3260,9 @@ body {
|
|
|
3229
3260
|
--tw-text-opacity: 1;
|
|
3230
3261
|
color: rgb(15 118 110 / var(--tw-text-opacity, 1));
|
|
3231
3262
|
}
|
|
3263
|
+
.text-transparent {
|
|
3264
|
+
color: transparent;
|
|
3265
|
+
}
|
|
3232
3266
|
.text-violet-700 {
|
|
3233
3267
|
--tw-text-opacity: 1;
|
|
3234
3268
|
color: rgb(109 40 217 / var(--tw-text-opacity, 1));
|
|
@@ -4163,10 +4197,6 @@ body {
|
|
|
4163
4197
|
--tw-bg-opacity: 1;
|
|
4164
4198
|
background-color: rgb(147 51 234 / var(--tw-bg-opacity, 1));
|
|
4165
4199
|
}
|
|
4166
|
-
.hover\:bg-red-50:hover {
|
|
4167
|
-
--tw-bg-opacity: 1;
|
|
4168
|
-
background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
|
|
4169
|
-
}
|
|
4170
4200
|
.hover\:bg-red-600:hover {
|
|
4171
4201
|
--tw-bg-opacity: 1;
|
|
4172
4202
|
background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
|
|
@@ -5563,6 +5593,22 @@ body {
|
|
|
5563
5593
|
--tw-bg-opacity: 1;
|
|
5564
5594
|
background-color: rgb(63 63 70 / var(--tw-bg-opacity, 1));
|
|
5565
5595
|
}
|
|
5596
|
+
.dark\:from-blue-400:is(.dark *) {
|
|
5597
|
+
--tw-gradient-from: #60a5fa var(--tw-gradient-from-position);
|
|
5598
|
+
--tw-gradient-to: rgb(96 165 250 / 0) var(--tw-gradient-to-position);
|
|
5599
|
+
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
5600
|
+
}
|
|
5601
|
+
.dark\:from-slate-800:is(.dark *) {
|
|
5602
|
+
--tw-gradient-from: #1e293b var(--tw-gradient-from-position);
|
|
5603
|
+
--tw-gradient-to: rgb(30 41 59 / 0) var(--tw-gradient-to-position);
|
|
5604
|
+
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
5605
|
+
}
|
|
5606
|
+
.dark\:to-purple-400:is(.dark *) {
|
|
5607
|
+
--tw-gradient-to: #c084fc var(--tw-gradient-to-position);
|
|
5608
|
+
}
|
|
5609
|
+
.dark\:to-slate-900:is(.dark *) {
|
|
5610
|
+
--tw-gradient-to: #0f172a var(--tw-gradient-to-position);
|
|
5611
|
+
}
|
|
5566
5612
|
.dark\:stroke-\[rgba\(255\,255\,255\,0\.06\)\]:is(.dark *) {
|
|
5567
5613
|
stroke: rgba(255, 255, 255, 0.06);
|
|
5568
5614
|
}
|
|
@@ -5574,6 +5620,10 @@ body {
|
|
|
5574
5620
|
--tw-text-opacity: 1;
|
|
5575
5621
|
color: rgb(0 0 0 / var(--tw-text-opacity, 1));
|
|
5576
5622
|
}
|
|
5623
|
+
.dark\:text-blue-400:is(.dark *) {
|
|
5624
|
+
--tw-text-opacity: 1;
|
|
5625
|
+
color: rgb(96 165 250 / var(--tw-text-opacity, 1));
|
|
5626
|
+
}
|
|
5577
5627
|
.dark\:text-emerald-200:is(.dark *) {
|
|
5578
5628
|
--tw-text-opacity: 1;
|
|
5579
5629
|
color: rgb(167 243 208 / var(--tw-text-opacity, 1));
|
|
@@ -5605,6 +5655,10 @@ body {
|
|
|
5605
5655
|
--tw-text-opacity: 1;
|
|
5606
5656
|
color: rgb(254 215 170 / var(--tw-text-opacity, 1));
|
|
5607
5657
|
}
|
|
5658
|
+
.dark\:text-purple-400:is(.dark *) {
|
|
5659
|
+
--tw-text-opacity: 1;
|
|
5660
|
+
color: rgb(192 132 252 / var(--tw-text-opacity, 1));
|
|
5661
|
+
}
|
|
5608
5662
|
.dark\:text-red-400:is(.dark *) {
|
|
5609
5663
|
--tw-text-opacity: 1;
|
|
5610
5664
|
color: rgb(248 113 113 / var(--tw-text-opacity, 1));
|
|
@@ -6076,9 +6130,6 @@ body {
|
|
|
6076
6130
|
.md\:grid-cols-4 {
|
|
6077
6131
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
6078
6132
|
}
|
|
6079
|
-
.md\:grid-cols-5 {
|
|
6080
|
-
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
6081
|
-
}
|
|
6082
6133
|
.md\:flex-row {
|
|
6083
6134
|
flex-direction: row;
|
|
6084
6135
|
}
|
|
@@ -6194,6 +6245,9 @@ body {
|
|
|
6194
6245
|
}
|
|
6195
6246
|
}
|
|
6196
6247
|
@media (min-width: 1280px) {
|
|
6248
|
+
.xl\:grid-cols-4 {
|
|
6249
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
6250
|
+
}
|
|
6197
6251
|
.xl\:text-2xl {
|
|
6198
6252
|
font-size: 1.5rem;
|
|
6199
6253
|
line-height: 2rem;
|
package/dist/index.d.mts
CHANGED
|
@@ -1415,9 +1415,11 @@ declare function MultiSelectBase({ children, values, defaultValues, onValuesChan
|
|
|
1415
1415
|
empty?: ReactNode;
|
|
1416
1416
|
error?: string;
|
|
1417
1417
|
}): react_jsx_runtime.JSX.Element;
|
|
1418
|
-
declare function MultiSelectTriggerBase({ className, children, error: propError, ...props }: {
|
|
1418
|
+
declare function MultiSelectTriggerBase({ className, children, error: propError, label, labelClassname, ...props }: {
|
|
1419
1419
|
className?: string;
|
|
1420
1420
|
children?: ReactNode;
|
|
1421
|
+
label?: string;
|
|
1422
|
+
labelClassname?: string;
|
|
1421
1423
|
} & ComponentPropsWithoutRef<typeof ButtonBase> & ErrorMessageProps): react_jsx_runtime.JSX.Element;
|
|
1422
1424
|
declare function MultiSelectValueBase({ placeholder, clickToRemove, className, overflowBehavior, ...props }: {
|
|
1423
1425
|
placeholder?: string;
|
|
@@ -1465,6 +1467,7 @@ interface DefaultSelectProps<T extends string> extends ErrorMessageProps {
|
|
|
1465
1467
|
label?: string;
|
|
1466
1468
|
labelClassname?: string;
|
|
1467
1469
|
pagination?: number;
|
|
1470
|
+
clearable?: boolean;
|
|
1468
1471
|
}
|
|
1469
1472
|
interface SelectPropsWithItems<T extends string> extends DefaultSelectProps<T> {
|
|
1470
1473
|
items: SelectItem<T>[];
|
|
@@ -1479,7 +1482,7 @@ interface SelectPropsWithGroupItems<T extends string> extends DefaultSelectProps
|
|
|
1479
1482
|
testIds?: SelectTestIds;
|
|
1480
1483
|
}
|
|
1481
1484
|
type NewSelectProps<T extends string> = SelectPropsWithItems<T> | SelectPropsWithGroupItems<T>;
|
|
1482
|
-
declare function Select<T extends string>({ items, groupItems, placeholder, onChange, error, testIds, disabled, selected, label, labelClassname, className, pagination, }: NewSelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
1485
|
+
declare function Select<T extends string>({ items, groupItems, placeholder, onChange, error, testIds, disabled, selected, label, labelClassname, className, pagination, clearable, }: NewSelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
1483
1486
|
|
|
1484
1487
|
declare const formatFieldName: (fieldName: string) => string;
|
|
1485
1488
|
declare const detectDataFields: (data: Record<string, unknown>[], xAxisKey: string) => string[];
|
|
@@ -1506,6 +1509,30 @@ declare const resolveChartMargins: (margins?: Margins, chartMargins?: Margins, s
|
|
|
1506
1509
|
left: number;
|
|
1507
1510
|
bottom: number;
|
|
1508
1511
|
};
|
|
1512
|
+
declare const generateColorMap: (dataKeys: string[], baseColors: string[], mapperConfig: Record<string, {
|
|
1513
|
+
color?: string;
|
|
1514
|
+
}>) => Record<string, string>;
|
|
1515
|
+
declare const computeNiceMax: (maxValue: number) => number;
|
|
1516
|
+
declare const getMaxDataValue: (data: Record<string, unknown>[], keys: string[]) => number;
|
|
1517
|
+
declare const getMinDataValue: (data: Record<string, unknown>[], keys: string[]) => number;
|
|
1518
|
+
interface SeriesConfig {
|
|
1519
|
+
bar?: string[];
|
|
1520
|
+
line?: string[];
|
|
1521
|
+
area?: string[];
|
|
1522
|
+
}
|
|
1523
|
+
declare const computeChartWidth: (width: number | string | undefined, dataLength: number, series: SeriesConfig | undefined, niceMaxLeft: number, niceMaxRight: number) => number;
|
|
1524
|
+
declare const adaptDataForTooltip: <T extends Record<string, unknown>>(data: T, xAxisKey: string) => {
|
|
1525
|
+
name: string;
|
|
1526
|
+
[key: string]: string | number;
|
|
1527
|
+
};
|
|
1528
|
+
type ValueFormatterType = (props: {
|
|
1529
|
+
value: number | string | undefined;
|
|
1530
|
+
formattedValue: string;
|
|
1531
|
+
[key: string]: unknown;
|
|
1532
|
+
}) => string;
|
|
1533
|
+
declare const createValueFormatter: (customFormatter: ValueFormatterType | undefined, formatBR: boolean) => ValueFormatterType | undefined;
|
|
1534
|
+
declare const createYTickFormatter: (finalValueFormatter: ValueFormatterType | undefined) => ((value: number | string) => string);
|
|
1535
|
+
declare const computeYAxisTickWidth: (chartMarginLeft: number | undefined, yAxisLabel: string | undefined, axisLabelMargin: number, yTickFormatter: (value: number | string) => string, minValue: number, maxValue: number) => number;
|
|
1509
1536
|
|
|
1510
1537
|
type Variant = "filled" | "outline" | "soft";
|
|
1511
1538
|
type LabelRendererProps = {
|
|
@@ -1534,7 +1561,7 @@ declare const renderPillLabel: (color: string, variant: Variant, valueFormatter?
|
|
|
1534
1561
|
|
|
1535
1562
|
declare const renderInsideBarLabel: (color: string, valueFormatter?: valueFormatter) => (props: LabelRendererProps) => react_jsx_runtime.JSX.Element;
|
|
1536
1563
|
|
|
1537
|
-
interface ChartData$
|
|
1564
|
+
interface ChartData$3 {
|
|
1538
1565
|
[key: string]: string | number | boolean | null | undefined;
|
|
1539
1566
|
}
|
|
1540
1567
|
interface XAxisConfig$2 {
|
|
@@ -1556,7 +1583,7 @@ type SeriesProp$1 = {
|
|
|
1556
1583
|
area?: string[];
|
|
1557
1584
|
};
|
|
1558
1585
|
interface ChartProps {
|
|
1559
|
-
data: ChartData$
|
|
1586
|
+
data: ChartData$3[];
|
|
1560
1587
|
series?: SeriesProp$1;
|
|
1561
1588
|
className?: string;
|
|
1562
1589
|
chartMargin?: Partial<{
|
|
@@ -1590,6 +1617,7 @@ interface ChartProps {
|
|
|
1590
1617
|
showTooltipTotal?: boolean;
|
|
1591
1618
|
maxTooltips?: number;
|
|
1592
1619
|
formatBR?: boolean;
|
|
1620
|
+
legendUppercase?: boolean;
|
|
1593
1621
|
}
|
|
1594
1622
|
declare const Chart: React__default.FC<ChartProps>;
|
|
1595
1623
|
|
|
@@ -1812,6 +1840,63 @@ interface UseChartHighlightsReturn {
|
|
|
1812
1840
|
}
|
|
1813
1841
|
declare const useChartHighlights: () => UseChartHighlightsReturn;
|
|
1814
1842
|
|
|
1843
|
+
declare const useChartDimensions: () => {
|
|
1844
|
+
wrapperRef: React$1.RefObject<HTMLDivElement | null>;
|
|
1845
|
+
measuredWidth: number | null;
|
|
1846
|
+
};
|
|
1847
|
+
|
|
1848
|
+
interface ChartData$2 {
|
|
1849
|
+
[key: string]: string | number | boolean | null | undefined;
|
|
1850
|
+
}
|
|
1851
|
+
interface TooltipItem$2 {
|
|
1852
|
+
id: string;
|
|
1853
|
+
data: ChartData$2;
|
|
1854
|
+
position: {
|
|
1855
|
+
top: number;
|
|
1856
|
+
left: number;
|
|
1857
|
+
};
|
|
1858
|
+
}
|
|
1859
|
+
declare const useChartTooltips: (maxTooltips?: number) => {
|
|
1860
|
+
activeTooltips: TooltipItem$2[];
|
|
1861
|
+
toggleTooltip: (tooltipId: string, data: ChartData$2, basePosition: {
|
|
1862
|
+
top: number;
|
|
1863
|
+
left: number;
|
|
1864
|
+
}) => void;
|
|
1865
|
+
onTooltipPositionChange: (id: string, position: {
|
|
1866
|
+
top: number;
|
|
1867
|
+
left: number;
|
|
1868
|
+
}) => void;
|
|
1869
|
+
closeTooltip: (id: string) => void;
|
|
1870
|
+
closeAllTooltips: () => void;
|
|
1871
|
+
setActiveTooltips: React$1.Dispatch<React$1.SetStateAction<TooltipItem$2[]>>;
|
|
1872
|
+
};
|
|
1873
|
+
|
|
1874
|
+
interface ChartData$1 {
|
|
1875
|
+
[key: string]: string | number | boolean | null | undefined;
|
|
1876
|
+
}
|
|
1877
|
+
interface TooltipItem$1 {
|
|
1878
|
+
id: string;
|
|
1879
|
+
data: ChartData$1;
|
|
1880
|
+
position: {
|
|
1881
|
+
top: number;
|
|
1882
|
+
left: number;
|
|
1883
|
+
};
|
|
1884
|
+
}
|
|
1885
|
+
interface UseChartClickProps {
|
|
1886
|
+
enableDraggableTooltips: boolean;
|
|
1887
|
+
xAxisDataKey: string;
|
|
1888
|
+
toggleTooltip: (tooltipId: string, data: ChartData$1, basePosition: {
|
|
1889
|
+
top: number;
|
|
1890
|
+
left: number;
|
|
1891
|
+
}) => void;
|
|
1892
|
+
setActiveTooltips: React.Dispatch<React.SetStateAction<TooltipItem$1[]>>;
|
|
1893
|
+
}
|
|
1894
|
+
declare const useChartClick: ({ enableDraggableTooltips, xAxisDataKey, toggleTooltip, setActiveTooltips, }: UseChartClickProps) => {
|
|
1895
|
+
handleChartClick: (e?: unknown) => void;
|
|
1896
|
+
handleBarClick: (data: ChartData$1, index: number, event: React.MouseEvent) => void;
|
|
1897
|
+
handleSeriesClick: (...args: unknown[]) => void;
|
|
1898
|
+
};
|
|
1899
|
+
|
|
1815
1900
|
interface NoDataProps {
|
|
1816
1901
|
paddingLeft?: number;
|
|
1817
1902
|
height?: number | string;
|
|
@@ -1922,4 +2007,4 @@ declare const useDrag: (options?: UseDragOptions) => {
|
|
|
1922
2007
|
isDragging: boolean;
|
|
1923
2008
|
};
|
|
1924
2009
|
|
|
1925
|
-
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 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, 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, MultiSelectBase, MultiSelectContentBase, type MultiSelectContextType, MultiSelectGroupBase, MultiSelectItemBase, MultiSelectSeparatorBase, 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, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, convert12HourTo24Hour, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, 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, useChartHighlights, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useTheme, type valueFormatter };
|
|
2010
|
+
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 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, 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, MultiSelectBase, MultiSelectContentBase, type MultiSelectContextType, MultiSelectGroupBase, MultiSelectItemBase, MultiSelectSeparatorBase, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1415,9 +1415,11 @@ declare function MultiSelectBase({ children, values, defaultValues, onValuesChan
|
|
|
1415
1415
|
empty?: ReactNode;
|
|
1416
1416
|
error?: string;
|
|
1417
1417
|
}): react_jsx_runtime.JSX.Element;
|
|
1418
|
-
declare function MultiSelectTriggerBase({ className, children, error: propError, ...props }: {
|
|
1418
|
+
declare function MultiSelectTriggerBase({ className, children, error: propError, label, labelClassname, ...props }: {
|
|
1419
1419
|
className?: string;
|
|
1420
1420
|
children?: ReactNode;
|
|
1421
|
+
label?: string;
|
|
1422
|
+
labelClassname?: string;
|
|
1421
1423
|
} & ComponentPropsWithoutRef<typeof ButtonBase> & ErrorMessageProps): react_jsx_runtime.JSX.Element;
|
|
1422
1424
|
declare function MultiSelectValueBase({ placeholder, clickToRemove, className, overflowBehavior, ...props }: {
|
|
1423
1425
|
placeholder?: string;
|
|
@@ -1465,6 +1467,7 @@ interface DefaultSelectProps<T extends string> extends ErrorMessageProps {
|
|
|
1465
1467
|
label?: string;
|
|
1466
1468
|
labelClassname?: string;
|
|
1467
1469
|
pagination?: number;
|
|
1470
|
+
clearable?: boolean;
|
|
1468
1471
|
}
|
|
1469
1472
|
interface SelectPropsWithItems<T extends string> extends DefaultSelectProps<T> {
|
|
1470
1473
|
items: SelectItem<T>[];
|
|
@@ -1479,7 +1482,7 @@ interface SelectPropsWithGroupItems<T extends string> extends DefaultSelectProps
|
|
|
1479
1482
|
testIds?: SelectTestIds;
|
|
1480
1483
|
}
|
|
1481
1484
|
type NewSelectProps<T extends string> = SelectPropsWithItems<T> | SelectPropsWithGroupItems<T>;
|
|
1482
|
-
declare function Select<T extends string>({ items, groupItems, placeholder, onChange, error, testIds, disabled, selected, label, labelClassname, className, pagination, }: NewSelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
1485
|
+
declare function Select<T extends string>({ items, groupItems, placeholder, onChange, error, testIds, disabled, selected, label, labelClassname, className, pagination, clearable, }: NewSelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
1483
1486
|
|
|
1484
1487
|
declare const formatFieldName: (fieldName: string) => string;
|
|
1485
1488
|
declare const detectDataFields: (data: Record<string, unknown>[], xAxisKey: string) => string[];
|
|
@@ -1506,6 +1509,30 @@ declare const resolveChartMargins: (margins?: Margins, chartMargins?: Margins, s
|
|
|
1506
1509
|
left: number;
|
|
1507
1510
|
bottom: number;
|
|
1508
1511
|
};
|
|
1512
|
+
declare const generateColorMap: (dataKeys: string[], baseColors: string[], mapperConfig: Record<string, {
|
|
1513
|
+
color?: string;
|
|
1514
|
+
}>) => Record<string, string>;
|
|
1515
|
+
declare const computeNiceMax: (maxValue: number) => number;
|
|
1516
|
+
declare const getMaxDataValue: (data: Record<string, unknown>[], keys: string[]) => number;
|
|
1517
|
+
declare const getMinDataValue: (data: Record<string, unknown>[], keys: string[]) => number;
|
|
1518
|
+
interface SeriesConfig {
|
|
1519
|
+
bar?: string[];
|
|
1520
|
+
line?: string[];
|
|
1521
|
+
area?: string[];
|
|
1522
|
+
}
|
|
1523
|
+
declare const computeChartWidth: (width: number | string | undefined, dataLength: number, series: SeriesConfig | undefined, niceMaxLeft: number, niceMaxRight: number) => number;
|
|
1524
|
+
declare const adaptDataForTooltip: <T extends Record<string, unknown>>(data: T, xAxisKey: string) => {
|
|
1525
|
+
name: string;
|
|
1526
|
+
[key: string]: string | number;
|
|
1527
|
+
};
|
|
1528
|
+
type ValueFormatterType = (props: {
|
|
1529
|
+
value: number | string | undefined;
|
|
1530
|
+
formattedValue: string;
|
|
1531
|
+
[key: string]: unknown;
|
|
1532
|
+
}) => string;
|
|
1533
|
+
declare const createValueFormatter: (customFormatter: ValueFormatterType | undefined, formatBR: boolean) => ValueFormatterType | undefined;
|
|
1534
|
+
declare const createYTickFormatter: (finalValueFormatter: ValueFormatterType | undefined) => ((value: number | string) => string);
|
|
1535
|
+
declare const computeYAxisTickWidth: (chartMarginLeft: number | undefined, yAxisLabel: string | undefined, axisLabelMargin: number, yTickFormatter: (value: number | string) => string, minValue: number, maxValue: number) => number;
|
|
1509
1536
|
|
|
1510
1537
|
type Variant = "filled" | "outline" | "soft";
|
|
1511
1538
|
type LabelRendererProps = {
|
|
@@ -1534,7 +1561,7 @@ declare const renderPillLabel: (color: string, variant: Variant, valueFormatter?
|
|
|
1534
1561
|
|
|
1535
1562
|
declare const renderInsideBarLabel: (color: string, valueFormatter?: valueFormatter) => (props: LabelRendererProps) => react_jsx_runtime.JSX.Element;
|
|
1536
1563
|
|
|
1537
|
-
interface ChartData$
|
|
1564
|
+
interface ChartData$3 {
|
|
1538
1565
|
[key: string]: string | number | boolean | null | undefined;
|
|
1539
1566
|
}
|
|
1540
1567
|
interface XAxisConfig$2 {
|
|
@@ -1556,7 +1583,7 @@ type SeriesProp$1 = {
|
|
|
1556
1583
|
area?: string[];
|
|
1557
1584
|
};
|
|
1558
1585
|
interface ChartProps {
|
|
1559
|
-
data: ChartData$
|
|
1586
|
+
data: ChartData$3[];
|
|
1560
1587
|
series?: SeriesProp$1;
|
|
1561
1588
|
className?: string;
|
|
1562
1589
|
chartMargin?: Partial<{
|
|
@@ -1590,6 +1617,7 @@ interface ChartProps {
|
|
|
1590
1617
|
showTooltipTotal?: boolean;
|
|
1591
1618
|
maxTooltips?: number;
|
|
1592
1619
|
formatBR?: boolean;
|
|
1620
|
+
legendUppercase?: boolean;
|
|
1593
1621
|
}
|
|
1594
1622
|
declare const Chart: React__default.FC<ChartProps>;
|
|
1595
1623
|
|
|
@@ -1812,6 +1840,63 @@ interface UseChartHighlightsReturn {
|
|
|
1812
1840
|
}
|
|
1813
1841
|
declare const useChartHighlights: () => UseChartHighlightsReturn;
|
|
1814
1842
|
|
|
1843
|
+
declare const useChartDimensions: () => {
|
|
1844
|
+
wrapperRef: React$1.RefObject<HTMLDivElement | null>;
|
|
1845
|
+
measuredWidth: number | null;
|
|
1846
|
+
};
|
|
1847
|
+
|
|
1848
|
+
interface ChartData$2 {
|
|
1849
|
+
[key: string]: string | number | boolean | null | undefined;
|
|
1850
|
+
}
|
|
1851
|
+
interface TooltipItem$2 {
|
|
1852
|
+
id: string;
|
|
1853
|
+
data: ChartData$2;
|
|
1854
|
+
position: {
|
|
1855
|
+
top: number;
|
|
1856
|
+
left: number;
|
|
1857
|
+
};
|
|
1858
|
+
}
|
|
1859
|
+
declare const useChartTooltips: (maxTooltips?: number) => {
|
|
1860
|
+
activeTooltips: TooltipItem$2[];
|
|
1861
|
+
toggleTooltip: (tooltipId: string, data: ChartData$2, basePosition: {
|
|
1862
|
+
top: number;
|
|
1863
|
+
left: number;
|
|
1864
|
+
}) => void;
|
|
1865
|
+
onTooltipPositionChange: (id: string, position: {
|
|
1866
|
+
top: number;
|
|
1867
|
+
left: number;
|
|
1868
|
+
}) => void;
|
|
1869
|
+
closeTooltip: (id: string) => void;
|
|
1870
|
+
closeAllTooltips: () => void;
|
|
1871
|
+
setActiveTooltips: React$1.Dispatch<React$1.SetStateAction<TooltipItem$2[]>>;
|
|
1872
|
+
};
|
|
1873
|
+
|
|
1874
|
+
interface ChartData$1 {
|
|
1875
|
+
[key: string]: string | number | boolean | null | undefined;
|
|
1876
|
+
}
|
|
1877
|
+
interface TooltipItem$1 {
|
|
1878
|
+
id: string;
|
|
1879
|
+
data: ChartData$1;
|
|
1880
|
+
position: {
|
|
1881
|
+
top: number;
|
|
1882
|
+
left: number;
|
|
1883
|
+
};
|
|
1884
|
+
}
|
|
1885
|
+
interface UseChartClickProps {
|
|
1886
|
+
enableDraggableTooltips: boolean;
|
|
1887
|
+
xAxisDataKey: string;
|
|
1888
|
+
toggleTooltip: (tooltipId: string, data: ChartData$1, basePosition: {
|
|
1889
|
+
top: number;
|
|
1890
|
+
left: number;
|
|
1891
|
+
}) => void;
|
|
1892
|
+
setActiveTooltips: React.Dispatch<React.SetStateAction<TooltipItem$1[]>>;
|
|
1893
|
+
}
|
|
1894
|
+
declare const useChartClick: ({ enableDraggableTooltips, xAxisDataKey, toggleTooltip, setActiveTooltips, }: UseChartClickProps) => {
|
|
1895
|
+
handleChartClick: (e?: unknown) => void;
|
|
1896
|
+
handleBarClick: (data: ChartData$1, index: number, event: React.MouseEvent) => void;
|
|
1897
|
+
handleSeriesClick: (...args: unknown[]) => void;
|
|
1898
|
+
};
|
|
1899
|
+
|
|
1815
1900
|
interface NoDataProps {
|
|
1816
1901
|
paddingLeft?: number;
|
|
1817
1902
|
height?: number | string;
|
|
@@ -1922,4 +2007,4 @@ declare const useDrag: (options?: UseDragOptions) => {
|
|
|
1922
2007
|
isDragging: boolean;
|
|
1923
2008
|
};
|
|
1924
2009
|
|
|
1925
|
-
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 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, 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, MultiSelectBase, MultiSelectContentBase, type MultiSelectContextType, MultiSelectGroupBase, MultiSelectItemBase, MultiSelectSeparatorBase, 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, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, convert12HourTo24Hour, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, 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, useChartHighlights, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useTheme, type valueFormatter };
|
|
2010
|
+
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 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, 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, MultiSelectBase, MultiSelectContentBase, type MultiSelectContextType, MultiSelectGroupBase, MultiSelectItemBase, MultiSelectSeparatorBase, 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 };
|