rsuite 5.53.2 → 5.54.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 (100) hide show
  1. package/AutoComplete/styles/index.css +0 -2
  2. package/CHANGELOG.md +18 -0
  3. package/Cascader/styles/index.css +0 -2
  4. package/CheckPicker/styles/index.css +0 -2
  5. package/CheckTree/styles/index.css +0 -2
  6. package/CheckTreePicker/styles/index.css +0 -2
  7. package/DatePicker/styles/index.css +0 -2
  8. package/DateRangePicker/styles/index.css +0 -2
  9. package/FormGroup/styles/index.css +3 -0
  10. package/FormGroup/styles/index.less +2 -0
  11. package/InlineEdit/package.json +7 -0
  12. package/InlineEdit/styles/index.css +112 -0
  13. package/InlineEdit/styles/index.less +48 -0
  14. package/InputGroup/styles/index.css +0 -2
  15. package/InputGroup/styles/index.less +0 -2
  16. package/InputNumber/styles/index.css +0 -2
  17. package/InputPicker/styles/index.css +0 -2
  18. package/MultiCascader/styles/index.css +0 -2
  19. package/Pagination/styles/index.css +0 -2
  20. package/SelectPicker/styles/index.css +0 -2
  21. package/TagInput/styles/index.css +1 -4
  22. package/TagPicker/styles/index.css +1 -4
  23. package/TagPicker/styles/index.less +1 -2
  24. package/cjs/DatePicker/DatePicker.js +1 -1
  25. package/cjs/DateRangePicker/DateRangePicker.js +5 -0
  26. package/cjs/InlineEdit/EditableControls.d.ts +8 -0
  27. package/cjs/InlineEdit/EditableControls.js +34 -0
  28. package/cjs/InlineEdit/InlineEdit.d.ts +56 -0
  29. package/cjs/InlineEdit/InlineEdit.js +98 -0
  30. package/cjs/InlineEdit/index.d.ts +3 -0
  31. package/cjs/InlineEdit/index.js +9 -0
  32. package/cjs/InlineEdit/renderChildren.d.ts +12 -0
  33. package/cjs/InlineEdit/renderChildren.js +40 -0
  34. package/cjs/InlineEdit/useEditState.d.ts +22 -0
  35. package/cjs/InlineEdit/useEditState.js +82 -0
  36. package/cjs/InlineEdit/useFocusEvent.d.ts +14 -0
  37. package/cjs/InlineEdit/useFocusEvent.js +61 -0
  38. package/cjs/Input/Input.js +6 -3
  39. package/cjs/InputPicker/InputPicker.js +6 -5
  40. package/cjs/Slider/Slider.d.ts +2 -0
  41. package/cjs/Slider/Slider.js +4 -2
  42. package/cjs/index.d.ts +2 -0
  43. package/cjs/index.js +3 -1
  44. package/cjs/internals/Picker/Listbox.d.ts +5 -1
  45. package/cjs/internals/Picker/Listbox.js +6 -5
  46. package/cjs/internals/Picker/hooks/usePickerRef.js +2 -0
  47. package/cjs/internals/Picker/types.d.ts +2 -0
  48. package/cjs/internals/symbols.d.ts +2 -0
  49. package/cjs/internals/symbols.js +9 -0
  50. package/cjs/utils/getDataGroupBy.d.ts +0 -1
  51. package/cjs/utils/getDataGroupBy.js +3 -5
  52. package/dist/rsuite-no-reset-rtl.css +91 -4
  53. package/dist/rsuite-no-reset-rtl.min.css +1 -1
  54. package/dist/rsuite-no-reset-rtl.min.css.map +1 -1
  55. package/dist/rsuite-no-reset.css +91 -4
  56. package/dist/rsuite-no-reset.min.css +1 -1
  57. package/dist/rsuite-no-reset.min.css.map +1 -1
  58. package/dist/rsuite-rtl.css +91 -4
  59. package/dist/rsuite-rtl.min.css +1 -1
  60. package/dist/rsuite-rtl.min.css.map +1 -1
  61. package/dist/rsuite.css +91 -4
  62. package/dist/rsuite.js +86 -9
  63. package/dist/rsuite.js.map +1 -1
  64. package/dist/rsuite.min.css +1 -1
  65. package/dist/rsuite.min.css.map +1 -1
  66. package/dist/rsuite.min.js +1 -1
  67. package/dist/rsuite.min.js.map +1 -1
  68. package/esm/DatePicker/DatePicker.js +1 -1
  69. package/esm/DateRangePicker/DateRangePicker.js +5 -0
  70. package/esm/InlineEdit/EditableControls.d.ts +8 -0
  71. package/esm/InlineEdit/EditableControls.js +28 -0
  72. package/esm/InlineEdit/InlineEdit.d.ts +56 -0
  73. package/esm/InlineEdit/InlineEdit.js +92 -0
  74. package/esm/InlineEdit/index.d.ts +3 -0
  75. package/esm/InlineEdit/index.js +3 -0
  76. package/esm/InlineEdit/renderChildren.d.ts +12 -0
  77. package/esm/InlineEdit/renderChildren.js +34 -0
  78. package/esm/InlineEdit/useEditState.d.ts +22 -0
  79. package/esm/InlineEdit/useEditState.js +76 -0
  80. package/esm/InlineEdit/useFocusEvent.d.ts +14 -0
  81. package/esm/InlineEdit/useFocusEvent.js +56 -0
  82. package/esm/Input/Input.js +6 -3
  83. package/esm/InputPicker/InputPicker.js +6 -5
  84. package/esm/Slider/Slider.d.ts +2 -0
  85. package/esm/Slider/Slider.js +4 -2
  86. package/esm/index.d.ts +2 -0
  87. package/esm/index.js +1 -0
  88. package/esm/internals/Picker/Listbox.d.ts +5 -1
  89. package/esm/internals/Picker/Listbox.js +7 -6
  90. package/esm/internals/Picker/hooks/usePickerRef.js +2 -0
  91. package/esm/internals/Picker/types.d.ts +2 -0
  92. package/esm/internals/symbols.d.ts +2 -0
  93. package/esm/internals/symbols.js +3 -0
  94. package/esm/utils/getDataGroupBy.d.ts +0 -1
  95. package/esm/utils/getDataGroupBy.js +2 -3
  96. package/package.json +1 -1
  97. package/styles/color-modes/dark.less +3 -0
  98. package/styles/color-modes/high-contrast.less +3 -0
  99. package/styles/color-modes/light.less +3 -0
  100. package/styles/index.less +1 -0
