@alfalab/core-components-calendar-input 8.2.2 → 8.2.4

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.
Files changed (35) hide show
  1. package/{Component-517c7068.d.ts → Component-339bca77.d.ts} +0 -0
  2. package/{Component-517c7068.js → Component-339bca77.js} +1 -1
  3. package/Component.desktop.d.ts +1 -1
  4. package/Component.desktop.js +1 -1
  5. package/Component.mobile.d.ts +1 -1
  6. package/Component.mobile.js +1 -1
  7. package/Component.responsive.d.ts +1 -1
  8. package/Component.responsive.js +1 -1
  9. package/components/calendar-input/Component.js +1 -1
  10. package/components/calendar-input/index.css +11 -11
  11. package/components/calendar-input/index.d.ts +1 -1
  12. package/components/calendar-input/index.js +1 -1
  13. package/desktop.js +1 -1
  14. package/esm/{Component-4f5186cc.d.ts → Component-34dcb485.d.ts} +0 -0
  15. package/esm/{Component-4f5186cc.js → Component-34dcb485.js} +1 -1
  16. package/esm/Component.desktop.d.ts +1 -1
  17. package/esm/Component.desktop.js +1 -1
  18. package/esm/Component.mobile.d.ts +1 -1
  19. package/esm/Component.mobile.js +1 -1
  20. package/esm/Component.responsive.d.ts +1 -1
  21. package/esm/Component.responsive.js +1 -1
  22. package/esm/components/calendar-input/Component.js +1 -1
  23. package/esm/components/calendar-input/index.css +11 -11
  24. package/esm/components/calendar-input/index.d.ts +1 -1
  25. package/esm/components/calendar-input/index.js +1 -1
  26. package/esm/desktop.js +1 -1
  27. package/esm/index.js +1 -1
  28. package/esm/mobile.js +1 -1
  29. package/esm/responsive.js +1 -1
  30. package/index.js +1 -1
  31. package/mobile.js +1 -1
  32. package/modern/components/calendar-input/Component.js +1 -1
  33. package/modern/components/calendar-input/index.css +11 -11
  34. package/package.json +3 -3
  35. package/responsive.js +1 -1
@@ -54,7 +54,7 @@ function __rest(s, e) {
54
54
  return t;
55
55
  }
56
56
 
57
- var styles = {"component":"calendar-input__component_10079","block":"calendar-input__block_10079","calendarContainer":"calendar-input__calendarContainer_10079","calendarResponsive":"calendar-input__calendarResponsive_10079","calendarIcon":"calendar-input__calendarIcon_10079","nativeInput":"calendar-input__nativeInput_10079"};
57
+ var styles = {"component":"calendar-input__component_2mx3a","block":"calendar-input__block_2mx3a","calendarContainer":"calendar-input__calendarContainer_2mx3a","calendarResponsive":"calendar-input__calendarResponsive_2mx3a","calendarIcon":"calendar-input__calendarIcon_2mx3a","nativeInput":"calendar-input__nativeInput_2mx3a"};
58
58
  require('./components/calendar-input/index.css')
59
59
 
