@ringcentral/juno 2.46.0 → 3.0.0-alpha.1
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/components/Accordion/Accordion.d.ts +2 -4
- package/components/Accordion/Accordion.js +5 -4
- package/components/Accordion/AccordionDetails/AccordionDetails.d.ts +2 -4
- package/components/Accordion/AccordionDetails/AccordionDetails.js +5 -4
- package/components/Accordion/AccordionDetails/styles/AccordionDetailsStyle.js +4 -2
- package/components/Accordion/AccordionDetails/utils/AccordionDetailsUtils.js +2 -1
- package/components/Accordion/AccordionSummary/AccordionSummary.d.ts +2 -4
- package/components/Accordion/AccordionSummary/AccordionSummary.js +6 -5
- package/components/Accordion/AccordionSummary/styles/AccordionSummaryStyle.js +4 -2
- package/components/Accordion/AccordionSummary/utils/AccordionSummaryUtils.js +2 -1
- package/components/Accordion/styles/AccordionStyle.js +6 -4
- package/components/Accordion/utils/AccordionUtils.js +2 -1
- package/components/Alert/Alert.d.ts +3 -5
- package/components/Alert/Alert.js +5 -4
- package/components/Alert/styles/AlertStyle.d.ts +2 -2
- package/components/Alert/styles/AlertStyle.js +4 -2
- package/components/Alert/utils/AlertUtils.js +12 -11
- package/components/Animations/Highlight/Highlight.d.ts +5 -5
- package/components/Animations/Highlight/Highlight.js +17 -16
- package/components/Animations/Highlight/utils/getStyle.d.ts +1 -1
- package/components/Animations/Highlight/utils/getStyle.js +3 -2
- package/components/AppBar/AppBar.d.ts +3 -5
- package/components/AppBar/AppBar.js +3 -2
- package/components/Avatar/Avatar.d.ts +4 -4
- package/components/Avatar/Avatar.js +16 -15
- package/components/Avatar/styles/StyledAvatar.d.ts +2 -4
- package/components/Avatar/styles/StyledAvatar.js +6 -6
- package/components/Avatar/styles/StyledAvatarWrapper.d.ts +2 -4
- package/components/Avatar/styles/StyledAvatarWrapper.js +7 -9
- package/components/Avatar/styles/StyledIconAvatar.d.ts +3 -5
- package/components/Avatar/styles/StyledIconAvatar.js +2 -1
- package/components/Avatar/styles/StyledMask.d.ts +3 -2
- package/components/Avatar/styles/StyledMask.js +2 -1
- package/components/Avatar/styles/StyledPresenceWrapper.d.ts +5 -9
- package/components/Avatar/styles/StyledPresenceWrapper.js +1 -0
- package/components/Avatar/utils/AvatarUtils.js +2 -1
- package/components/Avatar/utils/useAvatarColorToken.d.ts +3 -4
- package/components/Avatar/utils/useAvatarColorToken.js +5 -3
- package/components/Avatar/utils/useAvatarShortName.d.ts +1 -1
- package/components/Avatar/utils/useAvatarShortName.js +6 -4
- package/components/Backdrop/Backdrop.d.ts +2 -4
- package/components/Backdrop/Backdrop.js +5 -4
- package/components/Backdrop/deprecated/Backdrop.d.ts +2 -2
- package/components/Backdrop/deprecated/Backdrop.js +1 -0
- package/components/Backdrop/styles/BackdropStyle.js +4 -2
- package/components/Backdrop/utils/BackdropUtils.js +2 -1
- package/components/Badge/Badge.d.ts +2 -4
- package/components/Badge/Badge.js +10 -9
- package/components/Badge/DotBadge.d.ts +2 -2
- package/components/Badge/DotBadge.js +7 -6
- package/components/Badge/styles/BadgeStyle.d.ts +1 -3
- package/components/Badge/styles/BadgeStyle.js +10 -13
- package/components/Badge/utils/BadgeUtils.js +4 -2
- package/components/Badge/utils/useRoundBadgeOffset.js +7 -5
- package/components/Box/Box.d.ts +5 -5
- package/components/Box/Box.js +3 -2
- package/components/Buttons/Button/Button.d.ts +325 -8
- package/components/Buttons/Button/Button.js +18 -21
- package/components/Buttons/Button/styles/StyledButton.js +22 -27
- package/components/Buttons/Button/utils/ButtonUtils.js +14 -13
- package/components/Buttons/Button/utils/getButtonIconSize.d.ts +1 -1
- package/components/Buttons/Button/utils/getButtonIconSize.js +1 -0
- package/components/Buttons/ButtonBase/ButtonBase.d.ts +2 -4
- package/components/Buttons/ButtonBase/ButtonBase.js +2 -1
- package/components/Buttons/ButtonGroup/ButtonGroup.d.ts +15 -4
- package/components/Buttons/ButtonGroup/ButtonGroup.js +4 -3
- package/components/Buttons/ButtonGroup/styles/index.js +2 -0
- package/components/Buttons/ButtonGroup/utils/index.js +2 -0
- package/components/Buttons/IconButton/IconButton.d.ts +383 -6
- package/components/Buttons/IconButton/IconButton.js +10 -17
- package/components/Buttons/IconButton/deprecated/IconButtonProps.d.ts +5 -5
- package/components/Buttons/IconButton/deprecated/IconButtonProps.js +1 -0
- package/components/Buttons/IconButton/styles/StyledIconButton.d.ts +2 -2
- package/components/Buttons/IconButton/styles/StyledIconButton.js +33 -39
- package/components/Buttons/IconButton/utils/IconButtonUtils.d.ts +2 -2
- package/components/Buttons/IconButton/utils/IconButtonUtils.js +4 -3
- package/components/Buttons/IconButtonGroup/IconButtonGroup.d.ts +2 -4
- package/components/Buttons/IconButtonGroup/IconButtonGroup.js +7 -6
- package/components/Buttons/IconButtonGroup/styles/IconButtonGroupStyle.js +7 -6
- package/components/Buttons/SplitButton/SplitButton.d.ts +6 -8
- package/components/Buttons/SplitButton/SplitButton.js +28 -28
- package/components/Buttons/SplitButton/styles/StyledArrowIcon.d.ts +3 -4
- package/components/Buttons/SplitButton/styles/StyledArrowIcon.js +2 -1
- package/components/Buttons/SplitButton/styles/StyledSplitButton.js +19 -28
- package/components/Buttons/SplitButton/utils/SplitButtonUtils.d.ts +3 -3
- package/components/Buttons/SplitButton/utils/SplitButtonUtils.js +7 -4
- package/components/Buttons/ToggleButton/ToggleButton.d.ts +3 -5
- package/components/Buttons/ToggleButton/ToggleButton.js +9 -8
- package/components/Buttons/ToggleButton/styles/ToggleButtonStyle.js +7 -8
- package/components/Buttons/ToggleButton/utils/ToggleButtonUtils.js +5 -4
- package/components/Buttons/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -4
- package/components/Buttons/ToggleButtonGroup/ToggleButtonGroup.js +6 -5
- package/components/Buttons/ToggleButtonGroup/styles/ToggleButtonGroupStyle.js +7 -6
- package/components/Buttons/ToggleButtonGroup/styles/boxStyle.js +11 -12
- package/components/Buttons/ToggleButtonGroup/styles/standardStyle.js +10 -12
- package/components/Buttons/ToggleButtonGroup/utils/ToggleButtonGroupUtils.js +3 -2
- package/components/Card/Card/Card.d.ts +3 -5
- package/components/Card/Card/Card.js +8 -7
- package/components/Card/Card/CardContext.d.ts +1 -2
- package/components/Card/Card/CardContext.js +4 -2
- package/components/Card/Card/styles/CardStyles.js +4 -3
- package/components/Card/Card/utils/CardUtils.js +2 -1
- package/components/Card/CardActionArea/CardActionArea.d.ts +3 -17
- package/components/Card/CardActionArea/CardActionArea.js +13 -12
- package/components/Card/CardActionArea/styles/CardActionAreaStyle.js +5 -3
- package/components/Card/CardActionArea/utils/CardActionAreaUtils.d.ts +1 -1
- package/components/Card/CardActionArea/utils/CardActionAreaUtils.js +3 -2
- package/components/Card/CardActions/CardActions.d.ts +2 -4
- package/components/Card/CardActions/CardActions.js +5 -4
- package/components/Card/CardActions/styles/CardActionsStyle.js +4 -2
- package/components/Card/CardActions/utils/CardActionsUtils.js +2 -1
- package/components/Card/CardContent/CardContent.d.ts +6 -4
- package/components/Card/CardContent/CardContent.js +5 -4
- package/components/Card/CardContent/styles/CardContentStyle.js +4 -2
- package/components/Card/CardContent/utils/CardContentUtils.js +2 -1
- package/components/Card/CardHeader/CardHeader.d.ts +18 -18
- package/components/Card/CardHeader/CardHeader.js +5 -4
- package/components/Card/CardHeader/styles/CardHeaderStyle.js +4 -2
- package/components/Card/CardHeader/utils/CardHeaderUtils.js +2 -1
- package/components/Card/CardHoverActions/CardHoverActions.d.ts +3 -5
- package/components/Card/CardHoverActions/CardHoverActions.js +6 -5
- package/components/Card/CardHoverActions/styles/CardHoverActionsStyle.js +6 -4
- package/components/Card/CardHoverActions/utils/CardHoverActionsUtils.js +2 -1
- package/components/Card/CardMedia/CardMedia.d.ts +10 -18
- package/components/Card/CardMedia/CardMedia.js +5 -4
- package/components/Card/CardMedia/styles/CardMediaStyle.js +4 -2
- package/components/Card/CardMedia/utils/CardMediaUtils.js +2 -1
- package/components/Card/CardSelectionArea/CardSelectionArea.d.ts +3 -5
- package/components/Card/CardSelectionArea/CardSelectionArea.js +9 -8
- package/components/Card/CardSelectionArea/styles/CardSelectionAreaStyle.js +4 -2
- package/components/Card/CardSelectionArea/utils/CardSelectionAreaUtils.d.ts +1 -1
- package/components/Card/CardSelectionArea/utils/CardSelectionAreaUtils.js +2 -1
- package/components/Chip/Chip.d.ts +4 -18
- package/components/Chip/Chip.js +14 -13
- package/components/Chip/styles/ChipStyle.js +17 -18
- package/components/Chip/utils/ChipUtils.d.ts +1 -1
- package/components/Chip/utils/ChipUtils.js +2 -1
- package/components/ClickAwayListener/ClickAwayListener.js +1 -0
- package/components/DetachedWindow/DetachedWindow.d.ts +2 -2
- package/components/DetachedWindow/DetachedWindow.js +16 -15
- package/components/DetachedWindow/DetachedWindowStylesProvider.d.ts +6 -2
- package/components/DetachedWindow/DetachedWindowStylesProvider.js +8 -6
- package/components/DetachedWindow/styles/DetachedWindowStyle.d.ts +1 -1
- package/components/DetachedWindow/styles/DetachedWindowStyle.js +2 -1
- package/components/DetachedWindow/utils/DetachedWindowUtils.js +1 -0
- package/components/DetachedWindow/utils/JssDomRendererFactory.d.ts +4 -4
- package/components/DetachedWindow/utils/JssDomRendererFactory.js +4 -3
- package/components/DetachedWindow/utils/index.js +1 -0
- package/components/DetachedWindow/utils/openExternalWindow.d.ts +0 -1
- package/components/DetachedWindow/utils/openExternalWindow.js +7 -5
- package/components/Dialer/DialDelete/DialDelete.d.ts +1 -1
- package/components/Dialer/DialDelete/DialDelete.js +5 -4
- package/components/Dialer/DialPad/DialPad.d.ts +7 -70
- package/components/Dialer/DialPad/DialPad.js +24 -23
- package/components/Dialer/DialPad/assets/index.js +1 -0
- package/components/Dialer/DialPad/styles/StyledDialPad.js +4 -3
- package/components/Dialer/DialPad/utils/DialPadUtils.d.ts +3 -3
- package/components/Dialer/DialPad/utils/DialPadUtils.js +4 -3
- package/components/Dialer/DialPad/utils/index.js +1 -0
- package/components/Dialer/DialPad/utils/types.d.ts +2 -2
- package/components/Dialer/DialPad/utils/useDialKeyboard.d.ts +1 -1
- package/components/Dialer/DialPad/utils/useDialKeyboard.js +8 -6
- package/components/Dialer/DialPad/utils/useKeyAudio.d.ts +1 -1
- package/components/Dialer/DialPad/utils/useKeyAudio.js +7 -5
- package/components/Dialer/DialPadButton/DialPadButton.d.ts +3 -4
- package/components/Dialer/DialPadButton/DialPadButton.js +3 -2
- package/components/Dialer/DialPadButton/styles/StyledDialPadButton.d.ts +1 -1
- package/components/Dialer/DialPadButton/styles/StyledDialPadButton.js +2 -1
- package/components/Dialer/DialTextField/DialTextField.d.ts +2 -4
- package/components/Dialer/DialTextField/DialTextField.js +26 -25
- package/components/Dialer/DialTextField/styles/DialTextFieldStyle.js +4 -2
- package/components/Dialer/DialTextField/utils/DialTextFieldUtils.js +3 -2
- package/components/Dialer/DialTextField/utils/getDialPadValueOnlyRegex.js +1 -0
- package/components/Dialer/DialTextField/utils/useFixedEndSelection.d.ts +1 -2
- package/components/Dialer/DialTextField/utils/useFixedEndSelection.js +7 -5
- package/components/Dialer/Dialer.d.ts +4 -2
- package/components/Dialer/Dialer.js +6 -5
- package/components/Dialer/utils/DialerContext.d.ts +1 -2
- package/components/Dialer/utils/DialerContext.js +3 -2
- package/components/Dialog/Dialog.d.ts +3 -5
- package/components/Dialog/Dialog.js +11 -10
- package/components/Dialog/DialogActions/DialogActions.d.ts +277 -4
- package/components/Dialog/DialogActions/DialogActions.js +7 -7
- package/components/Dialog/DialogActions/styles/DialogActionsStyle.js +9 -12
- package/components/Dialog/DialogActions/utils/DialogActionsUtils.d.ts +1 -1
- package/components/Dialog/DialogActions/utils/DialogActionsUtils.js +2 -1
- package/components/Dialog/DialogContent/DialogContent.d.ts +3 -3
- package/components/Dialog/DialogContent/DialogContent.js +5 -4
- package/components/Dialog/DialogContent/styles/DialogContentStyle.js +4 -2
- package/components/Dialog/DialogContent/utils/DialogContentUtils.d.ts +1 -1
- package/components/Dialog/DialogContent/utils/DialogContentUtils.js +4 -2
- package/components/Dialog/DialogContentText/DialogContentText.d.ts +14 -4
- package/components/Dialog/DialogContentText/DialogContentText.js +7 -6
- package/components/Dialog/DialogContentText/styles/DialogContentTextStyle.js +4 -2
- package/components/Dialog/DialogContentText/utils/DialogContentTextUtils.js +2 -1
- package/components/Dialog/DialogTitle/DialogTitle.d.ts +3 -3
- package/components/Dialog/DialogTitle/DialogTitle.js +6 -5
- package/components/Dialog/DialogTitle/styles/DialogTitleStyle.js +4 -2
- package/components/Dialog/DialogTitle/utils/DialogTitleUtils.js +2 -1
- package/components/Dialog/styles/DialogStyle.js +6 -6
- package/components/Dialog/utils/DialogContext.d.ts +3 -4
- package/components/Dialog/utils/DialogContext.js +7 -4
- package/components/Dialog/utils/DialogUtils.js +2 -1
- package/components/Divider/Divider.d.ts +7 -22
- package/components/Divider/Divider.js +4 -3
- package/components/Divider/styles/StyledDivider.js +5 -4
- package/components/DnD/DragDropContext/DragDropContext.d.ts +1 -1
- package/components/DnD/DragDropContext/DragDropContext.js +2 -1
- package/components/DnD/DragDropContext/styles/StyledGlobalDraggable.d.ts +1 -1
- package/components/DnD/DragDropContext/styles/StyledGlobalDraggable.js +2 -1
- package/components/DnD/DragHandle/DragHandle.d.ts +6 -8
- package/components/DnD/DragHandle/DragHandle.js +5 -4
- package/components/DnD/DragHandle/styles/StyledDragHandle.js +4 -2
- package/components/DnD/DragHandle/utils/DragHandleUtils.js +2 -1
- package/components/DnD/Draggable/Draggable.d.ts +8 -13
- package/components/DnD/Draggable/Draggable.js +8 -7
- package/components/DnD/Draggable/utils/DraggableUtils.d.ts +2 -1
- package/components/DnD/Draggable/utils/DraggableUtils.js +5 -3
- package/components/DnD/Droppable/Droppable.d.ts +4 -6
- package/components/DnD/Droppable/Droppable.js +5 -4
- package/components/Downshift/Downshift.d.ts +3 -3
- package/components/Downshift/Downshift.js +33 -32
- package/components/Downshift/SuggestionList/SuggestionList.d.ts +8 -52
- package/components/Downshift/SuggestionList/SuggestionList.js +31 -29
- package/components/Downshift/SuggestionList/styles/SuggestionListStyle.js +4 -2
- package/components/Downshift/SuggestionList/utils/SuggestionListUtils.js +2 -1
- package/components/Downshift/SuggestionList/utils/useSuggestionList.d.ts +266 -227
- package/components/Downshift/SuggestionList/utils/useSuggestionList.js +28 -26
- package/components/Downshift/styles/DownshiftInput.js +3 -1
- package/components/Downshift/styles/DownshiftStyle.d.ts +351 -5
- package/components/Downshift/styles/DownshiftStyle.js +5 -3
- package/components/Downshift/styles/StyledPopper.d.ts +3 -5
- package/components/Downshift/styles/StyledPopper.js +5 -5
- package/components/Downshift/styles/StyledTextField.d.ts +2 -4
- package/components/Downshift/styles/StyledTextField.js +3 -2
- package/components/Downshift/utils/DownshiftUtils.d.ts +2 -2
- package/components/Downshift/utils/DownshiftUtils.js +17 -8
- package/components/Downshift/utils/SelectItem.d.ts +2 -2
- package/components/Downshift/utils/index.js +2 -0
- package/components/Downshift/utils/useDownshift.d.ts +800 -455
- package/components/Downshift/utils/useDownshift.interface.d.ts +4 -4
- package/components/Downshift/utils/useDownshift.js +36 -34
- package/components/Downshift/utils/useDownshiftError.js +9 -7
- package/components/Downshift/utils/useDownshiftGroup.d.ts +3 -2
- package/components/Downshift/utils/useDownshiftGroup.js +16 -14
- package/components/Downshift/utils/useDownshiftTag.d.ts +503 -226
- package/components/Downshift/utils/useDownshiftTag.js +23 -21
- package/components/Drawer/Drawer.d.ts +2 -4
- package/components/Drawer/Drawer.js +10 -9
- package/components/Drawer/styles/DrawerStyle.js +5 -4
- package/components/Drawer/utils/DrawerUtils.js +2 -1
- package/components/Forms/BaseForm.d.ts +1 -1
- package/components/Forms/Checkbox/Checkbox.d.ts +4 -6
- package/components/Forms/Checkbox/Checkbox.js +8 -7
- package/components/Forms/Checkbox/styles/CheckboxStyle.js +4 -2
- package/components/Forms/Checkbox/utils/CheckboxUtils.js +2 -1
- package/components/Forms/Form/Form/Form.d.ts +2 -2
- package/components/Forms/Form/Form/Form.js +5 -4
- package/components/Forms/Form/Form/FormContext.d.ts +0 -1
- package/components/Forms/Form/Form/FormContext.js +3 -2
- package/components/Forms/Form/Form/index.js +1 -0
- package/components/Forms/Form/Form/types.d.ts +2 -2
- package/components/Forms/FormControl.d.ts +2 -4
- package/components/Forms/FormControl.js +2 -1
- package/components/Forms/FormControlLabel/FormControlLabel.d.ts +2 -4
- package/components/Forms/FormControlLabel/FormControlLabel.js +5 -4
- package/components/Forms/FormControlLabel/styles/FormControlLabelStyle.js +5 -3
- package/components/Forms/FormControlLabel/styles/StyledControl.d.ts +1 -3
- package/components/Forms/FormControlLabel/styles/StyledControl.js +1 -0
- package/components/Forms/FormControlLabel/utils/FormControlLabelUtils.js +2 -1
- package/components/Forms/FormGroup/FormGroup.d.ts +2 -4
- package/components/Forms/FormGroup/FormGroup.js +4 -3
- package/components/Forms/FormHelperText/FormHelperText.d.ts +13 -4
- package/components/Forms/FormHelperText/FormHelperText.js +5 -4
- package/components/Forms/FormHelperText/styles/StyledFormHelperText.d.ts +12 -3
- package/components/Forms/FormHelperText/styles/StyledFormHelperText.js +3 -2
- package/components/Forms/FormHelperText/utils/FormHelperTextUtils.js +2 -1
- package/components/Forms/FormLabel.d.ts +2 -4
- package/components/Forms/FormLabel.js +4 -3
- package/components/Forms/InputLabel/InputLabel.d.ts +2 -4
- package/components/Forms/InputLabel/InputLabel.js +5 -4
- package/components/Forms/InputLabel/styles/StyledInputLabel.d.ts +1 -3
- package/components/Forms/InputLabel/styles/StyledInputLabel.js +3 -2
- package/components/Forms/InputLabel/utils/InputLabelUtils.js +2 -1
- package/components/Forms/Picker/DatePicker/Calendar.d.ts +5 -6
- package/components/Forms/Picker/DatePicker/Calendar.js +36 -35
- package/components/Forms/Picker/DatePicker/DatePicker.d.ts +10 -45
- package/components/Forms/Picker/DatePicker/DatePicker.js +30 -29
- package/components/Forms/Picker/DatePicker/DatePickerHeader.d.ts +3 -2
- package/components/Forms/Picker/DatePicker/DatePickerHeader.js +6 -5
- package/components/Forms/Picker/DatePicker/Day.d.ts +2 -4
- package/components/Forms/Picker/DatePicker/Day.js +3 -2
- package/components/Forms/Picker/DatePicker/Year.d.ts +1 -1
- package/components/Forms/Picker/DatePicker/Year.js +6 -5
- package/components/Forms/Picker/DatePicker/Years.d.ts +4 -3
- package/components/Forms/Picker/DatePicker/Years.js +12 -11
- package/components/Forms/Picker/DatePicker/styles/StyledCalendar.d.ts +9 -26
- package/components/Forms/Picker/DatePicker/styles/StyledCalendar.js +16 -19
- package/components/Forms/Picker/DatePicker/styles/StyledDatePickerHeader.d.ts +355 -9
- package/components/Forms/Picker/DatePicker/styles/StyledDatePickerHeader.js +10 -11
- package/components/Forms/Picker/DatePicker/styles/StyledDay.js +5 -3
- package/components/Forms/Picker/DatePicker/styles/StyledYear.d.ts +1 -4
- package/components/Forms/Picker/DatePicker/styles/StyledYear.js +2 -1
- package/components/Forms/Picker/DatePicker/styles/StyledYears.d.ts +2 -4
- package/components/Forms/Picker/DatePicker/styles/StyledYears.js +1 -0
- package/components/Forms/Picker/DatePicker/utils/DatePickerAriaLabelUtils.d.ts +3 -2
- package/components/Forms/Picker/DatePicker/utils/DatePickerAriaLabelUtils.js +3 -2
- package/components/Forms/Picker/DatePicker/utils/DatePickerUtils.d.ts +6 -5
- package/components/Forms/Picker/DatePicker/utils/DatePickerUtils.js +15 -10
- package/components/Forms/Picker/TimePicker/NumberPicker.d.ts +7 -38
- package/components/Forms/Picker/TimePicker/NumberPicker.js +18 -17
- package/components/Forms/Picker/TimePicker/SelectionView.d.ts +1 -1
- package/components/Forms/Picker/TimePicker/SelectionView.js +4 -3
- package/components/Forms/Picker/TimePicker/TimePicker.d.ts +5 -5
- package/components/Forms/Picker/TimePicker/TimePicker.js +51 -50
- package/components/Forms/Picker/TimePicker/ToggleText.d.ts +4 -22
- package/components/Forms/Picker/TimePicker/ToggleText.js +10 -9
- package/components/Forms/Picker/TimePicker/constant.js +2 -2
- package/components/Forms/Picker/TimePicker/styles/StyledNumberPicker.d.ts +1 -3
- package/components/Forms/Picker/TimePicker/styles/StyledNumberPicker.js +2 -1
- package/components/Forms/Picker/TimePicker/styles/StyledPickerPopperWrap.d.ts +1 -3
- package/components/Forms/Picker/TimePicker/styles/StyledPickerPopperWrap.js +3 -3
- package/components/Forms/Picker/TimePicker/styles/StyledSelectionItem.d.ts +1 -4
- package/components/Forms/Picker/TimePicker/styles/StyledSelectionItem.js +3 -3
- package/components/Forms/Picker/TimePicker/styles/StyledSelectionView.d.ts +1 -3
- package/components/Forms/Picker/TimePicker/styles/StyledSelectionView.js +3 -3
- package/components/Forms/Picker/TimePicker/styles/StyledTimeIconButton.d.ts +2 -4
- package/components/Forms/Picker/TimePicker/styles/StyledTimeIconButton.js +6 -7
- package/components/Forms/Picker/TimePicker/types.d.ts +1 -1
- package/components/Forms/Picker/TimePicker/utils/A11yUtils.js +1 -0
- package/components/Forms/Picker/TimePicker/utils/TimeBoundary.js +11 -9
- package/components/Forms/Picker/TimePicker/utils/TimePickerHelper.d.ts +5 -5
- package/components/Forms/Picker/TimePicker/utils/TimePickerHelper.js +8 -7
- package/components/Forms/Picker/TimePicker/utils/TimePickerUtils.d.ts +2 -2
- package/components/Forms/Picker/TimePicker/utils/TimePickerUtils.js +4 -3
- package/components/Forms/Picker/TimePicker/utils/getNumberPickerBoundary.d.ts +1 -1
- package/components/Forms/Picker/TimePicker/utils/getNumberPickerBoundary.js +2 -1
- package/components/Forms/Picker/styles/PickerBaseIconButton.d.ts +2 -2
- package/components/Forms/Picker/styles/PickerBaseIconButton.js +2 -1
- package/components/Forms/Picker/styles/StyledPickerTextField.d.ts +1 -3
- package/components/Forms/Picker/styles/StyledPickerTextField.js +4 -3
- package/components/Forms/Picker/styles/StyledPopover.d.ts +1 -4
- package/components/Forms/Picker/styles/StyledPopover.js +2 -1
- package/components/Forms/Picker/styles/datePickerCustomFocusRingStyle.js +4 -3
- package/components/Forms/Picker/utils/PickerTextField/PickerTextField.d.ts +6 -11
- package/components/Forms/Picker/utils/PickerTextField/PickerTextField.js +20 -19
- package/components/Forms/Radio/Radio.d.ts +4 -6
- package/components/Forms/Radio/Radio.js +7 -6
- package/components/Forms/Radio/styles/RadioStyle.js +6 -4
- package/components/Forms/Radio/utils/RadioUtils.js +3 -2
- package/components/Forms/RadioGroup/RadioGroup.d.ts +2 -4
- package/components/Forms/RadioGroup/RadioGroup.js +4 -3
- package/components/Forms/Select/PlainSelect/PlainSelect.d.ts +3 -5
- package/components/Forms/Select/PlainSelect/PlainSelect.js +14 -13
- package/components/Forms/Select/PlainSelect/styles/StyledSelect.js +7 -5
- package/components/Forms/Select/PlainSelect/utils/PlainSelectUtils.d.ts +1 -1
- package/components/Forms/Select/PlainSelect/utils/PlainSelectUtils.js +3 -2
- package/components/Forms/Select/Select.d.ts +4 -6
- package/components/Forms/Select/Select.js +15 -14
- package/components/Forms/Select/styles/SelectArrowDownIcon.d.ts +2 -4
- package/components/Forms/Select/styles/SelectArrowDownIcon.js +4 -3
- package/components/Forms/Select/styles/StyledSelect.js +16 -15
- package/components/Forms/Select/utils/SelectInput/SelectInput.d.ts +2 -2
- package/components/Forms/Select/utils/SelectInput/SelectInput.js +18 -17
- package/components/Forms/Select/utils/SelectUtils.d.ts +1 -1
- package/components/Forms/Select/utils/SelectUtils.js +6 -5
- package/components/Forms/Slider/Slider.d.ts +2 -4
- package/components/Forms/Slider/Slider.js +5 -4
- package/components/Forms/Slider/styles/SliderStyle.js +6 -4
- package/components/Forms/Slider/utils/SliderUtil.js +2 -1
- package/components/Forms/Switch/Switch.d.ts +4 -6
- package/components/Forms/Switch/Switch.js +8 -7
- package/components/Forms/Switch/styles/SwitchStyle.js +12 -10
- package/components/Forms/Switch/utils/SwitchUtils.d.ts +1 -1
- package/components/Forms/Switch/utils/SwitchUtils.js +2 -1
- package/components/Forms/TextField/TextField.d.ts +362 -7
- package/components/Forms/TextField/TextField.js +24 -23
- package/components/Forms/TextField/styles/ClearIconButton.d.ts +9 -2
- package/components/Forms/TextField/styles/ClearIconButton.js +4 -3
- package/components/Forms/TextField/styles/OutlineTextFieldStyle.js +8 -6
- package/components/Forms/TextField/styles/TextFieldStyle.d.ts +1 -1
- package/components/Forms/TextField/styles/TextFieldStyle.js +19 -19
- package/components/Forms/TextField/utils/OutlineTextFieldUtils.js +2 -1
- package/components/Forms/TextField/utils/TextFieldUtils.d.ts +2 -2
- package/components/Forms/TextField/utils/TextFieldUtils.js +9 -7
- package/components/Forms/Textarea/Textarea.d.ts +2 -4
- package/components/Forms/Textarea/Textarea.js +6 -5
- package/components/Forms/Textarea/styles/TextareaStyle.js +4 -3
- package/components/Forms/Textarea/utils/TextareaUtils.js +2 -1
- package/components/Forms/index.js +1 -0
- package/components/Forms/utils/CustomIconPropsGetter.d.ts +3 -8
- package/components/Forms/utils/CustomIconPropsGetter.js +5 -3
- package/components/Forms/utils/checkedStyles.d.ts +2 -2
- package/components/Forms/utils/checkedStyles.js +9 -8
- package/components/Grid/Grid.d.ts +21 -4
- package/components/Grid/Grid.js +5 -4
- package/components/Grid/styles/GridStyle.js +4 -2
- package/components/Grid/utils/GridUtils.js +2 -1
- package/components/Hidden/Hidden.d.ts +1 -2
- package/components/Hidden/Hidden.js +1 -0
- package/components/Icon/Icon.d.ts +13 -38
- package/components/Icon/Icon.js +9 -8
- package/components/Icon/name2icon.d.ts +1 -1
- package/components/Icon/name2icon.js +1 -0
- package/components/Icon/styles/IconStyle.js +7 -5
- package/components/Icon/styles/iconSvg.d.ts +1 -3
- package/components/Icon/styles/iconSvg.js +3 -2
- package/components/Icon/utils/IconService.d.ts +2 -2
- package/components/Icon/utils/IconService.js +3 -2
- package/components/Icon/utils/IconUtils.js +5 -4
- package/components/InlineEditable/InlineEditable.d.ts +69 -6
- package/components/InlineEditable/InlineEditable.js +28 -27
- package/components/InlineEditable/styles/InlineEditableStyle.js +5 -5
- package/components/InlineEditable/styles/textFieldStyle.d.ts +2 -2
- package/components/InlineEditable/styles/textFieldStyle.js +5 -4
- package/components/InlineEditable/utils/InlineEditableUtils.js +2 -1
- package/components/Link/Link.d.ts +25 -5
- package/components/Link/Link.js +6 -5
- package/components/Link/styles/StyledLink.js +8 -7
- package/components/Link/utils/LinkUtils.js +1 -0
- package/components/List/List/List.d.ts +8 -4
- package/components/List/List/List.js +5 -4
- package/components/List/List/styles/ListStyle.js +4 -2
- package/components/List/List/utils/ListUtils.js +2 -1
- package/components/List/ListItem/ListItem.d.ts +324 -6
- package/components/List/ListItem/ListItem.js +11 -14
- package/components/List/ListItem/styles/ListItemStyle.d.ts +1 -1
- package/components/List/ListItem/styles/ListItemStyle.js +14 -16
- package/components/List/ListItem/utils/ListItemUtils.d.ts +2 -2
- package/components/List/ListItem/utils/ListItemUtils.js +7 -6
- package/components/List/ListItemAvatar/ListItemAvatar.d.ts +2 -4
- package/components/List/ListItemAvatar/ListItemAvatar.js +5 -4
- package/components/List/ListItemAvatar/styles/ListItemAvatarStyle.js +3 -1
- package/components/List/ListItemAvatar/utils/ListItemAvatarUtils.js +2 -1
- package/components/List/ListItemIcon/ListItemIcon.d.ts +2 -4
- package/components/List/ListItemIcon/ListItemIcon.js +5 -4
- package/components/List/ListItemIcon/styles/ListItemIconStyle.js +4 -2
- package/components/List/ListItemIcon/utils/ListItemIconUtils.js +2 -1
- package/components/List/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -4
- package/components/List/ListItemSecondaryAction/ListItemSecondaryAction.js +9 -8
- package/components/List/ListItemSecondaryAction/styles/ListItemSecondaryActionStyle.js +4 -2
- package/components/List/ListItemSecondaryAction/utils/ListItemSecondaryActionUtils.js +2 -1
- package/components/List/ListItemText/ListItemText.d.ts +3 -5
- package/components/List/ListItemText/ListItemText.js +8 -7
- package/components/List/ListItemText/styles/ListItemTextStyle.js +9 -8
- package/components/List/ListItemText/utils/ListItemTextUtils.js +2 -1
- package/components/List/ListSubheader/ListSubheader.d.ts +2 -4
- package/components/List/ListSubheader/ListSubheader.js +5 -4
- package/components/List/ListSubheader/styles/ListSubheaderStyle.js +4 -2
- package/components/List/ListSubheader/utils/ListSubheaderUtils.js +2 -1
- package/components/Loading/Loading.d.ts +1 -1
- package/components/Loading/Loading.js +3 -2
- package/components/Loading/styles/StyledLoadingPage.d.ts +2 -2
- package/components/Loading/styles/StyledLoadingPage.js +5 -5
- package/components/Menu/Menu/Menu.d.ts +2 -4
- package/components/Menu/Menu/Menu.js +12 -11
- package/components/Menu/Menu/MenuContext.d.ts +2 -3
- package/components/Menu/Menu/MenuContext.js +2 -1
- package/components/Menu/Menu/styles/MenuStyle.js +4 -2
- package/components/Menu/Menu/utils/MenuUtils.js +2 -1
- package/components/Menu/MenuItem/MenuItem.d.ts +346 -48
- package/components/Menu/MenuItem/MenuItem.js +26 -27
- package/components/Menu/MenuItem/styles/MenuItemStyle.d.ts +7 -32
- package/components/Menu/MenuItem/styles/MenuItemStyle.js +6 -5
- package/components/Menu/MenuItem/utils/MenuItemUtils.d.ts +2 -2
- package/components/Menu/MenuItem/utils/MenuItemUtils.js +8 -7
- package/components/Menu/MenuItemActionWrapper/MenuItemActionWrapper.d.ts +1 -3
- package/components/Menu/MenuItemActionWrapper/MenuItemActionWrapper.js +1 -0
- package/components/Menu/MenuItemActionWrapper/styles/StyledMenuItemActionWrapper.d.ts +1 -3
- package/components/Menu/MenuItemActionWrapper/styles/StyledMenuItemActionWrapper.js +2 -1
- package/components/Menu/MenuItemSubAction/MenuItemSubAction.d.ts +2 -4
- package/components/Menu/MenuItemSubAction/MenuItemSubAction.js +1 -0
- package/components/Menu/MenuItemSubAction/styles/StyledMenuItemSubAction.d.ts +2 -3
- package/components/Menu/MenuItemSubAction/styles/StyledMenuItemSubAction.js +2 -1
- package/components/Menu/MenuList/MenuList.d.ts +2 -4
- package/components/Menu/MenuList/MenuList.js +11 -10
- package/components/Menu/MenuList/MenuListContext.d.ts +2 -3
- package/components/Menu/MenuList/MenuListContext.js +2 -1
- package/components/Menu/MenuList/styles/MenuListStyle.d.ts +1 -1
- package/components/Menu/MenuList/styles/MenuListStyle.js +5 -3
- package/components/Menu/MenuList/utils/MenuListUtils.js +2 -1
- package/components/Menu/MenuOption/MenuOption.d.ts +1 -1
- package/components/Menu/MenuOption/MenuOption.js +2 -1
- package/components/Menu/MenuOption/styles/StyledMenuOption.d.ts +3 -3
- package/components/Menu/MenuOption/styles/StyledMenuOption.js +2 -1
- package/components/Menu/SubMenu/SubMenu.d.ts +2 -4
- package/components/Menu/SubMenu/SubMenu.js +25 -24
- package/components/Menu/SubMenu/SubMenuContext.d.ts +2 -3
- package/components/Menu/SubMenu/SubMenuContext.js +2 -1
- package/components/Menu/SubMenu/styles/SubMenuStyle.d.ts +2 -7
- package/components/Menu/SubMenu/styles/SubMenuStyle.js +6 -4
- package/components/Menu/SubMenu/utils/SubMenuUtils.d.ts +1 -1
- package/components/Menu/SubMenu/utils/SubMenuUtils.js +2 -1
- package/components/MuiExports/index.d.ts +43 -0
- package/components/MuiExports/index.js +61 -0
- package/components/MuiExports/package.json +5 -0
- package/components/Pagination/Pagination/Pagination.d.ts +2 -4
- package/components/Pagination/Pagination/Pagination.js +5 -4
- package/components/Pagination/Pagination/styles/StyledPagination.js +4 -2
- package/components/Pagination/Pagination/utils/PaginationUtils.js +2 -1
- package/components/Pagination/PaginationItem/PaginationItem.d.ts +15 -18
- package/components/Pagination/PaginationItem/PaginationItem.js +5 -4
- package/components/Pagination/PaginationItem/styles/PaginationItemStyle.js +4 -2
- package/components/Pagination/PaginationItem/utils/PaginationItemUtils.js +2 -1
- package/components/Paper/Paper.d.ts +2 -4
- package/components/Paper/Paper.js +5 -4
- package/components/Paper/deprecated/Paper.d.ts +1 -1
- package/components/Paper/deprecated/Paper.js +1 -0
- package/components/Paper/styles/PaperStyle.js +4 -2
- package/components/Paper/utils/PaperUtils.js +2 -1
- package/components/Popover/Popover.d.ts +2 -4
- package/components/Popover/Popover.js +6 -5
- package/components/Popover/styles/PopoverStyle.js +4 -2
- package/components/Popover/utils/PopoverUtils.js +2 -1
- package/components/Popper/Popper.d.ts +2 -4
- package/components/Popper/Popper.js +5 -4
- package/components/Popper/modifiers/fixOffsetsModifer.js +2 -1
- package/components/Popper/styles/PopperStyle.js +4 -2
- package/components/PopupBox/PopupBox.d.ts +3 -5
- package/components/PopupBox/PopupBox.js +5 -4
- package/components/Portal/Portal.d.ts +1 -1
- package/components/Portal/Portal.js +2 -1
- package/components/PortalHost/Connectable/Connectable.js +2 -1
- package/components/PortalHost/Connectable/ThrottleScheduler.js +1 -0
- package/components/PortalHost/Connectable/types.d.ts +2 -2
- package/components/PortalHost/Connectable/types.js +1 -0
- package/components/PortalHost/PortalHost.d.ts +1 -1
- package/components/PortalHost/PortalHost.js +4 -3
- package/components/PortalHost/PortalManager/PortalManager.js +8 -7
- package/components/PortalHost/PortalManager/PortalStore.d.ts +3 -3
- package/components/PortalHost/PortalManager/PortalStore.js +6 -5
- package/components/PortalHost/PortalManager/types.d.ts +7 -7
- package/components/PortalHost/PortalManager/types.js +1 -0
- package/components/PortalHost/PortalManager/utils.d.ts +1 -1
- package/components/PortalHost/PortalManager/utils.js +3 -1
- package/components/PortalHost/PortalRenderer.d.ts +1 -1
- package/components/PortalHost/PortalRenderer.js +3 -2
- package/components/PortalHost/context/HasPortalParentContext.d.ts +6 -2
- package/components/PortalHost/context/HasPortalParentContext.js +4 -2
- package/components/PortalHost/context/PortalIDContext.d.ts +2 -3
- package/components/PortalHost/context/PortalIDContext.js +2 -1
- package/components/PortalHost/context/PortalManagerContext.d.ts +0 -1
- package/components/PortalHost/context/PortalManagerContext.js +2 -1
- package/components/PortalHost/index.js +2 -1
- package/components/PortalHost/utils/usePortalManagerWithID.d.ts +1 -2
- package/components/PortalHost/utils/usePortalManagerWithID.js +6 -4
- package/components/PortalHost/utils/useUnmountPortalHandler.js +5 -3
- package/components/Presence/Presence.d.ts +8 -19
- package/components/Presence/Presence.js +4 -3
- package/components/Presence/assets/Check.d.ts +1 -1
- package/components/Presence/assets/Check.js +1 -1
- package/components/Presence/assets/Default.d.ts +1 -1
- package/components/Presence/assets/Default.js +1 -1
- package/components/Presence/assets/Dnd.d.ts +1 -1
- package/components/Presence/assets/Dnd.js +1 -1
- package/components/Presence/assets/Offline.d.ts +1 -1
- package/components/Presence/assets/Offline.js +1 -1
- package/components/Presence/assets/Unattended.d.ts +1 -1
- package/components/Presence/assets/Unattended.js +1 -1
- package/components/Presence/assets/index.js +9 -5
- package/components/Presence/styles/StyledPresence.d.ts +7 -5
- package/components/Presence/styles/StyledPresence.js +11 -14
- package/components/Presence/utils/RcPresenceUtils.js +4 -3
- package/components/Progress/CircularProgress/CircularProgress.d.ts +2 -4
- package/components/Progress/CircularProgress/CircularProgress.js +5 -4
- package/components/Progress/CircularProgress/styles/CircularProgressStyle.js +5 -3
- package/components/Progress/CircularProgress/utils/CircularProgressUtils.js +2 -1
- package/components/Progress/LinearProgress/LinearProgress.d.ts +2 -4
- package/components/Progress/LinearProgress/LinearProgress.js +5 -4
- package/components/Progress/LinearProgress/styles/LinearProgressStyle.js +5 -3
- package/components/Progress/LinearProgress/utils/LinearProgressUtils.js +2 -1
- package/components/Progress/styles/StyledCircularProgress.d.ts +2 -3
- package/components/Progress/styles/StyledCircularProgress.js +2 -1
- package/components/Progress/utils/CircularProgressUtils.js +2 -1
- package/components/Rating/Rating.d.ts +2 -4
- package/components/Rating/Rating.js +8 -7
- package/components/Rating/styles/RatingStyle.js +10 -10
- package/components/Rating/utils/RatingUtils.js +2 -1
- package/components/Responsive/Responsive.d.ts +6 -2
- package/components/Responsive/Responsive.js +9 -8
- package/components/Responsive/utils/getMatchedBreakpoint.d.ts +2 -1
- package/components/Responsive/utils/getMatchedBreakpoint.js +4 -2
- package/components/Responsive/utils/index.js +1 -0
- package/components/Responsive/utils/types.d.ts +1 -1
- package/components/Snackbar/Snackbar.d.ts +2 -4
- package/components/Snackbar/Snackbar.js +6 -5
- package/components/Snackbar/SnackbarAction/SnackbarAction.d.ts +3 -5
- package/components/Snackbar/SnackbarAction/SnackbarAction.js +6 -5
- package/components/Snackbar/SnackbarAction/styles/StyledSnackbarContent.js +4 -3
- package/components/Snackbar/SnackbarAction/utils/SnackbarActionUtils.d.ts +1 -1
- package/components/Snackbar/SnackbarAction/utils/SnackbarActionUtils.js +2 -1
- package/components/Snackbar/SnackbarContent/SnackbarContent.d.ts +5 -7
- package/components/Snackbar/SnackbarContent/SnackbarContent.js +8 -7
- package/components/Snackbar/SnackbarContent/styles/StyledSnackbarContent.js +7 -5
- package/components/Snackbar/SnackbarContent/utils/SnackbarContentUtils.js +5 -4
- package/components/Snackbar/styles/SnackbarStyle.js +4 -2
- package/components/Snackbar/utils/SnackbarUtils.js +2 -1
- package/components/Stepper/Step/Step.d.ts +2 -4
- package/components/Stepper/Step/Step.js +5 -4
- package/components/Stepper/Step/styles/StepStyle.js +5 -3
- package/components/Stepper/Step/utils/StepUtils.js +2 -1
- package/components/Stepper/StepButton/StepButton.d.ts +2 -4
- package/components/Stepper/StepButton/StepButton.js +8 -7
- package/components/Stepper/StepButton/styles/StepButtonStyle.js +4 -2
- package/components/Stepper/StepButton/utils/StepButtonUtils.js +2 -1
- package/components/Stepper/StepConnector/StepConnector.d.ts +2 -4
- package/components/Stepper/StepConnector/StepConnector.js +5 -4
- package/components/Stepper/StepConnector/styles/StepConnectorStyle.js +4 -2
- package/components/Stepper/StepConnector/utils/StepConnectorUtils.js +2 -1
- package/components/Stepper/StepContent/StepContent.d.ts +2 -4
- package/components/Stepper/StepContent/StepContent.js +4 -3
- package/components/Stepper/StepContent/styles/StepContentStyle.js +4 -2
- package/components/Stepper/StepContent/utils/StepContentUtils.js +2 -1
- package/components/Stepper/StepIcon/StepIcon.d.ts +4 -4
- package/components/Stepper/StepIcon/StepIcon.js +7 -6
- package/components/Stepper/StepIcon/styles/StepIconStyle.js +4 -2
- package/components/Stepper/StepIcon/styles/StyledCircleIcon.d.ts +3 -5
- package/components/Stepper/StepIcon/styles/StyledCircleIcon.js +5 -3
- package/components/Stepper/StepIcon/utils/StepIconUtils.js +8 -6
- package/components/Stepper/StepLabel/StepLabel.d.ts +2 -4
- package/components/Stepper/StepLabel/StepLabel.js +6 -5
- package/components/Stepper/StepLabel/styles/StepLabelStyle.js +4 -2
- package/components/Stepper/StepLabel/utils/StepLabelUtils.js +2 -1
- package/components/Stepper/Stepper.d.ts +2 -4
- package/components/Stepper/Stepper.js +5 -4
- package/components/Stepper/styles/StepperStyle.js +4 -2
- package/components/Stepper/utils/StepperUtils.js +2 -1
- package/components/Table/Table.d.ts +2 -4
- package/components/Table/Table.js +5 -4
- package/components/Table/TableBody/TableBody.d.ts +4 -4
- package/components/Table/TableBody/TableBody.js +4 -3
- package/components/Table/TableCell/TableCell.d.ts +294 -4
- package/components/Table/TableCell/TableCell.js +8 -7
- package/components/Table/TableCell/styles/TableCellStyle.js +5 -3
- package/components/Table/TableCell/utils/TableCellUtils.d.ts +1 -1
- package/components/Table/TableCell/utils/TableCellUtils.js +2 -1
- package/components/Table/TableContainer/TableContainer.d.ts +2 -4
- package/components/Table/TableContainer/TableContainer.js +4 -3
- package/components/Table/TableContainer/styles/TableContainerStyle.js +4 -3
- package/components/Table/TableHead/TableHead.d.ts +4 -4
- package/components/Table/TableHead/TableHead.js +4 -3
- package/components/Table/TableRow/TableRow.d.ts +2 -4
- package/components/Table/TableRow/TableRow.js +6 -5
- package/components/Table/TableRow/styles/TableRowStyle.js +4 -2
- package/components/Table/TableRow/utils/TableRowUtils.d.ts +1 -1
- package/components/Table/TableRow/utils/TableRowUtils.js +2 -1
- package/components/Table/context.d.ts +1 -2
- package/components/Table/context.js +2 -1
- package/components/Table/index.js +1 -0
- package/components/Table/types.d.ts +2 -2
- package/components/TablePagination/TablePagination.d.ts +2 -4
- package/components/TablePagination/TablePagination.js +8 -7
- package/components/TablePagination/styles/TablePaginationActions.d.ts +2 -2
- package/components/TablePagination/styles/TablePaginationActions.js +5 -4
- package/components/TablePagination/styles/TablePaginationStyle.d.ts +342 -42
- package/components/TablePagination/styles/TablePaginationStyle.js +6 -4
- package/components/TablePagination/utils/TablePaginationUtils.d.ts +1 -1
- package/components/TablePagination/utils/TablePaginationUtils.js +7 -5
- package/components/Tabs/Tab/Tab.d.ts +3 -5
- package/components/Tabs/Tab/Tab.js +5 -4
- package/components/Tabs/Tab/styles/TabStyle.js +4 -3
- package/components/Tabs/Tab/utils/TabUtils.js +2 -1
- package/components/Tabs/TabContext/TabContext.js +4 -3
- package/components/Tabs/TabList/TabList.d.ts +2 -4
- package/components/Tabs/TabList/TabList.js +10 -9
- package/components/Tabs/TabList/styles/TabListStyle.js +4 -2
- package/components/Tabs/TabList/utils/TabListUtils.js +2 -1
- package/components/Tabs/TabPanel/TabPanel.d.ts +2 -4
- package/components/Tabs/TabPanel/TabPanel.js +6 -5
- package/components/Tabs/TabPanel/styles/TabPanelStyle.js +4 -2
- package/components/Tabs/TabPanel/utils/TabPanelUtils.js +2 -1
- package/components/Tabs/Tabs/MoreMenuTab/MoreMenuTab.d.ts +2 -4
- package/components/Tabs/Tabs/MoreMenuTab/MoreMenuTab.js +8 -7
- package/components/Tabs/Tabs/MoreMenuTab/styles/MoreMenuTabStyle.js +5 -4
- package/components/Tabs/Tabs/MoreMenuTabs/MoreMenuTabSentinel.d.ts +1 -1
- package/components/Tabs/Tabs/MoreMenuTabs/MoreMenuTabSentinel.js +2 -1
- package/components/Tabs/Tabs/MoreMenuTabs/MoreMenuTabs.d.ts +3 -5
- package/components/Tabs/Tabs/MoreMenuTabs/MoreMenuTabs.js +23 -22
- package/components/Tabs/Tabs/MoreMenuTabs/utils/MoreMenuTabsUtils.d.ts +5 -2
- package/components/Tabs/Tabs/MoreMenuTabs/utils/index.js +2 -0
- package/components/Tabs/Tabs/Tabs.d.ts +3 -5
- package/components/Tabs/Tabs/Tabs.js +6 -5
- package/components/Tabs/Tabs/styles/TabsStyle.js +4 -2
- package/components/Tabs/Tabs/utils/TabsUtils.js +2 -1
- package/components/Tag/Tag.d.ts +7 -22
- package/components/Tag/Tag.js +5 -4
- package/components/Tag/styles/TagStyle.js +5 -4
- package/components/Tag/utils/TagUtils.d.ts +4 -3
- package/components/Tag/utils/TagUtils.js +1 -0
- package/components/Text/Text.d.ts +3 -4
- package/components/Text/Text.js +14 -12
- package/components/Text/styles/StyledText.js +4 -3
- package/components/Thumbnail/Thumbnail.d.ts +5 -28
- package/components/Thumbnail/Thumbnail.js +5 -4
- package/components/Thumbnail/styles/StyledThumbnail.d.ts +3 -20
- package/components/Thumbnail/styles/StyledThumbnail.js +4 -4
- package/components/Thumbnail/utils/ThumbnailUtils.js +1 -0
- package/components/Toolbar/Toolbar.d.ts +2 -4
- package/components/Toolbar/Toolbar.js +4 -3
- package/components/Tooltip/Tooltip.d.ts +3 -5
- package/components/Tooltip/Tooltip.js +18 -17
- package/components/Tooltip/styles/Mask.d.ts +1 -3
- package/components/Tooltip/styles/Mask.js +1 -0
- package/components/Tooltip/styles/StyledTooltip.js +10 -9
- package/components/Tooltip/utils/TooltipUtils.js +11 -10
- package/components/Tooltip/utils/useTooltipForceHide.d.ts +2 -2
- package/components/Tooltip/utils/useTooltipForceHide.js +14 -12
- package/components/Tooltip/withTooltip/withTooltip.d.ts +1 -1
- package/components/Tooltip/withTooltip/withTooltip.js +2 -1
- package/components/Transitions/Collapse/Collapse.d.ts +2 -2
- package/components/Transitions/Collapse/Collapse.js +3 -2
- package/components/Transitions/Fade/Fade.d.ts +2 -2
- package/components/Transitions/Fade/Fade.js +3 -2
- package/components/Transitions/Grow/Grow.d.ts +2 -2
- package/components/Transitions/Grow/Grow.js +3 -2
- package/components/Transitions/Slide/Slide.d.ts +2 -2
- package/components/Transitions/Slide/Slide.js +3 -2
- package/components/Transitions/Transition.d.ts +6 -6
- package/components/Transitions/Transition.js +5 -2
- package/components/Transitions/Zoom/Zoom.d.ts +2 -2
- package/components/Transitions/Zoom/Zoom.js +3 -2
- package/components/Transitions/ZoomFrom/ZoomFrom.d.ts +3 -3
- package/components/Transitions/ZoomFrom/ZoomFrom.js +18 -23
- package/components/Transitions/ZoomFrom/utils/transformToFromElm.js +2 -1
- package/components/Transitions/ZoomInFadeOut/ZoomInFadeOut.d.ts +3 -3
- package/components/Transitions/ZoomInFadeOut/ZoomInFadeOut.js +17 -19
- package/components/Transitions/utils/transitionendSubscriber.js +3 -1
- package/components/Transitions/utils/useNormalizeTransition.d.ts +2 -1
- package/components/Transitions/utils/useNormalizeTransition.js +11 -8
- package/components/Typography/Typography.d.ts +6 -8
- package/components/Typography/Typography.js +5 -4
- package/components/Typography/styles/StyledTypography.js +5 -3
- package/components/Typography/utils/TypographyUtils.js +1 -0
- package/components/VirtualizedMenu/VirtualizedDivider/VirtualizedDivider.d.ts +7 -16
- package/components/VirtualizedMenu/VirtualizedDivider/VirtualizedDivider.js +4 -3
- package/components/VirtualizedMenu/VirtualizedMenu.d.ts +2 -4
- package/components/VirtualizedMenu/VirtualizedMenu.js +17 -16
- package/components/VirtualizedMenu/VirtualizedMenuList.d.ts +3 -5
- package/components/VirtualizedMenu/VirtualizedMenuList.js +36 -36
- package/components/VirtualizedMenu/styles/StyledMenuPadding.d.ts +2 -4
- package/components/VirtualizedMenu/styles/StyledMenuPadding.js +1 -0
- package/components/VirtualizedMenu/styles/VirtualizedMenuStyle.js +4 -2
- package/components/VirtualizedMenu/utils/VirtualizedMenuUtils.js +2 -1
- package/components/Virtuoso/react-virtuoso/AATree.d.ts +1 -1
- package/components/Virtuoso/react-virtuoso/AATree.js +3 -2
- package/components/Virtuoso/react-virtuoso/TableVirtuoso.d.ts +2 -2
- package/components/Virtuoso/react-virtuoso/TableVirtuoso.js +18 -17
- package/components/Virtuoso/react-virtuoso/Virtuoso.d.ts +164 -440
- package/components/Virtuoso/react-virtuoso/Virtuoso.js +61 -60
- package/components/Virtuoso/react-virtuoso/VirtuosoGrid.d.ts +47 -113
- package/components/Virtuoso/react-virtuoso/VirtuosoGrid.js +18 -17
- package/components/Virtuoso/react-virtuoso/alignToBottomSystem.d.ts +4 -4
- package/components/Virtuoso/react-virtuoso/alignToBottomSystem.js +1 -0
- package/components/Virtuoso/react-virtuoso/comparators.js +1 -0
- package/components/Virtuoso/react-virtuoso/domIOSystem.js +1 -0
- package/components/Virtuoso/react-virtuoso/followOutputSystem.d.ts +4 -4
- package/components/Virtuoso/react-virtuoso/followOutputSystem.js +1 -0
- package/components/Virtuoso/react-virtuoso/gridSystem.d.ts +4 -4
- package/components/Virtuoso/react-virtuoso/gridSystem.js +6 -33
- package/components/Virtuoso/react-virtuoso/groupedListSystem.js +3 -2
- package/components/Virtuoso/react-virtuoso/hooks/useChangedChildSizes.d.ts +2 -2
- package/components/Virtuoso/react-virtuoso/hooks/useChangedChildSizes.js +3 -3
- package/components/Virtuoso/react-virtuoso/hooks/useRcPortalWindowContext.js +3 -2
- package/components/Virtuoso/react-virtuoso/hooks/useScrollTop.d.ts +1 -1
- package/components/Virtuoso/react-virtuoso/hooks/useScrollTop.js +4 -4
- package/components/Virtuoso/react-virtuoso/hooks/useSize.d.ts +4 -4
- package/components/Virtuoso/react-virtuoso/hooks/useSize.js +2 -1
- package/components/Virtuoso/react-virtuoso/hooks/useWindowViewportRect.d.ts +1 -1
- package/components/Virtuoso/react-virtuoso/hooks/useWindowViewportRect.js +2 -2
- package/components/Virtuoso/react-virtuoso/index.js +10 -5
- package/components/Virtuoso/react-virtuoso/initialItemCountSystem.d.ts +6 -6
- package/components/Virtuoso/react-virtuoso/initialItemCountSystem.js +2 -1
- package/components/Virtuoso/react-virtuoso/initialScrollTopSystem.d.ts +4 -4
- package/components/Virtuoso/react-virtuoso/initialScrollTopSystem.js +1 -0
- package/components/Virtuoso/react-virtuoso/initialTopMostItemIndexSystem.d.ts +2 -2
- package/components/Virtuoso/react-virtuoso/initialTopMostItemIndexSystem.js +3 -2
- package/components/Virtuoso/react-virtuoso/interfaces.d.ts +23 -23
- package/components/Virtuoso/react-virtuoso/listStateSystem.d.ts +5 -5
- package/components/Virtuoso/react-virtuoso/listStateSystem.js +12 -11
- package/components/Virtuoso/react-virtuoso/listSystem.d.ts +47 -47
- package/components/Virtuoso/react-virtuoso/listSystem.js +4 -16
- package/components/Virtuoso/react-virtuoso/loggerSystem.d.ts +1 -1
- package/components/Virtuoso/react-virtuoso/loggerSystem.js +3 -2
- package/components/Virtuoso/react-virtuoso/propsReadySystem.js +1 -0
- package/components/Virtuoso/react-virtuoso/react-urx/index.d.ts +5 -5
- package/components/Virtuoso/react-virtuoso/react-urx/index.js +2 -1
- package/components/Virtuoso/react-virtuoso/recalcSystem.js +1 -0
- package/components/Virtuoso/react-virtuoso/scrollIntoViewSystem.d.ts +6 -6
- package/components/Virtuoso/react-virtuoso/scrollIntoViewSystem.js +4 -3
- package/components/Virtuoso/react-virtuoso/scrollSeekSystem.js +1 -0
- package/components/Virtuoso/react-virtuoso/scrollToIndexSystem.d.ts +2 -2
- package/components/Virtuoso/react-virtuoso/scrollToIndexSystem.js +5 -4
- package/components/Virtuoso/react-virtuoso/sizeRangeSystem.d.ts +5 -5
- package/components/Virtuoso/react-virtuoso/sizeRangeSystem.js +1 -0
- package/components/Virtuoso/react-virtuoso/sizeSystem.d.ts +6 -4
- package/components/Virtuoso/react-virtuoso/sizeSystem.js +42 -42
- package/components/Virtuoso/react-virtuoso/stateFlagsSystem.d.ts +4 -4
- package/components/Virtuoso/react-virtuoso/stateFlagsSystem.js +2 -1
- package/components/Virtuoso/react-virtuoso/stateLoadSystem.d.ts +2 -2
- package/components/Virtuoso/react-virtuoso/stateLoadSystem.js +2 -1
- package/components/Virtuoso/react-virtuoso/topItemCountSystem.d.ts +4 -4
- package/components/Virtuoso/react-virtuoso/topItemCountSystem.js +1 -0
- package/components/Virtuoso/react-virtuoso/totalListHeightSystem.d.ts +4 -4
- package/components/Virtuoso/react-virtuoso/totalListHeightSystem.js +1 -0
- package/components/Virtuoso/react-virtuoso/upwardScrollFixSystem.d.ts +4 -4
- package/components/Virtuoso/react-virtuoso/upwardScrollFixSystem.js +3 -2
- package/components/Virtuoso/react-virtuoso/urx/actions.d.ts +1 -1
- package/components/Virtuoso/react-virtuoso/urx/actions.js +2 -1
- package/components/Virtuoso/react-virtuoso/urx/constants.d.ts +4 -4
- package/components/Virtuoso/react-virtuoso/urx/constants.js +1 -0
- package/components/Virtuoso/react-virtuoso/urx/pipe.d.ts +1 -1
- package/components/Virtuoso/react-virtuoso/urx/pipe.js +6 -5
- package/components/Virtuoso/react-virtuoso/urx/streams.js +6 -5
- package/components/Virtuoso/react-virtuoso/urx/system.d.ts +5 -5
- package/components/Virtuoso/react-virtuoso/urx/system.js +2 -1
- package/components/Virtuoso/react-virtuoso/urx/transformers.js +10 -9
- package/components/Virtuoso/react-virtuoso/urx/utils.js +1 -0
- package/components/Virtuoso/react-virtuoso/utils/approximatelyEqual.js +1 -0
- package/components/Virtuoso/react-virtuoso/utils/binaryArraySearch.d.ts +1 -1
- package/components/Virtuoso/react-virtuoso/utils/binaryArraySearch.js +2 -1
- package/components/Virtuoso/react-virtuoso/utils/context.js +1 -0
- package/components/Virtuoso/react-virtuoso/utils/correctItemSize.js +1 -0
- package/components/Virtuoso/react-virtuoso/utils/positionStickyCssValue.d.ts +1 -1
- package/components/Virtuoso/react-virtuoso/utils/positionStickyCssValue.js +2 -1
- package/components/Virtuoso/react-virtuoso/utils/simpleMemoize.js +1 -0
- package/components/Virtuoso/react-virtuoso/utils/skipFrames.js +1 -0
- package/components/Virtuoso/react-virtuoso/windowScrollerSystem.js +1 -0
- package/components/Virtuoso/utils/isOutOfRange.js +1 -0
- package/components/Virtuoso/utils/useDynamicHeight.d.ts +2 -3
- package/components/Virtuoso/utils/useDynamicHeight.js +5 -3
- package/components/Virtuoso/utils/useHighlightScroll.d.ts +1 -1
- package/components/Virtuoso/utils/useHighlightScroll.js +3 -2
- package/components/VisuallyHidden/VisuallyHidden.d.ts +1 -3
- package/components/VisuallyHidden/VisuallyHidden.js +1 -0
- package/components/index.d.ts +1 -0
- package/components/index.js +2 -0
- package/es6/components/Accordion/styles/AccordionStyle.js +2 -2
- package/es6/components/Animations/Highlight/Highlight.js +1 -1
- package/es6/components/AppBar/AppBar.js +1 -1
- package/es6/components/Avatar/Avatar.js +4 -4
- package/es6/components/Avatar/styles/StyledAvatar.js +1 -2
- package/es6/components/Avatar/styles/StyledAvatarWrapper.js +2 -5
- package/es6/components/Avatar/utils/useAvatarColorToken.js +1 -1
- package/es6/components/Avatar/utils/useAvatarShortName.js +2 -2
- package/es6/components/Badge/DotBadge.js +1 -1
- package/es6/components/Badge/styles/BadgeStyle.js +3 -8
- package/es6/components/Buttons/Button/Button.js +1 -5
- package/es6/components/Buttons/Button/styles/StyledButton.js +2 -13
- package/es6/components/Buttons/ButtonGroup/styles/StyledButtonGroup.js +1 -0
- package/es6/components/Buttons/ButtonGroup/styles/index.js +1 -0
- package/es6/components/Buttons/ButtonGroup/utils/ButtonGroupUtils.js +1 -0
- package/es6/components/Buttons/ButtonGroup/utils/index.js +1 -0
- package/es6/components/Buttons/IconButton/IconButton.js +1 -9
- package/es6/components/Buttons/IconButton/styles/StyledIconButton.js +3 -13
- package/es6/components/Buttons/IconButtonGroup/styles/IconButtonGroupStyle.js +3 -4
- package/es6/components/Buttons/SplitButton/SplitButton.js +1 -2
- package/es6/components/Buttons/SplitButton/styles/StyledSplitButton.js +4 -15
- package/es6/components/Buttons/ToggleButton/styles/ToggleButtonStyle.js +1 -4
- package/es6/components/Buttons/ToggleButton/utils/ToggleButtonUtils.js +3 -3
- package/es6/components/Buttons/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/es6/components/Buttons/ToggleButtonGroup/styles/ToggleButtonGroupStyle.js +1 -2
- package/es6/components/Buttons/ToggleButtonGroup/styles/boxStyle.js +1 -4
- package/es6/components/Buttons/ToggleButtonGroup/styles/standardStyle.js +1 -5
- package/es6/components/Buttons/ToggleButtonGroup/utils/ToggleButtonGroupUtils.js +1 -1
- package/es6/components/Card/Card/styles/CardStyles.js +1 -2
- package/es6/components/Card/CardHoverActions/styles/CardHoverActionsStyle.js +1 -2
- package/es6/components/Chip/styles/ChipStyle.js +2 -6
- package/es6/components/DetachedWindow/utils/JssDomRendererFactory.js +1 -1
- package/es6/components/DetachedWindow/utils/openExternalWindow.js +4 -4
- package/es6/components/Dialer/DialPad/DialPad.js +3 -3
- package/es6/components/Dialer/DialPad/styles/StyledDialPad.js +1 -2
- package/es6/components/Dialer/DialPad/utils/DialPadUtils.js +4 -4
- package/es6/components/Dialer/DialPad/utils/index.js +1 -0
- package/es6/components/Dialer/DialPad/utils/types.js +1 -0
- package/es6/components/Dialer/DialPad/utils/useDialKeyboard.js +2 -2
- package/es6/components/Dialog/DialogActions/DialogActions.js +1 -2
- package/es6/components/Dialog/DialogActions/styles/DialogActionsStyle.js +5 -10
- package/es6/components/Dialog/DialogContent/styles/DialogContentStyle.js +2 -2
- package/es6/components/Dialog/DialogTitle/DialogTitle.js +1 -1
- package/es6/components/Dialog/DialogTitle/styles/DialogTitleStyle.js +2 -2
- package/es6/components/Dialog/styles/DialogStyle.js +2 -4
- package/es6/components/Divider/styles/StyledDivider.js +2 -3
- package/es6/components/DnD/Draggable/Draggable.js +2 -2
- package/es6/components/DnD/Draggable/utils/DraggableUtils.js +1 -1
- package/es6/components/DnD/Droppable/Droppable.js +2 -2
- package/es6/components/Downshift/Downshift.js +8 -8
- package/es6/components/Downshift/SuggestionList/SuggestionList.js +5 -4
- package/es6/components/Downshift/SuggestionList/utils/useSuggestionList.js +9 -9
- package/es6/components/Downshift/styles/StyledPopper.js +1 -2
- package/es6/components/Downshift/utils/DownshiftUtils.js +5 -2
- package/es6/components/Downshift/utils/SelectItem.js +1 -0
- package/es6/components/Downshift/utils/index.js +2 -0
- package/es6/components/Downshift/utils/useDownshift.interface.js +1 -0
- package/es6/components/Downshift/utils/useDownshift.js +7 -7
- package/es6/components/Downshift/utils/useDownshiftGroup.js +4 -4
- package/es6/components/Downshift/utils/useDownshiftTag.js +10 -10
- package/es6/components/Drawer/styles/DrawerStyle.js +1 -2
- package/es6/components/Forms/BaseForm.js +1 -0
- package/es6/components/Forms/Form/Form/Form.js +2 -2
- package/es6/components/Forms/Form/Form/index.js +1 -0
- package/es6/components/Forms/Form/Form/types.js +1 -0
- package/es6/components/Forms/FormControlLabel/styles/FormControlLabelStyle.js +1 -1
- package/es6/components/Forms/Picker/DatePicker/Calendar.js +3 -3
- package/es6/components/Forms/Picker/DatePicker/DatePickerHeader.js +1 -1
- package/es6/components/Forms/Picker/DatePicker/Year.js +1 -1
- package/es6/components/Forms/Picker/DatePicker/styles/StyledCalendar.js +4 -8
- package/es6/components/Forms/Picker/DatePicker/styles/StyledDatePickerHeader.js +2 -4
- package/es6/components/Forms/Picker/TimePicker/NumberPicker.js +3 -3
- package/es6/components/Forms/Picker/TimePicker/SelectionView.js +1 -1
- package/es6/components/Forms/Picker/TimePicker/TimePicker.js +4 -4
- package/es6/components/Forms/Picker/TimePicker/styles/StyledNumberPicker.js +1 -1
- package/es6/components/Forms/Picker/TimePicker/styles/StyledPickerPopperWrap.js +1 -2
- package/es6/components/Forms/Picker/TimePicker/styles/StyledSelectionItem.js +1 -2
- package/es6/components/Forms/Picker/TimePicker/styles/StyledSelectionView.js +1 -2
- package/es6/components/Forms/Picker/TimePicker/styles/StyledTimeIconButton.js +1 -3
- package/es6/components/Forms/Picker/TimePicker/types.js +1 -0
- package/es6/components/Forms/Picker/TimePicker/utils/TimeBoundary.js +4 -4
- package/es6/components/Forms/Picker/TimePicker/utils/TimePickerHelper.js +4 -4
- package/es6/components/Forms/Picker/TimePicker/utils/getNumberPickerBoundary.js +1 -1
- package/es6/components/Forms/Picker/styles/datePickerCustomFocusRingStyle.js +1 -2
- package/es6/components/Forms/Picker/utils/PickerTextField/PickerTextField.js +4 -4
- package/es6/components/Forms/Picker/utils/PickerUtils.js +1 -0
- package/es6/components/Forms/Select/PlainSelect/styles/StyledSelect.js +3 -3
- package/es6/components/Forms/Select/styles/StyledSelect.js +2 -3
- package/es6/components/Forms/Select/utils/SelectInput/SelectInput.js +8 -8
- package/es6/components/Forms/TextField/styles/TextFieldStyle.js +2 -4
- package/es6/components/Forms/Textarea/styles/TextareaStyle.js +1 -2
- package/es6/components/Forms/index.js +1 -0
- package/es6/components/Forms/utils/checkedStyles.js +1 -2
- package/es6/components/Icon/Icon.js +2 -2
- package/es6/components/InlineEditable/InlineEditable.js +2 -2
- package/es6/components/InlineEditable/styles/InlineEditableStyle.js +2 -4
- package/es6/components/Link/styles/StyledLink.js +1 -2
- package/es6/components/List/ListItem/ListItem.js +1 -5
- package/es6/components/List/ListItem/styles/ListItemStyle.js +4 -9
- package/es6/components/List/ListItem/utils/ListItemUtils.js +2 -2
- package/es6/components/List/ListItemText/styles/ListItemTextStyle.js +1 -2
- package/es6/components/Loading/styles/StyledLoadingPage.js +1 -2
- package/es6/components/Menu/MenuItem/MenuItem.js +1 -3
- package/es6/components/Menu/MenuItem/styles/MenuItemStyle.js +1 -2
- package/es6/components/Menu/MenuItem/utils/MenuItemUtils.js +1 -1
- package/es6/components/MuiExports/index.js +41 -0
- package/es6/components/Popper/modifiers/fixOffsetsModifer.js +1 -1
- package/es6/components/PortalHost/Connectable/Connectable.js +1 -1
- package/es6/components/PortalHost/PortalManager/PortalManager.js +1 -1
- package/es6/components/PortalHost/PortalManager/PortalStore.js +6 -6
- package/es6/components/Presence/styles/StyledPresence.js +5 -9
- package/es6/components/Rating/styles/RatingStyle.js +2 -4
- package/es6/components/Responsive/utils/getMatchedBreakpoint.js +2 -2
- package/es6/components/Responsive/utils/index.js +1 -0
- package/es6/components/Responsive/utils/types.js +1 -0
- package/es6/components/Snackbar/SnackbarAction/styles/StyledSnackbarContent.js +1 -2
- package/es6/components/Table/TableContainer/styles/TableContainerStyle.js +1 -2
- package/es6/components/Table/index.js +1 -0
- package/es6/components/Table/types.js +1 -0
- package/es6/components/TablePagination/TablePagination.js +1 -1
- package/es6/components/TablePagination/utils/TablePaginationUtils.js +3 -3
- package/es6/components/Tabs/Tab/styles/TabStyle.js +1 -2
- package/es6/components/Tabs/Tabs/MoreMenuTab/styles/MoreMenuTabStyle.js +1 -2
- package/es6/components/Tabs/Tabs/MoreMenuTabs/MoreMenuTabs.js +5 -5
- package/es6/components/Tabs/Tabs/MoreMenuTabs/utils/MoreMenuTabsUtils.js +1 -0
- package/es6/components/Tabs/Tabs/MoreMenuTabs/utils/index.js +1 -0
- package/es6/components/Tag/styles/TagStyle.js +1 -2
- package/es6/components/Text/Text.js +2 -1
- package/es6/components/Text/styles/StyledText.js +1 -2
- package/es6/components/Thumbnail/styles/StyledThumbnail.js +1 -2
- package/es6/components/Tooltip/styles/StyledTooltip.js +1 -2
- package/es6/components/Transitions/Transition.js +2 -1
- package/es6/components/Transitions/ZoomFrom/ZoomFrom.js +1 -7
- package/es6/components/Transitions/ZoomFrom/utils/transformToFromElm.js +1 -1
- package/es6/components/Transitions/ZoomInFadeOut/ZoomInFadeOut.js +4 -7
- package/es6/components/VirtualizedMenu/VirtualizedMenu.js +1 -1
- package/es6/components/VirtualizedMenu/VirtualizedMenuList.js +4 -5
- package/es6/components/Virtuoso/react-virtuoso/AATree.js +3 -3
- package/es6/components/Virtuoso/react-virtuoso/TableVirtuoso.js +4 -4
- package/es6/components/Virtuoso/react-virtuoso/Virtuoso.js +6 -6
- package/es6/components/Virtuoso/react-virtuoso/VirtuosoGrid.js +4 -4
- package/es6/components/Virtuoso/react-virtuoso/component-interfaces/TableVirtuoso.js +1 -0
- package/es6/components/Virtuoso/react-virtuoso/component-interfaces/Virtuoso.js +1 -0
- package/es6/components/Virtuoso/react-virtuoso/component-interfaces/VirtuosoGrid.js +1 -0
- package/es6/components/Virtuoso/react-virtuoso/gridSystem.js +2 -30
- package/es6/components/Virtuoso/react-virtuoso/hooks/useChangedChildSizes.js +1 -1
- package/es6/components/Virtuoso/react-virtuoso/index.js +4 -0
- package/es6/components/Virtuoso/react-virtuoso/interfaces.js +1 -0
- package/es6/components/Virtuoso/react-virtuoso/listStateSystem.js +1 -1
- package/es6/components/Virtuoso/react-virtuoso/listSystem.js +3 -16
- package/es6/components/Virtuoso/react-virtuoso/loggerSystem.js +1 -1
- package/es6/components/Virtuoso/react-virtuoso/react-urx/index.js +2 -2
- package/es6/components/Virtuoso/react-virtuoso/sizeSystem.js +5 -6
- package/es6/components/Virtuoso/react-virtuoso/urx/pipe.js +2 -2
- package/es6/components/Virtuoso/react-virtuoso/urx/streams.js +2 -2
- package/es6/components/Virtuoso/react-virtuoso/urx/system.js +1 -1
- package/es6/components/Virtuoso/react-virtuoso/urx/transformers.js +4 -4
- package/es6/components/Virtuoso/react-virtuoso/utils/binaryArraySearch.js +1 -1
- package/es6/components/index.js +2 -0
- package/es6/foundation/MuiExports/index.js +29 -0
- package/es6/foundation/config.js +3 -3
- package/es6/foundation/contexts/ResponsiveContext/getMatchDetail.js +5 -5
- package/es6/foundation/contexts/ResponsiveContext/index.js +1 -0
- package/es6/foundation/contexts/ResponsiveContext/types.js +1 -0
- package/es6/foundation/hoc/withResponsive/types.js +1 -0
- package/es6/foundation/hoc/withResponsive/withResponsive.js +7 -6
- package/es6/foundation/hooks/useAnnouncer/useAnnouncer.js +1 -1
- package/es6/foundation/hooks/useId/useId.js +1 -1
- package/es6/foundation/hooks/useKeyboardMoveFocus/useOnlyOneFocusable.js +5 -2
- package/es6/foundation/hooks/useResizeObserver/useResizeObserver.js +2 -2
- package/es6/foundation/hooks/useRetry/useRetry.js +3 -3
- package/es6/foundation/hooks/useTouchMouseEvent/useTouchMouseEvent.js +1 -1
- package/es6/foundation/index.js +3 -0
- package/es6/foundation/styles/flexWidth.js +1 -2
- package/es6/foundation/styles/newPalette.js +3 -3
- package/es6/foundation/styles/px.js +1 -1
- package/es6/foundation/styles/spacing.js +2 -2
- package/es6/foundation/styles/typography.js +2 -2
- package/es6/foundation/theme/DefaultTheme.js +1 -0
- package/es6/foundation/theme/ThemeHandler.js +4 -4
- package/es6/foundation/theme/ThemeProvider.js +1 -1
- package/es6/foundation/theme/index.js +5 -0
- package/es6/foundation/theme/palette.type.js +1 -0
- package/es6/foundation/theme/paletteProp.type.js +1 -0
- package/es6/foundation/theme/theme.type.js +1 -0
- package/es6/foundation/theme/typography.type.js +1 -0
- package/es6/foundation/theme/useThemeProps.js +1 -1
- package/es6/foundation/typings/BaseColor.js +1 -0
- package/es6/foundation/typings/BaseDirection.js +1 -0
- package/es6/foundation/typings/BaseFocusVariant.js +1 -0
- package/es6/foundation/typings/BaseFormControlLabel.js +1 -0
- package/es6/foundation/typings/BaseLabelPlacement.js +1 -0
- package/es6/foundation/typings/BaseProps.js +1 -0
- package/es6/foundation/typings/BaseSize.js +1 -0
- package/es6/foundation/typings/UnionOmit.js +1 -0
- package/es6/foundation/typings/UnitMap.js +1 -0
- package/es6/foundation/typings/deepPartial.js +1 -0
- package/es6/foundation/typings/index.js +11 -0
- package/es6/foundation/typings/notNullRecord.js +1 -0
- package/es6/foundation/utils/checkDefaultPrevented.js +2 -2
- package/es6/foundation/utils/classes.js +1 -1
- package/es6/foundation/utils/combineProps.js +3 -3
- package/es6/foundation/utils/deepmerge.js +2 -2
- package/es6/foundation/utils/hasValue.js +3 -1
- package/es6/foundation/utils/removeClassName.js +1 -1
- package/es6/foundation/utils/withDeprecatedCheck.js +6 -6
- package/foundation/MuiExports/index.d.ts +19 -0
- package/foundation/MuiExports/index.js +58 -0
- package/foundation/MuiExports/package.json +5 -0
- package/foundation/config.d.ts +2 -2
- package/foundation/config.js +6 -4
- package/foundation/contexts/PortalWindowContext.d.ts +1 -2
- package/foundation/contexts/PortalWindowContext.js +3 -2
- package/foundation/contexts/ResponsiveContext/ResponsiveContext.d.ts +1 -2
- package/foundation/contexts/ResponsiveContext/ResponsiveContext.js +3 -2
- package/foundation/contexts/ResponsiveContext/breakpointList.js +1 -0
- package/foundation/contexts/ResponsiveContext/getMatchDetail.js +8 -6
- package/foundation/contexts/ResponsiveContext/index.js +1 -0
- package/foundation/contexts/ResponsiveContext/types.d.ts +8 -8
- package/foundation/hoc/withDelay/withDelay.d.ts +1 -1
- package/foundation/hoc/withDelay/withDelay.js +3 -2
- package/foundation/hoc/withResponsive/types.d.ts +2 -2
- package/foundation/hoc/withResponsive/utils.d.ts +26 -4
- package/foundation/hoc/withResponsive/utils.js +5 -2
- package/foundation/hoc/withResponsive/withResponsive.d.ts +1 -1
- package/foundation/hoc/withResponsive/withResponsive.js +17 -15
- package/foundation/hooks/useA11yKeyEvent/useA11yKeyEvent.d.ts +2 -4
- package/foundation/hooks/useA11yKeyEvent/useA11yKeyEvent.js +4 -2
- package/foundation/hooks/useAnnouncer/useAnnouncer.d.ts +1 -1
- package/foundation/hooks/useAnnouncer/useAnnouncer.js +7 -5
- package/foundation/hooks/useAudio/useAudio.js +5 -3
- package/foundation/hooks/useChange/useChange.js +11 -8
- package/foundation/hooks/useControlled/useControlled.js +2 -1
- package/foundation/hooks/useDebounce/useDebounce.d.ts +1 -1
- package/foundation/hooks/useDebounce/useDebounce.js +6 -4
- package/foundation/hooks/useEventCallback/useEventCallback.js +4 -2
- package/foundation/hooks/useEventListener/useEventListener.d.ts +2 -2
- package/foundation/hooks/useEventListener/useEventListener.js +7 -6
- package/foundation/hooks/useEver/useEver.js +4 -2
- package/foundation/hooks/useFocusInside/useFocusInside.d.ts +4 -4
- package/foundation/hooks/useFocusInside/useFocusInside.js +6 -4
- package/foundation/hooks/useForceUpdate/useForceUpdate.js +3 -2
- package/foundation/hooks/useForkRef/useForkRef.js +1 -0
- package/foundation/hooks/useGlobalListener/createGlobalListener.d.ts +2 -2
- package/foundation/hooks/useGlobalListener/createGlobalListener.js +5 -3
- package/foundation/hooks/useGlobalListener/useGlobalListener.d.ts +2 -2
- package/foundation/hooks/useGlobalListener/useGlobalListener.js +8 -7
- package/foundation/hooks/useHiddenTabindex/useHiddenTabindex.js +7 -5
- package/foundation/hooks/useId/useId.js +4 -3
- package/foundation/hooks/useInterval/useInterval.js +11 -9
- package/foundation/hooks/useKeyDownOnce/useKeyDownOnce.d.ts +1 -2
- package/foundation/hooks/useKeyDownOnce/useKeyDownOnce.js +6 -4
- package/foundation/hooks/useKeyboardMoveFocus/moveIndexInTwoDimension.d.ts +1 -1
- package/foundation/hooks/useKeyboardMoveFocus/moveIndexInTwoDimension.js +1 -0
- package/foundation/hooks/useKeyboardMoveFocus/useKeyboardMoveFocus.d.ts +4 -5
- package/foundation/hooks/useKeyboardMoveFocus/useKeyboardMoveFocus.js +8 -6
- package/foundation/hooks/useKeyboardMoveFocus/useOnlyOneFocusable.d.ts +2 -3
- package/foundation/hooks/useKeyboardMoveFocus/useOnlyOneFocusable.js +10 -5
- package/foundation/hooks/useLongPress/useLongPress.d.ts +4 -4
- package/foundation/hooks/useLongPress/useLongPress.js +17 -14
- package/foundation/hooks/useMountState/useMountState.d.ts +0 -1
- package/foundation/hooks/useMountState/useMountState.js +5 -3
- package/foundation/hooks/useOnReRender/useOnReRender.d.ts +1 -1
- package/foundation/hooks/useOnReRender/useOnReRender.js +6 -4
- package/foundation/hooks/useOverflow/useOverflow.d.ts +1 -1
- package/foundation/hooks/useOverflow/useOverflow.js +6 -4
- package/foundation/hooks/usePrevious/usePrevious.js +3 -2
- package/foundation/hooks/useRefState/useRefState.d.ts +1 -2
- package/foundation/hooks/useRefState/useRefState.js +6 -4
- package/foundation/hooks/useResizeObserver/useResizeObserver.d.ts +1 -1
- package/foundation/hooks/useResizeObserver/useResizeObserver.js +16 -13
- package/foundation/hooks/useResponsiveMatch/useResponsiveMatch.d.ts +2 -1
- package/foundation/hooks/useResponsiveMatch/useResponsiveMatch.js +3 -2
- package/foundation/hooks/useResultRef/useResultRef.js +3 -2
- package/foundation/hooks/useRetry/useRetry.d.ts +2 -2
- package/foundation/hooks/useRetry/useRetry.js +7 -5
- package/foundation/hooks/useSleep/useSleep.js +7 -5
- package/foundation/hooks/useThrottle/useThrottle.d.ts +1 -1
- package/foundation/hooks/useThrottle/useThrottle.js +6 -4
- package/foundation/hooks/useTouchMouseEvent/useTouchMouseEvent.d.ts +1 -1
- package/foundation/hooks/useTouchMouseEvent/useTouchMouseEvent.js +16 -13
- package/foundation/index.d.ts +1 -0
- package/foundation/index.js +4 -0
- package/foundation/overridableStyled.d.ts +1 -1
- package/foundation/overridableStyled.js +1 -0
- package/foundation/styled-components.d.ts +3 -3
- package/foundation/styled-components.js +2 -1
- package/foundation/styles/GlobalScrollBarStyle/GlobalScrollBarStyle.d.ts +1 -1
- package/foundation/styles/GlobalScrollBarStyle/GlobalScrollBarStyle.js +2 -1
- package/foundation/styles/colorManipulator.js +6 -4
- package/foundation/styles/ellipsis.d.ts +1 -1
- package/foundation/styles/ellipsis.js +2 -1
- package/foundation/styles/fakeBorder.d.ts +3 -3
- package/foundation/styles/fakeBorder.js +6 -4
- package/foundation/styles/flexCenter.d.ts +1 -1
- package/foundation/styles/flexCenter.js +2 -1
- package/foundation/styles/flexWidth.d.ts +1 -1
- package/foundation/styles/flexWidth.js +4 -3
- package/foundation/styles/focusRing.d.ts +3 -3
- package/foundation/styles/focusRing.js +5 -3
- package/foundation/styles/focusVisible.d.ts +3 -2
- package/foundation/styles/focusVisible.js +8 -5
- package/foundation/styles/lineClamp.d.ts +1 -1
- package/foundation/styles/lineClamp.js +2 -1
- package/foundation/styles/newPalette.d.ts +3 -3
- package/foundation/styles/newPalette.js +5 -4
- package/foundation/styles/nonStyleButton.d.ts +1 -1
- package/foundation/styles/nonStyleButton.js +2 -1
- package/foundation/styles/nonTouchHoverMedia.js +1 -0
- package/foundation/styles/opacity.js +3 -2
- package/foundation/styles/palette.js +5 -4
- package/foundation/styles/paletteContrastText.js +1 -0
- package/foundation/styles/px.js +2 -1
- package/foundation/styles/radius.js +1 -0
- package/foundation/styles/rippleEnter.js +3 -1
- package/foundation/styles/rippleStyle.d.ts +1 -1
- package/foundation/styles/rippleStyle.js +4 -2
- package/foundation/styles/shadows.js +1 -0
- package/foundation/styles/spacing.js +2 -1
- package/foundation/styles/typography.d.ts +1 -1
- package/foundation/styles/typography.js +6 -5
- package/foundation/styles/zIndex.js +1 -0
- package/foundation/theme/ThemeHandler.d.ts +2 -2
- package/foundation/theme/ThemeHandler.js +7 -6
- package/foundation/theme/ThemeProvider.d.ts +3 -3
- package/foundation/theme/ThemeProvider.js +10 -8
- package/foundation/theme/ThemeSwitcherProvider/ThemeContext.d.ts +3 -2
- package/foundation/theme/ThemeSwitcherProvider/ThemeContext.js +1 -0
- package/foundation/theme/ThemeSwitcherProvider/ThemeSwitcherProvider.d.ts +2 -2
- package/foundation/theme/ThemeSwitcherProvider/ThemeSwitcherProvider.js +5 -3
- package/foundation/theme/ThemeSwitcherProvider/useThemeSwitcher.js +4 -2
- package/foundation/theme/createTheme.js +3 -3
- package/foundation/theme/index.js +7 -1
- package/foundation/theme/palette.type.d.ts +2 -2
- package/foundation/theme/paletteProp.type.d.ts +1 -1
- package/foundation/theme/theme.type.d.ts +13 -13
- package/foundation/theme/typography.type.d.ts +7 -7
- package/foundation/theme/useThemeProps.js +4 -3
- package/foundation/typings/BaseColor.d.ts +2 -2
- package/foundation/typings/BaseDirection.d.ts +2 -2
- package/foundation/typings/BaseFocusVariant.d.ts +2 -2
- package/foundation/typings/BaseFormControlLabel.d.ts +1 -1
- package/foundation/typings/BaseLabelPlacement.d.ts +2 -2
- package/foundation/typings/BaseProps.d.ts +1 -1
- package/foundation/typings/BaseSize.d.ts +3 -3
- package/foundation/typings/UnionOmit.d.ts +3 -3
- package/foundation/typings/UnitMap.d.ts +4 -4
- package/foundation/typings/index.js +12 -0
- package/foundation/typings/notNullRecord.d.ts +1 -1
- package/foundation/utils/a11yKeyboardCode.js +1 -0
- package/foundation/utils/checkDefaultPrevented.d.ts +1 -1
- package/foundation/utils/checkDefaultPrevented.js +4 -2
- package/foundation/utils/classes.d.ts +5 -2
- package/foundation/utils/classes.js +4 -2
- package/foundation/utils/clearReactReferencesInNode.js +2 -1
- package/foundation/utils/combineProps.js +11 -8
- package/foundation/utils/deepmerge.js +2 -1
- package/foundation/utils/getRefElement.d.ts +1 -1
- package/foundation/utils/getRefElement.js +4 -2
- package/foundation/utils/getScrollbarSize.js +1 -0
- package/foundation/utils/hasValue.js +1 -0
- package/foundation/utils/isRcElement.js +2 -1
- package/foundation/utils/isRef.js +3 -1
- package/foundation/utils/isTap.d.ts +1 -1
- package/foundation/utils/isTap.js +3 -1
- package/foundation/utils/isUrl.js +1 -0
- package/foundation/utils/omit.js +4 -2
- package/foundation/utils/outerSize.js +1 -0
- package/foundation/utils/parseColor.d.ts +2 -2
- package/foundation/utils/parseColor.js +1 -0
- package/foundation/utils/pick.js +4 -2
- package/foundation/utils/preloadImg.js +1 -0
- package/foundation/utils/removeClassName.d.ts +1 -1
- package/foundation/utils/removeClassName.js +3 -2
- package/foundation/utils/selectionHandler.js +3 -2
- package/foundation/utils/shallowEqual.js +1 -0
- package/foundation/utils/styleParser.js +3 -1
- package/foundation/utils/swapArrayLocs.js +3 -1
- package/foundation/utils/withDeprecatedCheck.d.ts +2 -2
- package/foundation/utils/withDeprecatedCheck.js +10 -8
- package/package.json +4 -5
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RcDownshiftInput = exports.RcDownshiftDefaultFilterOptions = exports.RcDownshift = void 0;
|
|
3
4
|
var tslib_1 = require("tslib");
|
|
4
5
|
var react_1 = tslib_1.__importStar(require("react"));
|
|
5
6
|
var juno_icon_1 = require("@ringcentral/juno-icon");
|
|
@@ -10,19 +11,19 @@ var Chip_1 = require("../Chip");
|
|
|
10
11
|
var ClearIconButton_1 = require("../Forms/TextField/styles/ClearIconButton");
|
|
11
12
|
var VisuallyHidden_1 = require("../VisuallyHidden");
|
|
12
13
|
var styles_1 = require("./styles");
|
|
13
|
-
exports
|
|
14
|
+
Object.defineProperty(exports, "RcDownshiftInput", { enumerable: true, get: function () { return styles_1.RcDownshiftInput; } });
|
|
14
15
|
var SuggestionList_1 = require("./SuggestionList");
|
|
15
16
|
var utils_1 = require("./utils");
|
|
16
|
-
exports
|
|
17
|
+
Object.defineProperty(exports, "RcDownshiftDefaultFilterOptions", { enumerable: true, get: function () { return utils_1.RcDownshiftDefaultFilterOptions; } });
|
|
17
18
|
/**
|
|
18
19
|
* default transition style for grow when not virtualize
|
|
19
20
|
*/
|
|
20
21
|
var DEFAULT_GROW_STYLE = { style: { transformOrigin: '0 0 0' } };
|
|
21
|
-
var _RcDownshift = react_1.memo(react_1.forwardRef(function (inProps, ref) {
|
|
22
|
-
var props = foundation_1.useThemeProps({ props: inProps, name: 'RcDownshift' });
|
|
22
|
+
var _RcDownshift = (0, react_1.memo)((0, react_1.forwardRef)(function (inProps, ref) {
|
|
23
|
+
var props = (0, foundation_1.useThemeProps)({ props: inProps, name: 'RcDownshift' });
|
|
23
24
|
if (process.env.NODE_ENV !== 'production') {
|
|
24
25
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
25
|
-
foundation_1.useDeprecatedCheck(RcDownshift, props, [
|
|
26
|
+
(0, foundation_1.useDeprecatedCheck)(RcDownshift, props, [
|
|
26
27
|
{
|
|
27
28
|
prop: 'onSelectChange',
|
|
28
29
|
time: '2021-10',
|
|
@@ -130,18 +131,18 @@ var _RcDownshift = react_1.memo(react_1.forwardRef(function (inProps, ref) {
|
|
|
130
131
|
},
|
|
131
132
|
]);
|
|
132
133
|
}
|
|
133
|
-
var theme = foundation_1.useTheme();
|
|
134
|
+
var theme = (0, foundation_1.useTheme)();
|
|
134
135
|
var isAutocomplete = props.variant === 'autocomplete';
|
|
135
136
|
var _a = props.itemToString, itemToString = _a === void 0 ? utils_1.DEFAULT_GET_OPTION_LABEL : _a, _b = props.keyToChips, keyToChips = _b === void 0 ? utils_1.DEFAULT_KEY_TO_CHIPS : _b, _c = props.limitOfFreeChips, limitOfFreeChips = _c === void 0 ? utils_1.DEFAULT_LIMIT_CHIPS : _c, minRowHeight = props.minRowHeight, suggestionItems = props.suggestionItems, messageRef = props.messageRef, MenuItem = props.MenuItem, inputLabel = props.inputLabel, nameError = props.nameError, maxLength = props.maxLength, InputItem = props.InputItem, emailError = props.emailError, autoSwitchEmail = props.autoSwitchEmail, enableFreeChips = props.enableFreeChips, inputPlaceholder = props.inputPlaceholder, errorSelectedItems = props.errorSelectedItems, enableAutoTransform = props.enableAutoTransform, allowPlainHelperText = props.allowPlainHelperText, TextFieldProps = props.TextFieldProps, selectedItemsProp = props.selectedItems, automationId = props.automationId, screenReader = props.screenReader, onSelectChange = props.onSelectChange, variant = props.variant, groupExpanded = props.groupExpanded, groupDefaultExpanded = props.groupDefaultExpanded, _d = props.groupVariant, groupVariant = _d === void 0 ? 'normal' : _d, getExpandIconProps = props.getExpandIconProps, groupBy = props.groupBy, _e = props.value, valueProp = _e === void 0 ? selectedItemsProp : _e, _f = props.autoHighlight, autoHighlight = _f === void 0 ? true : _f, _g = props.fullWidth, fullWidth = _g === void 0 ? true : _g, _h = props.clearBtn, clearBtn = _h === void 0 ? false : _h, _j = props.toggleButton, toggleButton = _j === void 0 ? false : _j, _k = props.multiple, multiple = _k === void 0 ? false : _k, clearButtonProps = props.clearButtonProps, onClear = props.onClear, ToggleButtonProps = props.ToggleButtonProps, _l = props.getToggleButtonProps, getToggleButtonPropsProp = _l === void 0 ? function (isOpen) {
|
|
136
137
|
return {
|
|
137
138
|
symbol: isOpen ? juno_icon_1.ArrowUp : juno_icon_1.ArrowDown,
|
|
138
139
|
};
|
|
139
140
|
} : _l, inputValueProp = props.inputValue, onKeyDownProp = props.onKeyDown, helperTextProp = props.helperText, options = props.options, openOnFocus = props.openOnFocus, _m = props.toggleWithInput, toggleWithInput = _m === void 0 ? isAutocomplete : _m, _o = props.getOptionLabel, getOptionLabel = _o === void 0 ? itemToString : _o, renderInput = props.renderInput, _p = props.label, label = _p === void 0 ? inputLabel : _p, _q = props.inputRef, inputRefProp = _q === void 0 ? messageRef : _q, _r = props.error, error = _r === void 0 ? nameError : _r, _s = props.placeholder, placeholder = _s === void 0 ? inputPlaceholder : _s, _t = props.freeSolo, freeSolo = _t === void 0 ? enableFreeChips : _t, _u = props.keyToTags, keyToTags = _u === void 0 ? keyToChips : _u, _v = props.maxFreeSolo, maxFreeSolo = _v === void 0 ? limitOfFreeChips : _v, _w = props.SuggestionListProps, _x = _w === void 0 ? {} : _w, _y = _x.virtualize, virtualize = _y === void 0 ? true : _y, SuggestionListProps = tslib_1.__rest(_x, ["virtualize"]), _z = props.autoSelect, autoSelect = _z === void 0 ? enableAutoTransform : _z, PopperComponent = props.PopperComponent, _0 = props.PopperProps, _1 = _0 === void 0 ? {} : _0, _2 = _1.anchorElType, anchorElType = _2 === void 0 ? 'root' : _2, popperTransition = _1.transition, _3 = _1.TransitionComponent, TransitionComponent = _3 === void 0 ? virtualize ? Fade_1.RcFade : Grow_1.RcGrow : _3, _4 = _1.transitionDuration, transitionDurationProp = _4 === void 0 ? 'auto' : _4, _5 = _1.TransitionProps, TransitionPropsProp = _5 === void 0 ? {} : _5, PopperProps = tslib_1.__rest(_1, ["anchorElType", "transition", "TransitionComponent", "transitionDuration", "TransitionProps"]), initialIsOpen = props.initialIsOpen, disabled = props.disabled, requiredProp = props.required, _6 = props.defaultIsOpen, defaultIsOpen = _6 === void 0 ? openOnFocus : _6, _7 = props.disableCloseOnSelect, disableCloseOnSelect = _7 === void 0 ? defaultIsOpen : _7, _8 = props.onChange, onChangeProp = _8 === void 0 ? onSelectChange : _8, onInputChangeProp = props.onInputChange, onMaxFreeSolo = props.onMaxFreeSolo, FormHelperTextPropsProp = props.FormHelperTextProps, action = props.action, filterOptions = props.filterOptions, renderOption = props.renderOption, renderTags = props.renderTags, getOptionDisabled = props.getOptionDisabled, renderGroup = props.renderGroup, onGroupExpanded = props.onGroupExpanded, renderNoOptions = props.renderNoOptions, InputPropsProp = props.InputProps, debug = props.debug, disabledItemsHighlightable = props.disabledItemsHighlightable, openProp = props.open, onOpen = props.onOpen, onClose = props.onClose, focused = props.focused, color = props.color, rest = tslib_1.__rest(props, ["itemToString", "keyToChips", "limitOfFreeChips", "minRowHeight", "suggestionItems", "messageRef", "MenuItem", "inputLabel", "nameError", "maxLength", "InputItem", "emailError", "autoSwitchEmail", "enableFreeChips", "inputPlaceholder", "errorSelectedItems", "enableAutoTransform", "allowPlainHelperText", "TextFieldProps", "selectedItems", "automationId", "screenReader", "onSelectChange", "variant", "groupExpanded", "groupDefaultExpanded", "groupVariant", "getExpandIconProps", "groupBy", "value", "autoHighlight", "fullWidth", "clearBtn", "toggleButton", "multiple", "clearButtonProps", "onClear", "ToggleButtonProps", "getToggleButtonProps", "inputValue", "onKeyDown", "helperText", "options", "openOnFocus", "toggleWithInput", "getOptionLabel", "renderInput", "label", "inputRef", "error", "placeholder", "freeSolo", "keyToTags", "maxFreeSolo", "SuggestionListProps", "autoSelect", "PopperComponent", "PopperProps", "initialIsOpen", "disabled", "required", "defaultIsOpen", "disableCloseOnSelect", "onChange", "onInputChange", "onMaxFreeSolo", "FormHelperTextProps", "action", "filterOptions", "renderOption", "renderTags", "getOptionDisabled", "renderGroup", "onGroupExpanded", "renderNoOptions", "InputProps", "debug", "disabledItemsHighlightable", "open", "onOpen", "onClose", "focused", "color"]);
|
|
140
|
-
var _9 = tslib_1.__read(react_1.useState('bottom-start'), 2), position = _9[0], setPosition = _9[1];
|
|
141
|
-
var innerInputRef = react_1.useRef(null);
|
|
142
|
-
var textFieldRef = react_1.useRef(null);
|
|
143
|
-
var inputRef = foundation_1.useForkRef(inputRefProp, innerInputRef);
|
|
144
|
-
var inputContainerRef = react_1.useRef(null);
|
|
141
|
+
var _9 = tslib_1.__read((0, react_1.useState)('bottom-start'), 2), position = _9[0], setPosition = _9[1];
|
|
142
|
+
var innerInputRef = (0, react_1.useRef)(null);
|
|
143
|
+
var textFieldRef = (0, react_1.useRef)(null);
|
|
144
|
+
var inputRef = (0, foundation_1.useForkRef)(inputRefProp, innerInputRef);
|
|
145
|
+
var inputContainerRef = (0, react_1.useRef)(null);
|
|
145
146
|
// * if that have pass old suggestionItems mean that use old logic
|
|
146
147
|
var isNew = !suggestionItems;
|
|
147
148
|
var transitionDuration = transitionDurationProp === 'auto' ? undefined : transitionDurationProp;
|
|
@@ -149,10 +150,10 @@ var _RcDownshift = react_1.memo(react_1.forwardRef(function (inProps, ref) {
|
|
|
149
150
|
var oneOfTagError = false;
|
|
150
151
|
if (process.env.NODE_ENV !== 'production') {
|
|
151
152
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
152
|
-
utils_1.useDownshiftError({ isNew: isNew, MenuItem: MenuItem, InputItem: InputItem });
|
|
153
|
+
(0, utils_1.useDownshiftError)({ isNew: isNew, MenuItem: MenuItem, InputItem: InputItem });
|
|
153
154
|
}
|
|
154
155
|
var required = requiredProp || (TextFieldProps === null || TextFieldProps === void 0 ? void 0 : TextFieldProps.required);
|
|
155
|
-
var _10 = utils_1.useDownshift({
|
|
156
|
+
var _10 = (0, utils_1.useDownshift)({
|
|
156
157
|
focused: focused,
|
|
157
158
|
open: openProp,
|
|
158
159
|
variant: variant,
|
|
@@ -200,13 +201,13 @@ var _RcDownshift = react_1.memo(react_1.forwardRef(function (inProps, ref) {
|
|
|
200
201
|
: nameError || allowPlainHelperText
|
|
201
202
|
? helperTextProp
|
|
202
203
|
: undefined;
|
|
203
|
-
var describedbyId = InputProps.id
|
|
204
|
+
var describedbyId = "".concat(InputProps.id, "-helper-text");
|
|
204
205
|
var FormHelperTextProps = FormHelperTextPropsProp || {};
|
|
205
|
-
var screenReaderText = react_1.useMemo(function () {
|
|
206
|
+
var screenReaderText = (0, react_1.useMemo)(function () {
|
|
206
207
|
if (!screenReader || !selectedItems.length)
|
|
207
208
|
return;
|
|
208
209
|
var entry = screenReader.entry, entries = screenReader.entries;
|
|
209
|
-
return
|
|
210
|
+
return "".concat(selectedItems.length === 1 ? entry : entries).trim();
|
|
210
211
|
}, [screenReader, selectedItems.length]);
|
|
211
212
|
if (screenReaderText) {
|
|
212
213
|
if (!helperText) {
|
|
@@ -214,11 +215,11 @@ var _RcDownshift = react_1.memo(react_1.forwardRef(function (inProps, ref) {
|
|
|
214
215
|
}
|
|
215
216
|
else if (helperText) {
|
|
216
217
|
FormHelperTextProps['aria-label'] =
|
|
217
|
-
(screenReaderText
|
|
218
|
+
"".concat(screenReaderText, " ").concat(helperText).trim();
|
|
218
219
|
}
|
|
219
220
|
}
|
|
220
|
-
var toTextFieldRef = foundation_1.useForkRef(textFieldRef, ref);
|
|
221
|
-
var colorHex = react_1.useMemo(function () { return (color ? foundation_1.getParsePaletteColor(color)({ theme: theme }) : undefined); }, [color, theme]);
|
|
221
|
+
var toTextFieldRef = (0, foundation_1.useForkRef)(textFieldRef, ref);
|
|
222
|
+
var colorHex = (0, react_1.useMemo)(function () { return (color ? (0, foundation_1.getParsePaletteColor)(color)({ theme: theme }) : undefined); }, [color, theme]);
|
|
222
223
|
var startAdornment = (function () {
|
|
223
224
|
if (isAutocomplete) {
|
|
224
225
|
return undefined;
|
|
@@ -244,7 +245,8 @@ var _RcDownshift = react_1.memo(react_1.forwardRef(function (inProps, ref) {
|
|
|
244
245
|
if (InputItem) {
|
|
245
246
|
// TODO: should remove when all migrate
|
|
246
247
|
var isError = (emailError && emailError === ((_a = selectedItem.label) === null || _a === void 0 ? void 0 : _a.trim())) ||
|
|
247
|
-
(selectedItem.id &&
|
|
248
|
+
(selectedItem.id &&
|
|
249
|
+
(errorSelectedItems === null || errorSelectedItems === void 0 ? void 0 : errorSelectedItems.includes(selectedItem.id))) ||
|
|
248
250
|
selectedItem.isError ||
|
|
249
251
|
selectedItem.error;
|
|
250
252
|
return (react_1.default.createElement(InputItem, tslib_1.__assign({}, selectedItem, itemChipProps, { isError: isError })));
|
|
@@ -263,13 +265,13 @@ var _RcDownshift = react_1.memo(react_1.forwardRef(function (inProps, ref) {
|
|
|
263
265
|
: 'neutral.f04', size: "large" }, getToggleButtonProps(tslib_1.__assign(tslib_1.__assign({}, ToggleButtonProps), getToggleButtonPropsProp(isOpen))))))));
|
|
264
266
|
var _12 = (function () {
|
|
265
267
|
var _a = InputPropsProp || {}, classes = _a.classes, restInputPropsProp = tslib_1.__rest(_a, ["classes"]);
|
|
266
|
-
var toClasses = foundation_1.combineClasses(classes, utils_1.RcDownshiftInputClasses);
|
|
268
|
+
var toClasses = (0, foundation_1.combineClasses)(classes, utils_1.RcDownshiftInputClasses);
|
|
267
269
|
return {
|
|
268
270
|
containerClassName: toClasses.container,
|
|
269
|
-
TextFieldInputProps: foundation_1.combineProps(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({ classes: foundation_1.omit(toClasses, ['container']), endAdornment: endAdornment, inputComponent: styles_1.RcDownshiftInput }, getTagListBoxProps()), InputProps), { onBlur: debug ? undefined : onBlur }), restInputPropsProp),
|
|
271
|
+
TextFieldInputProps: (0, foundation_1.combineProps)(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({ classes: (0, foundation_1.omit)(toClasses, ['container']), endAdornment: endAdornment, inputComponent: styles_1.RcDownshiftInput }, getTagListBoxProps()), InputProps), { onBlur: debug ? undefined : onBlur }), restInputPropsProp),
|
|
270
272
|
};
|
|
271
273
|
})(), containerClassName = _12.containerClassName, TextFieldInputProps = _12.TextFieldInputProps;
|
|
272
|
-
react_1.useImperativeHandle(action, function () { return ({
|
|
274
|
+
(0, react_1.useImperativeHandle)(action, function () { return ({
|
|
273
275
|
getActiveIndex: function () { return activeIndex; },
|
|
274
276
|
setActiveIndex: setActiveIndex,
|
|
275
277
|
getFilterResultItems: function () { return optionItems; },
|
|
@@ -286,8 +288,8 @@ var _RcDownshift = react_1.memo(react_1.forwardRef(function (inProps, ref) {
|
|
|
286
288
|
}); });
|
|
287
289
|
var hasTags = selectedItems.length > 0;
|
|
288
290
|
var isRenderNoOptions = !!noOptionItem;
|
|
289
|
-
var popperRef = react_1.useRef(null);
|
|
290
|
-
var handleUpdatePopper = foundation_1.useEventCallback(function () {
|
|
291
|
+
var popperRef = (0, react_1.useRef)(null);
|
|
292
|
+
var handleUpdatePopper = (0, foundation_1.useEventCallback)(function () {
|
|
291
293
|
var _a;
|
|
292
294
|
(_a = popperRef.current) === null || _a === void 0 ? void 0 : _a.update();
|
|
293
295
|
});
|
|
@@ -295,16 +297,15 @@ var _RcDownshift = react_1.memo(react_1.forwardRef(function (inProps, ref) {
|
|
|
295
297
|
// * that root element for animation host
|
|
296
298
|
react_1.default.createElement(react_1.default.Fragment, null,
|
|
297
299
|
isOpen && (react_1.default.createElement(SuggestionList_1.RcSuggestionList, tslib_1.__assign({ selectedIndex: isAutocomplete ? autoCompleteSelectedIndex : undefined, highlightedIndex: highlightedIndex, optionsGroupList: optionsGroupList, options: optionItems, groupVariant: groupVariant, groupExpanded: groupExpanded, renderGroup: renderGroup, MenuItem: MenuItem, renderOption: renderOption, inputValue: inputValue, getItemProps: getItemProps, getMenuProps: getMenuProps, changeHighlightedIndexReason: changeHighlightedIndexReason, getOptionDisabled: getOptionDisabled, isKeepHighlightedIndex: isKeepHighlightedIndex, onUpdatePopper: handleUpdatePopper, maxContainerHeight: 180, getOptionLabel: getOptionLabel, position: "unset", virtualize: virtualize }, SuggestionListProps))),
|
|
298
|
-
isRenderNoOptions &&
|
|
299
|
-
|
|
300
|
+
isRenderNoOptions &&
|
|
301
|
+
(renderNoOptions === null || renderNoOptions === void 0 ? void 0 : renderNoOptions(getNoOptionsProps, noOptionItem))));
|
|
302
|
+
var prevMenuChildren = (0, foundation_1.usePrevious)(function () { return menuChildren; });
|
|
300
303
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
301
304
|
react_1.default.createElement(styles_1.StyledTextField, tslib_1.__assign({ renderInput: renderInput, hasTags: hasTags, ref: toTextFieldRef, inputRef: inputRef, "data-test-automation-id": automationId, fullWidth: fullWidth, placeholder: !hasTags ? placeholder : undefined, label: label, focused: isDownshiftFocused, disabled: disabled, required: required, color: color,
|
|
302
305
|
// * if below one of tag is error, that main downshift default will be error
|
|
303
|
-
error: error !== null && error !== void 0 ? error : oneOfTagError, FormHelperTextProps: FormHelperTextProps, InputProps: TextFieldInputProps, helperText: helperText }, foundation_1.combineProps({
|
|
306
|
+
error: error !== null && error !== void 0 ? error : oneOfTagError, FormHelperTextProps: FormHelperTextProps, InputProps: TextFieldInputProps, helperText: helperText }, (0, foundation_1.combineProps)({
|
|
304
307
|
InputLabelProps: getLabelProps(),
|
|
305
|
-
inputProps: tslib_1.__assign({ startAdornment: startAdornment,
|
|
306
|
-
containerClassName: containerClassName,
|
|
307
|
-
maxLength: maxLength, containerRef: inputContainerRef }, getInputAriaProps(TextFieldProps === null || TextFieldProps === void 0 ? void 0 : TextFieldProps.inputProps)),
|
|
308
|
+
inputProps: tslib_1.__assign({ startAdornment: startAdornment, containerClassName: containerClassName, maxLength: maxLength, containerRef: inputContainerRef }, getInputAriaProps(TextFieldProps === null || TextFieldProps === void 0 ? void 0 : TextFieldProps.inputProps)),
|
|
308
309
|
}, rest), { value: inputValue, clearBtn: false })),
|
|
309
310
|
!helperText && screenReaderText && (react_1.default.createElement(VisuallyHidden_1.RcVisuallyHidden, { id: describedbyId }, screenReaderText)),
|
|
310
311
|
react_1.default.createElement(styles_1.StyledPopper, tslib_1.__assign({ ref: popperElementRef, open: open, position: position, component: PopperComponent, placement: "bottom-start", anchorEl: anchorElRef.current, "data-test-automation-id": "suggestions-list", popperRef: popperRef,
|
|
@@ -338,7 +339,7 @@ var _RcDownshift = react_1.memo(react_1.forwardRef(function (inProps, ref) {
|
|
|
338
339
|
}
|
|
339
340
|
: menuChildren)));
|
|
340
341
|
}));
|
|
341
|
-
var RcDownshift = foundation_1.styled(_RcDownshift)(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), styles_1.DownshiftStyle);
|
|
342
|
+
var RcDownshift = (0, foundation_1.styled)(_RcDownshift)(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), styles_1.DownshiftStyle);
|
|
342
343
|
RcDownshift.defaultProps = {};
|
|
343
344
|
RcDownshift.displayName = 'RcDownshift';
|
|
344
345
|
var ExportType = RcDownshift;
|
|
@@ -3,7 +3,7 @@ import { RcBaseProps, RcClassesProps } from '../../../foundation';
|
|
|
3
3
|
import { VirtuosoProps } from '../../Virtuoso';
|
|
4
4
|
import { RcDownshiftProps } from '../Downshift';
|
|
5
5
|
import { RcDownshiftGetItemPropsOptions, RcDownshiftGroupedOption, RcDownshiftHighlightChangeReason, RcDownshiftSelectedItem } from '../utils';
|
|
6
|
-
export
|
|
6
|
+
export type RcSuggestionListProps<T> = RcBaseProps<Partial<VirtuosoProps<T, undefined>>, 'totalCount' | 'itemContent' | 'data'> & {
|
|
7
7
|
/**
|
|
8
8
|
* that virtual list container height,
|
|
9
9
|
*
|
|
@@ -19,7 +19,7 @@ export declare type RcSuggestionListProps<T> = RcBaseProps<Partial<VirtuosoProps
|
|
|
19
19
|
/** is that menu virtualize */
|
|
20
20
|
virtualize?: boolean;
|
|
21
21
|
} & RcClassesProps<'root' | 'toggle' | 'expanded' | 'groupTitle'>;
|
|
22
|
-
export
|
|
22
|
+
export type InnerSuggestionListProps = {
|
|
23
23
|
/** current highlightedIndex */
|
|
24
24
|
highlightedIndex: number;
|
|
25
25
|
/** select options */
|
|
@@ -47,7 +47,7 @@ export declare type InnerSuggestionListProps = {
|
|
|
47
47
|
*/
|
|
48
48
|
selectedIndex?: number;
|
|
49
49
|
} & Pick<RcDownshiftProps, 'inputValue' | 'MenuItem' | 'renderOption' | 'getOptionDisabled' | 'renderGroup' | 'groupExpanded' | 'groupVariant' | 'getOptionLabel'> & RcSuggestionListProps<any>;
|
|
50
|
-
export declare const RcSuggestionList: import("styled-components").
|
|
50
|
+
export declare const RcSuggestionList: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<{
|
|
51
51
|
/** current highlightedIndex */
|
|
52
52
|
highlightedIndex: number;
|
|
53
53
|
/** select options */
|
|
@@ -55,51 +55,9 @@ export declare const RcSuggestionList: import("styled-components").StyledCompone
|
|
|
55
55
|
/** each item props getter */
|
|
56
56
|
getItemProps: (options: RcDownshiftGetItemPropsOptions<RcDownshiftSelectedItem>) => any;
|
|
57
57
|
/** menu wrapper props getter */
|
|
58
|
-
getMenuProps: (restMenuProps?:
|
|
59
|
-
/** that reason that change highlighted */
|
|
60
|
-
changeHighlightedIndexReason: RcDownshiftHighlightChangeReason;
|
|
61
|
-
/** is that need keep highlighted index, that will be helpful when you need load more options when scroll */
|
|
62
|
-
isKeepHighlightedIndex?: boolean | undefined;
|
|
63
|
-
/** trigger when need update outside popper position */
|
|
64
|
-
onUpdatePopper?: (() => any) | undefined;
|
|
65
|
-
/** options group list, use for calculate `aria-setsize` */
|
|
66
|
-
optionsGroupList?: RcDownshiftGroupedOption<RcDownshiftSelectedItem>[] | undefined;
|
|
67
|
-
/**
|
|
68
|
-
* ## should always keep absolute for better render,
|
|
69
|
-
* but when you wrap that in modal or a non have width container,
|
|
70
|
-
* set that as `unset`, let outside `absolute` container to calculate that.
|
|
71
|
-
*/
|
|
72
|
-
position?: "absolute" | "unset" | undefined;
|
|
73
|
-
/**
|
|
74
|
-
* in autocomplete mode, that will have selected index, show selected when focused
|
|
75
|
-
*/
|
|
76
|
-
selectedIndex?: number | undefined;
|
|
77
|
-
} & Pick<RcDownshiftProps<RcDownshiftSelectedItem>, "getOptionDisabled" | "getOptionLabel" | "renderOption" | "groupVariant" | "groupExpanded" | "renderGroup" | "MenuItem" | "inputValue"> & Pick<Partial<VirtuosoProps<any, undefined>>, "key" | "form" | "list" | "className" | "color" | "height" | "id" | "lang" | "max" | "media" | "method" | "min" | "name" | "style" | "target" | "type" | "width" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "step" | "cite" | "label" | "slot" | "span" | "summary" | "title" | "pattern" | "download" | "start" | "translate" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "size" | "value" | "shape" | "disabled" | "hrefLang" | "rel" | "default" | "action" | "content" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "open" | "selected" | "src" | "checked" | "readOnly" | "required" | "autoComplete" | "rows" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "high" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "reversed" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | "wrap" | "context" | "overscan" | "increaseViewportBy" | "topItemCount" | "initialTopMostItemIndex" | "initialScrollTop" | "initialItemCount" | "components" | "computeItemKey" | "defaultItemHeight" | "itemSize" | "fixedItemHeight" | "scrollSeekConfiguration" | "followOutput" | "headerFooterTag" | "firstItemIndex" | "isScrolling" | "endReached" | "startReached" | "rangeChanged" | "atBottomStateChange" | "atTopStateChange" | "totalListHeightChanged" | "itemsRendered" | "alignToBottom" | "useWindowScroll" | "customScrollParent" | "scrollerRef" | "atTopThreshold" | "atBottomThreshold" | "logLevel" | "restoreStateFrom"> & {
|
|
78
|
-
/**
|
|
79
|
-
* that virtual list container height,
|
|
80
|
-
*
|
|
81
|
-
* @default 100%
|
|
82
|
-
*/
|
|
83
|
-
maxContainerHeight?: number | "100%" | undefined;
|
|
84
|
-
/**
|
|
85
|
-
* vertical padding from the list
|
|
86
|
-
*
|
|
87
|
-
* @default false
|
|
88
|
-
*/
|
|
89
|
-
padding?: number | boolean | undefined;
|
|
90
|
-
/** is that menu virtualize */
|
|
91
|
-
virtualize?: boolean | undefined;
|
|
92
|
-
} & RcClassesProps<"root" | "expanded" | "toggle" | "groupTitle"> & React.RefAttributes<any>, import("../../../foundation").RcTheme, Pick<{
|
|
93
|
-
/** current highlightedIndex */
|
|
94
|
-
highlightedIndex: number;
|
|
95
|
-
/** select options */
|
|
96
|
-
options: RcDownshiftSelectedItem[];
|
|
97
|
-
/** each item props getter */
|
|
98
|
-
getItemProps: (options: RcDownshiftGetItemPropsOptions<RcDownshiftSelectedItem>) => any;
|
|
99
|
-
/** menu wrapper props getter */
|
|
100
|
-
getMenuProps: (restMenuProps?: React.HTMLAttributes<HTMLElement> | undefined) => React.HTMLAttributes<HTMLElement>;
|
|
58
|
+
getMenuProps: (restMenuProps?: HTMLAttributes<HTMLElement> | undefined) => HTMLAttributes<HTMLElement>;
|
|
101
59
|
/** that reason that change highlighted */
|
|
102
|
-
changeHighlightedIndexReason: RcDownshiftHighlightChangeReason;
|
|
60
|
+
changeHighlightedIndexReason: RcDownshiftHighlightChangeReason | undefined;
|
|
103
61
|
/** is that need keep highlighted index, that will be helpful when you need load more options when scroll */
|
|
104
62
|
isKeepHighlightedIndex?: boolean | undefined;
|
|
105
63
|
/** trigger when need update outside popper position */
|
|
@@ -111,12 +69,12 @@ export declare const RcSuggestionList: import("styled-components").StyledCompone
|
|
|
111
69
|
* but when you wrap that in modal or a non have width container,
|
|
112
70
|
* set that as `unset`, let outside `absolute` container to calculate that.
|
|
113
71
|
*/
|
|
114
|
-
position?: "
|
|
72
|
+
position?: "unset" | "absolute" | undefined;
|
|
115
73
|
/**
|
|
116
74
|
* in autocomplete mode, that will have selected index, show selected when focused
|
|
117
75
|
*/
|
|
118
76
|
selectedIndex?: number | undefined;
|
|
119
|
-
} & Pick<RcDownshiftProps
|
|
77
|
+
} & Pick<RcDownshiftProps, "getOptionDisabled" | "getOptionLabel" | "renderOption" | "groupVariant" | "groupExpanded" | "renderGroup" | "MenuItem" | "inputValue"> & RcBaseProps<Partial<VirtuosoProps<any, undefined>>, "data" | "totalCount" | "itemContent"> & {
|
|
120
78
|
/**
|
|
121
79
|
* that virtual list container height,
|
|
122
80
|
*
|
|
@@ -131,6 +89,4 @@ export declare const RcSuggestionList: import("styled-components").StyledCompone
|
|
|
131
89
|
padding?: number | boolean | undefined;
|
|
132
90
|
/** is that menu virtualize */
|
|
133
91
|
virtualize?: boolean | undefined;
|
|
134
|
-
} & RcClassesProps<"root" | "expanded" | "toggle" | "groupTitle"> & React.RefAttributes<any
|
|
135
|
-
theme?: import("../../../foundation").RcTheme | undefined;
|
|
136
|
-
}>;
|
|
92
|
+
} & RcClassesProps<"root" | "expanded" | "toggle" | "groupTitle"> & React.RefAttributes<any>>, import("../../../foundation").RcTheme, {}, never>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RcSuggestionList = void 0;
|
|
3
4
|
var tslib_1 = require("tslib");
|
|
4
5
|
var react_1 = tslib_1.__importStar(require("react"));
|
|
5
6
|
var clsx_1 = tslib_1.__importDefault(require("clsx"));
|
|
@@ -12,37 +13,37 @@ var styles_1 = require("../../VirtualizedMenu/styles");
|
|
|
12
13
|
var Virtuoso_1 = require("../../Virtuoso");
|
|
13
14
|
var styles_2 = require("./styles");
|
|
14
15
|
var utils_1 = require("./utils");
|
|
15
|
-
var SuggestionListContext = react_1.createContext(null);
|
|
16
|
-
var List = react_1.forwardRef(function (props, ref) {
|
|
17
|
-
var listRef = react_1.useContext(SuggestionListContext);
|
|
18
|
-
var forkRef = foundation_1.useForkRef(ref, listRef);
|
|
16
|
+
var SuggestionListContext = (0, react_1.createContext)(null);
|
|
17
|
+
var List = (0, react_1.forwardRef)(function (props, ref) {
|
|
18
|
+
var listRef = (0, react_1.useContext)(SuggestionListContext);
|
|
19
|
+
var forkRef = (0, foundation_1.useForkRef)(ref, listRef);
|
|
19
20
|
return react_1.default.createElement("div", tslib_1.__assign({ ref: forkRef, "data-suggestion-list": true }, props));
|
|
20
21
|
});
|
|
21
|
-
var SuggestionList = react_1.forwardRef(function (inProps, ref) {
|
|
22
|
+
var SuggestionList = (0, react_1.forwardRef)(function (inProps, ref) {
|
|
22
23
|
var _a;
|
|
23
|
-
var props = foundation_1.useThemeProps({ props: inProps, name: 'RcSuggestionList' });
|
|
24
|
+
var props = (0, foundation_1.useThemeProps)({ props: inProps, name: 'RcSuggestionList' });
|
|
24
25
|
var highlightedIndex = props.highlightedIndex, options = props.options, getItemProps = props.getItemProps, _b = props.virtualize, virtualize = _b === void 0 ? true : _b, getMenuProps = props.getMenuProps, renderOption = props.renderOption, selectedOptions = props.value, inputValue = props.inputValue, groupVariant = props.groupVariant, groupExpanded = props.groupExpanded, renderGroup = props.renderGroup, optionsGroupList = props.optionsGroupList, getOptionDisabled = props.getOptionDisabled, MenuItem = props.MenuItem, changeHighlightedIndexReason = props.changeHighlightedIndexReason, isKeepHighlightedIndex = props.isKeepHighlightedIndex, componentsProp = props.components, onUpdatePopper = props.onUpdatePopper, getOptionLabel = props.getOptionLabel, padding = props.padding, _c = props.maxContainerHeight, maxContainerHeight = _c === void 0 ? '100%' : _c, classNameProp = props.className, classesProp = props.classes, _d = props.position, position = _d === void 0 ? 'absolute' : _d, selectedIndex = props.selectedIndex, rest = tslib_1.__rest(props, ["highlightedIndex", "options", "getItemProps", "virtualize", "getMenuProps", "renderOption", "value", "inputValue", "groupVariant", "groupExpanded", "renderGroup", "optionsGroupList", "getOptionDisabled", "MenuItem", "changeHighlightedIndexReason", "isKeepHighlightedIndex", "components", "onUpdatePopper", "getOptionLabel", "padding", "maxContainerHeight", "className", "classes", "position", "selectedIndex"]);
|
|
25
|
-
var vlRef = react_1.useRef(null);
|
|
26
|
-
var forkVlRef = foundation_1.useForkRef(ref, vlRef);
|
|
26
|
+
var vlRef = (0, react_1.useRef)(null);
|
|
27
|
+
var forkVlRef = (0, foundation_1.useForkRef)(ref, vlRef);
|
|
27
28
|
var isTitleMode = groupVariant === 'normal';
|
|
28
|
-
var listRef = react_1.useRef(null);
|
|
29
|
+
var listRef = (0, react_1.useRef)(null);
|
|
29
30
|
var itemData = options;
|
|
30
31
|
var itemCount = options.length;
|
|
31
|
-
var classes = foundation_1.combineClasses(utils_1.RcSuggestionListClasses, classesProp);
|
|
32
|
-
var className = clsx_1.default(classNameProp, classes === null || classes === void 0 ? void 0 : classes.root);
|
|
33
|
-
var _e = Virtuoso_1.useDynamicHeight({
|
|
32
|
+
var classes = (0, foundation_1.combineClasses)(utils_1.RcSuggestionListClasses, classesProp);
|
|
33
|
+
var className = (0, clsx_1.default)(classNameProp, classes === null || classes === void 0 ? void 0 : classes.root);
|
|
34
|
+
var _e = (0, Virtuoso_1.useDynamicHeight)({
|
|
34
35
|
itemCount: itemCount,
|
|
35
36
|
maxContainerHeight: maxContainerHeight,
|
|
36
37
|
onContainerHeightChange: function (changeHeight) {
|
|
37
38
|
var scroller = scrollerRef.current;
|
|
38
39
|
if (scroller === null || scroller === void 0 ? void 0 : scroller.style) {
|
|
39
|
-
scroller.style.height = changeHeight
|
|
40
|
+
scroller.style.height = "".concat(changeHeight, "px");
|
|
40
41
|
onUpdatePopper === null || onUpdatePopper === void 0 ? void 0 : onUpdatePopper();
|
|
41
42
|
}
|
|
42
43
|
},
|
|
43
44
|
}), totalListHeightChanged = _e.totalListHeightChanged, style = _e.style, containerHeighRef = _e.containerHeighRef;
|
|
44
|
-
var sleep = foundation_1.useSleep().sleep;
|
|
45
|
-
var scrollToIndexWithRetry = foundation_1.useRetry(function (location) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
45
|
+
var sleep = (0, foundation_1.useSleep)().sleep;
|
|
46
|
+
var scrollToIndexWithRetry = (0, foundation_1.useRetry)(function (location) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
46
47
|
var toIndex, toElm_1, toElm;
|
|
47
48
|
var _a, _b, _c;
|
|
48
49
|
return tslib_1.__generator(this, function (_d) {
|
|
@@ -50,7 +51,7 @@ var SuggestionList = react_1.forwardRef(function (inProps, ref) {
|
|
|
50
51
|
case 0:
|
|
51
52
|
toIndex = location.index;
|
|
52
53
|
if (!virtualize) {
|
|
53
|
-
toElm_1 = (_a = listRef.current) === null || _a === void 0 ? void 0 : _a.querySelector("[data-item-index=\""
|
|
54
|
+
toElm_1 = (_a = listRef.current) === null || _a === void 0 ? void 0 : _a.querySelector("[data-item-index=\"".concat(toIndex, "\"]"));
|
|
54
55
|
toElm_1 === null || toElm_1 === void 0 ? void 0 : toElm_1.scrollIntoView({ block: 'nearest', inline: 'nearest' });
|
|
55
56
|
return [2 /*return*/, true];
|
|
56
57
|
}
|
|
@@ -63,7 +64,7 @@ var SuggestionList = react_1.forwardRef(function (inProps, ref) {
|
|
|
63
64
|
return [4 /*yield*/, sleep(0)];
|
|
64
65
|
case 1:
|
|
65
66
|
_d.sent();
|
|
66
|
-
toElm = (_c = listRef.current) === null || _c === void 0 ? void 0 : _c.querySelector("[data-item-index=\""
|
|
67
|
+
toElm = (_c = listRef.current) === null || _c === void 0 ? void 0 : _c.querySelector("[data-item-index=\"".concat(toIndex, "\"]"));
|
|
67
68
|
if (toElm) {
|
|
68
69
|
return [2 /*return*/, true];
|
|
69
70
|
}
|
|
@@ -74,19 +75,19 @@ var SuggestionList = react_1.forwardRef(function (inProps, ref) {
|
|
|
74
75
|
retryTimes: 10,
|
|
75
76
|
intervalTime: 20,
|
|
76
77
|
}).retry;
|
|
77
|
-
var _f = Virtuoso_1.useHighlightScroll({
|
|
78
|
+
var _f = (0, Virtuoso_1.useHighlightScroll)({
|
|
78
79
|
containerHeighRef: containerHeighRef,
|
|
79
80
|
scrollToIndex: scrollToIndexWithRetry,
|
|
80
81
|
}), scrollerRef = _f.scrollerRef, scrollerRefFn = _f.scrollerRefFn, itemsRendered = _f.itemsRendered, scrollToHighlightedIndex = _f.scrollToHighlightedIndex;
|
|
81
82
|
// for safari, prevent popover
|
|
82
83
|
var virtuosoViewPort = (_a = scrollerRef.current) === null || _a === void 0 ? void 0 : _a.firstElementChild;
|
|
83
|
-
react_1.useLayoutEffect(function () {
|
|
84
|
+
(0, react_1.useLayoutEffect)(function () {
|
|
84
85
|
if (virtuosoViewPort) {
|
|
85
86
|
virtuosoViewPort.style.position = position;
|
|
86
87
|
}
|
|
87
88
|
}, [virtuosoViewPort, position]);
|
|
88
|
-
var prevHighlightedIndex = foundation_1.usePrevious(function () { return highlightedIndex; }, true);
|
|
89
|
-
react_1.useLayoutEffect(function () {
|
|
89
|
+
var prevHighlightedIndex = (0, foundation_1.usePrevious)(function () { return highlightedIndex; }, true);
|
|
90
|
+
(0, react_1.useLayoutEffect)(function () {
|
|
90
91
|
if ((!virtualize || vlRef.current) &&
|
|
91
92
|
!isKeepHighlightedIndex &&
|
|
92
93
|
// * only scroll when reason is 'keyboard'
|
|
@@ -116,10 +117,11 @@ var SuggestionList = react_1.forwardRef(function (inProps, ref) {
|
|
|
116
117
|
var isFixedGroupExpanded = typeof groupExpanded === 'boolean';
|
|
117
118
|
var expandIconProps = !isTitleMode && !isFixedGroupExpanded && isGroupTitle
|
|
118
119
|
? (_c = (_b = option.group) === null || _b === void 0 ? void 0 : _b.getExpandIconProps) === null || _c === void 0 ? void 0 : _c.call(_b, {
|
|
119
|
-
className: clsx_1.default(classes.toggle, (_a = {},
|
|
120
|
+
className: (0, clsx_1.default)(classes.toggle, (_a = {},
|
|
120
121
|
_a[classes.expanded] = (_d = option.group) === null || _d === void 0 ? void 0 : _d.expanded,
|
|
121
122
|
_a)),
|
|
122
|
-
})
|
|
123
|
+
})
|
|
124
|
+
: undefined;
|
|
123
125
|
var itemProps = getItemProps({
|
|
124
126
|
item: option,
|
|
125
127
|
index: index,
|
|
@@ -154,7 +156,7 @@ var SuggestionList = react_1.forwardRef(function (inProps, ref) {
|
|
|
154
156
|
// when not virtualize, use index as key
|
|
155
157
|
, tslib_1.__assign({}, resultProps, { itemId: option.id, "data-suggestion-item-id": option.id, isHighlighted: selected || highlighted, isMember: option.isMember })));
|
|
156
158
|
}
|
|
157
|
-
return (react_1.default.createElement(MenuItem_1.RcMenuItem, tslib_1.__assign({ component: "div", selected: selected, focused: highlighted }, foundation_1.omit(resultProps, [
|
|
159
|
+
return (react_1.default.createElement(MenuItem_1.RcMenuItem, tslib_1.__assign({ component: "div", selected: selected, focused: highlighted }, (0, foundation_1.omit)(resultProps, [
|
|
158
160
|
'isSuggestion',
|
|
159
161
|
'freeSolo',
|
|
160
162
|
'label',
|
|
@@ -164,7 +166,7 @@ var SuggestionList = react_1.forwardRef(function (inProps, ref) {
|
|
|
164
166
|
react_1.default.createElement(Box_1.RcBox, { flex: "1 1 auto" }),
|
|
165
167
|
expandIconProps && (react_1.default.createElement(IconButton_1.RcIconButton, tslib_1.__assign({}, expandIconProps, { symbol: juno_icon_1.ArrowDown2 })))));
|
|
166
168
|
};
|
|
167
|
-
var PaddingComponent = react_1.useMemo(function () {
|
|
169
|
+
var PaddingComponent = (0, react_1.useMemo)(function () {
|
|
168
170
|
var paddingValue = padding !== undefined && itemCount > 0
|
|
169
171
|
? typeof padding === 'number'
|
|
170
172
|
? padding
|
|
@@ -172,13 +174,13 @@ var SuggestionList = react_1.forwardRef(function (inProps, ref) {
|
|
|
172
174
|
: 0;
|
|
173
175
|
return function () { return react_1.default.createElement(styles_1.StyledMenuListPadding, { height: paddingValue }); };
|
|
174
176
|
}, [itemCount, padding]);
|
|
175
|
-
var components = react_1.useMemo(function () {
|
|
177
|
+
var components = (0, react_1.useMemo)(function () {
|
|
176
178
|
return tslib_1.__assign({ List: List, Header: PaddingComponent, Footer: PaddingComponent }, componentsProp);
|
|
177
179
|
}, [componentsProp, PaddingComponent]);
|
|
178
|
-
return (react_1.default.createElement(SuggestionListContext.Provider, { value: listRef }, virtualize ? (react_1.default.createElement(Virtuoso_1.Virtuoso, tslib_1.__assign({ ref: forkVlRef, totalCount: itemCount, data: itemData, className: className, components: components, itemContent: itemContent }, getMenuProps(), foundation_1.combineProps({
|
|
180
|
+
return (react_1.default.createElement(SuggestionListContext.Provider, { value: listRef }, virtualize ? (react_1.default.createElement(Virtuoso_1.Virtuoso, tslib_1.__assign({ ref: forkVlRef, totalCount: itemCount, data: itemData, className: className, components: components, itemContent: itemContent }, getMenuProps(), (0, foundation_1.combineProps)({
|
|
179
181
|
scrollerRef: function (scrollElm) {
|
|
180
182
|
scrollerRefFn(scrollElm);
|
|
181
|
-
Virtuoso_1.modifyVlScrollerStyle(scrollElm, position);
|
|
183
|
+
(0, Virtuoso_1.modifyVlScrollerStyle)(scrollElm, position);
|
|
182
184
|
},
|
|
183
185
|
itemsRendered: itemsRendered,
|
|
184
186
|
totalListHeightChanged: totalListHeightChanged,
|
|
@@ -193,6 +195,6 @@ var SuggestionList = react_1.forwardRef(function (inProps, ref) {
|
|
|
193
195
|
}),
|
|
194
196
|
react_1.default.createElement(PaddingComponent, null)))));
|
|
195
197
|
});
|
|
196
|
-
exports.RcSuggestionList = foundation_1.styled(SuggestionList)(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), styles_2.SuggestionListStyle);
|
|
198
|
+
exports.RcSuggestionList = (0, foundation_1.styled)(SuggestionList)(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), styles_2.SuggestionListStyle);
|
|
197
199
|
exports.RcSuggestionList.displayName = 'RcSuggestionList';
|
|
198
200
|
var templateObject_1;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SuggestionListStyle = void 0;
|
|
3
4
|
var tslib_1 = require("tslib");
|
|
4
5
|
var foundation_1 = require("../../../../foundation");
|
|
5
6
|
var utils_1 = require("../utils");
|
|
6
|
-
|
|
7
|
-
return foundation_1.css(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n .", " {\n margin-right: -", ";\n\n transform: rotate(0deg);\n transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n\n &.", " {\n transform: rotate(180deg);\n }\n }\n "], ["\n .", " {\n margin-right: -", ";\n\n transform: rotate(0deg);\n transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n\n &.", " {\n transform: rotate(180deg);\n }\n }\n "])), utils_1.RcSuggestionListClasses.toggle, foundation_1.spacing(3), utils_1.RcSuggestionListClasses.expanded);
|
|
7
|
+
var SuggestionListStyle = function () {
|
|
8
|
+
return (0, foundation_1.css)(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n .", " {\n margin-right: -", ";\n\n transform: rotate(0deg);\n transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n\n &.", " {\n transform: rotate(180deg);\n }\n }\n "], ["\n .", " {\n margin-right: -", ";\n\n transform: rotate(0deg);\n transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n\n &.", " {\n transform: rotate(180deg);\n }\n }\n "])), utils_1.RcSuggestionListClasses.toggle, (0, foundation_1.spacing)(3), utils_1.RcSuggestionListClasses.expanded);
|
|
8
9
|
};
|
|
10
|
+
exports.SuggestionListStyle = SuggestionListStyle;
|
|
9
11
|
var templateObject_1;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RcSuggestionListClasses = void 0;
|
|
3
4
|
var foundation_1 = require("../../../../foundation");
|
|
4
|
-
exports.RcSuggestionListClasses = foundation_1.RcClasses(['root', 'expanded', 'toggle', 'groupTitle'], 'RcSuggestionList');
|
|
5
|
+
exports.RcSuggestionListClasses = (0, foundation_1.RcClasses)(['root', 'expanded', 'toggle', 'groupTitle'], 'RcSuggestionList');
|