rsuite 6.1.1 → 6.1.2

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 (120) hide show
  1. package/Accordion/styles/index.css +0 -22
  2. package/AutoComplete/styles/index.css +0 -17
  3. package/Avatar/styles/index.css +0 -28
  4. package/AvatarGroup/styles/index.css +0 -44
  5. package/Badge/styles/index.css +0 -28
  6. package/Box/styles/index.css +0 -47
  7. package/Breadcrumb/styles/index.css +0 -30
  8. package/Button/styles/index.css +0 -21
  9. package/ButtonGroup/styles/index.css +0 -47
  10. package/ButtonToolbar/styles/index.css +0 -44
  11. package/CHANGELOG.md +10 -0
  12. package/Calendar/styles/index.css +0 -17
  13. package/Card/styles/index.css +0 -28
  14. package/CardGroup/styles/index.css +0 -47
  15. package/Carousel/styles/index.css +0 -31
  16. package/CascadeTree/styles/index.css +0 -20
  17. package/Cascader/styles/index.css +0 -17
  18. package/Center/styles/index.css +0 -47
  19. package/CheckPicker/styles/index.css +0 -17
  20. package/CheckTree/styles/index.css +0 -17
  21. package/CheckTreePicker/styles/index.css +0 -17
  22. package/Checkbox/styles/index.css +0 -25
  23. package/CheckboxGroup/styles/index.css +0 -44
  24. package/Container/styles/index.css +0 -47
  25. package/Content/styles/index.css +0 -47
  26. package/DateInput/styles/index.css +0 -20
  27. package/DatePicker/styles/index.css +0 -17
  28. package/DateRangeInput/styles/index.css +0 -20
  29. package/DateRangePicker/styles/index.css +0 -17
  30. package/Divider/styles/index.css +0 -33
  31. package/Drawer/styles/index.css +0 -25
  32. package/Dropdown/styles/index.css +0 -17
  33. package/FlexboxGrid/styles/index.css +0 -47
  34. package/Footer/styles/index.css +0 -47
  35. package/Form/styles/index.css +0 -47
  36. package/FormControl/styles/index.css +0 -44
  37. package/FormControlLabel/styles/index.css +0 -37
  38. package/FormErrorMessage/styles/index.css +0 -34
  39. package/FormGroup/styles/index.css +0 -43
  40. package/FormHelpText/styles/index.css +0 -34
  41. package/FormStack/styles/index.css +0 -44
  42. package/Grid/styles/index.css +0 -44
  43. package/Header/styles/index.css +0 -47
  44. package/Heading/styles/index.css +0 -44
  45. package/HeadingGroup/styles/index.css +0 -47
  46. package/Highlight/styles/index.css +0 -34
  47. package/IconButton/styles/index.css +0 -21
  48. package/Image/styles/index.css +0 -34
  49. package/InlineEdit/styles/index.css +0 -20
  50. package/Input/styles/index.css +0 -20
  51. package/InputGroup/styles/index.css +0 -18
  52. package/InputNumber/styles/index.css +0 -17
  53. package/InputPicker/styles/index.css +0 -17
  54. package/Kbd/styles/index.css +0 -27
  55. package/Link/styles/index.css +0 -44
  56. package/List/styles/index.css +0 -28
  57. package/Loader/styles/index.css +0 -21
  58. package/Menu/styles/index.css +0 -21
  59. package/Message/styles/index.css +0 -18
  60. package/Modal/styles/index.css +0 -25
  61. package/MultiCascadeTree/styles/index.css +0 -17
  62. package/MultiCascader/styles/index.css +0 -17
  63. package/Nav/styles/index.css +0 -17
  64. package/Navbar/styles/index.css +0 -17
  65. package/Notification/styles/index.css +0 -19
  66. package/NumberInput/styles/index.css +0 -17
  67. package/Pagination/styles/index.css +0 -17
  68. package/Panel/styles/index.css +0 -22
  69. package/PanelGroup/styles/index.css +0 -34
  70. package/PasswordInput/styles/index.css +0 -17
  71. package/PasswordStrengthMeter/styles/index.css +0 -34
  72. package/PinInput/styles/index.css +0 -20
  73. package/Placeholder/styles/index.css +0 -28
  74. package/Popover/styles/index.css +0 -27
  75. package/Progress/styles/_progress-line.scss +1 -0
  76. package/Progress/styles/index.css +1 -33
  77. package/ProgressCircle/styles/index.css +0 -34
  78. package/README.md +5 -4
  79. package/Radio/styles/index.css +0 -25
  80. package/RadioGroup/styles/index.css +0 -23
  81. package/RadioTile/styles/index.css +0 -31
  82. package/RangeSlider/styles/index.css +0 -25
  83. package/Rate/styles/index.css +0 -34
  84. package/SelectPicker/styles/index.css +0 -17
  85. package/Sidebar/styles/index.css +0 -47
  86. package/Sidenav/styles/index.css +0 -17
  87. package/Slider/styles/index.css +0 -25
  88. package/Stack/styles/index.css +0 -44
  89. package/Stat/styles/index.css +0 -21
  90. package/StatGroup/styles/index.css +0 -47
  91. package/Steps/styles/index.css +0 -23
  92. package/Table/styles/index.css +0 -18
  93. package/Tabs/styles/index.css +0 -17
  94. package/Tag/styles/index.css +0 -17
  95. package/TagGroup/styles/index.css +0 -47
  96. package/TagInput/styles/index.css +0 -17
  97. package/TagPicker/styles/index.css +0 -17
  98. package/Text/styles/index.css +0 -23
  99. package/Textarea/styles/index.css +0 -47
  100. package/TimePicker/styles/index.css +0 -17
  101. package/TimeRangePicker/styles/index.css +0 -17
  102. package/Timeline/styles/index.css +0 -34
  103. package/Toggle/styles/index.css +0 -21
  104. package/Tooltip/styles/index.css +0 -25
  105. package/Tree/styles/index.css +0 -17
  106. package/TreePicker/styles/index.css +0 -17
  107. package/Uploader/styles/index.css +0 -18
  108. package/cjs/CustomProvider/CustomProvider.js +2 -5
  109. package/dist/rsuite-no-reset.css +2 -13
  110. package/dist/rsuite-no-reset.min.css +1 -1
  111. package/dist/rsuite.css +12 -13
  112. package/dist/rsuite.js +1 -1
  113. package/dist/rsuite.min.css +1 -1
  114. package/dist/rsuite.min.js +1 -1
  115. package/dist/rsuite.min.js.map +1 -1
  116. package/esm/CustomProvider/CustomProvider.js +2 -5
  117. package/package.json +1 -1
  118. package/styles/_base.scss +0 -17
  119. package/styles/_css-reset.scss +15 -0
  120. package/styles/_themes.scss +3 -0
