@rufous/ui 0.1.86 → 0.1.88
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.cjs +6458 -100
- package/dist/main.css +2320 -2
- package/dist/main.d.cts +78 -5
- package/dist/main.d.ts +78 -5
- package/dist/main.js +6405 -43
- package/package.json +27 -1
package/dist/main.d.cts
CHANGED
|
@@ -920,7 +920,7 @@ interface RadioProps {
|
|
|
920
920
|
value: string | number;
|
|
921
921
|
label?: string;
|
|
922
922
|
checked?: boolean;
|
|
923
|
-
onChange?: (value: string | number) => void;
|
|
923
|
+
onChange?: (e: React__default.ChangeEvent<HTMLInputElement>, value: string | number) => void;
|
|
924
924
|
disabled?: boolean;
|
|
925
925
|
size?: "small" | "medium";
|
|
926
926
|
name?: string;
|
|
@@ -929,7 +929,7 @@ interface RadioProps {
|
|
|
929
929
|
declare const Radio: React__default.ForwardRefExoticComponent<RadioProps & React__default.RefAttributes<HTMLLabelElement>>;
|
|
930
930
|
interface RadioGroupProps {
|
|
931
931
|
value?: string | number;
|
|
932
|
-
onChange?: (value: string | number) => void;
|
|
932
|
+
onChange?: (e: React__default.ChangeEvent<HTMLInputElement>, value: string | number) => void;
|
|
933
933
|
name?: string;
|
|
934
934
|
options?: Array<{
|
|
935
935
|
value: string | number;
|
|
@@ -1610,8 +1610,8 @@ interface ImageFieldProps {
|
|
|
1610
1610
|
size?: "small" | "medium" | "large" | number;
|
|
1611
1611
|
/** Accepted file types (default: "image/*") */
|
|
1612
1612
|
accept?: string;
|
|
1613
|
-
/** Called with the selected File when user picks an image */
|
|
1614
|
-
onChange?: (file: File) => void;
|
|
1613
|
+
/** Called with the change event and selected File when user picks an image */
|
|
1614
|
+
onChange?: (e: React__default.ChangeEvent<HTMLInputElement>, file: File) => void;
|
|
1615
1615
|
/** Overlay label text (default: "Upload") */
|
|
1616
1616
|
overlayText?: string;
|
|
1617
1617
|
/** Disable interaction */
|
|
@@ -1622,4 +1622,77 @@ interface ImageFieldProps {
|
|
|
1622
1622
|
}
|
|
1623
1623
|
declare const ImageField: React__default.ForwardRefExoticComponent<ImageFieldProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1624
1624
|
|
|
1625
|
-
|
|
1625
|
+
interface PhoneFieldProps {
|
|
1626
|
+
/** The full phone value including dial code (e.g. "911234567890") */
|
|
1627
|
+
value?: string;
|
|
1628
|
+
/** Callback fired when the phone value changes */
|
|
1629
|
+
onChange?: (value: string, country: {
|
|
1630
|
+
dialCode: string;
|
|
1631
|
+
countryCode: string;
|
|
1632
|
+
name: string;
|
|
1633
|
+
}) => void;
|
|
1634
|
+
/** Label text */
|
|
1635
|
+
label?: string;
|
|
1636
|
+
/** Visual variant */
|
|
1637
|
+
variant?: "outlined" | "filled" | "standard";
|
|
1638
|
+
/** Size of the component */
|
|
1639
|
+
size?: "small" | "medium";
|
|
1640
|
+
/** If true, displays error styling */
|
|
1641
|
+
error?: boolean;
|
|
1642
|
+
/** Helper text below the input */
|
|
1643
|
+
helperText?: ReactNode;
|
|
1644
|
+
/** If true, the input takes full width */
|
|
1645
|
+
fullWidth?: boolean;
|
|
1646
|
+
/** If true, the input is disabled */
|
|
1647
|
+
disabled?: boolean;
|
|
1648
|
+
/** If true, the field is required */
|
|
1649
|
+
required?: boolean;
|
|
1650
|
+
/** Default country ISO code (lowercase, e.g. "in") */
|
|
1651
|
+
defaultCountry?: string;
|
|
1652
|
+
/** Restrict to specific countries (lowercase ISO codes) */
|
|
1653
|
+
onlyCountries?: string[];
|
|
1654
|
+
/** If true, area codes are not shown in the dropdown */
|
|
1655
|
+
disableAreaCodes?: boolean;
|
|
1656
|
+
/** If false, the country code part of the input is not editable */
|
|
1657
|
+
countryCodeEditable?: boolean;
|
|
1658
|
+
/** Props applied to the native input element */
|
|
1659
|
+
inputProps?: InputHTMLAttributes<HTMLInputElement>;
|
|
1660
|
+
/** Margin mode */
|
|
1661
|
+
margin?: "none" | "dense" | "normal";
|
|
1662
|
+
/** Optional class name */
|
|
1663
|
+
className?: string;
|
|
1664
|
+
/** Inline style overrides */
|
|
1665
|
+
style?: CSSProperties;
|
|
1666
|
+
/** Scoped style overrides */
|
|
1667
|
+
sx?: SxProp;
|
|
1668
|
+
}
|
|
1669
|
+
declare const PhoneField: React__default.ForwardRefExoticComponent<PhoneFieldProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1670
|
+
|
|
1671
|
+
interface RufousTextEditorProps {
|
|
1672
|
+
content?: string;
|
|
1673
|
+
placeholder?: string;
|
|
1674
|
+
editable?: boolean;
|
|
1675
|
+
onSave?: (html: string, json: any) => void;
|
|
1676
|
+
onExport?: (html: string, json: any) => void;
|
|
1677
|
+
onChange?: (html: string, json: any) => void;
|
|
1678
|
+
onAICommand?: (prompt: string, text: string, previousResults?: string[]) => Promise<string>;
|
|
1679
|
+
onTranslate?: (text: string, sourceLang: string, targetLang: string) => Promise<string>;
|
|
1680
|
+
onSpeechToText?: (text: string) => Promise<string>;
|
|
1681
|
+
onTextToSpeech?: (text: string, voice?: string) => Promise<string>;
|
|
1682
|
+
mentions?: Array<{
|
|
1683
|
+
id: string;
|
|
1684
|
+
name: string;
|
|
1685
|
+
avatar?: string;
|
|
1686
|
+
}>;
|
|
1687
|
+
className?: string;
|
|
1688
|
+
style?: React__default.CSSProperties;
|
|
1689
|
+
}
|
|
1690
|
+
declare const RufousTextEditor: React__default.FC<RufousTextEditorProps>;
|
|
1691
|
+
|
|
1692
|
+
interface MentionItemData {
|
|
1693
|
+
id: string;
|
|
1694
|
+
name: string;
|
|
1695
|
+
avatar?: string;
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
export { APP_THEMES, Accordion, AccordionDetails, type AccordionDetailsProps, type AccordionProps, AccordionSummary, type AccordionSummaryProps, type Action, ActivateUserIcon, AddButton, AddressLookup, ArchivedIcon, AssignGroupIcon, Autocomplete, type AutocompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, BaseDialog, 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, Checkbox, type CheckboxProps, Chip, type ChipProps, CircularProgress, CircularProgressIcon, type CircularProgressIconProps, CloseIcon, Collapse, type CollapseProps, type Column, CopyIcon, 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, Fade, type FadeProps, FunctionIcon, Grid, type GridProps, Grow, type GrowProps, HelpOutlinedIcon, HierarchyIcon, IconButton, type IconButtonProps, ImageField, type ImageFieldProps, InactiveGroupIcon, IndustryIcon, InvoiceIcon, Link, type LinkProps, List, ListItem, ListItemButton, type ListItemButtonProps, ListItemIcon, type ListItemIconProps, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, LocationPinIcon, LogsIcon, type MentionItem, Menu, MenuDivider, MenuItem, type MenuItemProps, MenuList, type MenuListProps, type MenuProps, MinExperienceIcon, NineDotMenuIcon, NotificationIcon, Paper, type PaperProps, PhoneField, type PhoneFieldProps, Popover, type PopoverProps, Popper, type PopperProps, ProjectIcon, QualificationsIcon, QuestionStatusAllIcon, QuestionStatusPrivateIcon, QuestionStatusPublicIcon, QuestionTypeAllIcon, QuestionTypeCodingIcon, QuestionTypeDescriptiveIcon, QuestionTypeMultipleIcon, QuestionTypeSingleIcon, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Rating, type RatingProps, RefreshIcon, ResendInviteIcon, RichTextEditor, type RichTextEditorProps, RolesIcon, RufousAiIcon, RufousBirdIcon, RufousLauncherIcon, RufousLogoLoader, type RufousLogoLoaderProps, RufousTextEditor, type MentionItemData as RufousTextEditorMentionItem, type RufousTextEditorProps, RufousThemeProvider, Select, type SelectProps, SidebarIcon, Skeleton, type SkeletonProps, Slide, type SlideProps, Slider, type SliderProps, Snackbar, type SnackbarProps, SoftSkillsIcon, type SortDirection, Stack, type StackProps, StandardButton, Step, StepButton, type StepButtonProps, StepContent, type StepContentProps, StepLabel, type StepLabelProps, type StepProps, Stepper, type StepperProps, SubmitButton, SubscribeIcon, SuspendUserIcon, Switch, type SwitchProps, type SxProp, Tab, TabPanel, type TabPanelProps, type TabProps, Tabs, type TabsProps, TechnicalSkillsIcon, TextField, type TextFieldProps, TickIcon, TimerIcon, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, Tooltip, type TooltipProps, TrashIcon, Typography, type TypographyProps, UnArchivedIcon, UnsubscribeIcon, UploadIcon, UserAssignIcon, ViewIcon, WorkItemIcon, Zoom, type ZoomProps, useRufousTheme };
|
package/dist/main.d.ts
CHANGED
|
@@ -920,7 +920,7 @@ interface RadioProps {
|
|
|
920
920
|
value: string | number;
|
|
921
921
|
label?: string;
|
|
922
922
|
checked?: boolean;
|
|
923
|
-
onChange?: (value: string | number) => void;
|
|
923
|
+
onChange?: (e: React__default.ChangeEvent<HTMLInputElement>, value: string | number) => void;
|
|
924
924
|
disabled?: boolean;
|
|
925
925
|
size?: "small" | "medium";
|
|
926
926
|
name?: string;
|
|
@@ -929,7 +929,7 @@ interface RadioProps {
|
|
|
929
929
|
declare const Radio: React__default.ForwardRefExoticComponent<RadioProps & React__default.RefAttributes<HTMLLabelElement>>;
|
|
930
930
|
interface RadioGroupProps {
|
|
931
931
|
value?: string | number;
|
|
932
|
-
onChange?: (value: string | number) => void;
|
|
932
|
+
onChange?: (e: React__default.ChangeEvent<HTMLInputElement>, value: string | number) => void;
|
|
933
933
|
name?: string;
|
|
934
934
|
options?: Array<{
|
|
935
935
|
value: string | number;
|
|
@@ -1610,8 +1610,8 @@ interface ImageFieldProps {
|
|
|
1610
1610
|
size?: "small" | "medium" | "large" | number;
|
|
1611
1611
|
/** Accepted file types (default: "image/*") */
|
|
1612
1612
|
accept?: string;
|
|
1613
|
-
/** Called with the selected File when user picks an image */
|
|
1614
|
-
onChange?: (file: File) => void;
|
|
1613
|
+
/** Called with the change event and selected File when user picks an image */
|
|
1614
|
+
onChange?: (e: React__default.ChangeEvent<HTMLInputElement>, file: File) => void;
|
|
1615
1615
|
/** Overlay label text (default: "Upload") */
|
|
1616
1616
|
overlayText?: string;
|
|
1617
1617
|
/** Disable interaction */
|
|
@@ -1622,4 +1622,77 @@ interface ImageFieldProps {
|
|
|
1622
1622
|
}
|
|
1623
1623
|
declare const ImageField: React__default.ForwardRefExoticComponent<ImageFieldProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1624
1624
|
|
|
1625
|
-
|
|
1625
|
+
interface PhoneFieldProps {
|
|
1626
|
+
/** The full phone value including dial code (e.g. "911234567890") */
|
|
1627
|
+
value?: string;
|
|
1628
|
+
/** Callback fired when the phone value changes */
|
|
1629
|
+
onChange?: (value: string, country: {
|
|
1630
|
+
dialCode: string;
|
|
1631
|
+
countryCode: string;
|
|
1632
|
+
name: string;
|
|
1633
|
+
}) => void;
|
|
1634
|
+
/** Label text */
|
|
1635
|
+
label?: string;
|
|
1636
|
+
/** Visual variant */
|
|
1637
|
+
variant?: "outlined" | "filled" | "standard";
|
|
1638
|
+
/** Size of the component */
|
|
1639
|
+
size?: "small" | "medium";
|
|
1640
|
+
/** If true, displays error styling */
|
|
1641
|
+
error?: boolean;
|
|
1642
|
+
/** Helper text below the input */
|
|
1643
|
+
helperText?: ReactNode;
|
|
1644
|
+
/** If true, the input takes full width */
|
|
1645
|
+
fullWidth?: boolean;
|
|
1646
|
+
/** If true, the input is disabled */
|
|
1647
|
+
disabled?: boolean;
|
|
1648
|
+
/** If true, the field is required */
|
|
1649
|
+
required?: boolean;
|
|
1650
|
+
/** Default country ISO code (lowercase, e.g. "in") */
|
|
1651
|
+
defaultCountry?: string;
|
|
1652
|
+
/** Restrict to specific countries (lowercase ISO codes) */
|
|
1653
|
+
onlyCountries?: string[];
|
|
1654
|
+
/** If true, area codes are not shown in the dropdown */
|
|
1655
|
+
disableAreaCodes?: boolean;
|
|
1656
|
+
/** If false, the country code part of the input is not editable */
|
|
1657
|
+
countryCodeEditable?: boolean;
|
|
1658
|
+
/** Props applied to the native input element */
|
|
1659
|
+
inputProps?: InputHTMLAttributes<HTMLInputElement>;
|
|
1660
|
+
/** Margin mode */
|
|
1661
|
+
margin?: "none" | "dense" | "normal";
|
|
1662
|
+
/** Optional class name */
|
|
1663
|
+
className?: string;
|
|
1664
|
+
/** Inline style overrides */
|
|
1665
|
+
style?: CSSProperties;
|
|
1666
|
+
/** Scoped style overrides */
|
|
1667
|
+
sx?: SxProp;
|
|
1668
|
+
}
|
|
1669
|
+
declare const PhoneField: React__default.ForwardRefExoticComponent<PhoneFieldProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1670
|
+
|
|
1671
|
+
interface RufousTextEditorProps {
|
|
1672
|
+
content?: string;
|
|
1673
|
+
placeholder?: string;
|
|
1674
|
+
editable?: boolean;
|
|
1675
|
+
onSave?: (html: string, json: any) => void;
|
|
1676
|
+
onExport?: (html: string, json: any) => void;
|
|
1677
|
+
onChange?: (html: string, json: any) => void;
|
|
1678
|
+
onAICommand?: (prompt: string, text: string, previousResults?: string[]) => Promise<string>;
|
|
1679
|
+
onTranslate?: (text: string, sourceLang: string, targetLang: string) => Promise<string>;
|
|
1680
|
+
onSpeechToText?: (text: string) => Promise<string>;
|
|
1681
|
+
onTextToSpeech?: (text: string, voice?: string) => Promise<string>;
|
|
1682
|
+
mentions?: Array<{
|
|
1683
|
+
id: string;
|
|
1684
|
+
name: string;
|
|
1685
|
+
avatar?: string;
|
|
1686
|
+
}>;
|
|
1687
|
+
className?: string;
|
|
1688
|
+
style?: React__default.CSSProperties;
|
|
1689
|
+
}
|
|
1690
|
+
declare const RufousTextEditor: React__default.FC<RufousTextEditorProps>;
|
|
1691
|
+
|
|
1692
|
+
interface MentionItemData {
|
|
1693
|
+
id: string;
|
|
1694
|
+
name: string;
|
|
1695
|
+
avatar?: string;
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
export { APP_THEMES, Accordion, AccordionDetails, type AccordionDetailsProps, type AccordionProps, AccordionSummary, type AccordionSummaryProps, type Action, ActivateUserIcon, AddButton, AddressLookup, ArchivedIcon, AssignGroupIcon, Autocomplete, type AutocompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, BaseDialog, 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, Checkbox, type CheckboxProps, Chip, type ChipProps, CircularProgress, CircularProgressIcon, type CircularProgressIconProps, CloseIcon, Collapse, type CollapseProps, type Column, CopyIcon, 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, Fade, type FadeProps, FunctionIcon, Grid, type GridProps, Grow, type GrowProps, HelpOutlinedIcon, HierarchyIcon, IconButton, type IconButtonProps, ImageField, type ImageFieldProps, InactiveGroupIcon, IndustryIcon, InvoiceIcon, Link, type LinkProps, List, ListItem, ListItemButton, type ListItemButtonProps, ListItemIcon, type ListItemIconProps, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, LocationPinIcon, LogsIcon, type MentionItem, Menu, MenuDivider, MenuItem, type MenuItemProps, MenuList, type MenuListProps, type MenuProps, MinExperienceIcon, NineDotMenuIcon, NotificationIcon, Paper, type PaperProps, PhoneField, type PhoneFieldProps, Popover, type PopoverProps, Popper, type PopperProps, ProjectIcon, QualificationsIcon, QuestionStatusAllIcon, QuestionStatusPrivateIcon, QuestionStatusPublicIcon, QuestionTypeAllIcon, QuestionTypeCodingIcon, QuestionTypeDescriptiveIcon, QuestionTypeMultipleIcon, QuestionTypeSingleIcon, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Rating, type RatingProps, RefreshIcon, ResendInviteIcon, RichTextEditor, type RichTextEditorProps, RolesIcon, RufousAiIcon, RufousBirdIcon, RufousLauncherIcon, RufousLogoLoader, type RufousLogoLoaderProps, RufousTextEditor, type MentionItemData as RufousTextEditorMentionItem, type RufousTextEditorProps, RufousThemeProvider, Select, type SelectProps, SidebarIcon, Skeleton, type SkeletonProps, Slide, type SlideProps, Slider, type SliderProps, Snackbar, type SnackbarProps, SoftSkillsIcon, type SortDirection, Stack, type StackProps, StandardButton, Step, StepButton, type StepButtonProps, StepContent, type StepContentProps, StepLabel, type StepLabelProps, type StepProps, Stepper, type StepperProps, SubmitButton, SubscribeIcon, SuspendUserIcon, Switch, type SwitchProps, type SxProp, Tab, TabPanel, type TabPanelProps, type TabProps, Tabs, type TabsProps, TechnicalSkillsIcon, TextField, type TextFieldProps, TickIcon, TimerIcon, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, Tooltip, type TooltipProps, TrashIcon, Typography, type TypographyProps, UnArchivedIcon, UnsubscribeIcon, UploadIcon, UserAssignIcon, ViewIcon, WorkItemIcon, Zoom, type ZoomProps, useRufousTheme };
|