@mlw-packages/react-components 1.7.15 → 1.7.16

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.d.mts CHANGED
@@ -254,125 +254,32 @@ 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;
257
+ declare const renderInsideBarLabel: (color: string, valueFormatter?: valueFormatter) => (props: LabelRendererProps) => react_jsx_runtime.JSX.Element;
259
258
 
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;
274
- interface ChartData {
275
- [key: string]: Primitive;
276
- name?: string;
259
+ interface ChartData$1 {
260
+ [key: string]: string | number | boolean | null | undefined;
277
261
  }
278
- interface XAxisConfig$1 {
262
+ interface XAxisConfig$2 {
279
263
  dataKey: string;
280
264
  label?: string;
281
265
  valueFormatter?: (value: string | number) => string;
282
266
  autoLabel?: boolean;
283
267
  }
284
- type ValueFormatter = (value: string | number) => string | number;
285
- type FinalValueFormatter = (value: number | string | null | undefined) => string;
286
- type SeriesProp = {
268
+ interface BiaxialConfig {
269
+ key: string[];
270
+ label?: string;
271
+ percentage?: boolean;
272
+ decimals?: number;
273
+ stroke?: string | Record<string, string>;
274
+ }
275
+ type SeriesProp$1 = {
287
276
  bar?: string[];
288
277
  line?: string[];
289
278
  area?: string[];
290
279
  };
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
-
371
280
  interface ChartProps {
372
- data: ChartData[];
373
- series?: SeriesProp;
374
- yAxisMap?: YAxisMap;
375
- yAxes?: YAxes;
281
+ data: ChartData$1[];
282
+ series?: SeriesProp$1;
376
283
  className?: string;
377
284
  chartMargin?: Partial<{
378
285
  top: number;
@@ -393,9 +300,11 @@ interface ChartProps {
393
300
  labelMap?: Record<string, string>;
394
301
  valueFormatter?: valueFormatter;
395
302
  categoryFormatter?: (value: string | number) => string;
303
+ periodLabel?: string;
396
304
  xAxisLabel?: string;
397
305
  yAxisLabel?: string;
398
- xAxis?: XAxisConfig$1 | string;
306
+ xAxis?: XAxisConfig$2 | string;
307
+ biaxial?: BiaxialConfig | string | string[];
399
308
  enableHighlights?: boolean;
400
309
  enableShowOnly?: boolean;
401
310
  enablePeriodsDropdown?: boolean;
@@ -403,14 +312,13 @@ interface ChartProps {
403
312
  showTooltipTotal?: boolean;
404
313
  maxTooltips?: number;
405
314
  formatBR?: boolean;
406
- periodLabel?: string;
407
315
  }
408
316
  declare const Chart: React__default.FC<ChartProps>;
409
317
 
410
318
  interface BarChartData {
411
319
  [key: string]: string | number | boolean | null | undefined;
412
320
  }
413
- interface XAxisConfig {
321
+ interface XAxisConfig$1 {
414
322
  dataKey: string;
415
323
  label?: string;
416
324
  valueFormatter?: (value: string | number) => string;
@@ -443,7 +351,7 @@ interface BarChartProps {
443
351
  titlePosition?: "left" | "center" | "right";
444
352
  showLabels?: boolean;
445
353
  labelMap?: Record<string, string>;
446
- xAxis?: XAxisConfig | string;
354
+ xAxis?: XAxisConfig$1 | string;
447
355
  mapper?: DataMapper | string[];
448
356
  yAxis?: DataMapper | string[];
449
357
  autoDetect?: boolean;
@@ -632,20 +540,80 @@ interface UseChartHighlightsReturn {
632
540
  }
633
541
  declare const useChartHighlights: () => UseChartHighlightsReturn;
634
542
 
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
- }>;
543
+ interface NoDataProps {
544
+ paddingLeft?: number;
545
+ height?: number | string;
546
+ message?: string;
547
+ className?: string;
548
+ }
549
+ declare const NoData: React__default.FC<NoDataProps>;
550
+
551
+ type Primitive = string | number | boolean | null | undefined;
552
+ interface ChartData {
553
+ [key: string]: Primitive;
554
+ name?: string;
555
+ }
556
+ interface XAxisConfig {
557
+ dataKey: string;
558
+ label?: string;
559
+ valueFormatter?: (value: string | number) => string;
560
+ autoLabel?: boolean;
561
+ }
562
+ type ValueFormatter = (value: string | number) => string | number;
563
+ type FinalValueFormatter = (value: number | string | null | undefined) => string;
564
+ type SeriesProp = {
565
+ bar?: string[];
566
+ line?: string[];
567
+ area?: string[];
568
+ };
569
+ type SeriesEntry = {
570
+ type: "bar" | "line" | "area";
571
+ key: string;
572
+ };
573
+ type SeriesCounts = {
574
+ bar: number;
575
+ line: number;
576
+ area: number;
577
+ };
578
+ type YAxisSide = "left" | "right";
579
+ type YAxisMap = Record<string, YAxisSide>;
580
+ interface MapperConfigEntry {
581
+ label?: string;
582
+ valueFormatter?: ValueFormatter;
583
+ color?: string;
584
+ type?: "number" | "string" | "auto";
585
+ visible?: boolean;
586
+ }
587
+ type MapperConfig = Record<string, MapperConfigEntry>;
588
+ interface YAxisOptions {
589
+ label?: string;
590
+ stroke?: string;
591
+ width?: number;
592
+ percent?: boolean;
593
+ percentDecimals?: number;
594
+ }
595
+ type YAxes = Partial<{
596
+ left: YAxisOptions;
597
+ right: YAxisOptions;
598
+ }>;
599
+ interface TooltipItem {
600
+ id: string;
601
+ data: ChartData;
602
+ position: {
603
+ top: number;
604
+ left: number;
605
+ };
606
+ }
607
+ type TooltipAdaptedRow = Record<string, string | number> & {
608
+ name: string;
609
+ };
610
+ interface ChartHooksArgs {
611
+ width?: number | string;
612
+ measuredWidth?: number | null;
613
+ points?: number;
614
+ seriesCounts?: SeriesCounts;
615
+ niceMax?: number;
616
+ yAxes?: YAxes;
649
617
  yAxisLabel?: string;
650
618
  chartMargin?: Partial<{
651
619
  top: number;
@@ -655,35 +623,8 @@ declare function useChartLayout(args: {
655
623
  }>;
656
624
  showLabels?: boolean;
657
625
  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;
626
+ xAxisLabel?: string;
685
627
  }
686
- declare const NoData: React__default.FC<NoDataProps>;
687
628
 
688
629
  declare const AvatarBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
689
630
  declare const AvatarImageBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
@@ -1726,4 +1667,4 @@ declare const useDrag: (options?: UseDragOptions) => {
1726
1667
  isDragging: boolean;
1727
1668
  };
1728
1669
 
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 };
1670
+ 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, 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, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, 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, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, toast, useCalendarDnd, useChartHighlights, useCurrentTimeIndicator, useDrag, useEventVisibility, useIsMobile, useTheme, type valueFormatter };
package/dist/index.d.ts CHANGED
@@ -254,125 +254,32 @@ 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;
257
+ declare const renderInsideBarLabel: (color: string, valueFormatter?: valueFormatter) => (props: LabelRendererProps) => react_jsx_runtime.JSX.Element;
259
258
 
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;
274
- interface ChartData {
275
- [key: string]: Primitive;
276
- name?: string;
259
+ interface ChartData$1 {
260
+ [key: string]: string | number | boolean | null | undefined;
277
261
  }
278
- interface XAxisConfig$1 {
262
+ interface XAxisConfig$2 {
279
263
  dataKey: string;
280
264
  label?: string;
281
265
  valueFormatter?: (value: string | number) => string;
282
266
  autoLabel?: boolean;
283
267
  }
284
- type ValueFormatter = (value: string | number) => string | number;
285
- type FinalValueFormatter = (value: number | string | null | undefined) => string;
286
- type SeriesProp = {
268
+ interface BiaxialConfig {
269
+ key: string[];
270
+ label?: string;
271
+ percentage?: boolean;
272
+ decimals?: number;
273
+ stroke?: string | Record<string, string>;
274
+ }
275
+ type SeriesProp$1 = {
287
276
  bar?: string[];
288
277
  line?: string[];
289
278
  area?: string[];
290
279
  };
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
-
371
280
  interface ChartProps {
372
- data: ChartData[];
373
- series?: SeriesProp;
374
- yAxisMap?: YAxisMap;
375
- yAxes?: YAxes;
281
+ data: ChartData$1[];
282
+ series?: SeriesProp$1;
376
283
  className?: string;
377
284
  chartMargin?: Partial<{
378
285
  top: number;
@@ -393,9 +300,11 @@ interface ChartProps {
393
300
  labelMap?: Record<string, string>;
394
301
  valueFormatter?: valueFormatter;
395
302
  categoryFormatter?: (value: string | number) => string;
303
+ periodLabel?: string;
396
304
  xAxisLabel?: string;
397
305
  yAxisLabel?: string;
398
- xAxis?: XAxisConfig$1 | string;
306
+ xAxis?: XAxisConfig$2 | string;
307
+ biaxial?: BiaxialConfig | string | string[];
399
308
  enableHighlights?: boolean;
400
309
  enableShowOnly?: boolean;
401
310
  enablePeriodsDropdown?: boolean;
@@ -403,14 +312,13 @@ interface ChartProps {
403
312
  showTooltipTotal?: boolean;
404
313
  maxTooltips?: number;
405
314
  formatBR?: boolean;
406
- periodLabel?: string;
407
315
  }
408
316
  declare const Chart: React__default.FC<ChartProps>;
409
317
 
410
318
  interface BarChartData {
411
319
  [key: string]: string | number | boolean | null | undefined;
412
320
  }
413
- interface XAxisConfig {
321
+ interface XAxisConfig$1 {
414
322
  dataKey: string;
415
323
  label?: string;
416
324
  valueFormatter?: (value: string | number) => string;
@@ -443,7 +351,7 @@ interface BarChartProps {
443
351
  titlePosition?: "left" | "center" | "right";
444
352
  showLabels?: boolean;
445
353
  labelMap?: Record<string, string>;
446
- xAxis?: XAxisConfig | string;
354
+ xAxis?: XAxisConfig$1 | string;
447
355
  mapper?: DataMapper | string[];
448
356
  yAxis?: DataMapper | string[];
449
357
  autoDetect?: boolean;
@@ -632,20 +540,80 @@ interface UseChartHighlightsReturn {
632
540
  }
633
541
  declare const useChartHighlights: () => UseChartHighlightsReturn;
634
542
 
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
- }>;
543
+ interface NoDataProps {
544
+ paddingLeft?: number;
545
+ height?: number | string;
546
+ message?: string;
547
+ className?: string;
548
+ }
549
+ declare const NoData: React__default.FC<NoDataProps>;
550
+
551
+ type Primitive = string | number | boolean | null | undefined;
552
+ interface ChartData {
553
+ [key: string]: Primitive;
554
+ name?: string;
555
+ }
556
+ interface XAxisConfig {
557
+ dataKey: string;
558
+ label?: string;
559
+ valueFormatter?: (value: string | number) => string;
560
+ autoLabel?: boolean;
561
+ }
562
+ type ValueFormatter = (value: string | number) => string | number;
563
+ type FinalValueFormatter = (value: number | string | null | undefined) => string;
564
+ type SeriesProp = {
565
+ bar?: string[];
566
+ line?: string[];
567
+ area?: string[];
568
+ };
569
+ type SeriesEntry = {
570
+ type: "bar" | "line" | "area";
571
+ key: string;
572
+ };
573
+ type SeriesCounts = {
574
+ bar: number;
575
+ line: number;
576
+ area: number;
577
+ };
578
+ type YAxisSide = "left" | "right";
579
+ type YAxisMap = Record<string, YAxisSide>;
580
+ interface MapperConfigEntry {
581
+ label?: string;
582
+ valueFormatter?: ValueFormatter;
583
+ color?: string;
584
+ type?: "number" | "string" | "auto";
585
+ visible?: boolean;
586
+ }
587
+ type MapperConfig = Record<string, MapperConfigEntry>;
588
+ interface YAxisOptions {
589
+ label?: string;
590
+ stroke?: string;
591
+ width?: number;
592
+ percent?: boolean;
593
+ percentDecimals?: number;
594
+ }
595
+ type YAxes = Partial<{
596
+ left: YAxisOptions;
597
+ right: YAxisOptions;
598
+ }>;
599
+ interface TooltipItem {
600
+ id: string;
601
+ data: ChartData;
602
+ position: {
603
+ top: number;
604
+ left: number;
605
+ };
606
+ }
607
+ type TooltipAdaptedRow = Record<string, string | number> & {
608
+ name: string;
609
+ };
610
+ interface ChartHooksArgs {
611
+ width?: number | string;
612
+ measuredWidth?: number | null;
613
+ points?: number;
614
+ seriesCounts?: SeriesCounts;
615
+ niceMax?: number;
616
+ yAxes?: YAxes;
649
617
  yAxisLabel?: string;
650
618
  chartMargin?: Partial<{
651
619
  top: number;
@@ -655,35 +623,8 @@ declare function useChartLayout(args: {
655
623
  }>;
656
624
  showLabels?: boolean;
657
625
  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;
626
+ xAxisLabel?: string;
685
627
  }
686
- declare const NoData: React__default.FC<NoDataProps>;
687
628
 
688
629
  declare const AvatarBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
689
630
  declare const AvatarImageBase: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
@@ -1726,4 +1667,4 @@ declare const useDrag: (options?: UseDragOptions) => {
1726
1667
  isDragging: boolean;
1727
1668
  };
1728
1669
 
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 };
1670
+ 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, 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, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, 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, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, toast, useCalendarDnd, useChartHighlights, useCurrentTimeIndicator, useDrag, useEventVisibility, useIsMobile, useTheme, type valueFormatter };