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
@@ -18,11 +18,9 @@ export default function CustomProvider(props) {
18
18
  const {
19
19
  children,
20
20
  classPrefix = getClassNamePrefix(),
21
- components,
22
21
  iconClassPrefix = classPrefix,
23
22
  theme,
24
23
  toastContainer = defaultToasterContainer,
25
- disableRipple,
26
24
  csp,
27
25
  disableInlineStyles,
28
26
  ...rest
@@ -38,13 +36,12 @@ export default function CustomProvider(props) {
38
36
  });
39
37
  const value = useMemo(() => ({
40
38
  classPrefix,
39
+ csp,
41
40
  theme,
42
41
  toasters,
43
- disableRipple,
44
- components,
45
42
  toastContainer,
46
43
  ...rest
47
- }), [classPrefix, theme, disableRipple, components, toastContainer, rest]);
44
+ }), [classPrefix, csp, theme, toastContainer, rest]);
48
45
  const iconContext = useMemo(() => ({
49
46
  classPrefix: iconClassPrefix,
50
47
  csp,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rsuite",
3
- "version": "6.1.1",
3
+ "version": "6.1.2",
4
4
  "description": "A suite of react components",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",
package/styles/_base.scss CHANGED
@@ -18,20 +18,3 @@
18
18
  box-sizing: border-box;
19
19
  }
20
20
  }
21
-
22
- // Document-level styles
23
- // 1. Remove tap highlight on iOS devices
24
- // 2. Set base font size for rem calculations
25
- html {
26
- -webkit-tap-highlight-color: transparent; // 1
27
- font-size: 16px; // 2
28
- }
29
-
30
- // Base typography and document styles
31
- body {
32
- font-family: var(--rs-font-family-base);
33
- font-size: var(--rs-font-size-sm);
34
- line-height: var(--rs-line-height-md);
35
- color: var(--rs-text-primary);
36
- background-color: var(--rs-body);
37
- }
@@ -1,3 +1,11 @@
1
+ // Document-level styles
2
+ // 1. Remove tap highlight on iOS devices
3
+ // 2. Set base font size for rem calculations (customizable via --rs-html-font-size)
4
+ html {
5
+ -webkit-tap-highlight-color: transparent; // 1
6
+ font-size: var(--rs-html-font-size); // 2
7
+ }
8
+
1
9
  body {
2
10
  // Remove default margin.
3
11
  margin: 0;
@@ -5,6 +13,13 @@ body {
5
13
  // Optimize for the retina screen
6
14
  -webkit-font-smoothing: antialiased;
7
15
  -moz-osx-font-smoothing: grayscale;
16
+
17
+ // Base typography and document styles
18
+ font-family: var(--rs-font-family-base);
19
+ font-size: var(--rs-font-size-sm);
20
+ line-height: var(--rs-line-height-md);
21
+ color: var(--rs-text-primary);
22
+ background-color: var(--rs-body);
8
23
  }
9
24
 
10
25
  // Address `[hidden]` styling not present in IE 10.
@@ -4,6 +4,9 @@
4
4
  @use 'color-modes/high-contrast' as high-contrast-theme;
5
5
 
6
6
  :root {
7
+ // HTML base font size (used for rem calculations)
8
+ --rs-html-font-size: 16px;
9
+
7
10
  // Font family
8
11
  --rs-font-family-base: -apple-system, BlinkMacSystemFont, Arial, Helvetica, 'PingFang SC',
9
12
  'Hiragino Sans GB', 'Microsoft YaHei', STXihei, sans-serif;