@alfalab/core-components-calendar-range 5.1.0 → 5.1.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 CHANGED
@@ -3,6 +3,30 @@
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.1.3](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-calendar-range@5.1.2...@alfalab/core-components-calendar-range@5.1.3) (2022-03-18)
7
+
8
+ **Note:** Version bump only for package @alfalab/core-components-calendar-range
9
+
10
+
11
+
12
+
13
+
14
+ ## [5.1.2](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-calendar-range@5.1.1...@alfalab/core-components-calendar-range@5.1.2) (2022-03-04)
15
+
16
+ **Note:** Version bump only for package @alfalab/core-components-calendar-range
17
+
18
+
19
+
20
+
21
+
22
+ ## [5.1.1](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-calendar-range@5.1.0...@alfalab/core-components-calendar-range@5.1.1) (2022-03-01)
23
+
24
+ **Note:** Version bump only for package @alfalab/core-components-calendar-range
25
+
26
+
27
+
28
+
29
+
6
30
  # [5.1.0](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-calendar-range@5.0.0...@alfalab/core-components-calendar-range@5.1.0) (2022-02-21)
7
31
 
8
32
 
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-a9bc9731.js');
5
+ var index_module = require('./index.module-a58eee14.js');
6
6
  var React = require('react');
7
7
  require('classnames');
8
8
  require('date-fns/startOfMonth');
@@ -1,4 +1,4 @@
1
- import { _ as __rest, a as __assign } from './index.module-bbf7d46d.js';
1
+ import { _ as __rest, a as __assign } from './index.module-15a85053.js';
2
2
  import React from 'react';
3
3
  import 'classnames';
4
4
  import 'date-fns/startOfMonth';
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import './index.module-bbf7d46d.js';
1
+ import './index.module-15a85053.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import 'date-fns/startOfMonth';
@@ -37,7 +37,7 @@ function __rest(s, e) {
37
37
  return t;
38
38
  }
39
39
 
40
- var styles = {"component":"calendar-range__component_eksd6","divider":"calendar-range__divider_eksd6","static":"calendar-range__static_eksd6","calendar":"calendar-range__calendar_eksd6"};
40
+ var styles = {"component":"calendar-range__component_1ezn2","divider":"calendar-range__divider_1ezn2","static":"calendar-range__static_1ezn2","calendar":"calendar-range__calendar_1ezn2"};
41
41
  require('./views/index.css')
42
42
 
43
43
  export { __rest as _, __assign as a, styles as s };
@@ -1,4 +1,4 @@
1
- /* hash: 13dnh */
1
+ /* hash: bhpko */
2
2
  :root {
3
3
  --color-light-graphic-primary: #0b1f35;
4
4
  }
@@ -34,19 +34,19 @@
34
34
 
35
35
  /* marker */
36
36
  }
