@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.scrollIntoViewSystem = void 0;
|
|
3
4
|
var tslib_1 = require("tslib");
|
|
4
5
|
var u = tslib_1.__importStar(require("./urx"));
|
|
5
6
|
var AATree_1 = require("./AATree");
|
|
@@ -24,9 +25,9 @@ exports.scrollIntoViewSystem = u.system(function (_a) {
|
|
|
24
25
|
u.connect(u.pipe(scrollIntoView, u.withLatestFrom(sizes, viewportHeight, totalCount, headerHeight, fixedHeaderHeight, fixedFooterHeight, scrollTop), u.withLatestFrom(gap), u.map(function (_a) {
|
|
25
26
|
var _b = tslib_1.__read(_a, 2), _c = tslib_1.__read(_b[0], 8), viewLocation = _c[0], sizes = _c[1], viewportHeight = _c[2], totalCount = _c[3], headerHeight = _c[4], fixedHeaderHeight = _c[5], fixedFooterHeight = _c[6], scrollTop = _c[7], gap = _b[1];
|
|
26
27
|
var done = viewLocation.done, behavior = viewLocation.behavior, align = viewLocation.align, _d = viewLocation.calculateViewLocation, calculateViewLocation = _d === void 0 ? defaultCalculateViewLocation : _d, rest = tslib_1.__rest(viewLocation, ["done", "behavior", "align", "calculateViewLocation"]);
|
|
27
|
-
var actualIndex = sizeSystem_1.originalIndexFromLocation(viewLocation, sizes, totalCount - 1);
|
|
28
|
-
var itemTop = sizeSystem_1.offsetOf(actualIndex, sizes.offsetTree, gap) + headerHeight + fixedHeaderHeight;
|
|
29
|
-
var itemBottom = itemTop + AATree_1.findMaxKeyValue(sizes.sizeTree, actualIndex)[1];
|
|
28
|
+
var actualIndex = (0, sizeSystem_1.originalIndexFromLocation)(viewLocation, sizes, totalCount - 1);
|
|
29
|
+
var itemTop = (0, sizeSystem_1.offsetOf)(actualIndex, sizes.offsetTree, gap) + headerHeight + fixedHeaderHeight;
|
|
30
|
+
var itemBottom = itemTop + (0, AATree_1.findMaxKeyValue)(sizes.sizeTree, actualIndex)[1];
|
|
30
31
|
var viewportTop = scrollTop + fixedHeaderHeight;
|
|
31
32
|
var viewportBottom = scrollTop + viewportHeight - fixedFooterHeight;
|
|
32
33
|
var location = calculateViewLocation({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as u from './urx';
|
|
2
2
|
import { IndexLocationWithAlign } from './interfaces';
|
|
3
3
|
import { LogLevel } from './loggerSystem';
|
|
4
|
-
export
|
|
4
|
+
export type IndexLocation = number | IndexLocationWithAlign;
|
|
5
5
|
export declare function normalizeIndexLocation(location: IndexLocation): IndexLocationWithAlign;
|
|
6
6
|
export declare const scrollToIndexSystem: u.SystemSpec<[u.SystemSpec<[u.SystemSpec<never[], () => {
|
|
7
7
|
log: u.StatefulStream<import("./loggerSystem").Log>;
|
|
@@ -86,6 +86,6 @@ export declare const scrollToIndexSystem: u.SystemSpec<[u.SystemSpec<[u.SystemSp
|
|
|
86
86
|
log: u.StatefulStream<import("./loggerSystem").Log>;
|
|
87
87
|
logLevel: u.StatefulStream<LogLevel>;
|
|
88
88
|
}]) => {
|
|
89
|
-
scrollToIndex: u.Stream<
|
|
89
|
+
scrollToIndex: u.Stream<IndexLocation>;
|
|
90
90
|
topListHeight: u.StatefulStream<number>;
|
|
91
91
|
}>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.scrollToIndexSystem = exports.normalizeIndexLocation = void 0;
|
|
3
4
|
var tslib_1 = require("tslib");
|
|
4
5
|
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
|
5
6
|
var u = tslib_1.__importStar(require("./urx"));
|
|
@@ -49,16 +50,16 @@ exports.scrollToIndexSystem = u.system(function (_a) {
|
|
|
49
50
|
var normalLocation = normalizeIndexLocation(location);
|
|
50
51
|
var align = normalLocation.align, behavior = normalLocation.behavior, offset = normalLocation.offset;
|
|
51
52
|
var lastIndex = totalCount - 1;
|
|
52
|
-
var index = sizeSystem_1.originalIndexFromLocation(normalLocation, sizes, lastIndex);
|
|
53
|
-
var top = sizeSystem_1.offsetOf(index, sizes.offsetTree, gap) + headerHeight;
|
|
53
|
+
var index = (0, sizeSystem_1.originalIndexFromLocation)(normalLocation, sizes, lastIndex);
|
|
54
|
+
var top = (0, sizeSystem_1.offsetOf)(index, sizes.offsetTree, gap) + headerHeight;
|
|
54
55
|
if (align === 'end') {
|
|
55
|
-
top += fixedHeaderHeight + AATree_1.findMaxKeyValue(sizes.sizeTree, index)[1] - viewportHeight + fixedFooterHeight;
|
|
56
|
+
top += fixedHeaderHeight + (0, AATree_1.findMaxKeyValue)(sizes.sizeTree, index)[1] - viewportHeight + fixedFooterHeight;
|
|
56
57
|
if (index === lastIndex) {
|
|
57
58
|
top += footerHeight;
|
|
58
59
|
}
|
|
59
60
|
}
|
|
60
61
|
else if (align === 'center') {
|
|
61
|
-
top += (fixedHeaderHeight + AATree_1.findMaxKeyValue(sizes.sizeTree, index)[1] - viewportHeight + fixedFooterHeight) / 2;
|
|
62
|
+
top += (fixedHeaderHeight + (0, AATree_1.findMaxKeyValue)(sizes.sizeTree, index)[1] - viewportHeight + fixedFooterHeight) / 2;
|
|
62
63
|
}
|
|
63
64
|
else {
|
|
64
65
|
top -= topListHeight;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as u from './urx';
|
|
2
2
|
import { UP, DOWN, ScrollDirection } from './stateFlagsSystem';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type NumberTuple = [number, number];
|
|
4
|
+
export type Overscan = number | {
|
|
5
5
|
main: number;
|
|
6
6
|
reverse: number;
|
|
7
7
|
};
|
|
8
8
|
export declare const TOP: "top";
|
|
9
9
|
export declare const BOTTOM: "bottom";
|
|
10
10
|
export declare const NONE: "none";
|
|
11
|
-
export
|
|
12
|
-
export
|
|
11
|
+
export type ListEnd = typeof TOP | typeof BOTTOM;
|
|
12
|
+
export type ViewportIncrease = number | {
|
|
13
13
|
[k in ListEnd]?: number;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export type ChangeDirection = typeof UP | typeof DOWN | typeof NONE;
|
|
16
16
|
export declare function getOverscan(overscan: Overscan, end: ListEnd, direction: ScrollDirection): number;
|
|
17
17
|
export declare const sizeRangeSystem: u.SystemSpec<[u.SystemSpec<never[], () => {
|
|
18
18
|
scrollContainerState: u.Stream<import("./interfaces").ScrollContainerState>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sizeRangeSystem = exports.getOverscan = exports.NONE = exports.BOTTOM = exports.TOP = void 0;
|
|
3
4
|
var tslib_1 = require("tslib");
|
|
4
5
|
var u = tslib_1.__importStar(require("./urx"));
|
|
5
6
|
var domIOSystem_1 = require("./domIOSystem");
|
|
@@ -2,7 +2,7 @@ import * as u from './urx';
|
|
|
2
2
|
import { AANode } from './AATree';
|
|
3
3
|
import { Log, LogLevel } from './loggerSystem';
|
|
4
4
|
import { SizeFunction, SizeRange } from './interfaces';
|
|
5
|
-
export
|
|
5
|
+
export type Data = readonly unknown[] | undefined;
|
|
6
6
|
export declare function insertRanges(sizeTree: AANode<number>, ranges: SizeRange[]): readonly [AANode<number>, number];
|
|
7
7
|
export interface OffsetPoint {
|
|
8
8
|
offset: number;
|
|
@@ -32,7 +32,7 @@ export declare function rangesWithinOffsets(tree: Array<OffsetPoint>, startOffse
|
|
|
32
32
|
}>;
|
|
33
33
|
export declare function sizeStateReducer(state: SizeState, [ranges, groupIndices, log, gap]: [SizeRange[], number[], Log, number]): SizeState;
|
|
34
34
|
export declare function offsetOf(index: number, tree: Array<OffsetPoint>, gap: number): number;
|
|
35
|
-
export
|
|
35
|
+
export type FlatOrGroupedLocation = {
|
|
36
36
|
index: number | 'LAST';
|
|
37
37
|
} | {
|
|
38
38
|
groupIndex: number;
|
|
@@ -44,6 +44,7 @@ export declare function originalIndexFromLocation(location: FlatOrGroupedLocatio
|
|
|
44
44
|
export declare function originalIndexFromItemIndex(itemIndex: number, sizes: SizeState): number;
|
|
45
45
|
export declare function hasGroups(sizes: SizeState): boolean;
|
|
46
46
|
export declare function sizeTreeToRanges(sizeTree: AANode<number>): SizeRange[];
|
|
47
|
+
type OptionalNumber = number | undefined;
|
|
47
48
|
export declare const sizeSystem: u.SystemSpec<[u.SystemSpec<never[], () => {
|
|
48
49
|
log: u.StatefulStream<Log>;
|
|
49
50
|
logLevel: u.StatefulStream<LogLevel>;
|
|
@@ -59,8 +60,8 @@ export declare const sizeSystem: u.SystemSpec<[u.SystemSpec<never[], () => {
|
|
|
59
60
|
totalCount: u.Stream<number>;
|
|
60
61
|
sizeRanges: u.Stream<SizeRange[]>;
|
|
61
62
|
groupIndices: u.StatefulStream<number[]>;
|
|
62
|
-
defaultItemSize: u.StatefulStream<
|
|
63
|
-
fixedItemSize: u.StatefulStream<
|
|
63
|
+
defaultItemSize: u.StatefulStream<OptionalNumber>;
|
|
64
|
+
fixedItemSize: u.StatefulStream<OptionalNumber>;
|
|
64
65
|
unshiftWith: u.Stream<number>;
|
|
65
66
|
shiftWith: u.Stream<number>;
|
|
66
67
|
shiftWithOffset: u.Stream<number>;
|
|
@@ -73,3 +74,4 @@ export declare const sizeSystem: u.SystemSpec<[u.SystemSpec<never[], () => {
|
|
|
73
74
|
trackItemSizes: u.StatefulStream<boolean>;
|
|
74
75
|
itemSize: u.StatefulStream<SizeFunction>;
|
|
75
76
|
}>;
|
|
77
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sizeSystem = exports.sizeTreeToRanges = exports.hasGroups = exports.originalIndexFromItemIndex = exports.originalIndexFromLocation = exports.isGroupLocation = exports.offsetOf = exports.sizeStateReducer = exports.rangesWithinOffsets = exports.offsetComparator = exports.indexComparator = exports.initialSizeState = exports.insertRanges = void 0;
|
|
3
4
|
var tslib_1 = require("tslib");
|
|
4
5
|
var u = tslib_1.__importStar(require("./urx"));
|
|
5
6
|
var AATree_1 = require("./AATree");
|
|
@@ -25,20 +26,20 @@ function affectedGroupCount(offset, groupIndices) {
|
|
|
25
26
|
}
|
|
26
27
|
function insertRanges(sizeTree, ranges) {
|
|
27
28
|
var e_1, _a, e_2, _b;
|
|
28
|
-
var syncStart = AATree_1.empty(sizeTree) ? 0 : Infinity;
|
|
29
|
+
var syncStart = (0, AATree_1.empty)(sizeTree) ? 0 : Infinity;
|
|
29
30
|
try {
|
|
30
31
|
for (var ranges_1 = tslib_1.__values(ranges), ranges_1_1 = ranges_1.next(); !ranges_1_1.done; ranges_1_1 = ranges_1.next()) {
|
|
31
32
|
var range = ranges_1_1.value;
|
|
32
33
|
var size = range.size, startIndex = range.startIndex, endIndex = range.endIndex;
|
|
33
34
|
syncStart = Math.min(syncStart, startIndex);
|
|
34
|
-
if (AATree_1.empty(sizeTree)) {
|
|
35
|
-
sizeTree = AATree_1.insert(sizeTree, 0, size);
|
|
35
|
+
if ((0, AATree_1.empty)(sizeTree)) {
|
|
36
|
+
sizeTree = (0, AATree_1.insert)(sizeTree, 0, size);
|
|
36
37
|
continue;
|
|
37
38
|
}
|
|
38
39
|
// extend the range in both directions, so that we can get adjacent neighbours.
|
|
39
40
|
// if the previous / next ones have the same value as the one we are about to insert,
|
|
40
41
|
// we 'merge' them.
|
|
41
|
-
var overlappingRanges = AATree_1.rangesWithin(sizeTree, startIndex - 1, endIndex + 1);
|
|
42
|
+
var overlappingRanges = (0, AATree_1.rangesWithin)(sizeTree, startIndex - 1, endIndex + 1);
|
|
42
43
|
if (overlappingRanges.some(rangeIncludes(range))) {
|
|
43
44
|
continue;
|
|
44
45
|
}
|
|
@@ -56,13 +57,13 @@ function insertRanges(sizeTree, ranges) {
|
|
|
56
57
|
// remove the range if it starts within the new range OR if
|
|
57
58
|
// it has the same value as it, in order to perform a merge
|
|
58
59
|
if (endIndex >= rangeStart || size === rangeValue) {
|
|
59
|
-
sizeTree = AATree_1.remove(sizeTree, rangeStart);
|
|
60
|
+
sizeTree = (0, AATree_1.remove)(sizeTree, rangeStart);
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
63
|
// next range
|
|
63
64
|
if (rangeEnd > endIndex && endIndex >= rangeStart) {
|
|
64
65
|
if (rangeValue !== size) {
|
|
65
|
-
sizeTree = AATree_1.insert(sizeTree, endIndex + 1, rangeValue);
|
|
66
|
+
sizeTree = (0, AATree_1.insert)(sizeTree, endIndex + 1, rangeValue);
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
}
|
|
@@ -75,7 +76,7 @@ function insertRanges(sizeTree, ranges) {
|
|
|
75
76
|
finally { if (e_2) throw e_2.error; }
|
|
76
77
|
}
|
|
77
78
|
if (shouldInsert) {
|
|
78
|
-
sizeTree = AATree_1.insert(sizeTree, startIndex, size);
|
|
79
|
+
sizeTree = (0, AATree_1.insert)(sizeTree, startIndex, size);
|
|
79
80
|
}
|
|
80
81
|
}
|
|
81
82
|
}
|
|
@@ -92,8 +93,8 @@ exports.insertRanges = insertRanges;
|
|
|
92
93
|
function initialSizeState() {
|
|
93
94
|
return {
|
|
94
95
|
offsetTree: [],
|
|
95
|
-
sizeTree: AATree_1.newTree(),
|
|
96
|
-
groupOffsetTree: AATree_1.newTree(),
|
|
96
|
+
sizeTree: (0, AATree_1.newTree)(),
|
|
97
|
+
groupOffsetTree: (0, AATree_1.newTree)(),
|
|
97
98
|
lastIndex: 0,
|
|
98
99
|
lastOffset: 0,
|
|
99
100
|
lastSize: 0,
|
|
@@ -119,7 +120,7 @@ function rangesWithinOffsets(tree, startOffset, endOffset, minStartIndex) {
|
|
|
119
120
|
if (minStartIndex > 0) {
|
|
120
121
|
startOffset = Math.max(startOffset, arrayBinarySearch.findClosestSmallerOrEqual(tree, minStartIndex, indexComparator).offset);
|
|
121
122
|
}
|
|
122
|
-
return AATree_1.arrayToRanges(arrayBinarySearch.findRange(tree, startOffset, endOffset, offsetComparator), offsetPointParser);
|
|
123
|
+
return (0, AATree_1.arrayToRanges)(arrayBinarySearch.findRange(tree, startOffset, endOffset, offsetComparator), offsetPointParser);
|
|
123
124
|
}
|
|
124
125
|
exports.rangesWithinOffsets = rangesWithinOffsets;
|
|
125
126
|
function createOffsetTree(prevOffsetTree, syncStart, sizeTree, gap) {
|
|
@@ -133,10 +134,10 @@ function createOffsetTree(prevOffsetTree, syncStart, sizeTree, gap) {
|
|
|
133
134
|
startIndex = arrayBinarySearch.findIndexOfClosestSmallerOrEqual(offsetTree, syncStart - 1, indexComparator);
|
|
134
135
|
var offsetInfo = offsetTree[startIndex];
|
|
135
136
|
prevOffset = offsetInfo.offset;
|
|
136
|
-
var kv = AATree_1.findMaxKeyValue(sizeTree, syncStart - 1);
|
|
137
|
+
var kv = (0, AATree_1.findMaxKeyValue)(sizeTree, syncStart - 1);
|
|
137
138
|
prevIndex = kv[0];
|
|
138
139
|
prevSize = kv[1];
|
|
139
|
-
if (offsetTree.length && offsetTree[startIndex].size === AATree_1.findMaxKeyValue(sizeTree, syncStart)[1]) {
|
|
140
|
+
if (offsetTree.length && offsetTree[startIndex].size === (0, AATree_1.findMaxKeyValue)(sizeTree, syncStart)[1]) {
|
|
140
141
|
startIndex -= 1;
|
|
141
142
|
}
|
|
142
143
|
offsetTree = offsetTree.slice(0, startIndex + 1);
|
|
@@ -145,7 +146,7 @@ function createOffsetTree(prevOffsetTree, syncStart, sizeTree, gap) {
|
|
|
145
146
|
offsetTree = [];
|
|
146
147
|
}
|
|
147
148
|
try {
|
|
148
|
-
for (var _b = tslib_1.__values(AATree_1.rangesWithin(sizeTree, syncStart, Infinity)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
149
|
+
for (var _b = tslib_1.__values((0, AATree_1.rangesWithin)(sizeTree, syncStart, Infinity)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
149
150
|
var _d = _c.value, startIndex_1 = _d.start, value = _d.value;
|
|
150
151
|
var indexOffset = startIndex_1 - prevIndex;
|
|
151
152
|
var aOffset = indexOffset * prevSize + prevOffset + indexOffset * gap;
|
|
@@ -185,11 +186,11 @@ function sizeStateReducer(state, _a) {
|
|
|
185
186
|
// We receive probe item results from a group probe,
|
|
186
187
|
// which should always pass an item and a group
|
|
187
188
|
// the results contain two ranges, which we consider to mean that groups and items have different size
|
|
188
|
-
if (groupIndices.length > 0 && AATree_1.empty(sizeTree) && ranges.length === 2) {
|
|
189
|
+
if (groupIndices.length > 0 && (0, AATree_1.empty)(sizeTree) && ranges.length === 2) {
|
|
189
190
|
var groupSize_1 = ranges[0].size;
|
|
190
191
|
var itemSize_1 = ranges[1].size;
|
|
191
192
|
newSizeTree = groupIndices.reduce(function (tree, groupIndex) {
|
|
192
|
-
return AATree_1.insert(AATree_1.insert(tree, groupIndex, groupSize_1), groupIndex + 1, itemSize_1);
|
|
193
|
+
return (0, AATree_1.insert)((0, AATree_1.insert)(tree, groupIndex, groupSize_1), groupIndex + 1, itemSize_1);
|
|
193
194
|
}, newSizeTree);
|
|
194
195
|
}
|
|
195
196
|
else {
|
|
@@ -207,8 +208,8 @@ function sizeStateReducer(state, _a) {
|
|
|
207
208
|
lastOffset: lastOffset,
|
|
208
209
|
lastSize: lastSize,
|
|
209
210
|
groupOffsetTree: groupIndices.reduce(function (tree, index) {
|
|
210
|
-
return AATree_1.insert(tree, index, offsetOf(index, newOffsetTree, gap));
|
|
211
|
-
}, AATree_1.newTree()),
|
|
211
|
+
return (0, AATree_1.insert)(tree, index, offsetOf(index, newOffsetTree, gap));
|
|
212
|
+
}, (0, AATree_1.newTree)()),
|
|
212
213
|
groupIndices: groupIndices,
|
|
213
214
|
};
|
|
214
215
|
}
|
|
@@ -255,11 +256,11 @@ function originalIndexFromItemIndex(itemIndex, sizes) {
|
|
|
255
256
|
}
|
|
256
257
|
exports.originalIndexFromItemIndex = originalIndexFromItemIndex;
|
|
257
258
|
function hasGroups(sizes) {
|
|
258
|
-
return !AATree_1.empty(sizes.groupOffsetTree);
|
|
259
|
+
return !(0, AATree_1.empty)(sizes.groupOffsetTree);
|
|
259
260
|
}
|
|
260
261
|
exports.hasGroups = hasGroups;
|
|
261
262
|
function sizeTreeToRanges(sizeTree) {
|
|
262
|
-
return AATree_1.walk(sizeTree).map(function (_a, index, sizeArray) {
|
|
263
|
+
return (0, AATree_1.walk)(sizeTree).map(function (_a, index, sizeArray) {
|
|
263
264
|
var startIndex = _a.k, size = _a.v;
|
|
264
265
|
var nextSize = sizeArray[index + 1];
|
|
265
266
|
var endIndex = nextSize ? nextSize.k - 1 : Infinity;
|
|
@@ -282,7 +283,7 @@ exports.sizeSystem = u.system(function (_a) {
|
|
|
282
283
|
var groupIndices = u.statefulStream([]);
|
|
283
284
|
var fixedItemSize = u.statefulStream(undefined);
|
|
284
285
|
var defaultItemSize = u.statefulStream(undefined);
|
|
285
|
-
var itemSize = u.statefulStream(function (el, field) { return correctItemSize_1.correctItemSize(el, SIZE_MAP[field]); });
|
|
286
|
+
var itemSize = u.statefulStream(function (el, field) { return (0, correctItemSize_1.correctItemSize)(el, SIZE_MAP[field]); });
|
|
286
287
|
var data = u.statefulStream(undefined);
|
|
287
288
|
var gap = u.statefulStream(0);
|
|
288
289
|
var initial = initialSizeState();
|
|
@@ -297,10 +298,9 @@ exports.sizeSystem = u.system(function (_a) {
|
|
|
297
298
|
u.connect(u.pipe(groupIndices, u.filter(function (indexes) { return indexes.length > 0; }), u.withLatestFrom(sizes, gap), u.map(function (_a) {
|
|
298
299
|
var _b = tslib_1.__read(_a, 3), groupIndices = _b[0], sizes = _b[1], gap = _b[2];
|
|
299
300
|
var groupOffsetTree = groupIndices.reduce(function (tree, index, idx) {
|
|
300
|
-
return AATree_1.insert(tree, index, offsetOf(index, sizes.offsetTree, gap) || idx);
|
|
301
|
-
}, AATree_1.newTree());
|
|
302
|
-
return tslib_1.__assign(tslib_1.__assign({}, sizes), { groupIndices: groupIndices,
|
|
303
|
-
groupOffsetTree: groupOffsetTree });
|
|
301
|
+
return (0, AATree_1.insert)(tree, index, offsetOf(index, sizes.offsetTree, gap) || idx);
|
|
302
|
+
}, (0, AATree_1.newTree)());
|
|
303
|
+
return tslib_1.__assign(tslib_1.__assign({}, sizes), { groupIndices: groupIndices, groupOffsetTree: groupOffsetTree });
|
|
304
304
|
})), sizes);
|
|
305
305
|
// decreasing the total count should remove any existing entries
|
|
306
306
|
// beyond the last index - do this by publishing the default size as a range over them.
|
|
@@ -322,7 +322,7 @@ exports.sizeSystem = u.system(function (_a) {
|
|
|
322
322
|
u.connect(fixedItemSize, defaultItemSize);
|
|
323
323
|
var trackItemSizes = u.statefulStreamFromEmitter(u.pipe(fixedItemSize, u.map(function (size) { return size === undefined; })), true);
|
|
324
324
|
u.connect(u.pipe(defaultItemSize, u.filter(function (value) {
|
|
325
|
-
return value !== undefined && AATree_1.empty(u.getValue(sizes).sizeTree);
|
|
325
|
+
return value !== undefined && (0, AATree_1.empty)(u.getValue(sizes).sizeTree);
|
|
326
326
|
}), u.map(function (size) { return [{ startIndex: 0, endIndex: 0, size: size }]; })), sizeRanges);
|
|
327
327
|
var listRefresh = u.streamFromEmitter(u.pipe(sizeRanges, u.withLatestFrom(sizes), u.scan(function (_a, _b) {
|
|
328
328
|
var oldSizes = _a.sizes;
|
|
@@ -362,7 +362,7 @@ exports.sizeSystem = u.system(function (_a) {
|
|
|
362
362
|
var initialRanges = [];
|
|
363
363
|
var defaultSize = sizes.lastSize;
|
|
364
364
|
if (groupedMode) {
|
|
365
|
-
var firstGroupSize = AATree_1.find(sizes.sizeTree, 0);
|
|
365
|
+
var firstGroupSize = (0, AATree_1.find)(sizes.sizeTree, 0);
|
|
366
366
|
var prependedGroupItemsCount = 0;
|
|
367
367
|
var groupIndex = 0;
|
|
368
368
|
while (prependedGroupItemsCount < unshiftWith) {
|
|
@@ -381,7 +381,7 @@ exports.sizeSystem = u.system(function (_a) {
|
|
|
381
381
|
groupIndex++;
|
|
382
382
|
prependedGroupItemsCount += groupItemCount + 1;
|
|
383
383
|
}
|
|
384
|
-
var sizeTreeKV = AATree_1.walk(sizes.sizeTree);
|
|
384
|
+
var sizeTreeKV = (0, AATree_1.walk)(sizes.sizeTree);
|
|
385
385
|
// here, we detect if the first group item size has increased, so that we can delete its value.
|
|
386
386
|
var firstGroupIsExpanded = prependedGroupItemsCount !== unshiftWith;
|
|
387
387
|
if (firstGroupIsExpanded) {
|
|
@@ -392,13 +392,13 @@ exports.sizeSystem = u.system(function (_a) {
|
|
|
392
392
|
var index = _a.k, size = _a.v;
|
|
393
393
|
var ranges = acc.ranges;
|
|
394
394
|
if (acc.prevSize !== 0) {
|
|
395
|
-
ranges = tslib_1.
|
|
395
|
+
ranges = tslib_1.__spreadArray(tslib_1.__spreadArray([], tslib_1.__read(acc.ranges), false), [
|
|
396
396
|
{
|
|
397
397
|
startIndex: acc.prevIndex,
|
|
398
398
|
endIndex: index + unshiftWith - 1,
|
|
399
399
|
size: acc.prevSize,
|
|
400
400
|
},
|
|
401
|
-
]);
|
|
401
|
+
], false);
|
|
402
402
|
}
|
|
403
403
|
return {
|
|
404
404
|
ranges: ranges,
|
|
@@ -411,10 +411,10 @@ exports.sizeSystem = u.system(function (_a) {
|
|
|
411
411
|
prevSize: 0,
|
|
412
412
|
}).ranges;
|
|
413
413
|
}
|
|
414
|
-
return AATree_1.walk(sizes.sizeTree).reduce(function (acc, _a) {
|
|
414
|
+
return (0, AATree_1.walk)(sizes.sizeTree).reduce(function (acc, _a) {
|
|
415
415
|
var index = _a.k, size = _a.v;
|
|
416
416
|
return {
|
|
417
|
-
ranges: tslib_1.
|
|
417
|
+
ranges: tslib_1.__spreadArray(tslib_1.__spreadArray([], tslib_1.__read(acc.ranges), false), [{ startIndex: acc.prevIndex, endIndex: index + unshiftWith - 1, size: acc.prevSize }], false),
|
|
418
418
|
prevIndex: index + unshiftWith,
|
|
419
419
|
prevSize: size,
|
|
420
420
|
};
|
|
@@ -434,10 +434,10 @@ exports.sizeSystem = u.system(function (_a) {
|
|
|
434
434
|
var groupedMode = sizes.groupIndices.length > 0;
|
|
435
435
|
if (groupedMode) {
|
|
436
436
|
// we can't shift an empty tree
|
|
437
|
-
if (AATree_1.empty(sizes.sizeTree)) {
|
|
437
|
+
if ((0, AATree_1.empty)(sizes.sizeTree)) {
|
|
438
438
|
return sizes;
|
|
439
439
|
}
|
|
440
|
-
var newSizeTree = AATree_1.newTree();
|
|
440
|
+
var newSizeTree = (0, AATree_1.newTree)();
|
|
441
441
|
var prevGroupIndicesValue = u.getValue(prevGroupIndices);
|
|
442
442
|
var removedItemsCount = 0;
|
|
443
443
|
var groupIndex = 0;
|
|
@@ -448,25 +448,25 @@ exports.sizeSystem = u.system(function (_a) {
|
|
|
448
448
|
groupIndex++;
|
|
449
449
|
removedItemsCount += groupItemCount + 1;
|
|
450
450
|
}
|
|
451
|
-
newSizeTree = AATree_1.walk(sizes.sizeTree).reduce(function (acc, _a) {
|
|
451
|
+
newSizeTree = (0, AATree_1.walk)(sizes.sizeTree).reduce(function (acc, _a) {
|
|
452
452
|
var k = _a.k, v = _a.v;
|
|
453
|
-
return AATree_1.insert(acc, Math.max(0, k + shiftWith), v);
|
|
453
|
+
return (0, AATree_1.insert)(acc, Math.max(0, k + shiftWith), v);
|
|
454
454
|
}, newSizeTree);
|
|
455
455
|
// here, we detect if the first group item size has increased, so that we can delete its value.
|
|
456
456
|
var aGroupIsShrunk = removedItemsCount !== -shiftWith;
|
|
457
457
|
if (aGroupIsShrunk) {
|
|
458
|
-
var firstGroupSize = AATree_1.find(sizes.sizeTree, groupOffset);
|
|
459
|
-
newSizeTree = AATree_1.insert(newSizeTree, 0, firstGroupSize);
|
|
460
|
-
var nextItemSize = AATree_1.findMaxKeyValue(sizes.sizeTree, -shiftWith + 1)[1];
|
|
461
|
-
newSizeTree = AATree_1.insert(newSizeTree, 1, nextItemSize);
|
|
458
|
+
var firstGroupSize = (0, AATree_1.find)(sizes.sizeTree, groupOffset);
|
|
459
|
+
newSizeTree = (0, AATree_1.insert)(newSizeTree, 0, firstGroupSize);
|
|
460
|
+
var nextItemSize = (0, AATree_1.findMaxKeyValue)(sizes.sizeTree, -shiftWith + 1)[1];
|
|
461
|
+
newSizeTree = (0, AATree_1.insert)(newSizeTree, 1, nextItemSize);
|
|
462
462
|
}
|
|
463
463
|
return tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, sizes), { sizeTree: newSizeTree }), createOffsetTree(sizes.offsetTree, 0, newSizeTree, gap));
|
|
464
464
|
}
|
|
465
465
|
else {
|
|
466
|
-
var newSizeTree = AATree_1.walk(sizes.sizeTree).reduce(function (acc, _a) {
|
|
466
|
+
var newSizeTree = (0, AATree_1.walk)(sizes.sizeTree).reduce(function (acc, _a) {
|
|
467
467
|
var k = _a.k, v = _a.v;
|
|
468
|
-
return AATree_1.insert(acc, Math.max(0, k + shiftWith), v);
|
|
469
|
-
}, AATree_1.newTree());
|
|
468
|
+
return (0, AATree_1.insert)(acc, Math.max(0, k + shiftWith), v);
|
|
469
|
+
}, (0, AATree_1.newTree)());
|
|
470
470
|
return tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, sizes), { sizeTree: newSizeTree }), createOffsetTree(sizes.offsetTree, 0, newSizeTree, gap));
|
|
471
471
|
}
|
|
472
472
|
})), sizes);
|
|
@@ -2,7 +2,7 @@ import * as u from './urx';
|
|
|
2
2
|
export declare const UP: "up";
|
|
3
3
|
export declare const DOWN: "down";
|
|
4
4
|
export declare const NONE: "none";
|
|
5
|
-
export
|
|
5
|
+
export type ScrollDirection = typeof UP | typeof DOWN | typeof NONE;
|
|
6
6
|
export interface ListBottomInfo {
|
|
7
7
|
bottom: number;
|
|
8
8
|
offsetBottom: number;
|
|
@@ -13,9 +13,9 @@ export interface AtBottomParams {
|
|
|
13
13
|
viewportHeight: number;
|
|
14
14
|
scrollHeight: number;
|
|
15
15
|
}
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
16
|
+
export type NotAtBottomReason = 'SIZE_INCREASED' | 'NOT_SHOWING_LAST_ITEM' | 'VIEWPORT_HEIGHT_DECREASING' | 'SCROLLING_UPWARDS' | 'NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM';
|
|
17
|
+
export type AtBottomReason = 'SIZE_DECREASED' | 'SCROLLED_DOWN';
|
|
18
|
+
export type AtBottomState = {
|
|
19
19
|
atBottom: false;
|
|
20
20
|
notAtBottomBecause: NotAtBottomReason;
|
|
21
21
|
state: AtBottomParams;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stateFlagsSystem = exports.NONE = exports.DOWN = exports.UP = void 0;
|
|
3
4
|
var tslib_1 = require("tslib");
|
|
4
5
|
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
|
5
6
|
var u = tslib_1.__importStar(require("./urx"));
|
|
@@ -85,7 +86,7 @@ exports.stateFlagsSystem = u.system(function (_a) {
|
|
|
85
86
|
})));
|
|
86
87
|
var lastJumpDueToItemResize = u.statefulStreamFromEmitter(u.pipe(scrollContainerState, u.scan(function (current, _a) {
|
|
87
88
|
var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, viewportHeight = _a.viewportHeight;
|
|
88
|
-
if (!approximatelyEqual_1.approximatelyEqual(current.scrollHeight, scrollHeight)) {
|
|
89
|
+
if (!(0, approximatelyEqual_1.approximatelyEqual)(current.scrollHeight, scrollHeight)) {
|
|
89
90
|
var atBottom = scrollHeight - (scrollTop + viewportHeight) < 1;
|
|
90
91
|
if (current.scrollTop !== scrollTop && atBottom) {
|
|
91
92
|
return {
|
|
@@ -169,7 +169,7 @@ export declare const stateLoadSystem: u.SystemSpec<[u.SystemSpec<[u.SystemSpec<n
|
|
|
169
169
|
log: u.StatefulStream<import("./loggerSystem").Log>;
|
|
170
170
|
logLevel: u.StatefulStream<import("./loggerSystem").LogLevel>;
|
|
171
171
|
}]) => {
|
|
172
|
-
scrollToIndex: u.Stream<
|
|
172
|
+
scrollToIndex: u.Stream<import("./scrollToIndexSystem").IndexLocation>;
|
|
173
173
|
topListHeight: u.StatefulStream<number>;
|
|
174
174
|
}>, u.SystemSpec<[u.SystemSpec<never[], () => {
|
|
175
175
|
log: u.StatefulStream<import("./loggerSystem").Log>;
|
|
@@ -214,7 +214,7 @@ export declare const stateLoadSystem: u.SystemSpec<[u.SystemSpec<[u.SystemSpec<n
|
|
|
214
214
|
deviation: u.StatefulStream<number>;
|
|
215
215
|
scrollingInProgress: u.StatefulStream<boolean>;
|
|
216
216
|
}, {
|
|
217
|
-
scrollToIndex: u.Stream<
|
|
217
|
+
scrollToIndex: u.Stream<import("./scrollToIndexSystem").IndexLocation>;
|
|
218
218
|
topListHeight: u.StatefulStream<number>;
|
|
219
219
|
}, {
|
|
220
220
|
propsReady: u.StatefulStream<boolean>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stateLoadSystem = void 0;
|
|
3
4
|
var tslib_1 = require("tslib");
|
|
4
5
|
var domIOSystem_1 = require("./domIOSystem");
|
|
5
6
|
var initialTopMostItemIndexSystem_1 = require("./initialTopMostItemIndexSystem");
|
|
@@ -17,7 +18,7 @@ exports.stateLoadSystem = u.system(function (_a) {
|
|
|
17
18
|
u.connect(windowViewportRect, statefulWindowViewportRect);
|
|
18
19
|
u.subscribe(u.pipe(getState, u.withLatestFrom(sizes, scrollTop, useWindowScroll, statefulWindowScrollContainerState, statefulWindowViewportRect)), function (_a) {
|
|
19
20
|
var _b = tslib_1.__read(_a, 6), callback = _b[0], sizes = _b[1], scrollTop = _b[2], useWindowScroll = _b[3], windowScrollContainerState = _b[4], windowViewportRect = _b[5];
|
|
20
|
-
var ranges = sizeSystem_1.sizeTreeToRanges(sizes.sizeTree);
|
|
21
|
+
var ranges = (0, sizeSystem_1.sizeTreeToRanges)(sizes.sizeTree);
|
|
21
22
|
if (useWindowScroll && windowScrollContainerState !== null && windowViewportRect !== null) {
|
|
22
23
|
scrollTop = windowScrollContainerState.scrollTop - windowViewportRect.offsetTop;
|
|
23
24
|
}
|
|
@@ -268,7 +268,7 @@ export declare const topItemCountSystem: u.SystemSpec<[u.SystemSpec<[u.SystemSpe
|
|
|
268
268
|
log: u.StatefulStream<import("./loggerSystem").Log>;
|
|
269
269
|
logLevel: u.StatefulStream<import("./loggerSystem").LogLevel>;
|
|
270
270
|
}]) => {
|
|
271
|
-
scrollToIndex: u.Stream<
|
|
271
|
+
scrollToIndex: u.Stream<import("./scrollToIndexSystem").IndexLocation>;
|
|
272
272
|
topListHeight: u.StatefulStream<number>;
|
|
273
273
|
}>, u.SystemSpec<[u.SystemSpec<never[], () => {
|
|
274
274
|
log: u.StatefulStream<import("./loggerSystem").Log>;
|
|
@@ -313,7 +313,7 @@ export declare const topItemCountSystem: u.SystemSpec<[u.SystemSpec<[u.SystemSpe
|
|
|
313
313
|
deviation: u.StatefulStream<number>;
|
|
314
314
|
scrollingInProgress: u.StatefulStream<boolean>;
|
|
315
315
|
}, {
|
|
316
|
-
scrollToIndex: u.Stream<
|
|
316
|
+
scrollToIndex: u.Stream<import("./scrollToIndexSystem").IndexLocation>;
|
|
317
317
|
topListHeight: u.StatefulStream<number>;
|
|
318
318
|
}, {
|
|
319
319
|
propsReady: u.StatefulStream<boolean>;
|
|
@@ -404,7 +404,7 @@ export declare const topItemCountSystem: u.SystemSpec<[u.SystemSpec<[u.SystemSpe
|
|
|
404
404
|
log: u.StatefulStream<import("./loggerSystem").Log>;
|
|
405
405
|
logLevel: u.StatefulStream<import("./loggerSystem").LogLevel>;
|
|
406
406
|
}]) => {
|
|
407
|
-
scrollToIndex: u.Stream<
|
|
407
|
+
scrollToIndex: u.Stream<import("./scrollToIndexSystem").IndexLocation>;
|
|
408
408
|
topListHeight: u.StatefulStream<number>;
|
|
409
409
|
}>, u.SystemSpec<[u.SystemSpec<never[], () => {
|
|
410
410
|
scrollContainerState: u.Stream<import("./interfaces").ScrollContainerState>;
|
|
@@ -490,7 +490,7 @@ export declare const topItemCountSystem: u.SystemSpec<[u.SystemSpec<[u.SystemSpe
|
|
|
490
490
|
scrolledToInitialItem: u.StatefulStream<boolean>;
|
|
491
491
|
initialTopMostItemIndex: u.StatefulStream<number | import("./interfaces").FlatIndexLocationWithAlign>;
|
|
492
492
|
}, {
|
|
493
|
-
scrollToIndex: u.Stream<
|
|
493
|
+
scrollToIndex: u.Stream<import("./scrollToIndexSystem").IndexLocation>;
|
|
494
494
|
topListHeight: u.StatefulStream<number>;
|
|
495
495
|
}, {
|
|
496
496
|
isScrolling: u.StatefulStream<boolean>;
|
|
@@ -283,7 +283,7 @@ export declare const totalListHeightSystem: u.SystemSpec<[u.SystemSpec<never[],
|
|
|
283
283
|
log: u.StatefulStream<import("./loggerSystem").Log>;
|
|
284
284
|
logLevel: u.StatefulStream<import("./loggerSystem").LogLevel>;
|
|
285
285
|
}]) => {
|
|
286
|
-
scrollToIndex: u.Stream<
|
|
286
|
+
scrollToIndex: u.Stream<import("./scrollToIndexSystem").IndexLocation>;
|
|
287
287
|
topListHeight: u.StatefulStream<number>;
|
|
288
288
|
}>, u.SystemSpec<[u.SystemSpec<never[], () => {
|
|
289
289
|
log: u.StatefulStream<import("./loggerSystem").Log>;
|
|
@@ -328,7 +328,7 @@ export declare const totalListHeightSystem: u.SystemSpec<[u.SystemSpec<never[],
|
|
|
328
328
|
deviation: u.StatefulStream<number>;
|
|
329
329
|
scrollingInProgress: u.StatefulStream<boolean>;
|
|
330
330
|
}, {
|
|
331
|
-
scrollToIndex: u.Stream<
|
|
331
|
+
scrollToIndex: u.Stream<import("./scrollToIndexSystem").IndexLocation>;
|
|
332
332
|
topListHeight: u.StatefulStream<number>;
|
|
333
333
|
}, {
|
|
334
334
|
propsReady: u.StatefulStream<boolean>;
|
|
@@ -419,7 +419,7 @@ export declare const totalListHeightSystem: u.SystemSpec<[u.SystemSpec<never[],
|
|
|
419
419
|
log: u.StatefulStream<import("./loggerSystem").Log>;
|
|
420
420
|
logLevel: u.StatefulStream<import("./loggerSystem").LogLevel>;
|
|
421
421
|
}]) => {
|
|
422
|
-
scrollToIndex: u.Stream<
|
|
422
|
+
scrollToIndex: u.Stream<import("./scrollToIndexSystem").IndexLocation>;
|
|
423
423
|
topListHeight: u.StatefulStream<number>;
|
|
424
424
|
}>, u.SystemSpec<[u.SystemSpec<never[], () => {
|
|
425
425
|
scrollContainerState: u.Stream<import("./interfaces").ScrollContainerState>;
|
|
@@ -505,7 +505,7 @@ export declare const totalListHeightSystem: u.SystemSpec<[u.SystemSpec<never[],
|
|
|
505
505
|
scrolledToInitialItem: u.StatefulStream<boolean>;
|
|
506
506
|
initialTopMostItemIndex: u.StatefulStream<number | import("./interfaces").FlatIndexLocationWithAlign>;
|
|
507
507
|
}, {
|
|
508
|
-
scrollToIndex: u.Stream<
|
|
508
|
+
scrollToIndex: u.Stream<import("./scrollToIndexSystem").IndexLocation>;
|
|
509
509
|
topListHeight: u.StatefulStream<number>;
|
|
510
510
|
}, {
|
|
511
511
|
isScrolling: u.StatefulStream<boolean>;
|
|
@@ -329,7 +329,7 @@ export declare const upwardScrollFixSystem: u.SystemSpec<[u.SystemSpec<never[],
|
|
|
329
329
|
log: u.StatefulStream<import("./loggerSystem").Log>;
|
|
330
330
|
logLevel: u.StatefulStream<LogLevel>;
|
|
331
331
|
}]) => {
|
|
332
|
-
scrollToIndex: u.Stream<
|
|
332
|
+
scrollToIndex: u.Stream<import("./scrollToIndexSystem").IndexLocation>;
|
|
333
333
|
topListHeight: u.StatefulStream<number>;
|
|
334
334
|
}>, u.SystemSpec<[u.SystemSpec<never[], () => {
|
|
335
335
|
log: u.StatefulStream<import("./loggerSystem").Log>;
|
|
@@ -374,7 +374,7 @@ export declare const upwardScrollFixSystem: u.SystemSpec<[u.SystemSpec<never[],
|
|
|
374
374
|
deviation: u.StatefulStream<number>;
|
|
375
375
|
scrollingInProgress: u.StatefulStream<boolean>;
|
|
376
376
|
}, {
|
|
377
|
-
scrollToIndex: u.Stream<
|
|
377
|
+
scrollToIndex: u.Stream<import("./scrollToIndexSystem").IndexLocation>;
|
|
378
378
|
topListHeight: u.StatefulStream<number>;
|
|
379
379
|
}, {
|
|
380
380
|
propsReady: u.StatefulStream<boolean>;
|
|
@@ -465,7 +465,7 @@ export declare const upwardScrollFixSystem: u.SystemSpec<[u.SystemSpec<never[],
|
|
|
465
465
|
log: u.StatefulStream<import("./loggerSystem").Log>;
|
|
466
466
|
logLevel: u.StatefulStream<LogLevel>;
|
|
467
467
|
}]) => {
|
|
468
|
-
scrollToIndex: u.Stream<
|
|
468
|
+
scrollToIndex: u.Stream<import("./scrollToIndexSystem").IndexLocation>;
|
|
469
469
|
topListHeight: u.StatefulStream<number>;
|
|
470
470
|
}>, u.SystemSpec<[u.SystemSpec<never[], () => {
|
|
471
471
|
scrollContainerState: u.Stream<import("./interfaces").ScrollContainerState>;
|
|
@@ -551,7 +551,7 @@ export declare const upwardScrollFixSystem: u.SystemSpec<[u.SystemSpec<never[],
|
|
|
551
551
|
scrolledToInitialItem: u.StatefulStream<boolean>;
|
|
552
552
|
initialTopMostItemIndex: u.StatefulStream<number | import("./interfaces").FlatIndexLocationWithAlign>;
|
|
553
553
|
}, {
|
|
554
|
-
scrollToIndex: u.Stream<
|
|
554
|
+
scrollToIndex: u.Stream<import("./scrollToIndexSystem").IndexLocation>;
|
|
555
555
|
topListHeight: u.StatefulStream<number>;
|
|
556
556
|
}, {
|
|
557
557
|
isScrolling: u.StatefulStream<boolean>;
|