60
60
  var CalendarInput = React.forwardRef(function (_a, ref) {
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { CalendarInputProps } from "./Component-517c7068";
2
+ import { CalendarInputProps } from "./Component-339bca77";
3
3
  type CalendarInputDesktopProps = Omit<CalendarInputProps, 'view'>;
4
4
  declare const CalendarInputDesktop: FC<CalendarInputDesktopProps>;
5
5
  export { CalendarInputDesktopProps, CalendarInputDesktop };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var components_calendarInput_Component = require('./Component-517c7068.js');
3
+ var components_calendarInput_Component = require('./Component-339bca77.js');
4
4
  var React = require('react');
5
5
  require('react-merge-refs');
6
6
  require('classnames');
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { CalendarInputProps } from "./Component-517c7068";
2
+ import { CalendarInputProps } from "./Component-339bca77";
3
3
  type CalendarInputMobileProps = Omit<CalendarInputProps, 'view'>;
4
4
  declare const CalendarInputMobile: FC<CalendarInputMobileProps>;
5
5
  export { CalendarInputMobileProps, CalendarInputMobile };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var components_calendarInput_Component = require('./Component-517c7068.js');
3
+ var components_calendarInput_Component = require('./Component-339bca77.js');
4
4
  var React = require('react');
5
5
  var coreComponentsCalendar = require('@alfalab/core-components-calendar');
6
6
  require('react-merge-refs');
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { CalendarInputProps } from "./Component-517c7068";
2
+ import { CalendarInputProps } from "./Component-339bca77";
3
3
  type CalendarInputResponsiveProps = Omit<CalendarInputProps, 'view'> & {
4
4
  /**
5
5
  * Контрольная точка, с нее начинается desktop версия
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var components_calendarInput_Component = require('./Component-517c7068.js');
3
+ var components_calendarInput_Component = require('./Component-339bca77.js');
4
4
  var React = require('react');
5
5
  var hooks = require('@alfalab/hooks');
6
6
  var Component_desktop = require('./Component.desktop.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var components_calendarInput_Component = require('../../Component-517c7068.js');
3
+ var components_calendarInput_Component = require('../../Component-339bca77.js');
4
4
  require('react');
5
5
  require('react-merge-refs');
6
6
  require('classnames');
@@ -1,4 +1,4 @@
1
- /* hash: 1s9l4 */
1
+ /* hash: 16x75 */
2
2
  :root {
3
3
  --color-light-graphic-primary: #0b1f35;
4
4
  }
@@ -44,39 +44,39 @@
44
44
  --calendar-input-icon-color: var(--color-light-graphic-primary);
45
45
  --calendar-input-popover-border-radius: var(--border-radius-m);
46
46
  }
47
- .calendar-input__component_10079 {
47
+ .calendar-input__component_2mx3a {
48
48
  display: inline-block;
49
49
  outline: none;
50
50
  position: relative;
51
51
  }
52
- .calendar-input__block_10079 {
52
+ .calendar-input__block_2mx3a {
53
53
  width: 100%;
54
54
  }
55
- .calendar-input__calendarContainer_10079 {
55
+ .calendar-input__calendarContainer_2mx3a {
56
56
  display: inline-block;
57
57
  box-sizing: border-box;
58
58
  border-radius: var(--calendar-input-popover-border-radius)
59
59
  }
60
60
  @media (max-width: 374px) {
61
- .calendar-input__calendarContainer_10079 {
61
+ .calendar-input__calendarContainer_2mx3a {
62
62
  width: 100%;
63
63
  min-width: 288px
64
64
  }
65
65
  }
66
- .calendar-input__calendarResponsive_10079 {
66
+ .calendar-input__calendarResponsive_2mx3a {
67
67
  width: var(--calendar-width);
68
68
  padding: 0 var(--gap-m);
69
69
  }
70
- .calendar-input__calendarIcon_10079 {
70
+ .calendar-input__calendarIcon_2mx3a {
71
71
  width: 24px;
72
72
  height: 24px;
73
73
  display: block;
74
74
  color: var(--calendar-input-icon-color)
75
75
  }
76
- .calendar-input__calendarIcon_10079:not(:only-child) {
76
+ .calendar-input__calendarIcon_2mx3a:not(:only-child) {
77
77
  margin-right: var(--gap-2xs);
78
78
  }
79
- .calendar-input__nativeInput_10079 {
79
+ .calendar-input__nativeInput_2mx3a {
80
80
  opacity: 0;
81
81
  position: absolute;
82
82
  top: 0;
@@ -87,9 +87,9 @@
87
87
  appearance: none;
88
88
  z-index: 1
89
89
  }
90
- .calendar-input__nativeInput_10079::-webkit-calendar-picker-indicator {
90
+ .calendar-input__nativeInput_2mx3a::-webkit-calendar-picker-indicator {
91
91
  display: none;
92
92
  }
93
- .calendar-input__nativeInput_10079::-webkit-inner-spin-button {
93
+ .calendar-input__nativeInput_2mx3a::-webkit-inner-spin-button {
94
94
  display: none;
95
95
  }
@@ -1 +1 @@
1
- export * from "../../Component-517c7068";
1
+ export * from "../../Component-339bca77";
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var components_calendarInput_Component = require('../../Component-517c7068.js');
3
+ var components_calendarInput_Component = require('../../Component-339bca77.js');
4
4
  require('react');
5
5
  require('react-merge-refs');
6
6
  require('classnames');
package/desktop.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var Component_desktop = require('./Component.desktop.js');
4
- require('./Component-517c7068.js');
4
+ require('./Component-339bca77.js');
5
5
  require('react');
6
6
  require('react-merge-refs');
7
7
  require('classnames');
@@ -46,7 +46,7 @@ function __rest(s, e) {
46
46
  return t;
47
47
  }
48
48
 
49
- var styles = {"component":"calendar-input__component_10079","block":"calendar-input__block_10079","calendarContainer":"calendar-input__calendarContainer_10079","calendarResponsive":"calendar-input__calendarResponsive_10079","calendarIcon":"calendar-input__calendarIcon_10079","nativeInput":"calendar-input__nativeInput_10079"};
49
+ var styles = {"component":"calendar-input__component_2mx3a","block":"calendar-input__block_2mx3a","calendarContainer":"calendar-input__calendarContainer_2mx3a","calendarResponsive":"calendar-input__calendarResponsive_2mx3a","calendarIcon":"calendar-input__calendarIcon_2mx3a","nativeInput":"calendar-input__nativeInput_2mx3a"};
50
50
  require('./components/calendar-input/index.css')
51
51
 
52
52
  var CalendarInput = forwardRef(function (_a, ref) {
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { CalendarInputProps } from "./Component-4f5186cc";
2
+ import { CalendarInputProps } from "./Component-34dcb485";
3
3
  type CalendarInputDesktopProps = Omit<CalendarInputProps, 'view'>;
4
4
  declare const CalendarInputDesktop: FC<CalendarInputDesktopProps>;
5
5
  export { CalendarInputDesktopProps, CalendarInputDesktop };
@@ -1,4 +1,4 @@
1
- import { C as CalendarInput, _ as __assign } from './Component-4f5186cc.js';
1
+ import { C as CalendarInput, _ as __assign } from './Component-34dcb485.js';
2
2
  import React from 'react';
3
3
  import 'react-merge-refs';
4
4
  import 'classnames';
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { CalendarInputProps } from "./Component-4f5186cc";
2
+ import { CalendarInputProps } from "./Component-34dcb485";
3
3
  type CalendarInputMobileProps = Omit<CalendarInputProps, 'view'>;
4
4
  declare const CalendarInputMobile: FC<CalendarInputMobileProps>;
5
5
  export { CalendarInputMobileProps, CalendarInputMobile };
@@ -1,4 +1,4 @@
1
- import { C as CalendarInput, _ as __assign } from './Component-4f5186cc.js';
1
+ import { C as CalendarInput, _ as __assign } from './Component-34dcb485.js';
2
2
  import React from 'react';
3
3
  import { CalendarMobile } from '@alfalab/core-components-calendar/esm';
4
4
  import 'react-merge-refs';
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { CalendarInputProps } from "./Component-4f5186cc";
2
+ import { CalendarInputProps } from "./Component-34dcb485";
3
3
  type CalendarInputResponsiveProps = Omit<CalendarInputProps, 'view'> & {
4
4
  /**
5
5
  * Контрольная точка, с нее начинается desktop версия
@@ -1,4 +1,4 @@
1
- import { a as __rest, _ as __assign } from './Component-4f5186cc.js';
1
+ import { a as __rest, _ as __assign } from './Component-34dcb485.js';
2
2
  import React from 'react';
3
3
  import { useMedia } from '@alfalab/hooks';
4
4
  import { CalendarInputDesktop } from './Component.desktop.js';
@@ -1,4 +1,4 @@
1
- export { C as CalendarInput } from '../../Component-4f5186cc.js';
1
+ export { C as CalendarInput } from '../../Component-34dcb485.js';
2
2
  import 'react';
3
3
  import 'react-merge-refs';
4
4
  import 'classnames';
@@ -1,4 +1,4 @@
1
- /* hash: 1s9l4 */
1
+ /* hash: 16x75 */
2
2
  :root {
3
3
  --color-light-graphic-primary: #0b1f35;
4
4
  }
@@ -44,39 +44,39 @@
44
44
  --calendar-input-icon-color: var(--color-light-graphic-primary);
45
45
  --calendar-input-popover-border-radius: var(--border-radius-m);
46
46
  }
47
- .calendar-input__component_10079 {
47
+ .calendar-input__component_2mx3a {
48
48
  display: inline-block;
49
49
  outline: none;
50
50
  position: relative;
51
51
  }
52
- .calendar-input__block_10079 {
52
+ .calendar-input__block_2mx3a {
53
53
  width: 100%;
54
54
  }
55
- .calendar-input__calendarContainer_10079 {
55
+ .calendar-input__calendarContainer_2mx3a {
56
56
  display: inline-block;
57
57
  box-sizing: border-box;
58
58
  border-radius: var(--calendar-input-popover-border-radius)
59
59
  }
60
60
  @media (max-width: 374px) {
61
- .calendar-input__calendarContainer_10079 {
61
+ .calendar-input__calendarContainer_2mx3a {
62
62
  width: 100%;
63
63
  min-width: 288px
64
64
  }
65
65
  }
66
- .calendar-input__calendarResponsive_10079 {
66
+ .calendar-input__calendarResponsive_2mx3a {
67
67
  width: var(--calendar-width);
68
68
  padding: 0 var(--gap-m);
69
69
  }
70
- .calendar-input__calendarIcon_10079 {
70
+ .calendar-input__calendarIcon_2mx3a {
71
71
  width: 24px;
72
72
  height: 24px;
73
73
  display: block;
74
74
  color: var(--calendar-input-icon-color)
75
75
  }
76
- .calendar-input__calendarIcon_10079:not(:only-child) {
76
+ .calendar-input__calendarIcon_2mx3a:not(:only-child) {
77
77
  margin-right: var(--gap-2xs);
78
78
  }
79
- .calendar-input__nativeInput_10079 {
79
+ .calendar-input__nativeInput_2mx3a {
80
80
  opacity: 0;
81
81
  position: absolute;
82
82
  top: 0;
@@ -87,9 +87,9 @@
87
87
  appearance: none;
88
88
  z-index: 1
89
89
  }
90
- .calendar-input__nativeInput_10079::-webkit-calendar-picker-indicator {
90
+ .calendar-input__nativeInput_2mx3a::-webkit-calendar-picker-indicator {
91
91
  display: none;
92
92
  }
93
- .calendar-input__nativeInput_10079::-webkit-inner-spin-button {
93
+ .calendar-input__nativeInput_2mx3a::-webkit-inner-spin-button {
94
94
  display: none;
95
95
  }
@@ -1 +1 @@
1
- export * from "../../Component-4f5186cc";
1
+ export * from "../../Component-34dcb485";
@@ -1,4 +1,4 @@
1
- export { C as CalendarInput } from '../../Component-4f5186cc.js';
1
+ export { C as CalendarInput } from '../../Component-34dcb485.js';
2
2
  import 'react';
3
3
  import 'react-merge-refs';
4
4
  import 'classnames';
package/esm/desktop.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export { CalendarInputDesktop } from './Component.desktop.js';
2
- import './Component-4f5186cc.js';
2
+ import './Component-34dcb485.js';
3
3
  import 'react';
4
4
  import 'react-merge-refs';
5
5
  import 'classnames';
package/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export { CalendarInputResponsive as CalendarInput } from './Component.responsive.js';
2
2
  export { DATE_FORMAT, DATE_MASK, IS_BROWSER, NATIVE_DATE_FORMAT, SUPPORTS_INPUT_TYPE_DATE, formatDate, isInputDateSupported, isValidInputValue, parseDateString } from './utils.js';
3
- import './Component-4f5186cc.js';
3
+ import './Component-34dcb485.js';
4
4
  import 'react';
5
5
  import 'react-merge-refs';
6
6
  import 'classnames';
package/esm/mobile.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export { CalendarInputMobile } from './Component.mobile.js';
2
- import './Component-4f5186cc.js';
2
+ import './Component-34dcb485.js';
3
3
  import 'react';
4
4
  import 'react-merge-refs';
5
5
  import 'classnames';
package/esm/responsive.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export { CalendarInputResponsive } from './Component.responsive.js';
2
- import './Component-4f5186cc.js';
2
+ import './Component-34dcb485.js';
3
3
  import 'react';
4
4
  import 'react-merge-refs';
5
5
  import 'classnames';
package/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  var Component_responsive = require('./Component.responsive.js');
4
4
  var utils = require('./utils.js');
5
- require('./Component-517c7068.js');
5
+ require('./Component-339bca77.js');
6
6
  require('react');
7
7
  require('react-merge-refs');
8
8
  require('classnames');
package/mobile.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var Component_mobile = require('./Component.mobile.js');
4
- require('./Component-517c7068.js');
4
+ require('./Component-339bca77.js');
5
5
  require('react');
6
6
  require('react-merge-refs');
7
7
  require('classnames');
@@ -10,7 +10,7 @@ import 'date-fns/format';
10
10
  import 'date-fns/isSameDay';
11
11
  import 'date-fns/parse';
12
12
 
13
- const styles = {"component":"calendar-input__component_10079","block":"calendar-input__block_10079","calendarContainer":"calendar-input__calendarContainer_10079","calendarResponsive":"calendar-input__calendarResponsive_10079","calendarIcon":"calendar-input__calendarIcon_10079","nativeInput":"calendar-input__nativeInput_10079"};
13
+ const styles = {"component":"calendar-input__component_2mx3a","block":"calendar-input__block_2mx3a","calendarContainer":"calendar-input__calendarContainer_2mx3a","calendarResponsive":"calendar-input__calendarResponsive_2mx3a","calendarIcon":"calendar-input__calendarIcon_2mx3a","nativeInput":"calendar-input__nativeInput_2mx3a"};
14
14
  require('./index.css')
15
15
 
16
16
  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, onKeyDown, readOnly, Calendar: Calendar$1 = Calendar, popoverPosition = 'bottom-start', zIndexPopover, useAnchorWidth, rightAddons, error, view = 'desktop', ...restProps }, ref) => {
@@ -1,4 +1,4 @@
1
- /* hash: 1s9l4 */
1
+ /* hash: 16x75 */
2
2
  :root {
3
3
  --color-light-graphic-primary: #0b1f35;
4
4
  }
@@ -44,39 +44,39 @@
44
44
  --calendar-input-icon-color: var(--color-light-graphic-primary);
45
45
  --calendar-input-popover-border-radius: var(--border-radius-m);
46
46
  }
47
- .calendar-input__component_10079 {
47
+ .calendar-input__component_2mx3a {
48
48
  display: inline-block;
49
49
  outline: none;
50
50
  position: relative;
51
51
  }
52
- .calendar-input__block_10079 {
52
+ .calendar-input__block_2mx3a {
53
53
  width: 100%;
54
54
  }
55
- .calendar-input__calendarContainer_10079 {
55
+ .calendar-input__calendarContainer_2mx3a {
56
56
  display: inline-block;
57
57
  box-sizing: border-box;
58
58
  border-radius: var(--calendar-input-popover-border-radius)
59
59
  }
60
60
  @media (max-width: 374px) {
61
- .calendar-input__calendarContainer_10079 {
61
+ .calendar-input__calendarContainer_2mx3a {
62
62
  width: 100%;
63
63
  min-width: 288px
64
64
  }
65
65
  }
66
- .calendar-input__calendarResponsive_10079 {
66
+ .calendar-input__calendarResponsive_2mx3a {
67
67
  width: var(--calendar-width);
68
68
  padding: 0 var(--gap-m);
69
69
  }
70
- .calendar-input__calendarIcon_10079 {
70
+ .calendar-input__calendarIcon_2mx3a {
71
71
  width: 24px;
72
72
  height: 24px;
73
73
  display: block;
74
74
  color: var(--calendar-input-icon-color)
75
75
  }
76
- .calendar-input__calendarIcon_10079:not(:only-child) {
76
+ .calendar-input__calendarIcon_2mx3a:not(:only-child) {
77
77
  margin-right: var(--gap-2xs);
78
78
  }
79
- .calendar-input__nativeInput_10079 {
79
+ .calendar-input__nativeInput_2mx3a {
80
80
  opacity: 0;
81
81
  position: absolute;
82
82
  top: 0;
@@ -87,9 +87,9 @@
87
87
  appearance: none;
88
88
  z-index: 1
89
89
  }
90
- .calendar-input__nativeInput_10079::-webkit-calendar-picker-indicator {
90
+ .calendar-input__nativeInput_2mx3a::-webkit-calendar-picker-indicator {
91
91
  display: none;
92
92
  }
93
- .calendar-input__nativeInput_10079::-webkit-inner-spin-button {
93
+ .calendar-input__nativeInput_2mx3a::-webkit-inner-spin-button {
94
94
  display: none;
95
95
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-calendar-input",
3
- "version": "8.2.2",
3
+ "version": "8.2.4",
4
4
  "description": "Calendar input component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -18,8 +18,8 @@
18
18
  "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
19
19
  },
20
20
  "dependencies": {
21
- "@alfalab/core-components-calendar": "^6.2.2",
22
- "@alfalab/core-components-date-input": "^4.1.3",
21
+ "@alfalab/core-components-calendar": "^6.2.4",
22
+ "@alfalab/core-components-date-input": "^4.1.4",
23
23
  "@alfalab/core-components-popover": "^6.0.5",
24
24
  "@alfalab/hooks": "^1.7.0",
25
25
  "classnames": "^2.3.1",
package/responsive.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var Component_responsive = require('./Component.responsive.js');
4
- require('./Component-517c7068.js');
4
+ require('./Component-339bca77.js');
5
5
  require('react');
6
6
  require('react-merge-refs');
7
7
  require('classnames');