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.
Files changed (51) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/Checkbox/styles/mixin.less +1 -1
  3. package/CheckboxGroup/styles/index.less +4 -1
  4. package/RadioGroup/styles/index.less +4 -1
  5. package/RadioTile/package.json +7 -0
  6. package/RadioTile/styles/index.less +69 -0
  7. package/RadioTileGroup/package.json +7 -0
  8. package/RadioTileGroup/styles/index.less +1 -0
  9. package/cjs/InputPicker/InputPicker.js +1 -1
  10. package/cjs/RadioTile/RadioTile.d.ts +25 -0
  11. package/cjs/RadioTile/RadioTile.js +128 -0
  12. package/cjs/RadioTile/index.d.ts +3 -0
  13. package/cjs/RadioTile/index.js +11 -0
  14. package/cjs/RadioTileGroup/RadioTileGroup.d.ts +23 -0
  15. package/cjs/RadioTileGroup/RadioTileGroup.js +89 -0
  16. package/cjs/RadioTileGroup/index.d.ts +3 -0
  17. package/cjs/RadioTileGroup/index.js +11 -0
  18. package/cjs/index.d.ts +4 -0
  19. package/cjs/index.js +9 -1
  20. package/dist/rsuite-no-reset-rtl.css +92 -4
  21. package/dist/rsuite-no-reset-rtl.min.css +1 -1
  22. package/dist/rsuite-no-reset-rtl.min.css.map +1 -1
  23. package/dist/rsuite-no-reset.css +92 -4
  24. package/dist/rsuite-no-reset.min.css +1 -1
  25. package/dist/rsuite-no-reset.min.css.map +1 -1
  26. package/dist/rsuite-rtl.css +92 -4
  27. package/dist/rsuite-rtl.min.css +1 -1
  28. package/dist/rsuite-rtl.min.css.map +1 -1
  29. package/dist/rsuite.css +92 -4
  30. package/dist/rsuite.js +50 -6
  31. package/dist/rsuite.js.map +1 -1
  32. package/dist/rsuite.min.css +1 -1
  33. package/dist/rsuite.min.css.map +1 -1
  34. package/dist/rsuite.min.js +1 -1
  35. package/dist/rsuite.min.js.map +1 -1
  36. package/esm/InputPicker/InputPicker.js +1 -1
  37. package/esm/RadioTile/RadioTile.d.ts +25 -0
  38. package/esm/RadioTile/RadioTile.js +108 -0
  39. package/esm/RadioTile/index.d.ts +3 -0
  40. package/esm/RadioTile/index.js +2 -0
  41. package/esm/RadioTileGroup/RadioTileGroup.d.ts +23 -0
  42. package/esm/RadioTileGroup/RadioTileGroup.js +69 -0
  43. package/esm/RadioTileGroup/index.d.ts +3 -0
  44. package/esm/RadioTileGroup/index.js +2 -0
  45. package/esm/index.d.ts +4 -0
  46. package/esm/index.js +2 -0
  47. package/package.json +2 -2
  48. package/styles/color-modes/dark.less +7 -0
  49. package/styles/color-modes/high-contrast.less +7 -0
  50. package/styles/color-modes/light.less +8 -0
  51. package/styles/index.less +1 -0
@@ -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;
@@ -3892,7 +3908,7 @@ tbody.rs-anim-collapse.rs-anim-in {
3892
3908
  vertical-align: middle;
3893
3909
  font-weight: normal;
3894
3910
  margin-top: 0;
3895
- margin-left: 10px;
3911
+ margin-right: 10px;
3896
3912
  }
