@rufous/ui 0.3.52 → 0.3.54

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/main.d.ts CHANGED
@@ -849,6 +849,16 @@ interface IconButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElem
849
849
  }
850
850
  declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
851
851
 
852
+ interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
853
+ orientation?: "horizontal" | "vertical";
854
+ variant?: "contained" | "outlined" | "text";
855
+ size?: "small" | "medium" | "large";
856
+ fullWidth?: boolean;
857
+ disabled?: boolean;
858
+ sx?: SxProp;
859
+ }
860
+ declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
861
+
852
862
  interface BaseDialogForm {
853
863
  handleSubmit?: (e: React.FormEvent) => void;
854
864
  [key: string]: any;
@@ -1212,6 +1222,18 @@ interface CircularProgressIconProps {
1212
1222
  }
1213
1223
  declare const CircularProgressIcon: React.FC<CircularProgressIconProps>;
1214
1224
 
1225
+ type LinearProgressVariant = "determinate" | "indeterminate" | "buffer" | "query";
1226
+ interface LinearProgressProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "color"> {
1227
+ variant?: LinearProgressVariant;
1228
+ value?: number;
1229
+ valueBuffer?: number;
1230
+ color?: string;
1231
+ trackColor?: string;
1232
+ thickness?: number;
1233
+ sx?: SxProp;
1234
+ }
1235
+ declare const LinearProgress: React.ForwardRefExoticComponent<LinearProgressProps & React.RefAttributes<HTMLDivElement>>;
1236
+
1215
1237
  interface RufousLogoLoaderProps {
1216
1238
  /** Width of the loader in pixels — height is proportioned automatically */
1217
1239
  size?: number;
@@ -1626,6 +1648,13 @@ interface RadioGroupProps {
1626
1648
  }
1627
1649
  declare const RadioGroup: React__default.ForwardRefExoticComponent<RadioGroupProps & React__default.RefAttributes<HTMLDivElement>>;
1628
1650
 
1651
+ interface FormGroupProps extends React.HTMLAttributes<HTMLDivElement> {
1652
+ row?: boolean;
1653
+ spacing?: number | string;
1654
+ sx?: SxProp;
1655
+ }
1656
+ declare const FormGroup: React.ForwardRefExoticComponent<FormGroupProps & React.RefAttributes<HTMLDivElement>>;
1657
+
1629
1658
  interface RatingProps {
1630
1659
  value?: number | null;
1631
1660
  onChange?: (value: number | null) => void;
@@ -1958,6 +1987,16 @@ interface GridProps extends React.HTMLAttributes<HTMLElement> {
1958
1987
  }
1959
1988
  declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLElement>>;
1960
1989
 
1990
+ type ContainerMaxWidth = "xs" | "sm" | "md" | "lg" | "xl" | false;
1991
+ interface ContainerProps extends React.HTMLAttributes<HTMLElement> {
1992
+ maxWidth?: ContainerMaxWidth;
1993
+ fixed?: boolean;
1994
+ disableGutters?: boolean;
1995
+ component?: keyof React.JSX.IntrinsicElements;
1996
+ sx?: SxProp;
1997
+ }
1998
+ declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLElement>>;
1999
+
1961
2000
  interface TableContainerProps extends React__default.HTMLAttributes<HTMLElement> {
1962
2001
  component?: keyof React__default.JSX.IntrinsicElements;
1963
2002
  children?: ReactNode;
@@ -2324,6 +2363,26 @@ interface DrawerProps {
2324
2363
  }
2325
2364
  declare const Drawer: React__default.FC<DrawerProps>;
2326
2365
 
2366
+ type PaginationItemType = "page" | "first" | "previous" | "next" | "last" | "start-ellipsis" | "end-ellipsis";
2367
+ interface PaginationProps extends Omit<React.HTMLAttributes<HTMLElement>, "onChange" | "color"> {
2368
+ count: number;
2369
+ page?: number;
2370
+ defaultPage?: number;
2371
+ onChange?: (event: React.MouseEvent<HTMLButtonElement>, page: number) => void;
2372
+ siblingCount?: number;
2373
+ boundaryCount?: number;
2374
+ showFirstButton?: boolean;
2375
+ showLastButton?: boolean;
2376
+ hidePrevButton?: boolean;
2377
+ hideNextButton?: boolean;
2378
+ disabled?: boolean;
2379
+ shape?: "circular" | "rounded";
2380
+ size?: "small" | "medium" | "large";
2381
+ color?: "primary" | "standard";
2382
+ sx?: SxProp;
2383
+ }
2384
+ declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLElement>>;
2385
+
2327
2386
  interface SnackbarProps {
2328
2387
  open: boolean;
2329
2388
  onClose?: (reason: "timeout" | "clickaway" | "escapeKeyDown") => void;
@@ -2343,6 +2402,55 @@ interface SnackbarProps {
2343
2402
  }
2344
2403
  declare const Snackbar: React__default.FC<SnackbarProps>;
2345
2404
 
2405
+ type AlertSeverity = "success" | "info" | "warning" | "error";
2406
+ type AlertVariant = "standard" | "filled" | "outlined";
2407
+ interface AlertProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
2408
+ severity?: AlertSeverity;
2409
+ variant?: AlertVariant;
2410
+ title?: React.ReactNode;
2411
+ icon?: React.ReactNode | false;
2412
+ action?: React.ReactNode;
2413
+ onClose?: () => void;
2414
+ sx?: SxProp;
2415
+ }
2416
+ declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
2417
+
2418
+ type TimelinePosition = "right" | "left" | "alternate" | "alternate-reverse";
2419
+ type TimelineDotColor = "inherit" | "grey" | "primary" | "secondary" | "success" | "error" | "info" | "warning";
2420
+ type TimelineDotVariant = "filled" | "outlined";
2421
+ interface TimelineProps extends Omit<React.HTMLAttributes<HTMLUListElement>, "color"> {
2422
+ position?: TimelinePosition;
2423
+ sx?: SxProp;
2424
+ }
2425
+ declare const Timeline: React.ForwardRefExoticComponent<TimelineProps & React.RefAttributes<HTMLUListElement>>;
2426
+ interface TimelineItemProps extends React.LiHTMLAttributes<HTMLLIElement> {
2427
+ position?: "right" | "left";
2428
+ sx?: SxProp;
2429
+ }
2430
+ declare const TimelineItem: React.ForwardRefExoticComponent<TimelineItemProps & React.RefAttributes<HTMLLIElement>>;
2431
+ interface TimelineSeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
2432
+ sx?: SxProp;
2433
+ }
2434
+ declare const TimelineSeparator: React.ForwardRefExoticComponent<TimelineSeparatorProps & React.RefAttributes<HTMLDivElement>>;
2435
+ interface TimelineDotProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "color"> {
2436
+ color?: TimelineDotColor;
2437
+ variant?: TimelineDotVariant;
2438
+ sx?: SxProp;
2439
+ }
2440
+ declare const TimelineDot: React.ForwardRefExoticComponent<TimelineDotProps & React.RefAttributes<HTMLSpanElement>>;
2441
+ interface TimelineConnectorProps extends React.HTMLAttributes<HTMLSpanElement> {
2442
+ sx?: SxProp;
2443
+ }
2444
+ declare const TimelineConnector: React.ForwardRefExoticComponent<TimelineConnectorProps & React.RefAttributes<HTMLSpanElement>>;
2445
+ interface TimelineContentProps extends React.HTMLAttributes<HTMLDivElement> {
2446
+ sx?: SxProp;
2447
+ }
2448
+ declare const TimelineContent: React.ForwardRefExoticComponent<TimelineContentProps & React.RefAttributes<HTMLDivElement>>;
2449
+ interface TimelineOppositeContentProps extends React.HTMLAttributes<HTMLDivElement> {
2450
+ sx?: SxProp;
2451
+ }
2452
+ declare const TimelineOppositeContent: React.ForwardRefExoticComponent<TimelineOppositeContentProps & React.RefAttributes<HTMLDivElement>>;
2453
+
2346
2454
  type ClickAwayMouseEventHandler = "onClick" | "onMouseDown" | "onMouseUp" | "onPointerDown" | "onPointerUp";
2347
2455
  type ClickAwayTouchEventHandler = "onTouchStart" | "onTouchEnd";
2348
2456
  interface ClickAwayListenerProps {
@@ -2994,4 +3102,4 @@ declare function useStatesSearch(debounceMs?: number): SearchResult<EnhancedStat
2994
3102
  */
2995
3103
  declare function useCitiesSearch(debounceMs?: number): SearchResult<EnhancedCity>;
2996
3104
 
2997
- export { APP_THEMES, Accordion, AccordionDetails, type AccordionDetailsProps, type AccordionProps, AccordionSummary, type AccordionSummaryProps, type Action, ActivateUserIcon, AddButton, AddIcon, AddressLookup, AlertTriangleIcon, ArchivedIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AssignGroupIcon, AttachFileIcon, Autocomplete, type AutocompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, BaseDialog, BookmarkIcon, Box, type BoxProps, Breadcrumbs, type BreadcrumbsProps, BusinessIcon, Button, type ButtonProps, CalendarIcon, CameraIcon, CancelButton, Card, CardActions, type CardActionsProps, CardContent, type CardContentProps, CardHeader, type CardHeaderProps, CardMedia, type CardMediaProps, type CardProps, ChatBubbleIcon, CheckCircleIcon, Checkbox, type CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, type ChipProps, CircularProgress, CircularProgressIcon, type CircularProgressIconProps, ClickAwayListener, type ClickAwayListenerProps, ClipboardIcon, CloseIcon, Collapse, type CollapseProps, type Column, ContactsIcon, CopyIcon, CustomImage, CustomTaskItem, CustomVideo, CustomYoutube, DataGrid, type DataGridProps, DateField, type DateFieldProps, type DateFormatString, DateRangeField, type DateRangeFieldProps, type DateRangeValue, DifficultyAllIcon, DifficultyEasyIcon, DifficultyHardIcon, DifficultyMediumIcon, Divider, type DividerProps, DollarIcon, DownloadIcon, DownloadPdfIcon, DragIndicatorIcon, Drawer, type DrawerProps, EditChatIcon, EditIcon, EngagementIcon, type EnhancedCity, type EnhancedCountry, type EnhancedState, ExternalLinkIcon, EyeOffIcon, FactoryIcon, Fade, type FadeProps, FilterIcon, FlagIcon, FontFamily, FontSize, FunctionIcon, GlobeIcon, Grid, type GridProps, GridViewIcon, Grow, type GrowProps, HeartIcon, HelpOutlinedIcon, HierarchyIcon, HomeIcon, INDENT_STEP, IconButton, type IconButtonProps, ImageField, type ImageFieldProps, InactiveGroupIcon, Indent, IndustryIcon, InfoIcon, InvoiceIcon, LineHeight, Link, LinkIcon, type LinkProps, List, ListItem, ListItemButton, type ListItemButtonProps, ListItemIcon, type ListItemIconProps, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListStyle, ListSubheader, type ListSubheaderProps, ListViewIcon, LocationCityIcon, LocationPinIcon, LockIcon, LogsIcon, MAX_INDENT, MailIcon, type MaterialIconProps, type MaterialIconVariant, MemoryIcon, Menu, MenuDivider, MenuIcon, MenuItem, type MenuItemProps, MenuList, type MenuListProps, type MenuProps, MinExperienceIcon, MinusIcon, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, NineDotMenuIcon, NotesIcon, NotificationIcon, type NumberVariant, OpenInFullIcon, Paper, type PaperProps, PaperclipIcon, PersonSearchIcon, PhoneField, type PhoneFieldProps, PhoneIcon, PinIcon, PlaceIcon, PlusIcon, Popover, type PopoverProps, Popper, type PopperProps, PrintIcon, ProjectIcon, QualificationsIcon, QuestionStatusAllIcon, QuestionStatusPrivateIcon, QuestionStatusPublicIcon, QuestionTypeAllIcon, QuestionTypeCodingIcon, QuestionTypeDescriptiveIcon, QuestionTypeMultipleIcon, QuestionTypeSingleIcon, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Rating, type RatingProps, RefreshIcon, RemoveIcon, ResendInviteIcon, RolesIcon, RufousAiIcon, RufousBirdIcon, RufousLauncherIcon, RufousLogoLoader, type RufousLogoLoaderProps, RufousTextContent, type RufousTextContentProps, RufousTextEditor, type MentionItemData as RufousTextEditorMentionItem, type RufousTextEditorProps, RufousThemeProvider, STATUS_COLORS, STATUS_IMAGES, STATUS_LABELS, SaveIcon, SearchIcon, Select, type SelectProps, SendIcon, SettingsIcon, ShareIcon, SidebarIcon, Skeleton, type SkeletonProps, Slide, type SlideProps, Slider, type SliderProps, SmartSelect, type SmartSelectProps, Snackbar, type SnackbarProps, SoftSkillsIcon, type SortDirection, Stack, type StackProps, StandardButton, StarBorderIcon, StarIcon, Step, StepButton, type StepButtonProps, StepContent, type StepContentProps, StepLabel, type StepLabelProps, type StepProps, Stepper, type StepperProps, SubmitButton, SubscribeIcon, SunIcon, SuspendUserIcon, Switch, type SwitchProps, type SxProp, Tab, TabPanel, type TabPanelProps, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableContainer, type TableContainerProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TablePagination, type TablePaginationProps, type TableProps, TableRow, type TableRowProps, TableSortLabel, type TableSortLabelProps, Tabs, type TabsProps, TagIcon, TechnicalSkillsIcon, TextField, type TextFieldProps, TextFieldsIcon, TickIcon, TimerIcon, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, Tooltip, type TooltipProps, TrashIcon, type TreeNode, TreeSelect, type TreeSelectMultiValue, type TreeSelectProps, type TreeSelectValue, TrendingFlatIcon, Typography, type TypographyProps, UnArchivedIcon, UnlockIcon, UnsubscribeIcon, UploadIcon, UserAssignIcon, UserIcon, type UserOption, UserSelectionField, type UserSelectionFieldProps, UsersIcon, ViewIcon, WorkItemIcon, XCircleIcon, Zoom, ZoomInIcon, ZoomOutIcon, type ZoomProps, getAllCountries, getCitiesByName, getCitiesOfCountry, getCitiesOfState, getCityByName, getCountriesByName, getCountryByCode, getCountryByName, getStateByCode, getStateByName, getStatesByName, getStatesOfCountry, transformLegacyTodos, useCitiesSearch, useCountriesSearch, useRufousTheme, useStatesSearch };
3105
+ export { APP_THEMES, Accordion, AccordionDetails, type AccordionDetailsProps, type AccordionProps, AccordionSummary, type AccordionSummaryProps, type Action, ActivateUserIcon, AddButton, AddIcon, AddressLookup, Alert, type AlertProps, type AlertSeverity, AlertTriangleIcon, type AlertVariant, ArchivedIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AssignGroupIcon, AttachFileIcon, Autocomplete, type AutocompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, BaseDialog, BookmarkIcon, Box, type BoxProps, Breadcrumbs, type BreadcrumbsProps, BusinessIcon, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, CalendarIcon, CameraIcon, CancelButton, Card, CardActions, type CardActionsProps, CardContent, type CardContentProps, CardHeader, type CardHeaderProps, CardMedia, type CardMediaProps, type CardProps, ChatBubbleIcon, CheckCircleIcon, Checkbox, type CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, type ChipProps, CircularProgress, CircularProgressIcon, type CircularProgressIconProps, ClickAwayListener, type ClickAwayListenerProps, ClipboardIcon, CloseIcon, Collapse, type CollapseProps, type Column, ContactsIcon, Container, type ContainerMaxWidth, type ContainerProps, CopyIcon, CustomImage, CustomTaskItem, CustomVideo, CustomYoutube, DataGrid, type DataGridProps, DateField, type DateFieldProps, type DateFormatString, DateRangeField, type DateRangeFieldProps, type DateRangeValue, DifficultyAllIcon, DifficultyEasyIcon, DifficultyHardIcon, DifficultyMediumIcon, Divider, type DividerProps, DollarIcon, DownloadIcon, DownloadPdfIcon, DragIndicatorIcon, Drawer, type DrawerProps, EditChatIcon, EditIcon, EngagementIcon, type EnhancedCity, type EnhancedCountry, type EnhancedState, ExternalLinkIcon, EyeOffIcon, FactoryIcon, Fade, type FadeProps, FilterIcon, FlagIcon, FontFamily, FontSize, FormGroup, type FormGroupProps, FunctionIcon, GlobeIcon, Grid, type GridProps, GridViewIcon, Grow, type GrowProps, HeartIcon, HelpOutlinedIcon, HierarchyIcon, HomeIcon, INDENT_STEP, IconButton, type IconButtonProps, ImageField, type ImageFieldProps, InactiveGroupIcon, Indent, IndustryIcon, InfoIcon, InvoiceIcon, LineHeight, LinearProgress, type LinearProgressProps, type LinearProgressVariant, Link, LinkIcon, type LinkProps, List, ListItem, ListItemButton, type ListItemButtonProps, ListItemIcon, type ListItemIconProps, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListStyle, ListSubheader, type ListSubheaderProps, ListViewIcon, LocationCityIcon, LocationPinIcon, LockIcon, LogsIcon, MAX_INDENT, MailIcon, type MaterialIconProps, type MaterialIconVariant, MemoryIcon, Menu, MenuDivider, MenuIcon, MenuItem, type MenuItemProps, MenuList, type MenuListProps, type MenuProps, MinExperienceIcon, MinusIcon, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, NineDotMenuIcon, NotesIcon, NotificationIcon, type NumberVariant, OpenInFullIcon, Pagination, type PaginationItemType, type PaginationProps, Paper, type PaperProps, PaperclipIcon, PersonSearchIcon, PhoneField, type PhoneFieldProps, PhoneIcon, PinIcon, PlaceIcon, PlusIcon, Popover, type PopoverProps, Popper, type PopperProps, PrintIcon, ProjectIcon, QualificationsIcon, QuestionStatusAllIcon, QuestionStatusPrivateIcon, QuestionStatusPublicIcon, QuestionTypeAllIcon, QuestionTypeCodingIcon, QuestionTypeDescriptiveIcon, QuestionTypeMultipleIcon, QuestionTypeSingleIcon, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Rating, type RatingProps, RefreshIcon, RemoveIcon, ResendInviteIcon, RolesIcon, RufousAiIcon, RufousBirdIcon, RufousLauncherIcon, RufousLogoLoader, type RufousLogoLoaderProps, RufousTextContent, type RufousTextContentProps, RufousTextEditor, type MentionItemData as RufousTextEditorMentionItem, type RufousTextEditorProps, RufousThemeProvider, STATUS_COLORS, STATUS_IMAGES, STATUS_LABELS, SaveIcon, SearchIcon, Select, type SelectProps, SendIcon, SettingsIcon, ShareIcon, SidebarIcon, Skeleton, type SkeletonProps, Slide, type SlideProps, Slider, type SliderProps, SmartSelect, type SmartSelectProps, Snackbar, type SnackbarProps, SoftSkillsIcon, type SortDirection, Stack, type StackProps, StandardButton, StarBorderIcon, StarIcon, Step, StepButton, type StepButtonProps, StepContent, type StepContentProps, StepLabel, type StepLabelProps, type StepProps, Stepper, type StepperProps, SubmitButton, SubscribeIcon, SunIcon, SuspendUserIcon, Switch, type SwitchProps, type SxProp, Tab, TabPanel, type TabPanelProps, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableContainer, type TableContainerProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TablePagination, type TablePaginationProps, type TableProps, TableRow, type TableRowProps, TableSortLabel, type TableSortLabelProps, Tabs, type TabsProps, TagIcon, TechnicalSkillsIcon, TextField, type TextFieldProps, TextFieldsIcon, TickIcon, Timeline, TimelineConnector, type TimelineConnectorProps, TimelineContent, type TimelineContentProps, TimelineDot, type TimelineDotColor, type TimelineDotProps, type TimelineDotVariant, TimelineItem, type TimelineItemProps, TimelineOppositeContent, type TimelineOppositeContentProps, type TimelinePosition, type TimelineProps, TimelineSeparator, type TimelineSeparatorProps, TimerIcon, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, Tooltip, type TooltipProps, TrashIcon, type TreeNode, TreeSelect, type TreeSelectMultiValue, type TreeSelectProps, type TreeSelectValue, TrendingFlatIcon, Typography, type TypographyProps, UnArchivedIcon, UnlockIcon, UnsubscribeIcon, UploadIcon, UserAssignIcon, UserIcon, type UserOption, UserSelectionField, type UserSelectionFieldProps, UsersIcon, ViewIcon, WorkItemIcon, XCircleIcon, Zoom, ZoomInIcon, ZoomOutIcon, type ZoomProps, getAllCountries, getCitiesByName, getCitiesOfCountry, getCitiesOfState, getCityByName, getCountriesByName, getCountryByCode, getCountryByName, getStateByCode, getStateByName, getStatesByName, getStatesOfCountry, transformLegacyTodos, useCitiesSearch, useCountriesSearch, useRufousTheme, useStatesSearch };