@alfalab/core-components-calendar-range 6.2.7 → 6.2.8
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/Component.js +1 -1
- package/esm/Component.js +1 -1
- package/esm/index.js +1 -1
- package/esm/{index.module-1753474b.d.ts → index.module-0848cf90.d.ts} +0 -0
- package/esm/{index.module-1753474b.js → index.module-0848cf90.js} +1 -1
- package/esm/views/index.css +8 -8
- package/esm/views/popover.js +1 -1
- package/esm/views/static.js +1 -1
- package/index.js +1 -1
- package/{index.module-8d0547b0.d.ts → index.module-e04582c2.d.ts} +0 -0
- package/{index.module-8d0547b0.js → index.module-e04582c2.js} +1 -1
- package/modern/Component.js +1 -1
- package/modern/index.js +1 -1
- package/modern/index.module-533705db.js +4 -0
- package/modern/views/index.css +8 -8
- package/modern/views/popover.js +1 -1
- package/modern/views/static.js +1 -1
- package/package.json +4 -4
- package/views/index.css +8 -8
- package/views/popover.js +1 -1
- package/views/static.js +1 -1
- package/modern/index.module-57aec1e8.js +0 -4
package/Component.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index_module = require('./index.module-
|
|
5
|
+
var index_module = require('./index.module-e04582c2.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('date-fns/startOfMonth');
|
package/esm/Component.js
CHANGED
package/esm/index.js
CHANGED
|
File without changes
|
|
@@ -37,7 +37,7 @@ function __rest(s, e) {
|
|
|
37
37
|
return t;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
var styles = {"component":"calendar-
|
|
40
|
+
var styles = {"component":"calendar-range__component_k74z1","divider":"calendar-range__divider_k74z1","static":"calendar-range__static_k74z1","calendar":"calendar-range__calendar_k74z1"};
|
|
41
41
|
require('./views/index.css')
|
|
42
42
|
|
|
43
43
|
export { __rest as _, __assign as a, styles as s };
|
package/esm/views/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 3ocqw */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-primary: #0b1f35;
|
|
4
4
|
}
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
|
|
37
37
|
/* marker */
|
|
38
38
|
}
|
|
39
|
-
.calendar-
|
|
39
|
+
.calendar-range__component_k74z1 {
|
|
40
40
|
display: flex
|
|
41
41
|
}
|
|
42
|
-
.calendar-
|
|
42
|
+
.calendar-range__component_k74z1 button[aria-selected='true'] {
|
|
43
43
|
cursor: pointer;
|
|
44
44
|
}
|
|
45
|
-
.calendar-
|
|
45
|
+
.calendar-range__component_k74z1 *[class*='errorIcon_'] {
|
|
46
46
|
display: none;
|
|
47
47
|
}
|
|
48
|
-
.calendar-
|
|
48
|
+
.calendar-range__component_k74z1 *[class*='calendarIcon_'] {
|
|
49
49
|
margin-right: 0;
|
|
50
50
|
}
|
|
51
|
-
.calendar-
|
|
51
|
+
.calendar-range__divider_k74z1 {
|
|
52
52
|
height: 48px;
|
|
53
53
|
display: flex;
|
|
54
54
|
align-items: center;
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
width: 16px;
|
|
57
57
|
margin: 0 var(--gap-xs)
|
|
58
58
|
}
|
|
59
|
-
.calendar-
|
|
59
|
+
.calendar-range__divider_k74z1:after {
|
|
60
60
|
content: '';
|
|
61
61
|
display: block;
|
|
62
62
|
width: 100%;
|
|
63
63
|
height: 1px;
|
|
64
64
|
background-color: var(--color-light-graphic-primary);
|
|
65
65
|
}
|
|
66
|
-
.calendar-
|
|
66
|
+
.calendar-range__static_k74z1 .calendar-range__calendar_k74z1 {
|
|
67
67
|
width: var(--calendar-inner-width);
|
|
68
68
|
}
|
package/esm/views/popover.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as styles, a as __assign } from '../index.module-
|
|
1
|
+
import { s as styles, a as __assign } from '../index.module-0848cf90.js';
|
|
2
2
|
import React, { useState, useCallback, useEffect } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import startOfMonth from 'date-fns/startOfMonth';
|
package/esm/views/static.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, s as styles, a as __assign } from '../index.module-
|
|
1
|
+
import { _ as __rest, s as styles, a as __assign } from '../index.module-0848cf90.js';
|
|
2
2
|
import React, { useState, useCallback, useEffect } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import startOfMonth from 'date-fns/startOfMonth';
|
package/index.js
CHANGED
|
File without changes
|
|
@@ -39,7 +39,7 @@ function __rest(s, e) {
|
|
|
39
39
|
return t;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
var styles = {"component":"calendar-
|
|
42
|
+
var styles = {"component":"calendar-range__component_k74z1","divider":"calendar-range__divider_k74z1","static":"calendar-range__static_k74z1","calendar":"calendar-range__calendar_k74z1"};
|
|
43
43
|
require('./views/index.css')
|
|
44
44
|
|
|
45
45
|
exports.__rest = __rest;
|
package/modern/Component.js
CHANGED
|
@@ -9,7 +9,7 @@ import 'date-fns/max';
|
|
|
9
9
|
import 'date-fns/min';
|
|
10
10
|
import 'date-fns/isEqual';
|
|
11
11
|
import './hooks.js';
|
|
12
|
-
import './index.module-
|
|
12
|
+
import './index.module-533705db.js';
|
|
13
13
|
import { CalendarRangePopover } from './views/popover.js';
|
|
14
14
|
import 'date-fns/endOfMonth';
|
|
15
15
|
import '@alfalab/core-components-calendar/modern';
|
package/modern/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import 'date-fns/max';
|
|
|
9
9
|
import 'date-fns/min';
|
|
10
10
|
import 'date-fns/isEqual';
|
|
11
11
|
import './hooks.js';
|
|
12
|
-
import './index.module-
|
|
12
|
+
import './index.module-533705db.js';
|
|
13
13
|
import './views/popover.js';
|
|
14
14
|
import 'date-fns/endOfMonth';
|
|
15
15
|
import '@alfalab/core-components-calendar/modern';
|
package/modern/views/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 3ocqw */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-primary: #0b1f35;
|
|
4
4
|
}
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
|
|
37
37
|
/* marker */
|
|
38
38
|
}
|
|
39
|
-
.calendar-
|
|
39
|
+
.calendar-range__component_k74z1 {
|
|
40
40
|
display: flex
|
|
41
41
|
}
|
|
42
|
-
.calendar-
|
|
42
|
+
.calendar-range__component_k74z1 button[aria-selected='true'] {
|
|
43
43
|
cursor: pointer;
|
|
44
44
|
}
|
|
45
|
-
.calendar-
|
|
45
|
+
.calendar-range__component_k74z1 *[class*='errorIcon_'] {
|
|
46
46
|
display: none;
|
|
47
47
|
}
|
|
48
|
-
.calendar-
|
|
48
|
+
.calendar-range__component_k74z1 *[class*='calendarIcon_'] {
|
|
49
49
|
margin-right: 0;
|
|
50
50
|
}
|
|
51
|
-
.calendar-
|
|
51
|
+
.calendar-range__divider_k74z1 {
|
|
52
52
|
height: 48px;
|
|
53
53
|
display: flex;
|
|
54
54
|
align-items: center;
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
width: 16px;
|
|
57
57
|
margin: 0 var(--gap-xs)
|
|
58
58
|
}
|
|
59
|
-
.calendar-
|
|
59
|
+
.calendar-range__divider_k74z1:after {
|
|
60
60
|
content: '';
|
|
61
61
|
display: block;
|
|
62
62
|
width: 100%;
|
|
63
63
|
height: 1px;
|
|
64
64
|
background-color: var(--color-light-graphic-primary);
|
|
65
65
|
}
|
|
66
|
-
.calendar-
|
|
66
|
+
.calendar-range__static_k74z1 .calendar-range__calendar_k74z1 {
|
|
67
67
|
width: var(--calendar-inner-width);
|
|
68
68
|
}
|
package/modern/views/popover.js
CHANGED
|
@@ -9,7 +9,7 @@ import 'date-fns/max';
|
|
|
9
9
|
import 'date-fns/min';
|
|
10
10
|
import 'date-fns/isEqual';
|
|
11
11
|
import { usePopoverViewMonthes } from '../hooks.js';
|
|
12
|
-
import { s as styles } from '../index.module-
|
|
12
|
+
import { s as styles } from '../index.module-533705db.js';
|
|
13
13
|
|
|
14
14
|
const CalendarRangePopover = ({ className, defaultMonth = startOfMonth(new Date()).getTime(), minDate, maxDate, valueFrom = '', valueTo = '', onDateFromChange = () => null, onDateToChange = () => null, onChange = () => null, onError, inputFromProps = {}, inputToProps = {}, offDays, events, dataTestId, }) => {
|
|
15
15
|
const [inputFromValue, setInputFromValue] = useState(valueFrom);
|
package/modern/views/static.js
CHANGED
|
@@ -9,7 +9,7 @@ import max from 'date-fns/max';
|
|
|
9
9
|
import 'date-fns/min';
|
|
10
10
|
import 'date-fns/isEqual';
|
|
11
11
|
import { useStaticViewMonthes, useSelectionProps } from '../hooks.js';
|
|
12
|
-
import { s as styles } from '../index.module-
|
|
12
|
+
import { s as styles } from '../index.module-533705db.js';
|
|
13
13
|
import endOfMonth from 'date-fns/endOfMonth';
|
|
14
14
|
import { usePeriodWithReset, Calendar } from '@alfalab/core-components-calendar/modern';
|
|
15
15
|
import { isDayButton } from '../utils.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-calendar-range",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.8",
|
|
4
4
|
"description": "Calendar range component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@alfalab/core-components-calendar": "^6.1.
|
|
22
|
-
"@alfalab/core-components-calendar-input": "^7.1.
|
|
23
|
-
"@alfalab/core-components-date-input": "^3.1.
|
|
21
|
+
"@alfalab/core-components-calendar": "^6.1.8",
|
|
22
|
+
"@alfalab/core-components-calendar-input": "^7.1.9",
|
|
23
|
+
"@alfalab/core-components-date-input": "^3.1.6",
|
|
24
24
|
"classnames": "^2.3.1",
|
|
25
25
|
"date-fns": "^2.16.1"
|
|
26
26
|
}
|
package/views/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 3ocqw */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-primary: #0b1f35;
|
|
4
4
|
}
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
|
|
37
37
|
/* marker */
|
|
38
38
|
}
|
|
39
|
-
.calendar-
|
|
39
|
+
.calendar-range__component_k74z1 {
|
|
40
40
|
display: flex
|
|
41
41
|
}
|
|
42
|
-
.calendar-
|
|
42
|
+
.calendar-range__component_k74z1 button[aria-selected='true'] {
|
|
43
43
|
cursor: pointer;
|
|
44
44
|
}
|
|
45
|
-
.calendar-
|
|
45
|
+
.calendar-range__component_k74z1 *[class*='errorIcon_'] {
|
|
46
46
|
display: none;
|
|
47
47
|
}
|
|
48
|
-
.calendar-
|
|
48
|
+
.calendar-range__component_k74z1 *[class*='calendarIcon_'] {
|
|
49
49
|
margin-right: 0;
|
|
50
50
|
}
|
|
51
|
-
.calendar-
|
|
51
|
+
.calendar-range__divider_k74z1 {
|
|
52
52
|
height: 48px;
|
|
53
53
|
display: flex;
|
|
54
54
|
align-items: center;
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
width: 16px;
|
|
57
57
|
margin: 0 var(--gap-xs)
|
|
58
58
|
}
|
|
59
|
-
.calendar-
|
|
59
|
+
.calendar-range__divider_k74z1:after {
|
|
60
60
|
content: '';
|
|
61
61
|
display: block;
|
|
62
62
|
width: 100%;
|
|
63
63
|
height: 1px;
|
|
64
64
|
background-color: var(--color-light-graphic-primary);
|
|
65
65
|
}
|
|
66
|
-
.calendar-
|
|
66
|
+
.calendar-range__static_k74z1 .calendar-range__calendar_k74z1 {
|
|
67
67
|
width: var(--calendar-inner-width);
|
|
68
68
|
}
|
package/views/popover.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index_module = require('../index.module-
|
|
5
|
+
var index_module = require('../index.module-e04582c2.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
var startOfMonth = require('date-fns/startOfMonth');
|
package/views/static.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index_module = require('../index.module-
|
|
5
|
+
var index_module = require('../index.module-e04582c2.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
var startOfMonth = require('date-fns/startOfMonth');
|