rsuite 5.55.0 → 5.56.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.
Files changed (78) hide show
  1. package/AutoComplete/styles/index.css +3 -3
  2. package/CHANGELOG.md +29 -0
  3. package/Calendar/styles/index.css +3 -0
  4. package/Calendar/styles/index.less +3 -1
  5. package/Cascader/styles/index.css +3 -3
  6. package/CheckPicker/styles/index.css +142 -40
  7. package/CheckPicker/styles/index.less +1 -1
  8. package/CheckTree/styles/index.css +143 -41
  9. package/CheckTreePicker/styles/index.css +143 -41
  10. package/CheckTreePicker/styles/index.less +2 -2
  11. package/Checkbox/styles/index.css +159 -36
  12. package/Checkbox/styles/index.less +32 -13
  13. package/DatePicker/styles/index.css +10 -5
  14. package/DatePicker/styles/index.less +5 -2
  15. package/DateRangePicker/styles/index.css +22 -14
  16. package/DateRangePicker/styles/index.less +5 -1
  17. package/InputPicker/styles/index.css +3 -3
  18. package/Message/styles/index.css +1 -1
  19. package/MultiCascader/styles/index.css +141 -39
  20. package/Nav/styles/index.css +1 -2
  21. package/Nav/styles/index.less +1 -2
  22. package/Pagination/styles/index.css +3 -3
  23. package/Radio/styles/index.css +133 -19
  24. package/Radio/styles/index.less +28 -12
  25. package/RadioGroup/styles/index.css +1 -1
  26. package/RadioGroup/styles/index.less +1 -1
  27. package/SelectPicker/styles/index.css +3 -3
  28. package/Tabs/styles/index.css +1 -2
  29. package/TagGroup/styles/index.css +1 -1
  30. package/TagGroup/styles/index.less +1 -1
  31. package/TagInput/styles/index.css +141 -39
  32. package/TagPicker/styles/index.css +141 -39
  33. package/cjs/Checkbox/Checkbox.d.ts +67 -25
  34. package/cjs/Checkbox/Checkbox.js +36 -26
  35. package/cjs/DatePicker/DatePicker.js +1 -1
  36. package/cjs/DateRangePicker/DateRangePicker.js +1 -1
  37. package/cjs/InputPicker/InputPicker.js +2 -2
  38. package/cjs/InputPicker/InputPickerContext.d.ts +1 -1
  39. package/cjs/MultiCascader/TreeView.js +2 -1
  40. package/cjs/Radio/Radio.d.ts +42 -16
  41. package/cjs/Radio/Radio.js +42 -37
  42. package/cjs/RadioGroup/RadioGroup.d.ts +1 -1
  43. package/cjs/RadioGroup/RadioGroup.js +3 -3
  44. package/cjs/TagPicker/index.js +1 -1
  45. package/cjs/internals/Picker/ListCheckItem.d.ts +2 -11
  46. package/cjs/internals/Picker/ListCheckItem.js +8 -6
  47. package/dist/rsuite-no-reset-rtl.css +279 -77
  48. package/dist/rsuite-no-reset-rtl.min.css +1 -1
  49. package/dist/rsuite-no-reset-rtl.min.css.map +1 -1
  50. package/dist/rsuite-no-reset.css +279 -77
  51. package/dist/rsuite-no-reset.min.css +1 -1
  52. package/dist/rsuite-no-reset.min.css.map +1 -1
  53. package/dist/rsuite-rtl.css +279 -77
  54. package/dist/rsuite-rtl.min.css +1 -1
  55. package/dist/rsuite-rtl.min.css.map +1 -1
  56. package/dist/rsuite.css +279 -77
  57. package/dist/rsuite.js +9 -9
  58. package/dist/rsuite.min.css +1 -1
  59. package/dist/rsuite.min.css.map +1 -1
  60. package/dist/rsuite.min.js +1 -1
  61. package/dist/rsuite.min.js.map +1 -1
  62. package/esm/Checkbox/Checkbox.d.ts +67 -25
  63. package/esm/Checkbox/Checkbox.js +38 -28
  64. package/esm/DatePicker/DatePicker.js +1 -1
  65. package/esm/DateRangePicker/DateRangePicker.js +1 -1
  66. package/esm/InputPicker/InputPicker.js +2 -2
  67. package/esm/InputPicker/InputPickerContext.d.ts +1 -1
  68. package/esm/MultiCascader/TreeView.js +2 -1
  69. package/esm/Radio/Radio.d.ts +42 -16
  70. package/esm/Radio/Radio.js +43 -38
  71. package/esm/RadioGroup/RadioGroup.d.ts +1 -1
  72. package/esm/RadioGroup/RadioGroup.js +5 -5
  73. package/esm/TagPicker/index.js +1 -1
  74. package/esm/internals/Picker/ListCheckItem.d.ts +2 -11
  75. package/esm/internals/Picker/ListCheckItem.js +8 -6
  76. package/internals/Picker/styles/index.less +1 -1
  77. package/package.json +1 -1
  78. package/styles/variables.less +1 -1
