@mlw-packages/react-components 1.8.14 → 1.9.0
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 +36 -5
- package/dist/index.d.mts +7 -75
- package/dist/index.d.ts +7 -75
- package/dist/index.js +250 -1352
- package/dist/index.mjs +251 -1352
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1043,17 +1043,14 @@ body {
|
|
|
1043
1043
|
.max-h-\[--radix-popover-content-available-height\] {
|
|
1044
1044
|
max-height: var(--radix-popover-content-available-height);
|
|
1045
1045
|
}
|
|
1046
|
-
.max-h-\[100dvh\] {
|
|
1047
|
-
max-height: 100dvh;
|
|
1048
|
-
}
|
|
1049
1046
|
.max-h-\[300px\] {
|
|
1050
1047
|
max-height: 300px;
|
|
1051
1048
|
}
|
|
1052
1049
|
.max-h-\[65vh\] {
|
|
1053
1050
|
max-height: 65vh;
|
|
1054
1051
|
}
|
|
1055
|
-
.max-h-\[
|
|
1056
|
-
max-height:
|
|
1052
|
+
.max-h-\[calc\(100dvh-2rem\)\] {
|
|
1053
|
+
max-height: calc(100dvh - 2rem);
|
|
1057
1054
|
}
|
|
1058
1055
|
.max-h-\[var\(--radix-context-menu-content-available-height\)\] {
|
|
1059
1056
|
max-height: var(--radix-context-menu-content-available-height);
|
|
@@ -1265,6 +1262,9 @@ body {
|
|
|
1265
1262
|
.w-\[95vw\] {
|
|
1266
1263
|
width: 95vw;
|
|
1267
1264
|
}
|
|
1265
|
+
.w-\[calc\(100\%-2rem\)\] {
|
|
1266
|
+
width: calc(100% - 2rem);
|
|
1267
|
+
}
|
|
1268
1268
|
.w-\[calc\(100vw-24px\)\] {
|
|
1269
1269
|
width: calc(100vw - 24px);
|
|
1270
1270
|
}
|
|
@@ -1400,6 +1400,9 @@ body {
|
|
|
1400
1400
|
.max-w-\[calc\(100vw-16px\)\] {
|
|
1401
1401
|
max-width: calc(100vw - 16px);
|
|
1402
1402
|
}
|
|
1403
|
+
.max-w-\[var\(--radix-select-trigger-width\)\] {
|
|
1404
|
+
max-width: var(--radix-select-trigger-width);
|
|
1405
|
+
}
|
|
1403
1406
|
.max-w-full {
|
|
1404
1407
|
max-width: 100%;
|
|
1405
1408
|
}
|
|
@@ -1848,6 +1851,9 @@ body {
|
|
|
1848
1851
|
text-overflow: ellipsis;
|
|
1849
1852
|
white-space: nowrap;
|
|
1850
1853
|
}
|
|
1854
|
+
.hyphens-auto {
|
|
1855
|
+
hyphens: auto;
|
|
1856
|
+
}
|
|
1851
1857
|
.whitespace-nowrap {
|
|
1852
1858
|
white-space: nowrap;
|
|
1853
1859
|
}
|
|
@@ -6178,6 +6184,9 @@ body {
|
|
|
6178
6184
|
.sm\:h-7 {
|
|
6179
6185
|
height: 1.75rem;
|
|
6180
6186
|
}
|
|
6187
|
+
.sm\:max-h-\[90dvh\] {
|
|
6188
|
+
max-height: 90dvh;
|
|
6189
|
+
}
|
|
6181
6190
|
.sm\:min-h-\[calc\(\(var\(--event-height\)\+var\(--event-gap\)\)\*3\)\] {
|
|
6182
6191
|
min-height: calc((var(--event-height) + var(--event-gap)) * 3);
|
|
6183
6192
|
}
|
|
@@ -6242,6 +6251,9 @@ body {
|
|
|
6242
6251
|
.sm\:justify-between {
|
|
6243
6252
|
justify-content: space-between;
|
|
6244
6253
|
}
|
|
6254
|
+
.sm\:gap-0 {
|
|
6255
|
+
gap: 0px;
|
|
6256
|
+
}
|
|
6245
6257
|
.sm\:gap-2 {
|
|
6246
6258
|
gap: 0.5rem;
|
|
6247
6259
|
}
|
|
@@ -6269,6 +6281,16 @@ body {
|
|
|
6269
6281
|
margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
|
|
6270
6282
|
margin-bottom: calc(0px * var(--tw-space-y-reverse));
|
|
6271
6283
|
}
|
|
6284
|
+
.sm\:space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
|
|
6285
|
+
--tw-space-y-reverse: 0;
|
|
6286
|
+
margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
|
|
6287
|
+
margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));
|
|
6288
|
+
}
|
|
6289
|
+
.sm\:space-y-2 > :not([hidden]) ~ :not([hidden]) {
|
|
6290
|
+
--tw-space-y-reverse: 0;
|
|
6291
|
+
margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
|
|
6292
|
+
margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
|
|
6293
|
+
}
|
|
6272
6294
|
.sm\:whitespace-normal {
|
|
6273
6295
|
white-space: normal;
|
|
6274
6296
|
}
|
|
@@ -6279,6 +6301,9 @@ body {
|
|
|
6279
6301
|
border-top-right-radius: 0px;
|
|
6280
6302
|
border-bottom-right-radius: 0px;
|
|
6281
6303
|
}
|
|
6304
|
+
.sm\:p-1\.5 {
|
|
6305
|
+
padding: 0.375rem;
|
|
6306
|
+
}
|
|
6282
6307
|
.sm\:p-2 {
|
|
6283
6308
|
padding: 0.5rem;
|
|
6284
6309
|
}
|
|
@@ -6288,6 +6313,9 @@ body {
|
|
|
6288
6313
|
.sm\:p-4 {
|
|
6289
6314
|
padding: 1rem;
|
|
6290
6315
|
}
|
|
6316
|
+
.sm\:p-6 {
|
|
6317
|
+
padding: 1.5rem;
|
|
6318
|
+
}
|
|
6291
6319
|
.sm\:px-1 {
|
|
6292
6320
|
padding-left: 0.25rem;
|
|
6293
6321
|
padding-right: 0.25rem;
|
|
@@ -6307,6 +6335,9 @@ body {
|
|
|
6307
6335
|
.sm\:pe-4 {
|
|
6308
6336
|
padding-inline-end: 1rem;
|
|
6309
6337
|
}
|
|
6338
|
+
.sm\:pr-0 {
|
|
6339
|
+
padding-right: 0px;
|
|
6340
|
+
}
|
|
6310
6341
|
.sm\:text-left {
|
|
6311
6342
|
text-align: left;
|
|
6312
6343
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -47,6 +47,7 @@ declare const SelectContentBase: React$1.ForwardRefExoticComponent<Omit<SelectPr
|
|
|
47
47
|
declare const SelectLabelBase: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
48
48
|
declare const SelectItemBase: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
49
49
|
declare const SelectSeparatorBase: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
50
|
+
declare const SelectEmpty: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
50
51
|
|
|
51
52
|
type Theme = "light" | "light-purple" | "light-green" | "light-blue" | "dark" | "dark-purple" | "dark-green" | "dark-blue" | "system";
|
|
52
53
|
type ThemeProviderProps = {
|
|
@@ -1571,14 +1572,14 @@ interface SelectPropsWithGroupItems<T extends string> extends DefaultSelectProps
|
|
|
1571
1572
|
empty?: React__default.ReactNode;
|
|
1572
1573
|
}
|
|
1573
1574
|
type NewSelectProps<T extends string> = SelectPropsWithItems<T> | SelectPropsWithGroupItems<T>;
|
|
1574
|
-
declare function Select<T extends string>({ items, groupItems, placeholder, onChange, error, testIds, disabled, selected, label, labelClassname, className, pagination, hideClear, empty }: NewSelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
1575
|
+
declare function Select<T extends string>({ items, groupItems, placeholder, onChange, error, testIds, disabled, selected, label, labelClassname, className, pagination, hideClear, empty, }: NewSelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
1575
1576
|
|
|
1576
1577
|
type Primitive = string | number | boolean | null | undefined;
|
|
1577
1578
|
interface ChartData$4 {
|
|
1578
1579
|
[key: string]: Primitive;
|
|
1579
1580
|
name?: string;
|
|
1580
1581
|
}
|
|
1581
|
-
interface XAxisConfig$
|
|
1582
|
+
interface XAxisConfig$1 {
|
|
1582
1583
|
dataKey: string;
|
|
1583
1584
|
label?: string;
|
|
1584
1585
|
valueFormatter?: (value: string | number) => string;
|
|
@@ -1731,7 +1732,7 @@ declare const renderInsideBarLabel: (color: string, valueFormatter?: valueFormat
|
|
|
1731
1732
|
interface ChartData$3 {
|
|
1732
1733
|
[key: string]: string | number | boolean | null | undefined;
|
|
1733
1734
|
}
|
|
1734
|
-
interface XAxisConfig
|
|
1735
|
+
interface XAxisConfig {
|
|
1735
1736
|
dataKey: string;
|
|
1736
1737
|
label?: string;
|
|
1737
1738
|
valueFormatter?: (value: string | number) => string;
|
|
@@ -1775,7 +1776,7 @@ interface ChartProps {
|
|
|
1775
1776
|
periodLabel?: string;
|
|
1776
1777
|
xAxisLabel?: string;
|
|
1777
1778
|
yAxisLabel?: string;
|
|
1778
|
-
xAxis?: XAxisConfig
|
|
1779
|
+
xAxis?: XAxisConfig | string;
|
|
1779
1780
|
biaxial?: BiaxialConfig | string | string[];
|
|
1780
1781
|
enableHighlights?: boolean;
|
|
1781
1782
|
enableShowOnly?: boolean;
|
|
@@ -1820,75 +1821,6 @@ type Margins = Partial<{
|
|
|
1820
1821
|
|
|
1821
1822
|
declare const Chart: React__default.FC<ChartProps>;
|
|
1822
1823
|
|
|
1823
|
-
interface BarChartData {
|
|
1824
|
-
[key: string]: string | number | boolean | null | undefined;
|
|
1825
|
-
}
|
|
1826
|
-
interface XAxisConfig {
|
|
1827
|
-
dataKey: string;
|
|
1828
|
-
label?: string;
|
|
1829
|
-
valueFormatter?: (value: string | number) => string;
|
|
1830
|
-
autoLabel?: boolean;
|
|
1831
|
-
}
|
|
1832
|
-
interface DataMapper {
|
|
1833
|
-
[dataKey: string]: {
|
|
1834
|
-
label?: string;
|
|
1835
|
-
valueFormatter?: (value: string | number) => string | number;
|
|
1836
|
-
color?: string;
|
|
1837
|
-
type?: "number" | "string" | "auto";
|
|
1838
|
-
visible?: boolean;
|
|
1839
|
-
};
|
|
1840
|
-
}
|
|
1841
|
-
interface BarChartProps {
|
|
1842
|
-
data: BarChartData[];
|
|
1843
|
-
className?: string;
|
|
1844
|
-
padding?: Padding;
|
|
1845
|
-
margins?: Margins;
|
|
1846
|
-
containerPaddingLeft?: number;
|
|
1847
|
-
chartMargins?: Margins;
|
|
1848
|
-
height?: number;
|
|
1849
|
-
width?: number | string;
|
|
1850
|
-
colors?: string[];
|
|
1851
|
-
gridColor?: string;
|
|
1852
|
-
showGrid?: boolean;
|
|
1853
|
-
showTooltip?: boolean;
|
|
1854
|
-
showLegend?: boolean;
|
|
1855
|
-
title?: string;
|
|
1856
|
-
titlePosition?: "left" | "center" | "right";
|
|
1857
|
-
showLabels?: boolean;
|
|
1858
|
-
labelMap?: Record<string, string>;
|
|
1859
|
-
xAxis?: XAxisConfig | string;
|
|
1860
|
-
mapper?: DataMapper | string[];
|
|
1861
|
-
yAxis?: DataMapper | string[];
|
|
1862
|
-
autoDetect?: boolean;
|
|
1863
|
-
}
|
|
1864
|
-
declare const BarChart: React__default.FC<BarChartProps>;
|
|
1865
|
-
|
|
1866
|
-
interface LineChartData {
|
|
1867
|
-
name: string;
|
|
1868
|
-
[key: string]: string | number;
|
|
1869
|
-
}
|
|
1870
|
-
interface CustomLineChartProps {
|
|
1871
|
-
data?: LineChartData[];
|
|
1872
|
-
className?: string;
|
|
1873
|
-
padding?: Padding;
|
|
1874
|
-
margins?: Margins;
|
|
1875
|
-
containerPaddingLeft?: number;
|
|
1876
|
-
chartMargins?: Margins;
|
|
1877
|
-
height?: number;
|
|
1878
|
-
width?: number | string;
|
|
1879
|
-
colors?: string[];
|
|
1880
|
-
gridColor?: string;
|
|
1881
|
-
showGrid?: boolean;
|
|
1882
|
-
showTooltip?: boolean;
|
|
1883
|
-
showLegend?: boolean;
|
|
1884
|
-
title?: string;
|
|
1885
|
-
titlePosition?: "left" | "center" | "right";
|
|
1886
|
-
strokeWidth?: number;
|
|
1887
|
-
showDots?: boolean;
|
|
1888
|
-
showLabels?: boolean;
|
|
1889
|
-
}
|
|
1890
|
-
declare const CustomLineChart: React__default.FC<CustomLineChartProps>;
|
|
1891
|
-
|
|
1892
1824
|
interface PieChartData {
|
|
1893
1825
|
name: string;
|
|
1894
1826
|
value: number;
|
|
@@ -1991,7 +1923,7 @@ interface DraggableTooltipProps {
|
|
|
1991
1923
|
title?: string;
|
|
1992
1924
|
dataKeys: string[];
|
|
1993
1925
|
finalColors: Record<string, string>;
|
|
1994
|
-
onMouseDown?: (id: string, e: React__default.MouseEvent) => void;
|
|
1926
|
+
onMouseDown?: (id: string, e: React__default.MouseEvent | React__default.TouchEvent) => void;
|
|
1995
1927
|
onClose: (id: string) => void;
|
|
1996
1928
|
periodLabel?: string;
|
|
1997
1929
|
dataLabel?: string;
|
|
@@ -2249,4 +2181,4 @@ declare const useDrag: (options?: UseDragOptions) => {
|
|
|
2249
2181
|
isDragging: boolean;
|
|
2250
2182
|
};
|
|
2251
2183
|
|
|
2252
|
-
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,
|
|
2184
|
+
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, 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, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPreviousBase, ChangeButton, Chart, type ChartData$4 as ChartData, type ChartHooksArgs, ChartTotalLegend, 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, 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, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileUploader, type FileUploaderProps, type FileWithPreview, FilterButton, type FinalValueFormatter, HideButton, Highlights, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, type IconProps, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, LabelBase, Leaderboard, type LeaderboardItem, type LeaderboardProps, type LegendItem, LikeButton, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, type MultiComboboxProps, type MultiComboboxTestIds, 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 NewSelectProps, NoData, NotificationButton, NumericInput, 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, SelectEmpty, SelectGroupBase, type SelectItem, SelectItemBase, SelectLabelBase, type SelectPropsWithGroupItems, type SelectPropsWithItems, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, type SelectTestIds, SelectTriggerBase, SelectValueBase, SeparatorBase, type SeriesCounts, type SeriesEntry, type SeriesProp$1 as 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, 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, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig$1 as XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, 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, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, toast, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useTheme, useTimeSeriesRange, type valueFormatter, visualForItem };
|
package/dist/index.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ declare const SelectContentBase: React$1.ForwardRefExoticComponent<Omit<SelectPr
|
|
|
47
47
|
declare const SelectLabelBase: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
48
48
|
declare const SelectItemBase: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
49
49
|
declare const SelectSeparatorBase: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
50
|
+
declare const SelectEmpty: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
50
51
|
|
|
51
52
|
type Theme = "light" | "light-purple" | "light-green" | "light-blue" | "dark" | "dark-purple" | "dark-green" | "dark-blue" | "system";
|
|
52
53
|
type ThemeProviderProps = {
|
|
@@ -1571,14 +1572,14 @@ interface SelectPropsWithGroupItems<T extends string> extends DefaultSelectProps
|
|
|
1571
1572
|
empty?: React__default.ReactNode;
|
|
1572
1573
|
}
|
|
1573
1574
|
type NewSelectProps<T extends string> = SelectPropsWithItems<T> | SelectPropsWithGroupItems<T>;
|
|
1574
|
-
declare function Select<T extends string>({ items, groupItems, placeholder, onChange, error, testIds, disabled, selected, label, labelClassname, className, pagination, hideClear, empty }: NewSelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
1575
|
+
declare function Select<T extends string>({ items, groupItems, placeholder, onChange, error, testIds, disabled, selected, label, labelClassname, className, pagination, hideClear, empty, }: NewSelectProps<T>): react_jsx_runtime.JSX.Element;
|
|
1575
1576
|
|
|
1576
1577
|
type Primitive = string | number | boolean | null | undefined;
|
|
1577
1578
|
interface ChartData$4 {
|
|
1578
1579
|
[key: string]: Primitive;
|
|
1579
1580
|
name?: string;
|
|
1580
1581
|
}
|
|
1581
|
-
interface XAxisConfig$
|
|
1582
|
+
interface XAxisConfig$1 {
|
|
1582
1583
|
dataKey: string;
|
|
1583
1584
|
label?: string;
|
|
1584
1585
|
valueFormatter?: (value: string | number) => string;
|
|
@@ -1731,7 +1732,7 @@ declare const renderInsideBarLabel: (color: string, valueFormatter?: valueFormat
|
|
|
1731
1732
|
interface ChartData$3 {
|
|
1732
1733
|
[key: string]: string | number | boolean | null | undefined;
|
|
1733
1734
|
}
|
|
1734
|
-
interface XAxisConfig
|
|
1735
|
+
interface XAxisConfig {
|
|
1735
1736
|
dataKey: string;
|
|
1736
1737
|
label?: string;
|
|
1737
1738
|
valueFormatter?: (value: string | number) => string;
|
|
@@ -1775,7 +1776,7 @@ interface ChartProps {
|
|
|
1775
1776
|
periodLabel?: string;
|
|
1776
1777
|
xAxisLabel?: string;
|
|
1777
1778
|
yAxisLabel?: string;
|
|
1778
|
-
xAxis?: XAxisConfig
|
|
1779
|
+
xAxis?: XAxisConfig | string;
|
|
1779
1780
|
biaxial?: BiaxialConfig | string | string[];
|
|
1780
1781
|
enableHighlights?: boolean;
|
|
1781
1782
|
enableShowOnly?: boolean;
|
|
@@ -1820,75 +1821,6 @@ type Margins = Partial<{
|
|
|
1820
1821
|
|
|
1821
1822
|
declare const Chart: React__default.FC<ChartProps>;
|
|
1822
1823
|
|
|
1823
|
-
interface BarChartData {
|
|
1824
|
-
[key: string]: string | number | boolean | null | undefined;
|
|
1825
|
-
}
|
|
1826
|
-
interface XAxisConfig {
|
|
1827
|
-
dataKey: string;
|
|
1828
|
-
label?: string;
|
|
1829
|
-
valueFormatter?: (value: string | number) => string;
|
|
1830
|
-
autoLabel?: boolean;
|
|
1831
|
-
}
|
|
1832
|
-
interface DataMapper {
|
|
1833
|
-
[dataKey: string]: {
|
|
1834
|
-
label?: string;
|
|
1835
|
-
valueFormatter?: (value: string | number) => string | number;
|
|
1836
|
-
color?: string;
|
|
1837
|
-
type?: "number" | "string" | "auto";
|
|
1838
|
-
visible?: boolean;
|
|
1839
|
-
};
|
|
1840
|
-
}
|
|
1841
|
-
interface BarChartProps {
|
|
1842
|
-
data: BarChartData[];
|
|
1843
|
-
className?: string;
|
|
1844
|
-
padding?: Padding;
|
|
1845
|
-
margins?: Margins;
|
|
1846
|
-
containerPaddingLeft?: number;
|
|
1847
|
-
chartMargins?: Margins;
|
|
1848
|
-
height?: number;
|
|
1849
|
-
width?: number | string;
|
|
1850
|
-
colors?: string[];
|
|
1851
|
-
gridColor?: string;
|
|
1852
|
-
showGrid?: boolean;
|
|
1853
|
-
showTooltip?: boolean;
|
|
1854
|
-
showLegend?: boolean;
|
|
1855
|
-
title?: string;
|
|
1856
|
-
titlePosition?: "left" | "center" | "right";
|
|
1857
|
-
showLabels?: boolean;
|
|
1858
|
-
labelMap?: Record<string, string>;
|
|
1859
|
-
xAxis?: XAxisConfig | string;
|
|
1860
|
-
mapper?: DataMapper | string[];
|
|
1861
|
-
yAxis?: DataMapper | string[];
|
|
1862
|
-
autoDetect?: boolean;
|
|
1863
|
-
}
|
|
1864
|
-
declare const BarChart: React__default.FC<BarChartProps>;
|
|
1865
|
-
|
|
1866
|
-
interface LineChartData {
|
|
1867
|
-
name: string;
|
|
1868
|
-
[key: string]: string | number;
|
|
1869
|
-
}
|
|
1870
|
-
interface CustomLineChartProps {
|
|
1871
|
-
data?: LineChartData[];
|
|
1872
|
-
className?: string;
|
|
1873
|
-
padding?: Padding;
|
|
1874
|
-
margins?: Margins;
|
|
1875
|
-
containerPaddingLeft?: number;
|
|
1876
|
-
chartMargins?: Margins;
|
|
1877
|
-
height?: number;
|
|
1878
|
-
width?: number | string;
|
|
1879
|
-
colors?: string[];
|
|
1880
|
-
gridColor?: string;
|
|
1881
|
-
showGrid?: boolean;
|
|
1882
|
-
showTooltip?: boolean;
|
|
1883
|
-
showLegend?: boolean;
|
|
1884
|
-
title?: string;
|
|
1885
|
-
titlePosition?: "left" | "center" | "right";
|
|
1886
|
-
strokeWidth?: number;
|
|
1887
|
-
showDots?: boolean;
|
|
1888
|
-
showLabels?: boolean;
|
|
1889
|
-
}
|
|
1890
|
-
declare const CustomLineChart: React__default.FC<CustomLineChartProps>;
|
|
1891
|
-
|
|
1892
1824
|
interface PieChartData {
|
|
1893
1825
|
name: string;
|
|
1894
1826
|
value: number;
|
|
@@ -1991,7 +1923,7 @@ interface DraggableTooltipProps {
|
|
|
1991
1923
|
title?: string;
|
|
1992
1924
|
dataKeys: string[];
|
|
1993
1925
|
finalColors: Record<string, string>;
|
|
1994
|
-
onMouseDown?: (id: string, e: React__default.MouseEvent) => void;
|
|
1926
|
+
onMouseDown?: (id: string, e: React__default.MouseEvent | React__default.TouchEvent) => void;
|
|
1995
1927
|
onClose: (id: string) => void;
|
|
1996
1928
|
periodLabel?: string;
|
|
1997
1929
|
dataLabel?: string;
|
|
@@ -2249,4 +2181,4 @@ declare const useDrag: (options?: UseDragOptions) => {
|
|
|
2249
2181
|
isDragging: boolean;
|
|
2250
2182
|
};
|
|
2251
2183
|
|
|
2252
|
-
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,
|
|
2184
|
+
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, 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, type CarouselApi, CarouselBase, CarouselContentBase, CarouselItemBase, CarouselNextBase, CarouselPreviousBase, ChangeButton, Chart, type ChartData$4 as ChartData, type ChartHooksArgs, ChartTotalLegend, 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, 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, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileUploader, type FileUploaderProps, type FileWithPreview, FilterButton, type FinalValueFormatter, HideButton, Highlights, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, type IconProps, InputBase, type InputBaseProps, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, LabelBase, Leaderboard, type LeaderboardItem, type LeaderboardProps, type LegendItem, LikeButton, LoadingBase, LockButton, type MapperConfig, type MapperConfigEntry, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, type MultiComboboxProps, type MultiComboboxTestIds, 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 NewSelectProps, NoData, NotificationButton, NumericInput, 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, SelectEmpty, SelectGroupBase, type SelectItem, SelectItemBase, SelectLabelBase, type SelectPropsWithGroupItems, type SelectPropsWithItems, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, type SelectTestIds, SelectTriggerBase, SelectValueBase, SeparatorBase, type SeriesCounts, type SeriesEntry, type SeriesProp$1 as 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, 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, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, type XAxisConfig$1 as XAxisConfig, type YAxes, type YAxisMap, type YAxisOptions, type YAxisSide, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, formatFieldName, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, 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, renderInsideBarLabel, renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, toast, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useTheme, useTimeSeriesRange, type valueFormatter, visualForItem };
|