@alfalab/core-components-calendar-range 5.4.0 → 5.5.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,54 @@
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.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
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **icon-view:** fix line-height ([#111](https://github.com/core-ds/core-components/issues/111)) ([b16e0ea](https://github.com/core-ds/core-components/commit/b16e0ea206c819ba4370ed8c1662804a83648e0f))
12
+ * **pure-cell:** fix stories ([#113](https://github.com/core-ds/core-components/issues/113)) ([01f6138](https://github.com/core-ds/core-components/commit/01f6138615b1b7268510e012c314650c084c9ef0))
13
+
14
+
15
+ ### Features
16
+
17
+ * circumflexus retrieval ([#57](https://github.com/core-ds/core-components/issues/57)) ([3820da8](https://github.com/core-ds/core-components/commit/3820da818bcdcbee6904c648b3e29c3c828fe202))
18
+
19
+
20
+
21
+
22
+
23
+ ## [5.4.3](https://github.com/core-ds/core-components/compare/@alfalab/core-components-calendar-range@5.4.2...@alfalab/core-components-calendar-range@5.4.3) (2022-06-24)
24
+
25
+
26
+ ### Bug Fixes
27
+
28
+ * **icon-button:** fix disabled colors ([#104](https://github.com/core-ds/core-components/issues/104)) ([3f03849](https://github.com/core-ds/core-components/commit/3f038495bb63f72cd81ceeedbe55b52119581d57))
29
+
30
+
31
+
32
+
33
+
34
+ ## [5.4.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-calendar-range@5.4.1...@alfalab/core-components-calendar-range@5.4.2) (2022-06-23)
35
+
36
+ **Note:** Version bump only for package @alfalab/core-components-calendar-range
37
+
38
+
39
+
40
+
41
+
42
+ ## [5.4.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-calendar-range@5.4.0...@alfalab/core-components-calendar-range@5.4.1) (2022-06-20)
43
+
44
+
45
+ ### Bug Fixes
46
+
47
+ * **calendar:** increased specificity of the button css class ([#103](https://github.com/core-ds/core-components/issues/103)) ([3d20c11](https://github.com/core-ds/core-components/commit/3d20c112a1c161951afa2e1c6fca8d3c048501e7))
48
+ * **icon-button:** fix loading ([#105](https://github.com/core-ds/core-components/issues/105)) ([0b133f0](https://github.com/core-ds/core-components/commit/0b133f042e86702ec2861915f2cdbcdbad9ca905))
49
+
50
+
51
+
52
+
53
+
6
54
  # [5.4.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-calendar-range@5.3.1...@alfalab/core-components-calendar-range@5.4.0) (2022-06-03)
7
55
 
8
56
 
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-6a4b60a6.js');
5
+ var index_module = require('./index.module-48cf1fb4.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-3c348e5c.js';
1
+ import { _ as __rest, a as __assign } from './index.module-f7379ec8.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-3c348e5c.js';
1
+ import './index.module-f7379ec8.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_1qqfo","divider":"calendar-range__divider_1qqfo","static":"calendar-range__static_1qqfo","calendar":"calendar-range__calendar_1qqfo"};
40
+ var styles = {"component":"calendar-range__component_pny3m","divider":"calendar-range__divider_pny3m","static":"calendar-range__static_pny3m","calendar":"calendar-range__calendar_pny3m"};
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: dx64y */
1
+ /* hash: 3cqan */
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_1qqfo {
37
+ .calendar-range__component_pny3m {
38
38
  display: flex
39
39
  }
40
- .calendar-range__component_1qqfo button[aria-selected='true'] {
40
+ .calendar-range__component_pny3m button[aria-selected='true'] {
41
41
  cursor: pointer;
42
42
  }
43
- .calendar-range__component_1qqfo *[class*='errorIcon_'] {
43
+ .calendar-range__component_pny3m *[class*='errorIcon_'] {
44
44
  display: none;
45
45
  }
46
- .calendar-range__component_1qqfo *[class*='calendarIcon_'] {
46
+ .calendar-range__component_pny3m *[class*='calendarIcon_'] {
47
47
  margin-right: 0;
48
48
  }
49
- .calendar-range__divider_1qqfo {
49
+ .calendar-range__divider_pny3m {
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_1qqfo:after {
57
+ .calendar-range__divider_pny3m: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_1qqfo .calendar-range__calendar_1qqfo {
64
+ .calendar-range__static_pny3m .calendar-range__calendar_pny3m {
65
65
  width: var(--calendar-inner-width);
66
66
  }
@@ -1,4 +1,4 @@
1
- import { s as styles, a as __assign } from '../index.module-3c348e5c.js';
1
+ import { s as styles, a as __assign } from '../index.module-f7379ec8.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-3c348e5c.js';
1
+ import { _ as __rest, s as styles, a as __assign } from '../index.module-f7379ec8.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-6a4b60a6.js');
5
+ require('./index.module-48cf1fb4.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_1qqfo","divider":"calendar-range__divider_1qqfo","static":"calendar-range__static_1qqfo","calendar":"calendar-range__calendar_1qqfo"};
42
+ var styles = {"component":"calendar-range__component_pny3m","divider":"calendar-range__divider_pny3m","static":"calendar-range__static_pny3m","calendar":"calendar-range__calendar_pny3m"};
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-93e8a01c.js';
12
+ import './index.module-68930b6a.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-93e8a01c.js';
12
+ import './index.module-68930b6a.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_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 };
@@ -1,4 +1,4 @@
1
- /* hash: dx64y */
1
+ /* hash: 3cqan */
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_1qqfo {
37
+ .calendar-range__component_pny3m {
38
38
  display: flex
39
39
  }
40
- .calendar-range__component_1qqfo button[aria-selected='true'] {
40
+ .calendar-range__component_pny3m button[aria-selected='true'] {
41
41
  cursor: pointer;
42
42
  }
43
- .calendar-range__component_1qqfo *[class*='errorIcon_'] {
43
+ .calendar-range__component_pny3m *[class*='errorIcon_'] {
44
44
  display: none;
45
45
  }
46
- .calendar-range__component_1qqfo *[class*='calendarIcon_'] {
46
+ .calendar-range__component_pny3m *[class*='calendarIcon_'] {
47
47
  margin-right: 0;
48
48
  }
49
- .calendar-range__divider_1qqfo {
49
+ .calendar-range__divider_pny3m {
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_1qqfo:after {
57
+ .calendar-range__divider_pny3m: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_1qqfo .calendar-range__calendar_1qqfo {
64
+ .calendar-range__static_pny3m .calendar-range__calendar_pny3m {
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-93e8a01c.js';
12
+ import { s as styles } from '../index.module-68930b6a.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-93e8a01c.js';
12
+ import { s as styles } from '../index.module-68930b6a.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';
package/dist/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;
@@ -1,4 +1,4 @@
1
- /* hash: dx64y */
1
+ /* hash: 3cqan */
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_1qqfo {
37
+ .calendar-range__component_pny3m {
38
38
  display: flex
39
39
  }
40
- .calendar-range__component_1qqfo button[aria-selected='true'] {
40
+ .calendar-range__component_pny3m button[aria-selected='true'] {
41
41
  cursor: pointer;
42
42
  }
43
- .calendar-range__component_1qqfo *[class*='errorIcon_'] {
43
+ .calendar-range__component_pny3m *[class*='errorIcon_'] {
44
44
  display: none;
45
45
  }
46
- .calendar-range__component_1qqfo *[class*='calendarIcon_'] {
46
+ .calendar-range__component_pny3m *[class*='calendarIcon_'] {
47
47
  margin-right: 0;
48
48
  }
49
- .calendar-range__divider_1qqfo {
49
+ .calendar-range__divider_pny3m {
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_1qqfo:after {
57
+ .calendar-range__divider_pny3m: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_1qqfo .calendar-range__calendar_1qqfo {
64
+ .calendar-range__static_pny3m .calendar-range__calendar_pny3m {
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-6a4b60a6.js');
5
+ var index_module = require('../index.module-48cf1fb4.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-6a4b60a6.js');
5
+ var index_module = require('../index.module-48cf1fb4.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.4.0",
3
+ "version": "5.5.0",
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.3.2",
23
- "@alfalab/core-components-calendar-input": "^6.3.0",
24
- "@alfalab/core-components-date-input": "^2.2.0",
25
- "classnames": "2.2.6",
26
- "date-fns": "2.16.1"
22
+ "@alfalab/core-components-calendar": "^5.4.0",
23
+ "@alfalab/core-components-calendar-input": "^6.4.0",
24
+ "@alfalab/core-components-date-input": "^2.3.0",
25
+ "classnames": "^2.2.6",
26
+ "date-fns": "^2.16.1"
27
27
  },
28
- "gitHead": "d86d1207351d2e8dceb0519cbb0b64c06aaa6884"
28
+ "gitHead": "dcd5c0c8e25b7c374ff9311505ccf738a82e22c0"
29
29
  }
@@ -1,4 +0,0 @@
1
- var styles = {"component":"calendar-range__component_1qqfo","divider":"calendar-range__divider_1qqfo","static":"calendar-range__static_1qqfo","calendar":"calendar-range__calendar_1qqfo"};
2
- require('./views/index.css')
3
-
4
- export { styles as s };