@rufous/ui 0.3.49 → 0.3.53

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
@@ -104,6 +104,18 @@ declare const APP_THEMES: {
104
104
  };
105
105
  };
106
106
 
107
+ interface MinusIconProps extends React.SVGProps<SVGSVGElement> {
108
+ color?: string;
109
+ size?: number;
110
+ }
111
+ declare const MinusIcon: React.FC<MinusIconProps>;
112
+
113
+ interface PlusIconProps extends React.SVGProps<SVGSVGElement> {
114
+ color?: string;
115
+ size?: number;
116
+ }
117
+ declare const PlusIcon: React.FC<PlusIconProps>;
118
+
107
119
  interface ArchivedIconProps extends React.SVGProps<SVGSVGElement> {
108
120
  color?: string;
109
121
  size?: number;
@@ -436,18 +448,6 @@ interface CameraIconProps extends React.SVGProps<SVGSVGElement> {
436
448
  }
437
449
  declare const CameraIcon: React.FC<CameraIconProps>;
438
450
 
439
- interface PlusIconProps extends React.SVGProps<SVGSVGElement> {
440
- color?: string;
441
- size?: number;
442
- }
443
- declare const PlusIcon: React.FC<PlusIconProps>;
444
-
445
- interface MinusIconProps extends React.SVGProps<SVGSVGElement> {
446
- color?: string;
447
- size?: number;
448
- }
449
- declare const MinusIcon: React.FC<MinusIconProps>;
450
-
451
451
  interface SearchIconProps extends React.SVGProps<SVGSVGElement> {
452
452
  color?: string;
453
453
  size?: number;
@@ -724,6 +724,50 @@ interface ZoomOutIconProps extends React.SVGProps<SVGSVGElement> {
724
724
  }
725
725
  declare const ZoomOutIcon: React.FC<ZoomOutIconProps>;
726
726
 
727
+ type MaterialIconVariant = "filled" | "outlined";
728
+ interface MaterialIconProps extends Omit<React.SVGProps<SVGSVGElement>, "color"> {
729
+ color?: string;
730
+ size?: number | string;
731
+ variant?: MaterialIconVariant;
732
+ }
733
+
734
+ declare const DragIndicatorIcon: React.FC<MaterialIconProps>;
735
+
736
+ declare const CalendarIcon: React.FC<MaterialIconProps>;
737
+
738
+ declare const TrendingFlatIcon: React.FC<MaterialIconProps>;
739
+
740
+ declare const OpenInFullIcon: React.FC<MaterialIconProps>;
741
+
742
+ declare const PinIcon: React.FC<MaterialIconProps>;
743
+
744
+ declare const TextFieldsIcon: React.FC<MaterialIconProps>;
745
+
746
+ declare const NotesIcon: React.FC<MaterialIconProps>;
747
+
748
+ declare const StarBorderIcon: React.FC<MaterialIconProps>;
749
+
750
+ declare const BusinessIcon: React.FC<MaterialIconProps>;
751
+
752
+ declare const ContactsIcon: React.FC<MaterialIconProps>;
753
+
754
+ declare const FactoryIcon: React.FC<MaterialIconProps>;
755
+
756
+ declare const LocationCityIcon: React.FC<MaterialIconProps>;
757
+
758
+ declare const MemoryIcon: React.FC<MaterialIconProps>;
759
+
760
+ declare const ChatBubbleIcon: React.FC<MaterialIconProps>;
761
+
762
+ declare const AttachFileIcon: React.FC<MaterialIconProps>;
763
+
764
+ declare const PlaceIcon: React.FC<MaterialIconProps>;
765
+
766
+ declare const PersonSearchIcon: React.FC<MaterialIconProps>;
767
+
768
+ declare const AddIcon: React.FC<PlusIconProps>;
769
+ declare const RemoveIcon: React.FC<MinusIconProps>;
770
+
727
771
  type SxProp = {
728
772
  [key: string]: string | number | SxProp | undefined | null;
729
773
  };
@@ -805,6 +849,16 @@ interface IconButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElem
805
849
  }
806
850
  declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
807
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
+
808
862
  interface BaseDialogForm {
809
863
  handleSubmit?: (e: React.FormEvent) => void;
810
864
  [key: string]: any;
@@ -1168,6 +1222,18 @@ interface CircularProgressIconProps {
1168
1222
  }
1169
1223
  declare const CircularProgressIcon: React.FC<CircularProgressIconProps>;
1170
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
+
1171
1237
  interface RufousLogoLoaderProps {
1172
1238
  /** Width of the loader in pixels — height is proportioned automatically */
1173
1239
  size?: number;
@@ -1582,6 +1648,13 @@ interface RadioGroupProps {
1582
1648
  }
1583
1649
  declare const RadioGroup: React__default.ForwardRefExoticComponent<RadioGroupProps & React__default.RefAttributes<HTMLDivElement>>;
1584
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
+
1585
1658
  interface RatingProps {
1586
1659
  value?: number | null;
1587
1660
  onChange?: (value: number | null) => void;
@@ -1914,6 +1987,16 @@ interface GridProps extends React.HTMLAttributes<HTMLElement> {
1914
1987
  }
1915
1988
  declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLElement>>;
1916
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
+
1917
2000
  interface TableContainerProps extends React__default.HTMLAttributes<HTMLElement> {
1918
2001
  component?: keyof React__default.JSX.IntrinsicElements;
1919
2002
  children?: ReactNode;
@@ -2280,6 +2363,26 @@ interface DrawerProps {
2280
2363
  }
2281
2364
  declare const Drawer: React__default.FC<DrawerProps>;
2282
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
+
2283
2386
  interface SnackbarProps {
2284
2387
  open: boolean;
2285
2388
  onClose?: (reason: "timeout" | "clickaway" | "escapeKeyDown") => void;
@@ -2299,6 +2402,30 @@ interface SnackbarProps {
2299
2402
  }
2300
2403
  declare const Snackbar: React__default.FC<SnackbarProps>;
2301
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 ClickAwayMouseEventHandler = "onClick" | "onMouseDown" | "onMouseUp" | "onPointerDown" | "onPointerUp";
2419
+ type ClickAwayTouchEventHandler = "onTouchStart" | "onTouchEnd";
2420
+ interface ClickAwayListenerProps {
2421
+ children: React.ReactElement<any>;
2422
+ disableReactTree?: boolean;
2423
+ mouseEvent?: ClickAwayMouseEventHandler | false;
2424
+ onClickAway: (event: MouseEvent | TouchEvent) => void;
2425
+ touchEvent?: ClickAwayTouchEventHandler | false;
2426
+ }
2427
+ declare function ClickAwayListener(props: ClickAwayListenerProps): React.JSX.Element;
2428
+
2302
2429
  interface LinkProps {
2303
2430
  href?: string;
2304
2431
  target?: string;
@@ -2939,4 +3066,4 @@ declare function useStatesSearch(debounceMs?: number): SearchResult<EnhancedStat
2939
3066
  */
2940
3067
  declare function useCitiesSearch(debounceMs?: number): SearchResult<EnhancedCity>;
2941
3068
 
2942
- export { APP_THEMES, Accordion, AccordionDetails, type AccordionDetailsProps, type AccordionProps, AccordionSummary, type AccordionSummaryProps, type Action, ActivateUserIcon, AddButton, AddressLookup, AlertTriangleIcon, ArchivedIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AssignGroupIcon, Autocomplete, type AutocompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, BaseDialog, BookmarkIcon, Box, type BoxProps, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, CameraIcon, CancelButton, Card, CardActions, type CardActionsProps, CardContent, type CardContentProps, CardHeader, type CardHeaderProps, CardMedia, type CardMediaProps, type CardProps, CheckCircleIcon, Checkbox, type CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, type ChipProps, CircularProgress, CircularProgressIcon, type CircularProgressIconProps, ClipboardIcon, CloseIcon, Collapse, type CollapseProps, type Column, 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, Drawer, type DrawerProps, EditChatIcon, EditIcon, EngagementIcon, type EnhancedCity, type EnhancedCountry, type EnhancedState, ExternalLinkIcon, EyeOffIcon, 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, LocationPinIcon, LockIcon, LogsIcon, MAX_INDENT, MailIcon, Menu, MenuDivider, MenuIcon, MenuItem, type MenuItemProps, MenuList, type MenuListProps, type MenuProps, MinExperienceIcon, MinusIcon, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, NineDotMenuIcon, NotificationIcon, type NumberVariant, Paper, type PaperProps, PaperclipIcon, PhoneField, type PhoneFieldProps, PhoneIcon, 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, 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, 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, TickIcon, TimerIcon, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, Tooltip, type TooltipProps, TrashIcon, type TreeNode, TreeSelect, type TreeSelectMultiValue, type TreeSelectProps, type TreeSelectValue, 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 };
3069
+ 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, 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 };