37
- .calendar-range__component_eksd6 {
37
+ .calendar-range__component_1ezn2 {
38
38
  display: flex
39
39
  }
40
- .calendar-range__component_eksd6 button[aria-selected='true'] {
40
+ .calendar-range__component_1ezn2 button[aria-selected='true'] {
41
41
  cursor: pointer;
42
42
  }
43
- .calendar-range__component_eksd6 *[class*='errorIcon_'] {
43
+ .calendar-range__component_1ezn2 *[class*='errorIcon_'] {
44
44
  display: none;
45
45
  }
46
- .calendar-range__component_eksd6 *[class*='calendarIcon_'] {
46
+ .calendar-range__component_1ezn2 *[class*='calendarIcon_'] {
47
47
  margin-right: 0;
48
48
  }
49
- .calendar-range__divider_eksd6 {
49
+ .calendar-range__divider_1ezn2 {
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-range__divider_eksd6:after {
57
+ .calendar-range__divider_1ezn2: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-range__static_eksd6 .calendar-range__calendar_eksd6 {
64
+ .calendar-range__static_1ezn2 .calendar-range__calendar_1ezn2 {
65
65
  width: var(--calendar-inner-width);
66
66
  }
@@ -1,4 +1,4 @@
1
- import { s as styles, a as __assign } from '../index.module-bbf7d46d.js';
1
+ import { s as styles, a as __assign } from '../index.module-15a85053.js';
2
2
  import React, { useState, useCallback, useEffect } from 'react';
3
3
  import cn from 'classnames';
4
4
  import startOfMonth from 'date-fns/startOfMonth';
@@ -1,4 +1,4 @@
1
- import { _ as __rest, s as styles, a as __assign } from '../index.module-bbf7d46d.js';
1
+ import { _ as __rest, s as styles, a as __assign } from '../index.module-15a85053.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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./index.module-a9bc9731.js');
5
+ require('./index.module-a58eee14.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('date-fns/startOfMonth');
@@ -39,7 +39,7 @@ function __rest(s, e) {
39
39
  return t;
40
40
  }
41
41
 
42
- var styles = {"component":"calendar-range__component_eksd6","divider":"calendar-range__divider_eksd6","static":"calendar-range__static_eksd6","calendar":"calendar-range__calendar_eksd6"};
42
+ var styles = {"component":"calendar-range__component_1ezn2","divider":"calendar-range__divider_1ezn2","static":"calendar-range__static_1ezn2","calendar":"calendar-range__calendar_1ezn2"};
43
43
  require('./views/index.css')
44
44
 
45
45
  exports.__rest = __rest;
@@ -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-4c141936.js';
12
+ import './index.module-414efa06.js';
13
13
  import { CalendarRangePopover } from './views/popover.js';
14
14
  import 'date-fns/endOfMonth';
15
15
  import '@alfalab/core-components-calendar/dist/modern';
@@ -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-4c141936.js';
12
+ import './index.module-414efa06.js';
13
13
  import './views/popover.js';
14
14
  import 'date-fns/endOfMonth';
15
15
  import '@alfalab/core-components-calendar/dist/modern';
@@ -0,0 +1,4 @@
1
+ var styles = {"component":"calendar-range__component_1ezn2","divider":"calendar-range__divider_1ezn2","static":"calendar-range__static_1ezn2","calendar":"calendar-range__calendar_1ezn2"};
2
+ require('./views/index.css')
3
+
4
+ export { styles as s };
@@ -1,4 +1,4 @@
1
- /* hash: 13dnh */
1
+ /* hash: bhpko */
2
2
  :root {
3
3
  --color-light-graphic-primary: #0b1f35;
4
4
  }
@@ -34,19 +34,19 @@
34
34
 
35
35
  /* marker */
36
36
  }
37
- .calendar-range__component_eksd6 {
37
+ .calendar-range__component_1ezn2 {
38
38
  display: flex
39
39
  }
40
- .calendar-range__component_eksd6 button[aria-selected='true'] {
40
+ .calendar-range__component_1ezn2 button[aria-selected='true'] {
41
41
  cursor: pointer;
42
42
  }
43
- .calendar-range__component_eksd6 *[class*='errorIcon_'] {
43
+ .calendar-range__component_1ezn2 *[class*='errorIcon_'] {
44
44
  display: none;
45
45
  }
46
- .calendar-range__component_eksd6 *[class*='calendarIcon_'] {
46
+ .calendar-range__component_1ezn2 *[class*='calendarIcon_'] {
47
47
  margin-right: 0;
48
48
  }
49
- .calendar-range__divider_eksd6 {
49
+ .calendar-range__divider_1ezn2 {
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-range__divider_eksd6:after {
57
+ .calendar-range__divider_1ezn2: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-range__static_eksd6 .calendar-range__calendar_eksd6 {
64
+ .calendar-range__static_1ezn2 .calendar-range__calendar_1ezn2 {
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-4c141936.js';
12
+ import { s as styles } from '../index.module-414efa06.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-4c141936.js';
12
+ import { s as styles } from '../index.module-414efa06.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';
@@ -1,4 +1,4 @@
1
- /* hash: 13dnh */
1
+ /* hash: bhpko */
2
2
  :root {
3
3
  --color-light-graphic-primary: #0b1f35;
4
4
  }
@@ -34,19 +34,19 @@
34
34
 
35
35
  /* marker */
36
36
  }
37
- .calendar-range__component_eksd6 {
37
+ .calendar-range__component_1ezn2 {
38
38
  display: flex
39
39
  }
40
- .calendar-range__component_eksd6 button[aria-selected='true'] {
40
+ .calendar-range__component_1ezn2 button[aria-selected='true'] {
41
41
  cursor: pointer;
42
42
  }
43
- .calendar-range__component_eksd6 *[class*='errorIcon_'] {
43
+ .calendar-range__component_1ezn2 *[class*='errorIcon_'] {
44
44
  display: none;
45
45
  }
46
- .calendar-range__component_eksd6 *[class*='calendarIcon_'] {
46
+ .calendar-range__component_1ezn2 *[class*='calendarIcon_'] {
47
47
  margin-right: 0;
48
48
  }
49
- .calendar-range__divider_eksd6 {
49
+ .calendar-range__divider_1ezn2 {
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-range__divider_eksd6:after {
57
+ .calendar-range__divider_1ezn2: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-range__static_eksd6 .calendar-range__calendar_eksd6 {
64
+ .calendar-range__static_1ezn2 .calendar-range__calendar_1ezn2 {
65
65
  width: var(--calendar-inner-width);
66
66
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index_module = require('../index.module-a9bc9731.js');
5
+ var index_module = require('../index.module-a58eee14.js');
6
6
  var React = require('react');
7
7
  var cn = require('classnames');
8
8
  var startOfMonth = require('date-fns/startOfMonth');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index_module = require('../index.module-a9bc9731.js');
5
+ var index_module = require('../index.module-a58eee14.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.1.0",
3
+ "version": "5.1.3",
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.0.0",
23
- "@alfalab/core-components-calendar-input": "^6.0.0",
24
- "@alfalab/core-components-date-input": "^2.0.0",
22
+ "@alfalab/core-components-calendar": "^5.2.0",
23
+ "@alfalab/core-components-calendar-input": "^6.1.2",
24
+ "@alfalab/core-components-date-input": "^2.1.0",
25
25
  "classnames": "^2.2.6",
26
26
  "date-fns": "^2.16.1"
27
27
  },
28
- "gitHead": "306fbf59136bff772c75ec3f5c0c87fb5a803b15"
28
+ "gitHead": "c0dcdbba11224404e19bdfd1ce2037f7e2bc2104"
29
29
  }
@@ -1,4 +0,0 @@
1
- var styles = {"component":"calendar-range__component_eksd6","divider":"calendar-range__divider_eksd6","static":"calendar-range__static_eksd6","calendar":"calendar-range__calendar_eksd6"};
2
- require('./views/index.css')
3
-
4
- export { styles as s };