@mlw-packages/react-components 1.7.3 → 1.7.5

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
@@ -123,6 +123,7 @@ interface SelectItem<T extends string> {
123
123
  interface DefaultSelectProps extends ErrorMessageProps {
124
124
  placeholder: string;
125
125
  onChange: (value: string) => void;
126
+ disabled?: boolean;
126
127
  }
127
128
  interface SelectTestIds {
128
129
  root?: string;
@@ -149,7 +150,7 @@ interface SelectPropsWithGroupItems<T extends string> extends DefaultSelectProps
149
150
  testIds?: SelectTestIds;
150
151
  }
151
152
  type SelectProps<T extends string> = SelectPropsWithItems<T> | SelectPropsWithGroupItems<T>;
152
- declare function Select<T extends string>({ items, groupItems, placeholder, onChange, error, testIds, }: SelectProps<T>): react_jsx_runtime.JSX.Element;
153
+ declare function Select<T extends string>({ items, groupItems, placeholder, onChange, error, testIds, disabled, }: SelectProps<T>): react_jsx_runtime.JSX.Element;
153
154
 
154
155
  declare const formatFieldName: (fieldName: string) => string;
155
156
  declare const detectDataFields: (data: Record<string, unknown>[], xAxisKey: string) => string[];
@@ -238,6 +239,12 @@ interface ChartProps {
238
239
  showLabels?: boolean;
239
240
  labelMap?: Record<string, string>;
240
241
  valueFormatter?: valueFormatter;
242
+ /** Formata valores categóricos (ex.: "BANANA" -> "Banana") apenas para exibição */
243
+ categoryFormatter?: (value: string | number) => string;
244
+ /** Label a ser exibido abaixo do eixo X */
245
+ xAxisLabel?: string;
246
+ /** Label a ser exibido ao lado do eixo Y */
247
+ yAxisLabel?: string;
241
248
  xAxis?: XAxisConfig$1 | string;
242
249
  enableHighlights?: boolean;
243
250
  enableShowOnly?: boolean;
@@ -245,6 +252,8 @@ interface ChartProps {
245
252
  enableDraggableTooltips?: boolean;
246
253
  showTooltipTotal?: boolean;
247
254
  maxTooltips?: number;
255
+ /** Quando true, formata valores numéricos no formato pt-BR (ex: 00.000,00) */
256
+ formatBR?: boolean;
248
257
  }
249
258
  declare const Chart: React__default.FC<ChartProps>;
250
259
 
@@ -419,6 +428,7 @@ interface DraggableTooltipProps {
419
428
  toggleHighlight?: (key: string) => void;
420
429
  showOnlyHighlighted?: boolean;
421
430
  valueFormatter?: valueFormatter;
431
+ categoryFormatter?: (value: string | number) => string;
422
432
  }
423
433
  declare const DraggableTooltip: React__default.NamedExoticComponent<DraggableTooltipProps>;
424
434
 
@@ -436,6 +446,7 @@ interface Props$1 {
436
446
  periodLabel?: string;
437
447
  totalLabel?: string;
438
448
  valueFormatter?: valueFormatter;
449
+ categoryFormatter?: (value: string | number) => string;
439
450
  }
440
451
  declare const RechartTooltipWithTotal: React__default.FC<Props$1>;
441
452
 
@@ -452,6 +463,7 @@ interface Props {
452
463
  finalColors?: Record<string, string>;
453
464
  periodLabel?: string;
454
465
  valueFormatter?: valueFormatter;
466
+ categoryFormatter?: (value: string | number) => string;
455
467
  }
456
468
  declare const TooltipSimple: React__default.FC<Props>;
457
469
 
@@ -670,6 +682,7 @@ declare const buttonVariantsBase: (props?: ({
670
682
  interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariantsBase> {
671
683
  asChild?: boolean;
672
684
  testid?: string;
685
+ isLoading?: boolean;
673
686
  }
674
687
  declare const ButtonBase: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
675
688
  interface ButtonGroupProps extends React$1.HTMLAttributes<HTMLDivElement> {
@@ -751,14 +764,6 @@ declare const ChangeButton: React$1.ForwardRefExoticComponent<QuickButtonProps &
751
764
  declare const SaveButton: React$1.ForwardRefExoticComponent<QuickButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
752
765
  declare const AddButton: React$1.ForwardRefExoticComponent<QuickButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
753
766
  declare const CloseButton: React$1.ForwardRefExoticComponent<QuickButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
754
- interface DeleteButtonProps extends QuickButtonProps {
755
- destructiveTitle?: string;
756
- destructiveDescription?: string;
757
- destructiveOnConfirm?: () => void;
758
- destructiveOnCancel?: () => void;
759
- destructiveTriggerContent?: React$1.ReactNode;
760
- }
761
- declare const DeleteButton: React$1.ForwardRefExoticComponent<DeleteButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
762
767
  declare const DownloadButton: React$1.FC<QuickButtonProps>;
763
768
  declare const UploadButton: React$1.FC<QuickButtonProps>;
764
769
  declare const CopyButton: React$1.FC<QuickButtonProps>;
@@ -1099,7 +1104,8 @@ interface DateTimePickerProps extends ErrorMessageProps {
1099
1104
  label?: string;
1100
1105
  date: Date | undefined;
1101
1106
  onChange: (date: Date | undefined) => void;
1102
- display?: boolean;
1107
+ displayFormat?: string;
1108
+ hideTime?: boolean;
1103
1109
  hideSeconds?: boolean;
1104
1110
  hideHour?: boolean;
1105
1111
  hideMinute?: boolean;
@@ -1109,7 +1115,7 @@ interface DateTimePickerProps extends ErrorMessageProps {
1109
1115
  className?: string;
1110
1116
  error?: string;
1111
1117
  }
1112
- declare function DateTimePicker({ label, date, onChange, display, hideSeconds, hideHour, hideMinute, fromDate, toDate, disabled, className, error, }: DateTimePickerProps): react_jsx_runtime.JSX.Element;
1118
+ declare function DateTimePicker({ label, date, onChange, displayFormat, hideTime, hideSeconds, hideHour, hideMinute, fromDate, toDate, disabled, className, error, }: DateTimePickerProps): react_jsx_runtime.JSX.Element;
1113
1119
 
1114
1120
  interface RangePickerProps extends ErrorMessageProps {
1115
1121
  value?: DateRange;
@@ -1224,6 +1230,36 @@ declare function ContextMenuLabelBase({ className, inset, ...props }: React$1.Co
1224
1230
  declare function ContextMenuSeparatorBase({ className, ...props }: React$1.ComponentProps<typeof ContextMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
1225
1231
  declare function ContextMenuShortcutBase({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
1226
1232
 
1233
+ type CodeBlockProps = {
1234
+ language: string;
1235
+ filename: string;
1236
+ highlightLines?: number[];
1237
+ breadcrumb?: string[];
1238
+ showStats?: boolean;
1239
+ loading?: boolean;
1240
+ loaderWords?: string[];
1241
+ } & ({
1242
+ code: string;
1243
+ tabs?: never;
1244
+ } | {
1245
+ code?: never;
1246
+ tabs: Array<{
1247
+ name: string;
1248
+ code: string;
1249
+ language?: string;
1250
+ highlightLines?: number[];
1251
+ }>;
1252
+ } | {
1253
+ code?: string;
1254
+ tabs?: Array<{
1255
+ name: string;
1256
+ code: string;
1257
+ language?: string;
1258
+ highlightLines?: number[];
1259
+ }>;
1260
+ });
1261
+ declare const CodeBlock: ({ language, filename, code, highlightLines, tabs, breadcrumb, showStats, }: CodeBlockProps) => react_jsx_runtime.JSX.Element;
1262
+
1227
1263
  declare function useIsMobile(): boolean;
1228
1264
 
1229
1265
  interface Position {
@@ -1243,4 +1279,4 @@ declare const useDrag: (options?: UseDragOptions) => {
1243
1279
  isDragging: boolean;
1244
1280
  };
1245
1281
 
1246
- export { AddButton, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarFallbackBase, AvatarImageBase, BackButton, BadgeBase, BarChart, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, ButtonBase, ButtonGroupBase, type ButtonProps, CalendarBase, type CalendarProps, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPrevious, ChangeButton, Chart, CheckButton, CheckboxBase, CloseAllButton, CloseButton, 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, type DebouncedInputProps, DeleteButton, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, 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, EditButton, ErrorMessage, 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, 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, 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, badgeVariants, buttonVariantsBase, compactTick, convert12HourTo24Hour, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, getArrowByType, getDateByType, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, toast, useChartHighlights, useDrag, useIsMobile, useTheme, type valueFormatter };
1282
+ export { AddButton, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarFallbackBase, AvatarImageBase, BackButton, BadgeBase, BarChart, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, ButtonBase, ButtonGroupBase, type ButtonProps, CalendarBase, type CalendarProps, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPrevious, ChangeButton, Chart, CheckButton, CheckboxBase, 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, type DebouncedInputProps, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, 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, EditButton, ErrorMessage, 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, 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, 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, badgeVariants, buttonVariantsBase, compactTick, convert12HourTo24Hour, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, getArrowByType, getDateByType, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, toast, useChartHighlights, useDrag, useIsMobile, useTheme, type valueFormatter };
package/dist/index.d.ts CHANGED
@@ -123,6 +123,7 @@ interface SelectItem<T extends string> {
123
123
  interface DefaultSelectProps extends ErrorMessageProps {
124
124
  placeholder: string;
125
125
  onChange: (value: string) => void;
126
+ disabled?: boolean;
126
127
  }
127
128
  interface SelectTestIds {
128
129
  root?: string;
@@ -149,7 +150,7 @@ interface SelectPropsWithGroupItems<T extends string> extends DefaultSelectProps
149
150
  testIds?: SelectTestIds;
150
151
  }
151
152
  type SelectProps<T extends string> = SelectPropsWithItems<T> | SelectPropsWithGroupItems<T>;
152
- declare function Select<T extends string>({ items, groupItems, placeholder, onChange, error, testIds, }: SelectProps<T>): react_jsx_runtime.JSX.Element;
153
+ declare function Select<T extends string>({ items, groupItems, placeholder, onChange, error, testIds, disabled, }: SelectProps<T>): react_jsx_runtime.JSX.Element;
153
154
 
154
155
  declare const formatFieldName: (fieldName: string) => string;
155
156
  declare const detectDataFields: (data: Record<string, unknown>[], xAxisKey: string) => string[];
@@ -238,6 +239,12 @@ interface ChartProps {
238
239
  showLabels?: boolean;
239
240
  labelMap?: Record<string, string>;
240
241
  valueFormatter?: valueFormatter;
242
+ /** Formata valores categóricos (ex.: "BANANA" -> "Banana") apenas para exibição */
243
+ categoryFormatter?: (value: string | number) => string;
244
+ /** Label a ser exibido abaixo do eixo X */
245
+ xAxisLabel?: string;
246
+ /** Label a ser exibido ao lado do eixo Y */
247
+ yAxisLabel?: string;
241
248
  xAxis?: XAxisConfig$1 | string;
242
249
  enableHighlights?: boolean;
243
250
  enableShowOnly?: boolean;
@@ -245,6 +252,8 @@ interface ChartProps {
245
252
  enableDraggableTooltips?: boolean;
246
253
  showTooltipTotal?: boolean;
247
254
  maxTooltips?: number;
255
+ /** Quando true, formata valores numéricos no formato pt-BR (ex: 00.000,00) */
256
+ formatBR?: boolean;
248
257
  }
249
258
  declare const Chart: React__default.FC<ChartProps>;
250
259
 
@@ -419,6 +428,7 @@ interface DraggableTooltipProps {
419
428
  toggleHighlight?: (key: string) => void;
420
429
  showOnlyHighlighted?: boolean;
421
430
  valueFormatter?: valueFormatter;
431
+ categoryFormatter?: (value: string | number) => string;
422
432
  }
423
433
  declare const DraggableTooltip: React__default.NamedExoticComponent<DraggableTooltipProps>;
424
434
 
@@ -436,6 +446,7 @@ interface Props$1 {
436
446
  periodLabel?: string;
437
447
  totalLabel?: string;
438
448
  valueFormatter?: valueFormatter;
449
+ categoryFormatter?: (value: string | number) => string;
439
450
  }
440
451
  declare const RechartTooltipWithTotal: React__default.FC<Props$1>;
441
452
 
@@ -452,6 +463,7 @@ interface Props {
452
463
  finalColors?: Record<string, string>;
453
464
  periodLabel?: string;
454
465
  valueFormatter?: valueFormatter;
466
+ categoryFormatter?: (value: string | number) => string;
455
467
  }
456
468
  declare const TooltipSimple: React__default.FC<Props>;
457
469
 
@@ -670,6 +682,7 @@ declare const buttonVariantsBase: (props?: ({
670
682
  interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariantsBase> {
671
683
  asChild?: boolean;
672
684
  testid?: string;
685
+ isLoading?: boolean;
673
686
  }
674
687
  declare const ButtonBase: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
675
688
  interface ButtonGroupProps extends React$1.HTMLAttributes<HTMLDivElement> {
@@ -751,14 +764,6 @@ declare const ChangeButton: React$1.ForwardRefExoticComponent<QuickButtonProps &
751
764
  declare const SaveButton: React$1.ForwardRefExoticComponent<QuickButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
752
765
  declare const AddButton: React$1.ForwardRefExoticComponent<QuickButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
753
766
  declare const CloseButton: React$1.ForwardRefExoticComponent<QuickButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
754
- interface DeleteButtonProps extends QuickButtonProps {
755
- destructiveTitle?: string;
756
- destructiveDescription?: string;
757
- destructiveOnConfirm?: () => void;
758
- destructiveOnCancel?: () => void;
759
- destructiveTriggerContent?: React$1.ReactNode;
760
- }
761
- declare const DeleteButton: React$1.ForwardRefExoticComponent<DeleteButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
762
767
  declare const DownloadButton: React$1.FC<QuickButtonProps>;
763
768
  declare const UploadButton: React$1.FC<QuickButtonProps>;
764
769
  declare const CopyButton: React$1.FC<QuickButtonProps>;
@@ -1099,7 +1104,8 @@ interface DateTimePickerProps extends ErrorMessageProps {
1099
1104
  label?: string;
1100
1105
  date: Date | undefined;
1101
1106
  onChange: (date: Date | undefined) => void;
1102
- display?: boolean;
1107
+ displayFormat?: string;
1108
+ hideTime?: boolean;
1103
1109
  hideSeconds?: boolean;
1104
1110
  hideHour?: boolean;
1105
1111
  hideMinute?: boolean;
@@ -1109,7 +1115,7 @@ interface DateTimePickerProps extends ErrorMessageProps {
1109
1115
  className?: string;
1110
1116
  error?: string;
1111
1117
  }
1112
- declare function DateTimePicker({ label, date, onChange, display, hideSeconds, hideHour, hideMinute, fromDate, toDate, disabled, className, error, }: DateTimePickerProps): react_jsx_runtime.JSX.Element;
1118
+ declare function DateTimePicker({ label, date, onChange, displayFormat, hideTime, hideSeconds, hideHour, hideMinute, fromDate, toDate, disabled, className, error, }: DateTimePickerProps): react_jsx_runtime.JSX.Element;
1113
1119
 
1114
1120
  interface RangePickerProps extends ErrorMessageProps {
1115
1121
  value?: DateRange;
@@ -1224,6 +1230,36 @@ declare function ContextMenuLabelBase({ className, inset, ...props }: React$1.Co
1224
1230
  declare function ContextMenuSeparatorBase({ className, ...props }: React$1.ComponentProps<typeof ContextMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
1225
1231
  declare function ContextMenuShortcutBase({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
1226
1232
 
1233
+ type CodeBlockProps = {
1234
+ language: string;
1235
+ filename: string;
1236
+ highlightLines?: number[];
1237
+ breadcrumb?: string[];
1238
+ showStats?: boolean;
1239
+ loading?: boolean;
1240
+ loaderWords?: string[];
1241
+ } & ({
1242
+ code: string;
1243
+ tabs?: never;
1244
+ } | {
1245
+ code?: never;
1246
+ tabs: Array<{
1247
+ name: string;
1248
+ code: string;
1249
+ language?: string;
1250
+ highlightLines?: number[];
1251
+ }>;
1252
+ } | {
1253
+ code?: string;
1254
+ tabs?: Array<{
1255
+ name: string;
1256
+ code: string;
1257
+ language?: string;
1258
+ highlightLines?: number[];
1259
+ }>;
1260
+ });
1261
+ declare const CodeBlock: ({ language, filename, code, highlightLines, tabs, breadcrumb, showStats, }: CodeBlockProps) => react_jsx_runtime.JSX.Element;
1262
+
1227
1263
  declare function useIsMobile(): boolean;
1228
1264
 
1229
1265
  interface Position {
@@ -1243,4 +1279,4 @@ declare const useDrag: (options?: UseDragOptions) => {
1243
1279
  isDragging: boolean;
1244
1280
  };
1245
1281
 
1246
- export { AddButton, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarFallbackBase, AvatarImageBase, BackButton, BadgeBase, BarChart, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, ButtonBase, ButtonGroupBase, type ButtonProps, CalendarBase, type CalendarProps, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPrevious, ChangeButton, Chart, CheckButton, CheckboxBase, CloseAllButton, CloseButton, 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, type DebouncedInputProps, DeleteButton, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, 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, EditButton, ErrorMessage, 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, 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, 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, badgeVariants, buttonVariantsBase, compactTick, convert12HourTo24Hour, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, getArrowByType, getDateByType, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, toast, useChartHighlights, useDrag, useIsMobile, useTheme, type valueFormatter };
1282
+ export { AddButton, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarFallbackBase, AvatarImageBase, BackButton, BadgeBase, BarChart, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, ButtonBase, ButtonGroupBase, type ButtonProps, CalendarBase, type CalendarProps, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPrevious, ChangeButton, Chart, CheckButton, CheckboxBase, 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, type DebouncedInputProps, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, 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, EditButton, ErrorMessage, 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, 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, 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, badgeVariants, buttonVariantsBase, compactTick, convert12HourTo24Hour, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, getArrowByType, getDateByType, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, toast, useChartHighlights, useDrag, useIsMobile, useTheme, type valueFormatter };