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.
- package/Accordion/styles/index.css +0 -22
- package/AutoComplete/styles/index.css +0 -17
- package/Avatar/styles/index.css +0 -28
- package/AvatarGroup/styles/index.css +0 -44
- package/Badge/styles/index.css +0 -28
- package/Box/styles/index.css +0 -47
- package/Breadcrumb/styles/index.css +0 -30
- package/Button/styles/index.css +0 -21
- package/ButtonGroup/styles/index.css +0 -47
- package/ButtonToolbar/styles/index.css +0 -44
- package/CHANGELOG.md +10 -0
- package/Calendar/styles/index.css +0 -17
- package/Card/styles/index.css +0 -28
- package/CardGroup/styles/index.css +0 -47
- package/Carousel/styles/index.css +0 -31
- package/CascadeTree/styles/index.css +0 -20
- package/Cascader/styles/index.css +0 -17
- package/Center/styles/index.css +0 -47
- package/CheckPicker/styles/index.css +0 -17
- package/CheckTree/styles/index.css +0 -17
- package/CheckTreePicker/styles/index.css +0 -17
- package/Checkbox/styles/index.css +0 -25
- package/CheckboxGroup/styles/index.css +0 -44
- package/Container/styles/index.css +0 -47
- package/Content/styles/index.css +0 -47
- package/DateInput/styles/index.css +0 -20
- package/DatePicker/styles/index.css +0 -17
- package/DateRangeInput/styles/index.css +0 -20
- package/DateRangePicker/styles/index.css +0 -17
- package/Divider/styles/index.css +0 -33
- package/Drawer/styles/index.css +0 -25
- package/Dropdown/styles/index.css +0 -17
- package/FlexboxGrid/styles/index.css +0 -47
- package/Footer/styles/index.css +0 -47
- package/Form/styles/index.css +0 -47
- package/FormControl/styles/index.css +0 -44
- package/FormControlLabel/styles/index.css +0 -37
- package/FormErrorMessage/styles/index.css +0 -34
- package/FormGroup/styles/index.css +0 -43
- package/FormHelpText/styles/index.css +0 -34
- package/FormStack/styles/index.css +0 -44
- package/Grid/styles/index.css +0 -44
- package/Header/styles/index.css +0 -47
- package/Heading/styles/index.css +0 -44
- package/HeadingGroup/styles/index.css +0 -47
- package/Highlight/styles/index.css +0 -34
- package/IconButton/styles/index.css +0 -21
- package/Image/styles/index.css +0 -34
- package/InlineEdit/styles/index.css +0 -20
- package/Input/styles/index.css +0 -20
- package/InputGroup/styles/index.css +0 -18
- package/InputNumber/styles/index.css +0 -17
- package/InputPicker/styles/index.css +0 -17
- package/Kbd/styles/index.css +0 -27
- package/Link/styles/index.css +0 -44
- package/List/styles/index.css +0 -28
- package/Loader/styles/index.css +0 -21
- package/Menu/styles/index.css +0 -21
- package/Message/styles/index.css +0 -18
- package/Modal/styles/index.css +0 -25
- package/MultiCascadeTree/styles/index.css +0 -17
- package/MultiCascader/styles/index.css +0 -17
- package/Nav/styles/index.css +0 -17
- package/Navbar/styles/index.css +0 -17
- package/Notification/styles/index.css +0 -19
- package/NumberInput/styles/index.css +0 -17
- package/Pagination/styles/index.css +0 -17
- package/Panel/styles/index.css +0 -22
- package/PanelGroup/styles/index.css +0 -34
- package/PasswordInput/styles/index.css +0 -17
- package/PasswordStrengthMeter/styles/index.css +0 -34
- package/PinInput/styles/index.css +0 -20
- package/Placeholder/styles/index.css +0 -28
- package/Popover/styles/index.css +0 -27
- package/Progress/styles/_progress-line.scss +1 -0
- package/Progress/styles/index.css +1 -33
- package/ProgressCircle/styles/index.css +0 -34
- package/README.md +5 -4
- package/Radio/styles/index.css +0 -25
- package/RadioGroup/styles/index.css +0 -23
- package/RadioTile/styles/index.css +0 -31
- package/RangeSlider/styles/index.css +0 -25
- package/Rate/styles/index.css +0 -34
- package/SelectPicker/styles/index.css +0 -17
- package/Sidebar/styles/index.css +0 -47
- package/Sidenav/styles/index.css +0 -17
- package/Slider/styles/index.css +0 -25
- package/Stack/styles/index.css +0 -44
- package/Stat/styles/index.css +0 -21
- package/StatGroup/styles/index.css +0 -47
- package/Steps/styles/index.css +0 -23
- package/Table/styles/index.css +0 -18
- package/Tabs/styles/index.css +0 -17
- package/Tag/styles/index.css +0 -17
- package/TagGroup/styles/index.css +0 -47
- package/TagInput/styles/index.css +0 -17
- package/TagPicker/styles/index.css +0 -17
- package/Text/styles/index.css +0 -23
- package/Textarea/styles/index.css +0 -47
- package/TimePicker/styles/index.css +0 -17
- package/TimeRangePicker/styles/index.css +0 -17
- package/Timeline/styles/index.css +0 -34
- package/Toggle/styles/index.css +0 -21
- package/Tooltip/styles/index.css +0 -25
- package/Tree/styles/index.css +0 -17
- package/TreePicker/styles/index.css +0 -17
- package/Uploader/styles/index.css +0 -18
- package/cjs/CustomProvider/CustomProvider.js +2 -5
- package/dist/rsuite-no-reset.css +2 -13
- package/dist/rsuite-no-reset.min.css +1 -1
- package/dist/rsuite.css +12 -13
- package/dist/rsuite.js +1 -1
- package/dist/rsuite.min.css +1 -1
- package/dist/rsuite.min.js +1 -1
- package/dist/rsuite.min.js.map +1 -1
- package/esm/CustomProvider/CustomProvider.js +2 -5
- package/package.json +1 -1
- package/styles/_base.scss +0 -17
- package/styles/_css-reset.scss +15 -0
- 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,
|
|
44
|
+
}), [classPrefix, csp, theme, toastContainer, rest]);
|
|
48
45
|
const iconContext = useMemo(() => ({
|
|
49
46
|
classPrefix: iconClassPrefix,
|
|
50
47
|
csp,
|
package/package.json
CHANGED
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
|
-
}
|
package/styles/_css-reset.scss
CHANGED
|
@@ -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.
|
package/styles/_themes.scss
CHANGED
|
@@ -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;
|