@alfalab/core-components-calendar-range 5.6.9 → 5.7.0

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,17 @@
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.7.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-calendar-range@5.6.9...@alfalab/core-components-calendar-range@5.7.0) (2022-08-04)
7
+
8
+
9
+ ### Features
10
+
11
+ * react 18 support ([#159](https://github.com/core-ds/core-components/issues/159)) ([2e6693c](https://github.com/core-ds/core-components/commit/2e6693c62f534e333aadb7d3fff4ffd78ac84c63))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [5.6.9](https://github.com/core-ds/core-components/compare/@alfalab/core-components-calendar-range@5.6.8...@alfalab/core-components-calendar-range@5.6.9) (2022-07-25)
7
18
 
8
19
  **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-b4905a82.js');
5
+ var index_module = require('./index.module-1aef65c9.js');
6
6
  var React = require('react');
7
7
  require('classnames');
8
8
  require('date-fns/startOfMonth');
package/cssm/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/esm/Component.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as __rest, a as __assign } from './index.module-bae9947f.js';
1
+ import { _ as __rest, a as __assign } from './index.module-4145a88f.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-bae9947f.js';
1
+ import './index.module-4145a88f.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_gkaed","divider":"calendar-range__divider_gkaed","static":"calendar-range__static_gkaed","calendar":"calendar-range__calendar_gkaed"};
40
+ var styles = {"component":"calendar-range__component_5pgt2","divider":"calendar-range__divider_5pgt2","static":"calendar-range__static_5pgt2","calendar":"calendar-range__calendar_5pgt2"};
41
41
  require('./views/index.css')
42
42
 
43
43
  export { __rest as _, __assign as a, styles as s };
package/esm/utils.js CHANGED
@@ -1,3 +1,5 @@
1
- var isDayButton = function (node) { return node && node.tagName === 'BUTTON' && node.dataset.date; };
1
+ var isDayButton = function (node) {
2
+ return node && node.tagName === 'BUTTON' && node.dataset.date;
3
+ };
2
4
 
3
5
  export { isDayButton };
@@ -1,4 +1,4 @@
1
- /* hash: ds5ai */
1
+ /* hash: 16ktl */
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_gkaed {
39
+ .calendar-range__component_5pgt2 {
40
40
  display: flex
41
41
  }
42
- .calendar-range__component_gkaed button[aria-selected='true'] {
42
+ .calendar-range__component_5pgt2 button[aria-selected='true'] {
43
43
  cursor: pointer;
44
44
  }
45
- .calendar-range__component_gkaed *[class*='errorIcon_'] {
45
+ .calendar-range__component_5pgt2 *[class*='errorIcon_'] {
46
46
  display: none;
47
47
  }
48
- .calendar-range__component_gkaed *[class*='calendarIcon_'] {
48
+ .calendar-range__component_5pgt2 *[class*='calendarIcon_'] {
49
49
  margin-right: 0;
50
50
  }
51
- .calendar-range__divider_gkaed {
51
+ .calendar-range__divider_5pgt2 {
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_gkaed:after {
59
+ .calendar-range__divider_5pgt2: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_gkaed .calendar-range__calendar_gkaed {
66
+ .calendar-range__static_5pgt2 .calendar-range__calendar_5pgt2 {
67
67
  width: var(--calendar-inner-width);
68
68
  }
@@ -1,4 +1,4 @@
1
- import { s as styles, a as __assign } from '../index.module-bae9947f.js';
1
+ import { s as styles, a as __assign } from '../index.module-4145a88f.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-bae9947f.js';
1
+ import { _ as __rest, s as styles, a as __assign } from '../index.module-4145a88f.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-b4905a82.js');
5
+ require('./index.module-1aef65c9.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_gkaed","divider":"calendar-range__divider_gkaed","static":"calendar-range__static_gkaed","calendar":"calendar-range__calendar_gkaed"};
42
+ var styles = {"component":"calendar-range__component_5pgt2","divider":"calendar-range__divider_5pgt2","static":"calendar-range__static_5pgt2","calendar":"calendar-range__calendar_5pgt2"};
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-979d23e7.js';
12
+ import './index.module-5e4860d5.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-979d23e7.js';
12
+ import './index.module-5e4860d5.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_5pgt2","divider":"calendar-range__divider_5pgt2","static":"calendar-range__static_5pgt2","calendar":"calendar-range__calendar_5pgt2"};
2
+ require('./views/index.css')
3
+
4
+ export { styles as s };
@@ -1,4 +1,4 @@
1
- /* hash: ds5ai */
1
+ /* hash: 16ktl */
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_gkaed {
39
+ .calendar-range__component_5pgt2 {
40
40
  display: flex
41
41
  }
42
- .calendar-range__component_gkaed button[aria-selected='true'] {
42
+ .calendar-range__component_5pgt2 button[aria-selected='true'] {
43
43
  cursor: pointer;
44
44
  }
45
- .calendar-range__component_gkaed *[class*='errorIcon_'] {
45
+ .calendar-range__component_5pgt2 *[class*='errorIcon_'] {
46
46
  display: none;
47
47
  }
48
- .calendar-range__component_gkaed *[class*='calendarIcon_'] {
48
+ .calendar-range__component_5pgt2 *[class*='calendarIcon_'] {
49
49
  margin-right: 0;
50
50
  }
51
- .calendar-range__divider_gkaed {
51
+ .calendar-range__divider_5pgt2 {
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_gkaed:after {
59
+ .calendar-range__divider_5pgt2: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_gkaed .calendar-range__calendar_gkaed {
66
+ .calendar-range__static_5pgt2 .calendar-range__calendar_5pgt2 {
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-979d23e7.js';
12
+ import { s as styles } from '../index.module-5e4860d5.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-979d23e7.js';
12
+ import { s as styles } from '../index.module-5e4860d5.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.9",
3
+ "version": "5.7.0",
4
4
  "description": "Calendar range component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -13,14 +13,14 @@
13
13
  "directory": "dist"
14
14
  },
15
15
  "peerDependencies": {
16
- "react": "^16.9.0 || ^17.0.1",
17
- "react-dom": "^16.9.0 || ^17.0.1"
16
+ "react": "^16.9.0 || ^17.0.1 || ^18.0.0",
17
+ "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
18
18
  },
19
19
  "dependencies": {
20
- "@alfalab/core-components-calendar": "^5.5.8",
21
- "@alfalab/core-components-calendar-input": "^6.5.9",
22
- "@alfalab/core-components-date-input": "^2.3.4",
23
- "classnames": "^2.2.6",
20
+ "@alfalab/core-components-calendar": "^5.6.0",
21
+ "@alfalab/core-components-calendar-input": "^6.6.0",
22
+ "@alfalab/core-components-date-input": "^2.4.0",
23
+ "classnames": "^2.3.1",
24
24
  "date-fns": "^2.16.1"
25
25
  }
26
26
  }
package/views/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: ds5ai */
1
+ /* hash: 16ktl */
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_gkaed {
39
+ .calendar-range__component_5pgt2 {
40
40
  display: flex
41
41
  }
42
- .calendar-range__component_gkaed button[aria-selected='true'] {
42
+ .calendar-range__component_5pgt2 button[aria-selected='true'] {
43
43
  cursor: pointer;
44
44
  }
45
- .calendar-range__component_gkaed *[class*='errorIcon_'] {
45
+ .calendar-range__component_5pgt2 *[class*='errorIcon_'] {
46
46
  display: none;
47
47
  }
48
- .calendar-range__component_gkaed *[class*='calendarIcon_'] {
48
+ .calendar-range__component_5pgt2 *[class*='calendarIcon_'] {
49
49
  margin-right: 0;
50
50
  }
51
- .calendar-range__divider_gkaed {
51
+ .calendar-range__divider_5pgt2 {
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_gkaed:after {
59
+ .calendar-range__divider_5pgt2: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_gkaed .calendar-range__calendar_gkaed {
66
+ .calendar-range__static_5pgt2 .calendar-range__calendar_5pgt2 {
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-b4905a82.js');
5
+ var index_module = require('../index.module-1aef65c9.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-b4905a82.js');
5
+ var index_module = require('../index.module-1aef65c9.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_gkaed","divider":"calendar-range__divider_gkaed","static":"calendar-range__static_gkaed","calendar":"calendar-range__calendar_gkaed"};
2
- require('./views/index.css')
3
-
4
- export { styles as s };