@alfalab/core-components-calendar-input 10.3.2 → 10.4.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.
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@alfalab/core-components-shared",
3
+ "version": "0.11.0",
4
+ "description": "Shared package for core-components",
5
+ "keywords": [],
6
+ "license": "MIT",
7
+ "main": "index.js",
8
+ "module": "./esm/index.js",
9
+ "publishConfig": {
10
+ "access": "public",
11
+ "directory": "dist"
12
+ },
13
+ "peerDependencies": {
14
+ "react": ">=16.8.0"
15
+ },
16
+ "dependencies": {
17
+ "@alfalab/hooks": "^1.13.0",
18
+ "tslib": "^2.4.0"
19
+ },
20
+ "devDependencies": {
21
+ "@maskito/core": "^1.7.0"
22
+ }
23
+ }
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var tslib = require('tslib');
6
6
  var React = require('react');
7
+ var coreComponentsShared = require('@alfalab/core-components-shared');
7
8
  var hooks = require('@alfalab/hooks');
8
9
  var desktop_Component_desktop = require('./desktop/Component.desktop.js');
9
10
  var mobile_Component_mobile = require('./mobile/Component.mobile.js');
@@ -17,7 +18,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
17
18
  * use UniversalDateInput instead
18
19
  */
19
20
  var CalendarInputResponsive = React.forwardRef(function (_a, ref) {
20
- var _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = tslib.__rest(_a, ["breakpoint"]);
21
+ var _b = _a.breakpoint, breakpoint = _b === void 0 ? coreComponentsShared.getComponentBreakpoint() : _b, restProps = tslib.__rest(_a, ["breakpoint"]);
21
22
  var view = hooks.useMedia([
22
23
  ['mobile', "(max-width: ".concat(breakpoint - 1, "px)")],
23
24
  ['desktop', "(min-width: ".concat(breakpoint, "px)")],
@@ -18,7 +18,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
18
18
  var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
19
19
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
20
20
 
21
- var styles = {"component":"calendar-input__component_ladw7","block":"calendar-input__block_ladw7","calendarContainer":"calendar-input__calendarContainer_ladw7","calendarResponsive":"calendar-input__calendarResponsive_ladw7","calendarIcon":"calendar-input__calendarIcon_ladw7","nativeInput":"calendar-input__nativeInput_ladw7"};
21
+ var styles = {"component":"calendar-input__component_1ewmk","block":"calendar-input__block_1ewmk","calendarContainer":"calendar-input__calendarContainer_1ewmk","calendarResponsive":"calendar-input__calendarResponsive_1ewmk","calendarIcon":"calendar-input__calendarIcon_1ewmk","nativeInput":"calendar-input__nativeInput_1ewmk"};
22
22
  require('./index.css')
23
23
 
24
24
  var CalendarInput = React.forwardRef(function (_a, ref) {
@@ -1,4 +1,4 @@
1
- /* hash: 1lk8f */
1
+ /* hash: zyj3s */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-neutral-300: #e7e8eb;
@@ -50,31 +50,31 @@
50
50
  } :root {
51
51
  --calendar-input-icon-color: var(--color-light-neutral-translucent-700);
52
52
  --calendar-input-popover-border-radius: var(--border-radius-8);
53
- } .calendar-input__component_ladw7 {
53
+ } .calendar-input__component_1ewmk {
54
54
  display: inline-block;
55
55
  outline: none;
56
56
  position: relative;
57
- } .calendar-input__block_ladw7 {
57
+ } .calendar-input__block_1ewmk {
58
58
  width: 100%;
59
- } .calendar-input__calendarContainer_ladw7 {
59
+ } .calendar-input__calendarContainer_1ewmk {
60
60
  display: inline-block;
61
61
  box-sizing: border-box;
62
62
  border-radius: var(--calendar-input-popover-border-radius);
63
63
  border: 1px solid var(--color-light-neutral-300)
64
- } @media (max-width: 374px) { .calendar-input__calendarContainer_ladw7 {
64
+ } @media (max-width: 374px) { .calendar-input__calendarContainer_1ewmk {
65
65
  width: 100%;
66
66
  min-width: 288px
67
67
  }
68
- } .calendar-input__calendarResponsive_ladw7 {
68
+ } .calendar-input__calendarResponsive_1ewmk {
69
69
  width: var(--calendar-width);
70
- } .calendar-input__calendarIcon_ladw7 {
70
+ } .calendar-input__calendarIcon_1ewmk {
71
71
  width: 24px;
72
72
  height: 24px;
73
73
  display: block;
74
74
  color: var(--calendar-input-icon-color)
75
- } .calendar-input__calendarIcon_ladw7:not(:only-child) {
75
+ } .calendar-input__calendarIcon_1ewmk:not(:only-child) {
76
76
  margin-right: var(--gap-4);
77
- } .calendar-input__nativeInput_ladw7 {
77
+ } .calendar-input__nativeInput_1ewmk {
78
78
  opacity: 0;
79
79
  position: absolute;
80
80
  top: var(--gap-0);
@@ -83,8 +83,8 @@
83
83
  height: 100%;
84
84
  appearance: none;
85
85
  z-index: 1
86
- } .calendar-input__nativeInput_ladw7::-webkit-calendar-picker-indicator {
86
+ } .calendar-input__nativeInput_1ewmk::-webkit-calendar-picker-indicator {
87
87
  display: none;
88
- } .calendar-input__nativeInput_ladw7::-webkit-inner-spin-button {
88
+ } .calendar-input__nativeInput_1ewmk::-webkit-inner-spin-button {
89
89
  display: none;
90
90
  }
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var tslib = require('tslib');
6
6
  var React = require('react');
7
+ var coreComponentsShared = require('@alfalab/core-components-shared/cssm');
7
8
  var hooks = require('@alfalab/hooks');
8
9
  var desktop_Component_desktop = require('./desktop/Component.desktop.js');
9
10
  var mobile_Component_mobile = require('./mobile/Component.mobile.js');
@@ -17,7 +18,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
17
18
  * use UniversalDateInput instead
18
19
  */
19
20
  var CalendarInputResponsive = React.forwardRef(function (_a, ref) {
20
- var _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = tslib.__rest(_a, ["breakpoint"]);
21
+ var _b = _a.breakpoint, breakpoint = _b === void 0 ? coreComponentsShared.getComponentBreakpoint() : _b, restProps = tslib.__rest(_a, ["breakpoint"]);
21
22
  var view = hooks.useMedia([
22
23
  ['mobile', "(max-width: ".concat(breakpoint - 1, "px)")],
23
24
  ['desktop', "(min-width: ".concat(breakpoint, "px)")],
@@ -1,5 +1,6 @@
1
1
  import { __rest, __assign } from 'tslib';
2
2
  import React, { forwardRef } from 'react';
3
+ import { getComponentBreakpoint } from '@alfalab/core-components-shared/esm';
3
4
  import { useMedia } from '@alfalab/hooks';
4
5
  import { CalendarInputDesktop } from './desktop/Component.desktop.js';
5
6
  import { CalendarInputMobile } from './mobile/Component.mobile.js';
@@ -9,7 +10,7 @@ import { CalendarInputMobile } from './mobile/Component.mobile.js';
9
10
  * use UniversalDateInput instead
10
11
  */
11
12
  var CalendarInputResponsive = forwardRef(function (_a, ref) {
12
- var _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = __rest(_a, ["breakpoint"]);
13
+ var _b = _a.breakpoint, breakpoint = _b === void 0 ? getComponentBreakpoint() : _b, restProps = __rest(_a, ["breakpoint"]);
13
14
  var view = useMedia([
14
15
  ['mobile', "(max-width: ".concat(breakpoint - 1, "px)")],
15
16
  ['desktop', "(min-width: ".concat(breakpoint, "px)")],
@@ -8,7 +8,7 @@ import { Popover } from '@alfalab/core-components-popover/esm';
8
8
  import { CalendarMIcon } from '@alfalab/icons-glyph/CalendarMIcon';
9
9
  import { SUPPORTS_INPUT_TYPE_DATE } from '../../utils.js';
10
10
 
11
- var styles = {"component":"calendar-input__component_ladw7","block":"calendar-input__block_ladw7","calendarContainer":"calendar-input__calendarContainer_ladw7","calendarResponsive":"calendar-input__calendarResponsive_ladw7","calendarIcon":"calendar-input__calendarIcon_ladw7","nativeInput":"calendar-input__nativeInput_ladw7"};
11
+ var styles = {"component":"calendar-input__component_1ewmk","block":"calendar-input__block_1ewmk","calendarContainer":"calendar-input__calendarContainer_1ewmk","calendarResponsive":"calendar-input__calendarResponsive_1ewmk","calendarIcon":"calendar-input__calendarIcon_1ewmk","nativeInput":"calendar-input__nativeInput_1ewmk"};
12
12
  require('./index.css')
13
13
 
14
14
  var CalendarInput = forwardRef(function (_a, ref) {
@@ -1,4 +1,4 @@
1
- /* hash: 1lk8f */
1
+ /* hash: zyj3s */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-neutral-300: #e7e8eb;
@@ -50,31 +50,31 @@
50
50
  } :root {
51
51
  --calendar-input-icon-color: var(--color-light-neutral-translucent-700);
52
52
  --calendar-input-popover-border-radius: var(--border-radius-8);
53
- } .calendar-input__component_ladw7 {
53
+ } .calendar-input__component_1ewmk {
54
54
  display: inline-block;
55
55
  outline: none;
56
56
  position: relative;
57
- } .calendar-input__block_ladw7 {
57
+ } .calendar-input__block_1ewmk {
58
58
  width: 100%;
59
- } .calendar-input__calendarContainer_ladw7 {
59
+ } .calendar-input__calendarContainer_1ewmk {
60
60
  display: inline-block;
61
61
  box-sizing: border-box;
62
62
  border-radius: var(--calendar-input-popover-border-radius);
63
63
  border: 1px solid var(--color-light-neutral-300)
64
- } @media (max-width: 374px) { .calendar-input__calendarContainer_ladw7 {
64
+ } @media (max-width: 374px) { .calendar-input__calendarContainer_1ewmk {
65
65
  width: 100%;
66
66
  min-width: 288px
67
67
  }
68
- } .calendar-input__calendarResponsive_ladw7 {
68
+ } .calendar-input__calendarResponsive_1ewmk {
69
69
  width: var(--calendar-width);
70
- } .calendar-input__calendarIcon_ladw7 {
70
+ } .calendar-input__calendarIcon_1ewmk {
71
71
  width: 24px;
72
72
  height: 24px;
73
73
  display: block;
74
74
  color: var(--calendar-input-icon-color)
75
- } .calendar-input__calendarIcon_ladw7:not(:only-child) {
75
+ } .calendar-input__calendarIcon_1ewmk:not(:only-child) {
76
76
  margin-right: var(--gap-4);
77
- } .calendar-input__nativeInput_ladw7 {
77
+ } .calendar-input__nativeInput_1ewmk {
78
78
  opacity: 0;
79
79
  position: absolute;
80
80
  top: var(--gap-0);
@@ -83,8 +83,8 @@
83
83
  height: 100%;
84
84
  appearance: none;
85
85
  z-index: 1
86
- } .calendar-input__nativeInput_ladw7::-webkit-calendar-picker-indicator {
86
+ } .calendar-input__nativeInput_1ewmk::-webkit-calendar-picker-indicator {
87
87
  display: none;
88
- } .calendar-input__nativeInput_ladw7::-webkit-inner-spin-button {
88
+ } .calendar-input__nativeInput_1ewmk::-webkit-inner-spin-button {
89
89
  display: none;
90
90
  }
@@ -1,4 +1,5 @@
1
1
  import React, { forwardRef } from 'react';
2
+ import { getComponentBreakpoint } from '@alfalab/core-components-shared/modern';
2
3
  import { useMedia } from '@alfalab/hooks';
3
4
  import { CalendarInputDesktop } from './desktop/Component.desktop.js';
4
5
  import { CalendarInputMobile } from './mobile/Component.mobile.js';
@@ -7,7 +8,7 @@ import { CalendarInputMobile } from './mobile/Component.mobile.js';
7
8
  * @deprecated
8
9
  * use UniversalDateInput instead
9
10
  */
10
- const CalendarInputResponsive = forwardRef(({ breakpoint = 1024, ...restProps }, ref) => {
11
+ const CalendarInputResponsive = forwardRef(({ breakpoint = getComponentBreakpoint(), ...restProps }, ref) => {
11
12
  const [view] = useMedia([
12
13
  ['mobile', `(max-width: ${breakpoint - 1}px)`],
13
14
  ['desktop', `(min-width: ${breakpoint}px)`],
@@ -7,7 +7,7 @@ import { Popover } from '@alfalab/core-components-popover/modern';
7
7
  import { CalendarMIcon } from '@alfalab/icons-glyph/CalendarMIcon';
8
8
  import { SUPPORTS_INPUT_TYPE_DATE } from '../../utils.js';
9
9
 
10
- const styles = {"component":"calendar-input__component_ladw7","block":"calendar-input__block_ladw7","calendarContainer":"calendar-input__calendarContainer_ladw7","calendarResponsive":"calendar-input__calendarResponsive_ladw7","calendarIcon":"calendar-input__calendarIcon_ladw7","nativeInput":"calendar-input__nativeInput_ladw7"};
10
+ const styles = {"component":"calendar-input__component_1ewmk","block":"calendar-input__block_1ewmk","calendarContainer":"calendar-input__calendarContainer_1ewmk","calendarResponsive":"calendar-input__calendarResponsive_1ewmk","calendarIcon":"calendar-input__calendarIcon_1ewmk","nativeInput":"calendar-input__nativeInput_1ewmk"};
11
11
  require('./index.css')
12
12
 
13
13
  const CalendarInput = forwardRef(({ block = false, className, inputClassName, popoverClassName, defaultOpen = false, defaultMonth, defaultValue = '', calendarPosition = 'popover', value, dataTestId, calendarProps = {}, minDate = calendarProps.minDate, maxDate = calendarProps.maxDate, offDays = calendarProps.offDays || [], events = calendarProps.events || [], preventFlip, mobileMode = 'popover', wrapperRef = null, disabled, onChange = () => null, onInputChange, onCalendarChange, onCalendarOpen, onCalendarClose, onKeyDown, readOnly, disableUserInput = false, Calendar, popoverPosition = 'bottom-start', zIndexPopover, useAnchorWidth, rightAddons, error, view = 'desktop', ...restProps }, ref) => {
@@ -1,4 +1,4 @@
1
- /* hash: 1lk8f */
1
+ /* hash: zyj3s */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-neutral-300: #e7e8eb;
@@ -50,31 +50,31 @@
50
50
  } :root {
51
51
  --calendar-input-icon-color: var(--color-light-neutral-translucent-700);
52
52
  --calendar-input-popover-border-radius: var(--border-radius-8);
53
- } .calendar-input__component_ladw7 {
53
+ } .calendar-input__component_1ewmk {
54
54
  display: inline-block;
55
55
  outline: none;
56
56
  position: relative;
57
- } .calendar-input__block_ladw7 {
57
+ } .calendar-input__block_1ewmk {
58
58
  width: 100%;
59
- } .calendar-input__calendarContainer_ladw7 {
59
+ } .calendar-input__calendarContainer_1ewmk {
60
60
  display: inline-block;
61
61
  box-sizing: border-box;
62
62
  border-radius: var(--calendar-input-popover-border-radius);
63
63
  border: 1px solid var(--color-light-neutral-300)
64
- } @media (max-width: 374px) { .calendar-input__calendarContainer_ladw7 {
64
+ } @media (max-width: 374px) { .calendar-input__calendarContainer_1ewmk {
65
65
  width: 100%;
66
66
  min-width: 288px
67
67
  }
68
- } .calendar-input__calendarResponsive_ladw7 {
68
+ } .calendar-input__calendarResponsive_1ewmk {
69
69
  width: var(--calendar-width);
70
- } .calendar-input__calendarIcon_ladw7 {
70
+ } .calendar-input__calendarIcon_1ewmk {
71
71
  width: 24px;
72
72
  height: 24px;
73
73
  display: block;
74
74
  color: var(--calendar-input-icon-color)
75
- } .calendar-input__calendarIcon_ladw7:not(:only-child) {
75
+ } .calendar-input__calendarIcon_1ewmk:not(:only-child) {
76
76
  margin-right: var(--gap-4);
77
- } .calendar-input__nativeInput_ladw7 {
77
+ } .calendar-input__nativeInput_1ewmk {
78
78
  opacity: 0;
79
79
  position: absolute;
80
80
  top: var(--gap-0);
@@ -83,8 +83,8 @@
83
83
  height: 100%;
84
84
  appearance: none;
85
85
  z-index: 1
86
- } .calendar-input__nativeInput_ladw7::-webkit-calendar-picker-indicator {
86
+ } .calendar-input__nativeInput_1ewmk::-webkit-calendar-picker-indicator {
87
87
  display: none;
88
- } .calendar-input__nativeInput_ladw7::-webkit-inner-spin-button {
88
+ } .calendar-input__nativeInput_1ewmk::-webkit-inner-spin-button {
89
89
  display: none;
90
90
  }
@@ -1,4 +1,5 @@
1
1
  import React, { forwardRef } from 'react';
2
+ import { getComponentBreakpoint } from '@alfalab/core-components-shared/moderncssm';
2
3
  import { useMedia } from '@alfalab/hooks';
3
4
  import { CalendarInputDesktop } from './desktop/Component.desktop.js';
4
5
  import { CalendarInputMobile } from './mobile/Component.mobile.js';
@@ -7,7 +8,7 @@ import { CalendarInputMobile } from './mobile/Component.mobile.js';
7
8
  * @deprecated
8
9
  * use UniversalDateInput instead
9
10
  */
10
- const CalendarInputResponsive = forwardRef(({ breakpoint = 1024, ...restProps }, ref) => {
11
+ const CalendarInputResponsive = forwardRef(({ breakpoint = getComponentBreakpoint(), ...restProps }, ref) => {
11
12
  const [view] = useMedia([
12
13
  ['mobile', `(max-width: ${breakpoint - 1}px)`],
13
14
  ['desktop', `(min-width: ${breakpoint}px)`],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-calendar-input",
3
- "version": "10.3.2",
3
+ "version": "10.4.0",
4
4
  "description": "Calendar input component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -15,16 +15,17 @@
15
15
  "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
16
16
  },
17
17
  "dependencies": {
18
- "@alfalab/core-components-calendar": "^7.12.1",
19
- "@alfalab/core-components-date-input": "^4.4.2",
20
- "@alfalab/core-components-popover": "^6.3.1",
18
+ "@alfalab/core-components-calendar": "^7.14.0",
19
+ "@alfalab/core-components-date-input": "^4.4.4",
20
+ "@alfalab/core-components-popover": "^6.3.2",
21
21
  "@alfalab/hooks": "^1.13.0",
22
22
  "@alfalab/icons-glyph": "^2.139.0",
23
23
  "classnames": "^2.3.1",
24
24
  "date-fns": "^2.16.1",
25
25
  "react-merge-refs": "^1.1.0",
26
- "tslib": "^2.4.0"
26
+ "tslib": "^2.4.0",
27
+ "@alfalab/core-components-shared": "^0.13.0"
27
28
  },
28
- "themesVersion": "13.2.0",
29
+ "themesVersion": "13.4.0",
29
30
  "varsVersion": "9.13.1"
30
31
  }
@@ -2,6 +2,7 @@ import React, { forwardRef } from 'react';
2
2
 
3
3
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
4
4
  import { DateInputProps } from '@alfalab/core-components-date-input';
5
+ import { getComponentBreakpoint } from '@alfalab/core-components-shared';
5
6
  import { useMedia } from '@alfalab/hooks';
6
7
 
7
8
  import { CalendarInputProps } from './components/calendar-input/Component';
@@ -23,7 +24,7 @@ export type CalendarInputMedia = 'desktop' | 'mobile';
23
24
  * use UniversalDateInput instead
24
25
  */
25
26
  export const CalendarInputResponsive = forwardRef<HTMLInputElement, CalendarInputResponsiveProps>(
26
- ({ breakpoint = 1024, ...restProps }, ref) => {
27
+ ({ breakpoint = getComponentBreakpoint(), ...restProps }, ref) => {
27
28
  const [view] = useMedia<CalendarInputMedia>(
28
29
  [
29
30
  ['mobile', `(max-width: ${breakpoint - 1}px)`],