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.
Files changed (119) 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 +21 -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/CustomProvider/FormattedDate.d.ts +1 -1
  95. package/cjs/CustomProvider/FormattedDate.js +1 -0
  96. package/cjs/CustomProvider/index.d.ts +3 -3
  97. package/cjs/CustomProvider/index.js +3 -4
  98. package/cjs/DateRangePicker/DateRangePicker.js +4 -1
  99. package/cjs/Panel/AccordionButton.js +1 -0
  100. package/cjs/Table/Table.js +4 -2
  101. package/cjs/useToaster/useToaster.js +4 -1
  102. package/dist/rsuite-no-reset.css +0 -2
  103. package/dist/rsuite-no-reset.min.css.map +1 -1
  104. package/dist/rsuite.css +0 -2
  105. package/dist/rsuite.js +6 -6
  106. package/dist/rsuite.min.css.map +1 -1
  107. package/dist/rsuite.min.js +1 -1
  108. package/dist/rsuite.min.js.map +1 -1
  109. package/esm/CustomProvider/FormattedDate.d.ts +1 -1
  110. package/esm/CustomProvider/FormattedDate.js +1 -1
  111. package/esm/CustomProvider/index.d.ts +3 -3
  112. package/esm/CustomProvider/index.js +3 -3
  113. package/esm/DateRangePicker/DateRangePicker.js +4 -1
  114. package/esm/Panel/AccordionButton.js +1 -0
  115. package/esm/Table/Table.js +4 -2
  116. package/esm/useToaster/useToaster.js +3 -1
  117. package/package.json +1 -1
  118. package/toaster/styles/index.css +0 -2
  119. package/useToaster/styles/index.css +0 -2
@@ -183,5 +183,3 @@
183
183
  .rs-timeline-align-alternate .rs-timeline-item:nth-child(2n) .rs-timeline-item-time {
184
184
  padding-left: 17px;
185
185
  }
186
-
187
- /*# sourceMappingURL=index.css.map */
@@ -579,5 +579,3 @@
579
579
  background-color: #5f2bb3;
580
580
  background-color: var(--rs-violet-600);
581
581
  }
582
-
583
- /*# sourceMappingURL=index.css.map */
@@ -306,5 +306,3 @@
306
306
  .rs-tooltip.placement-left-end::after {
307
307
  bottom: 4px;
308
308
  }
309
-
310
- /*# sourceMappingURL=index.css.map */
@@ -348,5 +348,3 @@
348
348
  .rs-tree-node-expanded.rs-tree-node-children > .rs-tree-group {
349
349
  display: block;
350
350
  }
351
-
352
- /*# sourceMappingURL=index.css.map */
@@ -357,5 +357,3 @@
357
357
  .rs-picker-popup .rs-tree-view {
358
358
  padding: 2px 4px;
359
359
  }
360
-
361
- /*# sourceMappingURL=index.css.map */
@@ -1919,5 +1919,3 @@
1919
1919
  .rs-uploader-draggable .rs-uploader-trigger-disabled .rs-uploader-trigger-btn {
1920
1920
  pointer-events: none;
1921
1921
  }
1922
-
1923
- /*# sourceMappingURL=index.css.map */
@@ -9,5 +9,3 @@
9
9
  width: 1px;
10
10
  white-space: nowrap;
11
11
  }
12
-
13
- /*# sourceMappingURL=index.css.map */
@@ -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;
@@ -3,6 +3,7 @@
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
5
  exports.__esModule = true;
6
+ exports.FormattedDate = FormattedDate;
6
7
  exports.default = void 0;
7
8
  var _react = _interopRequireDefault(require("react"));
8
9
  var _useCustom2 = require("./useCustom");
@@ -1,7 +1,7 @@
1
- import CustomProvider, { CustomContext } from './CustomProvider';
2
- import FormattedDate from './FormattedDate';
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,13 +1,12 @@
1
1
  'use client';
2
2
  "use strict";
3
3
 
4
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
4
  exports.__esModule = true;
6
- exports.useCustom = exports.default = void 0;
5
+ exports.useCustom = exports.default = exports.FormattedDate = exports.CustomContext = void 0;
7
6
  var _CustomProvider = _interopRequireWildcard(require("./CustomProvider"));