3897
3913
  .rs-plaintext .rs-checkbox-inline:first-child {
3898
3914
  margin-left: 0;
@@ -4057,12 +4073,14 @@ label:hover .rs-checkbox-wrapper .rs-checkbox-inner::before {
4057
4073
  -ms-flex-direction: column;
4058
4074
  flex-direction: column;
4059
4075
  }
4076
+ .rs-checkbox-group > .rs-checkbox {
4077
+ margin-left: -10px;
4078
+ }
4060
4079
  .rs-checkbox-group-inline {
4061
4080
  -webkit-box-orient: horizontal;
4062
4081
  -webkit-box-direction: normal;
4063
4082
  -ms-flex-direction: row;
4064
4083
  flex-direction: row;
4065
- margin-left: -10px;
4066
4084
  }
4067
4085
  .rs-picker-check-menu-items {
4068
4086
  margin-bottom: 6px;
@@ -12508,7 +12526,7 @@ textarea.rs-picker-menu .rs-picker-search-bar .rs-picker-search-bar-input {
12508
12526
  vertical-align: middle;
12509
12527
  font-weight: normal;
12510
12528
  margin-top: 0;
12511
- margin-left: 10px;
12529
+ margin-right: 10px;
12512
12530
  }
12513
12531
  .rs-plaintext .rs-radio-inline:first-child {
12514
12532
  margin-left: 0;
@@ -12658,12 +12676,14 @@ textarea.rs-picker-menu .rs-picker-search-bar .rs-picker-search-bar-input {
12658
12676
  -ms-flex-direction: column;
12659
12677
  flex-direction: column;
12660
12678
  }
12679
+ .rs-radio-group > .rs-radio {
12680
+ margin-left: -10px;
12681
+ }
12661
12682
  .rs-radio-group-inline {
12662
12683
  -webkit-box-orient: horizontal;
12663
12684
  -webkit-box-direction: normal;
12664
12685
  -ms-flex-direction: row;
12665
12686
  flex-direction: row;
12666
- margin-left: -10px;
12667
12687
  }
12668
12688
  .rs-radio-group-picker {
12669
12689
  display: -webkit-inline-box;
@@ -12914,6 +12934,74 @@ textarea.rs-picker-menu .rs-picker-search-bar .rs-picker-search-bar-input {
12914
12934
  color: #8e8e93;
12915
12935
  color: var(--rs-text-secondary);
12916
12936
  }
12937
+ .rs-radio-tile {
12938
+ border-radius: 6px;
12939
+ overflow: hidden;
12940
+ border: 2px solid #d9d9d9;
12941
+ border: 2px solid var(--rs-radio-tile-border);
12942
+ padding: 10px;
12943
+ position: relative;
12944
+ cursor: pointer;
12945
+ }
12946
+ .rs-radio-tile-label {
12947
+ font-weight: bold;
12948
+ }
12949
+ .rs-radio-tile-content {
12950
+ color: #8e8e93;
12951
+ color: var(--rs-text-secondary);
12952
+ }
12953
+ .rs-radio-tile-mark {
12954
+ background: #3498ff;
12955
+ background: var(--rs-radio-tile-checked-color);
12956
+ border-bottom-left-radius: 50%;
12957
+ height: 48px;
12958
+ position: absolute;
12959
+ right: -24px;
12960
+ top: -24px;
12961
+ width: 48px;
12962
+ z-index: 3;
12963
+ opacity: 0;
12964
+ }
12965
+ .rs-radio-tile-mark-icon {
12966
+ position: absolute;
12967
+ font-size: 16px;
12968
+ top: 25px;
12969
+ left: 7px;
12970
+ color: #fff;
12971
+ color: var(--rs-radio-tile-checked-mark-color);
12972
+ }
12973
+ .rs-radio-tile-checked .rs-radio-tile-mark {
12974
+ opacity: 1;
12975
+ }
12976
+ .rs-radio-tile-checked.rs-radio-tile-disabled {
12977
+ border-color: #cce9ff;
12978
+ border-color: var(--rs-radio-tile-checked-disabled-color);
12979
+ }
12980
+ .rs-radio-tile-checked.rs-radio-tile-disabled .rs-radio-tile-mark {
12981
+ background-color: #cce9ff;
12982
+ background-color: var(--rs-radio-tile-checked-disabled-color);
12983
+ }
12984
+ .rs-radio-tile-checked,
12985
+ .rs-radio-tile:hover:not(.rs-radio-tile-disabled) {
12986
+ border: 2px solid #3498ff;
12987
+ border: 2px solid var(--rs-radio-tile-checked-color);
12988
+ }
12989
+ .rs-radio-tile-disabled,
12990
+ .rs-radio-tile-disabled .rs-radio-tile-content {
12991
+ color: #c5c6c7;
12992
+ color: var(--rs-text-disabled);
12993
+ cursor: not-allowed;
12994
+ }
12995
+ .rs-radio-tile input {
12996
+ opacity: 0;
12997
+ width: 0;
12998
+ height: 0;
12999
+ position: absolute;
13000
+ }
13001
+ .rs-radio-tile-icon {
13002
+ font-size: 32px;
13003
+ font-size: var(--rs-radio-tile-icon-size);
13004
+ }
12917
13005
  .rs-ripple {
12918
13006
  position: absolute;
12919
13007
  display: block;