@rufous/ui 0.1.87 → 0.1.89
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 +737 -435
- package/dist/main.css +154 -2
- package/dist/main.d.cts +51 -5
- package/dist/main.d.ts +51 -5
- package/dist/main.js +720 -413
- package/package.json +1 -1
package/dist/main.css
CHANGED
|
@@ -1099,7 +1099,7 @@
|
|
|
1099
1099
|
--text-secondary: #666666;
|
|
1100
1100
|
--border-color: #e0e0e0;
|
|
1101
1101
|
--hover-color: #fff5f5;
|
|
1102
|
-
--selection-color: #
|
|
1102
|
+
--selection-color: #a41b0614;
|
|
1103
1103
|
--icon-color: #a41b06;
|
|
1104
1104
|
}
|
|
1105
1105
|
.dialog-overlay.overlay-fullscreen {
|
|
@@ -5832,6 +5832,158 @@ pre {
|
|
|
5832
5832
|
filter: grayscale(60%);
|
|
5833
5833
|
}
|
|
5834
5834
|
|
|
5835
|
+
/* lib/styles/phone-field.css */
|
|
5836
|
+
.rf-phone-field {
|
|
5837
|
+
position: relative;
|
|
5838
|
+
}
|
|
5839
|
+
.rf-phone-field--margin-normal {
|
|
5840
|
+
margin-top: 16px;
|
|
5841
|
+
margin-bottom: 8px;
|
|
5842
|
+
}
|
|
5843
|
+
.rf-phone-field--margin-dense {
|
|
5844
|
+
margin-top: 8px;
|
|
5845
|
+
margin-bottom: 4px;
|
|
5846
|
+
}
|
|
5847
|
+
.rf-phone-field__country-selector {
|
|
5848
|
+
display: flex;
|
|
5849
|
+
align-items: center;
|
|
5850
|
+
gap: 2px;
|
|
5851
|
+
padding: 0 2px 0 8px;
|
|
5852
|
+
cursor: pointer;
|
|
5853
|
+
user-select: none;
|
|
5854
|
+
flex-shrink: 0;
|
|
5855
|
+
border: none;
|
|
5856
|
+
background: none;
|
|
5857
|
+
outline: none;
|
|
5858
|
+
border-radius: 4px;
|
|
5859
|
+
transition: background-color 0.15s;
|
|
5860
|
+
}
|
|
5861
|
+
.rf-text-field--filled .rf-phone-field__country-selector {
|
|
5862
|
+
padding: 17px 2px 0 8px;
|
|
5863
|
+
}
|
|
5864
|
+
.rf-text-field--standard .rf-phone-field__country-selector {
|
|
5865
|
+
padding: 15px 2px 0 8px;
|
|
5866
|
+
}
|
|
5867
|
+
.rf-phone-field__country-selector:hover {
|
|
5868
|
+
cursor: pointer;
|
|
5869
|
+
}
|
|
5870
|
+
.rf-phone-field__country-selector--disabled {
|
|
5871
|
+
pointer-events: none;
|
|
5872
|
+
opacity: 0.5;
|
|
5873
|
+
cursor: default;
|
|
5874
|
+
}
|
|
5875
|
+
.rf-phone-field__flag {
|
|
5876
|
+
font-size: 18px;
|
|
5877
|
+
line-height: 1;
|
|
5878
|
+
}
|
|
5879
|
+
.rf-phone-field__dial-code {
|
|
5880
|
+
color: var(--tf-text-color, #333);
|
|
5881
|
+
white-space: nowrap;
|
|
5882
|
+
}
|
|
5883
|
+
.rf-phone-field__chevron {
|
|
5884
|
+
display: flex;
|
|
5885
|
+
align-items: center;
|
|
5886
|
+
color: var(--tf-placeholder-color, #888);
|
|
5887
|
+
transition: transform 0.2s;
|
|
5888
|
+
}
|
|
5889
|
+
.rf-phone-field .rf-text-field__wrapper {
|
|
5890
|
+
display: flex;
|
|
5891
|
+
align-items: center;
|
|
5892
|
+
}
|
|
5893
|
+
.rf-phone-field .rf-text-field__label {
|
|
5894
|
+
transform: translate(14px, -9px) scale(0.75) !important;
|
|
5895
|
+
}
|
|
5896
|
+
.rf-phone-field.rf-text-field--filled .rf-text-field__label {
|
|
5897
|
+
transform: translate(12px, 4px) scale(0.75) !important;
|
|
5898
|
+
}
|
|
5899
|
+
.rf-phone-field.rf-text-field--standard .rf-text-field__label {
|
|
5900
|
+
transform: translate(0, -18px) scale(0.75) !important;
|
|
5901
|
+
}
|
|
5902
|
+
.rf-phone-field.rf-text-field--small.rf-text-field--outlined .rf-text-field__label {
|
|
5903
|
+
transform: translate(14px, -7px) scale(0.75) !important;
|
|
5904
|
+
}
|
|
5905
|
+
.rf-phone-field.rf-text-field--small.rf-text-field--filled .rf-text-field__label {
|
|
5906
|
+
transform: translate(12px, 2px) scale(0.75) !important;
|
|
5907
|
+
}
|
|
5908
|
+
.rf-phone-field .rf-text-field__legend {
|
|
5909
|
+
max-width: 100% !important;
|
|
5910
|
+
}
|
|
5911
|
+
.rf-phone-field__divider {
|
|
5912
|
+
width: 1px;
|
|
5913
|
+
height: 60%;
|
|
5914
|
+
background-color: var(--tf-border-color, #c4c4c4);
|
|
5915
|
+
flex-shrink: 0;
|
|
5916
|
+
}
|
|
5917
|
+
.rf-phone-field__input {
|
|
5918
|
+
flex: 1;
|
|
5919
|
+
min-width: 0;
|
|
5920
|
+
}
|
|
5921
|
+
.rf-phone-field__popup.rf-select__popup {
|
|
5922
|
+
position: fixed;
|
|
5923
|
+
top: 0;
|
|
5924
|
+
left: 0;
|
|
5925
|
+
right: auto;
|
|
5926
|
+
width: max-content;
|
|
5927
|
+
min-width: 280px;
|
|
5928
|
+
max-width: 360px;
|
|
5929
|
+
z-index: 1400;
|
|
5930
|
+
overflow: hidden;
|
|
5931
|
+
}
|
|
5932
|
+
.rf-phone-field__search-indicator {
|
|
5933
|
+
padding: 6px 12px;
|
|
5934
|
+
font-size: 12px;
|
|
5935
|
+
color: var(--tf-placeholder-color, #888);
|
|
5936
|
+
border-bottom: 1px solid var(--tf-border-color, #e0e0e0);
|
|
5937
|
+
background: var(--rf-surface-variant, #f5f5f5);
|
|
5938
|
+
}
|
|
5939
|
+
.rf-phone-field__popup .rf-select__listbox {
|
|
5940
|
+
max-height: inherit;
|
|
5941
|
+
}
|
|
5942
|
+
.rf-phone-field__option {
|
|
5943
|
+
display: flex;
|
|
5944
|
+
align-items: center;
|
|
5945
|
+
gap: 10px;
|
|
5946
|
+
padding: 8px 12px;
|
|
5947
|
+
cursor: pointer;
|
|
5948
|
+
transition: background-color 0.1s;
|
|
5949
|
+
font-size: 14px;
|
|
5950
|
+
}
|
|
5951
|
+
.rf-phone-field__option:hover,
|
|
5952
|
+
.rf-phone-field__option--focused {
|
|
5953
|
+
background-color: var(--hover-color);
|
|
5954
|
+
}
|
|
5955
|
+
.rf-phone-field__option--selected {
|
|
5956
|
+
background-color: var(--selection-color);
|
|
5957
|
+
font-weight: 500;
|
|
5958
|
+
}
|
|
5959
|
+
.rf-phone-field__option--selected.rf-phone-field__option--focused {
|
|
5960
|
+
background-color: var(--rf-selected-hover, rgba(25, 118, 210, 0.12));
|
|
5961
|
+
}
|
|
5962
|
+
.rf-phone-field__option-flag {
|
|
5963
|
+
font-size: 18px;
|
|
5964
|
+
line-height: 1;
|
|
5965
|
+
flex-shrink: 0;
|
|
5966
|
+
}
|
|
5967
|
+
.rf-phone-field__option-name {
|
|
5968
|
+
flex: 1;
|
|
5969
|
+
min-width: 0;
|
|
5970
|
+
overflow: hidden;
|
|
5971
|
+
text-overflow: ellipsis;
|
|
5972
|
+
white-space: nowrap;
|
|
5973
|
+
color: var(--tf-text-color, #333);
|
|
5974
|
+
}
|
|
5975
|
+
.rf-phone-field__option-code {
|
|
5976
|
+
color: var(--tf-placeholder-color, #888);
|
|
5977
|
+
font-size: 13px;
|
|
5978
|
+
flex-shrink: 0;
|
|
5979
|
+
}
|
|
5980
|
+
.rf-phone-field__no-results {
|
|
5981
|
+
padding: 12px;
|
|
5982
|
+
text-align: center;
|
|
5983
|
+
color: var(--tf-placeholder-color, #888);
|
|
5984
|
+
font-size: 14px;
|
|
5985
|
+
}
|
|
5986
|
+
|
|
5835
5987
|
/* lib/styles/button.css */
|
|
5836
5988
|
.btn {
|
|
5837
5989
|
padding: 10px 20px;
|
|
@@ -6270,7 +6422,7 @@ pre {
|
|
|
6270
6422
|
margin-top: 17px;
|
|
6271
6423
|
}
|
|
6272
6424
|
.rf-text-field--adorned-start .rf-text-field__input {
|
|
6273
|
-
padding-left:
|
|
6425
|
+
padding-left: 0px;
|
|
6274
6426
|
}
|
|
6275
6427
|
.rf-text-field--adorned-end .rf-text-field__input {
|
|
6276
6428
|
padding-right: 8px;
|
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,6 +1622,52 @@ interface ImageFieldProps {
|
|
|
1622
1622
|
}
|
|
1623
1623
|
declare const ImageField: React__default.ForwardRefExoticComponent<ImageFieldProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1624
1624
|
|
|
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
|
+
|
|
1625
1671
|
interface RufousTextEditorProps {
|
|
1626
1672
|
content?: string;
|
|
1627
1673
|
placeholder?: string;
|
|
@@ -1649,4 +1695,4 @@ interface MentionItemData {
|
|
|
1649
1695
|
avatar?: string;
|
|
1650
1696
|
}
|
|
1651
1697
|
|
|
1652
|
-
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, 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 };
|
|
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,6 +1622,52 @@ interface ImageFieldProps {
|
|
|
1622
1622
|
}
|
|
1623
1623
|
declare const ImageField: React__default.ForwardRefExoticComponent<ImageFieldProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1624
1624
|
|
|
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
|
+
|
|
1625
1671
|
interface RufousTextEditorProps {
|
|
1626
1672
|
content?: string;
|
|
1627
1673
|
placeholder?: string;
|
|
@@ -1649,4 +1695,4 @@ interface MentionItemData {
|
|
|
1649
1695
|
avatar?: string;
|
|
1650
1696
|
}
|
|
1651
1697
|
|
|
1652
|
-
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, 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 };
|
|
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 };
|