rsuite 5.34.0 → 5.35.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/CHANGELOG.md +13 -0
- package/Checkbox/styles/mixin.less +1 -1
- package/CheckboxGroup/styles/index.less +4 -1
- package/RadioGroup/styles/index.less +4 -1
- package/RadioTile/package.json +7 -0
- package/RadioTile/styles/index.less +69 -0
- package/RadioTileGroup/package.json +7 -0
- package/RadioTileGroup/styles/index.less +1 -0
- package/cjs/InputPicker/InputPicker.js +1 -1
- package/cjs/RadioTile/RadioTile.d.ts +25 -0
- package/cjs/RadioTile/RadioTile.js +128 -0
- package/cjs/RadioTile/index.d.ts +3 -0
- package/cjs/RadioTile/index.js +11 -0
- package/cjs/RadioTileGroup/RadioTileGroup.d.ts +23 -0
- package/cjs/RadioTileGroup/RadioTileGroup.js +89 -0
- package/cjs/RadioTileGroup/index.d.ts +3 -0
- package/cjs/RadioTileGroup/index.js +11 -0
- package/cjs/index.d.ts +4 -0
- package/cjs/index.js +9 -1
- package/dist/rsuite-no-reset-rtl.css +92 -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 +92 -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 +92 -4
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +92 -4
- package/dist/rsuite.js +50 -6
- 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/InputPicker/InputPicker.js +1 -1
- package/esm/RadioTile/RadioTile.d.ts +25 -0
- package/esm/RadioTile/RadioTile.js +108 -0
- package/esm/RadioTile/index.d.ts +3 -0
- package/esm/RadioTile/index.js +2 -0
- package/esm/RadioTileGroup/RadioTileGroup.d.ts +23 -0
- package/esm/RadioTileGroup/RadioTileGroup.js +69 -0
- package/esm/RadioTileGroup/index.d.ts +3 -0
- package/esm/RadioTileGroup/index.js +2 -0
- package/esm/index.d.ts +4 -0
- package/esm/index.js +2 -0
- package/package.json +2 -2
- package/styles/color-modes/dark.less +7 -0
- package/styles/color-modes/high-contrast.less +7 -0
- package/styles/color-modes/light.less +8 -0
- package/styles/index.less +1 -0
package/dist/rsuite.css
CHANGED
|
@@ -261,6 +261,12 @@
|
|
|
261
261
|
--rs-radio-border: #d9d9d9;
|
|
262
262
|
--rs-radio-checked-bg: #3498ff;
|
|
263
263
|
--rs-radio-disabled-bg: #f7f7fa;
|
|
264
|
+
--rs-radio-tile-border: #d9d9d9;
|
|
265
|
+
--rs-radio-tile-bg: #fff;
|
|
266
|
+
--rs-radio-tile-checked-color: #3498ff;
|
|
267
|
+
--rs-radio-tile-checked-mark-color: #fff;
|
|
268
|
+
--rs-radio-tile-checked-disabled-color: #cce9ff;
|
|
269
|
+
--rs-radio-tile-icon-size: 32px;
|
|
264
270
|
--rs-rate-symbol: #8e8e93;
|
|
265
271
|
--rs-rate-symbol-checked: #ffb300;
|
|
266
272
|
--rs-toggle-bg: #d9d9d9;
|
|
@@ -585,6 +591,11 @@
|
|
|
585
591
|
--rs-radio-border: #6a6f76;
|
|
586
592
|
--rs-radio-checked-bg: #34c3ff;
|
|
587
593
|
--rs-radio-disabled-bg: #5c6066;
|
|
594
|
+
--rs-radio-tile-border: #858b94;
|
|
595
|
+
--rs-radio-tile-bg: #fff;
|
|
596
|
+
--rs-radio-tile-checked-color: #34c3ff;
|
|
597
|
+
--rs-radio-tile-checked-mark-color: #1a1d24;
|
|
598
|
+
--rs-radio-tile-checked-disabled-color: #006199;
|
|
588
599
|
--rs-rate-symbol: #3c3f43;
|
|
589
600
|
--rs-rate-symbol-checked: #ffb300;
|
|
590
601
|
--rs-toggle-bg: #6a6f76;
|
|
@@ -916,6 +927,11 @@
|
|
|
916
927
|
--rs-radio-border: #cbced4;
|
|
917
928
|
--rs-radio-checked-bg: #ffff00;
|
|
918
929
|
--rs-radio-disabled-bg: #5c6066;
|
|
930
|
+
--rs-radio-tile-border: #858b94;
|
|
931
|
+
--rs-radio-tile-bg: #fff;
|
|
932
|
+
--rs-radio-tile-checked-color: #ffff00;
|
|
933
|
+
--rs-radio-tile-checked-mark-color: #1a1d24;
|
|
934
|
+
--rs-radio-tile-checked-disabled-color: #8f9900;
|
|
919
935
|
--rs-rate-symbol: #cbced4;
|
|
920
936
|
--rs-rate-symbol-checked: #ffff00;
|
|
921
937
|
--rs-toggle-bg: #1a1d24;
|
|
@@ -4024,7 +4040,7 @@ tbody.rs-anim-collapse.rs-anim-in {
|
|
|
4024
4040
|
vertical-align: middle;
|
|
4025
4041
|
font-weight: normal;
|
|
4026
4042
|
margin-top: 0;
|
|
4027
|
-
margin-
|
|
4043
|
+
margin-right: 10px;
|
|
4028
4044
|
}
|
|
4029
4045
|
.rs-plaintext .rs-checkbox-inline:first-child {
|
|
4030
4046
|
margin-left: 0;
|
|
@@ -4189,12 +4205,14 @@ label:hover .rs-checkbox-wrapper .rs-checkbox-inner::before {
|
|
|
4189
4205
|
-ms-flex-direction: column;
|
|
4190
4206
|
flex-direction: column;
|
|
4191
4207
|
}
|
|
4208
|
+
.rs-checkbox-group > .rs-checkbox {
|
|
4209
|
+
margin-left: -10px;
|
|
4210
|
+
}
|
|
4192
4211
|
.rs-checkbox-group-inline {
|
|
4193
4212
|
-webkit-box-orient: horizontal;
|
|
4194
4213
|
-webkit-box-direction: normal;
|
|
4195
4214
|
-ms-flex-direction: row;
|
|
4196
4215
|
flex-direction: row;
|
|
4197
|
-
margin-left: -10px;
|
|
4198
4216
|
}
|
|
4199
4217
|
.rs-picker-check-menu-items {
|
|
4200
4218
|
margin-bottom: 6px;
|
|
@@ -12640,7 +12658,7 @@ textarea.rs-picker-menu .rs-picker-search-bar .rs-picker-search-bar-input {
|
|
|
12640
12658
|
vertical-align: middle;
|
|
12641
12659
|
font-weight: normal;
|
|
12642
12660
|
margin-top: 0;
|
|
12643
|
-
margin-
|
|
12661
|
+
margin-right: 10px;
|
|
12644
12662
|
}
|
|
12645
12663
|
.rs-plaintext .rs-radio-inline:first-child {
|
|
12646
12664
|
margin-left: 0;
|
|
@@ -12790,12 +12808,14 @@ textarea.rs-picker-menu .rs-picker-search-bar .rs-picker-search-bar-input {
|
|
|
12790
12808
|
-ms-flex-direction: column;
|
|
12791
12809
|
flex-direction: column;
|
|
12792
12810
|
}
|
|
12811
|
+
.rs-radio-group > .rs-radio {
|
|
12812
|
+
margin-left: -10px;
|
|
12813
|
+
}
|
|
12793
12814
|
.rs-radio-group-inline {
|
|
12794
12815
|
-webkit-box-orient: horizontal;
|
|
12795
12816
|
-webkit-box-direction: normal;
|
|
12796
12817
|
-ms-flex-direction: row;
|
|
12797
12818
|
flex-direction: row;
|
|
12798
|
-
margin-left: -10px;
|
|
12799
12819
|
}
|
|
12800
12820
|
.rs-radio-group-picker {
|
|
12801
12821
|
display: -webkit-inline-box;
|
|
@@ -13046,6 +13066,74 @@ textarea.rs-picker-menu .rs-picker-search-bar .rs-picker-search-bar-input {
|
|
|
13046
13066
|
color: #8e8e93;
|
|
13047
13067
|
color: var(--rs-text-secondary);
|
|
13048
13068
|
}
|
|
13069
|
+
.rs-radio-tile {
|
|
13070
|
+
border-radius: 6px;
|
|
13071
|
+
overflow: hidden;
|
|
13072
|
+
border: 2px solid #d9d9d9;
|
|
13073
|
+
border: 2px solid var(--rs-radio-tile-border);
|
|
13074
|
+
padding: 10px;
|
|
13075
|
+
position: relative;
|
|
13076
|
+
cursor: pointer;
|
|
13077
|
+
}
|
|
13078
|
+
.rs-radio-tile-label {
|
|
13079
|
+
font-weight: bold;
|
|
13080
|
+
}
|
|
13081
|
+
.rs-radio-tile-content {
|
|
13082
|
+
color: #8e8e93;
|
|
13083
|
+
color: var(--rs-text-secondary);
|
|
13084
|
+
}
|
|
13085
|
+
.rs-radio-tile-mark {
|
|
13086
|
+
background: #3498ff;
|
|
13087
|
+
background: var(--rs-radio-tile-checked-color);
|
|
13088
|
+
border-bottom-left-radius: 50%;
|
|
13089
|
+
height: 48px;
|
|
13090
|
+
position: absolute;
|
|
13091
|
+
right: -24px;
|
|
13092
|
+
top: -24px;
|
|
13093
|
+
width: 48px;
|
|
13094
|
+
z-index: 3;
|
|
13095
|
+
opacity: 0;
|
|
13096
|
+
}
|
|
13097
|
+
.rs-radio-tile-mark-icon {
|
|
13098
|
+
position: absolute;
|
|
13099
|
+
font-size: 16px;
|
|
13100
|
+
top: 25px;
|
|
13101
|
+
left: 7px;
|
|
13102
|
+
color: #fff;
|
|
13103
|
+
color: var(--rs-radio-tile-checked-mark-color);
|
|
13104
|
+
}
|
|
13105
|
+
.rs-radio-tile-checked .rs-radio-tile-mark {
|
|
13106
|
+
opacity: 1;
|
|
13107
|
+
}
|
|
13108
|
+
.rs-radio-tile-checked.rs-radio-tile-disabled {
|
|
13109
|
+
border-color: #cce9ff;
|
|
13110
|
+
border-color: var(--rs-radio-tile-checked-disabled-color);
|
|
13111
|
+
}
|
|
13112
|
+
.rs-radio-tile-checked.rs-radio-tile-disabled .rs-radio-tile-mark {
|
|
13113
|
+
background-color: #cce9ff;
|
|
13114
|
+
background-color: var(--rs-radio-tile-checked-disabled-color);
|
|
13115
|
+
}
|
|
13116
|
+
.rs-radio-tile-checked,
|
|
13117
|
+
.rs-radio-tile:hover:not(.rs-radio-tile-disabled) {
|
|
13118
|
+
border: 2px solid #3498ff;
|
|
13119
|
+
border: 2px solid var(--rs-radio-tile-checked-color);
|
|
13120
|
+
}
|
|
13121
|
+
.rs-radio-tile-disabled,
|
|
13122
|
+
.rs-radio-tile-disabled .rs-radio-tile-content {
|
|
13123
|
+
color: #c5c6c7;
|
|
13124
|
+
color: var(--rs-text-disabled);
|
|
13125
|
+
cursor: not-allowed;
|
|
13126
|
+
}
|
|
13127
|
+
.rs-radio-tile input {
|
|
13128
|
+
opacity: 0;
|
|
13129
|
+
width: 0;
|
|
13130
|
+
height: 0;
|
|
13131
|
+
position: absolute;
|
|
13132
|
+
}
|
|
13133
|
+
.rs-radio-tile-icon {
|
|
13134
|
+
font-size: 32px;
|
|
13135
|
+
font-size: var(--rs-radio-tile-icon-size);
|
|
13136
|
+
}
|
|
13049
13137
|
.rs-ripple {
|
|
13050
13138
|
position: absolute;
|
|
13051
13139
|
display: block;
|