@mlw-packages/react-components 1.10.3 → 1.10.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.css +42 -83
- package/dist/index.d.mts +44 -78
- package/dist/index.d.ts +44 -78
- package/dist/index.js +373 -550
- package/dist/index.mjs +374 -543
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -110,23 +110,23 @@ declare const CardFooterBase: React$1.ForwardRefExoticComponent<React$1.HTMLAttr
|
|
|
110
110
|
testid?: string;
|
|
111
111
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
112
112
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
readonly
|
|
116
|
-
readonly
|
|
117
|
-
readonly
|
|
118
|
-
readonly
|
|
119
|
-
readonly
|
|
120
|
-
readonly
|
|
113
|
+
type FilesAccepted = "image/*" | "video/*" | "audio/*" | "pdf" | "doc" | "docx" | "txt" | "rtf" | "xls" | "xlsx" | "csv" | "ppt" | "pptx" | "jpeg" | "jpg" | "png" | "gif" | "webp" | "svg" | "mp4" | "webm" | "mkv" | "avi" | "mp3" | "wav" | "ogg" | "zip" | "rar" | "7z" | "tar" | "gz" | "*" | (string & {});
|
|
114
|
+
declare const FileAccept: {
|
|
115
|
+
readonly Image: "image/*";
|
|
116
|
+
readonly Document: "pdf,doc,docx,txt,rtf";
|
|
117
|
+
readonly Spreadsheet: "xls,xlsx,csv";
|
|
118
|
+
readonly Presentation: "ppt,pptx";
|
|
119
|
+
readonly Video: "video/*";
|
|
120
|
+
readonly Audio: "audio/*";
|
|
121
|
+
readonly All: "*";
|
|
121
122
|
};
|
|
122
|
-
type FileTypeValues = (typeof FileTypes)[keyof typeof FileTypes];
|
|
123
123
|
interface FileWithPreview extends File {
|
|
124
124
|
id?: string;
|
|
125
125
|
error?: string;
|
|
126
126
|
preview?: string;
|
|
127
127
|
}
|
|
128
128
|
interface FileUploaderProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onDrop"> {
|
|
129
|
-
accept?:
|
|
129
|
+
accept?: FilesAccepted;
|
|
130
130
|
maxSize?: number;
|
|
131
131
|
maxFiles?: number;
|
|
132
132
|
onValueChange: (files: FileWithPreview[]) => void;
|
|
@@ -2085,6 +2085,14 @@ interface SystemTooltipProps {
|
|
|
2085
2085
|
onMouseDown?: (id: string, e: React__default.MouseEvent | React__default.TouchEvent) => void;
|
|
2086
2086
|
onClose: (id: string) => void;
|
|
2087
2087
|
onPositionChange?: (id: string, position: Position$2) => void;
|
|
2088
|
+
onConnectionClick?: (conn: Connection, pos: {
|
|
2089
|
+
x: number;
|
|
2090
|
+
y: number;
|
|
2091
|
+
}) => void;
|
|
2092
|
+
onProcessClick?: (conn: Connection, pos: {
|
|
2093
|
+
x: number;
|
|
2094
|
+
y: number;
|
|
2095
|
+
}) => void;
|
|
2088
2096
|
}
|
|
2089
2097
|
declare const SystemTooltip: React__default.FC<SystemTooltipProps>;
|
|
2090
2098
|
|
|
@@ -2156,66 +2164,6 @@ interface IntegrationTooltipProps {
|
|
|
2156
2164
|
}
|
|
2157
2165
|
declare const IntegrationTooltip: React__default.FC<IntegrationTooltipProps>;
|
|
2158
2166
|
|
|
2159
|
-
declare const useIsTruncated: (ref: React.RefObject<HTMLElement | null>) => boolean;
|
|
2160
|
-
|
|
2161
|
-
declare const Beam: React__default.FC<{
|
|
2162
|
-
isInput: boolean;
|
|
2163
|
-
containerRef: React__default.RefObject<HTMLDivElement | null>;
|
|
2164
|
-
leftRef: React__default.RefObject<HTMLDivElement | null>;
|
|
2165
|
-
rightRef: React__default.RefObject<HTMLDivElement | null>;
|
|
2166
|
-
}>;
|
|
2167
|
-
|
|
2168
|
-
declare const SystemsDiagram: React__default.FC<{
|
|
2169
|
-
isInput: boolean;
|
|
2170
|
-
currentSystem: string;
|
|
2171
|
-
externalSystem: string;
|
|
2172
|
-
}>;
|
|
2173
|
-
|
|
2174
|
-
declare const TooltipBody: React__default.NamedExoticComponent<{
|
|
2175
|
-
data: IntegrationData;
|
|
2176
|
-
isLoading: boolean;
|
|
2177
|
-
connections: IntegrationData["connections"];
|
|
2178
|
-
isInput: boolean;
|
|
2179
|
-
externalSystem: string;
|
|
2180
|
-
}>;
|
|
2181
|
-
|
|
2182
|
-
declare function useIsMobile(): boolean;
|
|
2183
|
-
|
|
2184
|
-
interface Position {
|
|
2185
|
-
top: number;
|
|
2186
|
-
left: number;
|
|
2187
|
-
}
|
|
2188
|
-
interface UseDragOptions {
|
|
2189
|
-
onDragStart?: (id: string) => void;
|
|
2190
|
-
onDragEnd?: (id: string) => void;
|
|
2191
|
-
onDrag?: (id: string, position: Position) => void;
|
|
2192
|
-
}
|
|
2193
|
-
declare const useDrag: (options?: UseDragOptions) => {
|
|
2194
|
-
handleMouseDown: (id: string, e: React.MouseEvent | React.TouchEvent) => void;
|
|
2195
|
-
getPosition: (id: string) => Position;
|
|
2196
|
-
setPosition: (id: string, position: Position) => void;
|
|
2197
|
-
isElementDragging: (id: string) => boolean;
|
|
2198
|
-
isDragging: boolean;
|
|
2199
|
-
};
|
|
2200
|
-
|
|
2201
|
-
declare const IntegrationCard: React__default.FC<{
|
|
2202
|
-
title: string;
|
|
2203
|
-
details?: IntegrationProperties | null;
|
|
2204
|
-
}>;
|
|
2205
|
-
|
|
2206
|
-
declare const NameTooltip: React__default.FC<{
|
|
2207
|
-
name: string;
|
|
2208
|
-
description?: string;
|
|
2209
|
-
}>;
|
|
2210
|
-
|
|
2211
|
-
declare const CopyData: React__default.FC<{
|
|
2212
|
-
value: string;
|
|
2213
|
-
}>;
|
|
2214
|
-
|
|
2215
|
-
declare const SystemNode: React__default.FC<{
|
|
2216
|
-
label: string;
|
|
2217
|
-
}>;
|
|
2218
|
-
|
|
2219
2167
|
interface ChartData$2 {
|
|
2220
2168
|
[key: string]: string | number | boolean | null | undefined;
|
|
2221
2169
|
}
|
|
@@ -2491,7 +2439,6 @@ interface CarouselItem {
|
|
|
2491
2439
|
id: number | string;
|
|
2492
2440
|
url: string;
|
|
2493
2441
|
title: string;
|
|
2494
|
-
theme?: "malwee" | "malwee-kids" | "enfim" | "carinhoso";
|
|
2495
2442
|
}
|
|
2496
2443
|
interface CarouselBaseProps {
|
|
2497
2444
|
items: CarouselItem[];
|
|
@@ -2510,9 +2457,10 @@ interface CarouselBaseProps {
|
|
|
2510
2457
|
zoomEffect?: "lens" | "scale" | null;
|
|
2511
2458
|
download?: boolean;
|
|
2512
2459
|
isLoading?: boolean;
|
|
2460
|
+
fernando?: string;
|
|
2513
2461
|
onChange?: (index: number) => void;
|
|
2514
2462
|
}
|
|
2515
|
-
declare function CarouselBase({ items, className, containerClassName, imageClassName, width, showControls, showIndicators, autoPlay, autoPlayInterval, zoomEffect, download, isLoading, onChange, }: CarouselBaseProps): react_jsx_runtime.JSX.Element;
|
|
2463
|
+
declare function CarouselBase({ items, className, containerClassName, imageClassName, width, showControls, showIndicators, autoPlay, autoPlayInterval, zoomEffect, download, isLoading, onChange, fernando, }: CarouselBaseProps): react_jsx_runtime.JSX.Element;
|
|
2516
2464
|
|
|
2517
2465
|
type PhosphorIcon = React$1.ForwardRefExoticComponent<IconProps$1 & React$1.RefAttributes<SVGSVGElement>>;
|
|
2518
2466
|
type MenuItem = {
|
|
@@ -2554,9 +2502,9 @@ interface ControlledComboboxTestIds {
|
|
|
2554
2502
|
}
|
|
2555
2503
|
interface ControlledComboboxProps<T extends string> extends ErrorMessageProps {
|
|
2556
2504
|
items: ControlledComboboxItem<T>[];
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2505
|
+
value?: T;
|
|
2506
|
+
onChange?: (value: T) => void;
|
|
2507
|
+
placeholder?: ReactNode;
|
|
2560
2508
|
disabled?: boolean;
|
|
2561
2509
|
keepOpen?: boolean;
|
|
2562
2510
|
closeAll?: ReactNode;
|
|
@@ -2566,7 +2514,6 @@ interface ControlledComboboxProps<T extends string> extends ErrorMessageProps {
|
|
|
2566
2514
|
onClear?: () => void;
|
|
2567
2515
|
testIds?: ControlledComboboxTestIds;
|
|
2568
2516
|
isMulti?: boolean;
|
|
2569
|
-
hasSelected?: boolean;
|
|
2570
2517
|
onSearchChange?: (value: string) => void;
|
|
2571
2518
|
search?: string;
|
|
2572
2519
|
onEndReached?: () => void;
|
|
@@ -2574,6 +2521,25 @@ interface ControlledComboboxProps<T extends string> extends ErrorMessageProps {
|
|
|
2574
2521
|
label?: string;
|
|
2575
2522
|
labelClassname?: string;
|
|
2576
2523
|
}
|
|
2577
|
-
declare function ControlledCombobox<T extends string>({ items,
|
|
2524
|
+
declare function ControlledCombobox<T extends string>({ items, value, onChange, placeholder, disabled, keepOpen, searchPlaceholder, empty, error, label, labelClassname, testIds, onClear, hideClear, onSearchChange, search, onEndReached, loading, }: ControlledComboboxProps<T>): react_jsx_runtime.JSX.Element;
|
|
2525
|
+
|
|
2526
|
+
declare function useIsMobile(): boolean;
|
|
2527
|
+
|
|
2528
|
+
interface Position {
|
|
2529
|
+
top: number;
|
|
2530
|
+
left: number;
|
|
2531
|
+
}
|
|
2532
|
+
interface UseDragOptions {
|
|
2533
|
+
onDragStart?: (id: string) => void;
|
|
2534
|
+
onDragEnd?: (id: string) => void;
|
|
2535
|
+
onDrag?: (id: string, position: Position) => void;
|
|
2536
|
+
}
|
|
2537
|
+
declare const useDrag: (options?: UseDragOptions) => {
|
|
2538
|
+
handleMouseDown: (id: string, e: React.MouseEvent | React.TouchEvent) => void;
|
|
2539
|
+
getPosition: (id: string) => Position;
|
|
2540
|
+
setPosition: (id: string, position: Position) => void;
|
|
2541
|
+
isElementDragging: (id: string) => boolean;
|
|
2542
|
+
isDragging: boolean;
|
|
2543
|
+
};
|
|
2578
2544
|
|
|
2579
|
-
export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, type AvatarComboboxProps, type AvatarComboboxPropsWithGroupItems, type AvatarComboboxPropsWithItems, type AvatarComboboxTestIds, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, type BannerProps,
|
|
2545
|
+
export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, type AvatarComboboxProps, type AvatarComboboxPropsWithGroupItems, type AvatarComboboxPropsWithItems, type AvatarComboboxTestIds, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, type BannerProps, type BiaxialConfig, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, Brush, ButtonBase, ButtonGroupBase, type ButtonProps, CENTER_INDEX, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, type CalendarEvent, type CalendarEventAgenda, type CalendarProps, type CalendarView, type CalendarViewAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, CarouselBase, type CarouselBaseProps, type CarouselItem, ChangeButton, Chart, ChartControls, type ChartData$3 as ChartData, ChartHeader, type ChartHooksArgs, type ChartProps, ChartTotalLegend, CheckButton, CheckboxBase, CheckboxTree, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, CommandDebouncedInputBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, type Connection, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, ControlledCombobox, type ControlledComboboxItem, type ControlledComboboxProps, type ControlledComboboxTestIds, CopyButton, type DataMapper, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, type DebouncedInputProps, type DefaultAvatarComboboxProps, DefaultEndHour, DefaultEndHourAgenda, type DefaultMultiSelectProps, type DefaultSelectProps, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, DraggableEvent, DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage, EventAgenda, EventCalendar, type EventColor, type EventColorAgenda, EventDetailModalAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileAccept, FileUploader, type FileUploaderProps, type FileWithPreview, type FilesAccepted, FilterButton, type FinalValueFormatter, HideButton, Highlights, HorizontalChart, HorizontalLegend, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, type IconProps, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, type Integration, type IntegrationConnection, type IntegrationData, type IntegrationProperties, type IntegrationProps, IntegrationTooltip, type IntegrationTooltipProps, LabelBase, type LabelListContent, Leaderboard, type LeaderboardItem, type LeaderboardProps, type LegendItem, LikeButton, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, type Margins, type MenuItem, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, type MultiComboboxProps, type MultiComboboxTestIds, MultiDayOverlay, MultiSelect, MultiSelectBase, MultiSelectContentBase, type MultiSelectContextType, MultiSelectGroupBase, type MultiSelectItem, MultiSelectItemBase, type MultiSelectProps, type MultiSelectPropsWithGroupItems, type MultiSelectPropsWithItems, MultiSelectSeparatorBase, type MultiSelectTestIds, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, type Neo4jIntegration, type Neo4jNode, type Neo4jRelationship, type NewSelectProps, NoData, type Node, NotificationButton, NumericInput, type Padding, type Period, PeriodsDropdown, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, type Position$1 as Position, type Primitive, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, type PropsLabelList, RadialMenu, RangePicker, type RangePickerProps, RefreshButton, type Relationship, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectEmpty, SelectGroupBase, type SelectItem, SelectItemBase, SelectLabelBase, type SelectPropsWithGroupItems, type SelectPropsWithItems, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, type SelectTestIds, SelectTriggerBase, SelectValueBase, SeparatorBase, type SeriesConfig, type SeriesCounts, type SeriesEntry, type SeriesOrder, type SeriesProp, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, type SliderBaseProps, StartHour, StartHourAgenda, StatusIndicator, type StatusProps, SwitchBase, type SystemData, SystemTooltip, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, type TextAreaBaseProps, type Theme, ThemeProviderBase, TimePicker, TimePickerInput, type TimePickerInputProps, type TimePickerType, TimeSeries, type TimeSeriesConfig, Toaster, type TooltipAdaptedRow, TooltipBase, TooltipContentBase, type TooltipItem$2 as TooltipItem, TooltipProviderBase, TooltipSimple, TooltipTriggerBase, RechartTooltipWithTotal as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, VISIBLE_ITEMS, type ValueFormatter, type ValueFormatterType, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, YearViewAgenda, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, formatDurationAgenda, formatDurationAgendaDays, formatFieldName, formatLinePercentage, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getAutoColorAgenda, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getItems, getMaxDataValue, getMinDataValue, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normalizeAttendDate, processIntegrationData, processNeo4jData, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, toast, useBiaxial, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartLayout, useChartMinMax, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useOpenTooltipForPeriod, useProcessedData, useSeriesOpacity, useTheme, useTimeSeriesRange, type valueFormatter, visualForItem };
|