@alfalab/core-components-calendar-range 7.0.8 → 7.0.9
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/components/divider/Component.js +1 -1
- package/components/divider/index.css +8 -8
- package/esm/Component.js +1 -1
- package/esm/components/divider/Component.js +1 -1
- package/esm/components/divider/index.css +8 -8
- package/esm/index.js +1 -1
- package/esm/{index.module-1aaed941.d.ts → index.module-2ca4a4ca.d.ts} +0 -0
- package/esm/{index.module-1aaed941.js → index.module-2ca4a4ca.js} +1 -1
- package/esm/views/index.css +6 -6
- package/esm/views/popover.js +1 -1
- package/esm/views/static.js +1 -1
- package/index.js +1 -1
- package/{index.module-255b4286.d.ts → index.module-6719a1a2.d.ts} +0 -0
- package/{index.module-255b4286.js → index.module-6719a1a2.js} +1 -1
- package/modern/Component.js +1 -1
- package/modern/components/divider/Component.js +1 -1
- package/modern/components/divider/index.css +8 -8
- package/modern/index.js +1 -1
- package/modern/index.module-7365bf1a.js +4 -0
- package/modern/views/index.css +6 -6
- package/modern/views/popover.js +1 -1
- package/modern/views/static.js +1 -1
- package/package.json +4 -4
- package/views/index.css +6 -6
- package/views/popover.js +1 -1
- package/views/static.js +1 -1
- package/modern/index.module-491eb220.js +0 -4
package/Component.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index_module = require('./index.module-
|
|
3
|
+
var index_module = require('./index.module-6719a1a2.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var views_popover = require('./views/popover.js');
|
|
6
6
|
var views_static = require('./views/static.js');
|
|
@@ -8,7 +8,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
8
8
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
9
9
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
10
10
|
|
|
11
|
-
var styles = {"component":"calendar-
|
|
11
|
+
var styles = {"component":"calendar-range__component_1aiuv","outer":"calendar-range__outer_1aiuv","s":"calendar-range__s_1aiuv","m":"calendar-range__m_1aiuv","l":"calendar-range__l_1aiuv","xl":"calendar-range__xl_1aiuv"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
var Divider = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ilxr4 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-primary: #0b1f35;
|
|
4
4
|
}
|
|
@@ -41,35 +41,35 @@
|
|
|
41
41
|
|
|
42
42
|
/* marker */
|
|
43
43
|
}
|
|
44
|
-
.calendar-
|
|
44
|
+
.calendar-range__component_1aiuv {
|
|
45
45
|
display: flex;
|
|
46
46
|
align-items: center;
|
|
47
47
|
justify-content: center;
|
|
48
48
|
width: 16px;
|
|
49
49
|
margin: 0 var(--gap-xs)
|
|
50
50
|
}
|
|
51
|
-
.calendar-
|
|
51
|
+
.calendar-range__component_1aiuv:after {
|
|
52
52
|
content: '';
|
|
53
53
|
display: block;
|
|
54
54
|
width: 100%;
|
|
55
55
|
height: 1px;
|
|
56
56
|
background-color: var(--color-light-graphic-primary);
|
|
57
57
|
}
|
|
58
|
-
.calendar-
|
|
58
|
+
.calendar-range__outer_1aiuv {
|
|
59
59
|
position: relative;
|
|
60
60
|
|
|
61
61
|
/* FormControl .above height + margin-bottom */
|
|
62
62
|
top: 24px;
|
|
63
63
|
}
|
|
64
|
-
.calendar-
|
|
64
|
+
.calendar-range__s_1aiuv {
|
|
65
65
|
height: var(--size-s-height);
|
|
66
66
|
}
|
|
67
|
-
.calendar-
|
|
67
|
+
.calendar-range__m_1aiuv {
|
|
68
68
|
height: var(--size-m-height);
|
|
69
69
|
}
|
|
70
|
-
.calendar-
|
|
70
|
+
.calendar-range__l_1aiuv {
|
|
71
71
|
height: var(--size-l-height);
|
|
72
72
|
}
|
|
73
|
-
.calendar-
|
|
73
|
+
.calendar-range__xl_1aiuv {
|
|
74
74
|
height: var(--size-xl-height);
|
|
75
75
|
}
|
package/esm/Component.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from './index.module-
|
|
1
|
+
import { _ as __rest, a as __assign } from './index.module-2ca4a4ca.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { CalendarRangePopover } from './views/popover.js';
|
|
4
4
|
import { CalendarRangeStatic } from './views/static.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
var styles = {"component":"calendar-
|
|
4
|
+
var styles = {"component":"calendar-range__component_1aiuv","outer":"calendar-range__outer_1aiuv","s":"calendar-range__s_1aiuv","m":"calendar-range__m_1aiuv","l":"calendar-range__l_1aiuv","xl":"calendar-range__xl_1aiuv"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
var Divider = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ilxr4 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-primary: #0b1f35;
|
|
4
4
|
}
|
|
@@ -41,35 +41,35 @@
|
|
|
41
41
|
|
|
42
42
|
/* marker */
|
|
43
43
|
}
|
|
44
|
-
.calendar-
|
|
44
|
+
.calendar-range__component_1aiuv {
|
|
45
45
|
display: flex;
|
|
46
46
|
align-items: center;
|
|
47
47
|
justify-content: center;
|
|
48
48
|
width: 16px;
|
|
49
49
|
margin: 0 var(--gap-xs)
|
|
50
50
|
}
|
|
51
|
-
.calendar-
|
|
51
|
+
.calendar-range__component_1aiuv:after {
|
|
52
52
|
content: '';
|
|
53
53
|
display: block;
|
|
54
54
|
width: 100%;
|
|
55
55
|
height: 1px;
|
|
56
56
|
background-color: var(--color-light-graphic-primary);
|
|
57
57
|
}
|
|
58
|
-
.calendar-
|
|
58
|
+
.calendar-range__outer_1aiuv {
|
|
59
59
|
position: relative;
|
|
60
60
|
|
|
61
61
|
/* FormControl .above height + margin-bottom */
|
|
62
62
|
top: 24px;
|
|
63
63
|
}
|
|
64
|
-
.calendar-
|
|
64
|
+
.calendar-range__s_1aiuv {
|
|
65
65
|
height: var(--size-s-height);
|
|
66
66
|
}
|
|
67
|
-
.calendar-
|
|
67
|
+
.calendar-range__m_1aiuv {
|
|
68
68
|
height: var(--size-m-height);
|
|
69
69
|
}
|
|
70
|
-
.calendar-
|
|
70
|
+
.calendar-range__l_1aiuv {
|
|
71
71
|
height: var(--size-l-height);
|
|
72
72
|
}
|
|
73
|
-
.calendar-
|
|
73
|
+
.calendar-range__xl_1aiuv {
|
|
74
74
|
height: var(--size-xl-height);
|
|
75
75
|
}
|
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_tpi0s","static":"calendar-range__static_tpi0s","calendar":"calendar-range__calendar_tpi0s"};
|
|
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: 1axne */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -30,18 +30,18 @@
|
|
|
30
30
|
|
|
31
31
|
/* marker */
|
|
32
32
|
}
|
|
33
|
-
.calendar-
|
|
33
|
+
.calendar-range__component_tpi0s {
|
|
34
34
|
display: flex
|
|
35
35
|
}
|
|
36
|
-
.calendar-
|
|
36
|
+
.calendar-range__component_tpi0s button[aria-selected='true'] {
|
|
37
37
|
cursor: pointer;
|
|
38
38
|
}
|
|
39
|
-
.calendar-
|
|
39
|
+
.calendar-range__component_tpi0s *[class*='errorIcon_'] {
|
|
40
40
|
display: none;
|
|
41
41
|
}
|
|
42
|
-
.calendar-
|
|
42
|
+
.calendar-range__component_tpi0s *[class*='calendarIcon_'] {
|
|
43
43
|
margin-right: 0;
|
|
44
44
|
}
|
|
45
|
-
.calendar-
|
|
45
|
+
.calendar-range__static_tpi0s .calendar-range__calendar_tpi0s {
|
|
46
46
|
width: var(--calendar-inner-width);
|
|
47
47
|
}
|
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-2ca4a4ca.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-2ca4a4ca.js';
|
|
2
2
|
import React, { useState, useCallback, useEffect } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import addMonths from 'date-fns/addMonths';
|
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_tpi0s","static":"calendar-range__static_tpi0s","calendar":"calendar-range__calendar_tpi0s"};
|
|
43
43
|
require('./views/index.css')
|
|
44
44
|
|
|
45
45
|
exports.__rest = __rest;
|
package/modern/Component.js
CHANGED
|
@@ -12,7 +12,7 @@ import 'date-fns/isEqual';
|
|
|
12
12
|
import 'date-fns/max';
|
|
13
13
|
import 'date-fns/min';
|
|
14
14
|
import 'date-fns/subMonths';
|
|
15
|
-
import './index.module-
|
|
15
|
+
import './index.module-7365bf1a.js';
|
|
16
16
|
import 'date-fns/endOfMonth';
|
|
17
17
|
import '@alfalab/core-components-calendar/modern';
|
|
18
18
|
import './utils.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
const styles = {"component":"calendar-
|
|
4
|
+
const styles = {"component":"calendar-range__component_1aiuv","outer":"calendar-range__outer_1aiuv","s":"calendar-range__s_1aiuv","m":"calendar-range__m_1aiuv","l":"calendar-range__l_1aiuv","xl":"calendar-range__xl_1aiuv"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const Divider = ({ inputFromProps, inputToProps }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ilxr4 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-primary: #0b1f35;
|
|
4
4
|
}
|
|
@@ -41,35 +41,35 @@
|
|
|
41
41
|
|
|
42
42
|
/* marker */
|
|
43
43
|
}
|
|
44
|
-
.calendar-
|
|
44
|
+
.calendar-range__component_1aiuv {
|
|
45
45
|
display: flex;
|
|
46
46
|
align-items: center;
|
|
47
47
|
justify-content: center;
|
|
48
48
|
width: 16px;
|
|
49
49
|
margin: 0 var(--gap-xs)
|
|
50
50
|
}
|
|
51
|
-
.calendar-
|
|
51
|
+
.calendar-range__component_1aiuv:after {
|
|
52
52
|
content: '';
|
|
53
53
|
display: block;
|
|
54
54
|
width: 100%;
|
|
55
55
|
height: 1px;
|
|
56
56
|
background-color: var(--color-light-graphic-primary);
|
|
57
57
|
}
|
|
58
|
-
.calendar-
|
|
58
|
+
.calendar-range__outer_1aiuv {
|
|
59
59
|
position: relative;
|
|
60
60
|
|
|
61
61
|
/* FormControl .above height + margin-bottom */
|
|
62
62
|
top: 24px;
|
|
63
63
|
}
|
|
64
|
-
.calendar-
|
|
64
|
+
.calendar-range__s_1aiuv {
|
|
65
65
|
height: var(--size-s-height);
|
|
66
66
|
}
|
|
67
|
-
.calendar-
|
|
67
|
+
.calendar-range__m_1aiuv {
|
|
68
68
|
height: var(--size-m-height);
|
|
69
69
|
}
|
|
70
|
-
.calendar-
|
|
70
|
+
.calendar-range__l_1aiuv {
|
|
71
71
|
height: var(--size-l-height);
|
|
72
72
|
}
|
|
73
|
-
.calendar-
|
|
73
|
+
.calendar-range__xl_1aiuv {
|
|
74
74
|
height: var(--size-xl-height);
|
|
75
75
|
}
|
package/modern/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import 'date-fns/isEqual';
|
|
|
12
12
|
import 'date-fns/max';
|
|
13
13
|
import 'date-fns/min';
|
|
14
14
|
import 'date-fns/subMonths';
|
|
15
|
-
import './index.module-
|
|
15
|
+
import './index.module-7365bf1a.js';
|
|
16
16
|
import './views/static.js';
|
|
17
17
|
import 'date-fns/endOfMonth';
|
|
18
18
|
import '@alfalab/core-components-calendar/modern';
|
package/modern/views/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1axne */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -30,18 +30,18 @@
|
|
|
30
30
|
|
|
31
31
|
/* marker */
|
|
32
32
|
}
|
|
33
|
-
.calendar-
|
|
33
|
+
.calendar-range__component_tpi0s {
|
|
34
34
|
display: flex
|
|
35
35
|
}
|
|
36
|
-
.calendar-
|
|
36
|
+
.calendar-range__component_tpi0s button[aria-selected='true'] {
|
|
37
37
|
cursor: pointer;
|
|
38
38
|
}
|
|
39
|
-
.calendar-
|
|
39
|
+
.calendar-range__component_tpi0s *[class*='errorIcon_'] {
|
|
40
40
|
display: none;
|
|
41
41
|
}
|
|
42
|
-
.calendar-
|
|
42
|
+
.calendar-range__component_tpi0s *[class*='calendarIcon_'] {
|
|
43
43
|
margin-right: 0;
|
|
44
44
|
}
|
|
45
|
-
.calendar-
|
|
45
|
+
.calendar-range__static_tpi0s .calendar-range__calendar_tpi0s {
|
|
46
46
|
width: var(--calendar-inner-width);
|
|
47
47
|
}
|
package/modern/views/popover.js
CHANGED
|
@@ -5,7 +5,7 @@ import { isValidInputValue, parseDateString, CalendarInput } from '@alfalab/core
|
|
|
5
5
|
import { isCompleteDateInput } from '@alfalab/core-components-date-input/modern';
|
|
6
6
|
import { Divider } from '../components/divider/Component.js';
|
|
7
7
|
import { usePopoverViewMonthes } from '../hooks.js';
|
|
8
|
-
import { s as styles } from '../index.module-
|
|
8
|
+
import { s as styles } from '../index.module-7365bf1a.js';
|
|
9
9
|
import 'date-fns/addMonths';
|
|
10
10
|
import 'date-fns/isEqual';
|
|
11
11
|
import 'date-fns/max';
|
package/modern/views/static.js
CHANGED
|
@@ -11,7 +11,7 @@ import { isCompleteDateInput, DateInput } from '@alfalab/core-components-date-in
|
|
|
11
11
|
import { Divider } from '../components/divider/Component.js';
|
|
12
12
|
import { useStaticViewMonthes, useSelectionProps } from '../hooks.js';
|
|
13
13
|
import { isDayButton } from '../utils.js';
|
|
14
|
-
import { s as styles } from '../index.module-
|
|
14
|
+
import { s as styles } from '../index.module-7365bf1a.js';
|
|
15
15
|
import 'date-fns/isEqual';
|
|
16
16
|
import 'date-fns/min';
|
|
17
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-calendar-range",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.9",
|
|
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.2.
|
|
22
|
-
"@alfalab/core-components-calendar-input": "^8.2.
|
|
23
|
-
"@alfalab/core-components-date-input": "^4.1.
|
|
21
|
+
"@alfalab/core-components-calendar": "^6.2.2",
|
|
22
|
+
"@alfalab/core-components-calendar-input": "^8.2.2",
|
|
23
|
+
"@alfalab/core-components-date-input": "^4.1.3",
|
|
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: 1axne */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -30,18 +30,18 @@
|
|
|
30
30
|
|
|
31
31
|
/* marker */
|
|
32
32
|
}
|
|
33
|
-
.calendar-
|
|
33
|
+
.calendar-range__component_tpi0s {
|
|
34
34
|
display: flex
|
|
35
35
|
}
|
|
36
|
-
.calendar-
|
|
36
|
+
.calendar-range__component_tpi0s button[aria-selected='true'] {
|
|
37
37
|
cursor: pointer;
|
|
38
38
|
}
|
|
39
|
-
.calendar-
|
|
39
|
+
.calendar-range__component_tpi0s *[class*='errorIcon_'] {
|
|
40
40
|
display: none;
|
|
41
41
|
}
|
|
42
|
-
.calendar-
|
|
42
|
+
.calendar-range__component_tpi0s *[class*='calendarIcon_'] {
|
|
43
43
|
margin-right: 0;
|
|
44
44
|
}
|
|
45
|
-
.calendar-
|
|
45
|
+
.calendar-range__static_tpi0s .calendar-range__calendar_tpi0s {
|
|
46
46
|
width: var(--calendar-inner-width);
|
|
47
47
|
}
|
package/views/popover.js
CHANGED
package/views/static.js
CHANGED