@ringcentral/spring-ui 1.7.0 → 1.8.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/Alert.js +3 -3
- package/Announcement.js +1 -1
- package/Autocomplete.js +174 -236
- package/Avatar.js +27 -13
- package/BottomNavigation.js +0 -3
- package/Checkbox.js +0 -2
- package/DatePicker.js +5 -13
- package/DateUtilsContext.js +0 -1
- package/Dialer.js +2 -50
- package/Dialog.js +4 -4
- package/Dropdown.js +0 -7
- package/FocusTrap.js +0 -32
- package/InlineEditable.js +0 -4
- package/Link.js +1 -1
- package/ListItem.js +1 -1
- package/ListNavigation.js +0 -6
- package/Menu.js +1 -1
- package/MenuDivider.js +2 -2
- package/MenuFooter.js +4 -4
- package/MenuHeader.js +4 -4
- package/MenuItem.js +1 -1
- package/MenuItemText.js +1 -1
- package/PageHeader.js +6 -4
- package/Popper.js +0 -1
- package/Rating.js +0 -5
- package/SingleFilter.js +0 -1
- package/Slider.js +1 -4
- package/Snackbar.js +0 -14
- package/SortableListItem.js +0 -1
- package/SplitButton.js +1 -3
- package/StatusIndicator.js +1 -1
- package/SubMenu.js +0 -4
- package/SwipeableDrawer.js +8 -146
- package/Switch.js +1 -4
- package/Tab.js +7 -8
- package/TabContext.js +0 -5
- package/TableBody.js +1 -1
- package/TableCell.js +0 -6
- package/TableRow.js +0 -1
- package/Tabs.js +20 -118
- package/Text.js +2 -4
- package/TimePicker.js +7 -46
- package/VirtualizedList.js +2 -30
- package/chunks/Alert.js +8 -7
- package/chunks/BottomNavigationItem.js +0 -1
- package/chunks/Button.js +0 -1
- package/chunks/Chip.js +0 -5
- package/chunks/Drawer.js +1 -30
- package/chunks/ListItem.js +3 -6
- package/chunks/Menu.js +3 -3
- package/chunks/MenuDivider.js +2 -3
- package/chunks/MenuItemText.js +3 -3
- package/chunks/MenuList.js +0 -3
- package/chunks/PickerTextField.js +0 -1
- package/chunks/Popover.js +0 -5
- package/chunks/Select.js +2 -39
- package/chunks/Squircle.js +0 -7
- package/chunks/StatusIndicator.js +1 -0
- package/chunks/StepIcon.js +1 -3
- package/chunks/StepperContext.js +0 -7
- package/chunks/Tooltip.js +0 -36
- package/chunks/VirtualizedMenu.js +2 -78
- package/chunks/getFade.js +2 -0
- package/chunks/useFocusTrapStack.js +0 -8
- package/chunks/useHelperTextId.js +0 -24
- package/chunks/useListNavigation.js +2 -17
- package/chunks/useMenuItemSelect.js +6 -19
- package/chunks/useMotionSafeTransition.js +0 -4
- package/chunks/useNestedParentMenu.js +0 -2
- package/chunks/usePrefersReducedMotion.js +0 -10
- package/chunks/useTooltipForceHide.js +0 -4
- package/chunks/useTrayNavigate.js +0 -1
- package/index.css +392 -120
- package/index.js +1 -1
- package/package.json +4 -4
- package/src/Accordion/Accordion.type.d.ts +0 -21
- package/src/AccordionHeader/AccordionHeader.type.d.ts +0 -14
- package/src/Alert/Alert.type.d.ts +0 -32
- package/src/Animation/components/ExpandCollapseCaret/ExpandCollapseCaret.d.ts +0 -4
- package/src/Animation/components/ShowHideEye/ShowHideEye.d.ts +0 -4
- package/src/Animation/hooks/useMotionSafeTransition/useMotionSafeTransition.d.ts +0 -4
- package/src/Autocomplete/Autocomplete.d.ts +0 -5
- package/src/Autocomplete/Autocomplete.type.d.ts +0 -84
- package/src/Autocomplete/SuggestionList/SuggestionList.d.ts +5 -89
- package/src/Autocomplete/SuggestionList/SuggestionListItem.d.ts +0 -2
- package/src/Autocomplete/SuggestionList/utils/SuggestionListItem.d.ts +1 -13
- package/src/Autocomplete/SuggestionList/utils/useDynamicHeight.d.ts +0 -6
- package/src/Autocomplete/SuggestionList/utils/useHighlightScroll.d.ts +0 -20
- package/src/Autocomplete/SuggestionList/utils/useSuggestionList.d.ts +3 -41
- package/src/Autocomplete/SuggestionList/utils/useSuggestionListGroup.d.ts +0 -49
- package/src/Autocomplete/useAutocomplete.d.ts +1 -62
- package/src/Autocomplete/useAutocompleteTag.d.ts +0 -33
- package/src/Avatar/Avatar.type.d.ts +0 -58
- package/src/AvatarGroup/AvatarGroup.type.d.ts +0 -3
- package/src/Backdrop/Backdrop.type.d.ts +0 -4
- package/src/Badge/Badge.type.d.ts +0 -33
- package/src/Block/Block.type.d.ts +0 -24
- package/src/BlockHeader/BlockHeader.type.d.ts +0 -5
- package/src/BottomNavigation/BottomNavigation.type.d.ts +0 -34
- package/src/BottomNavigationItem/BottomNavigationItem.type.d.ts +0 -39
- package/src/Button/Button.type.d.ts +0 -30
- package/src/CallButton/CallButton.type.d.ts +0 -4
- package/src/Checkbox/Checkbox.type.d.ts +0 -17
- package/src/Chip/Chip.type.d.ts +0 -41
- package/src/CircularProgressIndicator/CircularProgressIndicator.type.d.ts +0 -19
- package/src/DatePicker/Calendar.d.ts +1 -20
- package/src/DatePicker/DatePicker.type.d.ts +0 -18
- package/src/DatePicker/DatePickerHeader.d.ts +1 -12
- package/src/DatePicker/Day.d.ts +0 -7
- package/src/DatePicker/Year.d.ts +0 -6
- package/src/DatePicker/Years.d.ts +0 -7
- package/src/Dialer/DialDelete/DialDelete.d.ts +0 -3
- package/src/Dialer/DialPad/DialPad.d.ts +0 -106
- package/src/Dialer/DialPad/utils/types.d.ts +0 -5
- package/src/Dialer/DialPad/utils/useDialKeyboard.d.ts +0 -5
- package/src/Dialer/DialPad/utils/useKeyAudio.d.ts +0 -9
- package/src/Dialer/DialPadButton/DialPadButton.d.ts +0 -14
- package/src/Dialer/DialTextField/DialTextField.d.ts +0 -23
- package/src/Dialer/DialTextField/utils/getDialPadValueOnlyRegex.d.ts +0 -3
- package/src/Dialer/DialTextField/utils/useFixedEndSelection.d.ts +0 -3
- package/src/Dialog/Dialog.type.d.ts +0 -11
- package/src/Divider/Divider.type.d.ts +0 -17
- package/src/DragHandle/DragHandle.type.d.ts +0 -4
- package/src/Drawer/Drawer.d.ts +0 -28
- package/src/Drawer/Drawer.type.d.ts +0 -84
- package/src/Dropdown/Dropdown.type.d.ts +0 -64
- package/src/EmptyState/EmptyState.type.d.ts +0 -12
- package/src/FabButton/FabButton.type.d.ts +0 -5
- package/src/FocusTrap/FocusTrap.d.ts +0 -38
- package/src/FocusTrap/useFocusTrapStack.d.ts +0 -9
- package/src/FormField/FormField.type.d.ts +0 -26
- package/src/FormField/useHelperTextId.d.ts +0 -25
- package/src/FormLabel/FormLabel.type.d.ts +0 -14
- package/src/Icon/Icon.type.d.ts +0 -15
- package/src/IconButton/IconButton.type.d.ts +0 -30
- package/src/IconButton/IconButtonLabel.type.d.ts +0 -3
- package/src/IconButtonGroup/IconButtonGroup.type.d.ts +0 -8
- package/src/InlineEditable/InlineEditable.type.d.ts +0 -75
- package/src/LinearProgressIndicator/LinearProgressIndicator.type.d.ts +0 -31
- package/src/Link/Link.classes.d.ts +1 -1
- package/src/Link/Link.type.d.ts +1 -10
- package/src/ListItem/ListItem.type.d.ts +0 -41
- package/src/ListItemText/ListItemText.type.d.ts +0 -21
- package/src/ListNavigation/useListNavigation.d.ts +0 -16
- package/src/Menu/Menu.type.d.ts +0 -10
- package/src/MenuFooter/MenuFooter.type.d.ts +0 -4
- package/src/MenuHeader/MenuHeader.type.d.ts +0 -10
- package/src/MenuItem/MenuItem.type.d.ts +0 -19
- package/src/MenuItem/MenuItemSelectContext.d.ts +0 -3
- package/src/MenuItem/useMenuItemSelect.d.ts +0 -21
- package/src/MenuItemText/MenuItemText.type.d.ts +0 -17
- package/src/MenuList/MenuList.type.d.ts +0 -4
- package/src/MenuList/MenuListContext.d.ts +0 -6
- package/src/Modal/InnerModal.type.d.ts +0 -5
- package/src/Modal/Modal.type.d.ts +0 -11
- package/src/Modal/ModalContext.d.ts +0 -4
- package/src/Option/Option.type.d.ts +0 -3
- package/src/Overlap/Overlap.type.d.ts +0 -11
- package/src/PageHeader/PageHeader.type.d.ts +0 -4
- package/src/PickerTextField/PickerTextField.type.d.ts +0 -10
- package/src/Popover/Popover.type.d.ts +0 -29
- package/src/Popper/Popper.type.d.ts +0 -61
- package/src/Radio/Radio.type.d.ts +0 -5
- package/src/RadioGroup/RadioGroup.type.d.ts +0 -4
- package/src/Rating/Rating.type.d.ts +0 -74
- package/src/Select/Select.type.d.ts +0 -84
- package/src/SingleFilter/FilterButton/FilterButton.type.d.ts +0 -16
- package/src/SingleFilter/SingleFilter.type.d.ts +0 -26
- package/src/Skeleton/Skeleton.type.d.ts +0 -1
- package/src/Skeleton/SkeletonContainer/SkeletonContainer.classes.d.ts +1 -1
- package/src/Slider/Slider.classes.d.ts +1 -5
- package/src/Slider/Slider.type.d.ts +0 -104
- package/src/Snackbar/Snackbar.type.d.ts +0 -18
- package/src/SplitButton/SplitButton.type.d.ts +0 -21
- package/src/Squircle/Squircle.type.d.ts +0 -3
- package/src/StatusIndicator/StatusIndicator.classes.d.ts +1 -1
- package/src/StatusIndicator/StatusIndicator.type.d.ts +1 -9
- package/src/Step/Step.type.d.ts +0 -29
- package/src/Step/StepContext.d.ts +0 -7
- package/src/StepButton/StepButton.type.d.ts +0 -15
- package/src/StepContent/StepContent.type.d.ts +0 -7
- package/src/StepIcon/StepIcon.type.d.ts +0 -26
- package/src/StepLabel/StepLabel.type.d.ts +0 -23
- package/src/Stepper/Stepper.type.d.ts +0 -27
- package/src/SwipeableDrawer/SwipeableDrawer.d.ts +0 -26
- package/src/SwipeableDrawer/SwipeableDrawer.types.d.ts +0 -67
- package/src/SwipeableDrawer/hooks/useDrawerGestures.d.ts +0 -110
- package/src/SwipeableDrawer/hooks/useElementSizeObserver.d.ts +0 -5
- package/src/SwipeableDrawer/hooks/useSnapPoints.d.ts +0 -60
- package/src/Switch/Switch.type.d.ts +0 -9
- package/src/Tab/Tab.classes.d.ts +3 -2
- package/src/Tab/Tab.type.d.ts +0 -29
- package/src/TabContext/TabContext.d.ts +0 -4
- package/src/TabContext/TabContext.type.d.ts +0 -7
- package/src/TabPanel/TabPanel.type.d.ts +0 -10
- package/src/Table/Table.type.d.ts +0 -19
- package/src/TableBody/TableBody.type.d.ts +0 -3
- package/src/TableCell/TableCell.d.ts +0 -4
- package/src/TableCell/TableCell.type.d.ts +0 -35
- package/src/TableContainer/TableContainer.type.d.ts +0 -7
- package/src/TableFooter/TableFooter.type.d.ts +0 -3
- package/src/TableHead/TableHead.type.d.ts +0 -6
- package/src/TablePagination/TablePagination.type.d.ts +0 -47
- package/src/TableRow/TableRow.type.d.ts +0 -17
- package/src/Tabs/TabMoreMenu.d.ts +0 -16
- package/src/Tabs/TabScrollButton.d.ts +0 -10
- package/src/Tabs/Tabs.classes.d.ts +1 -1
- package/src/Tabs/Tabs.d.ts +1 -1
- package/src/Tabs/Tabs.type.d.ts +2 -36
- package/src/Tabs/TabsContext.d.ts +2 -0
- package/src/Tabs/hooks/useTabsScroller.d.ts +0 -30
- package/src/Tag/Tag.type.d.ts +0 -12
- package/src/Text/Text.type.d.ts +0 -13
- package/src/TextField/TextField.type.d.ts +0 -64
- package/src/Textarea/Textarea.type.d.ts +0 -13
- package/src/TimePicker/NumberPicker.type.d.ts +0 -12
- package/src/TimePicker/SelectionView.d.ts +0 -6
- package/src/TimePicker/TimeButton.d.ts +0 -3
- package/src/TimePicker/TimePicker.type.d.ts +0 -11
- package/src/TimePicker/ToggleText.type.d.ts +0 -3
- package/src/TimePicker/utils/TimeBoundary.d.ts +0 -3
- package/src/TimePicker/utils/TimePickerHelper.d.ts +0 -19
- package/src/TimePicker/utils/getNumberPickerBoundary.d.ts +0 -3
- package/src/Tooltip/TooltipTrigger.a11y.d.ts +0 -9
- package/src/Tooltip/TooltipTrigger.type.d.ts +0 -44
- package/src/Tooltip/TooltipView.type.d.ts +0 -25
- package/src/Tooltip/useTooltipForceHide.d.ts +0 -4
- package/src/Tray/Tray.type.d.ts +0 -13
- package/src/Tray/TrayContext.d.ts +0 -4
- package/src/Tray/hooks/useTray.d.ts +0 -16
- package/src/Tray/hooks/useTrayPanel.d.ts +0 -3
- package/src/VirtualizedList/VirtualizedList.type.d.ts +0 -27
- package/src/VirtualizedMenu/VirtualizedMenu.type.d.ts +0 -17
|
@@ -4,55 +4,14 @@ import { ListItemClassesKey } from './ListItem.classes';
|
|
|
4
4
|
export declare type ListItemProps = StandardProps<{
|
|
5
5
|
hoverActions?: ReactNode;
|
|
6
6
|
size?: 'small' | 'large' | 'auto';
|
|
7
|
-
/**
|
|
8
|
-
* If true, show listItem divider
|
|
9
|
-
* @default true
|
|
10
|
-
*/
|
|
11
7
|
divider?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* If true, show dragged style
|
|
14
|
-
* @default false
|
|
15
|
-
*/
|
|
16
8
|
dragged?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* If true, show selected style
|
|
19
|
-
* @default false
|
|
20
|
-
*/
|
|
21
9
|
selected?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* If true, shows the focused state of the item by default.
|
|
24
|
-
* @default undefined
|
|
25
|
-
*/
|
|
26
10
|
focused?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Auto focus item when mounted.
|
|
29
|
-
*/
|
|
30
11
|
autoFocus?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* If false, no style about `active`.
|
|
33
|
-
*
|
|
34
|
-
* If unset and no click handler, it will be false.
|
|
35
|
-
*/
|
|
36
12
|
clickable?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* If false, no style about `active`
|
|
39
|
-
* @default true
|
|
40
|
-
*/
|
|
41
13
|
hoverable?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* If true, shows the hover state of the item by default.
|
|
44
|
-
* @default undefined
|
|
45
|
-
*/
|
|
46
14
|
highlighted?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* If true, hover actions will always show
|
|
49
|
-
* @default false
|
|
50
|
-
*/
|
|
51
15
|
alwaysShowHoverActions?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* If true, the transition of the hover actions will show instantly.
|
|
54
|
-
* If false or unset, it will use the default transition.
|
|
55
|
-
* @default false
|
|
56
|
-
*/
|
|
57
16
|
instantHoverActions?: boolean;
|
|
58
17
|
}, ListItemClassesKey, 'div'>;
|
|
@@ -3,31 +3,10 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
import { ListItemTextClassesKey } from './ListItemText.classes';
|
|
4
4
|
export declare type ListItemTextVariant = 'primary' | 'secondary';
|
|
5
5
|
export declare type ListItemTextProps = StandardProps<{
|
|
6
|
-
/**
|
|
7
|
-
* The primary content element. This is used in the same way as the `children` prop.
|
|
8
|
-
* @deprecated Use the `primary` prop instead.
|
|
9
|
-
*/
|
|
10
6
|
primaryText?: ReactNode;
|
|
11
|
-
/**
|
|
12
|
-
* The primary content element. This is used in the same way as the `children` prop.
|
|
13
|
-
*/
|
|
14
7
|
primary?: ReactNode;
|
|
15
|
-
/**
|
|
16
|
-
* The primary content element. This is used in the same way as the `primary` prop.
|
|
17
|
-
*/
|
|
18
8
|
children?: ReactNode;
|
|
19
|
-
/**
|
|
20
|
-
* The secondary content element.
|
|
21
|
-
* @deprecated Use the `secondary` prop instead.
|
|
22
|
-
*/
|
|
23
9
|
secondaryText?: ReactNode;
|
|
24
|
-
/**
|
|
25
|
-
* The secondary content element.
|
|
26
|
-
*/
|
|
27
10
|
secondary?: ReactNode;
|
|
28
|
-
/**
|
|
29
|
-
* The variant of the component. When the variant is `secondary`, only the `primary` prop is supported.
|
|
30
|
-
* @default primary
|
|
31
|
-
*/
|
|
32
11
|
variant?: ListItemTextVariant;
|
|
33
12
|
}, ListItemTextClassesKey, 'div'>;
|
|
@@ -11,26 +11,10 @@ export declare type SearchAndFocusItemHandler = (searchElementOption: SearchElem
|
|
|
11
11
|
isAfterBaseElement?: boolean;
|
|
12
12
|
};
|
|
13
13
|
export declare type UseListNavigationActions = {
|
|
14
|
-
/**
|
|
15
|
-
* Focus to first focusable item. If no focusable item, will focus to list.
|
|
16
|
-
*
|
|
17
|
-
* Invoking native focus function of list element can also focus first focusable item,
|
|
18
|
-
* but it's relatedTarget of focus event will be list element.
|
|
19
|
-
*/
|
|
20
14
|
focus: () => void;
|
|
21
15
|
};
|
|
22
16
|
export declare type UseListNavigationProps = {
|
|
23
|
-
/**
|
|
24
|
-
* If true, will prevent list container scroll when move focus via press
|
|
25
|
-
* ArrowDown or ArrowUp.
|
|
26
|
-
*
|
|
27
|
-
* @default true
|
|
28
|
-
*/
|
|
29
17
|
preventContainerScroll?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Custom focus item logic. It is useful for virtual list.
|
|
32
|
-
* Because virtual list will not render full dom element.
|
|
33
|
-
*/
|
|
34
18
|
searchAndFocusItemHandler?: SearchAndFocusItemHandler;
|
|
35
19
|
actions?: Ref<UseListNavigationActions>;
|
|
36
20
|
};
|
package/src/Menu/Menu.type.d.ts
CHANGED
|
@@ -3,17 +3,7 @@ import { SyntheticEvent } from 'react';
|
|
|
3
3
|
import { Popover, PopoverCloseReason } from '../Popover';
|
|
4
4
|
import { MenuClassesKey } from './Menu.classes';
|
|
5
5
|
export declare type MenuProps = StandardProps<{
|
|
6
|
-
/**
|
|
7
|
-
* Triggered when focus leaves the menu and the menu should close.
|
|
8
|
-
*/
|
|
9
6
|
onClose?: (event: SyntheticEvent<HTMLElement> | undefined, reason: PopoverCloseReason | 'Other') => void;
|
|
10
|
-
/**
|
|
11
|
-
* Controls whether the menu is displayed.
|
|
12
|
-
*/
|
|
13
7
|
open: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* If true, auto focus to menu list
|
|
16
|
-
* @default true
|
|
17
|
-
*/
|
|
18
8
|
autoFocus?: boolean;
|
|
19
9
|
}, MenuClassesKey, typeof Popover>;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { StandardProps } from '@ringcentral/spring-base';
|
|
2
2
|
import { MenuFooterClassesKey } from './MenuFooter.classes';
|
|
3
3
|
export declare type MenuFooterProps = StandardProps<{
|
|
4
|
-
/**
|
|
5
|
-
* If true, show divider
|
|
6
|
-
* @default true
|
|
7
|
-
*/
|
|
8
4
|
divider?: boolean;
|
|
9
5
|
}, MenuFooterClassesKey, 'div'>;
|
|
@@ -2,17 +2,7 @@ import { StandardProps } from '@ringcentral/spring-base';
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { MenuHeaderClassesKey } from './MenuHeader.classes';
|
|
4
4
|
export declare type MenuHeaderProps = StandardProps<{
|
|
5
|
-
/**
|
|
6
|
-
* Start slot for putting an IconButton
|
|
7
|
-
*/
|
|
8
5
|
start?: ReactNode;
|
|
9
|
-
/**
|
|
10
|
-
* End slot for putting a IconButton
|
|
11
|
-
*/
|
|
12
6
|
end?: ReactNode;
|
|
13
|
-
/**
|
|
14
|
-
* If true, show divider
|
|
15
|
-
* @default true
|
|
16
|
-
*/
|
|
17
7
|
divider?: boolean;
|
|
18
8
|
}, MenuHeaderClassesKey, 'div'>;
|
|
@@ -2,28 +2,9 @@ import { UseMenuItemParameters } from '@mui/base';
|
|
|
2
2
|
import { StandardProps } from '@ringcentral/spring-base';
|
|
3
3
|
import { MenuItemClassesKey } from './MenuItem.classes';
|
|
4
4
|
export declare type MenuItemProps = StandardProps<{
|
|
5
|
-
/**
|
|
6
|
-
* If not undefined, apply selectable styling.
|
|
7
|
-
* @default undefined
|
|
8
|
-
*/
|
|
9
5
|
selected?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* If not undefined, shows the hover state of the item by default.
|
|
12
|
-
* @default undefined
|
|
13
|
-
*/
|
|
14
6
|
highlighted?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* If not undefined, shows the focused state of the item by default.
|
|
17
|
-
* @default undefined
|
|
18
|
-
*/
|
|
19
7
|
focused?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Auto focus item when mounted.
|
|
22
|
-
*/
|
|
23
8
|
autoFocus?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Auto close menu after click item.
|
|
26
|
-
* @default true
|
|
27
|
-
*/
|
|
28
9
|
autoClose?: boolean;
|
|
29
10
|
} & Omit<UseMenuItemParameters, 'label' | 'rootRef'>, MenuItemClassesKey, 'div'>;
|
|
@@ -10,32 +10,11 @@ declare type MultipleModeOnChange<T> = (value: T[], operation: {
|
|
|
10
10
|
declare type SingleModeOnChange<T> = (value: T) => void;
|
|
11
11
|
export declare type MenuItemSelectProps<T = unknown, M extends SelectMode = 'single'> = UseMenuItemSelectParameters<T, M>;
|
|
12
12
|
export declare type UseMenuItemSelectParameters<T = unknown, S extends SelectMode = 'single'> = {
|
|
13
|
-
/**
|
|
14
|
-
* @default 'menu'
|
|
15
|
-
*/
|
|
16
13
|
widget?: 'menu' | 'select';
|
|
17
|
-
/**
|
|
18
|
-
* The select mode of the menu items.
|
|
19
|
-
* @default 'single'
|
|
20
|
-
*/
|
|
21
14
|
selectMode?: 'single' | 'multiple';
|
|
22
|
-
/**
|
|
23
|
-
* The selected value.
|
|
24
|
-
*/
|
|
25
15
|
value?: S extends 'multiple' ? T[] : T;
|
|
26
|
-
/**
|
|
27
|
-
* Callback fired when an option is selected.
|
|
28
|
-
*/
|
|
29
16
|
onChange?: S extends 'multiple' ? MultipleModeOnChange<T> : SingleModeOnChange<T>;
|
|
30
|
-
/**
|
|
31
|
-
* If true, auto focus to selected item when mounted
|
|
32
|
-
* @default true
|
|
33
|
-
*/
|
|
34
17
|
autoFocus?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Callback fired when the menu should be closed.
|
|
37
|
-
* Fired when an already selected item is selected again in single select mode.
|
|
38
|
-
*/
|
|
39
18
|
onClose?: () => void;
|
|
40
19
|
};
|
|
41
20
|
export declare const useMenuItemSelect: <T = unknown, S extends SelectMode = "single">(props: UseMenuItemSelectParameters<T, S>) => {
|
|
@@ -2,26 +2,9 @@ import { StandardProps } from '@ringcentral/spring-base';
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { MenuItemTextClassesKey } from './MenuItemText.classes';
|
|
4
4
|
export declare type MenuItemTextProps = StandardProps<{
|
|
5
|
-
/**
|
|
6
|
-
* The primary content element. This is used in the same way as the `children` prop.
|
|
7
|
-
* @deprecated Use the `primary` prop instead.
|
|
8
|
-
*/
|
|
9
5
|
primaryText?: ReactNode;
|
|
10
|
-
/**
|
|
11
|
-
* The primary content element. This is used in the same way as the `children` prop.
|
|
12
|
-
*/
|
|
13
6
|
primary?: ReactNode;
|
|
14
|
-
/**
|
|
15
|
-
* The primary content element. This is used in the same way as the `primary` prop.
|
|
16
|
-
*/
|
|
17
7
|
children?: ReactNode;
|
|
18
|
-
/**
|
|
19
|
-
* The info text element.
|
|
20
|
-
* @deprecated Use the `info` prop instead.
|
|
21
|
-
*/
|
|
22
8
|
infoText?: ReactNode;
|
|
23
|
-
/**
|
|
24
|
-
* The info text element.
|
|
25
|
-
*/
|
|
26
9
|
info?: ReactNode;
|
|
27
10
|
}, MenuItemTextClassesKey, 'div'>;
|
|
@@ -4,10 +4,6 @@ import { MenuItemSelectProps, SelectMode } from '../MenuItem';
|
|
|
4
4
|
import { MenuListClassesKey } from './MenuList.classes';
|
|
5
5
|
import { MenuListContextValue } from './MenuListContext';
|
|
6
6
|
export declare type MenuListProps<M extends SelectMode = 'single', V = unknown> = StandardProps<MenuItemSelectProps<V, M> & {
|
|
7
|
-
/**
|
|
8
|
-
* auto focus when component mounted
|
|
9
|
-
* @default true
|
|
10
|
-
*/
|
|
11
7
|
autoFocus?: boolean;
|
|
12
8
|
} & MenuListContextValue, MenuListClassesKey, 'div'>;
|
|
13
9
|
export interface MenuListComponent {
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare type MenuListContextValue = {
|
|
3
|
-
/**
|
|
4
|
-
* When primary text of menu item is longer than one line,
|
|
5
|
-
* if nowrap is true, text will be truncated,
|
|
6
|
-
* if false, text will wrap into multiple lines.
|
|
7
|
-
* @default true
|
|
8
|
-
*/
|
|
9
3
|
nowrap?: boolean;
|
|
10
4
|
};
|
|
11
5
|
export declare const MenuListContext: import("react").Context<MenuListContextValue>;
|
|
@@ -14,10 +14,5 @@ export declare type InnerModalProps = StandardProps<{
|
|
|
14
14
|
onEscapeKeyDown?: KeyboardEventHandler<HTMLDivElement>;
|
|
15
15
|
onClose?: (event: SyntheticEvent<HTMLElement>, reason: ModalCloseReason) => void;
|
|
16
16
|
backdropProps?: BackdropProps;
|
|
17
|
-
/**
|
|
18
|
-
* If true, the modal will block interaction with the rest of the page.
|
|
19
|
-
* When false, aria-hidden and focus trapping are disabled.
|
|
20
|
-
* @default true
|
|
21
|
-
*/
|
|
22
17
|
blocking?: boolean;
|
|
23
18
|
} & GroupedMotionProps & Pick<FocusTrapProps, 'disableRestoreFocus' | 'disableAutoFocus' | 'disableEnforceFocus' | 'isEnabled'>, ModalClassesKey, 'div'>;
|
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
import { PortalProps } from '../Portal';
|
|
2
2
|
import { InnerModalProps, ModalCloseReason } from './InnerModal.type';
|
|
3
3
|
export declare type ModalProps = InnerModalProps & {
|
|
4
|
-
/**
|
|
5
|
-
* Called when the modal's exit animation has finished playing
|
|
6
|
-
*/
|
|
7
4
|
onExitComplete?: () => void;
|
|
8
5
|
disableBackdropAnimation?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* If true, the modal will not lock body scrolling
|
|
11
|
-
*
|
|
12
|
-
* Popover overrides this to `true` to avoid scroll lock conflicts
|
|
13
|
-
* with parent modals. If you’re using Popover as a dialog-like
|
|
14
|
-
* component and want to re-enable scroll lock, pass `disableScrollLock={false}`.
|
|
15
|
-
* @default false
|
|
16
|
-
*/
|
|
17
6
|
disableScrollLock?: boolean;
|
|
18
7
|
} & Omit<PortalProps, 'children'>;
|
|
19
8
|
export type { ModalCloseReason };
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare type ModalContextValue = {
|
|
3
|
-
/**
|
|
4
|
-
* Indicates whether the `aria-hidden` attribute is being applied to elements outside the modal.
|
|
5
|
-
* When true, Popper-based components should disable portal to avoid being hidden from screen readers.
|
|
6
|
-
*/
|
|
7
3
|
ariaHideEnabled: boolean;
|
|
8
4
|
};
|
|
9
5
|
export declare const ModalContext: import("react").Context<ModalContextValue | null>;
|
|
@@ -7,19 +7,8 @@ export declare type KeyPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bo
|
|
|
7
7
|
declare type RawPosition = Partial<Record<'top' | 'bottom' | 'left' | 'right', string>>;
|
|
8
8
|
export declare type OverlapPosition = RawPosition | KeyPosition;
|
|
9
9
|
declare type BaseOverlapProps = WithClassesProps<{
|
|
10
|
-
/**
|
|
11
|
-
* Accept two types of value:
|
|
12
|
-
* - { top: '0px', left: '0px', right: '0px', bottom: '0px' }
|
|
13
|
-
* - "top-left" | "top-right" | "bottom-left" | "bottom-right"
|
|
14
|
-
*/
|
|
15
10
|
position: OverlapPosition;
|
|
16
|
-
/**
|
|
17
|
-
* The component you want to position on top of children
|
|
18
|
-
*/
|
|
19
11
|
floater?: ReactElement;
|
|
20
|
-
/**
|
|
21
|
-
* Only shows the floater component when hovering
|
|
22
|
-
*/
|
|
23
12
|
showFloaterOnHoverOnly?: boolean;
|
|
24
13
|
}, OverlapClassesKey>;
|
|
25
14
|
export declare type OverlapProps<T extends ExtendElementType = OverlapDefaultElementType> = OverridableProps<BaseOverlapProps, T>;
|
|
@@ -2,10 +2,6 @@ import { StandardProps } from '@ringcentral/spring-base';
|
|
|
2
2
|
import { PageHeaderCenterClassesKey, PageHeaderClassesKey, PageHeaderLeftClassesKey, PageHeaderRightClassesKey, PageHeaderTitleClassesKey } from './PageHeader.classes';
|
|
3
3
|
export declare type PageHeaderVariant = 'integrated' | 'detached';
|
|
4
4
|
export declare type PageHeaderProps = StandardProps<{
|
|
5
|
-
/**
|
|
6
|
-
* The variant to use.
|
|
7
|
-
* @default 'integrated'
|
|
8
|
-
*/
|
|
9
5
|
variant?: PageHeaderVariant;
|
|
10
6
|
}, PageHeaderClassesKey, 'header'>;
|
|
11
7
|
export declare type PageHeaderLeftProps = StandardProps<{}, PageHeaderLeftClassesKey, 'div'>;
|
|
@@ -5,22 +5,12 @@ import { PopoverProps } from '../Popover';
|
|
|
5
5
|
import { TextField, TextFieldProps } from '../TextField';
|
|
6
6
|
import { PickerTextFieldClassesKey } from './PickerTextField.classes';
|
|
7
7
|
declare type PickerTextFieldProps = StandardProps<{
|
|
8
|
-
/** trigger when user click the clear button */
|
|
9
8
|
onClear?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
10
|
-
/**
|
|
11
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
12
|
-
* announcementText for screen reader read
|
|
13
|
-
*/
|
|
14
9
|
inputProps?: TextFieldProps['inputProps'];
|
|
15
|
-
/** announcementText announced by screen reader when textField focused */
|
|
16
10
|
announcementText?: string;
|
|
17
|
-
/** props for hourPicker component */
|
|
18
11
|
PopoverProps?: Omit<PopoverProps, 'open' | 'anchorEl' | 'anchorOrigin' | 'transformOrigin' | 'onClose'>;
|
|
19
|
-
/** children for render in popover */
|
|
20
12
|
children: ReactNode;
|
|
21
|
-
/** end adornment icon */
|
|
22
13
|
endIconSymbol?: IconProps['symbol'];
|
|
23
|
-
/** can manual trigger close by ref */
|
|
24
14
|
action?: Ref<PickerTextFieldActions>;
|
|
25
15
|
textInputClasses?: TextFieldProps['classes'];
|
|
26
16
|
} & Pick<PopoverProps, 'onClose'>, PickerTextFieldClassesKey, typeof TextField, 'readOnly' | 'inputComponent' | 'classes'>;
|
|
@@ -8,43 +8,14 @@ import { PopperPaperProps } from '../PopperPaper';
|
|
|
8
8
|
import { PopoverClassesKey } from './Popover.classes';
|
|
9
9
|
export declare type PopoverCloseReason = 'escapeKeyDown' | 'backdropClick';
|
|
10
10
|
export declare type PopoverProps = StandardProps<{
|
|
11
|
-
/**
|
|
12
|
-
* Content for Popover
|
|
13
|
-
*/
|
|
14
11
|
children?: ReactNode;
|
|
15
|
-
/**
|
|
16
|
-
* If true, show border
|
|
17
|
-
* @default true
|
|
18
|
-
*/
|
|
19
12
|
bordered?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* If true, show border
|
|
22
|
-
* @default true
|
|
23
|
-
*/
|
|
24
13
|
shadow?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* @default standard
|
|
27
|
-
*/
|
|
28
14
|
variant?: 'standard' | 'pointed';
|
|
29
|
-
/**
|
|
30
|
-
* Props applied to Popper
|
|
31
|
-
*/
|
|
32
15
|
PopperProps?: Omit<PopperProps, 'anchorEl' | 'className' | 'placement' | 'actions'> & HTMLDataAttribute;
|
|
33
|
-
/**
|
|
34
|
-
* Callback fired when the available viewport height changes.
|
|
35
|
-
*/
|
|
36
16
|
onAvailableHeightChange?: (height: number) => void;
|
|
37
|
-
/**
|
|
38
|
-
* Props passed to the underlying PopperPaper component.
|
|
39
|
-
*/
|
|
40
17
|
PopperPaperProps?: Partial<PopperPaperProps>;
|
|
41
|
-
/**
|
|
42
|
-
* props apply animation element
|
|
43
|
-
*/
|
|
44
18
|
motionProps?: MotionProps | null;
|
|
45
|
-
/**
|
|
46
|
-
* force transform origin for default animation
|
|
47
|
-
*/
|
|
48
19
|
transformOrigin?: GetGrowOptions['transformOrigin'];
|
|
49
20
|
popperRef?: Ref<HTMLDivElement>;
|
|
50
21
|
} & Pick<PopperProps, 'placement' | 'anchorEl' | 'actions'>, PopoverClassesKey, typeof Modal>;
|
|
@@ -5,53 +5,14 @@ import { PortalProps } from '../Portal';
|
|
|
5
5
|
export declare type PopperPlacementType = Placement;
|
|
6
6
|
export declare type PopperProps = PropsWithRoot<{
|
|
7
7
|
ref?: Ref<HTMLDivElement>;
|
|
8
|
-
/**
|
|
9
|
-
* An HTML element, [virtualElement](https://floating-ui.com/docs/virtual-elements),
|
|
10
|
-
* or a function that returns either.
|
|
11
|
-
* It's used to set the position of the popper.
|
|
12
|
-
* The return value will passed as the reference object of the Popper instance.
|
|
13
|
-
*
|
|
14
|
-
* ❗️If anchor is `VirtualElement`, pls set container by yourself or disable portal
|
|
15
|
-
*/
|
|
16
8
|
anchorEl?: ReferenceType | null | (() => ReferenceType | null);
|
|
17
9
|
middlewares?: Middleware[] | ((presetMiddlewares: Middleware[]) => Middleware[]);
|
|
18
|
-
/**
|
|
19
|
-
* displaces the floating element from its core placement along the specified axes.
|
|
20
|
-
* @default 0
|
|
21
|
-
*/
|
|
22
10
|
offset?: number;
|
|
23
|
-
/**
|
|
24
|
-
* The surrounding gap between the content and window edge. Can be set to a number or { top, right, bottom, left }.
|
|
25
|
-
* Padding applies to shift and flip props.
|
|
26
|
-
* @default 0
|
|
27
|
-
*/
|
|
28
11
|
padding?: Padding;
|
|
29
|
-
/**
|
|
30
|
-
* Set arrow height. If unset or 0, not show arrow.
|
|
31
|
-
* @default 0
|
|
32
|
-
*/
|
|
33
12
|
arrowHeight?: number;
|
|
34
|
-
/**
|
|
35
|
-
* This describes the padding between the arrow and the edges of the floating element.
|
|
36
|
-
* If your floating element has border-radius, this will prevent it from overflowing the corners.
|
|
37
|
-
* @default 0
|
|
38
|
-
*/
|
|
39
13
|
arrowPadding?: number;
|
|
40
|
-
/**
|
|
41
|
-
* A ref with imperative actions.
|
|
42
|
-
* It allows to update position of popper.
|
|
43
|
-
*/
|
|
44
14
|
actions?: Ref<PopperActions>;
|
|
45
|
-
/**
|
|
46
|
-
* To improve performance about auto update popper position.
|
|
47
|
-
* If true, use default config.
|
|
48
|
-
* If false, disable auto update.
|
|
49
|
-
* @default true
|
|
50
|
-
*/
|
|
51
15
|
autoUpdate?: AutoUpdateOptions | boolean;
|
|
52
|
-
/**
|
|
53
|
-
* If true, the popper will match the width of the anchor element.
|
|
54
|
-
*/
|
|
55
16
|
matchAnchorWidth?: boolean;
|
|
56
17
|
children?: ReactNode | ((props: {
|
|
57
18
|
placement: PopperPlacementType;
|
|
@@ -60,33 +21,11 @@ export declare type PopperProps = PropsWithRoot<{
|
|
|
60
21
|
}) => ReactNode);
|
|
61
22
|
} & Omit<UseFloatingOptions, 'middleware' | 'strategy'> & Omit<PortalProps, 'children'>, 'div'>;
|
|
62
23
|
export declare type AutoUpdateOptions = {
|
|
63
|
-
/**
|
|
64
|
-
* Whether to update the position when an overflow ancestor is scrolled.
|
|
65
|
-
* @default true
|
|
66
|
-
*/
|
|
67
24
|
ancestorScroll: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Whether to update the position when an overflow ancestor is resized. This
|
|
70
|
-
* uses the native `resize` event.
|
|
71
|
-
* @default true
|
|
72
|
-
*/
|
|
73
25
|
ancestorResize: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Whether to update the position when either the reference or floating
|
|
76
|
-
* elements resized. This uses a `ResizeObserver`.
|
|
77
|
-
* @default false
|
|
78
|
-
*/
|
|
79
26
|
elementResize: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Whether to update on every animation frame if necessary. Optimized for
|
|
82
|
-
* performance so updates are only called when necessary, but use sparingly.
|
|
83
|
-
* @default false
|
|
84
|
-
*/
|
|
85
27
|
animationFrame: boolean;
|
|
86
28
|
};
|
|
87
29
|
export declare type PopperActions = {
|
|
88
|
-
/**
|
|
89
|
-
* re-compute position of popper
|
|
90
|
-
*/
|
|
91
30
|
update: () => void;
|
|
92
31
|
};
|
|
@@ -3,14 +3,9 @@ import { UseSwitchParameters } from '@mui/base';
|
|
|
3
3
|
import { HTMLDataAttribute, StandardProps } from '@ringcentral/spring-base';
|
|
4
4
|
import { RadioClassesKey } from './Radio.classes';
|
|
5
5
|
export declare type RadioProps = StandardProps<{
|
|
6
|
-
/** The value to be used in radio group. */
|
|
7
6
|
value?: string;
|
|
8
|
-
/** The name of the group which the radio stay in. */
|
|
9
7
|
name?: string;
|
|
10
|
-
/** Pass a ref to the `input` element. */
|
|
11
8
|
inputRef?: Ref<HTMLInputElement>;
|
|
12
|
-
/** Attributes applied to root */
|
|
13
9
|
rootProps?: Omit<ComponentProps<'div'>, 'className'> & HTMLDataAttribute;
|
|
14
|
-
/** Attributes applied to `input` element */
|
|
15
10
|
inputProps?: Omit<ComponentProps<'input'>, 'className' | 'type' | 'ref'>;
|
|
16
11
|
} & Omit<UseSwitchParameters, 'readonly'>, RadioClassesKey>;
|
|
@@ -3,12 +3,8 @@ import { StandardProps } from '@ringcentral/spring-base';
|
|
|
3
3
|
import { RadioProps } from '../Radio/Radio.type';
|
|
4
4
|
import { RadioGroupClassesKey } from './RadioGroup.classes';
|
|
5
5
|
export declare type RadioGroupProps = StandardProps<{
|
|
6
|
-
/** Display group of elements in a compact row. */
|
|
7
6
|
row?: boolean;
|
|
8
|
-
/** The name of radio group. */
|
|
9
7
|
name: string;
|
|
10
|
-
/** The default value for uncontrolled radio group. */
|
|
11
8
|
defaultValue?: string;
|
|
12
|
-
/** The children for radio group. */
|
|
13
9
|
children?: ReactNode;
|
|
14
10
|
} & Pick<RadioProps, 'value' | 'onChange'>, RadioGroupClassesKey, 'div'>;
|
|
@@ -3,95 +3,21 @@ import { ChangeEventHandler, ComponentPropsWithRef } from 'react';
|
|
|
3
3
|
import { IconProps } from '../Icon/Icon.type';
|
|
4
4
|
import { RatingClassesKey } from './Rating.classes';
|
|
5
5
|
export declare type RatingProps = StandardProps<{
|
|
6
|
-
/**
|
|
7
|
-
* The default value. Use when the component is not controlled.
|
|
8
|
-
* @default null
|
|
9
|
-
*/
|
|
10
6
|
defaultValue?: number;
|
|
11
|
-
/**
|
|
12
|
-
* If `true`, the component is disabled.
|
|
13
|
-
* @default false
|
|
14
|
-
*/
|
|
15
7
|
disabled?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* The icon to display.
|
|
18
|
-
* @default <Icon symbol={StarFilledMd} size="large" />
|
|
19
|
-
*/
|
|
20
8
|
icon?: React.ReactNode;
|
|
21
|
-
/**
|
|
22
|
-
* The icon to display when empty.
|
|
23
|
-
* @default <Icon symbol={StarMd} size="large" />
|
|
24
|
-
*/
|
|
25
9
|
emptyIcon?: React.ReactNode;
|
|
26
|
-
/**
|
|
27
|
-
* The label read when the rating input is empty.
|
|
28
|
-
* @default 'Empty'
|
|
29
|
-
*/
|
|
30
10
|
emptyLabelText?: React.ReactNode;
|
|
31
|
-
/**
|
|
32
|
-
* Accepts a function which returns a string value that provides a user-friendly name for the current value of the rating.
|
|
33
|
-
* This is important for screen reader users.
|
|
34
|
-
*
|
|
35
|
-
* For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
|
|
36
|
-
* @param {number} value The rating label's value to format.
|
|
37
|
-
* @returns {string}
|
|
38
|
-
*
|
|
39
|
-
* @default function defaultLabelText(value) {
|
|
40
|
-
* return `${value || '0'} Star${value !== 1 ? 's' : ''}`;
|
|
41
|
-
* }
|
|
42
|
-
*/
|
|
43
11
|
getLabelText?: (value: number | null) => string;
|
|
44
|
-
/**
|
|
45
|
-
* If `true`, only the selected icon will be highlighted.
|
|
46
|
-
* @default false
|
|
47
|
-
*/
|
|
48
12
|
highlightSelectedOnly?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* The component containing the icon.
|
|
51
|
-
* @default 'div'
|
|
52
|
-
*/
|
|
53
13
|
IconContainerComponent?: React.ElementType<ComponentPropsWithRef<any>>;
|
|
54
|
-
/**
|
|
55
|
-
* Maximum rating.
|
|
56
|
-
* @default 5
|
|
57
|
-
*/
|
|
58
14
|
max?: number;
|
|
59
|
-
/**
|
|
60
|
-
* The name attribute of the radio `input` elements.
|
|
61
|
-
* This input `name` should be unique within the page.
|
|
62
|
-
* Being unique within a form is insufficient since the `name` is used to generated IDs.
|
|
63
|
-
*/
|
|
64
15
|
name?: string;
|
|
65
|
-
/**
|
|
66
|
-
* Callback fired when the value changes.
|
|
67
|
-
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
68
|
-
* @param {number|null} value The new value.
|
|
69
|
-
*/
|
|
70
16
|
onChange?: (event: React.SyntheticEvent, value: number | null) => void;
|
|
71
|
-
/**
|
|
72
|
-
* Callback function that is fired when the hover state changes.
|
|
73
|
-
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
74
|
-
* @param {number} value The new value.
|
|
75
|
-
*/
|
|
76
17
|
onChangeActive?: (event: React.SyntheticEvent, value: number) => void;
|
|
77
|
-
/**
|
|
78
|
-
* The minimum increment value change allowed.
|
|
79
|
-
* @default 1
|
|
80
|
-
*/
|
|
81
18
|
precision?: number;
|
|
82
|
-
/**
|
|
83
|
-
* Removes all hover effects and pointer events.
|
|
84
|
-
* @default false
|
|
85
|
-
*/
|
|
86
19
|
readOnly?: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* The size of the Icon component.
|
|
89
|
-
* @default 'large'
|
|
90
|
-
*/
|
|
91
20
|
size?: IconProps['size'];
|
|
92
|
-
/**
|
|
93
|
-
* The rating value.
|
|
94
|
-
*/
|
|
95
21
|
value?: number | null;
|
|
96
22
|
}, RatingClassesKey, 'div'>;
|
|
97
23
|
export declare type RatingItemProps = StandardProps<{
|