@alfalab/core-components-calendar-with-skeleton 3.2.0 → 4.1.1

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,81 @@
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
+ ## [4.1.1](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-calendar-with-skeleton@4.1.0...@alfalab/core-components-calendar-with-skeleton@4.1.1) (2022-03-04)
7
+
8
+ **Note:** Version bump only for package @alfalab/core-components-calendar-with-skeleton
9
+
10
+
11
+
12
+
13
+
14
+ # [4.1.0](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-calendar-with-skeleton@4.0.0...@alfalab/core-components-calendar-with-skeleton@4.1.0) (2022-03-04)
15
+
16
+
17
+ ### Features
18
+
19
+ * Исправить импорты в сторях. ([#998](https://github.com/alfa-laboratory/core-components/issues/998)) ([e6a654a](https://github.com/alfa-laboratory/core-components/commit/e6a654a0599451c7d149484cb61d8067eed083b7))
20
+
21
+
22
+
23
+
24
+
25
+ # [4.0.0](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-calendar-with-skeleton@3.2.0...@alfalab/core-components-calendar-with-skeleton@4.0.0) (2022-02-17)
26
+
27
+
28
+ * refactor/calendar-range (#984) ([714f615](https://github.com/alfa-laboratory/core-components/commit/714f61590586bafe1060e652943e95c133ed002a)), closes [#984](https://github.com/alfa-laboratory/core-components/issues/984)
29
+
30
+
31
+ ### BREAKING CHANGES
32
+
33
+ * Большое обновление CalendarRange
34
+
35
+ * feat(date-input): add some improvements
36
+
37
+ * feat(date-input): some updates
38
+
39
+ * feat(date-input): validation
40
+
41
+ * feat(calendar): change period selection logic
42
+
43
+ * fix(calendar): range styles
44
+
45
+ * fix(calendar): fix styles, add rangeComplete flag
46
+
47
+ * refactor(calendar-range): temporary
48
+
49
+ * fix(calendar-range): fix hook
50
+
51
+ * fix(calendar-range): fix period
52
+
53
+ * fix(calendar-range): fix tests, fix max date
54
+
55
+ * fix: update exports
56
+
57
+ * feat(calendar): allow empty values for PeriodSlider, update today
58
+
59
+ * fix(calendar-range): hide error icon
60
+
61
+ * chore(calendar-range): demo
62
+
63
+ * feat(calendar): use IconButton
64
+
65
+ * feat(calendar-range): add onChange, update demo
66
+
67
+ * fix(calendar-range): update width
68
+
69
+ * test(calendar-range): update snapshot
70
+
71
+ * fix: import date-fns separately
72
+
73
+ * fix(calendar-range): fix rest props
74
+
75
+ Co-authored-by: dmitrsavk <dmitrsavk@yandex.ru>
76
+
77
+
78
+
79
+
80
+
6
81
  # [3.2.0](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-calendar-with-skeleton@3.1.5...@alfalab/core-components-calendar-with-skeleton@3.2.0) (2022-02-17)
7
82
 
8
83
 
package/dist/Component.js CHANGED
@@ -52,14 +52,14 @@ function __rest(s, e) {
52
52
  return t;
53
53
  }
54
54
 
55
- var styles = {"component":"calendar-with-skeleton__component_15ai5","calendarVisible":"calendar-with-skeleton__calendarVisible_15ai5","skeleton":"calendar-with-skeleton__skeleton_15ai5","header":"calendar-with-skeleton__header_15ai5","weekDays":"calendar-with-skeleton__weekDays_15ai5","row":"calendar-with-skeleton__row_15ai5","enter":"calendar-with-skeleton__enter_15ai5","enterActive":"calendar-with-skeleton__enterActive_15ai5","exit":"calendar-with-skeleton__exit_15ai5","exitActive":"calendar-with-skeleton__exitActive_15ai5"};
55
+ var styles = {"component":"calendar-with-skeleton__component_q6bix","calendarVisible":"calendar-with-skeleton__calendarVisible_q6bix","skeleton":"calendar-with-skeleton__skeleton_q6bix","header":"calendar-with-skeleton__header_q6bix","weekDays":"calendar-with-skeleton__weekDays_q6bix","row":"calendar-with-skeleton__row_q6bix","enter":"calendar-with-skeleton__enter_q6bix","enterActive":"calendar-with-skeleton__enterActive_q6bix","exit":"calendar-with-skeleton__exit_q6bix","exitActive":"calendar-with-skeleton__exitActive_q6bix"};
56
56
  require('./index.css')
57
57
 
58
58
  var CalendarWithSkeleton = React.forwardRef(function (_a, ref) {
59
59
  var _b;
60
- var _c = _a.calendarVisible, calendarVisible = _c === void 0 ? true : _c, _d = _a.animate, animate = _d === void 0 ? true : _d, restProps = __rest(_a, ["calendarVisible", "animate"]);
60
+ var _c = _a.calendarVisible, calendarVisible = _c === void 0 ? true : _c, _d = _a.animate, animate = _d === void 0 ? true : _d, className = _a.className, restProps = __rest(_a, ["calendarVisible", "animate", "className"]);
61
61
  var skeletonProps = { visible: true, animate: animate };
62
- return (React__default['default'].createElement("div", { className: cn__default['default'](styles.component, (_b = {},
62
+ return (React__default['default'].createElement("div", { className: cn__default['default'](styles.component, className, (_b = {},
63
63
  _b[styles.calendarVisible] = calendarVisible,
64
64
  _b)) },
65
65
  calendarVisible && React__default['default'].createElement(coreComponentsCalendar.Calendar, __assign({ ref: ref }, restProps)),
@@ -56,9 +56,9 @@ function __rest(s, e) {
56
56
 
57
57
  var CalendarWithSkeleton = React.forwardRef(function (_a, ref) {
58
58
  var _b;
59
- var _c = _a.calendarVisible, calendarVisible = _c === void 0 ? true : _c, _d = _a.animate, animate = _d === void 0 ? true : _d, restProps = __rest(_a, ["calendarVisible", "animate"]);
59
+ var _c = _a.calendarVisible, calendarVisible = _c === void 0 ? true : _c, _d = _a.animate, animate = _d === void 0 ? true : _d, className = _a.className, restProps = __rest(_a, ["calendarVisible", "animate", "className"]);
60
60
  var skeletonProps = { visible: true, animate: animate };
61
- return (React__default['default'].createElement("div", { className: cn__default['default'](styles__default['default'].component, (_b = {},
61
+ return (React__default['default'].createElement("div", { className: cn__default['default'](styles__default['default'].component, className, (_b = {},
62
62
  _b[styles__default['default'].calendarVisible] = calendarVisible,
63
63
  _b)) },
64
64
  calendarVisible && React__default['default'].createElement(coreComponentsCalendar.Calendar, __assign({ ref: ref }, restProps)),
@@ -43,14 +43,14 @@ function __rest(s, e) {
43
43
  return t;
44
44
  }
45
45
 
46
- var styles = {"component":"calendar-with-skeleton__component_15ai5","calendarVisible":"calendar-with-skeleton__calendarVisible_15ai5","skeleton":"calendar-with-skeleton__skeleton_15ai5","header":"calendar-with-skeleton__header_15ai5","weekDays":"calendar-with-skeleton__weekDays_15ai5","row":"calendar-with-skeleton__row_15ai5","enter":"calendar-with-skeleton__enter_15ai5","enterActive":"calendar-with-skeleton__enterActive_15ai5","exit":"calendar-with-skeleton__exit_15ai5","exitActive":"calendar-with-skeleton__exitActive_15ai5"};
46
+ var styles = {"component":"calendar-with-skeleton__component_q6bix","calendarVisible":"calendar-with-skeleton__calendarVisible_q6bix","skeleton":"calendar-with-skeleton__skeleton_q6bix","header":"calendar-with-skeleton__header_q6bix","weekDays":"calendar-with-skeleton__weekDays_q6bix","row":"calendar-with-skeleton__row_q6bix","enter":"calendar-with-skeleton__enter_q6bix","enterActive":"calendar-with-skeleton__enterActive_q6bix","exit":"calendar-with-skeleton__exit_q6bix","exitActive":"calendar-with-skeleton__exitActive_q6bix"};
47
47
  require('./index.css')
48
48
 
49
49
  var CalendarWithSkeleton = forwardRef(function (_a, ref) {
50
50
  var _b;
51
- var _c = _a.calendarVisible, calendarVisible = _c === void 0 ? true : _c, _d = _a.animate, animate = _d === void 0 ? true : _d, restProps = __rest(_a, ["calendarVisible", "animate"]);
51
+ var _c = _a.calendarVisible, calendarVisible = _c === void 0 ? true : _c, _d = _a.animate, animate = _d === void 0 ? true : _d, className = _a.className, restProps = __rest(_a, ["calendarVisible", "animate", "className"]);
52
52
  var skeletonProps = { visible: true, animate: animate };
53
- return (React.createElement("div", { className: cn(styles.component, (_b = {},
53
+ return (React.createElement("div", { className: cn(styles.component, className, (_b = {},
54
54
  _b[styles.calendarVisible] = calendarVisible,
55
55
  _b)) },
56
56
  calendarVisible && React.createElement(Calendar, __assign({ ref: ref }, restProps)),
@@ -1,4 +1,4 @@
1
- /* hash: 18ksl */
1
+ /* hash: 1vzz1 */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  }
@@ -14,15 +14,15 @@
14
14
  --gap-m: 16px;
15
15
  --gap-l: 20px;
16
16
  }
17
- .calendar-with-skeleton__component_15ai5 {
17
+ .calendar-with-skeleton__component_q6bix {
18
18
  width: var(--calendar-width);
19
19
  height: var(--calendar-height);
20
20
  position: relative;
21
21
  }
22
- .calendar-with-skeleton__calendarVisible_15ai5 {
22
+ .calendar-with-skeleton__calendarVisible_q6bix {
23
23
  height: auto;
24
24
  }
25
- .calendar-with-skeleton__skeleton_15ai5 {
25
+ .calendar-with-skeleton__skeleton_q6bix {
26
26
  display: flex;
27
27
  flex-direction: column;
28
28
  padding: var(--gap-m);
@@ -37,25 +37,25 @@
37
37
  background-color: var(--color-light-bg-primary);
38
38
  background-clip: content-box;
39
39
  }
40
- .calendar-with-skeleton__header_15ai5 {
40
+ .calendar-with-skeleton__header_q6bix {
41
41
  height: 48px;
42
42
  margin-bottom: var(--gap-l);
43
43
  }
44
- .calendar-with-skeleton__weekDays_15ai5 {
44
+ .calendar-with-skeleton__weekDays_q6bix {
45
45
  height: 12px;
46
46
  margin-bottom: var(--gap-m);
47
47
  }
48
- .calendar-with-skeleton__row_15ai5 {
48
+ .calendar-with-skeleton__row_q6bix {
49
49
  height: 32px
50
50
  }
51
- .calendar-with-skeleton__row_15ai5 + .calendar-with-skeleton__row_15ai5 {
51
+ .calendar-with-skeleton__row_q6bix + .calendar-with-skeleton__row_q6bix {
52
52
  margin-top: 10px;
53
53
  }
54
- .calendar-with-skeleton__enter_15ai5,
55
- .calendar-with-skeleton__enterActive_15ai5,
56
- .calendar-with-skeleton__exit_15ai5 {
54
+ .calendar-with-skeleton__enter_q6bix,
55
+ .calendar-with-skeleton__enterActive_q6bix,
56
+ .calendar-with-skeleton__exit_q6bix {
57
57
  opacity: 1;
58
58
  }
59
- .calendar-with-skeleton__exitActive_15ai5 {
59
+ .calendar-with-skeleton__exitActive_q6bix {
60
60
  opacity: 0;
61
61
  }
package/dist/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 18ksl */
1
+ /* hash: 1vzz1 */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  }
@@ -14,15 +14,15 @@
14
14
  --gap-m: 16px;
15
15
  --gap-l: 20px;
16
16
  }
17
- .calendar-with-skeleton__component_15ai5 {
17
+ .calendar-with-skeleton__component_q6bix {
18
18
  width: var(--calendar-width);
19
19
  height: var(--calendar-height);
20
20
  position: relative;
21
21
  }
22
- .calendar-with-skeleton__calendarVisible_15ai5 {
22
+ .calendar-with-skeleton__calendarVisible_q6bix {
23
23
  height: auto;
24
24
  }
25
- .calendar-with-skeleton__skeleton_15ai5 {
25
+ .calendar-with-skeleton__skeleton_q6bix {
26
26
  display: flex;
27
27
  flex-direction: column;
28
28
  padding: var(--gap-m);
@@ -37,25 +37,25 @@
37
37
  background-color: var(--color-light-bg-primary);
38
38
  background-clip: content-box;
39
39
  }
40
- .calendar-with-skeleton__header_15ai5 {
40
+ .calendar-with-skeleton__header_q6bix {
41
41
  height: 48px;
42
42
  margin-bottom: var(--gap-l);
43
43
  }
44
- .calendar-with-skeleton__weekDays_15ai5 {
44
+ .calendar-with-skeleton__weekDays_q6bix {
45
45
  height: 12px;
46
46
  margin-bottom: var(--gap-m);
47
47
  }
48
- .calendar-with-skeleton__row_15ai5 {
48
+ .calendar-with-skeleton__row_q6bix {
49
49
  height: 32px
50
50
  }
51
- .calendar-with-skeleton__row_15ai5 + .calendar-with-skeleton__row_15ai5 {
51
+ .calendar-with-skeleton__row_q6bix + .calendar-with-skeleton__row_q6bix {
52
52
  margin-top: 10px;
53
53
  }
54
- .calendar-with-skeleton__enter_15ai5,
55
- .calendar-with-skeleton__enterActive_15ai5,
56
- .calendar-with-skeleton__exit_15ai5 {
54
+ .calendar-with-skeleton__enter_q6bix,
55
+ .calendar-with-skeleton__enterActive_q6bix,
56
+ .calendar-with-skeleton__exit_q6bix {
57
57
  opacity: 1;
58
58
  }
59
- .calendar-with-skeleton__exitActive_15ai5 {
59
+ .calendar-with-skeleton__exitActive_q6bix {
60
60
  opacity: 0;
61
61
  }
@@ -4,12 +4,12 @@ import { CSSTransition } from 'react-transition-group';
4
4
  import { Skeleton } from '@alfalab/core-components-skeleton/dist/modern';
5
5
  import { Calendar } from '@alfalab/core-components-calendar/dist/modern';
6
6
 
7
- var styles = {"component":"calendar-with-skeleton__component_15ai5","calendarVisible":"calendar-with-skeleton__calendarVisible_15ai5","skeleton":"calendar-with-skeleton__skeleton_15ai5","header":"calendar-with-skeleton__header_15ai5","weekDays":"calendar-with-skeleton__weekDays_15ai5","row":"calendar-with-skeleton__row_15ai5","enter":"calendar-with-skeleton__enter_15ai5","enterActive":"calendar-with-skeleton__enterActive_15ai5","exit":"calendar-with-skeleton__exit_15ai5","exitActive":"calendar-with-skeleton__exitActive_15ai5"};
7
+ var styles = {"component":"calendar-with-skeleton__component_q6bix","calendarVisible":"calendar-with-skeleton__calendarVisible_q6bix","skeleton":"calendar-with-skeleton__skeleton_q6bix","header":"calendar-with-skeleton__header_q6bix","weekDays":"calendar-with-skeleton__weekDays_q6bix","row":"calendar-with-skeleton__row_q6bix","enter":"calendar-with-skeleton__enter_q6bix","enterActive":"calendar-with-skeleton__enterActive_q6bix","exit":"calendar-with-skeleton__exit_q6bix","exitActive":"calendar-with-skeleton__exitActive_q6bix"};
8
8
  require('./index.css')
9
9
 
10
- const CalendarWithSkeleton = forwardRef(({ calendarVisible = true, animate = true, ...restProps }, ref) => {
10
+ const CalendarWithSkeleton = forwardRef(({ calendarVisible = true, animate = true, className, ...restProps }, ref) => {
11
11
  const skeletonProps = { visible: true, animate };
12
- return (React.createElement("div", { className: cn(styles.component, {
12
+ return (React.createElement("div", { className: cn(styles.component, className, {
13
13
  [styles.calendarVisible]: calendarVisible,
14
14
  }) },
15
15
  calendarVisible && React.createElement(Calendar, Object.assign({ ref: ref }, restProps)),
@@ -1,4 +1,4 @@
1
- /* hash: 18ksl */
1
+ /* hash: 1vzz1 */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  }
@@ -14,15 +14,15 @@
14
14
  --gap-m: 16px;
15
15
  --gap-l: 20px;
16
16
  }
17
- .calendar-with-skeleton__component_15ai5 {
17
+ .calendar-with-skeleton__component_q6bix {
18
18
  width: var(--calendar-width);
19
19
  height: var(--calendar-height);
20
20
  position: relative;
21
21
  }
22
- .calendar-with-skeleton__calendarVisible_15ai5 {
22
+ .calendar-with-skeleton__calendarVisible_q6bix {
23
23
  height: auto;
24
24
  }
25
- .calendar-with-skeleton__skeleton_15ai5 {
25
+ .calendar-with-skeleton__skeleton_q6bix {
26
26
  display: flex;
27
27
  flex-direction: column;
28
28
  padding: var(--gap-m);
@@ -37,25 +37,25 @@
37
37
  background-color: var(--color-light-bg-primary);
38
38
  background-clip: content-box;
39
39
  }
40
- .calendar-with-skeleton__header_15ai5 {
40
+ .calendar-with-skeleton__header_q6bix {
41
41
  height: 48px;
42
42
  margin-bottom: var(--gap-l);
43
43
  }
44
- .calendar-with-skeleton__weekDays_15ai5 {
44
+ .calendar-with-skeleton__weekDays_q6bix {
45
45
  height: 12px;
46
46
  margin-bottom: var(--gap-m);
47
47
  }
48
- .calendar-with-skeleton__row_15ai5 {
48
+ .calendar-with-skeleton__row_q6bix {
49
49
  height: 32px
50
50
  }
51
- .calendar-with-skeleton__row_15ai5 + .calendar-with-skeleton__row_15ai5 {
51
+ .calendar-with-skeleton__row_q6bix + .calendar-with-skeleton__row_q6bix {
52
52
  margin-top: 10px;
53
53
  }
54
- .calendar-with-skeleton__enter_15ai5,
55
- .calendar-with-skeleton__enterActive_15ai5,
56
- .calendar-with-skeleton__exit_15ai5 {
54
+ .calendar-with-skeleton__enter_q6bix,
55
+ .calendar-with-skeleton__enterActive_q6bix,
56
+ .calendar-with-skeleton__exit_q6bix {
57
57
  opacity: 1;
58
58
  }
59
- .calendar-with-skeleton__exitActive_15ai5 {
59
+ .calendar-with-skeleton__exitActive_q6bix {
60
60
  opacity: 0;
61
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-calendar-with-skeleton",
3
- "version": "3.2.0",
3
+ "version": "4.1.1",
4
4
  "description": "CalendarWithSkeleton component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -20,10 +20,10 @@
20
20
  "react-dom": "^16.9.0 || ^17.0.1"
21
21
  },
22
22
  "dependencies": {
23
- "@alfalab/core-components-calendar": "^4.3.0",
24
- "@alfalab/core-components-skeleton": "^3.0.2",
23
+ "@alfalab/core-components-calendar": "^5.1.0",
24
+ "@alfalab/core-components-skeleton": "^3.1.0",
25
25
  "classnames": "^2.2.6",
26
26
  "react-transition-group": "^4.3.0"
27
27
  },
28
- "gitHead": "45ff10d1efc81a4a1afb82c6b6eca1b428c7c459"
28
+ "gitHead": "fb24ec97b3b95a51c188198788a73928d22b9b5f"
29
29
  }