rsuite 5.74.1 → 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.
Files changed (109) hide show
  1. package/Accordion/styles/index.css +0 -2
  2. package/Animation/styles/index.css +0 -2
  3. package/AutoComplete/styles/index.css +0 -2
  4. package/Avatar/styles/index.css +0 -2
  5. package/AvatarGroup/styles/index.css +0 -2
  6. package/Badge/styles/index.css +0 -2
  7. package/Breadcrumb/styles/index.css +0 -2
  8. package/Button/styles/index.css +0 -2
  9. package/ButtonGroup/styles/index.css +0 -2
  10. package/ButtonToolbar/styles/index.css +0 -2
  11. package/CHANGELOG.md +12 -0
  12. package/Calendar/styles/index.css +0 -2
  13. package/Carousel/styles/index.css +0 -2
  14. package/CascadeTree/styles/index.css +0 -2
  15. package/Cascader/styles/index.css +0 -2
  16. package/CheckPicker/styles/index.css +0 -2
  17. package/CheckTree/styles/index.css +0 -2
  18. package/CheckTreePicker/styles/index.css +0 -2
  19. package/Checkbox/styles/index.css +0 -2
  20. package/CheckboxGroup/styles/index.css +0 -2
  21. package/Col/styles/index.css +0 -2
  22. package/Container/styles/index.css +0 -2
  23. package/Content/styles/index.css +0 -2
  24. package/DateInput/styles/index.css +0 -2
  25. package/DatePicker/styles/index.css +0 -2
  26. package/DateRangeInput/styles/index.css +0 -2
  27. package/DateRangePicker/styles/index.css +0 -2
  28. package/Divider/styles/index.css +0 -2
  29. package/Drawer/styles/index.css +0 -2
  30. package/Dropdown/styles/index.css +0 -2
  31. package/FlexboxGrid/styles/index.css +0 -2
  32. package/Footer/styles/index.css +0 -2
  33. package/Form/styles/index.css +0 -2
  34. package/FormControl/styles/index.css +0 -2
  35. package/FormControlLabel/styles/index.css +0 -2
  36. package/FormErrorMessage/styles/index.css +0 -2
  37. package/FormGroup/styles/index.css +0 -2
  38. package/FormHelpText/styles/index.css +0 -2
  39. package/Grid/styles/index.css +0 -2
  40. package/Header/styles/index.css +0 -2
  41. package/Heading/styles/index.css +0 -2
  42. package/HeadingGroup/styles/index.css +0 -2
  43. package/Highlight/styles/index.css +0 -2
  44. package/IconButton/styles/index.css +0 -2
  45. package/InlineEdit/styles/index.css +0 -2
  46. package/Input/styles/index.css +0 -2
  47. package/InputGroup/styles/index.css +0 -2
  48. package/InputNumber/styles/index.css +0 -2
  49. package/InputPicker/styles/index.css +0 -2
  50. package/List/styles/index.css +0 -2
  51. package/Loader/styles/index.css +0 -2
  52. package/Message/styles/index.css +0 -2
  53. package/Modal/styles/index.css +0 -2
  54. package/MultiCascadeTree/styles/index.css +0 -2
  55. package/MultiCascader/styles/index.css +0 -2
  56. package/Nav/styles/index.css +0 -2
  57. package/Navbar/styles/index.css +0 -2
  58. package/Notification/styles/index.css +0 -2
  59. package/Pagination/styles/index.css +0 -2
  60. package/Panel/styles/index.css +0 -2
  61. package/PanelGroup/styles/index.css +0 -2
  62. package/Placeholder/styles/index.css +0 -2
  63. package/Popover/styles/index.css +0 -2
  64. package/Progress/styles/index.css +0 -2
  65. package/Radio/styles/index.css +0 -2
  66. package/RadioGroup/styles/index.css +0 -2
  67. package/RadioTile/styles/index.css +0 -2
  68. package/RadioTileGroup/styles/index.css +0 -2
  69. package/RangeSlider/styles/index.css +0 -2
  70. package/Rate/styles/index.css +0 -2
  71. package/Row/styles/index.css +0 -2
  72. package/SelectPicker/styles/index.css +0 -2
  73. package/Sidebar/styles/index.css +0 -2
  74. package/Sidenav/styles/index.css +0 -2
  75. package/Slider/styles/index.css +0 -2
  76. package/Stack/styles/index.css +0 -2
  77. package/Steps/styles/index.css +0 -2
  78. package/Table/styles/index.css +0 -2
  79. package/Tabs/styles/index.css +0 -2
  80. package/Tag/styles/index.css +0 -2
  81. package/TagGroup/styles/index.css +0 -2
  82. package/TagInput/styles/index.css +0 -2
  83. package/TagPicker/styles/index.css +0 -2
  84. package/Text/styles/index.css +0 -2
  85. package/TimePicker/styles/index.css +0 -2
  86. package/TimeRangePicker/styles/index.css +0 -2
  87. package/Timeline/styles/index.css +0 -2
  88. package/Toggle/styles/index.css +0 -2
  89. package/Tooltip/styles/index.css +0 -2
  90. package/Tree/styles/index.css +0 -2
  91. package/TreePicker/styles/index.css +0 -2
  92. package/Uploader/styles/index.css +0 -2
  93. package/VisuallyHidden/styles/index.css +0 -2
  94. package/cjs/DateRangePicker/DateRangePicker.js +4 -1
  95. package/cjs/Panel/AccordionButton.js +1 -0
  96. package/cjs/Table/Table.js +4 -2
  97. package/dist/rsuite-no-reset.css +0 -2
  98. package/dist/rsuite-no-reset.min.css.map +1 -1
  99. package/dist/rsuite.css +0 -2
  100. package/dist/rsuite.js +3 -3
  101. package/dist/rsuite.min.css.map +1 -1
  102. package/dist/rsuite.min.js +1 -1
  103. package/dist/rsuite.min.js.map +1 -1
  104. package/esm/DateRangePicker/DateRangePicker.js +4 -1
  105. package/esm/Panel/AccordionButton.js +1 -0
  106. package/esm/Table/Table.js +4 -2
  107. package/package.json +1 -1
  108. package/toaster/styles/index.css +0 -2
  109. package/useToaster/styles/index.css +0 -2
@@ -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,
@@ -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
- var locale = propsWithDefaults.locale,
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rsuite",
3
- "version": "5.74.1",
3
+ "version": "5.74.2",
4
4
  "description": "A suite of react components",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",
@@ -235,5 +235,3 @@
235
235
  -webkit-animation-name: notificationMoveOut;
236
236
  animation-name: notificationMoveOut;
237
237
  }
238
-
239
- /*# sourceMappingURL=index.css.map */
@@ -235,5 +235,3 @@
235
235
  -webkit-animation-name: notificationMoveOut;
236
236
  animation-name: notificationMoveOut;
237
237
  }
238
-
239
- /*# sourceMappingURL=index.css.map */