@@ -264,6 +264,7 @@
264
264
  --rs-input-bg: var(--rs-gray-0);
265
265
  --rs-input-focus-border: var(--rs-primary-500);
266
266
  --rs-input-disabled-bg: var(--rs-gray-50);
267
+ --rs-inline-edit-hover-bg: var(--rs-gray-200);
267
268
  --rs-listbox-option-hover-bg: rgb(from var(--rs-primary-100) r g b / 50%);
268
269
  --rs-listbox-option-hover-text: var(--rs-primary-700);
269
270
  --rs-listbox-option-selected-text: var(--rs-primary-700);
@@ -634,6 +635,7 @@
634
635
  --rs-input-bg: var(--rs-gray-800);
635
636
  --rs-input-focus-border: var(--rs-primary-500);
636
637
  --rs-input-disabled-bg: var(--rs-gray-700);
638
+ --rs-inline-edit-hover-bg: var(--rs-gray-500);
637
639
  --rs-listbox-option-hover-bg: var(--rs-gray-600);
638
640
  --rs-listbox-option-hover-text: currentColor;
639
641
  --rs-listbox-option-selected-text: var(--rs-primary-500);
@@ -999,6 +1001,7 @@
999
1001
  --rs-input-bg: var(--rs-gray-800);
1000
1002
  --rs-input-focus-border: var(--rs-primary-500);
1001
1003
  --rs-input-disabled-bg: var(--rs-gray-700);
1004
+ --rs-inline-edit-hover-bg: transparent;
1002
1005
  --rs-listbox-option-hover-bg: transparent;
1003
1006
  --rs-listbox-option-hover-text: var(--rs-primary-500);
1004
1007
  --rs-listbox-option-selected-text: var(--rs-primary-500);
