@alfalab/core-components-calendar-range 5.5.0 → 5.6.2

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,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.6.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-calendar-range@5.6.1...@alfalab/core-components-calendar-range@5.6.2) (2022-07-01)
7
+
8
+ **Note:** Version bump only for package @alfalab/core-components-calendar-range
9
+
10
+
11
+
12
+
13
+
14
+ ## [5.6.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-calendar-range@5.6.0...@alfalab/core-components-calendar-range@5.6.1) (2022-06-30)
15
+
16
+ **Note:** Version bump only for package @alfalab/core-components-calendar-range
17
+
18
+
19
+
20
+
21
+
22
+ # [5.6.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-calendar-range@5.5.0...@alfalab/core-components-calendar-range@5.6.0) (2022-06-29)
23
+
24
+
25
+ ### Features
26
+
27
+ * **calendar:** implement calendar mobile ([#54](https://github.com/core-ds/core-components/issues/54)) ([730f51d](https://github.com/core-ds/core-components/commit/730f51d35823273f122fe84a0369f95745fd2878))
28
+
29
+
30
+
31
+
32
+
6
33
  # [5.5.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-calendar-range@5.4.3...@alfalab/core-components-calendar-range@5.5.0) (2022-06-28)
7
34
 
8
35
 
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-48cf1fb4.js');
5
+ var index_module = require('./index.module-6ada06e6.js');
6
6
  var React = require('react');
7
7
  require('classnames');
8
8
  require('date-fns/startOfMonth');
@@ -25,6 +25,8 @@
25
25
 
26
26
  /* highlighted */
27
27
 
28
+ /* holidays */
29
+
28
30
  /* range */
29
31
 
30
32
  /* selected */
@@ -1,4 +1,4 @@
1
- import { _ as __rest, a as __assign } from './index.module-f7379ec8.js';
1
+ import { _ as __rest, a as __assign } from './index.module-b650304e.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-f7379ec8.js';
1
+ import './index.module-b650304e.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_pny3m","divider":"calendar-range__divider_pny3m","static":"calendar-range__static_pny3m","calendar":"calendar-range__calendar_pny3m"};
40
+ var styles = {"component":"calendar-range__component_t6weh","divider":"calendar-range__divider_t6weh","static":"calendar-range__static_t6weh","calendar":"calendar-range__calendar_t6weh"};
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: 3cqan */
1
+ /* hash: 1nwbn */
2
2
  :root {
3
3
  --color-light-graphic-primary: #0b1f35;
4
4
  }
@@ -26,6 +26,8 @@
26
26
 
27
27
  /* highlighted */
28
28
 
29
+ /* holidays */
30
+
29
31
  /* range */
30
32
 
31
33
  /* selected */
@@ -34,19 +36,19 @@
34
36
 
35
37
  /* marker */
36
38
  }
37
- .calendar-range__component_pny3m {
39
+ .calendar-range__component_t6weh {
38
40
  display: flex
39
41
  }
40
- .calendar-range__component_pny3m button[aria-selected='true'] {
42
+ .calendar-range__component_t6weh button[aria-selected='true'] {
41
43
  cursor: pointer;
42
44
  }
43
- .calendar-range__component_pny3m *[class*='errorIcon_'] {
45
+ .calendar-range__component_t6weh *[class*='errorIcon_'] {
44
46
  display: none;
45
47
  }
46
- .calendar-range__component_pny3m *[class*='calendarIcon_'] {
48
+ .calendar-range__component_t6weh *[class*='calendarIcon_'] {
47
49
  margin-right: 0;
48
50
  }
49
- .calendar-range__divider_pny3m {
51
+ .calendar-range__divider_t6weh {
50
52
  height: 48px;
51
53
  display: flex;
52
54
  align-items: center;
@@ -54,13 +56,13 @@
54
56
  width: 16px;
55
57
  margin: 0 var(--gap-xs)
56
58
  }
57
- .calendar-range__divider_pny3m:after {
59
+ .calendar-range__divider_t6weh:after {
58
60
  content: '';
59
61
  display: block;
60
62
  width: 100%;
61
63
  height: 1px;
62
64
  background-color: var(--color-light-graphic-primary);
63
65
  }
64
- .calendar-range__static_pny3m .calendar-range__calendar_pny3m {
66
+ .calendar-range__static_t6weh .calendar-range__calendar_t6weh {
65
67
  width: var(--calendar-inner-width);
66
68
  }
@@ -1,4 +1,4 @@
1
- import { s as styles, a as __assign } from '../index.module-f7379ec8.js';
1
+ import { s as styles, a as __assign } from '../index.module-b650304e.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-f7379ec8.js';
1
+ import { _ as __rest, s as styles, a as __assign } from '../index.module-b650304e.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-48cf1fb4.js');
5
+ require('./index.module-6ada06e6.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_pny3m","divider":"calendar-range__divider_pny3m","static":"calendar-range__static_pny3m","calendar":"calendar-range__calendar_pny3m"};
42
+ var styles = {"component":"calendar-range__component_t6weh","divider":"calendar-range__divider_t6weh","static":"calendar-range__static_t6weh","calendar":"calendar-range__calendar_t6weh"};
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-68930b6a.js';
12
+ import './index.module-3e216d31.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-68930b6a.js';
12
+ import './index.module-3e216d31.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_t6weh","divider":"calendar-range__divider_t6weh","static":"calendar-range__static_t6weh","calendar":"calendar-range__calendar_t6weh"};
2
+ require('./views/index.css')
3
+
4
+ export { styles as s };
@@ -1,4 +1,4 @@
1
- /* hash: 3cqan */
1
+ /* hash: 1nwbn */
2
2
  :root {
3
3
  --color-light-graphic-primary: #0b1f35;
4
4
  }
@@ -26,6 +26,8 @@
26
26
 
27
27
  /* highlighted */
28
28
 
29
+ /* holidays */
30
+
29
31
  /* range */
30
32
 
31
33
  /* selected */
@@ -34,19 +36,19 @@
34
36
 
35
37
  /* marker */
36
38
  }
37
- .calendar-range__component_pny3m {
39
+ .calendar-range__component_t6weh {
38
40
  display: flex
39
41
  }
40
- .calendar-range__component_pny3m button[aria-selected='true'] {
42
+ .calendar-range__component_t6weh button[aria-selected='true'] {
41
43
  cursor: pointer;
42
44
  }
43
- .calendar-range__component_pny3m *[class*='errorIcon_'] {
45
+ .calendar-range__component_t6weh *[class*='errorIcon_'] {
44
46
  display: none;
45
47
  }
46
- .calendar-range__component_pny3m *[class*='calendarIcon_'] {
48
+ .calendar-range__component_t6weh *[class*='calendarIcon_'] {
47
49
  margin-right: 0;
48
50
  }
49
- .calendar-range__divider_pny3m {
51
+ .calendar-range__divider_t6weh {
50
52
  height: 48px;
51
53
  display: flex;
52
54
  align-items: center;
@@ -54,13 +56,13 @@
54
56
  width: 16px;
55
57
  margin: 0 var(--gap-xs)
56
58
  }
57
- .calendar-range__divider_pny3m:after {
59
+ .calendar-range__divider_t6weh:after {
58
60
  content: '';
59
61
  display: block;
60
62
  width: 100%;
61
63
  height: 1px;
62
64
  background-color: var(--color-light-graphic-primary);
63
65
  }
64
- .calendar-range__static_pny3m .calendar-range__calendar_pny3m {
66
+ .calendar-range__static_t6weh .calendar-range__calendar_t6weh {
65
67
  width: var(--calendar-inner-width);
66
68
  }
@@ -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-68930b6a.js';
12
+ import { s as styles } from '../index.module-3e216d31.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-68930b6a.js';
12
+ import { s as styles } from '../index.module-3e216d31.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: 3cqan */
1
+ /* hash: 1nwbn */
2
2
  :root {
3
3
  --color-light-graphic-primary: #0b1f35;
4
4
  }
@@ -26,6 +26,8 @@
26
26
 
27
27
  /* highlighted */
28
28
 
29
+ /* holidays */
30
+
29
31
  /* range */
30
32
 
31
33
  /* selected */
@@ -34,19 +36,19 @@
34
36
 
35
37
  /* marker */
36
38
  }
37
- .calendar-range__component_pny3m {
39
+ .calendar-range__component_t6weh {
38
40
  display: flex
39
41
  }
40
- .calendar-range__component_pny3m button[aria-selected='true'] {
42
+ .calendar-range__component_t6weh button[aria-selected='true'] {
41
43
  cursor: pointer;
42
44
  }
43
- .calendar-range__component_pny3m *[class*='errorIcon_'] {
45
+ .calendar-range__component_t6weh *[class*='errorIcon_'] {
44
46
  display: none;
45
47
  }
46
- .calendar-range__component_pny3m *[class*='calendarIcon_'] {
48
+ .calendar-range__component_t6weh *[class*='calendarIcon_'] {
47
49
  margin-right: 0;
48
50
  }
49
- .calendar-range__divider_pny3m {
51
+ .calendar-range__divider_t6weh {
50
52
  height: 48px;
51
53
  display: flex;
52
54
  align-items: center;
@@ -54,13 +56,13 @@
54
56
  width: 16px;
55
57
  margin: 0 var(--gap-xs)
56
58
  }
57
- .calendar-range__divider_pny3m:after {
59
+ .calendar-range__divider_t6weh:after {
58
60
  content: '';
59
61
  display: block;
60
62
  width: 100%;
61
63
  height: 1px;
62
64
  background-color: var(--color-light-graphic-primary);
63
65
  }
64
- .calendar-range__static_pny3m .calendar-range__calendar_pny3m {
66
+ .calendar-range__static_t6weh .calendar-range__calendar_t6weh {
65
67
  width: var(--calendar-inner-width);
66
68
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index_module = require('../index.module-48cf1fb4.js');
5
+ var index_module = require('../index.module-6ada06e6.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-48cf1fb4.js');
5
+ var index_module = require('../index.module-6ada06e6.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.5.0",
3
+ "version": "5.6.2",
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.4.0",
23
- "@alfalab/core-components-calendar-input": "^6.4.0",
22
+ "@alfalab/core-components-calendar": "^5.5.2",
23
+ "@alfalab/core-components-calendar-input": "^6.5.2",
24
24
  "@alfalab/core-components-date-input": "^2.3.0",
25
25
  "classnames": "^2.2.6",
26
26
  "date-fns": "^2.16.1"
27
27
  },
28
- "gitHead": "dcd5c0c8e25b7c374ff9311505ccf738a82e22c0"
28
+ "gitHead": "a1e54f5b2894447f4a6c80347706c27f855d5710"
29
29
  }
@@ -1,4 +0,0 @@
1
- var styles = {"component":"calendar-range__component_pny3m","divider":"calendar-range__divider_pny3m","static":"calendar-range__static_pny3m","calendar":"calendar-range__calendar_pny3m"};
2
- require('./views/index.css')
3
-
4
- export { styles as s };