@alfalab/core-components-calendar-range 5.4.0 → 5.4.1
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 +12 -0
- package/dist/Component.js +1 -1
- package/dist/esm/Component.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{index.module-3c348e5c.d.ts → index.module-e826e4f2.d.ts} +0 -0
- package/dist/esm/{index.module-3c348e5c.js → index.module-e826e4f2.js} +1 -1
- package/dist/esm/views/index.css +7 -7
- package/dist/esm/views/popover.js +1 -1
- package/dist/esm/views/static.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{index.module-6a4b60a6.d.ts → index.module-cbd237fc.d.ts} +0 -0
- package/dist/{index.module-6a4b60a6.js → index.module-cbd237fc.js} +1 -1
- package/dist/modern/Component.js +1 -1
- package/dist/modern/index.js +1 -1
- package/dist/modern/index.module-ee4a9e95.js +4 -0
- package/dist/modern/views/index.css +7 -7
- package/dist/modern/views/popover.js +1 -1
- package/dist/modern/views/static.js +1 -1
- package/dist/utils.js +3 -1
- package/dist/views/index.css +7 -7
- package/dist/views/popover.js +1 -1
- package/dist/views/static.js +1 -1
- package/package.json +5 -5
- package/dist/modern/index.module-93e8a01c.js +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.4.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-calendar-range@5.4.0...@alfalab/core-components-calendar-range@5.4.1) (2022-06-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **calendar:** increased specificity of the button css class ([#103](https://github.com/core-ds/core-components/issues/103)) ([3d20c11](https://github.com/core-ds/core-components/commit/3d20c112a1c161951afa2e1c6fca8d3c048501e7))
|
|
12
|
+
* **icon-button:** fix loading ([#105](https://github.com/core-ds/core-components/issues/105)) ([0b133f0](https://github.com/core-ds/core-components/commit/0b133f042e86702ec2861915f2cdbcdbad9ca905))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
# [5.4.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-calendar-range@5.3.1...@alfalab/core-components-calendar-range@5.4.0) (2022-06-03)
|
|
7
19
|
|
|
8
20
|
|
package/dist/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-cbd237fc.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('date-fns/startOfMonth');
|
package/dist/esm/Component.js
CHANGED
package/dist/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_1ifls","divider":"calendar-range__divider_1ifls","static":"calendar-range__static_1ifls","calendar":"calendar-range__calendar_1ifls"};
|
|
41
41
|
require('./views/index.css')
|
|
42
42
|
|
|
43
43
|
export { __rest as _, __assign as a, styles as s };
|
package/dist/esm/views/index.css
CHANGED
|
@@ -34,19 +34,19 @@
|
|
|
34
34
|
|
|
35
35
|
/* marker */
|
|
36
36
|
}
|
|
37
|
-
.calendar-
|
|
37
|
+
.calendar-range__component_1ifls {
|
|
38
38
|
display: flex
|
|
39
39
|
}
|
|
40
|
-
.calendar-
|
|
40
|
+
.calendar-range__component_1ifls button[aria-selected='true'] {
|
|
41
41
|
cursor: pointer;
|
|
42
42
|
}
|
|
43
|
-
.calendar-
|
|
43
|
+
.calendar-range__component_1ifls *[class*='errorIcon_'] {
|
|
44
44
|
display: none;
|
|
45
45
|
}
|
|
46
|
-
.calendar-
|
|
46
|
+
.calendar-range__component_1ifls *[class*='calendarIcon_'] {
|
|
47
47
|
margin-right: 0;
|
|
48
48
|
}
|
|
49
|
-
.calendar-
|
|
49
|
+
.calendar-range__divider_1ifls {
|
|
50
50
|
height: 48px;
|
|
51
51
|
display: flex;
|
|
52
52
|
align-items: center;
|
|
@@ -54,13 +54,13 @@
|
|
|
54
54
|
width: 16px;
|
|
55
55
|
margin: 0 var(--gap-xs)
|
|
56
56
|
}
|
|
57
|
-
.calendar-
|
|
57
|
+
.calendar-range__divider_1ifls:after {
|
|
58
58
|
content: '';
|
|
59
59
|
display: block;
|
|
60
60
|
width: 100%;
|
|
61
61
|
height: 1px;
|
|
62
62
|
background-color: var(--color-light-graphic-primary);
|
|
63
63
|
}
|
|
64
|
-
.calendar-
|
|
64
|
+
.calendar-range__static_1ifls .calendar-range__calendar_1ifls {
|
|
65
65
|
width: var(--calendar-inner-width);
|
|
66
66
|
}
|
|
@@ -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-e826e4f2.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/dist/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-e826e4f2.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/dist/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_1ifls","divider":"calendar-range__divider_1ifls","static":"calendar-range__static_1ifls","calendar":"calendar-range__calendar_1ifls"};
|
|
43
43
|
require('./views/index.css')
|
|
44
44
|
|
|
45
45
|
exports.__rest = __rest;
|
package/dist/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-ee4a9e95.js';
|
|
13
13
|
import { CalendarRangePopover } from './views/popover.js';
|
|
14
14
|
import 'date-fns/endOfMonth';
|
|
15
15
|
import '@alfalab/core-components-calendar/dist/modern';
|
package/dist/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-ee4a9e95.js';
|
|
13
13
|
import './views/popover.js';
|
|
14
14
|
import 'date-fns/endOfMonth';
|
|
15
15
|
import '@alfalab/core-components-calendar/dist/modern';
|
|
@@ -34,19 +34,19 @@
|
|
|
34
34
|
|
|
35
35
|
/* marker */
|
|
36
36
|
}
|
|
37
|
-
.calendar-
|
|
37
|
+
.calendar-range__component_1ifls {
|
|
38
38
|
display: flex
|
|
39
39
|
}
|
|
40
|
-
.calendar-
|
|
40
|
+
.calendar-range__component_1ifls button[aria-selected='true'] {
|
|
41
41
|
cursor: pointer;
|
|
42
42
|
}
|
|
43
|
-
.calendar-
|
|
43
|
+
.calendar-range__component_1ifls *[class*='errorIcon_'] {
|
|
44
44
|
display: none;
|
|
45
45
|
}
|
|
46
|
-
.calendar-
|
|
46
|
+
.calendar-range__component_1ifls *[class*='calendarIcon_'] {
|
|
47
47
|
margin-right: 0;
|
|
48
48
|
}
|
|
49
|
-
.calendar-
|
|
49
|
+
.calendar-range__divider_1ifls {
|
|
50
50
|
height: 48px;
|
|
51
51
|
display: flex;
|
|
52
52
|
align-items: center;
|
|
@@ -54,13 +54,13 @@
|
|
|
54
54
|
width: 16px;
|
|
55
55
|
margin: 0 var(--gap-xs)
|
|
56
56
|
}
|
|
57
|
-
.calendar-
|
|
57
|
+
.calendar-range__divider_1ifls:after {
|
|
58
58
|
content: '';
|
|
59
59
|
display: block;
|
|
60
60
|
width: 100%;
|
|
61
61
|
height: 1px;
|
|
62
62
|
background-color: var(--color-light-graphic-primary);
|
|
63
63
|
}
|
|
64
|
-
.calendar-
|
|
64
|
+
.calendar-range__static_1ifls .calendar-range__calendar_1ifls {
|
|
65
65
|
width: var(--calendar-inner-width);
|
|
66
66
|
}
|
|
@@ -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-ee4a9e95.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);
|
|
@@ -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-ee4a9e95.js';
|
|
13
13
|
import endOfMonth from 'date-fns/endOfMonth';
|
|
14
14
|
import { usePeriodWithReset, Calendar } from '@alfalab/core-components-calendar/dist/modern';
|
|
15
15
|
import { isDayButton } from '../utils.js';
|
package/dist/utils.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var isDayButton = function (node) {
|
|
5
|
+
var isDayButton = function (node) {
|
|
6
|
+
return node && node.tagName === 'BUTTON' && node.dataset.date;
|
|
7
|
+
};
|
|
6
8
|
|
|
7
9
|
exports.isDayButton = isDayButton;
|
package/dist/views/index.css
CHANGED
|
@@ -34,19 +34,19 @@
|
|
|
34
34
|
|
|
35
35
|
/* marker */
|
|
36
36
|
}
|
|
37
|
-
.calendar-
|
|
37
|
+
.calendar-range__component_1ifls {
|
|
38
38
|
display: flex
|
|
39
39
|
}
|
|
40
|
-
.calendar-
|
|
40
|
+
.calendar-range__component_1ifls button[aria-selected='true'] {
|
|
41
41
|
cursor: pointer;
|
|
42
42
|
}
|
|
43
|
-
.calendar-
|
|
43
|
+
.calendar-range__component_1ifls *[class*='errorIcon_'] {
|
|
44
44
|
display: none;
|
|
45
45
|
}
|
|
46
|
-
.calendar-
|
|
46
|
+
.calendar-range__component_1ifls *[class*='calendarIcon_'] {
|
|
47
47
|
margin-right: 0;
|
|
48
48
|
}
|
|
49
|
-
.calendar-
|
|
49
|
+
.calendar-range__divider_1ifls {
|
|
50
50
|
height: 48px;
|
|
51
51
|
display: flex;
|
|
52
52
|
align-items: center;
|
|
@@ -54,13 +54,13 @@
|
|
|
54
54
|
width: 16px;
|
|
55
55
|
margin: 0 var(--gap-xs)
|
|
56
56
|
}
|
|
57
|
-
.calendar-
|
|
57
|
+
.calendar-range__divider_1ifls:after {
|
|
58
58
|
content: '';
|
|
59
59
|
display: block;
|
|
60
60
|
width: 100%;
|
|
61
61
|
height: 1px;
|
|
62
62
|
background-color: var(--color-light-graphic-primary);
|
|
63
63
|
}
|
|
64
|
-
.calendar-
|
|
64
|
+
.calendar-range__static_1ifls .calendar-range__calendar_1ifls {
|
|
65
65
|
width: var(--calendar-inner-width);
|
|
66
66
|
}
|
package/dist/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-cbd237fc.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
var startOfMonth = require('date-fns/startOfMonth');
|
package/dist/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-cbd237fc.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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-calendar-range",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.1",
|
|
4
4
|
"description": "Calendar range component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"react-dom": "^16.9.0 || ^17.0.1"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@alfalab/core-components-calendar": "^5.3.
|
|
23
|
-
"@alfalab/core-components-calendar-input": "^6.3.
|
|
24
|
-
"@alfalab/core-components-date-input": "^2.2.
|
|
22
|
+
"@alfalab/core-components-calendar": "^5.3.3",
|
|
23
|
+
"@alfalab/core-components-calendar-input": "^6.3.1",
|
|
24
|
+
"@alfalab/core-components-date-input": "^2.2.1",
|
|
25
25
|
"classnames": "2.2.6",
|
|
26
26
|
"date-fns": "2.16.1"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "7b9b0bbb422c34b432003ddc335fe15f596ad6d5"
|
|
29
29
|
}
|