@@ -1,19 +1,6 @@
1
1
  *[class*=rs-],*[class*=rs-]::before, *[class*=rs-]::after{
2
2
  box-sizing:border-box;
3
3
  }
4
-
5
- html{
6
- -webkit-tap-highlight-color:transparent;
7
- font-size:16px;
8
- }
9
-
10
- body{
11
- font-family:var(--rs-font-family-base);
12
- font-size:var(--rs-font-size-sm);
13
- line-height:var(--rs-line-height-md);
14
- color:var(--rs-text-primary);
15
- background-color:var(--rs-body);
16
- }
17
4
  :root{
18
5
  --rs-gray-0:#fff;
19
6
  --rs-gray-50:#f7f7fa;
@@ -84,7 +71,6 @@ body{
84
71
  --rs-violet-800:#470C99;
85
72
  --rs-violet-900:#390085;
86
73
  --rs-state-error:var(--rs-color-red);
87
- --rs-body:var(--rs-gray-0);
88
74
  --rs-text-primary:var(--rs-gray-800);
89
75
  --rs-text-secondary:var(--rs-gray-600);
90
76
  --rs-border-primary:var(--rs-gray-200);
@@ -206,7 +192,6 @@ body{
206
192
  --rs-violet-800:#470C99;
207
193
  --rs-violet-900:#390085;
208
194
  --rs-state-error:var(--rs-color-red);
209
- --rs-body:var(--rs-gray-900);
210
195
  --rs-text-primary:var(--rs-gray-50);
211
196
  --rs-text-secondary:var(--rs-gray-200);
212
197
  --rs-border-primary:var(--rs-gray-600);
@@ -327,7 +312,6 @@ body{
327
312
  --rs-violet-800:#470C99;
328
313
  --rs-violet-900:#390085;
329
314
  --rs-state-error:var(--rs-color-red);
330
- --rs-body:var(--rs-gray-900);
331
315
  --rs-text-primary:var(--rs-gray-50);
332
316
  --rs-text-secondary:var(--rs-gray-200);
333
317
  --rs-border-primary:var(--rs-gray-100);
@@ -381,12 +365,10 @@ body{
381
365
  }
382
366
 
383
367
  :root{
384
- --rs-font-family-base:-apple-system, BlinkMacSystemFont, Arial, Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", STXihei, sans-serif;
385
368
  --rs-font-size-xs:0.75rem;
386
369
  --rs-font-size-sm:0.875rem;
387
370
  --rs-font-size-md:1rem;
388
371
  --rs-line-height-base:20px;
389
- --rs-line-height-md:calc(20 / 14);
390
372
  --rs-spacing:0.25rem;
391
373
  --rs-padding-inline-md:12px;
392
374
  --rs-padding-block-md:8px;
@@ -24,11 +24,9 @@ function CustomProvider(props) {
24
24
  const {
25
25
  children,
26
26
  classPrefix = (0, _utils.getClassNamePrefix)(),
27
- components,
28
27
  iconClassPrefix = classPrefix,
29
28
  theme,
30
29
  toastContainer = _ToastContainer.defaultToasterContainer,
31
- disableRipple,
32
30
  csp,
33
31
  disableInlineStyles,
34
32
  ...rest
@@ -44,13 +42,12 @@ function CustomProvider(props) {
44
42
  });
45
43
  const value = (0, _react.useMemo)(() => ({
46
44
  classPrefix,
45
+ csp,
47
46
  theme,
48
47
  toasters,
49
- disableRipple,
50
- components,
51
48
  toastContainer,
52
49
  ...rest
53
- }), [classPrefix, theme, disableRipple, components, toastContainer, rest]);
50
+ }), [classPrefix, csp, theme, toastContainer, rest]);
54
51
  const iconContext = (0, _react.useMemo)(() => ({
55
52
  classPrefix: iconClassPrefix,
56
53
  csp,
@@ -1194,6 +1194,7 @@
1194
1194
  }
1195
1195
 
1196
1196
  :root{
1197
+ --rs-html-font-size:16px;
1197
1198
  --rs-font-family-base:-apple-system, BlinkMacSystemFont, Arial, Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", STXihei, sans-serif;
1198
1199
  --rs-font-family-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
1199
1200
  --rs-font-size-4xs:0.375rem;
@@ -1291,19 +1292,6 @@
1291
1292
  box-sizing:border-box;
1292
1293
  }
1293
1294
 
1294
- html{
1295
- -webkit-tap-highlight-color:transparent;
1296
- font-size:16px;
1297
- }
1298
-
1299
- body{
1300
- font-family:var(--rs-font-family-base);
1301
- font-size:var(--rs-font-size-sm);
1302
- line-height:var(--rs-line-height-md);
1303
- color:var(--rs-text-primary);
1304
- background-color:var(--rs-body);
1305
- }
1306
-
1307
1295
  @media (max-width: calc(576px - 1px)){
1308
1296
  [data-visible-from=xs]{
1309
1297
  display:none !important;
@@ -11677,6 +11665,7 @@ label:hover .rs-checkbox-control .rs-checkbox-inner::before{
11677
11665
  align-items:center;
11678
11666
  width:100%;
11679
11667
  gap:calc(var(--rs-spacing) * 3);
11668
+ font-size:var(--rs-font-size-sm);
11680
11669
  }
11681
11670
  .rs-progress-line:where([data-status=active]) .rs-progress-line-stroke{
11682
11671
  position:relative;