8
7
  exports.CustomContext = _CustomProvider.CustomContext;
9
- var _FormattedDate = _interopRequireDefault(require("./FormattedDate"));
10
- exports.FormattedDate = _FormattedDate.default;
8
+ var _FormattedDate = require("./FormattedDate");
9
+ exports.FormattedDate = _FormattedDate.FormattedDate;
11
10
  var _useCustom = require("./useCustom");
12
11
  exports.useCustom = _useCustom.useCustom;
13
12
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
@@ -463,6 +463,9 @@ var DateRangePicker = /*#__PURE__*/_react.default.forwardRef(function (props, re
463
463
  dateRange: nextCalendarDate
464
464
  });
465
465
  });
466
+ var handleExit = (0, _hooks.useEventCallback)(function () {
467
+ setSelectedIdle(true);
468
+ });
466
469
 
467
470
  /**
468
471
  * Toolbar operation callback function
@@ -809,7 +812,7 @@ var DateRangePicker = /*#__PURE__*/_react.default.forwardRef(function (props, re
809
812
  pickerProps: (0, _pick.default)(props, _Picker.pickTriggerPropKeys),
810
813
  placement: placement,
811
814
  onEnter: (0, _utils2.createChainedFunction)(events.onActive, handleEnter, onEnter),
812
- onExit: (0, _utils2.createChainedFunction)(events.onInactive, onExit),
815
+ onExit: (0, _utils2.createChainedFunction)(events.onInactive, handleExit, onExit),
813
816
  speaker: renderCalendarOverlay
814
817
  }, /*#__PURE__*/_react.default.createElement(Component, {
815
818
  ref: root,
@@ -30,6 +30,7 @@ var AccordionButton = function AccordionButton(props) {
30
30
  withClassPrefix = _useClassNames.withClassPrefix;
31
31
  return /*#__PURE__*/_react.default.createElement("button", (0, _extends2.default)({
32
32
  id: id,
33
+ type: "button",
33
34
  "aria-controls": controlId,
34
35
  "aria-expanded": expanded,
35
36
  "aria-disabled": disabled,
@@ -17,11 +17,13 @@ var _excluded = ["locale", "loadAnimation"];
17
17
  var CustomTable = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
18
18
  var _useCustom = (0, _CustomProvider.useCustom)('Table', props),
19
19
  propsWithDefaults = _useCustom.propsWithDefaults,
20
- rtl = _useCustom.rtl;
21
- var locale = propsWithDefaults.locale,
20
+ rtl = _useCustom.rtl,
21
+ getLocale = _useCustom.getLocale;
22
+ var overrideLocale = propsWithDefaults.locale,
22
23
  _propsWithDefaults$lo = propsWithDefaults.loadAnimation,
23
24
  loadAnimation = _propsWithDefaults$lo === void 0 ? true : _propsWithDefaults$lo,
24
25
  rest = (0, _objectWithoutPropertiesLoose2.default)(propsWithDefaults, _excluded);
26
+ var locale = getLocale('Calendar', overrideLocale);
25
27
  return /*#__PURE__*/_react.default.createElement(_rsuiteTable.Table, (0, _extends2.default)({}, rest, {
26
28
  rtl: rtl,
27
29
  ref: ref,
@@ -6,7 +6,10 @@ exports.__esModule = true;
6
6
  exports.default = void 0;
7
7
  var _react = require("react");
8
8
  var _toaster = _interopRequireDefault(require("../toaster"));
9
- var _CustomProvider = require("../CustomProvider");
9
+ var _CustomProvider = require("../CustomProvider/CustomProvider");
10
+ // From CustomProvider/CustomProvider.tsx import CustomContext instead of directly from 'CustomProvider/index.ts'
11
+ // because babel compiles commonjs, which causes CustomContext to be undefined
12
+
10
13
  /**
11
14
  * Toaster display brief, temporary notifications of actions, errors, or other events in an application.
12
15
  * It is often used with the Message and Notification components.
@@ -17634,5 +17634,3 @@ kbd.rs-text {
17634
17634
  color: #717273;
17635
17635
  color: var(--rs-text-secondary);
17636
17636
  }
17637
-
17638
- /*# sourceMappingURL=index.css.map */