@@ -24,12 +24,13 @@ var ListCheckItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
24
24
  children = props.children,
25
25
  className = props.className,
26
26
  indeterminate = props.indeterminate,
27
+ labelClickable = props.labelClickable,
27
28
  onKeyDown = props.onKeyDown,
28
29
  onSelect = props.onSelect,
29
30
  onCheck = props.onCheck,
30
31
  onSelectItem = props.onSelectItem,
31
- renderMenuItemCheckbox = props.renderMenuItemCheckbox,
32
- rest = _objectWithoutPropertiesLoose(props, ["active", "as", "checkboxAs", "classPrefix", "checkable", "disabled", "value", "focus", "children", "className", "indeterminate", "onKeyDown", "onSelect", "onCheck", "onSelectItem", "renderMenuItemCheckbox"]);
32
+ renderCheckbox = props.renderCheckbox,
33
+ rest = _objectWithoutPropertiesLoose(props, ["active", "as", "checkboxAs", "classPrefix", "checkable", "disabled", "value", "focus", "children", "className", "indeterminate", "labelClickable", "onKeyDown", "onSelect", "onCheck", "onSelectItem", "renderCheckbox"]);
33
34
  var handleChange = useEventCallback(function (value, checked, event) {
34
35
  onSelect === null || onSelect === void 0 ? void 0 : onSelect(value, event, checked);
35
36
  });
@@ -53,13 +54,14 @@ var ListCheckItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
53
54
  focus: focus
54
55
  });
55
56
  var checkboxProps = {
56
- value: value,
57
- disabled: disabled,
58
- indeterminate: indeterminate,
59
57
  checkable: checkable,
60
58
  children: children,
61
59
  checked: active,
62
60
  className: checkboxItemClasses,
61
+ disabled: disabled,
62
+ value: value,
63
+ indeterminate: indeterminate,
64
+ labelClickable: labelClickable,
63
65
  onKeyDown: disabled ? undefined : onKeyDown,
64
66
  onChange: handleChange,
65
67
  onClick: handleSelectItem,
@@ -75,7 +77,7 @@ var ListCheckItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
75
77
  ref: ref,
76
78
  className: merge(className, rootPrefix(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["picker-list-item"])))),
77
79
  tabIndex: -1
78
- }), renderMenuItemCheckbox ? renderMenuItemCheckbox(checkboxProps) : /*#__PURE__*/React.createElement(CheckboxItem, _extends({
80
+ }), renderCheckbox ? renderCheckbox(checkboxProps) : /*#__PURE__*/React.createElement(CheckboxItem, _extends({
79
81
  role: "checkbox"
80
82
  }, checkboxProps)));
81
83
  });
@@ -397,7 +397,7 @@
397
397
  }
398
398
  }
399
399
 
400
- .rs-checkbox-wrapper {
400
+ .rs-checkbox-control {
401
401
  left: @picker-item-content-padding-horizontal;
402
402
 
403
403
  .grouped &,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rsuite",
3
- "version": "5.55.0",
3
+ "version": "5.56.0",
4
4
  "description": "A suite of react components",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",
@@ -848,6 +848,7 @@
848
848
  @zindex-date-range-picker-calendar-dropdown: 1;
849
849
  @zindex-date-range-picker-table-cell-content: 1;
850
850
  @zindex-badge-content: 1;
851
+ @zindex-message-full: 3;
851
852
  @zindex-dropdown: 5;
852
853
  @zindex-picker-toggle: 5; // The same with zindex-dropdown
853
854
  @zindex-picker-input: (@zindex-picker-toggle + 1); // Greater than picker toggle
@@ -862,7 +863,6 @@
862
863
  @zindex-popover: 1060;
863
864
  @zindex-tooltip: 1070;
864
865
  @zindex-notification: 1080;
865
- @zindex-message-full: 1090;
866
866
 
867
867
  //#==== Uploader
868
868
  @zindex-uploader-picture-preview: 1;