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-rtl.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;
|
|
@@ -4022,7 +4038,7 @@ tbody.rs-anim-collapse.rs-anim-in {
|
|
|
4022
4038
|
vertical-align: middle;
|
|
4023
4039
|
font-weight: normal;
|
|
4024
4040
|
margin-top: 0;
|
|
4025
|
-
margin-
|
|
4041
|
+
margin-left: 10px;
|
|
4026
4042
|
}
|
|
4027
4043
|
.rs-plaintext .rs-checkbox-inline:first-child {
|
|
4028
4044
|
margin-right: 0;
|
|
@@ -4185,12 +4201,14 @@ label:hover .rs-checkbox-wrapper .rs-checkbox-inner::before {
|
|
|
4185
4201
|
-ms-flex-direction: column;
|
|
4186
4202
|
flex-direction: column;
|
|
4187
4203
|
}
|
|
4204
|
+
.rs-checkbox-group > .rs-checkbox {
|
|
4205
|
+
margin-right: -10px;
|
|
4206
|
+
}
|
|
4188
4207
|
.rs-checkbox-group-inline {
|
|
4189
4208
|
-webkit-box-orient: horizontal;
|
|
4190
4209
|
-webkit-box-direction: normal;
|
|
4191
4210
|
-ms-flex-direction: row;
|
|
4192
4211
|
flex-direction: row;
|
|
4193
|
-
margin-right: -10px;
|
|
4194
4212
|
}
|
|
4195
4213
|
.rs-picker-check-menu-items {
|
|
4196
4214
|
margin-bottom: 6px;
|
|
@@ -12624,7 +12642,7 @@ textarea.rs-picker-menu .rs-picker-search-bar .rs-picker-search-bar-input {
|
|
|
12624
12642
|
vertical-align: middle;
|
|
12625
12643
|
font-weight: normal;
|
|
12626
12644
|
margin-top: 0;
|
|
12627
|
-
margin-
|
|
12645
|
+
margin-left: 10px;
|
|
12628
12646
|
}
|
|
12629
12647
|
.rs-plaintext .rs-radio-inline:first-child {
|
|
12630
12648
|
margin-right: 0;
|
|
@@ -12774,12 +12792,14 @@ textarea.rs-picker-menu .rs-picker-search-bar .rs-picker-search-bar-input {
|
|
|
12774
12792
|
-ms-flex-direction: column;
|
|
12775
12793
|
flex-direction: column;
|
|
12776
12794
|
}
|
|
12795
|
+
.rs-radio-group > .rs-radio {
|
|
12796
|
+
margin-right: -10px;
|
|
12797
|
+
}
|
|
12777
12798
|
.rs-radio-group-inline {
|
|
12778
12799
|
-webkit-box-orient: horizontal;
|
|
12779
12800
|
-webkit-box-direction: normal;
|
|
12780
12801
|
-ms-flex-direction: row;
|
|
12781
12802
|
flex-direction: row;
|
|
12782
|
-
margin-right: -10px;
|
|
12783
12803
|
}
|
|
12784
12804
|
.rs-radio-group-picker {
|
|
12785
12805
|
display: -webkit-inline-box;
|
|
@@ -13030,6 +13050,74 @@ textarea.rs-picker-menu .rs-picker-search-bar .rs-picker-search-bar-input {
|
|
|
13030
13050
|
color: #8e8e93;
|
|
13031
13051
|
color: var(--rs-text-secondary);
|
|
13032
13052
|
}
|
|
13053
|
+
.rs-radio-tile {
|
|
13054
|
+
border-radius: 6px;
|
|
13055
|
+
overflow: hidden;
|
|
13056
|
+
border: 2px solid #d9d9d9;
|
|
13057
|
+
border: 2px solid var(--rs-radio-tile-border);
|
|
13058
|
+
padding: 10px;
|
|
13059
|
+
position: relative;
|
|
13060
|
+
cursor: pointer;
|
|
13061
|
+
}
|
|
13062
|
+
.rs-radio-tile-label {
|
|
13063
|
+
font-weight: bold;
|
|
13064
|
+
}
|
|
13065
|
+
.rs-radio-tile-content {
|
|
13066
|
+
color: #8e8e93;
|
|
13067
|
+
color: var(--rs-text-secondary);
|
|
13068
|
+
}
|
|
13069
|
+
.rs-radio-tile-mark {
|
|
13070
|
+
background: #3498ff;
|
|
13071
|
+
background: var(--rs-radio-tile-checked-color);
|
|
13072
|
+
border-bottom-right-radius: 50%;
|
|
13073
|
+
height: 48px;
|
|
13074
|
+
position: absolute;
|
|
13075
|
+
left: -24px;
|
|
13076
|
+
top: -24px;
|
|
13077
|
+
width: 48px;
|
|
13078
|
+
z-index: 3;
|
|
13079
|
+
opacity: 0;
|
|
13080
|
+
}
|
|
13081
|
+
.rs-radio-tile-mark-icon {
|
|
13082
|
+
position: absolute;
|
|
13083
|
+
font-size: 16px;
|
|
13084
|
+
top: 25px;
|
|
13085
|
+
right: 7px;
|
|
13086
|
+
color: #fff;
|
|
13087
|
+
color: var(--rs-radio-tile-checked-mark-color);
|
|
13088
|
+
}
|
|
13089
|
+
.rs-radio-tile-checked .rs-radio-tile-mark {
|
|
13090
|
+
opacity: 1;
|
|
13091
|
+
}
|
|
13092
|
+
.rs-radio-tile-checked.rs-radio-tile-disabled {
|
|
13093
|
+
border-color: #cce9ff;
|
|
13094
|
+
border-color: var(--rs-radio-tile-checked-disabled-color);
|
|
13095
|
+
}
|
|
13096
|
+
.rs-radio-tile-checked.rs-radio-tile-disabled .rs-radio-tile-mark {
|
|
13097
|
+
background-color: #cce9ff;
|
|
13098
|
+
background-color: var(--rs-radio-tile-checked-disabled-color);
|
|
13099
|
+
}
|
|
13100
|
+
.rs-radio-tile-checked,
|
|
13101
|
+
.rs-radio-tile:hover:not(.rs-radio-tile-disabled) {
|
|
13102
|
+
border: 2px solid #3498ff;
|
|
13103
|
+
border: 2px solid var(--rs-radio-tile-checked-color);
|
|
13104
|
+
}
|
|
13105
|
+
.rs-radio-tile-disabled,
|
|
13106
|
+
.rs-radio-tile-disabled .rs-radio-tile-content {
|
|
13107
|
+
color: #c5c6c7;
|
|
13108
|
+
color: var(--rs-text-disabled);
|
|
13109
|
+
cursor: not-allowed;
|
|
13110
|
+
}
|
|
13111
|
+
.rs-radio-tile input {
|
|
13112
|
+
opacity: 0;
|
|
13113
|
+
width: 0;
|
|
13114
|
+
height: 0;
|
|
13115
|
+
position: absolute;
|
|
13116
|
+
}
|
|
13117
|
+
.rs-radio-tile-icon {
|
|
13118
|
+
font-size: 32px;
|
|
13119
|
+
font-size: var(--rs-radio-tile-icon-size);
|
|
13120
|
+
}
|
|
13033
13121
|
.rs-ripple {
|
|
13034
13122
|
position: absolute;
|
|
13035
13123
|
display: block;
|