rsuite 5.53.2 → 5.55.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.
- package/AutoComplete/styles/index.css +0 -2
- package/CHANGELOG.md +36 -0
- package/Cascader/styles/index.css +0 -2
- package/CheckPicker/styles/index.css +0 -2
- package/CheckTree/styles/index.css +0 -2
- package/CheckTreePicker/styles/index.css +0 -2
- package/DatePicker/styles/index.css +0 -2
- package/DateRangePicker/styles/index.css +0 -2
- package/FormGroup/styles/index.css +3 -0
- package/FormGroup/styles/index.less +2 -0
- package/InlineEdit/package.json +7 -0
- package/InlineEdit/styles/index.css +112 -0
- package/InlineEdit/styles/index.less +48 -0
- package/InputGroup/styles/index.css +0 -2
- package/InputGroup/styles/index.less +0 -2
- package/InputNumber/styles/index.css +0 -2
- package/InputPicker/styles/index.css +0 -2
- package/MultiCascader/styles/index.css +0 -2
- package/Pagination/styles/index.css +3 -2
- package/Pagination/styles/pagination-group.less +4 -0
- package/SelectPicker/styles/index.css +0 -2
- package/TagInput/styles/index.css +1 -4
- package/TagPicker/styles/index.css +1 -4
- package/TagPicker/styles/index.less +1 -2
- package/cjs/Calendar/CalendarContainer.d.ts +4 -0
- package/cjs/Calendar/CalendarContainer.js +3 -1
- package/cjs/Calendar/TableCell.js +3 -2
- package/cjs/Calendar/types.d.ts +1 -0
- package/cjs/Cascader/DropdownMenu.js +3 -1
- package/cjs/Cascader/TreeView.js +3 -1
- package/cjs/DOMHelper/index.d.ts +23 -32
- package/cjs/DatePicker/DatePicker.d.ts +6 -0
- package/cjs/DatePicker/DatePicker.js +4 -3
- package/cjs/DateRangePicker/DateRangePicker.js +8 -2
- package/cjs/InlineEdit/EditableControls.d.ts +8 -0
- package/cjs/InlineEdit/EditableControls.js +34 -0
- package/cjs/InlineEdit/InlineEdit.d.ts +56 -0
- package/cjs/InlineEdit/InlineEdit.js +98 -0
- package/cjs/InlineEdit/index.d.ts +3 -0
- package/cjs/InlineEdit/index.js +9 -0
- package/cjs/InlineEdit/renderChildren.d.ts +12 -0
- package/cjs/InlineEdit/renderChildren.js +40 -0
- package/cjs/InlineEdit/useEditState.d.ts +22 -0
- package/cjs/InlineEdit/useEditState.js +82 -0
- package/cjs/InlineEdit/useFocusEvent.d.ts +14 -0
- package/cjs/InlineEdit/useFocusEvent.js +61 -0
- package/cjs/Input/Input.js +6 -3
- package/cjs/InputNumber/InputNumber.d.ts +36 -11
- package/cjs/InputNumber/InputNumber.js +47 -28
- package/cjs/InputPicker/InputPicker.js +6 -5
- package/cjs/Pagination/LimitPicker.d.ts +15 -0
- package/cjs/Pagination/LimitPicker.js +51 -0
- package/cjs/Pagination/Pagination.js +7 -8
- package/cjs/Pagination/PaginationButton.js +3 -18
- package/cjs/Pagination/PaginationGroup.d.ts +35 -7
- package/cjs/Pagination/PaginationGroup.js +77 -98
- package/cjs/RangeSlider/RangeSlider.js +14 -11
- package/cjs/Slider/Handle.js +19 -62
- package/cjs/Slider/ProgressBar.js +2 -1
- package/cjs/Slider/Slider.d.ts +2 -0
- package/cjs/Slider/Slider.js +18 -12
- package/cjs/Slider/useDrag.d.ts +16 -0
- package/cjs/Slider/useDrag.js +88 -0
- package/cjs/Slider/utils.d.ts +6 -2
- package/cjs/Slider/utils.js +15 -1
- package/cjs/index.d.ts +2 -0
- package/cjs/index.js +3 -1
- package/cjs/internals/Overlay/positionUtils.d.ts +1 -6
- package/cjs/internals/Picker/Listbox.d.ts +5 -1
- package/cjs/internals/Picker/Listbox.js +6 -5
- package/cjs/internals/Picker/hooks/usePickerRef.js +2 -0
- package/cjs/internals/Picker/types.d.ts +2 -0
- package/cjs/internals/symbols.d.ts +2 -0
- package/cjs/internals/symbols.js +9 -0
- package/cjs/locales/cs_CZ.d.ts +120 -0
- package/cjs/locales/cs_CZ.js +88 -0
- package/cjs/locales/index.d.ts +1 -0
- package/cjs/locales/index.js +4 -2
- package/cjs/utils/getDataGroupBy.d.ts +0 -1
- package/cjs/utils/getDataGroupBy.js +3 -5
- package/dist/rsuite-no-reset-rtl.css +94 -4
- package/dist/rsuite-no-reset-rtl.min.css +1 -1
- package/dist/rsuite-no-reset-rtl.min.css.map +1 -1
- package/dist/rsuite-no-reset.css +94 -4
- package/dist/rsuite-no-reset.min.css +1 -1
- package/dist/rsuite-no-reset.min.css.map +1 -1
- package/dist/rsuite-rtl.css +94 -4
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +94 -4
- package/dist/rsuite.js +171 -61
- package/dist/rsuite.js.map +1 -1
- package/dist/rsuite.min.css +1 -1
- package/dist/rsuite.min.css.map +1 -1
- package/dist/rsuite.min.js +1 -1
- package/dist/rsuite.min.js.map +1 -1
- package/esm/Calendar/CalendarContainer.d.ts +4 -0
- package/esm/Calendar/CalendarContainer.js +3 -1
- package/esm/Calendar/TableCell.js +5 -4
- package/esm/Calendar/types.d.ts +1 -0
- package/esm/Cascader/DropdownMenu.js +3 -1
- package/esm/Cascader/TreeView.js +3 -1
- package/esm/DOMHelper/index.d.ts +23 -32
- package/esm/DatePicker/DatePicker.d.ts +6 -0
- package/esm/DatePicker/DatePicker.js +4 -3
- package/esm/DateRangePicker/DateRangePicker.js +8 -2
- package/esm/InlineEdit/EditableControls.d.ts +8 -0
- package/esm/InlineEdit/EditableControls.js +28 -0
- package/esm/InlineEdit/InlineEdit.d.ts +56 -0
- package/esm/InlineEdit/InlineEdit.js +92 -0
- package/esm/InlineEdit/index.d.ts +3 -0
- package/esm/InlineEdit/index.js +3 -0
- package/esm/InlineEdit/renderChildren.d.ts +12 -0
- package/esm/InlineEdit/renderChildren.js +34 -0
- package/esm/InlineEdit/useEditState.d.ts +22 -0
- package/esm/InlineEdit/useEditState.js +76 -0
- package/esm/InlineEdit/useFocusEvent.d.ts +14 -0
- package/esm/InlineEdit/useFocusEvent.js +56 -0
- package/esm/Input/Input.js +6 -3
- package/esm/InputNumber/InputNumber.d.ts +36 -11
- package/esm/InputNumber/InputNumber.js +49 -30
- package/esm/InputPicker/InputPicker.js +6 -5
- package/esm/Pagination/LimitPicker.d.ts +15 -0
- package/esm/Pagination/LimitPicker.js +44 -0
- package/esm/Pagination/Pagination.js +7 -7
- package/esm/Pagination/PaginationButton.js +4 -18
- package/esm/Pagination/PaginationGroup.d.ts +35 -7
- package/esm/Pagination/PaginationGroup.js +79 -98
- package/esm/RangeSlider/RangeSlider.js +15 -12
- package/esm/Slider/Handle.js +19 -61
- package/esm/Slider/ProgressBar.js +2 -1
- package/esm/Slider/Slider.d.ts +2 -0
- package/esm/Slider/Slider.js +20 -14
- package/esm/Slider/useDrag.d.ts +16 -0
- package/esm/Slider/useDrag.js +82 -0
- package/esm/Slider/utils.d.ts +6 -2
- package/esm/Slider/utils.js +15 -3
- package/esm/index.d.ts +2 -0
- package/esm/index.js +1 -0
- package/esm/internals/Overlay/positionUtils.d.ts +1 -6
- package/esm/internals/Picker/Listbox.d.ts +5 -1
- package/esm/internals/Picker/Listbox.js +7 -6
- package/esm/internals/Picker/hooks/usePickerRef.js +2 -0
- package/esm/internals/Picker/types.d.ts +2 -0
- package/esm/internals/symbols.d.ts +2 -0
- package/esm/internals/symbols.js +3 -0
- package/esm/locales/cs_CZ.d.ts +120 -0
- package/esm/locales/cs_CZ.js +82 -0
- package/esm/locales/index.d.ts +1 -0
- package/esm/locales/index.js +2 -1
- package/esm/utils/getDataGroupBy.d.ts +0 -1
- package/esm/utils/getDataGroupBy.js +2 -3
- package/locales/cs_CZ/package.json +7 -0
- package/package.json +2 -2
- package/styles/color-modes/dark.less +3 -0
- package/styles/color-modes/high-contrast.less +3 -0
- package/styles/color-modes/light.less +3 -0
- 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,39 @@
|
|
|
1
|
+
# [5.55.0](https://github.com/rsuite/rsuite/compare/v5.54.0...v5.55.0) (2024-03-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **DateRangePicker:** fix time picker does not update when clicking the shortcut item ([#3647](https://github.com/rsuite/rsuite/issues/3647)) ([00c9eaa](https://github.com/rsuite/rsuite/commit/00c9eaa9b246da027c729fb3cf3639001473d4fe))
|
|
7
|
+
* **Pagination:** fix SelectPicker rendering misalignment ([#3643](https://github.com/rsuite/rsuite/issues/3643)) ([044c48f](https://github.com/rsuite/rsuite/commit/044c48f3e358f93bc7568bc83242e7ea6348825e))
|
|
8
|
+
* **Slider,RangeSlider:** fix touch event not working ([#3653](https://github.com/rsuite/rsuite/issues/3653)) ([3d57ebc](https://github.com/rsuite/rsuite/commit/3d57ebcaebafa3207b84987ba7e80cd4c38a2741))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* added czech locale ([#3649](https://github.com/rsuite/rsuite/issues/3649)) ([f589257](https://github.com/rsuite/rsuite/commit/f58925757314da09dd2a2ee0706321860a32ab13))
|
|
14
|
+
* **DatePicker:** add support `renderCell` on `<DatePicker>` ([#3641](https://github.com/rsuite/rsuite/issues/3641)) ([b63d1a3](https://github.com/rsuite/rsuite/commit/b63d1a37b0289383dbe0099481609097e1c4a436))
|
|
15
|
+
* **InputNumber:** add support for `formatter` on `<InputNumber>` ([#3642](https://github.com/rsuite/rsuite/issues/3642)) ([d457d3a](https://github.com/rsuite/rsuite/commit/d457d3a67d929fa02780e4d012844756361c7c68))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# [5.54.0](https://github.com/rsuite/rsuite/compare/v5.53.2...v5.54.0) (2024-02-22)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* **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))
|
|
25
|
+
* **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))
|
|
26
|
+
* **InputGroup:** fix Input padding issue in InputGroup ([#3600](https://github.com/rsuite/rsuite/issues/3600)) ([56b3792](https://github.com/rsuite/rsuite/commit/56b379297e237aa26aff0140cd93ec3a7314e5f4))
|
|
27
|
+
* **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))
|
|
28
|
+
* 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))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
* **InlineEdit:** add support for InlineEdit ([#3614](https://github.com/rsuite/rsuite/issues/3614)) ([8ed7e6d](https://github.com/rsuite/rsuite/commit/8ed7e6d57b7ccd930bd72017a0a8299be0c21515))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
1
37
|
## [5.53.2](https://github.com/rsuite/rsuite/compare/v5.53.1...v5.53.2) (2024-02-06)
|
|
2
38
|
|
|
3
39
|
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -3446,6 +3444,9 @@ textarea.rs-input-group-inside.rs-input-group-xs > .rs-input-group-btn {
|
|
|
3446
3444
|
.rs-pagination-group .rs-pagination {
|
|
3447
3445
|
vertical-align: middle;
|
|
3448
3446
|
}
|
|
3447
|
+
.rs-pagination-group-limit {
|
|
3448
|
+
position: relative;
|
|
3449
|
+
}
|
|
3449
3450
|
.rs-pagination-group-limit + .rs-pagination-group-total {
|
|
3450
3451
|
margin-left: 18px;
|
|
3451
3452
|
}
|
|
@@ -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
|
|
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
|
|
3631
|
-
margin-bottom: 6px;
|
|
3628
|
+
margin: 0;
|
|
3632
3629
|
}
|
|
3633
3630
|
|
|
3634
3631
|
/*# sourceMappingURL=index.css.map */
|
|
@@ -58,6 +58,10 @@ export interface CalendarProps extends WithAsProps, Omit<HTMLAttributes<HTMLDivE
|
|
|
58
58
|
onSelect?: (date: Date, event: React.MouseEvent) => void;
|
|
59
59
|
/** Custom rendering cell*/
|
|
60
60
|
renderCell?: (date: Date) => React.ReactNode;
|
|
61
|
+
/**
|
|
62
|
+
* Custom rendering cell on the picker
|
|
63
|
+
*/
|
|
64
|
+
renderCellOnPicker?: (date: Date) => React.ReactNode;
|
|
61
65
|
/** Custom cell classes base on it's date */
|
|
62
66
|
cellClassName?: (date: Date) => string | undefined;
|
|
63
67
|
/** Called when opening the month view */
|
|
@@ -50,12 +50,13 @@ var CalendarContainer = /*#__PURE__*/_react.default.forwardRef(function (props,
|
|
|
50
50
|
calendarDateProp = props.calendarDate,
|
|
51
51
|
cellClassName = props.cellClassName,
|
|
52
52
|
renderCell = props.renderCell,
|
|
53
|
+
renderCellOnPicker = props.renderCellOnPicker,
|
|
53
54
|
renderTitle = props.renderTitle,
|
|
54
55
|
renderToolbar = props.renderToolbar,
|
|
55
56
|
showMeridian = props.showMeridian,
|
|
56
57
|
showWeekNumbers = props.showWeekNumbers,
|
|
57
58
|
inline = props.inline,
|
|
58
|
-
rest = (0, _objectWithoutPropertiesLoose2.default)(props, ["as", "className", "classPrefix", "dateRange", "disabledBackward", "defaultState", "disabledDate", "disabledForward", "format", "hoverRangeValue", "isoWeek", "targetId", "limitEndYear", "limitStartYear", "locale", "onChangeMonth", "onChangeTime", "onMouseMove", "onMoveBackward", "onMoveForward", "onSelect", "onToggleMeridian", "onToggleMonthDropdown", "onToggleTimeDropdown", "calendarDate", "cellClassName", "renderCell", "renderTitle", "renderToolbar", "showMeridian", "showWeekNumbers", "inline"]);
|
|
59
|
+
rest = (0, _objectWithoutPropertiesLoose2.default)(props, ["as", "className", "classPrefix", "dateRange", "disabledBackward", "defaultState", "disabledDate", "disabledForward", "format", "hoverRangeValue", "isoWeek", "targetId", "limitEndYear", "limitStartYear", "locale", "onChangeMonth", "onChangeTime", "onMouseMove", "onMoveBackward", "onMoveForward", "onSelect", "onToggleMeridian", "onToggleMonthDropdown", "onToggleTimeDropdown", "calendarDate", "cellClassName", "renderCell", "renderCellOnPicker", "renderTitle", "renderToolbar", "showMeridian", "showWeekNumbers", "inline"]);
|
|
59
60
|
var _useClassNames = (0, _utils.useClassNames)(classPrefix),
|
|
60
61
|
withClassPrefix = _useClassNames.withClassPrefix,
|
|
61
62
|
merge = _useClassNames.merge,
|
|
@@ -140,6 +141,7 @@ var CalendarContainer = /*#__PURE__*/_react.default.forwardRef(function (props,
|
|
|
140
141
|
onSelect: onSelect,
|
|
141
142
|
cellClassName: cellClassName,
|
|
142
143
|
renderCell: renderCell,
|
|
144
|
+
renderCellOnPicker: renderCellOnPicker,
|
|
143
145
|
showWeekNumbers: showWeekNumbers,
|
|
144
146
|
inline: inline
|
|
145
147
|
};
|
|
@@ -30,6 +30,7 @@ var TableCell = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
30
30
|
onMouseMove = _useCalendarContext.onMouseMove,
|
|
31
31
|
cellClassName = _useCalendarContext.cellClassName,
|
|
32
32
|
renderCell = _useCalendarContext.renderCell,
|
|
33
|
+
renderCellOnPicker = _useCalendarContext.renderCellOnPicker,
|
|
33
34
|
overrideLocale = _useCalendarContext.locale;
|
|
34
35
|
var _useClassNames = (0, _utils.useClassNames)(classPrefix),
|
|
35
36
|
prefix = _useClassNames.prefix,
|
|
@@ -63,9 +64,9 @@ var TableCell = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
63
64
|
onClick: onSelect ? (0, _partial.default)(onSelect, date, disabled) : undefined
|
|
64
65
|
}, rest), /*#__PURE__*/_react.default.createElement("div", {
|
|
65
66
|
className: prefix('cell-content')
|
|
66
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
67
|
+
}, renderCellOnPicker ? renderCellOnPicker(date) : /*#__PURE__*/_react.default.createElement("span", {
|
|
67
68
|
className: prefix('cell-day')
|
|
68
|
-
},
|
|
69
|
+
}, (0, _dateUtils.getDate)(date)), renderCell === null || renderCell === void 0 ? void 0 : renderCell(date)));
|
|
69
70
|
});
|
|
70
71
|
TableCell.displayName = 'CalendarTableCell';
|
|
71
72
|
var _default = TableCell;
|
package/cjs/Calendar/types.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export interface CalendarInnerContextValue {
|
|
|
13
13
|
onMouseMove?: (date: Date) => void;
|
|
14
14
|
onSelect?: (date: Date, event: React.MouseEvent) => void;
|
|
15
15
|
renderCell?: (date: Date) => React.ReactNode;
|
|
16
|
+
renderCellOnPicker?: (date: Date) => React.ReactNode;
|
|
16
17
|
cellClassName?: (date: Date) => string | undefined;
|
|
17
18
|
showWeekNumbers?: boolean;
|
|
18
19
|
inline?: boolean;
|
|
@@ -71,7 +71,9 @@ var TreeView = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
71
71
|
if (activeItem) {
|
|
72
72
|
var position = (0, _getPosition.default)(activeItem, column);
|
|
73
73
|
// Let the active option scroll into view.
|
|
74
|
-
|
|
74
|
+
if (position !== null && position !== void 0 && position.top) {
|
|
75
|
+
(0, _scrollTop.default)(column, position === null || position === void 0 ? void 0 : position.top);
|
|
76
|
+
}
|
|
75
77
|
}
|
|
76
78
|
});
|
|
77
79
|
}, [prefix]);
|
package/cjs/Cascader/TreeView.js
CHANGED
|
@@ -71,7 +71,9 @@ var TreeView = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
71
71
|
if (activeItem) {
|
|
72
72
|
var position = (0, _getPosition.default)(activeItem, column);
|
|
73
73
|
// Let the active option scroll into view.
|
|
74
|
-
|
|
74
|
+
if (position !== null && position !== void 0 && position.top) {
|
|
75
|
+
(0, _scrollTop.default)(column, position === null || position === void 0 ? void 0 : position.top);
|
|
76
|
+
}
|
|
75
77
|
}
|
|
76
78
|
});
|
|
77
79
|
}, [prefix]);
|