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
@@ -1421,7 +1421,6 @@ textarea.rs-input-sm {
1421
1421
  width: 100%;
1422
1422
  border: none;
1423
1423
  outline: none;
1424
- padding-right: 36px;
1425
1424
  }
1426
1425
  .rs-input-group.rs-input-group-inside .rs-input-group-btn,
1427
1426
  .rs-input-group.rs-input-group-inside .rs-input-group-addon {
@@ -1436,7 +1435,6 @@ textarea.rs-input-sm {
1436
1435
  background-color: transparent;
1437
1436
  border: none;
1438
1437
  color: inherit;
1439
- position: absolute;
1440
1438
  height: 34px;
1441
1439
  padding: 7px 11px;
1442
1440
  border-radius: 0 6px 6px 0;
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ # [5.54.0](https://github.com/rsuite/rsuite/compare/v5.53.2...v5.54.0) (2024-02-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **DatePicker:** fix style error of the bottom button in the datePicker ([#3634](https://github.com/rsuite/rsuite/issues/3634)) ([536ad7e](https://github.com/rsuite/rsuite/commit/536ad7e9b0bf9c727dd69c5e0584033751422e1f))
7
+ * **DateRangePicker:** fix error state when value is empty array ([#3631](https://github.com/rsuite/rsuite/issues/3631)) ([f8778f5](https://github.com/rsuite/rsuite/commit/f8778f537c441e0a49ecebf2c41c9af14a764400))
8
+ * **InputGroup:** fix Input padding issue in InputGroup ([#3600](https://github.com/rsuite/rsuite/issues/3600)) ([56b3792](https://github.com/rsuite/rsuite/commit/56b379297e237aa26aff0140cd93ec3a7314e5f4))
9
+ * **TagPicker:** fix the margin issue between tags in plaintext mode ([#3638](https://github.com/rsuite/rsuite/issues/3638)) ([61f343b](https://github.com/rsuite/rsuite/commit/61f343b43677b9d1441f5c5a60cc7a95ae6890ca))
10
+ * fixed issue with install guide page ([#3619](https://github.com/rsuite/rsuite/issues/3619)) ([#3620](https://github.com/rsuite/rsuite/issues/3620)) ([33159b6](https://github.com/rsuite/rsuite/commit/33159b6ffeff4ce44cae03e1eb9ae806c6d2d12c))
11
+
12
+
13
+ ### Features
14
+
15
+ * **InlineEdit:** add support for InlineEdit ([#3614](https://github.com/rsuite/rsuite/issues/3614)) ([8ed7e6d](https://github.com/rsuite/rsuite/commit/8ed7e6d57b7ccd930bd72017a0a8299be0c21515))
16
+
17
+
18
+
1
19
  ## [5.53.2](https://github.com/rsuite/rsuite/compare/v5.53.1...v5.53.2) (2024-02-06)
2
20
 
3
21
 
@@ -1737,7 +1737,6 @@ textarea.rs-input-sm {
1737
1737
  width: 100%;
1738
1738
  border: none;
1739
1739
  outline: none;
1740
- padding-right: 36px;
1741
1740
  }
1742
1741
  .rs-input-group.rs-input-group-inside .rs-input-group-btn,
1743
1742
  .rs-input-group.rs-input-group-inside .rs-input-group-addon {
@@ -1752,7 +1751,6 @@ textarea.rs-input-sm {
1752
1751
  background-color: transparent;
1753
1752
  border: none;
1754
1753
  color: inherit;
1755
- position: absolute;
1756
1754
  height: 34px;
1757
1755
  padding: 7px 11px;
1758
1756
  border-radius: 0 6px 6px 0;
@@ -1927,7 +1927,6 @@ textarea.rs-input-sm {
1927
1927
  width: 100%;
1928
1928
  border: none;
1929
1929
  outline: none;
1930
- padding-right: 36px;
1931
1930
  }
1932
1931
  .rs-input-group.rs-input-group-inside .rs-input-group-btn,
1933
1932
  .rs-input-group.rs-input-group-inside .rs-input-group-addon {
@@ -1942,7 +1941,6 @@ textarea.rs-input-sm {
1942
1941
  background-color: transparent;
1943
1942
  border: none;
1944
1943
  color: inherit;
1945
- position: absolute;
1946
1944
  height: 34px;
1947
1945
  padding: 7px 11px;
1948
1946
  border-radius: 0 6px 6px 0;
@@ -1742,7 +1742,6 @@ textarea.rs-input-sm {
1742
1742
  width: 100%;
1743
1743
  border: none;
1744
1744
  outline: none;
1745
- padding-right: 36px;
1746
1745
  }
1747
1746
  .rs-input-group.rs-input-group-inside .rs-input-group-btn,
1748
1747
  .rs-input-group.rs-input-group-inside .rs-input-group-addon {
@@ -1757,7 +1756,6 @@ textarea.rs-input-sm {
1757
1756
  background-color: transparent;
1758
1757
  border: none;
1759
1758
  color: inherit;
1760
- position: absolute;
1761
1759
  height: 34px;
1762
1760
  padding: 7px 11px;
1763
1761
  border-radius: 0 6px 6px 0;
@@ -1742,7 +1742,6 @@ textarea.rs-input-sm {
1742
1742
  width: 100%;
1743
1743
  border: none;
1744
1744
  outline: none;
1745
- padding-right: 36px;
1746
1745
  }
1747
1746
  .rs-input-group.rs-input-group-inside .rs-input-group-btn,
1748
1747
  .rs-input-group.rs-input-group-inside .rs-input-group-addon {
@@ -1757,7 +1756,6 @@ textarea.rs-input-sm {
1757
1756
  background-color: transparent;
1758
1757
  border: none;
1759
1758
  color: inherit;
1760
- position: absolute;
1761
1759
  height: 34px;
1762
1760
  padding: 7px 11px;
1763
1761
  border-radius: 0 6px 6px 0;
@@ -1459,7 +1459,6 @@ textarea.rs-input-sm {
1459
1459
  width: 100%;
1460
1460
  border: none;
1461
1461
  outline: none;
1462
- padding-right: 36px;
1463
1462
  }
1464
1463
  .rs-input-group.rs-input-group-inside .rs-input-group-btn,
1465
1464
  .rs-input-group.rs-input-group-inside .rs-input-group-addon {
@@ -1474,7 +1473,6 @@ textarea.rs-input-sm {
1474
1473
  background-color: transparent;
1475
1474
  border: none;
1476
1475
  color: inherit;
1477
- position: absolute;
1478
1476
  height: 34px;
1479
1477
  padding: 7px 11px;
1480
1478
  border-radius: 0 6px 6px 0;
@@ -1459,7 +1459,6 @@ textarea.rs-input-sm {
1459
1459
  width: 100%;
1460
1460
  border: none;
1461
1461
  outline: none;
1462
- padding-right: 36px;
1463
1462
  }
1464
1463
  .rs-input-group.rs-input-group-inside .rs-input-group-btn,
1465
1464
  .rs-input-group.rs-input-group-inside .rs-input-group-addon {
@@ -1474,7 +1473,6 @@ textarea.rs-input-sm {
1474
1473
  background-color: transparent;
1475
1474
  border: none;
1476
1475
  color: inherit;
1477
- position: absolute;
1478
1476
  height: 34px;
1479
1477
  padding: 7px 11px;
1480
1478
  border-radius: 0 6px 6px 0;
@@ -21,6 +21,9 @@
21
21
  margin-top: 8px;
22
22
  display: inline-block;
23
23
  }
24
+ .rs-form-group {
25
+ position: relative;
26
+ }
24
27
  .rs-form:not(.rs-form-inline) .rs-form-group:not(:last-child) {
25
28
  margin-bottom: 24px;
26
29
  }
@@ -6,6 +6,8 @@
6
6
  // --------------------------------------------------
7
7
 
8
8
  .rs-form-group {
9
+ position: relative;
10
+
9
11
  .rs-form:not(.rs-form-inline) &:not(:last-child) {
10
12
  margin-bottom: @form-group-margin-bottom;
11
13
  }
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "rsuite/InlineEdit",
3
+ "private": true,
4
+ "main": "../cjs/InlineEdit/index.js",
5
+ "module": "../esm/InlineEdit/index.js",
6
+ "types": "../esm/InlineEdit/index.d.ts"
7
+ }
@@ -0,0 +1,112 @@
1
+ :root,
2
+ .rs-theme-light {
3
+ --rs-gray-200: #e5e5ea;
4
+ --rs-gray-500: #a6a6a6;
5
+ --rs-inline-edit-hover-bg: var(--rs-gray-200);
6
+ }
7
+ .rs-theme-dark {
8
+ --rs-gray-200: #a4a9b3;
9
+ --rs-gray-500: #5c6066;
10
+ --rs-inline-edit-hover-bg: var(--rs-gray-500);
11
+ }
12
+ .rs-theme-high-contrast {
13
+ --rs-gray-200: #a4a9b3;
14
+ --rs-gray-500: #5c6066;
15
+ --rs-inline-edit-hover-bg: transparent;
16
+ }
17
+ /* stylelint-disable */
18
+ *[class*='rs-'] {
19
+ -webkit-box-sizing: border-box;
20
+ box-sizing: border-box;
21
+ }
22
+ *[class*='rs-']::before,
23
+ *[class*='rs-']::after {
24
+ -webkit-box-sizing: border-box;
25
+ box-sizing: border-box;
26
+ }
27
+ .rs-inline-edit {
28
+ position: relative;
29
+ display: inline-block;
30
+ }
31
+ .rs-inline-edit .rs-plaintext {
32
+ /* stylelint-disable */
33
+ padding: 7px 11px;
34
+ font-size: 14px;
35
+ line-height: 1.42857143;
36
+ /* stylelint-enable */
37
+ border-radius: 6px;
38
+ }
39
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
40
+ .rs-inline-edit .rs-plaintext {
41
+ height: 36px;
42
+ }
43
+ }
44
+ textarea.rs-inline-edit .rs-plaintext {
45
+ height: auto;
46
+ }
47
+ .rs-inline-edit .rs-plaintext:hover {
48
+ background-color: #e5e5ea;
49
+ background-color: var(--rs-inline-edit-hover-bg);
50
+ }
51
+ .rs-inline-edit-disabled .rs-plaintext:hover {
52
+ background-color: transparent;
53
+ }
54
+ .rs-inline-edit-controls {
55
+ position: absolute;
56
+ inset-block-start: 100%;
57
+ inset-inline-end: 0px;
58
+ -webkit-margin-before: 6px;
59
+ margin-block-start: 6px;
60
+ z-index: 7;
61
+ }
62
+ .rs-inline-edit-controls .rs-btn {
63
+ -webkit-box-shadow: 0 4px 4px rgba(0, 0, 0, 0.12), 0 0 10px rgba(0, 0, 0, 0.06);
64
+ box-shadow: 0 4px 4px rgba(0, 0, 0, 0.12), 0 0 10px rgba(0, 0, 0, 0.06);
65
+ }
66
+ .rs-inline-edit-xs .rs-plaintext {
67
+ /* stylelint-disable */
68
+ padding: 1px 11px;
69
+ font-size: 12px;
70
+ line-height: 1.66666667;
71
+ /* stylelint-enable */
72
+ }
73
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
74
+ .rs-inline-edit-xs .rs-plaintext {
75
+ height: 24px;
76
+ }
77
+ }
78
+ textarea.rs-inline-edit-xs .rs-plaintext {
79
+ height: auto;
80
+ }
81
+ .rs-inline-edit-lg .rs-plaintext {
82
+ /* stylelint-disable */
83
+ padding: 9px 11px;
84
+ font-size: 16px;
85
+ line-height: 1.375;
86
+ /* stylelint-enable */
87
+ }
88
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
89
+ .rs-inline-edit-lg .rs-plaintext {
90
+ height: 42px;
91
+ }
92
+ }
93
+ textarea.rs-inline-edit-lg .rs-plaintext {
94
+ height: auto;
95
+ }
96
+ .rs-inline-edit-sm .rs-plaintext {
97
+ /* stylelint-disable */
98
+ padding: 4px 11px;
99
+ font-size: 14px;
100
+ line-height: 1.42857143;
101
+ /* stylelint-enable */
102
+ }
103
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
104
+ .rs-inline-edit-sm .rs-plaintext {
105
+ height: 30px;
106
+ }
107
+ }
108
+ textarea.rs-inline-edit-sm .rs-plaintext {
109
+ height: auto;
110
+ }
111
+
112
+ /*# sourceMappingURL=index.css.map */
@@ -0,0 +1,48 @@
1
+ @import '../../styles/common';
2
+ @import '../../Form/styles/mixin.less';
3
+
4
+ .rs-inline-edit {
5
+ position: relative;
6
+ display: inline-block;
7
+
8
+ .rs-plaintext {
9
+ .input-md();
10
+ border-radius: 6px;
11
+
12
+ &:hover {
13
+ background-color: var(--rs-inline-edit-hover-bg);
14
+ }
15
+ }
16
+
17
+ &-disabled {
18
+ .rs-plaintext {
19
+ &:hover {
20
+ background-color: transparent;
21
+ }
22
+ }
23
+ }
24
+
25
+ &-controls {
26
+ position: absolute;
27
+ inset-block-start: 100%;
28
+ inset-inline-end: 0px;
29
+ margin-block-start: 6px;
30
+ z-index: 7;
31
+
32
+ .rs-btn {
33
+ box-shadow: 0 4px 4px rgba(0, 0, 0, 0.12), 0 0 10px rgba(0, 0, 0, 0.06);
34
+ }
35
+ }
36
+ }
37
+
38
+ .rs-inline-edit-xs .rs-plaintext {
39
+ .input-xs();
40
+ }
41
+
42
+ .rs-inline-edit-lg .rs-plaintext {
43
+ .input-lg();
44
+ }
45
+
46
+ .rs-inline-edit-sm .rs-plaintext {
47
+ .input-sm();
48
+ }
@@ -1245,7 +1245,6 @@
1245
1245
  width: 100%;
1246
1246
  border: none;
1247
1247
  outline: none;
1248
- padding-right: 36px;
1249
1248
  }
1250
1249
  .rs-input-group.rs-input-group-inside .rs-input-group-btn,
1251
1250
  .rs-input-group.rs-input-group-inside .rs-input-group-addon {
@@ -1260,7 +1259,6 @@
1260
1259
  background-color: transparent;
1261
1260
  border: none;
1262
1261
  color: inherit;
1263
- position: absolute;
1264
1262
  height: 34px;
1265
1263
  padding: 7px 11px;
1266
1264
  border-radius: 0 6px 6px 0;
@@ -126,7 +126,6 @@
126
126
  width: 100%;
127
127
  border: none;
128
128
  outline: none;
129
- padding-right: @input-group-padding-for-add-on-base;
130
129
  }
131
130
 
132
131
  .rs-input-group-btn,
@@ -139,7 +138,6 @@
139
138
  .rs-btn-subtle();
140
139
 
141
140
  color: inherit;
142
- position: absolute;
143
141
  .reset-inside-input-group-btn-size(base);
144
142
 
145
143
  &:focus {
@@ -1362,7 +1362,6 @@ textarea.rs-input-sm {
1362
1362
  width: 100%;
1363
1363
  border: none;
1364
1364
  outline: none;
1365
- padding-right: 36px;
1366
1365
  }
1367
1366
  .rs-input-group.rs-input-group-inside .rs-input-group-btn,
1368
1367
  .rs-input-group.rs-input-group-inside .rs-input-group-addon {
@@ -1377,7 +1376,6 @@ textarea.rs-input-sm {
1377
1376
  background-color: transparent;
1378
1377
  border: none;
1379
1378
  color: inherit;
1380
- position: absolute;
1381
1379
  height: 34px;
1382
1380
  padding: 7px 11px;
1383
1381
  border-radius: 0 6px 6px 0;
@@ -1832,7 +1832,6 @@ textarea.rs-input-sm {
1832
1832
  width: 100%;
1833
1833
  border: none;
1834
1834
  outline: none;
1835
- padding-right: 36px;
1836
1835
  }
1837
1836
  .rs-input-group.rs-input-group-inside .rs-input-group-btn,
1838
1837
  .rs-input-group.rs-input-group-inside .rs-input-group-addon {
@@ -1847,7 +1846,6 @@ textarea.rs-input-sm {
1847
1846
  background-color: transparent;
1848
1847
  border: none;
1849
1848
  color: inherit;
1850
- position: absolute;
1851
1849
  height: 34px;
1852
1850
  padding: 7px 11px;
1853
1851
  border-radius: 0 6px 6px 0;
@@ -1941,7 +1941,6 @@ textarea.rs-input-sm {
1941
1941
  width: 100%;
1942
1942
  border: none;
1943
1943
  outline: none;
1944
- padding-right: 36px;
1945
1944
  }
1946
1945
  .rs-input-group.rs-input-group-inside .rs-input-group-btn,
1947
1946
  .rs-input-group.rs-input-group-inside .rs-input-group-addon {
@@ -1956,7 +1955,6 @@ textarea.rs-input-sm {
1956
1955
  background-color: transparent;
1957
1956
  border: none;
1958
1957
  color: inherit;
1959
- position: absolute;
1960
1958
  height: 34px;
1961
1959
  padding: 7px 11px;
1962
1960
  border-radius: 0 6px 6px 0;
@@ -1873,7 +1873,6 @@ textarea.rs-input-sm {
1873
1873
  width: 100%;
1874
1874
  border: none;
1875
1875
  outline: none;
1876
- padding-right: 36px;
1877
1876
  }
1878
1877
  .rs-input-group.rs-input-group-inside .rs-input-group-btn,
1879
1878
  .rs-input-group.rs-input-group-inside .rs-input-group-addon {
@@ -1888,7 +1887,6 @@ textarea.rs-input-sm {
1888
1887
  background-color: transparent;
1889
1888
  border: none;
1890
1889
  color: inherit;
1891
- position: absolute;
1892
1890
  height: 34px;
1893
1891
  padding: 7px 11px;
1894
1892
  border-radius: 0 6px 6px 0;
@@ -1740,7 +1740,6 @@ textarea.rs-input-sm {
1740
1740
  width: 100%;
1741
1741
  border: none;
1742
1742
  outline: none;
1743
- padding-right: 36px;
1744
1743
  }
1745
1744
  .rs-input-group.rs-input-group-inside .rs-input-group-btn,
1746
1745
  .rs-input-group.rs-input-group-inside .rs-input-group-addon {
@@ -1755,7 +1754,6 @@ textarea.rs-input-sm {
1755
1754
  background-color: transparent;
1756
1755
  border: none;
1757
1756
  color: inherit;
1758
- position: absolute;
1759
1757
  height: 34px;
1760
1758
  padding: 7px 11px;
1761
1759
  border-radius: 0 6px 6px 0;
@@ -2051,7 +2051,6 @@ textarea.rs-input-sm {
2051
2051
  width: 100%;
2052
2052
  border: none;
2053
2053
  outline: none;
2054
- padding-right: 36px;
2055
2054
  }
2056
2055
  .rs-input-group.rs-input-group-inside .rs-input-group-btn,
2057
2056
  .rs-input-group.rs-input-group-inside .rs-input-group-addon {
@@ -2066,7 +2065,6 @@ textarea.rs-input-sm {
2066
2065
  background-color: transparent;
2067
2066
  border: none;
2068
2067
  color: inherit;
2069
- position: absolute;
2070
2068
  height: 34px;
2071
2069
  padding: 7px 11px;
2072
2070
  border-radius: 0 6px 6px 0;
@@ -3627,8 +3625,7 @@ textarea.rs-picker-search-input {
3627
3625
  display: contents;
3628
3626
  }
3629
3627
  .rs-plaintext .rs-tag {
3630
- margin-left: 6px;
3631
- margin-bottom: 6px;
3628
+ margin: 0;
3632
3629
  }
3633
3630
  .rs-picker-disabled-options .rs-picker-toggle {
3634
3631
  padding-right: 32px !important;
@@ -2051,7 +2051,6 @@ textarea.rs-input-sm {
2051
2051
  width: 100%;
2052
2052
  border: none;
2053
2053
  outline: none;
2054
- padding-right: 36px;
2055
2054
  }
2056
2055
  .rs-input-group.rs-input-group-inside .rs-input-group-btn,
2057
2056
  .rs-input-group.rs-input-group-inside .rs-input-group-addon {
@@ -2066,7 +2065,6 @@ textarea.rs-input-sm {
2066
2065
  background-color: transparent;
2067
2066
  border: none;
2068
2067
  color: inherit;
2069
- position: absolute;
2070
2068
  height: 34px;
2071
2069
  padding: 7px 11px;
2072
2070
  border-radius: 0 6px 6px 0;
@@ -3627,8 +3625,7 @@ textarea.rs-picker-search-input {
3627
3625
  display: contents;
3628
3626
  }
3629
3627
  .rs-plaintext .rs-tag {
3630
- margin-left: 6px;
3631
- margin-bottom: 6px;
3628
+ margin: 0;
3632
3629
  }
3633
3630
 
3634
3631
  /*# sourceMappingURL=index.css.map */
@@ -66,6 +66,5 @@
66
66
  }
67
67
 
68
68
  .rs-plaintext .rs-tag {
69
- margin-left: 6px;
70
- margin-bottom: 6px;
69
+ margin: 0;
71
70
  }
@@ -443,7 +443,7 @@ var DatePicker = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
443
443
  locale: locale,
444
444
  disabledShortcut: disabledToolbarHandle,
445
445
  onShortcutClick: handleShortcutPageDate
446
- }), /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_CalendarContainer.default, (0, _extends2.default)({}, calendarProps, {
446
+ }), /*#__PURE__*/_react.default.createElement(_Stack.default.Item, null, /*#__PURE__*/_react.default.createElement(_CalendarContainer.default, (0, _extends2.default)({}, calendarProps, {
447
447
  targetId: id,
448
448
  locale: locale,
449
449
  showWeekNumbers: showWeekNumbers,
@@ -674,6 +674,11 @@ var DateRangePicker = /*#__PURE__*/_react.default.forwardRef(function (props, re
674
674
  if (!value) {
675
675
  return false;
676
676
  }
677
+
678
+ // If the value is an empty array, it is not an error value.
679
+ if (Array.isArray(value) && value.length === 0) {
680
+ return false;
681
+ }
677
682
  var startDate = value[0],
678
683
  endDate = value[1];
679
684
  if (!(0, _dateUtils.isValid)(startDate) || !(0, _dateUtils.isValid)(endDate)) {
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { type StackProps } from '../Stack';
3
+ interface EditableControlsProps extends StackProps {
4
+ onSave: () => void;
5
+ onCancel: () => void;
6
+ }
7
+ declare const EditableControls: React.ForwardRefExoticComponent<EditableControlsProps & React.RefAttributes<HTMLDivElement>>;
8
+ export default EditableControls;
@@ -0,0 +1,34 @@
1
+ 'use client';
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ exports.__esModule = true;
6
+ exports.default = void 0;
7
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
8
+ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
9
+ var _react = _interopRequireDefault(require("react"));
10
+ var _Check = _interopRequireDefault(require("@rsuite/icons/Check"));
11
+ var _Close = _interopRequireDefault(require("@rsuite/icons/Close"));
12
+ var _IconButton = _interopRequireDefault(require("../IconButton"));
13
+ var _Stack = _interopRequireDefault(require("../Stack"));
14
+ var EditableControls = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
15
+ var onSave = props.onSave,
16
+ onCancel = props.onCancel,
17
+ rest = (0, _objectWithoutPropertiesLoose2.default)(props, ["onSave", "onCancel"]);
18
+ return /*#__PURE__*/_react.default.createElement(_Stack.default, (0, _extends2.default)({
19
+ ref: ref,
20
+ spacing: 6
21
+ }, rest), /*#__PURE__*/_react.default.createElement(_IconButton.default, {
22
+ size: "sm",
23
+ icon: /*#__PURE__*/_react.default.createElement(_Check.default, null),
24
+ "aria-label": "Save",
25
+ onClick: onSave
26
+ }), /*#__PURE__*/_react.default.createElement(_IconButton.default, {
27
+ size: "sm",
28
+ icon: /*#__PURE__*/_react.default.createElement(_Close.default, null),
29
+ "aria-label": "Cancel",
30
+ onClick: onCancel
31
+ }));
32
+ });
33
+ var _default = EditableControls;
34
+ exports.default = _default;
@@ -0,0 +1,56 @@
1
+ import React from 'react';
2
+ import { WithAsProps, RsRefForwardingComponent } from '../@types/common';
3
+ import { type ChildrenProps } from './renderChildren';
4
+ export interface InlineEditProps extends WithAsProps {
5
+ /**
6
+ * If true, the InlineEdit will be disabled.
7
+ */
8
+ disabled?: boolean;
9
+ /**
10
+ * The initial value of the InlineEdit when it is not controlled.
11
+ */
12
+ defaultValue?: any;
13
+ /**
14
+ * The value of the InlineEdit.
15
+ */
16
+ value?: any;
17
+ /**
18
+ * show the control buttons when editing.
19
+ * @default true
20
+ */
21
+ showControls?: boolean;
22
+ /**
23
+ * The placeholder of the InlineEdit.
24
+ */
25
+ placeholder?: string;
26
+ /**
27
+ * The size of the InlineEdit.
28
+ */
29
+ size?: 'lg' | 'md' | 'sm' | 'xs';
30
+ /**
31
+ * The state of the InlineEdit when it is blurred.
32
+ */
33
+ stateOnBlur?: 'save' | 'cancel';
34
+ /**
35
+ * The callback function that is called when the value of the InlineEdit is changed.
36
+ */
37
+ onChange?: (value: any, event: React.ChangeEvent) => void;
38
+ /**
39
+ * The callback function that is called when the InlineEdit is canceled.
40
+ */
41
+ onCancel?: (event?: React.SyntheticEvent) => void;
42
+ /**
43
+ * The callback function that is called when the InlineEdit is saved.
44
+ */
45
+ onSave?: (event?: React.SyntheticEvent) => void;
46
+ /**
47
+ * The callback function that is called when the InlineEdit is clicked.
48
+ */
49
+ onEdit?: (event: React.SyntheticEvent) => void;
50
+ /**
51
+ * The render function of the InlineEdit.
52
+ */
53
+ children?: ((props: ChildrenProps, ref: React.Ref<any>) => React.ReactElement) | React.ReactElement;
54
+ }
55
+ declare const InlineEdit: RsRefForwardingComponent<'div', InlineEditProps>;
56
+ export default InlineEdit;