rsuite 5.74.0 → 5.74.2
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/Accordion/styles/index.css +0 -2
- package/Animation/styles/index.css +0 -2
- package/AutoComplete/styles/index.css +0 -2
- package/Avatar/styles/index.css +0 -2
- package/AvatarGroup/styles/index.css +0 -2
- package/Badge/styles/index.css +0 -2
- package/Breadcrumb/styles/index.css +0 -2
- package/Button/styles/index.css +0 -2
- package/ButtonGroup/styles/index.css +0 -2
- package/ButtonToolbar/styles/index.css +0 -2
- package/CHANGELOG.md +21 -0
- package/Calendar/styles/index.css +0 -2
- package/Carousel/styles/index.css +0 -2
- package/CascadeTree/styles/index.css +0 -2
- package/Cascader/styles/index.css +0 -2
- package/CheckPicker/styles/index.css +0 -2
- package/CheckTree/styles/index.css +0 -2
- package/CheckTreePicker/styles/index.css +0 -2
- package/Checkbox/styles/index.css +0 -2
- package/CheckboxGroup/styles/index.css +0 -2
- package/Col/styles/index.css +0 -2
- package/Container/styles/index.css +0 -2
- package/Content/styles/index.css +0 -2
- package/DateInput/styles/index.css +0 -2
- package/DatePicker/styles/index.css +0 -2
- package/DateRangeInput/styles/index.css +0 -2
- package/DateRangePicker/styles/index.css +0 -2
- package/Divider/styles/index.css +0 -2
- package/Drawer/styles/index.css +0 -2
- package/Dropdown/styles/index.css +0 -2
- package/FlexboxGrid/styles/index.css +0 -2
- package/Footer/styles/index.css +0 -2
- package/Form/styles/index.css +0 -2
- package/FormControl/styles/index.css +0 -2
- package/FormControlLabel/styles/index.css +0 -2
- package/FormErrorMessage/styles/index.css +0 -2
- package/FormGroup/styles/index.css +0 -2
- package/FormHelpText/styles/index.css +0 -2
- package/Grid/styles/index.css +0 -2
- package/Header/styles/index.css +0 -2
- package/Heading/styles/index.css +0 -2
- package/HeadingGroup/styles/index.css +0 -2
- package/Highlight/styles/index.css +0 -2
- package/IconButton/styles/index.css +0 -2
- package/InlineEdit/styles/index.css +0 -2
- package/Input/styles/index.css +0 -2
- package/InputGroup/styles/index.css +0 -2
- package/InputNumber/styles/index.css +0 -2
- package/InputPicker/styles/index.css +0 -2
- package/List/styles/index.css +0 -2
- package/Loader/styles/index.css +0 -2
- package/Message/styles/index.css +0 -2
- package/Modal/styles/index.css +0 -2
- package/MultiCascadeTree/styles/index.css +0 -2
- package/MultiCascader/styles/index.css +0 -2
- package/Nav/styles/index.css +0 -2
- package/Navbar/styles/index.css +0 -2
- package/Notification/styles/index.css +0 -2
- package/Pagination/styles/index.css +0 -2
- package/Panel/styles/index.css +0 -2
- package/PanelGroup/styles/index.css +0 -2
- package/Placeholder/styles/index.css +0 -2
- package/Popover/styles/index.css +0 -2
- package/Progress/styles/index.css +0 -2
- package/Radio/styles/index.css +0 -2
- package/RadioGroup/styles/index.css +0 -2
- package/RadioTile/styles/index.css +0 -2
- package/RadioTileGroup/styles/index.css +0 -2
- package/RangeSlider/styles/index.css +0 -2
- package/Rate/styles/index.css +0 -2
- package/Row/styles/index.css +0 -2
- package/SelectPicker/styles/index.css +0 -2
- package/Sidebar/styles/index.css +0 -2
- package/Sidenav/styles/index.css +0 -2
- package/Slider/styles/index.css +0 -2
- package/Stack/styles/index.css +0 -2
- package/Steps/styles/index.css +0 -2
- package/Table/styles/index.css +0 -2
- package/Tabs/styles/index.css +0 -2
- package/Tag/styles/index.css +0 -2
- package/TagGroup/styles/index.css +0 -2
- package/TagInput/styles/index.css +0 -2
- package/TagPicker/styles/index.css +0 -2
- package/Text/styles/index.css +0 -2
- package/TimePicker/styles/index.css +0 -2
- package/TimeRangePicker/styles/index.css +0 -2
- package/Timeline/styles/index.css +0 -2
- package/Toggle/styles/index.css +0 -2
- package/Tooltip/styles/index.css +0 -2
- package/Tree/styles/index.css +0 -2
- package/TreePicker/styles/index.css +0 -2
- package/Uploader/styles/index.css +0 -2
- package/VisuallyHidden/styles/index.css +0 -2
- package/cjs/CustomProvider/FormattedDate.d.ts +1 -1
- package/cjs/CustomProvider/FormattedDate.js +1 -0
- package/cjs/CustomProvider/index.d.ts +3 -3
- package/cjs/CustomProvider/index.js +3 -4
- package/cjs/DateRangePicker/DateRangePicker.js +4 -1
- package/cjs/Panel/AccordionButton.js +1 -0
- package/cjs/Table/Table.js +4 -2
- package/cjs/useToaster/useToaster.js +4 -1
- package/dist/rsuite-no-reset.css +0 -2
- package/dist/rsuite-no-reset.min.css.map +1 -1
- package/dist/rsuite.css +0 -2
- package/dist/rsuite.js +6 -6
- 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/CustomProvider/FormattedDate.d.ts +1 -1
- package/esm/CustomProvider/FormattedDate.js +1 -1
- package/esm/CustomProvider/index.d.ts +3 -3
- package/esm/CustomProvider/index.js +3 -3
- package/esm/DateRangePicker/DateRangePicker.js +4 -1
- package/esm/Panel/AccordionButton.js +1 -0
- package/esm/Table/Table.js +4 -2
- package/esm/useToaster/useToaster.js +3 -1
- package/package.json +1 -1
- package/toaster/styles/index.css +0 -2
- package/useToaster/styles/index.css +0 -2
|
@@ -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,7 +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
6
|
export type { ReactSuiteComponents } from './types';
|
|
7
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;
|
|
@@ -456,6 +456,9 @@ var DateRangePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
456
456
|
dateRange: nextCalendarDate
|
|
457
457
|
});
|
|
458
458
|
});
|
|
459
|
+
var handleExit = useEventCallback(function () {
|
|
460
|
+
setSelectedIdle(true);
|
|
461
|
+
});
|
|
459
462
|
|
|
460
463
|
/**
|
|
461
464
|
* Toolbar operation callback function
|
|
@@ -802,7 +805,7 @@ var DateRangePicker = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
802
805
|
pickerProps: pick(props, pickTriggerPropKeys),
|
|
803
806
|
placement: placement,
|
|
804
807
|
onEnter: createChainedFunction(events.onActive, handleEnter, onEnter),
|
|
805
|
-
onExit: createChainedFunction(events.onInactive, onExit),
|
|
808
|
+
onExit: createChainedFunction(events.onInactive, handleExit, onExit),
|
|
806
809
|
speaker: renderCalendarOverlay
|
|
807
810
|
}, /*#__PURE__*/React.createElement(Component, {
|
|
808
811
|
ref: root,
|
|
@@ -25,6 +25,7 @@ var AccordionButton = function AccordionButton(props) {
|
|
|
25
25
|
withClassPrefix = _useClassNames.withClassPrefix;
|
|
26
26
|
return /*#__PURE__*/React.createElement("button", _extends({
|
|
27
27
|
id: id,
|
|
28
|
+
type: "button",
|
|
28
29
|
"aria-controls": controlId,
|
|
29
30
|
"aria-expanded": expanded,
|
|
30
31
|
"aria-disabled": disabled,
|
package/esm/Table/Table.js
CHANGED
|
@@ -12,11 +12,13 @@ import { Table as RsTable } from 'rsuite-table';
|
|
|
12
12
|
var CustomTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
13
13
|
var _useCustom = useCustom('Table', props),
|
|
14
14
|
propsWithDefaults = _useCustom.propsWithDefaults,
|
|
15
|
-
rtl = _useCustom.rtl
|
|
16
|
-
|
|
15
|
+
rtl = _useCustom.rtl,
|
|
16
|
+
getLocale = _useCustom.getLocale;
|
|
17
|
+
var overrideLocale = propsWithDefaults.locale,
|
|
17
18
|
_propsWithDefaults$lo = propsWithDefaults.loadAnimation,
|
|
18
19
|
loadAnimation = _propsWithDefaults$lo === void 0 ? true : _propsWithDefaults$lo,
|
|
19
20
|
rest = _objectWithoutPropertiesLoose(propsWithDefaults, _excluded);
|
|
21
|
+
var locale = getLocale('Calendar', overrideLocale);
|
|
20
22
|
return /*#__PURE__*/React.createElement(RsTable, _extends({}, rest, {
|
|
21
23
|
rtl: rtl,
|
|
22
24
|
ref: ref,
|
|
@@ -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
package/toaster/styles/index.css
CHANGED