rsuite 5.20.0-beta.6 → 5.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Animation/styles/animation.less +0 -0
- package/Animation/styles/index.less +0 -0
- package/Animation/styles/mixin.less +0 -0
- package/AutoComplete/styles/index.less +0 -0
- package/Avatar/styles/mixin.less +0 -0
- package/Badge/styles/index.less +0 -0
- package/Breadcrumb/styles/index.less +0 -0
- package/Button/styles/mixin.less +0 -0
- package/CHANGELOG.md +10 -0
- package/Cascader/styles/index.less +0 -0
- package/CheckPicker/styles/index.less +0 -0
- package/CheckTreePicker/styles/index.less +0 -25
- package/Checkbox/styles/index.less +0 -0
- package/Checkbox/styles/mixin.less +0 -0
- package/CheckboxGroup/styles/index.less +0 -0
- package/CloseButton/styles/index.less +0 -0
- package/Container/styles/index.less +0 -0
- package/Content/styles/index.less +0 -0
- package/Divider/styles/index.less +0 -0
- package/Drawer/styles/mixin.less +0 -0
- package/FlexboxGrid/styles/index.less +0 -0
- package/Footer/styles/index.less +0 -0
- package/Form/styles/index.less +0 -0
- package/FormControlLabel/styles/index.less +0 -0
- package/FormErrorMessage/styles/animation.less +0 -0
- package/FormErrorMessage/styles/index.less +0 -0
- package/FormGroup/styles/index.less +0 -0
- package/FormHelpText/styles/index.less +0 -0
- package/Grid/styles/grid-framework.less +0 -0
- package/Grid/styles/mixin.less +0 -0
- package/Header/styles/index.less +0 -0
- package/Input/styles/index.less +0 -0
- package/InputNumber/styles/index.less +0 -0
- package/InputNumber/styles/mixin.less +0 -0
- package/InputPicker/styles/index.less +0 -0
- package/LICENSE +0 -0
- package/List/styles/index.less +0 -0
- package/Loader/styles/index.less +0 -0
- package/Loader/styles/mixin.less +0 -0
- package/Message/styles/index.less +0 -0
- package/Message/styles/mixin.less +0 -0
- package/Modal/styles/animation.less +0 -0
- package/Notification/styles/index.less +0 -0
- package/Notification/styles/mixin.less +0 -0
- package/Pagination/styles/index.less +0 -0
- package/Pagination/styles/mixin.less +0 -0
- package/Pagination/styles/pagination-group.less +0 -0
- package/Panel/styles/index.less +0 -0
- package/Picker/styles/index.less +0 -10
- package/Picker/styles/mixin.less +0 -5
- package/Placeholder/styles/index.less +0 -0
- package/Popover/styles/index.less +0 -0
- package/Popover/styles/mixins.less +0 -0
- package/Progress/styles/animation.less +0 -0
- package/Progress/styles/index.less +0 -0
- package/README.md +4 -2
- package/Radio/styles/mixin.less +0 -0
- package/RadioGroup/styles/index.less +0 -0
- package/Rate/styles/index.less +0 -0
- package/Ripple/styles/index.less +0 -0
- package/Ripple/styles/mixins.less +0 -0
- package/Row/styles/index.less +0 -0
- package/SelectPicker/styles/index.less +0 -0
- package/Sidebar/styles/index.less +0 -0
- package/Sidenav/styles/mixin.less +0 -0
- package/Steps/styles/index.less +0 -0
- package/Table/styles/mixin.less +0 -0
- package/Tag/styles/index.less +0 -0
- package/TagInput/styles/index.less +0 -0
- package/TagPicker/styles/index.less +0 -0
- package/Timeline/styles/index.less +0 -0
- package/Timeline/styles/mixin.less +0 -0
- package/Tooltip/styles/mixins.less +0 -0
- package/TreePicker/styles/index.less +0 -19
- package/TreePicker/styles/mixin.less +0 -0
- package/Uploader/styles/mixin.less +0 -0
- package/cjs/@types/global.d.ts +0 -0
- package/cjs/Affix/index.js +0 -0
- package/cjs/Animation/Bounce.js +0 -0
- package/cjs/Animation/Fade.js +0 -0
- package/cjs/Animation/Slide.js +0 -0
- package/cjs/Animation/index.js +0 -0
- package/cjs/Animation/utils.js +0 -0
- package/cjs/AutoComplete/index.js +0 -0
- package/cjs/Avatar/index.js +0 -0
- package/cjs/Badge/index.js +0 -0
- package/cjs/Breadcrumb/index.js +0 -0
- package/cjs/Button/index.js +0 -0
- package/cjs/ButtonToolbar/ButtonToolbar.js +0 -0
- package/cjs/ButtonToolbar/index.js +0 -0
- package/cjs/Carousel/index.js +0 -0
- package/cjs/Cascader/index.js +0 -0
- package/cjs/CheckPicker/index.js +0 -0
- package/cjs/CheckTreePicker/CheckTreePicker.js +1 -3
- package/cjs/CheckTreePicker/index.js +0 -0
- package/cjs/Checkbox/index.js +0 -0
- package/cjs/CloseButton/CloseButton.js +0 -0
- package/cjs/CloseButton/index.js +0 -0
- package/cjs/Col/index.js +0 -0
- package/cjs/Container/index.js +0 -0
- package/cjs/Content/Content.js +0 -0
- package/cjs/Content/index.js +0 -0
- package/cjs/CustomProvider/CustomProvider.d.ts +1 -108
- package/cjs/CustomProvider/CustomProvider.js +2 -5
- package/cjs/CustomProvider/FormattedDate.js +0 -0
- package/cjs/CustomProvider/index.d.ts +2 -2
- package/cjs/CustomProvider/index.js +0 -1
- package/cjs/DatePicker/index.js +0 -0
- package/cjs/DateRangePicker/DateRangePicker.js +5 -5
- package/cjs/DateRangePicker/disabledDateUtils.js +0 -0
- package/cjs/Disclosure/index.js +0 -0
- package/cjs/Divider/index.js +0 -0
- package/cjs/Drawer/index.js +0 -0
- package/cjs/Dropdown/DropdownState.js +0 -0
- package/cjs/Dropdown/index.js +0 -0
- package/cjs/FlexboxGrid/index.js +0 -0
- package/cjs/Footer/Footer.js +0 -0
- package/cjs/Footer/index.js +0 -0
- package/cjs/FormControl/index.js +0 -0
- package/cjs/FormControlLabel/FormControlLabel.js +0 -0
- package/cjs/FormControlLabel/index.js +0 -0
- package/cjs/FormErrorMessage/FormErrorMessage.js +0 -0
- package/cjs/FormErrorMessage/index.js +0 -0
- package/cjs/FormGroup/index.js +0 -0
- package/cjs/FormHelpText/index.js +0 -0
- package/cjs/Grid/Grid.js +0 -0
- package/cjs/Grid/index.js +0 -0
- package/cjs/Header/Header.js +0 -0
- package/cjs/Header/index.js +0 -0
- package/cjs/IconButton/index.js +0 -0
- package/cjs/Input/index.js +0 -0
- package/cjs/InputGroup/InputGroupButton.js +0 -0
- package/cjs/InputGroup/index.js +0 -0
- package/cjs/InputNumber/index.js +0 -0
- package/cjs/InputPicker/index.js +0 -0
- package/cjs/List/index.js +0 -0
- package/cjs/Loader/index.js +0 -0
- package/cjs/Menu/MenuContext.js +0 -0
- package/cjs/Menu/index.js +0 -0
- package/cjs/Message/index.js +0 -0
- package/cjs/Modal/ModalBody.js +18 -17
- package/cjs/Modal/ModalFooter.js +0 -0
- package/cjs/Modal/index.js +0 -0
- package/cjs/MultiCascader/index.js +0 -0
- package/cjs/Nav/index.js +0 -0
- package/cjs/Navbar/NavbarBody.js +0 -0
- package/cjs/Navbar/NavbarBrand.js +0 -0
- package/cjs/Navbar/NavbarHeader.js +0 -0
- package/cjs/Notification/index.js +0 -0
- package/cjs/Overlay/index.js +0 -0
- package/cjs/Pagination/index.js +0 -0
- package/cjs/Panel/index.js +0 -0
- package/cjs/PanelGroup/index.js +0 -0
- package/cjs/Picker/DropdownMenu.js +1 -3
- package/cjs/Picker/PickerToggleTrigger.js +11 -10
- package/cjs/Placeholder/Placeholder.js +0 -0
- package/cjs/Placeholder/index.js +0 -0
- package/cjs/Plaintext/index.js +0 -0
- package/cjs/Popover/index.js +0 -0
- package/cjs/Progress/Progress.js +0 -0
- package/cjs/Progress/index.js +0 -0
- package/cjs/Radio/index.js +0 -0
- package/cjs/RadioGroup/index.js +0 -0
- package/cjs/RangeSlider/index.js +0 -0
- package/cjs/Rate/index.js +0 -0
- package/cjs/Ripple/index.js +0 -0
- package/cjs/Row/Row.js +0 -0
- package/cjs/Row/index.js +0 -0
- package/cjs/SafeAnchor/index.js +0 -0
- package/cjs/Schema/Schema.js +0 -0
- package/cjs/Schema/index.js +0 -0
- package/cjs/Sidebar/index.js +0 -0
- package/cjs/Sidenav/SidenavBody.js +0 -0
- package/cjs/Sidenav/SidenavHeader.js +0 -0
- package/cjs/Sidenav/index.js +0 -0
- package/cjs/Slider/index.js +0 -0
- package/cjs/Steps/index.js +0 -0
- package/cjs/Table/index.js +0 -0
- package/cjs/Tag/Tag.js +0 -0
- package/cjs/Tag/index.js +0 -0
- package/cjs/TagGroup/TagGroup.js +0 -0
- package/cjs/TagGroup/index.js +0 -0
- package/cjs/Timeline/index.js +0 -0
- package/cjs/Toggle/index.js +0 -0
- package/cjs/Tooltip/index.js +0 -0
- package/cjs/Tree/index.js +0 -0
- package/cjs/TreePicker/TreePicker.js +1 -3
- package/cjs/TreePicker/index.js +0 -0
- package/cjs/Whisper/Whisper.js +11 -10
- package/cjs/Whisper/index.js +0 -0
- package/cjs/locales/ar_EG.js +0 -0
- package/cjs/locales/da_DK.js +0 -0
- package/cjs/locales/de_DE.js +0 -0
- package/cjs/locales/default.js +0 -0
- package/cjs/locales/en_GB.js +0 -0
- package/cjs/locales/en_US.js +0 -0
- package/cjs/locales/es_AR.js +0 -0
- package/cjs/locales/es_ES.js +0 -0
- package/cjs/locales/fi_FI.js +0 -0
- package/cjs/locales/it_IT.js +0 -0
- package/cjs/locales/ko_KR.js +0 -0
- package/cjs/locales/pt_BR.js +0 -0
- package/cjs/locales/ru_RU.js +0 -0
- package/cjs/locales/sv_SE.js +0 -0
- package/cjs/locales/zh_CN.js +0 -0
- package/cjs/locales/zh_TW.js +0 -0
- package/cjs/utils/clone.js +0 -0
- package/cjs/utils/events.js +0 -0
- package/cjs/utils/getDOMNode.js +0 -0
- package/cjs/utils/getSafeRegExpString.js +0 -0
- package/cjs/utils/guid.js +0 -0
- package/cjs/utils/htmlPropsUtils.js +0 -0
- package/cjs/utils/isOneOf.js +0 -0
- package/cjs/utils/prefix.js +0 -0
- package/cjs/utils/shallowEqual.js +0 -0
- package/cjs/utils/shallowEqualArray.js +0 -0
- package/cjs/utils/statusIcons.js +0 -0
- package/cjs/utils/stringToObject.js +0 -0
- package/cjs/utils/tplTransform.js +0 -0
- package/cjs/utils/useClassNames.js +0 -0
- package/cjs/utils/useEnsuredRef.js +0 -0
- package/cjs/utils/useEventCallback.js +0 -0
- package/cjs/utils/useToggleCaret.js +0 -0
- package/cjs/utils/useUpdateEffect.js +0 -0
- package/cjs/utils/useUpdatedRef.js +0 -0
- package/cjs/utils/useWillUnmount.js +0 -0
- package/dist/rsuite-rtl.css +0 -67
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +0 -67
- package/dist/rsuite.js +178 -178
- package/dist/rsuite.min.css +1 -1
- package/dist/rsuite.min.css.map +1 -1
- package/dist/rsuite.min.js +1 -1
- package/dist/rsuite.min.js.map +1 -1
- package/esm/@types/global.d.ts +0 -0
- package/esm/Affix/index.js +0 -0
- package/esm/Animation/Bounce.js +0 -0
- package/esm/Animation/Fade.js +0 -0
- package/esm/Animation/Slide.js +0 -0
- package/esm/Animation/index.js +0 -0
- package/esm/Animation/utils.js +0 -0
- package/esm/AutoComplete/index.js +0 -0
- package/esm/Avatar/index.js +0 -0
- package/esm/Badge/index.js +0 -0
- package/esm/Breadcrumb/index.js +0 -0
- package/esm/Button/index.js +0 -0
- package/esm/ButtonToolbar/ButtonToolbar.js +0 -0
- package/esm/ButtonToolbar/index.js +0 -0
- package/esm/Carousel/index.js +0 -0
- package/esm/Cascader/index.js +0 -0
- package/esm/CheckPicker/index.js +0 -0
- package/esm/CheckTreePicker/CheckTreePicker.js +1 -3
- package/esm/CheckTreePicker/index.js +0 -0
- package/esm/Checkbox/index.js +0 -0
- package/esm/CloseButton/CloseButton.js +0 -0
- package/esm/CloseButton/index.js +0 -0
- package/esm/Col/index.js +0 -0
- package/esm/Container/index.js +0 -0
- package/esm/Content/Content.js +0 -0
- package/esm/Content/index.js +0 -0
- package/esm/CustomProvider/CustomProvider.d.ts +1 -108
- package/esm/CustomProvider/CustomProvider.js +2 -4
- package/esm/CustomProvider/FormattedDate.js +0 -0
- package/esm/CustomProvider/index.d.ts +2 -2
- package/esm/CustomProvider/index.js +2 -2
- package/esm/DatePicker/index.js +0 -0
- package/esm/DateRangePicker/DateRangePicker.js +5 -5
- package/esm/DateRangePicker/disabledDateUtils.js +0 -0
- package/esm/Disclosure/index.js +0 -0
- package/esm/Divider/index.js +0 -0
- package/esm/Drawer/index.js +0 -0
- package/esm/Dropdown/DropdownState.js +0 -0
- package/esm/Dropdown/index.js +0 -0
- package/esm/FlexboxGrid/index.js +0 -0
- package/esm/Footer/Footer.js +0 -0
- package/esm/Footer/index.js +0 -0
- package/esm/FormControl/index.js +0 -0
- package/esm/FormControlLabel/FormControlLabel.js +0 -0
- package/esm/FormControlLabel/index.js +0 -0
- package/esm/FormErrorMessage/FormErrorMessage.js +0 -0
- package/esm/FormErrorMessage/index.js +0 -0
- package/esm/FormGroup/index.js +0 -0
- package/esm/FormHelpText/index.js +0 -0
- package/esm/Grid/Grid.js +0 -0
- package/esm/Grid/index.js +0 -0
- package/esm/Header/Header.js +0 -0
- package/esm/Header/index.js +0 -0
- package/esm/IconButton/index.js +0 -0
- package/esm/Input/index.js +0 -0
- package/esm/InputGroup/InputGroupButton.js +0 -0
- package/esm/InputGroup/index.js +0 -0
- package/esm/InputNumber/index.js +0 -0
- package/esm/InputPicker/index.js +0 -0
- package/esm/List/index.js +0 -0
- package/esm/Loader/index.js +0 -0
- package/esm/Menu/MenuContext.js +0 -0
- package/esm/Menu/index.js +0 -0
- package/esm/Message/index.js +0 -0
- package/esm/Modal/ModalBody.js +16 -17
- package/esm/Modal/ModalFooter.js +0 -0
- package/esm/Modal/index.js +0 -0
- package/esm/MultiCascader/index.js +0 -0
- package/esm/Nav/index.js +0 -0
- package/esm/Navbar/NavbarBody.js +0 -0
- package/esm/Navbar/NavbarBrand.js +0 -0
- package/esm/Navbar/NavbarHeader.js +0 -0
- package/esm/Notification/index.js +0 -0
- package/esm/Overlay/index.js +0 -0
- package/esm/Pagination/index.js +0 -0
- package/esm/Panel/index.js +0 -0
- package/esm/PanelGroup/index.js +0 -0
- package/esm/Picker/DropdownMenu.js +1 -3
- package/esm/Picker/PickerToggleTrigger.js +10 -11
- package/esm/Placeholder/Placeholder.js +0 -0
- package/esm/Placeholder/index.js +0 -0
- package/esm/Plaintext/index.js +0 -0
- package/esm/Popover/index.js +0 -0
- package/esm/Progress/Progress.js +0 -0
- package/esm/Progress/index.js +0 -0
- package/esm/Radio/index.js +0 -0
- package/esm/RadioGroup/index.js +0 -0
- package/esm/RangeSlider/index.js +0 -0
- package/esm/Rate/index.js +0 -0
- package/esm/Ripple/index.js +0 -0
- package/esm/Row/Row.js +0 -0
- package/esm/Row/index.js +0 -0
- package/esm/SafeAnchor/index.js +0 -0
- package/esm/Schema/Schema.js +0 -0
- package/esm/Schema/index.js +0 -0
- package/esm/Sidebar/index.js +0 -0
- package/esm/Sidenav/SidenavBody.js +0 -0
- package/esm/Sidenav/SidenavHeader.js +0 -0
- package/esm/Sidenav/index.js +0 -0
- package/esm/Slider/index.js +0 -0
- package/esm/Steps/index.js +0 -0
- package/esm/Table/index.js +0 -0
- package/esm/Tag/Tag.js +0 -0
- package/esm/Tag/index.js +0 -0
- package/esm/TagGroup/TagGroup.js +0 -0
- package/esm/TagGroup/index.js +0 -0
- package/esm/Timeline/index.js +0 -0
- package/esm/Toggle/index.js +0 -0
- package/esm/Tooltip/index.js +0 -0
- package/esm/Tree/index.js +0 -0
- package/esm/TreePicker/TreePicker.js +1 -3
- package/esm/TreePicker/index.js +0 -0
- package/esm/Whisper/Whisper.js +10 -11
- package/esm/Whisper/index.js +0 -0
- package/esm/locales/ar_EG.js +0 -0
- package/esm/locales/da_DK.js +0 -0
- package/esm/locales/de_DE.js +0 -0
- package/esm/locales/default.js +0 -0
- package/esm/locales/en_GB.js +0 -0
- package/esm/locales/en_US.js +0 -0
- package/esm/locales/es_AR.js +0 -0
- package/esm/locales/es_ES.js +0 -0
- package/esm/locales/fi_FI.js +0 -0
- package/esm/locales/it_IT.js +0 -0
- package/esm/locales/ko_KR.js +0 -0
- package/esm/locales/pt_BR.js +0 -0
- package/esm/locales/ru_RU.js +0 -0
- package/esm/locales/sv_SE.js +0 -0
- package/esm/locales/zh_CN.js +0 -0
- package/esm/locales/zh_TW.js +0 -0
- package/esm/utils/clone.js +0 -0
- package/esm/utils/events.js +0 -0
- package/esm/utils/getDOMNode.js +0 -0
- package/esm/utils/getSafeRegExpString.js +0 -0
- package/esm/utils/guid.js +0 -0
- package/esm/utils/htmlPropsUtils.js +0 -0
- package/esm/utils/isOneOf.js +0 -0
- package/esm/utils/prefix.js +0 -0
- package/esm/utils/shallowEqual.js +0 -0
- package/esm/utils/shallowEqualArray.js +0 -0
- package/esm/utils/statusIcons.js +0 -0
- package/esm/utils/stringToObject.js +0 -0
- package/esm/utils/tplTransform.js +0 -0
- package/esm/utils/useClassNames.js +0 -0
- package/esm/utils/useEnsuredRef.js +0 -0
- package/esm/utils/useEventCallback.js +0 -0
- package/esm/utils/useToggleCaret.js +0 -0
- package/esm/utils/useUpdateEffect.js +0 -0
- package/esm/utils/useUpdatedRef.js +0 -0
- package/esm/utils/useWillUnmount.js +0 -0
- package/package.json +1 -1
- package/styles/color-modes.less +0 -0
- package/styles/colors/light.less +0 -0
- package/styles/common.less +0 -0
- package/styles/mixins/color-modes.less +0 -0
- package/styles/mixins/hacks.less +0 -0
- package/styles/mixins/listbox.less +0 -5
- package/styles/mixins/menu.less +0 -0
- package/styles/normalize.less +0 -0
- package/styles/scaffolding.less +0 -0
- package/styles/typography.less +0 -0
- package/toaster/styles/animation.less +0 -0
- package/toaster/styles/index.less +0 -0
package/esm/@types/global.d.ts
CHANGED
|
File without changes
|
package/esm/Affix/index.js
CHANGED
|
File without changes
|
package/esm/Animation/Bounce.js
CHANGED
|
File without changes
|
package/esm/Animation/Fade.js
CHANGED
|
File without changes
|
package/esm/Animation/Slide.js
CHANGED
|
File without changes
|
package/esm/Animation/index.js
CHANGED
|
File without changes
|
package/esm/Animation/utils.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/Avatar/index.js
CHANGED
|
File without changes
|
package/esm/Badge/index.js
CHANGED
|
File without changes
|
package/esm/Breadcrumb/index.js
CHANGED
|
File without changes
|
package/esm/Button/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/esm/Carousel/index.js
CHANGED
|
File without changes
|
package/esm/Cascader/index.js
CHANGED
|
File without changes
|
package/esm/CheckPicker/index.js
CHANGED
|
File without changes
|
|
@@ -671,11 +671,9 @@ var CheckTreePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
671
671
|
height: 'auto'
|
|
672
672
|
}
|
|
673
673
|
}, function (_ref5) {
|
|
674
|
-
var height = _ref5.height
|
|
675
|
-
width = _ref5.width;
|
|
674
|
+
var height = _ref5.height;
|
|
676
675
|
return /*#__PURE__*/React.createElement(List, _extends({
|
|
677
676
|
ref: listRef,
|
|
678
|
-
width: width,
|
|
679
677
|
height: height,
|
|
680
678
|
itemSize: itemSize,
|
|
681
679
|
itemCount: formattedNodes.length,
|
|
File without changes
|
package/esm/Checkbox/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/CloseButton/index.js
CHANGED
|
File without changes
|
package/esm/Col/index.js
CHANGED
|
File without changes
|
package/esm/Container/index.js
CHANGED
|
File without changes
|
package/esm/Content/Content.js
CHANGED
|
File without changes
|
package/esm/Content/index.js
CHANGED
|
File without changes
|
|
@@ -156,113 +156,6 @@ declare const CustomContext: React.Context<CustomProviderProps<{
|
|
|
156
156
|
off: string;
|
|
157
157
|
} | undefined;
|
|
158
158
|
}>>;
|
|
159
|
-
declare const Consumer: React.Consumer<CustomProviderProps<{
|
|
160
|
-
common?: {
|
|
161
|
-
loading: string;
|
|
162
|
-
emptyMessage: string;
|
|
163
|
-
} | undefined;
|
|
164
|
-
Plaintext?: {
|
|
165
|
-
unfilled: string;
|
|
166
|
-
notSelected: string;
|
|
167
|
-
notUploaded: string;
|
|
168
|
-
} | undefined;
|
|
169
|
-
Pagination?: {
|
|
170
|
-
more: string;
|
|
171
|
-
prev: string;
|
|
172
|
-
next: string;
|
|
173
|
-
first: string;
|
|
174
|
-
last: string;
|
|
175
|
-
limit: string;
|
|
176
|
-
total: string;
|
|
177
|
-
skip: string;
|
|
178
|
-
} | undefined;
|
|
179
|
-
Calendar?: {
|
|
180
|
-
sunday: string;
|
|
181
|
-
monday: string;
|
|
182
|
-
tuesday: string;
|
|
183
|
-
wednesday: string;
|
|
184
|
-
thursday: string;
|
|
185
|
-
friday: string;
|
|
186
|
-
saturday: string;
|
|
187
|
-
ok: string;
|
|
188
|
-
today: string;
|
|
189
|
-
yesterday: string;
|
|
190
|
-
hours: string;
|
|
191
|
-
minutes: string;
|
|
192
|
-
seconds: string;
|
|
193
|
-
formattedMonthPattern: string;
|
|
194
|
-
formattedDayPattern: string;
|
|
195
|
-
dateLocale: any;
|
|
196
|
-
} | undefined;
|
|
197
|
-
DatePicker?: {
|
|
198
|
-
sunday: string;
|
|
199
|
-
monday: string;
|
|
200
|
-
tuesday: string;
|
|
201
|
-
wednesday: string;
|
|
202
|
-
thursday: string;
|
|
203
|
-
friday: string;
|
|
204
|
-
saturday: string;
|
|
205
|
-
ok: string;
|
|
206
|
-
today: string;
|
|
207
|
-
yesterday: string;
|
|
208
|
-
hours: string;
|
|
209
|
-
minutes: string;
|
|
210
|
-
seconds: string;
|
|
211
|
-
formattedMonthPattern: string;
|
|
212
|
-
formattedDayPattern: string;
|
|
213
|
-
dateLocale: any;
|
|
214
|
-
} | undefined;
|
|
215
|
-
DateRangePicker?: {
|
|
216
|
-
last7Days: string;
|
|
217
|
-
sunday: string;
|
|
218
|
-
monday: string;
|
|
219
|
-
tuesday: string;
|
|
220
|
-
wednesday: string;
|
|
221
|
-
thursday: string;
|
|
222
|
-
friday: string;
|
|
223
|
-
saturday: string;
|
|
224
|
-
ok: string;
|
|
225
|
-
today: string;
|
|
226
|
-
yesterday: string;
|
|
227
|
-
hours: string;
|
|
228
|
-
minutes: string;
|
|
229
|
-
seconds: string;
|
|
230
|
-
formattedMonthPattern: string;
|
|
231
|
-
formattedDayPattern: string;
|
|
232
|
-
dateLocale: any;
|
|
233
|
-
} | undefined;
|
|
234
|
-
Picker?: {
|
|
235
|
-
noResultsText: string;
|
|
236
|
-
placeholder: string;
|
|
237
|
-
searchPlaceholder: string;
|
|
238
|
-
checkAll: string;
|
|
239
|
-
} | undefined;
|
|
240
|
-
InputPicker?: {
|
|
241
|
-
newItem: string;
|
|
242
|
-
/**
|
|
243
|
-
* A Map of toast containers
|
|
244
|
-
*/
|
|
245
|
-
createOption: string;
|
|
246
|
-
} | undefined;
|
|
247
|
-
Uploader?: {
|
|
248
|
-
inited: string;
|
|
249
|
-
progress: string;
|
|
250
|
-
error: string;
|
|
251
|
-
complete: string;
|
|
252
|
-
emptyFile: string;
|
|
253
|
-
upload: string;
|
|
254
|
-
} | undefined;
|
|
255
|
-
CloseButton?: {
|
|
256
|
-
closeLabel: string;
|
|
257
|
-
} | undefined;
|
|
258
|
-
Breadcrumb?: {
|
|
259
|
-
expandText: string;
|
|
260
|
-
} | undefined;
|
|
261
|
-
Toggle?: {
|
|
262
|
-
on: string;
|
|
263
|
-
off: string;
|
|
264
|
-
} | undefined;
|
|
265
|
-
}>>;
|
|
266
159
|
declare const CustomProvider: (props: Omit<CustomProviderProps, 'toasters'>) => JSX.Element;
|
|
267
|
-
export { CustomContext
|
|
160
|
+
export { CustomContext };
|
|
268
161
|
export default CustomProvider;
|
|
@@ -6,8 +6,6 @@ import { addClass, removeClass, canUseDOM } from '../DOMHelper';
|
|
|
6
6
|
import ToastContainer, { toastPlacements } from '../toaster/ToastContainer';
|
|
7
7
|
import { usePortal } from '../utils';
|
|
8
8
|
var CustomContext = /*#__PURE__*/React.createContext({});
|
|
9
|
-
var Consumer = CustomContext.Consumer,
|
|
10
|
-
Provider = CustomContext.Provider;
|
|
11
9
|
var themes = ['light', 'dark', 'high-contrast'];
|
|
12
10
|
|
|
13
11
|
var CustomProvider = function CustomProvider(props) {
|
|
@@ -44,7 +42,7 @@ var CustomProvider = function CustomProvider(props) {
|
|
|
44
42
|
});
|
|
45
43
|
}
|
|
46
44
|
}, [classPrefix, theme]);
|
|
47
|
-
return /*#__PURE__*/React.createElement(Provider, {
|
|
45
|
+
return /*#__PURE__*/React.createElement(CustomContext.Provider, {
|
|
48
46
|
value: value
|
|
49
47
|
}, children, /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement("div", {
|
|
50
48
|
className: "rs-toast-provider"
|
|
@@ -59,5 +57,5 @@ var CustomProvider = function CustomProvider(props) {
|
|
|
59
57
|
}))));
|
|
60
58
|
};
|
|
61
59
|
|
|
62
|
-
export { CustomContext
|
|
60
|
+
export { CustomContext };
|
|
63
61
|
export default CustomProvider;
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import CustomProvider, { CustomContext
|
|
1
|
+
import CustomProvider, { CustomContext } from './CustomProvider';
|
|
2
2
|
import FormattedDate from './FormattedDate';
|
|
3
|
-
export { CustomContext,
|
|
3
|
+
export { CustomContext, FormattedDate };
|
|
4
4
|
export type { CustomProviderProps } from './CustomProvider';
|
|
5
5
|
export default CustomProvider;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import CustomProvider, { CustomContext
|
|
1
|
+
import CustomProvider, { CustomContext } from './CustomProvider';
|
|
2
2
|
import FormattedDate from './FormattedDate';
|
|
3
|
-
export { CustomContext,
|
|
3
|
+
export { CustomContext, FormattedDate };
|
|
4
4
|
export default CustomProvider;
|
package/esm/DatePicker/index.js
CHANGED
|
File without changes
|
|
@@ -138,17 +138,17 @@ var DateRangePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
138
138
|
* If params `value` is not passed, it defaults to [new Date(), addMonth(new Date(), 1)].
|
|
139
139
|
*/
|
|
140
140
|
|
|
141
|
-
var updateCalendarDateRange = useCallback(function (
|
|
142
|
-
var nextValue =
|
|
141
|
+
var updateCalendarDateRange = useCallback(function (selectedDate, calendarKey) {
|
|
142
|
+
var nextValue = selectedDate;
|
|
143
143
|
var shouldRenderTime = DateUtils.shouldRenderTime,
|
|
144
144
|
getHours = DateUtils.getHours,
|
|
145
145
|
getMinutes = DateUtils.getMinutes,
|
|
146
146
|
getSeconds = DateUtils.getSeconds,
|
|
147
147
|
set = DateUtils.set;
|
|
148
148
|
|
|
149
|
-
if (shouldRenderTime(formatStr) && calendarKey === undefined && (
|
|
150
|
-
var calendarEndDate = (calendarDate === null || calendarDate === void 0 ? void 0 : calendarDate[1]) || defaultCalendarValue[1];
|
|
151
|
-
var _startDate =
|
|
149
|
+
if (shouldRenderTime(formatStr) && calendarKey === undefined && (selectedDate === null || selectedDate === void 0 ? void 0 : selectedDate.length) === 1) {
|
|
150
|
+
var calendarEndDate = (calendarDate === null || calendarDate === void 0 ? void 0 : calendarDate[1]) || (defaultCalendarValue === null || defaultCalendarValue === void 0 ? void 0 : defaultCalendarValue[1]);
|
|
151
|
+
var _startDate = selectedDate[0]; // When updating the start date, the time of the end date should keep the time set by the user by default.
|
|
152
152
|
|
|
153
153
|
var _endDate = set(addMonths(_startDate, 1), {
|
|
154
154
|
hours: getHours(calendarEndDate),
|
|
File without changes
|
package/esm/Disclosure/index.js
CHANGED
|
File without changes
|
package/esm/Divider/index.js
CHANGED
|
File without changes
|
package/esm/Drawer/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/Dropdown/index.js
CHANGED
|
File without changes
|
package/esm/FlexboxGrid/index.js
CHANGED
|
File without changes
|
package/esm/Footer/Footer.js
CHANGED
|
File without changes
|
package/esm/Footer/index.js
CHANGED
|
File without changes
|
package/esm/FormControl/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/esm/FormGroup/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/Grid/Grid.js
CHANGED
|
File without changes
|
package/esm/Grid/index.js
CHANGED
|
File without changes
|
package/esm/Header/Header.js
CHANGED
|
File without changes
|
package/esm/Header/index.js
CHANGED
|
File without changes
|
package/esm/IconButton/index.js
CHANGED
|
File without changes
|
package/esm/Input/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/InputGroup/index.js
CHANGED
|
File without changes
|
package/esm/InputNumber/index.js
CHANGED
|
File without changes
|
package/esm/InputPicker/index.js
CHANGED
|
File without changes
|
package/esm/List/index.js
CHANGED
|
File without changes
|
package/esm/Loader/index.js
CHANGED
|
File without changes
|
package/esm/Menu/MenuContext.js
CHANGED
|
File without changes
|
package/esm/Menu/index.js
CHANGED
|
File without changes
|
package/esm/Message/index.js
CHANGED
|
File without changes
|
package/esm/Modal/ModalBody.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import React, { useContext } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { useClassNames } from '../utils';
|
|
6
6
|
import { ModalContext } from './ModalContext';
|
|
7
7
|
import IconButton from '../IconButton';
|
|
8
8
|
import Close from '@rsuite/icons/Close';
|
|
9
9
|
var ModalBody = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
10
|
+
var _context$getBodyStyle;
|
|
11
|
+
|
|
10
12
|
var _props$as = props.as,
|
|
11
13
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
|
12
14
|
_props$classPrefix = props.classPrefix,
|
|
@@ -22,22 +24,19 @@ var ModalBody = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
22
24
|
prefix = _useClassNames.prefix;
|
|
23
25
|
|
|
24
26
|
var classes = merge(className, withClassPrefix());
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
onClick: context === null || context === void 0 ? void 0 : context.onModalClose
|
|
39
|
-
}), children);
|
|
40
|
-
});
|
|
27
|
+
var context = useContext(ModalContext);
|
|
28
|
+
var bodyStyles = context === null || context === void 0 ? void 0 : (_context$getBodyStyle = context.getBodyStyles) === null || _context$getBodyStyle === void 0 ? void 0 : _context$getBodyStyle.call(context);
|
|
29
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
30
|
+
ref: ref,
|
|
31
|
+
style: _extends({}, bodyStyles, style),
|
|
32
|
+
className: classes
|
|
33
|
+
}), (context === null || context === void 0 ? void 0 : context.isDrawer) && /*#__PURE__*/React.createElement(IconButton, {
|
|
34
|
+
icon: /*#__PURE__*/React.createElement(Close, null),
|
|
35
|
+
appearance: "subtle",
|
|
36
|
+
size: "sm",
|
|
37
|
+
className: prefix('close'),
|
|
38
|
+
onClick: context === null || context === void 0 ? void 0 : context.onModalClose
|
|
39
|
+
}), children);
|
|
41
40
|
});
|
|
42
41
|
ModalBody.displayName = 'ModalBody';
|
|
43
42
|
ModalBody.propTypes = {
|
package/esm/Modal/ModalFooter.js
CHANGED
|
File without changes
|
package/esm/Modal/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/Nav/index.js
CHANGED
|
File without changes
|
package/esm/Navbar/NavbarBody.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/esm/Overlay/index.js
CHANGED
|
File without changes
|
package/esm/Pagination/index.js
CHANGED
|
File without changes
|
package/esm/Panel/index.js
CHANGED
|
File without changes
|
package/esm/PanelGroup/index.js
CHANGED
|
File without changes
|
|
@@ -210,12 +210,10 @@ var DropdownMenu = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
210
210
|
height: 'auto'
|
|
211
211
|
}
|
|
212
212
|
}, function (_ref2) {
|
|
213
|
-
var height = _ref2.height
|
|
214
|
-
width = _ref2.width;
|
|
213
|
+
var height = _ref2.height;
|
|
215
214
|
return /*#__PURE__*/React.createElement(List, _extends({
|
|
216
215
|
as: VariableSizeList,
|
|
217
216
|
ref: mergeRefs(listRef, virtualizedListRef),
|
|
218
|
-
width: width,
|
|
219
217
|
height: height || maxHeight,
|
|
220
218
|
itemCount: rowCount,
|
|
221
219
|
itemData: filteredItems,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import React, { useContext } from 'react';
|
|
4
4
|
import pick from 'lodash/pick';
|
|
5
5
|
import OverlayTrigger from '../Overlay/OverlayTrigger';
|
|
6
6
|
import { placementPolyfill } from '../utils';
|
|
7
|
-
import {
|
|
7
|
+
import { CustomContext } from '../CustomProvider';
|
|
8
8
|
export var omitTriggerPropKeys = ['onEntered', 'onExited', 'onEnter', 'onEntering', 'onExit', 'onExiting', 'open', 'defaultOpen', 'onHide', 'container', 'containerPadding', 'preventOverflow'];
|
|
9
9
|
export var pickTriggerPropKeys = [].concat(omitTriggerPropKeys, ['disabled', 'plaintext', 'readOnly', 'loading']);
|
|
10
10
|
var PickerToggleTrigger = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -16,15 +16,14 @@ var PickerToggleTrigger = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
16
16
|
rest = _objectWithoutPropertiesLoose(props, ["pickerProps", "speaker", "placement", "trigger"]);
|
|
17
17
|
|
|
18
18
|
var pickerTriggerProps = pick(pickerProps, pickTriggerPropKeys);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
});
|
|
19
|
+
var context = useContext(CustomContext);
|
|
20
|
+
return /*#__PURE__*/React.createElement(OverlayTrigger, _extends({}, rest, pickerTriggerProps, {
|
|
21
|
+
disabled: pickerTriggerProps.disabled || pickerTriggerProps.loading,
|
|
22
|
+
ref: ref,
|
|
23
|
+
trigger: trigger,
|
|
24
|
+
placement: placementPolyfill(placement, context === null || context === void 0 ? void 0 : context.rtl),
|
|
25
|
+
speaker: speaker
|
|
26
|
+
}));
|
|
28
27
|
});
|
|
29
28
|
PickerToggleTrigger.displayName = 'PickerToggleTrigger';
|
|
30
29
|
export default PickerToggleTrigger;
|
|
File without changes
|
package/esm/Placeholder/index.js
CHANGED
|
File without changes
|
package/esm/Plaintext/index.js
CHANGED
|
File without changes
|
package/esm/Popover/index.js
CHANGED
|
File without changes
|
package/esm/Progress/Progress.js
CHANGED
|
File without changes
|
package/esm/Progress/index.js
CHANGED
|
File without changes
|
package/esm/Radio/index.js
CHANGED
|
File without changes
|
package/esm/RadioGroup/index.js
CHANGED
|
File without changes
|
package/esm/RangeSlider/index.js
CHANGED
|
File without changes
|
package/esm/Rate/index.js
CHANGED
|
File without changes
|
package/esm/Ripple/index.js
CHANGED
|
File without changes
|
package/esm/Row/Row.js
CHANGED
|
File without changes
|
package/esm/Row/index.js
CHANGED
|
File without changes
|
package/esm/SafeAnchor/index.js
CHANGED
|
File without changes
|
package/esm/Schema/Schema.js
CHANGED
|
File without changes
|
package/esm/Schema/index.js
CHANGED
|
File without changes
|
package/esm/Sidebar/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/esm/Sidenav/index.js
CHANGED
|
File without changes
|
package/esm/Slider/index.js
CHANGED
|
File without changes
|
package/esm/Steps/index.js
CHANGED
|
File without changes
|
package/esm/Table/index.js
CHANGED
|
File without changes
|
package/esm/Tag/Tag.js
CHANGED
|
File without changes
|
package/esm/Tag/index.js
CHANGED
|
File without changes
|
package/esm/TagGroup/TagGroup.js
CHANGED
|
File without changes
|
package/esm/TagGroup/index.js
CHANGED
|
File without changes
|
package/esm/Timeline/index.js
CHANGED
|
File without changes
|
package/esm/Toggle/index.js
CHANGED
|
File without changes
|
package/esm/Tooltip/index.js
CHANGED
|
File without changes
|
package/esm/Tree/index.js
CHANGED
|
File without changes
|
|
@@ -633,11 +633,9 @@ var TreePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
633
633
|
height: 'auto'
|
|
634
634
|
}
|
|
635
635
|
}, function (_ref5) {
|
|
636
|
-
var height = _ref5.height
|
|
637
|
-
width = _ref5.width;
|
|
636
|
+
var height = _ref5.height;
|
|
638
637
|
return /*#__PURE__*/React.createElement(List, _extends({
|
|
639
638
|
ref: listRef,
|
|
640
|
-
width: width,
|
|
641
639
|
height: height,
|
|
642
640
|
itemSize: itemSize,
|
|
643
641
|
itemCount: formattedNodes.length,
|
package/esm/TreePicker/index.js
CHANGED
|
File without changes
|
package/esm/Whisper/Whisper.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import React, { useContext } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import OverlayTrigger from '../Overlay/OverlayTrigger';
|
|
6
6
|
import { createChainedFunction, placementPolyfill, PLACEMENT } from '../utils';
|
|
7
|
-
import {
|
|
7
|
+
import { CustomContext } from '../CustomProvider';
|
|
8
8
|
var Whisper = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
9
9
|
var onOpen = props.onOpen,
|
|
10
10
|
onClose = props.onClose,
|
|
@@ -15,15 +15,14 @@ var Whisper = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
15
15
|
preventOverflow = props.preventOverflow,
|
|
16
16
|
rest = _objectWithoutPropertiesLoose(props, ["onOpen", "onClose", "onEntered", "onExited", "placement", "preventOverflow"]);
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
});
|
|
18
|
+
var context = useContext(CustomContext);
|
|
19
|
+
return /*#__PURE__*/React.createElement(OverlayTrigger, _extends({}, rest, {
|
|
20
|
+
ref: ref,
|
|
21
|
+
preventOverflow: preventOverflow,
|
|
22
|
+
placement: placementPolyfill(placement, context === null || context === void 0 ? void 0 : context.rtl),
|
|
23
|
+
onEntered: createChainedFunction(onOpen, onEntered),
|
|
24
|
+
onExited: createChainedFunction(onClose, onExited)
|
|
25
|
+
}));
|
|
27
26
|
});
|
|
28
27
|
Whisper.displayName = 'Whisper';
|
|
29
28
|
Whisper.propTypes = {
|
package/esm/Whisper/index.js
CHANGED
|
File without changes
|
package/esm/locales/ar_EG.js
CHANGED
|
File without changes
|
package/esm/locales/da_DK.js
CHANGED
|
File without changes
|
package/esm/locales/de_DE.js
CHANGED
|
File without changes
|
package/esm/locales/default.js
CHANGED
|
File without changes
|