@mlw-packages/react-components 1.7.13 → 1.7.14
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 +56 -0
- package/dist/index.d.mts +30 -9
- package/dist/index.d.ts +30 -9
- package/dist/index.js +382 -147
- package/dist/index.mjs +391 -156
- package/package.json +2 -2
package/dist/index.css
CHANGED
|
@@ -2073,6 +2073,10 @@ body {
|
|
|
2073
2073
|
.bg-accent\/5 {
|
|
2074
2074
|
background-color: hsl(var(--accent) / 0.05);
|
|
2075
2075
|
}
|
|
2076
|
+
.bg-amber-100 {
|
|
2077
|
+
--tw-bg-opacity: 1;
|
|
2078
|
+
background-color: rgb(254 243 199 / var(--tw-bg-opacity, 1));
|
|
2079
|
+
}
|
|
2076
2080
|
.bg-amber-200\/50 {
|
|
2077
2081
|
background-color: rgb(253 230 138 / 0.5);
|
|
2078
2082
|
}
|
|
@@ -2178,6 +2182,10 @@ body {
|
|
|
2178
2182
|
.bg-foreground {
|
|
2179
2183
|
background-color: hsl(var(--foreground));
|
|
2180
2184
|
}
|
|
2185
|
+
.bg-gray-100 {
|
|
2186
|
+
--tw-bg-opacity: 1;
|
|
2187
|
+
background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
|
|
2188
|
+
}
|
|
2181
2189
|
.bg-gray-200 {
|
|
2182
2190
|
--tw-bg-opacity: 1;
|
|
2183
2191
|
background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
|
|
@@ -2214,6 +2222,10 @@ body {
|
|
|
2214
2222
|
--tw-bg-opacity: 1;
|
|
2215
2223
|
background-color: rgb(34 197 94 / var(--tw-bg-opacity, 1));
|
|
2216
2224
|
}
|
|
2225
|
+
.bg-indigo-100 {
|
|
2226
|
+
--tw-bg-opacity: 1;
|
|
2227
|
+
background-color: rgb(224 231 255 / var(--tw-bg-opacity, 1));
|
|
2228
|
+
}
|
|
2217
2229
|
.bg-indigo-400\/20 {
|
|
2218
2230
|
background-color: rgb(129 140 248 / 0.2);
|
|
2219
2231
|
}
|
|
@@ -2276,6 +2288,10 @@ body {
|
|
|
2276
2288
|
--tw-bg-opacity: 1;
|
|
2277
2289
|
background-color: rgb(249 115 22 / var(--tw-bg-opacity, 1));
|
|
2278
2290
|
}
|
|
2291
|
+
.bg-pink-100 {
|
|
2292
|
+
--tw-bg-opacity: 1;
|
|
2293
|
+
background-color: rgb(252 231 243 / var(--tw-bg-opacity, 1));
|
|
2294
|
+
}
|
|
2279
2295
|
.bg-pink-500 {
|
|
2280
2296
|
--tw-bg-opacity: 1;
|
|
2281
2297
|
background-color: rgb(236 72 153 / var(--tw-bg-opacity, 1));
|
|
@@ -2366,9 +2382,17 @@ body {
|
|
|
2366
2382
|
--tw-bg-opacity: 1;
|
|
2367
2383
|
background-color: rgb(15 23 42 / var(--tw-bg-opacity, 1));
|
|
2368
2384
|
}
|
|
2385
|
+
.bg-teal-100 {
|
|
2386
|
+
--tw-bg-opacity: 1;
|
|
2387
|
+
background-color: rgb(204 251 241 / var(--tw-bg-opacity, 1));
|
|
2388
|
+
}
|
|
2369
2389
|
.bg-transparent {
|
|
2370
2390
|
background-color: transparent;
|
|
2371
2391
|
}
|
|
2392
|
+
.bg-violet-100 {
|
|
2393
|
+
--tw-bg-opacity: 1;
|
|
2394
|
+
background-color: rgb(237 233 254 / var(--tw-bg-opacity, 1));
|
|
2395
|
+
}
|
|
2372
2396
|
.bg-violet-200\/50 {
|
|
2373
2397
|
background-color: rgb(221 214 254 / 0.5);
|
|
2374
2398
|
}
|
|
@@ -2856,6 +2880,10 @@ body {
|
|
|
2856
2880
|
--tw-text-opacity: 1;
|
|
2857
2881
|
color: rgb(217 119 6 / var(--tw-text-opacity, 1));
|
|
2858
2882
|
}
|
|
2883
|
+
.text-amber-700 {
|
|
2884
|
+
--tw-text-opacity: 1;
|
|
2885
|
+
color: rgb(180 83 9 / var(--tw-text-opacity, 1));
|
|
2886
|
+
}
|
|
2859
2887
|
.text-amber-950\/80 {
|
|
2860
2888
|
color: rgb(69 26 3 / 0.8);
|
|
2861
2889
|
}
|
|
@@ -2917,6 +2945,10 @@ body {
|
|
|
2917
2945
|
--tw-text-opacity: 1;
|
|
2918
2946
|
color: rgb(55 65 81 / var(--tw-text-opacity, 1));
|
|
2919
2947
|
}
|
|
2948
|
+
.text-gray-800 {
|
|
2949
|
+
--tw-text-opacity: 1;
|
|
2950
|
+
color: rgb(31 41 55 / var(--tw-text-opacity, 1));
|
|
2951
|
+
}
|
|
2920
2952
|
.text-green-400 {
|
|
2921
2953
|
--tw-text-opacity: 1;
|
|
2922
2954
|
color: rgb(74 222 128 / var(--tw-text-opacity, 1));
|
|
@@ -2933,6 +2965,10 @@ body {
|
|
|
2933
2965
|
--tw-text-opacity: 1;
|
|
2934
2966
|
color: rgb(21 128 61 / var(--tw-text-opacity, 1));
|
|
2935
2967
|
}
|
|
2968
|
+
.text-green-800 {
|
|
2969
|
+
--tw-text-opacity: 1;
|
|
2970
|
+
color: rgb(22 101 52 / var(--tw-text-opacity, 1));
|
|
2971
|
+
}
|
|
2936
2972
|
.text-indigo-500 {
|
|
2937
2973
|
--tw-text-opacity: 1;
|
|
2938
2974
|
color: rgb(99 102 241 / var(--tw-text-opacity, 1));
|
|
@@ -2941,6 +2977,10 @@ body {
|
|
|
2941
2977
|
--tw-text-opacity: 1;
|
|
2942
2978
|
color: rgb(79 70 229 / var(--tw-text-opacity, 1));
|
|
2943
2979
|
}
|
|
2980
|
+
.text-indigo-700 {
|
|
2981
|
+
--tw-text-opacity: 1;
|
|
2982
|
+
color: rgb(67 56 202 / var(--tw-text-opacity, 1));
|
|
2983
|
+
}
|
|
2944
2984
|
.text-muted-foreground {
|
|
2945
2985
|
color: hsl(var(--muted-foreground));
|
|
2946
2986
|
}
|
|
@@ -2990,6 +3030,10 @@ body {
|
|
|
2990
3030
|
--tw-text-opacity: 1;
|
|
2991
3031
|
color: rgb(236 72 153 / var(--tw-text-opacity, 1));
|
|
2992
3032
|
}
|
|
3033
|
+
.text-pink-700 {
|
|
3034
|
+
--tw-text-opacity: 1;
|
|
3035
|
+
color: rgb(190 24 93 / var(--tw-text-opacity, 1));
|
|
3036
|
+
}
|
|
2993
3037
|
.text-popover-foreground {
|
|
2994
3038
|
color: hsl(var(--popover-foreground));
|
|
2995
3039
|
}
|
|
@@ -3067,6 +3111,14 @@ body {
|
|
|
3067
3111
|
--tw-text-opacity: 1;
|
|
3068
3112
|
color: rgb(15 23 42 / var(--tw-text-opacity, 1));
|
|
3069
3113
|
}
|
|
3114
|
+
.text-teal-700 {
|
|
3115
|
+
--tw-text-opacity: 1;
|
|
3116
|
+
color: rgb(15 118 110 / var(--tw-text-opacity, 1));
|
|
3117
|
+
}
|
|
3118
|
+
.text-violet-700 {
|
|
3119
|
+
--tw-text-opacity: 1;
|
|
3120
|
+
color: rgb(109 40 217 / var(--tw-text-opacity, 1));
|
|
3121
|
+
}
|
|
3070
3122
|
.text-violet-950\/80 {
|
|
3071
3123
|
color: rgb(46 16 101 / 0.8);
|
|
3072
3124
|
}
|
|
@@ -3090,6 +3142,10 @@ body {
|
|
|
3090
3142
|
--tw-text-opacity: 1;
|
|
3091
3143
|
color: rgb(161 98 7 / var(--tw-text-opacity, 1));
|
|
3092
3144
|
}
|
|
3145
|
+
.text-yellow-800 {
|
|
3146
|
+
--tw-text-opacity: 1;
|
|
3147
|
+
color: rgb(133 77 14 / var(--tw-text-opacity, 1));
|
|
3148
|
+
}
|
|
3093
3149
|
.text-zinc-100 {
|
|
3094
3150
|
--tw-text-opacity: 1;
|
|
3095
3151
|
color: rgb(244 244 245 / var(--tw-text-opacity, 1));
|
package/dist/index.d.mts
CHANGED
|
@@ -97,8 +97,9 @@ interface ComboboxProps<T extends string> extends ErrorMessageProps {
|
|
|
97
97
|
label?: string;
|
|
98
98
|
labelClassname?: string;
|
|
99
99
|
testIds?: ComboboxTestIds;
|
|
100
|
+
disabled?: boolean;
|
|
100
101
|
}
|
|
101
|
-
declare function Combobox<T extends string>({ items, selected, onChange, className, placeholder, searchPlaceholder, empty, label, labelClassname, testIds, error, }: ComboboxProps<T>): react_jsx_runtime.JSX.Element;
|
|
102
|
+
declare function Combobox<T extends string>({ items, selected, onChange, className, placeholder, searchPlaceholder, empty, disabled, label, labelClassname, testIds, error, }: ComboboxProps<T>): react_jsx_runtime.JSX.Element;
|
|
102
103
|
|
|
103
104
|
interface MultiComboboxTestIds {
|
|
104
105
|
root?: string;
|
|
@@ -116,8 +117,9 @@ interface MultiComboboxProps<T extends string> extends Omit<ComboboxProps<T>, "s
|
|
|
116
117
|
testIds?: MultiComboboxTestIds;
|
|
117
118
|
keepOpen?: boolean;
|
|
118
119
|
showClearAll?: boolean;
|
|
120
|
+
disabled?: boolean;
|
|
119
121
|
}
|
|
120
|
-
declare function MultiCombobox<T extends string>({ items, selected, onChange, className, placeholder, searchPlaceholder, label, labelClassname, testIds, error, keepOpen, showClearAll, }: MultiComboboxProps<T>): react_jsx_runtime.JSX.Element;
|
|
122
|
+
declare function MultiCombobox<T extends string>({ items, selected, onChange, className, placeholder, searchPlaceholder, label, labelClassname, testIds, error, disabled, keepOpen, showClearAll, empty, }: MultiComboboxProps<T>): react_jsx_runtime.JSX.Element;
|
|
121
123
|
|
|
122
124
|
interface SelectItem<T extends string> {
|
|
123
125
|
label: string;
|
|
@@ -158,10 +160,10 @@ interface SelectPropsWithGroupItems$1<T extends string> extends DefaultSelectPro
|
|
|
158
160
|
type NewSelectProps<T extends string> = SelectPropsWithItems$1<T> | SelectPropsWithGroupItems$1<T>;
|
|
159
161
|
declare function Select<T extends string>({ items, groupItems, placeholder, onChange, error, testIds, disabled, selected, label, labelClassname, className, }: NewSelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
160
162
|
|
|
161
|
-
interface
|
|
163
|
+
interface AvatarComboboxItem<T extends string> {
|
|
162
164
|
label: string;
|
|
163
165
|
value: T;
|
|
164
|
-
avatar?:
|
|
166
|
+
avatar?: ReactNode;
|
|
165
167
|
avatarClassName?: string;
|
|
166
168
|
}
|
|
167
169
|
interface SelectTestIds {
|
|
@@ -183,19 +185,19 @@ interface DefaultSelectProps extends ErrorMessageProps {
|
|
|
183
185
|
colors?: string[];
|
|
184
186
|
}
|
|
185
187
|
interface SelectPropsWithItems<T extends string> extends DefaultSelectProps {
|
|
186
|
-
items:
|
|
188
|
+
items: AvatarComboboxItem<T>[];
|
|
187
189
|
groupItems?: never;
|
|
188
190
|
testIds?: SelectTestIds;
|
|
189
191
|
}
|
|
190
192
|
interface SelectPropsWithGroupItems<T extends string> extends DefaultSelectProps {
|
|
191
193
|
items?: never;
|
|
192
194
|
groupItems: {
|
|
193
|
-
[key: string]:
|
|
195
|
+
[key: string]: AvatarComboboxItem<T>[];
|
|
194
196
|
};
|
|
195
197
|
testIds?: SelectTestIds;
|
|
196
198
|
}
|
|
197
|
-
type
|
|
198
|
-
declare function
|
|
199
|
+
type AvatarComboboxProps<T extends string> = SelectPropsWithItems<T> | SelectPropsWithGroupItems<T>;
|
|
200
|
+
declare function AvatarCombobox<T extends string>({ items, groupItems, placeholder, onChange, error, testIds, disabled, selected, label, labelClassname, className, colors, }: AvatarComboboxProps<T> & {
|
|
199
201
|
selected?: T | null;
|
|
200
202
|
label?: string;
|
|
201
203
|
labelClassname?: string;
|
|
@@ -269,6 +271,19 @@ type SeriesProp = {
|
|
|
269
271
|
interface ChartProps {
|
|
270
272
|
data: ChartData[];
|
|
271
273
|
series?: SeriesProp;
|
|
274
|
+
yAxisMap?: Record<string, "left" | "right">;
|
|
275
|
+
yAxes?: Partial<{
|
|
276
|
+
left: {
|
|
277
|
+
label?: string;
|
|
278
|
+
stroke?: string;
|
|
279
|
+
width?: number;
|
|
280
|
+
};
|
|
281
|
+
right: {
|
|
282
|
+
label?: string;
|
|
283
|
+
stroke?: string;
|
|
284
|
+
width?: number;
|
|
285
|
+
};
|
|
286
|
+
}>;
|
|
272
287
|
className?: string;
|
|
273
288
|
chartMargin?: Partial<{
|
|
274
289
|
top: number;
|
|
@@ -299,6 +314,8 @@ interface ChartProps {
|
|
|
299
314
|
showTooltipTotal?: boolean;
|
|
300
315
|
maxTooltips?: number;
|
|
301
316
|
formatBR?: boolean;
|
|
317
|
+
/** Texto exibido no cabeçalho dos tooltips (ex.: "Período") */
|
|
318
|
+
periodLabel?: string;
|
|
302
319
|
}
|
|
303
320
|
declare const Chart: React__default.FC<ChartProps>;
|
|
304
321
|
|
|
@@ -492,6 +509,8 @@ interface Props$1 {
|
|
|
492
509
|
totalLabel?: string;
|
|
493
510
|
valueFormatter?: valueFormatter;
|
|
494
511
|
categoryFormatter?: (value: string | number) => string;
|
|
512
|
+
yAxisMap?: Record<string, "left" | "right">;
|
|
513
|
+
isBiaxial?: boolean;
|
|
495
514
|
}
|
|
496
515
|
declare const RechartTooltipWithTotal: React__default.FC<Props$1>;
|
|
497
516
|
|
|
@@ -509,6 +528,8 @@ interface Props {
|
|
|
509
528
|
periodLabel?: string;
|
|
510
529
|
valueFormatter?: valueFormatter;
|
|
511
530
|
categoryFormatter?: (value: string | number) => string;
|
|
531
|
+
yAxisMap?: Record<string, "left" | "right">;
|
|
532
|
+
isBiaxial?: boolean;
|
|
512
533
|
}
|
|
513
534
|
declare const TooltipSimple: React__default.FC<Props>;
|
|
514
535
|
|
|
@@ -1564,4 +1585,4 @@ declare const useDrag: (options?: UseDragOptions) => {
|
|
|
1564
1585
|
isDragging: boolean;
|
|
1565
1586
|
};
|
|
1566
1587
|
|
|
1567
|
-
export { AddButton, AgendaDaysToShow, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase,
|
|
1588
|
+
export { AddButton, AgendaDaysToShow, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, BarChart, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, ButtonBase, ButtonGroupBase, type ButtonProps, CalendarBase, CalendarDndProvider, type CalendarEvent, type CalendarProps, type CalendarView, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPreviousBase, ChangeButton, Chart, CheckButton, CheckboxBase, CheckboxTree, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, CopyButton, DateTimePicker, DayView, DebouncedInput, type DebouncedInputProps, DefaultEndHour, DefaultStartHour, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, DraggableEvent, DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, EditButton, EndHour, ErrorMessage, EventCalendar, type EventColor, EventDialog, EventGap, EventHeight, EventItem, EventsPopup, FavoriteButton, FileUploader, type FileUploaderProps, type FileWithPreview, FilterButton, HideButton, Highlights, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, LabelBase, LikeButton, CustomLineChart as LineChart, LoadingBase, LockButton, type Margins, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MoreButton, MultiCombobox, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, NotificationButton, type Padding, type Period, PeriodsDropdown, CustomPieChart as PieChart, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, RangePicker, type RangePickerProps, RefreshButton, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectGroupBase, type SelectItem, SelectItemBase, SelectLabelBase, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, SelectTriggerBase, SelectValueBase, SeparatorBase, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, type SliderBaseProps, StartHour, StatusIndicator, type StatusProps, SwitchBase, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, type TextAreaBaseProps, type Theme, ThemeProviderBase, TimePicker, TimePickerInput, type TimePickerInputProps, type TimePickerType, Toaster, TooltipBase, TooltipContentBase, TooltipProviderBase, TooltipSimple, TooltipTriggerBase, RechartTooltipWithTotal as TooltipWithTotal, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, ViewButton, VisibilityButton, WeekCellsHeight, WeekView, addHoursToDate, badgeVariants, buttonVariantsBase, compactTick, convert12HourTo24Hour, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, getAgendaEventsForDay, getAllEventsForDay, getArrowByType, getBorderRadiusClasses, getDateByType, getEventColorClasses, getEventsForDay, getSpanningEventsForDay, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, toast, useCalendarDnd, useChartHighlights, useCurrentTimeIndicator, useDrag, useEventVisibility, useIsMobile, useTheme, type valueFormatter };
|
package/dist/index.d.ts
CHANGED
|
@@ -97,8 +97,9 @@ interface ComboboxProps<T extends string> extends ErrorMessageProps {
|
|
|
97
97
|
label?: string;
|
|
98
98
|
labelClassname?: string;
|
|
99
99
|
testIds?: ComboboxTestIds;
|
|
100
|
+
disabled?: boolean;
|
|
100
101
|
}
|
|
101
|
-
declare function Combobox<T extends string>({ items, selected, onChange, className, placeholder, searchPlaceholder, empty, label, labelClassname, testIds, error, }: ComboboxProps<T>): react_jsx_runtime.JSX.Element;
|
|
102
|
+
declare function Combobox<T extends string>({ items, selected, onChange, className, placeholder, searchPlaceholder, empty, disabled, label, labelClassname, testIds, error, }: ComboboxProps<T>): react_jsx_runtime.JSX.Element;
|
|
102
103
|
|
|
103
104
|
interface MultiComboboxTestIds {
|
|
104
105
|
root?: string;
|
|
@@ -116,8 +117,9 @@ interface MultiComboboxProps<T extends string> extends Omit<ComboboxProps<T>, "s
|
|
|
116
117
|
testIds?: MultiComboboxTestIds;
|
|
117
118
|
keepOpen?: boolean;
|
|
118
119
|
showClearAll?: boolean;
|
|
120
|
+
disabled?: boolean;
|
|
119
121
|
}
|
|
120
|
-
declare function MultiCombobox<T extends string>({ items, selected, onChange, className, placeholder, searchPlaceholder, label, labelClassname, testIds, error, keepOpen, showClearAll, }: MultiComboboxProps<T>): react_jsx_runtime.JSX.Element;
|
|
122
|
+
declare function MultiCombobox<T extends string>({ items, selected, onChange, className, placeholder, searchPlaceholder, label, labelClassname, testIds, error, disabled, keepOpen, showClearAll, empty, }: MultiComboboxProps<T>): react_jsx_runtime.JSX.Element;
|
|
121
123
|
|
|
122
124
|
interface SelectItem<T extends string> {
|
|
123
125
|
label: string;
|
|
@@ -158,10 +160,10 @@ interface SelectPropsWithGroupItems$1<T extends string> extends DefaultSelectPro
|
|
|
158
160
|
type NewSelectProps<T extends string> = SelectPropsWithItems$1<T> | SelectPropsWithGroupItems$1<T>;
|
|
159
161
|
declare function Select<T extends string>({ items, groupItems, placeholder, onChange, error, testIds, disabled, selected, label, labelClassname, className, }: NewSelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
160
162
|
|
|
161
|
-
interface
|
|
163
|
+
interface AvatarComboboxItem<T extends string> {
|
|
162
164
|
label: string;
|
|
163
165
|
value: T;
|
|
164
|
-
avatar?:
|
|
166
|
+
avatar?: ReactNode;
|
|
165
167
|
avatarClassName?: string;
|
|
166
168
|
}
|
|
167
169
|
interface SelectTestIds {
|
|
@@ -183,19 +185,19 @@ interface DefaultSelectProps extends ErrorMessageProps {
|
|
|
183
185
|
colors?: string[];
|
|
184
186
|
}
|
|
185
187
|
interface SelectPropsWithItems<T extends string> extends DefaultSelectProps {
|
|
186
|
-
items:
|
|
188
|
+
items: AvatarComboboxItem<T>[];
|
|
187
189
|
groupItems?: never;
|
|
188
190
|
testIds?: SelectTestIds;
|
|
189
191
|
}
|
|
190
192
|
interface SelectPropsWithGroupItems<T extends string> extends DefaultSelectProps {
|
|
191
193
|
items?: never;
|
|
192
194
|
groupItems: {
|
|
193
|
-
[key: string]:
|
|
195
|
+
[key: string]: AvatarComboboxItem<T>[];
|
|
194
196
|
};
|
|
195
197
|
testIds?: SelectTestIds;
|
|
196
198
|
}
|
|
197
|
-
type
|
|
198
|
-
declare function
|
|
199
|
+
type AvatarComboboxProps<T extends string> = SelectPropsWithItems<T> | SelectPropsWithGroupItems<T>;
|
|
200
|
+
declare function AvatarCombobox<T extends string>({ items, groupItems, placeholder, onChange, error, testIds, disabled, selected, label, labelClassname, className, colors, }: AvatarComboboxProps<T> & {
|
|
199
201
|
selected?: T | null;
|
|
200
202
|
label?: string;
|
|
201
203
|
labelClassname?: string;
|
|
@@ -269,6 +271,19 @@ type SeriesProp = {
|
|
|
269
271
|
interface ChartProps {
|
|
270
272
|
data: ChartData[];
|
|
271
273
|
series?: SeriesProp;
|
|
274
|
+
yAxisMap?: Record<string, "left" | "right">;
|
|
275
|
+
yAxes?: Partial<{
|
|
276
|
+
left: {
|
|
277
|
+
label?: string;
|
|
278
|
+
stroke?: string;
|
|
279
|
+
width?: number;
|
|
280
|
+
};
|
|
281
|
+
right: {
|
|
282
|
+
label?: string;
|
|
283
|
+
stroke?: string;
|
|
284
|
+
width?: number;
|
|
285
|
+
};
|
|
286
|
+
}>;
|
|
272
287
|
className?: string;
|
|
273
288
|
chartMargin?: Partial<{
|
|
274
289
|
top: number;
|
|
@@ -299,6 +314,8 @@ interface ChartProps {
|
|
|
299
314
|
showTooltipTotal?: boolean;
|
|
300
315
|
maxTooltips?: number;
|
|
301
316
|
formatBR?: boolean;
|
|
317
|
+
/** Texto exibido no cabeçalho dos tooltips (ex.: "Período") */
|
|
318
|
+
periodLabel?: string;
|
|
302
319
|
}
|
|
303
320
|
declare const Chart: React__default.FC<ChartProps>;
|
|
304
321
|
|
|
@@ -492,6 +509,8 @@ interface Props$1 {
|
|
|
492
509
|
totalLabel?: string;
|
|
493
510
|
valueFormatter?: valueFormatter;
|
|
494
511
|
categoryFormatter?: (value: string | number) => string;
|
|
512
|
+
yAxisMap?: Record<string, "left" | "right">;
|
|
513
|
+
isBiaxial?: boolean;
|
|
495
514
|
}
|
|
496
515
|
declare const RechartTooltipWithTotal: React__default.FC<Props$1>;
|
|
497
516
|
|
|
@@ -509,6 +528,8 @@ interface Props {
|
|
|
509
528
|
periodLabel?: string;
|
|
510
529
|
valueFormatter?: valueFormatter;
|
|
511
530
|
categoryFormatter?: (value: string | number) => string;
|
|
531
|
+
yAxisMap?: Record<string, "left" | "right">;
|
|
532
|
+
isBiaxial?: boolean;
|
|
512
533
|
}
|
|
513
534
|
declare const TooltipSimple: React__default.FC<Props>;
|
|
514
535
|
|
|
@@ -1564,4 +1585,4 @@ declare const useDrag: (options?: UseDragOptions) => {
|
|
|
1564
1585
|
isDragging: boolean;
|
|
1565
1586
|
};
|
|
1566
1587
|
|
|
1567
|
-
export { AddButton, AgendaDaysToShow, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase,
|
|
1588
|
+
export { AddButton, AgendaDaysToShow, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, type AvatarComboboxItem, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, type BadgeColorType, BarChart, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, ButtonBase, ButtonGroupBase, type ButtonProps, CalendarBase, CalendarDndProvider, type CalendarEvent, type CalendarProps, type CalendarView, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPreviousBase, ChangeButton, Chart, CheckButton, CheckboxBase, CheckboxTree, CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, type ComboboxProps, type ComboboxTestIds, CommandBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, CopyButton, DateTimePicker, DayView, DebouncedInput, type DebouncedInputProps, DefaultEndHour, DefaultStartHour, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, DraggableEvent, DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, EditButton, EndHour, ErrorMessage, EventCalendar, type EventColor, EventDialog, EventGap, EventHeight, EventItem, EventsPopup, FavoriteButton, FileUploader, type FileUploaderProps, type FileWithPreview, FilterButton, HideButton, Highlights, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, LabelBase, LikeButton, CustomLineChart as LineChart, LoadingBase, LockButton, type Margins, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MoreButton, MultiCombobox, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, NotificationButton, type Padding, type Period, PeriodsDropdown, CustomPieChart as PieChart, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, ProgressBase, type ProgressBaseProps, ProgressCirclesBase, type ProgressCirclesBaseProps, ProgressPanelsBase, type ProgressPanelsBaseProps, ProgressSegmentsBase, type ProgressSegmentsBaseProps, type ProgressType, RangePicker, type RangePickerProps, RefreshButton, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectGroupBase, type SelectItem, SelectItemBase, SelectLabelBase, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, SelectTriggerBase, SelectValueBase, SeparatorBase, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, type SliderBaseProps, StartHour, StatusIndicator, type StatusProps, SwitchBase, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, type TextAreaBaseProps, type Theme, ThemeProviderBase, TimePicker, TimePickerInput, type TimePickerInputProps, type TimePickerType, Toaster, TooltipBase, TooltipContentBase, TooltipProviderBase, TooltipSimple, TooltipTriggerBase, RechartTooltipWithTotal as TooltipWithTotal, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, ViewButton, VisibilityButton, WeekCellsHeight, WeekView, addHoursToDate, badgeVariants, buttonVariantsBase, compactTick, convert12HourTo24Hour, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, getAgendaEventsForDay, getAllEventsForDay, getArrowByType, getBorderRadiusClasses, getDateByType, getEventColorClasses, getEventsForDay, getSpanningEventsForDay, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, toast, useCalendarDnd, useChartHighlights, useCurrentTimeIndicator, useDrag, useEventVisibility, useIsMobile, useTheme, type valueFormatter };
|