rsuite 5.74.0-beta.0 → 5.74.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/Animation/styles/animation.less +0 -0
- package/Animation/styles/mixin.less +0 -0
- package/AutoComplete/styles/index.css +1 -0
- package/Badge/styles/index.css +0 -0
- package/Badge/styles/index.less +0 -0
- package/ButtonGroup/styles/index.css +0 -0
- package/ButtonGroup/styles/index.less +0 -0
- package/CHANGELOG.md +39 -0
- package/Carousel/styles/index.css +0 -0
- package/Carousel/styles/index.less +0 -0
- package/CascadeTree/styles/index.css +1 -0
- package/CascadeTree/styles/index.less +2 -0
- package/Cascader/styles/index.css +2 -0
- package/CheckPicker/styles/index.css +1 -0
- package/CheckTree/styles/index.css +1 -0
- package/CheckTreePicker/styles/index.css +1 -0
- package/Container/styles/index.css +0 -0
- package/Container/styles/index.less +0 -0
- package/Content/styles/index.css +0 -0
- package/Content/styles/index.less +0 -0
- package/DatePicker/styles/index.css +1 -0
- package/DatePicker/styles/mixin.less +0 -0
- package/DateRangePicker/styles/index.css +1 -0
- package/Drawer/styles/mixin.less +0 -0
- package/FlexboxGrid/styles/index.css +0 -0
- package/FlexboxGrid/styles/index.less +0 -0
- package/Footer/styles/index.css +0 -0
- package/Footer/styles/index.less +0 -0
- package/Form/styles/index.css +0 -0
- package/Form/styles/index.less +0 -0
- package/FormControl/styles/index.css +0 -0
- package/FormControl/styles/index.less +0 -0
- package/FormControlLabel/styles/index.css +0 -0
- package/FormControlLabel/styles/index.less +0 -0
- package/FormErrorMessage/styles/animation.less +0 -0
- package/FormErrorMessage/styles/index.css +0 -0
- package/FormErrorMessage/styles/index.less +0 -0
- package/FormHelpText/styles/index.css +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.css +0 -0
- package/Header/styles/index.less +0 -0
- package/IconButton/styles/index.css +0 -0
- package/IconButton/styles/index.less +0 -0
- package/Input/styles/index.css +0 -0
- package/Input/styles/index.less +0 -0
- package/InputNumber/styles/index.css +8 -0
- package/InputNumber/styles/index.less +0 -0
- package/InputNumber/styles/mixin.less +1 -0
- package/InputPicker/styles/index.css +1 -0
- package/List/styles/index.css +0 -0
- package/List/styles/index.less +0 -0
- package/Modal/styles/animation.less +0 -0
- package/Modal/styles/mixin.less +0 -0
- package/MultiCascadeTree/styles/index.css +2 -0
- package/MultiCascader/styles/index.css +2 -0
- package/Notification/styles/mixin.less +0 -0
- package/Pagination/styles/index.css +1 -0
- package/Pagination/styles/mixin.less +0 -0
- package/PanelGroup/styles/index.css +0 -0
- package/PanelGroup/styles/index.less +0 -0
- package/Popover/styles/mixins.less +0 -0
- package/Progress/styles/animation.less +0 -0
- package/Radio/styles/mixin.less +0 -0
- package/Row/styles/index.css +0 -0
- package/Row/styles/index.less +0 -0
- package/SelectPicker/styles/index.css +1 -0
- package/Sidebar/styles/index.css +0 -0
- package/Sidebar/styles/index.less +0 -0
- package/Sidenav/styles/mixin.less +0 -0
- package/Stack/styles/index.css +0 -0
- package/Stack/styles/index.less +0 -0
- package/Table/styles/mixin.less +0 -0
- package/TagInput/styles/index.css +1 -0
- package/TagPicker/styles/index.css +1 -0
- package/TimePicker/styles/index.css +1 -0
- package/TimeRangePicker/styles/index.css +1 -0
- package/Timeline/styles/mixin.less +0 -0
- package/Tooltip/styles/index.css +0 -0
- package/Tooltip/styles/index.less +0 -0
- package/Tooltip/styles/mixins.less +0 -0
- package/Uploader/styles/mixin.less +0 -0
- package/cjs/Affix/index.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/AvatarGroup/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/ButtonGroup/index.js +0 -0
- package/cjs/ButtonToolbar/index.js +0 -0
- package/cjs/Carousel/index.js +0 -0
- package/cjs/CascadeTree/TreeView.js +4 -4
- package/cjs/Cascader/index.js +0 -0
- package/cjs/CheckPicker/index.js +0 -0
- package/cjs/CheckTreePicker/index.js +0 -0
- package/cjs/Checkbox/index.js +0 -0
- package/cjs/CheckboxGroup/CheckboxGroupContext.js +0 -0
- package/cjs/CheckboxGroup/index.js +0 -0
- package/cjs/Col/index.js +0 -0
- package/cjs/Container/index.js +0 -0
- package/cjs/Content/index.js +0 -0
- package/cjs/CustomProvider/FormattedDate.d.ts +1 -1
- package/cjs/CustomProvider/FormattedDate.js +1 -0
- package/cjs/CustomProvider/index.d.ts +4 -3
- package/cjs/CustomProvider/index.js +3 -4
- package/cjs/DOMHelper/isElement.js +0 -0
- package/cjs/DatePicker/DatePicker.js +2 -2
- package/cjs/Divider/index.js +0 -0
- package/cjs/Drawer/index.js +0 -0
- package/cjs/Dropdown/DropdownContext.js +0 -0
- package/cjs/Dropdown/DropdownState.js +0 -0
- package/cjs/Dropdown/index.js +0 -0
- package/cjs/Dropdown/useRenderDropdownItem.js +0 -0
- package/cjs/FlexboxGrid/index.js +0 -0
- package/cjs/Footer/index.js +0 -0
- package/cjs/Form/Form.js +1 -1
- package/cjs/FormControl/index.js +0 -0
- package/cjs/FormControlLabel/index.js +0 -0
- package/cjs/FormErrorMessage/index.js +0 -0
- package/cjs/FormHelpText/index.js +0 -0
- package/cjs/Grid/index.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/index.js +0 -0
- package/cjs/InputNumber/InputNumber.js +4 -4
- package/cjs/InputNumber/index.js +0 -0
- package/cjs/List/helper/AutoScroller.js +0 -0
- package/cjs/List/index.js +0 -0
- package/cjs/Loader/index.js +0 -0
- package/cjs/MaskedInput/adjustCaretPosition.js +0 -0
- package/cjs/MaskedInput/conformToMask.js +0 -0
- package/cjs/MaskedInput/index.js +0 -0
- package/cjs/MaskedInput/types.js +0 -0
- package/cjs/MaskedInput/utilities.js +0 -0
- package/cjs/Message/index.js +0 -0
- package/cjs/MultiCascadeTree/TreeView.js +4 -4
- package/cjs/MultiCascader/index.js +0 -0
- package/cjs/Nav/index.js +0 -0
- package/cjs/Navbar/index.js +0 -0
- package/cjs/Notification/index.js +0 -0
- package/cjs/Pagination/index.js +0 -0
- package/cjs/Panel/AccordionButton.js +2 -2
- package/cjs/Panel/index.js +0 -0
- package/cjs/PanelGroup/index.js +0 -0
- package/cjs/Placeholder/index.js +0 -0
- package/cjs/Popover/index.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/Rate.js +1 -1
- package/cjs/Rate/index.js +0 -0
- package/cjs/Rate/utils.js +0 -0
- package/cjs/Row/index.js +0 -0
- package/cjs/SafeAnchor/index.js +0 -0
- package/cjs/Schema/index.js +0 -0
- package/cjs/SelectPicker/index.js +0 -0
- package/cjs/Sidebar/index.js +0 -0
- package/cjs/Sidenav/Node.js +0 -0
- package/cjs/Sidenav/index.js +0 -0
- package/cjs/Slider/Input.js +0 -0
- package/cjs/Slider/index.js +0 -0
- package/cjs/Steps/index.js +0 -0
- package/cjs/Tag/index.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/TreeNodeToggle.js +1 -1
- package/cjs/Tree/index.js +0 -0
- package/cjs/TreePicker/index.js +0 -0
- package/cjs/Uploader/UploadFileItem.js +1 -1
- package/cjs/Uploader/index.js +0 -0
- package/cjs/Whisper/index.js +0 -0
- package/cjs/internals/Picker/PickerIndicator.js +2 -1
- package/cjs/internals/hooks/useToggleCaret.js +8 -8
- package/cjs/useToaster/useToaster.js +4 -1
- package/dist/rsuite-no-reset-rtl.css +10 -0
- package/dist/rsuite-no-reset-rtl.min.css +1 -1
- package/dist/rsuite-no-reset-rtl.min.css.map +1 -1
- package/dist/rsuite-no-reset.css +10 -0
- package/dist/rsuite-no-reset.min.css +1 -1
- package/dist/rsuite-no-reset.min.css.map +1 -1
- package/dist/rsuite-rtl.css +10 -0
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +10 -0
- package/dist/rsuite.js +552 -596
- package/dist/rsuite.js.map +1 -1
- 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/Affix/index.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/AvatarGroup/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/ButtonGroup/index.js +0 -0
- package/esm/ButtonToolbar/index.js +0 -0
- package/esm/Carousel/index.js +0 -0
- package/esm/CascadeTree/TreeView.js +4 -4
- package/esm/Cascader/index.js +0 -0
- package/esm/CheckPicker/index.js +0 -0
- package/esm/CheckTreePicker/index.js +0 -0
- package/esm/Checkbox/index.js +0 -0
- package/esm/CheckboxGroup/CheckboxGroupContext.js +0 -0
- package/esm/CheckboxGroup/index.js +0 -0
- package/esm/Col/index.js +0 -0
- package/esm/Container/index.js +0 -0
- package/esm/Content/index.js +0 -0
- package/esm/CustomProvider/FormattedDate.d.ts +1 -1
- package/esm/CustomProvider/FormattedDate.js +1 -1
- package/esm/CustomProvider/index.d.ts +4 -3
- package/esm/CustomProvider/index.js +3 -3
- package/esm/DOMHelper/isElement.js +0 -0
- package/esm/DatePicker/DatePicker.js +2 -2
- package/esm/Divider/index.js +0 -0
- package/esm/Drawer/index.js +0 -0
- package/esm/Dropdown/DropdownContext.js +0 -0
- package/esm/Dropdown/DropdownState.js +0 -0
- package/esm/Dropdown/index.js +0 -0
- package/esm/Dropdown/useRenderDropdownItem.js +0 -0
- package/esm/FlexboxGrid/index.js +0 -0
- package/esm/Footer/index.js +0 -0
- package/esm/Form/Form.js +1 -1
- package/esm/FormControl/index.js +0 -0
- package/esm/FormControlLabel/index.js +0 -0
- package/esm/FormErrorMessage/index.js +0 -0
- package/esm/FormHelpText/index.js +0 -0
- package/esm/Grid/index.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/index.js +0 -0
- package/esm/InputNumber/InputNumber.js +4 -4
- package/esm/InputNumber/index.js +0 -0
- package/esm/List/helper/AutoScroller.js +0 -0
- package/esm/List/index.js +0 -0
- package/esm/Loader/index.js +0 -0
- package/esm/MaskedInput/adjustCaretPosition.js +0 -0
- package/esm/MaskedInput/conformToMask.js +0 -0
- package/esm/MaskedInput/index.js +0 -0
- package/esm/MaskedInput/types.js +0 -0
- package/esm/MaskedInput/utilities.js +0 -0
- package/esm/Message/index.js +0 -0
- package/esm/MultiCascadeTree/TreeView.js +4 -4
- package/esm/MultiCascader/index.js +0 -0
- package/esm/Nav/index.js +0 -0
- package/esm/Navbar/index.js +0 -0
- package/esm/Notification/index.js +0 -0
- package/esm/Pagination/index.js +0 -0
- package/esm/Panel/AccordionButton.js +2 -2
- package/esm/Panel/index.js +0 -0
- package/esm/PanelGroup/index.js +0 -0
- package/esm/Placeholder/index.js +0 -0
- package/esm/Popover/index.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/Rate.js +1 -1
- package/esm/Rate/index.js +0 -0
- package/esm/Rate/utils.js +0 -0
- package/esm/Row/index.js +0 -0
- package/esm/SafeAnchor/index.js +0 -0
- package/esm/Schema/index.js +0 -0
- package/esm/SelectPicker/index.js +0 -0
- package/esm/Sidebar/index.js +0 -0
- package/esm/Sidenav/Node.js +0 -0
- package/esm/Sidenav/index.js +0 -0
- package/esm/Slider/Input.js +0 -0
- package/esm/Slider/index.js +0 -0
- package/esm/Steps/index.js +0 -0
- package/esm/Tag/index.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/TreeNodeToggle.js +1 -1
- package/esm/Tree/index.js +0 -0
- package/esm/TreePicker/index.js +0 -0
- package/esm/Uploader/UploadFileItem.js +1 -1
- package/esm/Uploader/index.js +0 -0
- package/esm/Whisper/index.js +0 -0
- package/esm/internals/Picker/PickerIndicator.js +2 -1
- package/esm/internals/hooks/useToggleCaret.js +8 -8
- package/esm/useToaster/useToaster.js +3 -1
- package/internals/Picker/styles/index.less +1 -0
- package/package.json +3 -2
- package/styles/mixins/hacks.less +0 -0
- package/styles/mixins/menu.less +0 -0
- package/styles/mixins/utilities.less +0 -0
- package/styles/scaffolding.less +0 -0
- package/styles/typography.less +0 -0
- package/toaster/styles/animation.less +0 -0
package/esm/Affix/index.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/AvatarGroup/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
|
package/esm/ButtonGroup/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/Carousel/index.js
CHANGED
|
File without changes
|
|
@@ -3,13 +3,13 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
3
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
4
|
var _excluded = ["as", "activeItemValue", "classPrefix", "className", "childrenKey", "disabledItemValues", "columnWidth", "columnHeight", "valueKey", "data", "cascadePaths", "loadingItemsSet", "labelKey", "style", "renderColumn", "renderTreeNode", "onSelect"];
|
|
5
5
|
import React, { useEffect, useRef } from 'react';
|
|
6
|
-
import SpinnerIcon from '@rsuite/icons/legacy/Spinner';
|
|
7
6
|
import isUndefined from 'lodash/isUndefined';
|
|
8
7
|
import isNil from 'lodash/isNil';
|
|
9
|
-
import PagePreviousIcon from '@rsuite/icons/PagePrevious';
|
|
10
|
-
import PageNextIcon from '@rsuite/icons/PageNext';
|
|
11
8
|
import getPosition from 'dom-lib/getPosition';
|
|
12
9
|
import scrollTop from 'dom-lib/scrollTop';
|
|
10
|
+
import SpinnerIcon from '@rsuite/icons/Spinner';
|
|
11
|
+
import ArrowLeftLineIcon from '@rsuite/icons/ArrowLeftLine';
|
|
12
|
+
import ArrowRightLineIcon from '@rsuite/icons/ArrowRightLine';
|
|
13
13
|
import { shallowEqual, mergeRefs } from "../internals/utils/index.js";
|
|
14
14
|
import { useClassNames, useEventCallback } from "../internals/hooks/index.js";
|
|
15
15
|
import { ListItem, useCombobox } from "../internals/Picker/index.js";
|
|
@@ -111,7 +111,7 @@ var TreeView = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
111
111
|
|
|
112
112
|
// Use `value` in keys when If `value` is string or number
|
|
113
113
|
var onlyKey = typeof value === 'number' || typeof value === 'string' ? value : index;
|
|
114
|
-
var Icon = loading ? SpinnerIcon : rtl ?
|
|
114
|
+
var Icon = loading ? SpinnerIcon : rtl ? ArrowLeftLineIcon : ArrowRightLineIcon;
|
|
115
115
|
return /*#__PURE__*/React.createElement(ListItem, {
|
|
116
116
|
as: 'li',
|
|
117
117
|
role: "treeitem",
|
package/esm/Cascader/index.js
CHANGED
|
File without changes
|
package/esm/CheckPicker/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/Checkbox/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/esm/Col/index.js
CHANGED
|
File without changes
|
package/esm/Container/index.js
CHANGED
|
File without changes
|
package/esm/Content/index.js
CHANGED
|
File without changes
|
|
@@ -3,5 +3,5 @@ interface FormattedDateProps {
|
|
|
3
3
|
date: Date;
|
|
4
4
|
formatStr: string;
|
|
5
5
|
}
|
|
6
|
-
declare function FormattedDate({ date, formatStr }: FormattedDateProps): React.JSX.Element;
|
|
6
|
+
export declare function FormattedDate({ date, formatStr }: FormattedDateProps): React.JSX.Element;
|
|
7
7
|
export default FormattedDate;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import CustomProvider
|
|
2
|
-
|
|
3
|
-
export { CustomContext, FormattedDate };
|
|
1
|
+
import CustomProvider from './CustomProvider';
|
|
2
|
+
export { FormattedDate } from './FormattedDate';
|
|
4
3
|
export { useCustom } from './useCustom';
|
|
4
|
+
export { CustomContext } from './CustomProvider';
|
|
5
5
|
export type { CustomProviderProps } from './CustomProvider';
|
|
6
|
+
export type { ReactSuiteComponents } from './types';
|
|
6
7
|
export default CustomProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import CustomProvider
|
|
3
|
-
|
|
4
|
-
export { CustomContext, FormattedDate };
|
|
2
|
+
import CustomProvider from "./CustomProvider.js";
|
|
3
|
+
export { FormattedDate } from "./FormattedDate.js";
|
|
5
4
|
export { useCustom } from "./useCustom.js";
|
|
5
|
+
export { CustomContext } from "./CustomProvider.js";
|
|
6
6
|
export default CustomProvider;
|
|
File without changes
|
|
@@ -8,7 +8,7 @@ import React, { useMemo } from 'react';
|
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import mapValues from 'lodash/mapValues';
|
|
10
10
|
import pick from 'lodash/pick';
|
|
11
|
-
import
|
|
11
|
+
import CalenderSimpleIcon from '@rsuite/icons/CalenderSimple';
|
|
12
12
|
import TimeIcon from '@rsuite/icons/Time';
|
|
13
13
|
import CalendarContainer from "../Calendar/CalendarContainer.js";
|
|
14
14
|
import { useCalendarDate } from "../Calendar/hooks/index.js";
|
|
@@ -442,7 +442,7 @@ var DatePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
442
442
|
if (caretAsProp === null) {
|
|
443
443
|
return null;
|
|
444
444
|
}
|
|
445
|
-
return caretAsProp || (mode === DateMode.Time ? TimeIcon :
|
|
445
|
+
return caretAsProp || (mode === DateMode.Time ? TimeIcon : CalenderSimpleIcon);
|
|
446
446
|
}, [caretAsProp, mode]);
|
|
447
447
|
var handleTriggerClose = useEventCallback(function (cause) {
|
|
448
448
|
var _props$onClose;
|
package/esm/Divider/index.js
CHANGED
|
File without changes
|
package/esm/Drawer/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/esm/Dropdown/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/FlexboxGrid/index.js
CHANGED
|
File without changes
|
package/esm/Footer/index.js
CHANGED
|
File without changes
|
package/esm/Form/Form.js
CHANGED
|
@@ -115,7 +115,7 @@ var Form = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
115
115
|
if (disabled || readOnly || plaintext) {
|
|
116
116
|
return;
|
|
117
117
|
}
|
|
118
|
-
submit();
|
|
118
|
+
submit(event);
|
|
119
119
|
});
|
|
120
120
|
var handleReset = useEventCallback(function (event) {
|
|
121
121
|
var _event$preventDefault2, _event$stopPropagatio2;
|
package/esm/FormControl/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/esm/Grid/index.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
|
package/esm/InputGroup/index.js
CHANGED
|
File without changes
|
|
@@ -5,9 +5,9 @@ var _excluded = ["as", "className", "classPrefix", "disabled", "decimalSeparator
|
|
|
5
5
|
import React, { useEffect, useRef, useState, useMemo, useCallback } from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import isNil from 'lodash/isNil';
|
|
8
|
-
import AngleUpIcon from '@rsuite/icons/legacy/AngleUp';
|
|
9
|
-
import AngleDownIcon from '@rsuite/icons/legacy/AngleDown';
|
|
10
8
|
import on from 'dom-lib/on';
|
|
9
|
+
import ArrowUpLineIcon from '@rsuite/icons/ArrowUpLine';
|
|
10
|
+
import ArrowDownLineIcon from '@rsuite/icons/ArrowDownLine';
|
|
11
11
|
import InputGroup from "../InputGroup/InputGroup.js";
|
|
12
12
|
import InputGroupAddon from "../InputGroup/InputGroupAddon.js";
|
|
13
13
|
import Input from "../Input/index.js";
|
|
@@ -290,14 +290,14 @@ var InputNumber = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
290
290
|
onClick: handleStepUp,
|
|
291
291
|
disabled: stepUpDisabled,
|
|
292
292
|
"aria-label": "Increment"
|
|
293
|
-
}, /*#__PURE__*/React.createElement(
|
|
293
|
+
}, /*#__PURE__*/React.createElement(ArrowUpLineIcon, null)), /*#__PURE__*/React.createElement(Button, {
|
|
294
294
|
tabIndex: -1,
|
|
295
295
|
appearance: buttonAppearance,
|
|
296
296
|
className: prefix('touchspin-down'),
|
|
297
297
|
onClick: handleStepDown,
|
|
298
298
|
disabled: stepDownDisabled,
|
|
299
299
|
"aria-label": "Decrement"
|
|
300
|
-
}, /*#__PURE__*/React.createElement(
|
|
300
|
+
}, /*#__PURE__*/React.createElement(ArrowDownLineIcon, null))), postfix && /*#__PURE__*/React.createElement(InputGroupAddon, null, postfix));
|
|
301
301
|
});
|
|
302
302
|
InputNumber.displayName = 'InputNumber';
|
|
303
303
|
InputNumber.propTypes = {
|
package/esm/InputNumber/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/List/index.js
CHANGED
|
File without changes
|
package/esm/Loader/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/esm/MaskedInput/index.js
CHANGED
|
File without changes
|
package/esm/MaskedInput/types.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/Message/index.js
CHANGED
|
File without changes
|
|
@@ -3,9 +3,9 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
3
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
4
|
var _excluded = ["as", "classPrefix", "className", "cascade", "cascadeData", "cascadePaths", "childrenKey", "disabledItemValues", "columnWidth", "columnHeight", "uncheckableItemValues", "value", "valueKey", "labelKey", "style", "renderTreeNode", "renderColumn", "onCheck", "onSelect"];
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import SpinnerIcon from '@rsuite/icons/
|
|
7
|
-
import
|
|
8
|
-
import
|
|
6
|
+
import SpinnerIcon from '@rsuite/icons/Spinner';
|
|
7
|
+
import ArrowLeftLineIcon from '@rsuite/icons/ArrowLeftLine';
|
|
8
|
+
import ArrowRightLineIcon from '@rsuite/icons/ArrowRightLine';
|
|
9
9
|
import { useClassNames, useEventCallback } from "../internals/hooks/index.js";
|
|
10
10
|
import { shallowEqual } from "../internals/utils/index.js";
|
|
11
11
|
import { ListCheckItem, useCombobox } from "../internals/Picker/index.js";
|
|
@@ -85,7 +85,7 @@ var TreeView = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
85
85
|
|
|
86
86
|
// Use `value` in keys when If `value` is string or number
|
|
87
87
|
var onlyKey = typeof value === 'number' || typeof value === 'string' ? value : index;
|
|
88
|
-
var Icon = node.loading ? SpinnerIcon : rtl ?
|
|
88
|
+
var Icon = node.loading ? SpinnerIcon : rtl ? ArrowLeftLineIcon : ArrowRightLineIcon;
|
|
89
89
|
var active = value.some(function (v) {
|
|
90
90
|
return v === nodeValue;
|
|
91
91
|
});
|
|
File without changes
|
package/esm/Nav/index.js
CHANGED
|
File without changes
|
package/esm/Navbar/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/Pagination/index.js
CHANGED
|
File without changes
|
|
@@ -6,7 +6,7 @@ var _templateObject;
|
|
|
6
6
|
var _excluded = ["classPrefix", "expanded", "id", "className", "controlId", "children", "disabled", "caretAs"];
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import Icon from '@rsuite/icons/Icon';
|
|
9
|
-
import
|
|
9
|
+
import ArrowDownLineIcon from '@rsuite/icons/ArrowDownLine';
|
|
10
10
|
import { useClassNames } from "../internals/hooks/index.js";
|
|
11
11
|
var AccordionButton = function AccordionButton(props) {
|
|
12
12
|
var _props$classPrefix = props.classPrefix,
|
|
@@ -18,7 +18,7 @@ var AccordionButton = function AccordionButton(props) {
|
|
|
18
18
|
children = props.children,
|
|
19
19
|
disabled = props.disabled,
|
|
20
20
|
_props$caretAs = props.caretAs,
|
|
21
|
-
caretAs = _props$caretAs === void 0 ?
|
|
21
|
+
caretAs = _props$caretAs === void 0 ? ArrowDownLineIcon : _props$caretAs,
|
|
22
22
|
rest = _objectWithoutPropertiesLoose(props, _excluded);
|
|
23
23
|
var _useClassNames = useClassNames(classPrefix),
|
|
24
24
|
prefix = _useClassNames.prefix,
|
package/esm/Panel/index.js
CHANGED
|
File without changes
|
package/esm/PanelGroup/index.js
CHANGED
|
File without changes
|
package/esm/Placeholder/index.js
CHANGED
|
File without changes
|
package/esm/Popover/index.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/Rate.js
CHANGED
|
@@ -5,7 +5,7 @@ var _excluded = ["as", "character", "className", "classPrefix", "disabled", "max
|
|
|
5
5
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import isNil from 'lodash/isNil';
|
|
8
|
-
import Star from '@rsuite/icons/
|
|
8
|
+
import Star from '@rsuite/icons/Star';
|
|
9
9
|
import Character from "./Character.js";
|
|
10
10
|
import Plaintext from "../internals/Plaintext/index.js";
|
|
11
11
|
import { oneOf } from "../internals/propTypes/index.js";
|
package/esm/Rate/index.js
CHANGED
|
File without changes
|
package/esm/Rate/utils.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/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/Sidebar/index.js
CHANGED
|
File without changes
|
package/esm/Sidenav/Node.js
CHANGED
|
File without changes
|
package/esm/Sidenav/index.js
CHANGED
|
File without changes
|
package/esm/Slider/Input.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/Tag/index.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
|
|
@@ -6,7 +6,7 @@ import React from 'react';
|
|
|
6
6
|
import ArrowDownIcon from '@rsuite/icons/ArrowDown';
|
|
7
7
|
import ArrowRightIcon from '@rsuite/icons/ArrowRight';
|
|
8
8
|
import ArrowLeftIcon from '@rsuite/icons/ArrowLeft';
|
|
9
|
-
import Spinner from '@rsuite/icons/
|
|
9
|
+
import Spinner from '@rsuite/icons/Spinner';
|
|
10
10
|
import { useClassNames } from "../internals/hooks/index.js";
|
|
11
11
|
import { useTreeCustomRenderer } from "../internals/Tree/TreeProvider.js";
|
|
12
12
|
import { useCustom } from "../CustomProvider/index.js";
|
package/esm/Tree/index.js
CHANGED
|
File without changes
|
package/esm/TreePicker/index.js
CHANGED
|
File without changes
|
|
@@ -4,7 +4,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
4
4
|
var _excluded = ["as", "disabled", "allowReupload", "file", "classPrefix", "listType", "className", "removable", "maxPreviewFileSize", "locale", "renderFileInfo", "renderThumbnail", "onPreview", "onCancel", "onReupload"];
|
|
5
5
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
|
-
import Attachment from '@rsuite/icons/
|
|
7
|
+
import Attachment from '@rsuite/icons/Attachment';
|
|
8
8
|
import Reload from '@rsuite/icons/Reload';
|
|
9
9
|
import CloseButton from "../internals/CloseButton/index.js";
|
|
10
10
|
import { oneOf } from "../internals/propTypes/index.js";
|
package/esm/Uploader/index.js
CHANGED
|
File without changes
|
package/esm/Whisper/index.js
CHANGED
|
File without changes
|
|
@@ -39,7 +39,8 @@ var PickerIndicator = function PickerIndicator(_ref) {
|
|
|
39
39
|
}
|
|
40
40
|
return caretAs && /*#__PURE__*/React.createElement(Icon, {
|
|
41
41
|
as: caretAs,
|
|
42
|
-
className: prefix('caret-icon')
|
|
42
|
+
className: prefix('caret-icon'),
|
|
43
|
+
"data-testid": "caret"
|
|
43
44
|
});
|
|
44
45
|
};
|
|
45
46
|
var props = Component === InputGroup.Addon ? {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
3
|
+
import ArrowUpLineIcon from '@rsuite/icons/ArrowUpLine';
|
|
4
|
+
import ArrowDownLineIcon from '@rsuite/icons/ArrowDownLine';
|
|
5
|
+
import ArrowLeftLineIcon from '@rsuite/icons/ArrowLeftLine';
|
|
6
|
+
import ArrowRightLineIcon from '@rsuite/icons/ArrowRightLine';
|
|
7
7
|
import { useCustom } from "../../CustomProvider/index.js";
|
|
8
8
|
export function useToggleCaret(placement) {
|
|
9
9
|
var _useCustom = useCustom(),
|
|
@@ -11,14 +11,14 @@ export function useToggleCaret(placement) {
|
|
|
11
11
|
return useMemo(function () {
|
|
12
12
|
switch (true) {
|
|
13
13
|
case /^top/.test(placement):
|
|
14
|
-
return
|
|
14
|
+
return ArrowUpLineIcon;
|
|
15
15
|
case /^right/.test(placement):
|
|
16
|
-
return rtl ?
|
|
16
|
+
return rtl ? ArrowLeftLineIcon : ArrowRightLineIcon;
|
|
17
17
|
case /^left/.test(placement):
|
|
18
|
-
return rtl ?
|
|
18
|
+
return rtl ? ArrowRightLineIcon : ArrowLeftLineIcon;
|
|
19
19
|
case /^bottom/.test(placement):
|
|
20
20
|
default:
|
|
21
|
-
return
|
|
21
|
+
return ArrowDownLineIcon;
|
|
22
22
|
}
|
|
23
23
|
}, [placement, rtl]);
|
|
24
24
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { useMemo, useContext } from 'react';
|
|
3
3
|
import toaster from "../toaster/index.js";
|
|
4
|
-
import
|
|
4
|
+
// From CustomProvider/CustomProvider.tsx import CustomContext instead of directly from 'CustomProvider/index.ts'
|
|
5
|
+
// because babel compiles commonjs, which causes CustomContext to be undefined
|
|
6
|
+
import { CustomContext } from "../CustomProvider/CustomProvider.js";
|
|
5
7
|
/**
|
|
6
8
|
* Toaster display brief, temporary notifications of actions, errors, or other events in an application.
|
|
7
9
|
* It is often used with the Message and Notification components.
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rsuite",
|
|
3
|
-
"version": "5.74.
|
|
3
|
+
"version": "5.74.1",
|
|
4
4
|
"description": "A suite of react components",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
7
7
|
"typings": "esm/index.d.ts",
|
|
8
|
+
"homepage": "https://rsuitejs.com",
|
|
8
9
|
"directories": {
|
|
9
10
|
"lib": "cjs/"
|
|
10
11
|
},
|
|
@@ -26,7 +27,7 @@
|
|
|
26
27
|
"dependencies": {
|
|
27
28
|
"@babel/runtime": "^7.20.1",
|
|
28
29
|
"@juggle/resize-observer": "^3.4.0",
|
|
29
|
-
"@rsuite/icons": "^1.
|
|
30
|
+
"@rsuite/icons": "^1.3.0",
|
|
30
31
|
"@types/lodash": "^4.14.184",
|
|
31
32
|
"@types/prop-types": "^15.7.5",
|
|
32
33
|
"@types/react-window": "^1.8.5",
|
package/styles/mixins/hacks.less
CHANGED
|
File without changes
|
package/styles/mixins/menu.less
CHANGED
|
File without changes
|
|
File without changes
|
package/styles/scaffolding.less
CHANGED
|
File without changes
|
package/styles/typography.less
CHANGED
|
File without changes
|
|
File without changes
|