@@ -5807,6 +5810,9 @@ label:hover .rs-checkbox-wrapper .rs-checkbox-inner::before {
5807
5810
  .rs-form-inline .rs-form-group .rs-sr-only + .rs-form-control-wrapper {
5808
5811
  margin-right: 0;
5809
5812
  }
5813
+ .rs-form-group {
5814
+ position: relative;
5815
+ }
5810
5816
  .rs-form:not(.rs-form-inline) .rs-form-group:not(:last-child) {
5811
5817
  margin-bottom: 24px;
5812
5818
  }
@@ -8320,7 +8326,6 @@ textarea.rs-input-sm {
8320
8326
  width: 100%;
8321
8327
  border: none;
8322
8328
  outline: none;
8323
- padding-left: 36px;
8324
8329
  }
8325
8330
  .rs-input-group.rs-input-group-inside .rs-input-group-btn,
8326
8331
  .rs-input-group.rs-input-group-inside .rs-input-group-addon {
@@ -8335,7 +8340,6 @@ textarea.rs-input-sm {
8335
8340
  background-color: transparent;
8336
8341
  border: none;
8337
8342
  color: inherit;
8338
- position: absolute;
8339
8343
  height: 34px;
8340
8344
  padding: 7px 11px;
8341
8345
  border-radius: 6px 0 0 6px;
@@ -8961,6 +8965,90 @@ textarea.rs-picker-search-input {
8961
8965
  .rs-picker-focused .rs-picker-search-input {
8962
8966
  z-index: 6;
8963
8967
  }
8968
+ .rs-inline-edit {
8969
+ position: relative;
8970
+ display: inline-block;
8971
+ }
8972
+ .rs-inline-edit .rs-plaintext {
8973
+ /* stylelint-disable */
8974
+ padding: 7px 11px;
8975
+ font-size: 14px;
8976
+ line-height: 1.42857143;
8977
+ /* stylelint-enable */
8978
+ border-radius: 6px;
8979
+ }
8980
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
8981
+ .rs-inline-edit .rs-plaintext {
8982
+ height: 36px;
8983
+ }
8984
+ }
8985
+ textarea.rs-inline-edit .rs-plaintext {
8986
+ height: auto;
8987
+ }
8988
+ .rs-inline-edit .rs-plaintext:hover {
8989
+ background-color: #e5e5ea;
8990
+ background-color: var(--rs-inline-edit-hover-bg);
8991
+ }
8992
+ .rs-inline-edit-disabled .rs-plaintext:hover {
8993
+ background-color: transparent;
8994
+ }
8995
+ .rs-inline-edit-controls {
8996
+ position: absolute;
8997
+ inset-block-start: 100%;
8998
+ inset-inline-end: 0px;
8999
+ -webkit-margin-before: 6px;
9000
+ margin-block-start: 6px;
9001
+ z-index: 7;
9002
+ }
9003
+ .rs-inline-edit-controls .rs-btn {
9004
+ -webkit-box-shadow: 0 4px 4px rgba(0, 0, 0, 0.12), 0 0 10px rgba(0, 0, 0, 0.06);
9005
+ box-shadow: 0 4px 4px rgba(0, 0, 0, 0.12), 0 0 10px rgba(0, 0, 0, 0.06);
9006
+ }
9007
+ .rs-inline-edit-xs .rs-plaintext {
9008
+ /* stylelint-disable */
9009
+ padding: 1px 11px;
9010
+ font-size: 12px;
9011
+ line-height: 1.66666667;
9012
+ /* stylelint-enable */
9013
+ }
9014
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
9015
+ .rs-inline-edit-xs .rs-plaintext {
9016
+ height: 24px;
9017
+ }
9018
+ }
9019
+ textarea.rs-inline-edit-xs .rs-plaintext {
9020
+ height: auto;
9021
+ }
9022
+ .rs-inline-edit-lg .rs-plaintext {
9023
+ /* stylelint-disable */
9024
+ padding: 9px 11px;
9025
+ font-size: 16px;
9026
+ line-height: 1.375;
9027
+ /* stylelint-enable */
9028
+ }
9029
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
9030
+ .rs-inline-edit-lg .rs-plaintext {
9031
+ height: 42px;
9032
+ }
9033
+ }
9034
+ textarea.rs-inline-edit-lg .rs-plaintext {
9035
+ height: auto;
9036
+ }
9037
+ .rs-inline-edit-sm .rs-plaintext {
9038
+ /* stylelint-disable */
9039
+ padding: 4px 11px;
9040
+ font-size: 14px;
9041
+ line-height: 1.42857143;
9042
+ /* stylelint-enable */
9043
+ }
9044
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
9045
+ .rs-inline-edit-sm .rs-plaintext {
9046
+ height: 30px;
9047
+ }
9048
+ }
9049
+ textarea.rs-inline-edit-sm .rs-plaintext {
9050
+ height: auto;
9051
+ }
8964
9052
  .rs-list {
8965
9053
  position: relative;
8966
9054
  -webkit-box-shadow: 0 1px 0 #e5e5ea, 0 -1px 0 #e5e5ea;
@@ -13978,8 +14066,7 @@ textarea.rs-picker-search-input {
13978
14066
  display: contents;
13979
14067
  }
13980
14068
  .rs-plaintext .rs-tag {
13981
- margin-right: 6px;
13982
- margin-bottom: 6px;
14069
+ margin: 0;
13983
14070
  }
13984
14071
  .rs-picker-disabled-options .rs-picker-toggle {
13985
14072
  padding-left: 32px !important;