rsuite 6.1.0 → 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 +21 -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/cjs/DateRangePicker/DateRangePicker.js +6 -0
- 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 +19 -52
- package/dist/rsuite.js.map +1 -1
- package/dist/rsuite.min.css +1 -1
- package/dist/rsuite.min.js +1 -1
- package/dist/rsuite.min.js.LICENSE.txt +0 -20
- package/dist/rsuite.min.js.map +1 -1
- package/esm/CustomProvider/CustomProvider.js +2 -5
- package/esm/DateRangePicker/DateRangePicker.js +6 -0
- package/package.json +1 -1
- package/styles/_base.scss +0 -17
- package/styles/_css-reset.scss +15 -0
- 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,
|
|
50
|
+
}), [classPrefix, csp, theme, toastContainer, rest]);
|
|
54
51
|
const iconContext = (0, _react.useMemo)(() => ({
|
|
55
52
|
classPrefix: iconClassPrefix,
|
|
56
53
|
csp,
|
|
@@ -387,6 +387,12 @@ const DateRangePicker = (0, _utils3.forwardRef)((props, ref) => {
|
|
|
387
387
|
const calendarKey = index === 0 ? 'start' : 'end';
|
|
388
388
|
const nextCalendarDate = Array.from(calendarDateRange);
|
|
389
389
|
nextCalendarDate[index] = date;
|
|
390
|
+
|
|
391
|
+
// If allowSameMonth is true, the start and end dates should be the same
|
|
392
|
+
if (allowSameMonth) {
|
|
393
|
+
nextCalendarDate[0] = date;
|
|
394
|
+
nextCalendarDate[1] = date;
|
|
395
|
+
}
|
|
390
396
|
setCalendarDateRange({
|
|
391
397
|
dateRange: nextCalendarDate,
|
|
392
398
|
calendarKey,
|
package/dist/rsuite-no-reset.css
CHANGED
|
@@ -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;
|