@alfalab/core-components-calendar-range 5.7.0 → 5.7.3
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/CHANGELOG.md +27 -0
- package/{Component.d.ts → dist/Component.d.ts} +0 -0
- package/{Component.js → dist/Component.js} +1 -1
- package/{cssm → dist/cssm}/Component.d.ts +0 -0
- package/{cssm → dist/cssm}/Component.js +3 -3
- package/{cssm → dist/cssm}/hooks.d.ts +0 -0
- package/{cssm → dist/cssm}/hooks.js +0 -0
- package/{cssm → dist/cssm}/index.d.ts +0 -0
- package/{cssm → dist/cssm}/index.js +3 -3
- package/{cssm → dist/cssm}/tslib.es6-ce870b46.d.ts +0 -0
- package/{cssm → dist/cssm}/tslib.es6-ce870b46.js +0 -0
- package/{cssm → dist/cssm}/utils.d.ts +0 -0
- package/{cssm → dist/cssm}/utils.js +0 -0
- package/{cssm → dist/cssm}/views/index.module.css +0 -0
- package/{cssm → dist/cssm}/views/popover.d.ts +0 -0
- package/{cssm → dist/cssm}/views/popover.js +2 -2
- package/{cssm → dist/cssm}/views/static.d.ts +0 -0
- package/{cssm → dist/cssm}/views/static.js +3 -3
- package/{esm → dist/esm}/Component.d.ts +0 -0
- package/{esm → dist/esm}/Component.js +4 -4
- package/{esm → dist/esm}/hooks.d.ts +0 -0
- package/{esm → dist/esm}/hooks.js +0 -0
- package/{esm → dist/esm}/index.d.ts +0 -0
- package/{esm → dist/esm}/index.js +4 -4
- package/{esm/index.module-4145a88f.d.ts → dist/esm/index.module-eae58497.d.ts} +0 -0
- package/{esm/index.module-4145a88f.js → dist/esm/index.module-eae58497.js} +1 -1
- package/{esm → dist/esm}/utils.d.ts +0 -0
- package/{esm → dist/esm}/utils.js +0 -0
- package/{esm → dist/esm}/views/index.css +8 -8
- package/{esm → dist/esm}/views/popover.d.ts +0 -0
- package/{esm → dist/esm}/views/popover.js +3 -3
- package/{esm → dist/esm}/views/static.d.ts +0 -0
- package/{esm → dist/esm}/views/static.js +4 -4
- package/{hooks.d.ts → dist/hooks.d.ts} +0 -0
- package/{hooks.js → dist/hooks.js} +0 -0
- package/{index.d.ts → dist/index.d.ts} +0 -0
- package/{index.js → dist/index.js} +1 -1
- package/{index.module-1aef65c9.d.ts → dist/index.module-aad234dd.d.ts} +0 -0
- package/{index.module-1aef65c9.js → dist/index.module-aad234dd.js} +1 -1
- package/{modern → dist/modern}/Component.d.ts +0 -0
- package/{modern → dist/modern}/Component.js +4 -4
- package/{modern → dist/modern}/hooks.d.ts +0 -0
- package/{modern → dist/modern}/hooks.js +0 -0
- package/{modern → dist/modern}/index.d.ts +0 -0
- package/{modern → dist/modern}/index.js +4 -4
- package/dist/modern/index.module-a9a86489.js +4 -0
- package/{modern → dist/modern}/utils.d.ts +0 -0
- package/{modern → dist/modern}/utils.js +0 -0
- package/{views → dist/modern/views}/index.css +8 -8
- package/{modern → dist/modern}/views/popover.d.ts +0 -0
- package/{modern → dist/modern}/views/popover.js +3 -3
- package/{modern → dist/modern}/views/static.d.ts +0 -0
- package/{modern → dist/modern}/views/static.js +4 -4
- package/{send-stats.js → dist/send-stats.js} +0 -0
- package/{utils.d.ts → dist/utils.d.ts} +0 -0
- package/{utils.js → dist/utils.js} +0 -0
- package/{modern → dist}/views/index.css +8 -8
- package/{views → dist/views}/popover.d.ts +0 -0
- package/{views → dist/views}/popover.js +1 -1
- package/{views → dist/views}/static.d.ts +0 -0
- package/{views → dist/views}/static.js +1 -1
- package/package.json +13 -9
- package/modern/index.module-5e4860d5.js +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [5.7.3](https://github.com/core-ds/core-components/compare/@alfalab/core-components-calendar-range@5.7.2...@alfalab/core-components-calendar-range@5.7.3) (2022-08-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* returned dist directory ([#199](https://github.com/core-ds/core-components/issues/199)) ([fabc15e](https://github.com/core-ds/core-components/commit/fabc15effa1457ca65ec7238206f1b1fc2a2a613))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [5.7.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-calendar-range@5.7.1...@alfalab/core-components-calendar-range@5.7.2) (2022-08-11)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @alfalab/core-components-calendar-range
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [5.7.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-calendar-range@5.7.0...@alfalab/core-components-calendar-range@5.7.1) (2022-08-09)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @alfalab/core-components-calendar-range
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [5.7.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-calendar-range@5.6.9...@alfalab/core-components-calendar-range@5.7.0) (2022-08-04)
|
|
7
34
|
|
|
8
35
|
|
|
File without changes
|
|
@@ -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-aad234dd.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('date-fns/startOfMonth');
|
|
File without changes
|
|
@@ -6,8 +6,8 @@ var tslib_es6 = require('./tslib.es6-ce870b46.js');
|
|
|
6
6
|
var React = require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('date-fns/startOfMonth');
|
|
9
|
-
require('@alfalab/core-components-calendar-input/cssm');
|
|
10
|
-
require('@alfalab/core-components-date-input/cssm');
|
|
9
|
+
require('@alfalab/core-components-calendar-input/dist/cssm');
|
|
10
|
+
require('@alfalab/core-components-date-input/dist/cssm');
|
|
11
11
|
require('date-fns/addMonths');
|
|
12
12
|
require('date-fns/subMonths');
|
|
13
13
|
require('date-fns/max');
|
|
@@ -17,7 +17,7 @@ require('./hooks.js');
|
|
|
17
17
|
require('./views/index.module.css');
|
|
18
18
|
var views_popover = require('./views/popover.js');
|
|
19
19
|
require('date-fns/endOfMonth');
|
|
20
|
-
require('@alfalab/core-components-calendar/cssm');
|
|
20
|
+
require('@alfalab/core-components-calendar/dist/cssm');
|
|
21
21
|
require('./utils.js');
|
|
22
22
|
var views_static = require('./views/static.js');
|
|
23
23
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -6,8 +6,8 @@ require('./tslib.es6-ce870b46.js');
|
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('date-fns/startOfMonth');
|
|
9
|
-
require('@alfalab/core-components-calendar-input/cssm');
|
|
10
|
-
require('@alfalab/core-components-date-input/cssm');
|
|
9
|
+
require('@alfalab/core-components-calendar-input/dist/cssm');
|
|
10
|
+
require('@alfalab/core-components-date-input/dist/cssm');
|
|
11
11
|
require('date-fns/addMonths');
|
|
12
12
|
require('date-fns/subMonths');
|
|
13
13
|
require('date-fns/max');
|
|
@@ -17,7 +17,7 @@ require('./hooks.js');
|
|
|
17
17
|
require('./views/index.module.css');
|
|
18
18
|
require('./views/popover.js');
|
|
19
19
|
require('date-fns/endOfMonth');
|
|
20
|
-
require('@alfalab/core-components-calendar/cssm');
|
|
20
|
+
require('@alfalab/core-components-calendar/dist/cssm');
|
|
21
21
|
require('./utils.js');
|
|
22
22
|
require('./views/static.js');
|
|
23
23
|
var Component = require('./Component.js');
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -6,8 +6,8 @@ var tslib_es6 = require('../tslib.es6-ce870b46.js');
|
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
var startOfMonth = require('date-fns/startOfMonth');
|
|
9
|
-
var coreComponentsCalendarInput = require('@alfalab/core-components-calendar-input/cssm');
|
|
10
|
-
var coreComponentsDateInput = require('@alfalab/core-components-date-input/cssm');
|
|
9
|
+
var coreComponentsCalendarInput = require('@alfalab/core-components-calendar-input/dist/cssm');
|
|
10
|
+
var coreComponentsDateInput = require('@alfalab/core-components-date-input/dist/cssm');
|
|
11
11
|
require('date-fns/addMonths');
|
|
12
12
|
require('date-fns/subMonths');
|
|
13
13
|
require('date-fns/max');
|
|
File without changes
|
|
@@ -6,8 +6,8 @@ var tslib_es6 = require('../tslib.es6-ce870b46.js');
|
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
var startOfMonth = require('date-fns/startOfMonth');
|
|
9
|
-
var coreComponentsCalendarInput = require('@alfalab/core-components-calendar-input/cssm');
|
|
10
|
-
var coreComponentsDateInput = require('@alfalab/core-components-date-input/cssm');
|
|
9
|
+
var coreComponentsCalendarInput = require('@alfalab/core-components-calendar-input/dist/cssm');
|
|
10
|
+
var coreComponentsDateInput = require('@alfalab/core-components-date-input/dist/cssm');
|
|
11
11
|
var addMonths = require('date-fns/addMonths');
|
|
12
12
|
var subMonths = require('date-fns/subMonths');
|
|
13
13
|
var max = require('date-fns/max');
|
|
@@ -16,7 +16,7 @@ require('date-fns/isEqual');
|
|
|
16
16
|
var hooks = require('../hooks.js');
|
|
17
17
|
var styles = require('./index.module.css');
|
|
18
18
|
var endOfMonth = require('date-fns/endOfMonth');
|
|
19
|
-
var coreComponentsCalendar = require('@alfalab/core-components-calendar/cssm');
|
|
19
|
+
var coreComponentsCalendar = require('@alfalab/core-components-calendar/dist/cssm');
|
|
20
20
|
var utils = require('../utils.js');
|
|
21
21
|
|
|
22
22
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from './index.module-
|
|
1
|
+
import { _ as __rest, a as __assign } from './index.module-eae58497.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import 'date-fns/startOfMonth';
|
|
5
|
-
import '@alfalab/core-components-calendar-input/esm';
|
|
6
|
-
import '@alfalab/core-components-date-input/esm';
|
|
5
|
+
import '@alfalab/core-components-calendar-input/dist/esm';
|
|
6
|
+
import '@alfalab/core-components-date-input/dist/esm';
|
|
7
7
|
import 'date-fns/addMonths';
|
|
8
8
|
import 'date-fns/subMonths';
|
|
9
9
|
import 'date-fns/max';
|
|
@@ -12,7 +12,7 @@ import 'date-fns/isEqual';
|
|
|
12
12
|
import './hooks.js';
|
|
13
13
|
import { CalendarRangePopover } from './views/popover.js';
|
|
14
14
|
import 'date-fns/endOfMonth';
|
|
15
|
-
import '@alfalab/core-components-calendar/esm';
|
|
15
|
+
import '@alfalab/core-components-calendar/dist/esm';
|
|
16
16
|
import './utils.js';
|
|
17
17
|
import { CalendarRangeStatic } from './views/static.js';
|
|
18
18
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import './index.module-
|
|
1
|
+
import './index.module-eae58497.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import 'date-fns/startOfMonth';
|
|
5
|
-
import '@alfalab/core-components-calendar-input/esm';
|
|
6
|
-
import '@alfalab/core-components-date-input/esm';
|
|
5
|
+
import '@alfalab/core-components-calendar-input/dist/esm';
|
|
6
|
+
import '@alfalab/core-components-date-input/dist/esm';
|
|
7
7
|
import 'date-fns/addMonths';
|
|
8
8
|
import 'date-fns/subMonths';
|
|
9
9
|
import 'date-fns/max';
|
|
@@ -12,7 +12,7 @@ import 'date-fns/isEqual';
|
|
|
12
12
|
import './hooks.js';
|
|
13
13
|
import './views/popover.js';
|
|
14
14
|
import 'date-fns/endOfMonth';
|
|
15
|
-
import '@alfalab/core-components-calendar/esm';
|
|
15
|
+
import '@alfalab/core-components-calendar/dist/esm';
|
|
16
16
|
import './utils.js';
|
|
17
17
|
import './views/static.js';
|
|
18
18
|
export { CalendarRange } from './Component.js';
|
|
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_tyk4a","divider":"calendar-range__divider_tyk4a","static":"calendar-range__static_tyk4a","calendar":"calendar-range__calendar_tyk4a"};
|
|
41
41
|
require('./views/index.css')
|
|
42
42
|
|
|
43
43
|
export { __rest as _, __assign as a, styles as s };
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1509g */
|
|
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_tyk4a {
|
|
40
40
|
display: flex
|
|
41
41
|
}
|
|
42
|
-
.calendar-
|
|
42
|
+
.calendar-range__component_tyk4a button[aria-selected='true'] {
|
|
43
43
|
cursor: pointer;
|
|
44
44
|
}
|
|
45
|
-
.calendar-
|
|
45
|
+
.calendar-range__component_tyk4a *[class*='errorIcon_'] {
|
|
46
46
|
display: none;
|
|
47
47
|
}
|
|
48
|
-
.calendar-
|
|
48
|
+
.calendar-range__component_tyk4a *[class*='calendarIcon_'] {
|
|
49
49
|
margin-right: 0;
|
|
50
50
|
}
|
|
51
|
-
.calendar-
|
|
51
|
+
.calendar-range__divider_tyk4a {
|
|
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_tyk4a: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_tyk4a .calendar-range__calendar_tyk4a {
|
|
67
67
|
width: var(--calendar-inner-width);
|
|
68
68
|
}
|
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { s as styles, a as __assign } from '../index.module-
|
|
1
|
+
import { s as styles, a as __assign } from '../index.module-eae58497.js';
|
|
2
2
|
import React, { useState, useCallback, useEffect } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import startOfMonth from 'date-fns/startOfMonth';
|
|
5
|
-
import { isValidInputValue, parseDateString, CalendarInput } from '@alfalab/core-components-calendar-input/esm';
|
|
6
|
-
import { isCompleteDateInput } from '@alfalab/core-components-date-input/esm';
|
|
5
|
+
import { isValidInputValue, parseDateString, CalendarInput } from '@alfalab/core-components-calendar-input/dist/esm';
|
|
6
|
+
import { isCompleteDateInput } from '@alfalab/core-components-date-input/dist/esm';
|
|
7
7
|
import 'date-fns/addMonths';
|
|
8
8
|
import 'date-fns/subMonths';
|
|
9
9
|
import 'date-fns/max';
|
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
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-eae58497.js';
|
|
2
2
|
import React, { useState, useCallback, useEffect } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import startOfMonth from 'date-fns/startOfMonth';
|
|
5
|
-
import { isValidInputValue, parseDateString, formatDate } from '@alfalab/core-components-calendar-input/esm';
|
|
6
|
-
import { isCompleteDateInput, DateInput } from '@alfalab/core-components-date-input/esm';
|
|
5
|
+
import { isValidInputValue, parseDateString, formatDate } from '@alfalab/core-components-calendar-input/dist/esm';
|
|
6
|
+
import { isCompleteDateInput, DateInput } from '@alfalab/core-components-date-input/dist/esm';
|
|
7
7
|
import addMonths from 'date-fns/addMonths';
|
|
8
8
|
import subMonths from 'date-fns/subMonths';
|
|
9
9
|
import max from 'date-fns/max';
|
|
@@ -11,7 +11,7 @@ import 'date-fns/min';
|
|
|
11
11
|
import 'date-fns/isEqual';
|
|
12
12
|
import { useStaticViewMonthes, useSelectionProps } from '../hooks.js';
|
|
13
13
|
import endOfMonth from 'date-fns/endOfMonth';
|
|
14
|
-
import { usePeriodWithReset, Calendar } from '@alfalab/core-components-calendar/esm';
|
|
14
|
+
import { usePeriodWithReset, Calendar } from '@alfalab/core-components-calendar/dist/esm';
|
|
15
15
|
import { isDayButton } from '../utils.js';
|
|
16
16
|
|
|
17
17
|
var CalendarRangeStatic = function (_a) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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_tyk4a","divider":"calendar-range__divider_tyk4a","static":"calendar-range__static_tyk4a","calendar":"calendar-range__calendar_tyk4a"};
|
|
43
43
|
require('./views/index.css')
|
|
44
44
|
|
|
45
45
|
exports.__rest = __rest;
|
|
File without changes
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import 'classnames';
|
|
3
3
|
import 'date-fns/startOfMonth';
|
|
4
|
-
import '@alfalab/core-components-calendar-input/modern';
|
|
5
|
-
import '@alfalab/core-components-date-input/modern';
|
|
4
|
+
import '@alfalab/core-components-calendar-input/dist/modern';
|
|
5
|
+
import '@alfalab/core-components-date-input/dist/modern';
|
|
6
6
|
import 'date-fns/addMonths';
|
|
7
7
|
import 'date-fns/subMonths';
|
|
8
8
|
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-a9a86489.js';
|
|
13
13
|
import { CalendarRangePopover } from './views/popover.js';
|
|
14
14
|
import 'date-fns/endOfMonth';
|
|
15
|
-
import '@alfalab/core-components-calendar/modern';
|
|
15
|
+
import '@alfalab/core-components-calendar/dist/modern';
|
|
16
16
|
import './utils.js';
|
|
17
17
|
import { CalendarRangeStatic } from './views/static.js';
|
|
18
18
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import 'classnames';
|
|
3
3
|
import 'date-fns/startOfMonth';
|
|
4
|
-
import '@alfalab/core-components-calendar-input/modern';
|
|
5
|
-
import '@alfalab/core-components-date-input/modern';
|
|
4
|
+
import '@alfalab/core-components-calendar-input/dist/modern';
|
|
5
|
+
import '@alfalab/core-components-date-input/dist/modern';
|
|
6
6
|
import 'date-fns/addMonths';
|
|
7
7
|
import 'date-fns/subMonths';
|
|
8
8
|
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-a9a86489.js';
|
|
13
13
|
import './views/popover.js';
|
|
14
14
|
import 'date-fns/endOfMonth';
|
|
15
|
-
import '@alfalab/core-components-calendar/modern';
|
|
15
|
+
import '@alfalab/core-components-calendar/dist/modern';
|
|
16
16
|
import './utils.js';
|
|
17
17
|
import './views/static.js';
|
|
18
18
|
export { CalendarRange } from './Component.js';
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1509g */
|
|
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_tyk4a {
|
|
40
40
|
display: flex
|
|
41
41
|
}
|
|
42
|
-
.calendar-
|
|
42
|
+
.calendar-range__component_tyk4a button[aria-selected='true'] {
|
|
43
43
|
cursor: pointer;
|
|
44
44
|
}
|
|
45
|
-
.calendar-
|
|
45
|
+
.calendar-range__component_tyk4a *[class*='errorIcon_'] {
|
|
46
46
|
display: none;
|
|
47
47
|
}
|
|
48
|
-
.calendar-
|
|
48
|
+
.calendar-range__component_tyk4a *[class*='calendarIcon_'] {
|
|
49
49
|
margin-right: 0;
|
|
50
50
|
}
|
|
51
|
-
.calendar-
|
|
51
|
+
.calendar-range__divider_tyk4a {
|
|
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_tyk4a: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_tyk4a .calendar-range__calendar_tyk4a {
|
|
67
67
|
width: var(--calendar-inner-width);
|
|
68
68
|
}
|
|
File without changes
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React, { useState, useCallback, useEffect } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import startOfMonth from 'date-fns/startOfMonth';
|
|
4
|
-
import { isValidInputValue, parseDateString, CalendarInput } from '@alfalab/core-components-calendar-input/modern';
|
|
5
|
-
import { isCompleteDateInput } from '@alfalab/core-components-date-input/modern';
|
|
4
|
+
import { isValidInputValue, parseDateString, CalendarInput } from '@alfalab/core-components-calendar-input/dist/modern';
|
|
5
|
+
import { isCompleteDateInput } from '@alfalab/core-components-date-input/dist/modern';
|
|
6
6
|
import 'date-fns/addMonths';
|
|
7
7
|
import 'date-fns/subMonths';
|
|
8
8
|
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-a9a86489.js';
|
|
13
13
|
|
|
14
14
|
const CalendarRangePopover = ({ className, defaultMonth = startOfMonth(new Date()).getTime(), minDate, maxDate, valueFrom = '', valueTo = '', onDateFromChange = () => null, onDateToChange = () => null, onChange = () => null, inputFromProps = {}, inputToProps = {}, offDays, events, dataTestId, }) => {
|
|
15
15
|
const [inputFromValue, setInputFromValue] = useState(valueFrom);
|
|
File without changes
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React, { useState, useCallback, useEffect } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import startOfMonth from 'date-fns/startOfMonth';
|
|
4
|
-
import { isValidInputValue, parseDateString, formatDate } from '@alfalab/core-components-calendar-input/modern';
|
|
5
|
-
import { isCompleteDateInput, DateInput } from '@alfalab/core-components-date-input/modern';
|
|
4
|
+
import { isValidInputValue, parseDateString, formatDate } from '@alfalab/core-components-calendar-input/dist/modern';
|
|
5
|
+
import { isCompleteDateInput, DateInput } from '@alfalab/core-components-date-input/dist/modern';
|
|
6
6
|
import addMonths from 'date-fns/addMonths';
|
|
7
7
|
import subMonths from 'date-fns/subMonths';
|
|
8
8
|
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-a9a86489.js';
|
|
13
13
|
import endOfMonth from 'date-fns/endOfMonth';
|
|
14
|
-
import { usePeriodWithReset, Calendar } from '@alfalab/core-components-calendar/modern';
|
|
14
|
+
import { usePeriodWithReset, Calendar } from '@alfalab/core-components-calendar/dist/modern';
|
|
15
15
|
import { isDayButton } from '../utils.js';
|
|
16
16
|
|
|
17
17
|
/* eslint-disable complexity */
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1509g */
|
|
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_tyk4a {
|
|
40
40
|
display: flex
|
|
41
41
|
}
|
|
42
|
-
.calendar-
|
|
42
|
+
.calendar-range__component_tyk4a button[aria-selected='true'] {
|
|
43
43
|
cursor: pointer;
|
|
44
44
|
}
|
|
45
|
-
.calendar-
|
|
45
|
+
.calendar-range__component_tyk4a *[class*='errorIcon_'] {
|
|
46
46
|
display: none;
|
|
47
47
|
}
|
|
48
|
-
.calendar-
|
|
48
|
+
.calendar-range__component_tyk4a *[class*='calendarIcon_'] {
|
|
49
49
|
margin-right: 0;
|
|
50
50
|
}
|
|
51
|
-
.calendar-
|
|
51
|
+
.calendar-range__divider_tyk4a {
|
|
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_tyk4a: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_tyk4a .calendar-range__calendar_tyk4a {
|
|
67
67
|
width: var(--calendar-inner-width);
|
|
68
68
|
}
|
|
File without changes
|
|
@@ -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-aad234dd.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
var startOfMonth = require('date-fns/startOfMonth');
|
|
File without changes
|
|
@@ -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-aad234dd.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
var startOfMonth = require('date-fns/startOfMonth');
|
package/package.json
CHANGED
|
@@ -1,26 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-calendar-range",
|
|
3
|
-
"version": "5.7.
|
|
3
|
+
"version": "5.7.3",
|
|
4
4
|
"description": "Calendar range component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"main": "index.js",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"module": "./dist/esm/index.js",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
8
12
|
"scripts": {
|
|
9
|
-
"postinstall": "node -e \"if (require('fs').existsSync('./send-stats.js')){require('./send-stats.js')} \""
|
|
13
|
+
"postinstall": "node -e \"if (require('fs').existsSync('./dist/send-stats.js')){require('./dist/send-stats.js')} \""
|
|
10
14
|
},
|
|
11
15
|
"publishConfig": {
|
|
12
|
-
"access": "public"
|
|
13
|
-
"directory": "dist"
|
|
16
|
+
"access": "public"
|
|
14
17
|
},
|
|
15
18
|
"peerDependencies": {
|
|
16
19
|
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
|
|
17
20
|
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
18
21
|
},
|
|
19
22
|
"dependencies": {
|
|
20
|
-
"@alfalab/core-components-calendar": "^5.6.
|
|
21
|
-
"@alfalab/core-components-calendar-input": "^6.6.
|
|
22
|
-
"@alfalab/core-components-date-input": "^2.4.
|
|
23
|
+
"@alfalab/core-components-calendar": "^5.6.3",
|
|
24
|
+
"@alfalab/core-components-calendar-input": "^6.6.3",
|
|
25
|
+
"@alfalab/core-components-date-input": "^2.4.2",
|
|
23
26
|
"classnames": "^2.3.1",
|
|
24
27
|
"date-fns": "^2.16.1"
|
|
25
|
-
}
|
|
28
|
+
},
|
|
29
|
+
"gitHead": "4d6c8965d07839e339b370bb7c92bd7f9e24b1f3"
|
|
26
30
|
}
|