@mlw-packages/react-components 1.7.14 → 1.7.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +15 -0
- package/dist/index.d.mts +157 -16
- package/dist/index.d.ts +157 -16
- package/dist/index.js +1674 -1413
- package/dist/index.mjs +1539 -1285
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -978,6 +978,9 @@ body {
|
|
|
978
978
|
.h-\[var\(--radix-select-trigger-height\)\] {
|
|
979
979
|
height: var(--radix-select-trigger-height);
|
|
980
980
|
}
|
|
981
|
+
.h-\[var\(--svg-h\)\] {
|
|
982
|
+
height: var(--svg-h);
|
|
983
|
+
}
|
|
981
984
|
.h-\[var\(--week-cells-height\)\] {
|
|
982
985
|
height: var(--week-cells-height);
|
|
983
986
|
}
|
|
@@ -1332,6 +1335,9 @@ body {
|
|
|
1332
1335
|
.max-w-\[80px\] {
|
|
1333
1336
|
max-width: 80px;
|
|
1334
1337
|
}
|
|
1338
|
+
.max-w-\[900px\] {
|
|
1339
|
+
max-width: 900px;
|
|
1340
|
+
}
|
|
1335
1341
|
.max-w-\[90vw\] {
|
|
1336
1342
|
max-width: 90vw;
|
|
1337
1343
|
}
|
|
@@ -2681,6 +2687,9 @@ body {
|
|
|
2681
2687
|
.pl-8 {
|
|
2682
2688
|
padding-left: 2rem;
|
|
2683
2689
|
}
|
|
2690
|
+
.pl-\[var\(--pl\)\] {
|
|
2691
|
+
padding-left: var(--pl);
|
|
2692
|
+
}
|
|
2684
2693
|
.pr-1 {
|
|
2685
2694
|
padding-right: 0.25rem;
|
|
2686
2695
|
}
|
|
@@ -2693,6 +2702,9 @@ body {
|
|
|
2693
2702
|
.pr-2\.5 {
|
|
2694
2703
|
padding-right: 0.625rem;
|
|
2695
2704
|
}
|
|
2705
|
+
.pr-3 {
|
|
2706
|
+
padding-right: 0.75rem;
|
|
2707
|
+
}
|
|
2696
2708
|
.pr-4 {
|
|
2697
2709
|
padding-right: 1rem;
|
|
2698
2710
|
}
|
|
@@ -2891,6 +2903,9 @@ body {
|
|
|
2891
2903
|
--tw-text-opacity: 1;
|
|
2892
2904
|
color: rgb(0 0 0 / var(--tw-text-opacity, 1));
|
|
2893
2905
|
}
|
|
2906
|
+
.text-black\/80 {
|
|
2907
|
+
color: rgb(0 0 0 / 0.8);
|
|
2908
|
+
}
|
|
2894
2909
|
.text-blue-400 {
|
|
2895
2910
|
--tw-text-opacity: 1;
|
|
2896
2911
|
color: rgb(96 165 250 / var(--tw-text-opacity, 1));
|
package/dist/index.d.mts
CHANGED
|
@@ -254,8 +254,26 @@ type valueFormatter = (props: {
|
|
|
254
254
|
}) => string;
|
|
255
255
|
declare const renderPillLabel: (color: string, variant: Variant, valueFormatter?: valueFormatter) => (props: LabelRendererProps) => react_jsx_runtime.JSX.Element;
|
|
256
256
|
|
|
257
|
+
declare function maxForKeys(processedData: Array<Record<string, unknown>>, keys: string[]): number;
|
|
258
|
+
declare function minForKeys(processedData: Array<Record<string, unknown>>, keys: string[]): number;
|
|
259
|
+
|
|
260
|
+
declare const TITLE_CLASSNAME = "text-xl font-semibold text-foreground mb-3";
|
|
261
|
+
declare function buildPercentFormatter(decimals?: number): (v: number | string) => string;
|
|
262
|
+
declare function createFinalValueFormatter(valueFormatter?: valueFormatter, formatBR?: boolean): valueFormatter | undefined;
|
|
263
|
+
declare function createYTickFormatter(finalValueFormatter?: valueFormatter): (v: number | string) => string;
|
|
264
|
+
|
|
265
|
+
declare function generateColors(dataKeys: string[], colors: string[], mapperConfig: Record<string, {
|
|
266
|
+
color?: string;
|
|
267
|
+
} | undefined>): Record<string, string>;
|
|
268
|
+
|
|
269
|
+
declare function adaptDataForTooltip(universalData: Record<string, unknown>, xAxisKey: string): Record<string, string | number> & {
|
|
270
|
+
name: string;
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
type Primitive = string | number | boolean | null | undefined;
|
|
257
274
|
interface ChartData {
|
|
258
|
-
[key: string]:
|
|
275
|
+
[key: string]: Primitive;
|
|
276
|
+
name?: string;
|
|
259
277
|
}
|
|
260
278
|
interface XAxisConfig$1 {
|
|
261
279
|
dataKey: string;
|
|
@@ -263,27 +281,98 @@ interface XAxisConfig$1 {
|
|
|
263
281
|
valueFormatter?: (value: string | number) => string;
|
|
264
282
|
autoLabel?: boolean;
|
|
265
283
|
}
|
|
284
|
+
type ValueFormatter = (value: string | number) => string | number;
|
|
285
|
+
type FinalValueFormatter = (value: number | string | null | undefined) => string;
|
|
266
286
|
type SeriesProp = {
|
|
267
287
|
bar?: string[];
|
|
268
288
|
line?: string[];
|
|
269
289
|
area?: string[];
|
|
270
290
|
};
|
|
291
|
+
type SeriesEntry = {
|
|
292
|
+
type: "bar" | "line" | "area";
|
|
293
|
+
key: string;
|
|
294
|
+
};
|
|
295
|
+
type SeriesCounts = {
|
|
296
|
+
bar: number;
|
|
297
|
+
line: number;
|
|
298
|
+
area: number;
|
|
299
|
+
};
|
|
300
|
+
type YAxisSide = "left" | "right";
|
|
301
|
+
type YAxisMap = Record<string, YAxisSide>;
|
|
302
|
+
interface MapperConfigEntry {
|
|
303
|
+
label?: string;
|
|
304
|
+
valueFormatter?: ValueFormatter;
|
|
305
|
+
color?: string;
|
|
306
|
+
type?: "number" | "string" | "auto";
|
|
307
|
+
visible?: boolean;
|
|
308
|
+
}
|
|
309
|
+
type MapperConfig = Record<string, MapperConfigEntry>;
|
|
310
|
+
interface YAxisOptions {
|
|
311
|
+
label?: string;
|
|
312
|
+
stroke?: string;
|
|
313
|
+
width?: number;
|
|
314
|
+
percent?: boolean;
|
|
315
|
+
percentDecimals?: number;
|
|
316
|
+
}
|
|
317
|
+
type YAxes = Partial<{
|
|
318
|
+
left: YAxisOptions;
|
|
319
|
+
right: YAxisOptions;
|
|
320
|
+
}>;
|
|
321
|
+
interface TooltipItem {
|
|
322
|
+
id: string;
|
|
323
|
+
data: ChartData;
|
|
324
|
+
position: {
|
|
325
|
+
top: number;
|
|
326
|
+
left: number;
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
type TooltipAdaptedRow = Record<string, string | number> & {
|
|
330
|
+
name: string;
|
|
331
|
+
};
|
|
332
|
+
interface ChartHooksArgs {
|
|
333
|
+
width?: number | string;
|
|
334
|
+
measuredWidth?: number | null;
|
|
335
|
+
points?: number;
|
|
336
|
+
seriesCounts?: SeriesCounts;
|
|
337
|
+
niceMax?: number;
|
|
338
|
+
yAxes?: YAxes;
|
|
339
|
+
yAxisLabel?: string;
|
|
340
|
+
chartMargin?: Partial<{
|
|
341
|
+
top: number;
|
|
342
|
+
right: number;
|
|
343
|
+
left: number;
|
|
344
|
+
bottom: number;
|
|
345
|
+
}>;
|
|
346
|
+
showLabels?: boolean;
|
|
347
|
+
showLegend?: boolean;
|
|
348
|
+
xAxisLabel?: string;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
declare function computeSeriesOrder(series: SeriesProp | undefined, mapperConfig: Record<string, unknown>): SeriesEntry[];
|
|
352
|
+
declare function computeProcessedData(data: Array<Record<string, unknown>>, xAxisKey: string): Array<Record<string, unknown> & {
|
|
353
|
+
name: string;
|
|
354
|
+
}>;
|
|
355
|
+
declare function computeAllKeys(seriesOrder: SeriesEntry[]): string[];
|
|
356
|
+
declare function computeLeftRightKeys(allKeys: string[], yAxisMap?: YAxisMap): {
|
|
357
|
+
leftKeys: string[];
|
|
358
|
+
rightKeys: string[];
|
|
359
|
+
};
|
|
360
|
+
declare function computeNiceMax(value: number): number;
|
|
361
|
+
declare function computeChartWidth(dataLength: number, seriesCounts: SeriesCounts, niceMax: number, opts?: {
|
|
362
|
+
minWidth?: number;
|
|
363
|
+
maxWidth?: number;
|
|
364
|
+
}): number;
|
|
365
|
+
declare function computeLabelSample(keys: string[], candidates: number[], yTickFormatter: (v: number | string) => string): string;
|
|
366
|
+
declare function computeEstimatedAxisNeeded(labelSample: string, axisLabel?: string, containerPaddingLeft?: number, defaultLeftMargin?: number): number;
|
|
367
|
+
declare function computeAxisLabelWidth(label?: string): number;
|
|
368
|
+
|
|
369
|
+
declare function estimateTextWidth(text: string | number | undefined): number;
|
|
370
|
+
|
|
271
371
|
interface ChartProps {
|
|
272
372
|
data: ChartData[];
|
|
273
373
|
series?: SeriesProp;
|
|
274
|
-
yAxisMap?:
|
|
275
|
-
yAxes?:
|
|
276
|
-
left: {
|
|
277
|
-
label?: string;
|
|
278
|
-
stroke?: string;
|
|
279
|
-
width?: number;
|
|
280
|
-
};
|
|
281
|
-
right: {
|
|
282
|
-
label?: string;
|
|
283
|
-
stroke?: string;
|
|
284
|
-
width?: number;
|
|
285
|
-
};
|
|
286
|
-
}>;
|
|
374
|
+
yAxisMap?: YAxisMap;
|
|
375
|
+
yAxes?: YAxes;
|
|
287
376
|
className?: string;
|
|
288
377
|
chartMargin?: Partial<{
|
|
289
378
|
top: number;
|
|
@@ -314,7 +403,6 @@ interface ChartProps {
|
|
|
314
403
|
showTooltipTotal?: boolean;
|
|
315
404
|
maxTooltips?: number;
|
|
316
405
|
formatBR?: boolean;
|
|
317
|
-
/** Texto exibido no cabeçalho dos tooltips (ex.: "Período") */
|
|
318
406
|
periodLabel?: string;
|
|
319
407
|
}
|
|
320
408
|
declare const Chart: React__default.FC<ChartProps>;
|
|
@@ -544,6 +632,59 @@ interface UseChartHighlightsReturn {
|
|
|
544
632
|
}
|
|
545
633
|
declare const useChartHighlights: () => UseChartHighlightsReturn;
|
|
546
634
|
|
|
635
|
+
declare function useChartLayout(args: {
|
|
636
|
+
width: number | string | undefined;
|
|
637
|
+
measuredWidth: number | null;
|
|
638
|
+
points: number;
|
|
639
|
+
seriesCounts: SeriesCounts;
|
|
640
|
+
niceMax: number;
|
|
641
|
+
yAxes?: Partial<{
|
|
642
|
+
left: {
|
|
643
|
+
label?: string;
|
|
644
|
+
};
|
|
645
|
+
right: {
|
|
646
|
+
label?: string;
|
|
647
|
+
};
|
|
648
|
+
}>;
|
|
649
|
+
yAxisLabel?: string;
|
|
650
|
+
chartMargin?: Partial<{
|
|
651
|
+
top: number;
|
|
652
|
+
right: number;
|
|
653
|
+
left: number;
|
|
654
|
+
bottom: number;
|
|
655
|
+
}>;
|
|
656
|
+
showLabels?: boolean;
|
|
657
|
+
showLegend?: boolean;
|
|
658
|
+
xAxisLabel?: string | undefined;
|
|
659
|
+
leftLabelSample?: string;
|
|
660
|
+
rightLabelSample?: string;
|
|
661
|
+
}): {
|
|
662
|
+
readonly containerPaddingLeft: 16;
|
|
663
|
+
readonly computedWidth: number;
|
|
664
|
+
readonly measuredInner: number | undefined;
|
|
665
|
+
readonly effectiveChartWidth: number;
|
|
666
|
+
readonly chartInnerWidth: number;
|
|
667
|
+
readonly finalChartLeftMargin: number;
|
|
668
|
+
readonly finalChartRightMargin: number;
|
|
669
|
+
readonly finalChartTopMargin: number;
|
|
670
|
+
readonly finalChartBottomMargin: number;
|
|
671
|
+
readonly leftYAxisLabelDx: number;
|
|
672
|
+
readonly rightYAxisLabelDx: number;
|
|
673
|
+
};
|
|
674
|
+
|
|
675
|
+
declare function useMeasureWidth<T extends HTMLElement = HTMLDivElement>(): {
|
|
676
|
+
readonly wrapperRef: React$1.RefObject<T | null>;
|
|
677
|
+
readonly measuredWidth: number | null;
|
|
678
|
+
};
|
|
679
|
+
|
|
680
|
+
interface NoDataProps {
|
|
681
|
+
paddingLeft?: number;
|
|
682
|
+
height?: number | string;
|
|
683
|
+
message?: string;
|
|
684
|
+
className?: string;
|
|
685
|
+
}
|
|
686
|
+
declare const NoData: React__default.FC<NoDataProps>;
|
|
687
|
+
|
|
547
688
|
declare const AvatarBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
548
689
|
declare const AvatarImageBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
|
|
549
690
|
declare const AvatarFallbackBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1585,4 +1726,4 @@ declare const useDrag: (options?: UseDragOptions) => {
|
|
|
1585
1726
|
isDragging: boolean;
|
|
1586
1727
|
};
|
|
1587
1728
|
|
|
1588
|
-
export { AddButton, AgendaDaysToShow, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, BarChart, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, ButtonBase, ButtonGroupBase, type ButtonProps, CalendarBase, CalendarDndProvider, type CalendarEvent, type CalendarProps, type CalendarView, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPreviousBase, ChangeButton, Chart, 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, DebouncedInput, type DebouncedInputProps, DefaultEndHour, DefaultStartHour, 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, EditButton, EndHour, ErrorMessage, EventCalendar, type EventColor, EventDialog, EventGap, EventHeight, EventItem, EventsPopup, FavoriteButton, FileUploader, type FileUploaderProps, type FileWithPreview, FilterButton, HideButton, Highlights, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, LabelBase, LikeButton, CustomLineChart as LineChart, LoadingBase, LockButton, type Margins, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MoreButton, MultiCombobox, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, NotificationButton, type Padding, type Period, PeriodsDropdown, CustomPieChart as PieChart, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, 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, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, SelectTriggerBase, SelectValueBase, SeparatorBase, 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, 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, TooltipBase, TooltipContentBase, TooltipProviderBase, TooltipSimple, TooltipTriggerBase, RechartTooltipWithTotal as TooltipWithTotal, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, ViewButton, VisibilityButton, WeekCellsHeight, WeekView, addHoursToDate, badgeVariants, buttonVariantsBase, compactTick, convert12HourTo24Hour, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, getAgendaEventsForDay, getAllEventsForDay, getArrowByType, getBorderRadiusClasses, getDateByType, getEventColorClasses, getEventsForDay, getSpanningEventsForDay, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, toast, useCalendarDnd, useChartHighlights, useCurrentTimeIndicator, useDrag, useEventVisibility, useIsMobile, useTheme, type valueFormatter };
|
|
1729
|
+
export { AddButton, AgendaDaysToShow, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, BarChart, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, ButtonBase, ButtonGroupBase, type ButtonProps, CalendarBase, CalendarDndProvider, type CalendarEvent, type CalendarProps, type CalendarView, 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, DebouncedInput, type DebouncedInputProps, DefaultEndHour, DefaultStartHour, 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, EditButton, EndHour, ErrorMessage, EventCalendar, type EventColor, EventDialog, EventGap, EventHeight, EventItem, EventsPopup, FavoriteButton, FileUploader, type FileUploaderProps, type FileWithPreview, FilterButton, type FinalValueFormatter, HideButton, Highlights, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, 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, MoreButton, MultiCombobox, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, 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, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, 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, StatusIndicator, type StatusProps, SwitchBase, TITLE_CLASSNAME, 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, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, type ValueFormatter, ViewButton, VisibilityButton, WeekCellsHeight, WeekView, type XAxisConfig$1 as XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, adaptDataForTooltip, addHoursToDate, badgeVariants, buildPercentFormatter, buttonVariantsBase, compactTick, computeAllKeys, computeAxisLabelWidth, computeChartWidth, computeEstimatedAxisNeeded, computeLabelSample, computeLeftRightKeys, computeNiceMax, computeProcessedData, computeSeriesOrder, convert12HourTo24Hour, createFinalValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, estimateTextWidth, formatFieldName, generateAdditionalColors, generateColors, getAgendaEventsForDay, getAllEventsForDay, getArrowByType, getBorderRadiusClasses, getDateByType, getEventColorClasses, getEventsForDay, getSpanningEventsForDay, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isValid12Hour, isValidHour, isValidMinuteOrSecond, maxForKeys, minForKeys, niceCeil, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, toast, useCalendarDnd, useChartHighlights, useChartLayout, useCurrentTimeIndicator, useDrag, useEventVisibility, useIsMobile, useMeasureWidth, useTheme, type valueFormatter };
|
package/dist/index.d.ts
CHANGED
|
@@ -254,8 +254,26 @@ type valueFormatter = (props: {
|
|
|
254
254
|
}) => string;
|
|
255
255
|
declare const renderPillLabel: (color: string, variant: Variant, valueFormatter?: valueFormatter) => (props: LabelRendererProps) => react_jsx_runtime.JSX.Element;
|
|
256
256
|
|
|
257
|
+
declare function maxForKeys(processedData: Array<Record<string, unknown>>, keys: string[]): number;
|
|
258
|
+
declare function minForKeys(processedData: Array<Record<string, unknown>>, keys: string[]): number;
|
|
259
|
+
|
|
260
|
+
declare const TITLE_CLASSNAME = "text-xl font-semibold text-foreground mb-3";
|
|
261
|
+
declare function buildPercentFormatter(decimals?: number): (v: number | string) => string;
|
|
262
|
+
declare function createFinalValueFormatter(valueFormatter?: valueFormatter, formatBR?: boolean): valueFormatter | undefined;
|
|
263
|
+
declare function createYTickFormatter(finalValueFormatter?: valueFormatter): (v: number | string) => string;
|
|
264
|
+
|
|
265
|
+
declare function generateColors(dataKeys: string[], colors: string[], mapperConfig: Record<string, {
|
|
266
|
+
color?: string;
|
|
267
|
+
} | undefined>): Record<string, string>;
|
|
268
|
+
|
|
269
|
+
declare function adaptDataForTooltip(universalData: Record<string, unknown>, xAxisKey: string): Record<string, string | number> & {
|
|
270
|
+
name: string;
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
type Primitive = string | number | boolean | null | undefined;
|
|
257
274
|
interface ChartData {
|
|
258
|
-
[key: string]:
|
|
275
|
+
[key: string]: Primitive;
|
|
276
|
+
name?: string;
|
|
259
277
|
}
|
|
260
278
|
interface XAxisConfig$1 {
|
|
261
279
|
dataKey: string;
|
|
@@ -263,27 +281,98 @@ interface XAxisConfig$1 {
|
|
|
263
281
|
valueFormatter?: (value: string | number) => string;
|
|
264
282
|
autoLabel?: boolean;
|
|
265
283
|
}
|
|
284
|
+
type ValueFormatter = (value: string | number) => string | number;
|
|
285
|
+
type FinalValueFormatter = (value: number | string | null | undefined) => string;
|
|
266
286
|
type SeriesProp = {
|
|
267
287
|
bar?: string[];
|
|
268
288
|
line?: string[];
|
|
269
289
|
area?: string[];
|
|
270
290
|
};
|
|
291
|
+
type SeriesEntry = {
|
|
292
|
+
type: "bar" | "line" | "area";
|
|
293
|
+
key: string;
|
|
294
|
+
};
|
|
295
|
+
type SeriesCounts = {
|
|
296
|
+
bar: number;
|
|
297
|
+
line: number;
|
|
298
|
+
area: number;
|
|
299
|
+
};
|
|
300
|
+
type YAxisSide = "left" | "right";
|
|
301
|
+
type YAxisMap = Record<string, YAxisSide>;
|
|
302
|
+
interface MapperConfigEntry {
|
|
303
|
+
label?: string;
|
|
304
|
+
valueFormatter?: ValueFormatter;
|
|
305
|
+
color?: string;
|
|
306
|
+
type?: "number" | "string" | "auto";
|
|
307
|
+
visible?: boolean;
|
|
308
|
+
}
|
|
309
|
+
type MapperConfig = Record<string, MapperConfigEntry>;
|
|
310
|
+
interface YAxisOptions {
|
|
311
|
+
label?: string;
|
|
312
|
+
stroke?: string;
|
|
313
|
+
width?: number;
|
|
314
|
+
percent?: boolean;
|
|
315
|
+
percentDecimals?: number;
|
|
316
|
+
}
|
|
317
|
+
type YAxes = Partial<{
|
|
318
|
+
left: YAxisOptions;
|
|
319
|
+
right: YAxisOptions;
|
|
320
|
+
}>;
|
|
321
|
+
interface TooltipItem {
|
|
322
|
+
id: string;
|
|
323
|
+
data: ChartData;
|
|
324
|
+
position: {
|
|
325
|
+
top: number;
|
|
326
|
+
left: number;
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
type TooltipAdaptedRow = Record<string, string | number> & {
|
|
330
|
+
name: string;
|
|
331
|
+
};
|
|
332
|
+
interface ChartHooksArgs {
|
|
333
|
+
width?: number | string;
|
|
334
|
+
measuredWidth?: number | null;
|
|
335
|
+
points?: number;
|
|
336
|
+
seriesCounts?: SeriesCounts;
|
|
337
|
+
niceMax?: number;
|
|
338
|
+
yAxes?: YAxes;
|
|
339
|
+
yAxisLabel?: string;
|
|
340
|
+
chartMargin?: Partial<{
|
|
341
|
+
top: number;
|
|
342
|
+
right: number;
|
|
343
|
+
left: number;
|
|
344
|
+
bottom: number;
|
|
345
|
+
}>;
|
|
346
|
+
showLabels?: boolean;
|
|
347
|
+
showLegend?: boolean;
|
|
348
|
+
xAxisLabel?: string;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
declare function computeSeriesOrder(series: SeriesProp | undefined, mapperConfig: Record<string, unknown>): SeriesEntry[];
|
|
352
|
+
declare function computeProcessedData(data: Array<Record<string, unknown>>, xAxisKey: string): Array<Record<string, unknown> & {
|
|
353
|
+
name: string;
|
|
354
|
+
}>;
|
|
355
|
+
declare function computeAllKeys(seriesOrder: SeriesEntry[]): string[];
|
|
356
|
+
declare function computeLeftRightKeys(allKeys: string[], yAxisMap?: YAxisMap): {
|
|
357
|
+
leftKeys: string[];
|
|
358
|
+
rightKeys: string[];
|
|
359
|
+
};
|
|
360
|
+
declare function computeNiceMax(value: number): number;
|
|
361
|
+
declare function computeChartWidth(dataLength: number, seriesCounts: SeriesCounts, niceMax: number, opts?: {
|
|
362
|
+
minWidth?: number;
|
|
363
|
+
maxWidth?: number;
|
|
364
|
+
}): number;
|
|
365
|
+
declare function computeLabelSample(keys: string[], candidates: number[], yTickFormatter: (v: number | string) => string): string;
|
|
366
|
+
declare function computeEstimatedAxisNeeded(labelSample: string, axisLabel?: string, containerPaddingLeft?: number, defaultLeftMargin?: number): number;
|
|
367
|
+
declare function computeAxisLabelWidth(label?: string): number;
|
|
368
|
+
|
|
369
|
+
declare function estimateTextWidth(text: string | number | undefined): number;
|
|
370
|
+
|
|
271
371
|
interface ChartProps {
|
|
272
372
|
data: ChartData[];
|
|
273
373
|
series?: SeriesProp;
|
|
274
|
-
yAxisMap?:
|
|
275
|
-
yAxes?:
|
|
276
|
-
left: {
|
|
277
|
-
label?: string;
|
|
278
|
-
stroke?: string;
|
|
279
|
-
width?: number;
|
|
280
|
-
};
|
|
281
|
-
right: {
|
|
282
|
-
label?: string;
|
|
283
|
-
stroke?: string;
|
|
284
|
-
width?: number;
|
|
285
|
-
};
|
|
286
|
-
}>;
|
|
374
|
+
yAxisMap?: YAxisMap;
|
|
375
|
+
yAxes?: YAxes;
|
|
287
376
|
className?: string;
|
|
288
377
|
chartMargin?: Partial<{
|
|
289
378
|
top: number;
|
|
@@ -314,7 +403,6 @@ interface ChartProps {
|
|
|
314
403
|
showTooltipTotal?: boolean;
|
|
315
404
|
maxTooltips?: number;
|
|
316
405
|
formatBR?: boolean;
|
|
317
|
-
/** Texto exibido no cabeçalho dos tooltips (ex.: "Período") */
|
|
318
406
|
periodLabel?: string;
|
|
319
407
|
}
|
|
320
408
|
declare const Chart: React__default.FC<ChartProps>;
|
|
@@ -544,6 +632,59 @@ interface UseChartHighlightsReturn {
|
|
|
544
632
|
}
|
|
545
633
|
declare const useChartHighlights: () => UseChartHighlightsReturn;
|
|
546
634
|
|
|
635
|
+
declare function useChartLayout(args: {
|
|
636
|
+
width: number | string | undefined;
|
|
637
|
+
measuredWidth: number | null;
|
|
638
|
+
points: number;
|
|
639
|
+
seriesCounts: SeriesCounts;
|
|
640
|
+
niceMax: number;
|
|
641
|
+
yAxes?: Partial<{
|
|
642
|
+
left: {
|
|
643
|
+
label?: string;
|
|
644
|
+
};
|
|
645
|
+
right: {
|
|
646
|
+
label?: string;
|
|
647
|
+
};
|
|
648
|
+
}>;
|
|
649
|
+
yAxisLabel?: string;
|
|
650
|
+
chartMargin?: Partial<{
|
|
651
|
+
top: number;
|
|
652
|
+
right: number;
|
|
653
|
+
left: number;
|
|
654
|
+
bottom: number;
|
|
655
|
+
}>;
|
|
656
|
+
showLabels?: boolean;
|
|
657
|
+
showLegend?: boolean;
|
|
658
|
+
xAxisLabel?: string | undefined;
|
|
659
|
+
leftLabelSample?: string;
|
|
660
|
+
rightLabelSample?: string;
|
|
661
|
+
}): {
|
|
662
|
+
readonly containerPaddingLeft: 16;
|
|
663
|
+
readonly computedWidth: number;
|
|
664
|
+
readonly measuredInner: number | undefined;
|
|
665
|
+
readonly effectiveChartWidth: number;
|
|
666
|
+
readonly chartInnerWidth: number;
|
|
667
|
+
readonly finalChartLeftMargin: number;
|
|
668
|
+
readonly finalChartRightMargin: number;
|
|
669
|
+
readonly finalChartTopMargin: number;
|
|
670
|
+
readonly finalChartBottomMargin: number;
|
|
671
|
+
readonly leftYAxisLabelDx: number;
|
|
672
|
+
readonly rightYAxisLabelDx: number;
|
|
673
|
+
};
|
|
674
|
+
|
|
675
|
+
declare function useMeasureWidth<T extends HTMLElement = HTMLDivElement>(): {
|
|
676
|
+
readonly wrapperRef: React$1.RefObject<T | null>;
|
|
677
|
+
readonly measuredWidth: number | null;
|
|
678
|
+
};
|
|
679
|
+
|
|
680
|
+
interface NoDataProps {
|
|
681
|
+
paddingLeft?: number;
|
|
682
|
+
height?: number | string;
|
|
683
|
+
message?: string;
|
|
684
|
+
className?: string;
|
|
685
|
+
}
|
|
686
|
+
declare const NoData: React__default.FC<NoDataProps>;
|
|
687
|
+
|
|
547
688
|
declare const AvatarBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
548
689
|
declare const AvatarImageBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
|
|
549
690
|
declare const AvatarFallbackBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1585,4 +1726,4 @@ declare const useDrag: (options?: UseDragOptions) => {
|
|
|
1585
1726
|
isDragging: boolean;
|
|
1586
1727
|
};
|
|
1587
1728
|
|
|
1588
|
-
export { AddButton, AgendaDaysToShow, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, BarChart, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, ButtonBase, ButtonGroupBase, type ButtonProps, CalendarBase, CalendarDndProvider, type CalendarEvent, type CalendarProps, type CalendarView, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPreviousBase, ChangeButton, Chart, 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, DebouncedInput, type DebouncedInputProps, DefaultEndHour, DefaultStartHour, 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, EditButton, EndHour, ErrorMessage, EventCalendar, type EventColor, EventDialog, EventGap, EventHeight, EventItem, EventsPopup, FavoriteButton, FileUploader, type FileUploaderProps, type FileWithPreview, FilterButton, HideButton, Highlights, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, LabelBase, LikeButton, CustomLineChart as LineChart, LoadingBase, LockButton, type Margins, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MoreButton, MultiCombobox, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, NotificationButton, type Padding, type Period, PeriodsDropdown, CustomPieChart as PieChart, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, 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, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, SelectTriggerBase, SelectValueBase, SeparatorBase, 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, 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, TooltipBase, TooltipContentBase, TooltipProviderBase, TooltipSimple, TooltipTriggerBase, RechartTooltipWithTotal as TooltipWithTotal, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, ViewButton, VisibilityButton, WeekCellsHeight, WeekView, addHoursToDate, badgeVariants, buttonVariantsBase, compactTick, convert12HourTo24Hour, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, getAgendaEventsForDay, getAllEventsForDay, getArrowByType, getBorderRadiusClasses, getDateByType, getEventColorClasses, getEventsForDay, getSpanningEventsForDay, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, toast, useCalendarDnd, useChartHighlights, useCurrentTimeIndicator, useDrag, useEventVisibility, useIsMobile, useTheme, type valueFormatter };
|
|
1729
|
+
export { AddButton, AgendaDaysToShow, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, BarChart, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, ButtonBase, ButtonGroupBase, type ButtonProps, CalendarBase, CalendarDndProvider, type CalendarEvent, type CalendarProps, type CalendarView, 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, DebouncedInput, type DebouncedInputProps, DefaultEndHour, DefaultStartHour, 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, EditButton, EndHour, ErrorMessage, EventCalendar, type EventColor, EventDialog, EventGap, EventHeight, EventItem, EventsPopup, FavoriteButton, FileUploader, type FileUploaderProps, type FileWithPreview, FilterButton, type FinalValueFormatter, HideButton, Highlights, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, 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, MoreButton, MultiCombobox, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, 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, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, 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, StatusIndicator, type StatusProps, SwitchBase, TITLE_CLASSNAME, 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, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, type ValueFormatter, ViewButton, VisibilityButton, WeekCellsHeight, WeekView, type XAxisConfig$1 as XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, adaptDataForTooltip, addHoursToDate, badgeVariants, buildPercentFormatter, buttonVariantsBase, compactTick, computeAllKeys, computeAxisLabelWidth, computeChartWidth, computeEstimatedAxisNeeded, computeLabelSample, computeLeftRightKeys, computeNiceMax, computeProcessedData, computeSeriesOrder, convert12HourTo24Hour, createFinalValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, estimateTextWidth, formatFieldName, generateAdditionalColors, generateColors, getAgendaEventsForDay, getAllEventsForDay, getArrowByType, getBorderRadiusClasses, getDateByType, getEventColorClasses, getEventsForDay, getSpanningEventsForDay, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isValid12Hour, isValidHour, isValidMinuteOrSecond, maxForKeys, minForKeys, niceCeil, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, toast, useCalendarDnd, useChartHighlights, useChartLayout, useCurrentTimeIndicator, useDrag, useEventVisibility, useIsMobile, useMeasureWidth, useTheme, type valueFormatter };
|