@alfalab/core-components-calendar-range 5.6.7 → 5.6.8

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,14 @@
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.8](https://github.com/core-ds/core-components/compare/@alfalab/core-components-calendar-range@5.6.7...@alfalab/core-components-calendar-range@5.6.8) (2022-07-25)
7
+
8
+ **Note:** Version bump only for package @alfalab/core-components-calendar-range
9
+
10
+
11
+
12
+
13
+
6
14
  ## [5.6.7](https://github.com/core-ds/core-components/compare/@alfalab/core-components-calendar-range@5.6.6...@alfalab/core-components-calendar-range@5.6.7) (2022-07-18)
7
15
 
8
16
  **Note:** Version bump only for package @alfalab/core-components-calendar-range
package/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-c0092275.js');
5
+ var index_module = require('./index.module-b543f001.js');
6
6
  var React = require('react');
7
7
  require('classnames');
8
8
  require('date-fns/startOfMonth');
package/esm/Component.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as __rest, a as __assign } from './index.module-ba144a13.js';
1
+ import { _ as __rest, a as __assign } from './index.module-c6820230.js';
2
2
  import React from 'react';
3
3
  import 'classnames';
4
4
  import 'date-fns/startOfMonth';
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import './index.module-ba144a13.js';
1
+ import './index.module-c6820230.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_nfd9p","divider":"calendar-range__divider_nfd9p","static":"calendar-range__static_nfd9p","calendar":"calendar-range__calendar_nfd9p"};
40
+ var styles = {"component":"calendar-range__component_17xxj","divider":"calendar-range__divider_17xxj","static":"calendar-range__static_17xxj","calendar":"calendar-range__calendar_17xxj"};
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: 15q67 */
1
+ /* hash: 46fne */
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-range__component_nfd9p {
39
+ .calendar-range__component_17xxj {
40
40
  display: flex
41
41
  }
42
- .calendar-range__component_nfd9p button[aria-selected='true'] {
42
+ .calendar-range__component_17xxj button[aria-selected='true'] {
43
43
  cursor: pointer;
44
44
  }
45
- .calendar-range__component_nfd9p *[class*='errorIcon_'] {
45
+ .calendar-range__component_17xxj *[class*='errorIcon_'] {
46
46
  display: none;
47
47
  }
48
- .calendar-range__component_nfd9p *[class*='calendarIcon_'] {
48
+ .calendar-range__component_17xxj *[class*='calendarIcon_'] {
49
49
  margin-right: 0;
50
50
  }
51
- .calendar-range__divider_nfd9p {
51
+ .calendar-range__divider_17xxj {
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-range__divider_nfd9p:after {
59
+ .calendar-range__divider_17xxj: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-range__static_nfd9p .calendar-range__calendar_nfd9p {
66
+ .calendar-range__static_17xxj .calendar-range__calendar_17xxj {
67
67
  width: var(--calendar-inner-width);
68
68
  }
@@ -1,4 +1,4 @@
1
- import { s as styles, a as __assign } from '../index.module-ba144a13.js';
1
+ import { s as styles, a as __assign } from '../index.module-c6820230.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-ba144a13.js';
1
+ import { _ as __rest, s as styles, a as __assign } from '../index.module-c6820230.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/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./index.module-c0092275.js');
5
+ require('./index.module-b543f001.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_nfd9p","divider":"calendar-range__divider_nfd9p","static":"calendar-range__static_nfd9p","calendar":"calendar-range__calendar_nfd9p"};
42
+ var styles = {"component":"calendar-range__component_17xxj","divider":"calendar-range__divider_17xxj","static":"calendar-range__static_17xxj","calendar":"calendar-range__calendar_17xxj"};
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-e3b6f34a.js';
12
+ import './index.module-5fb3d6eb.js';
13
13
  import { CalendarRangePopover } from './views/popover.js';
14
14
  import 'date-fns/endOfMonth';
15
15
  import '@alfalab/core-components-calendar/modern';
package/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-e3b6f34a.js';
12
+ import './index.module-5fb3d6eb.js';
13
13
  import './views/popover.js';
14
14
  import 'date-fns/endOfMonth';
15
15
  import '@alfalab/core-components-calendar/modern';
@@ -0,0 +1,4 @@
1
+ var styles = {"component":"calendar-range__component_17xxj","divider":"calendar-range__divider_17xxj","static":"calendar-range__static_17xxj","calendar":"calendar-range__calendar_17xxj"};
2
+ require('./views/index.css')
3
+
4
+ export { styles as s };
@@ -1,4 +1,4 @@
1
- /* hash: 15q67 */
1
+ /* hash: 46fne */
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-range__component_nfd9p {
39
+ .calendar-range__component_17xxj {
40
40
  display: flex
41
41
  }
42
- .calendar-range__component_nfd9p button[aria-selected='true'] {
42
+ .calendar-range__component_17xxj button[aria-selected='true'] {
43
43
  cursor: pointer;
44
44
  }
45
- .calendar-range__component_nfd9p *[class*='errorIcon_'] {
45
+ .calendar-range__component_17xxj *[class*='errorIcon_'] {
46
46
  display: none;
47
47
  }
48
- .calendar-range__component_nfd9p *[class*='calendarIcon_'] {
48
+ .calendar-range__component_17xxj *[class*='calendarIcon_'] {
49
49
  margin-right: 0;
50
50
  }
51
- .calendar-range__divider_nfd9p {
51
+ .calendar-range__divider_17xxj {
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-range__divider_nfd9p:after {
59
+ .calendar-range__divider_17xxj: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-range__static_nfd9p .calendar-range__calendar_nfd9p {
66
+ .calendar-range__static_17xxj .calendar-range__calendar_17xxj {
67
67
  width: var(--calendar-inner-width);
68
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-e3b6f34a.js';
12
+ import { s as styles } from '../index.module-5fb3d6eb.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-e3b6f34a.js';
12
+ import { s as styles } from '../index.module-5fb3d6eb.js';
13
13
  import endOfMonth from 'date-fns/endOfMonth';
14
14
  import { usePeriodWithReset, Calendar } from '@alfalab/core-components-calendar/modern';
15
15
  import { isDayButton } from '../utils.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-calendar-range",
3
- "version": "5.6.7",
3
+ "version": "5.6.8",
4
4
  "description": "Calendar range component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -17,8 +17,8 @@
17
17
  "react-dom": "^16.9.0 || ^17.0.1"
18
18
  },
19
19
  "dependencies": {
20
- "@alfalab/core-components-calendar": "^5.5.7",
21
- "@alfalab/core-components-calendar-input": "^6.5.7",
20
+ "@alfalab/core-components-calendar": "^5.5.8",
21
+ "@alfalab/core-components-calendar-input": "^6.5.8",
22
22
  "@alfalab/core-components-date-input": "^2.3.3",
23
23
  "classnames": "^2.2.6",
24
24
  "date-fns": "^2.16.1"
package/utils.js CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var isDayButton = function (node) { return node && node.tagName === 'BUTTON' && node.dataset.date; };
5
+ var isDayButton = function (node) {
6
+ return node && node.tagName === 'BUTTON' && node.dataset.date;
7
+ };
6
8
 
7
9
  exports.isDayButton = isDayButton;
package/views/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 15q67 */
1
+ /* hash: 46fne */
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-range__component_nfd9p {
39
+ .calendar-range__component_17xxj {
40
40
  display: flex
41
41
  }
42
- .calendar-range__component_nfd9p button[aria-selected='true'] {
42
+ .calendar-range__component_17xxj button[aria-selected='true'] {
43
43
  cursor: pointer;
44
44
  }
45
- .calendar-range__component_nfd9p *[class*='errorIcon_'] {
45
+ .calendar-range__component_17xxj *[class*='errorIcon_'] {
46
46
  display: none;
47
47
  }
48
- .calendar-range__component_nfd9p *[class*='calendarIcon_'] {
48
+ .calendar-range__component_17xxj *[class*='calendarIcon_'] {
49
49
  margin-right: 0;
50
50
  }
51
- .calendar-range__divider_nfd9p {
51
+ .calendar-range__divider_17xxj {
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-range__divider_nfd9p:after {
59
+ .calendar-range__divider_17xxj: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-range__static_nfd9p .calendar-range__calendar_nfd9p {
66
+ .calendar-range__static_17xxj .calendar-range__calendar_17xxj {
67
67
  width: var(--calendar-inner-width);
68
68
  }
package/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-c0092275.js');
5
+ var index_module = require('../index.module-b543f001.js');
6
6
  var React = require('react');
7
7
  var cn = require('classnames');
8
8
  var startOfMonth = require('date-fns/startOfMonth');
package/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-c0092275.js');
5
+ var index_module = require('../index.module-b543f001.js');
6
6
  var React = require('react');
7
7
  var cn = require('classnames');
8
8
  var startOfMonth = require('date-fns/startOfMonth');
@@ -1,4 +0,0 @@
1
- var styles = {"component":"calendar-range__component_nfd9p","divider":"calendar-range__divider_nfd9p","static":"calendar-range__static_nfd9p","calendar":"calendar-range__calendar_nfd9p"};
2
- require('./views/index.css')
3
-
4
- export { styles as s };