@alfalab/core-components-calendar-input 8.0.0 → 8.0.2

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/Component.js CHANGED
@@ -60,7 +60,7 @@ function __rest(s, e) {
60
60
  return t;
61
61
  }
62
62
 
63
- var styles = {"component":"calendar-input__component_d7iey","block":"calendar-input__block_d7iey","calendarContainer":"calendar-input__calendarContainer_d7iey","calendarResponsive":"calendar-input__calendarResponsive_d7iey","calendarIcon":"calendar-input__calendarIcon_d7iey","nativeInput":"calendar-input__nativeInput_d7iey"};
63
+ var styles = {"component":"calendar-input__component_lznfy","block":"calendar-input__block_lznfy","calendarContainer":"calendar-input__calendarContainer_lznfy","calendarResponsive":"calendar-input__calendarResponsive_lznfy","calendarIcon":"calendar-input__calendarIcon_lznfy","nativeInput":"calendar-input__nativeInput_lznfy"};
64
64
  require('./index.css')
65
65
 
66
66
  var CalendarInput = React.forwardRef(function (_a, ref) {
package/esm/Component.js CHANGED
@@ -50,7 +50,7 @@ function __rest(s, e) {
50
50
  return t;
51
51
  }
52
52
 
53
- var styles = {"component":"calendar-input__component_d7iey","block":"calendar-input__block_d7iey","calendarContainer":"calendar-input__calendarContainer_d7iey","calendarResponsive":"calendar-input__calendarResponsive_d7iey","calendarIcon":"calendar-input__calendarIcon_d7iey","nativeInput":"calendar-input__nativeInput_d7iey"};
53
+ var styles = {"component":"calendar-input__component_lznfy","block":"calendar-input__block_lznfy","calendarContainer":"calendar-input__calendarContainer_lznfy","calendarResponsive":"calendar-input__calendarResponsive_lznfy","calendarIcon":"calendar-input__calendarIcon_lznfy","nativeInput":"calendar-input__nativeInput_lznfy"};
54
54
  require('./index.css')
55
55
 
56
56
  var CalendarInput = forwardRef(function (_a, ref) {
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: gju86 */
1
+ /* hash: gcb0x */
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_d7iey {
47
+ .calendar-input__component_lznfy {
48
48
  display: inline-block;
49
49
  outline: none;
50
50
  position: relative;
51
51
  }
52
- .calendar-input__block_d7iey {
52
+ .calendar-input__block_lznfy {
53
53
  width: 100%;
54
54
  }
55
- .calendar-input__calendarContainer_d7iey {
55
+ .calendar-input__calendarContainer_lznfy {
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_d7iey {
61
+ .calendar-input__calendarContainer_lznfy {
62
62
  width: 100%;
63
63
  min-width: 288px
64
64
  }
65
65
  }
66
- .calendar-input__calendarResponsive_d7iey {
66
+ .calendar-input__calendarResponsive_lznfy {
67
67
  width: var(--calendar-width);
68
68
  padding: 0 var(--gap-m);
69
69
  }
70
- .calendar-input__calendarIcon_d7iey {
70
+ .calendar-input__calendarIcon_lznfy {
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_d7iey:not(:only-child) {
76
+ .calendar-input__calendarIcon_lznfy:not(:only-child) {
77
77
  margin-right: var(--gap-2xs);
78
78
  }
79
- .calendar-input__nativeInput_d7iey {
79
+ .calendar-input__nativeInput_lznfy {
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_d7iey::-webkit-calendar-picker-indicator {
90
+ .calendar-input__nativeInput_lznfy::-webkit-calendar-picker-indicator {
91
91
  display: none;
92
92
  }
93
- .calendar-input__nativeInput_d7iey::-webkit-inner-spin-button {
93
+ .calendar-input__nativeInput_lznfy::-webkit-inner-spin-button {
94
94
  display: none;
95
95
  }
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: gju86 */
1
+ /* hash: gcb0x */
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_d7iey {
47
+ .calendar-input__component_lznfy {
48
48
  display: inline-block;
49
49
  outline: none;
50
50
  position: relative;
51
51
  }
52
- .calendar-input__block_d7iey {
52
+ .calendar-input__block_lznfy {
53
53
  width: 100%;
54
54
  }
55
- .calendar-input__calendarContainer_d7iey {
55
+ .calendar-input__calendarContainer_lznfy {
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_d7iey {
61
+ .calendar-input__calendarContainer_lznfy {
62
62
  width: 100%;
63
63
  min-width: 288px
64
64
  }
65
65
  }
66
- .calendar-input__calendarResponsive_d7iey {
66
+ .calendar-input__calendarResponsive_lznfy {
67
67
  width: var(--calendar-width);
68
68
  padding: 0 var(--gap-m);
69
69
  }
70
- .calendar-input__calendarIcon_d7iey {
70
+ .calendar-input__calendarIcon_lznfy {
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_d7iey:not(:only-child) {
76
+ .calendar-input__calendarIcon_lznfy:not(:only-child) {
77
77
  margin-right: var(--gap-2xs);
78
78
  }
79
- .calendar-input__nativeInput_d7iey {
79
+ .calendar-input__nativeInput_lznfy {
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_d7iey::-webkit-calendar-picker-indicator {
90
+ .calendar-input__nativeInput_lznfy::-webkit-calendar-picker-indicator {
91
91
  display: none;
92
92
  }
93
- .calendar-input__nativeInput_d7iey::-webkit-inner-spin-button {
93
+ .calendar-input__nativeInput_lznfy::-webkit-inner-spin-button {
94
94
  display: none;
95
95
  }
@@ -11,7 +11,7 @@ import 'date-fns/isSameDay';
11
11
  import 'date-fns/parse';
12
12
  import { SUPPORTS_INPUT_TYPE_DATE } from './utils.js';
13
13
 
14
- var styles = {"component":"calendar-input__component_d7iey","block":"calendar-input__block_d7iey","calendarContainer":"calendar-input__calendarContainer_d7iey","calendarResponsive":"calendar-input__calendarResponsive_d7iey","calendarIcon":"calendar-input__calendarIcon_d7iey","nativeInput":"calendar-input__nativeInput_d7iey"};
14
+ var styles = {"component":"calendar-input__component_lznfy","block":"calendar-input__block_lznfy","calendarContainer":"calendar-input__calendarContainer_lznfy","calendarResponsive":"calendar-input__calendarResponsive_lznfy","calendarIcon":"calendar-input__calendarIcon_lznfy","nativeInput":"calendar-input__nativeInput_lznfy"};
15
15
  require('./index.css')
16
16
 
17
17
  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, ...restProps }, ref) => {
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: gju86 */
1
+ /* hash: gcb0x */
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_d7iey {
47
+ .calendar-input__component_lznfy {
48
48
  display: inline-block;
49
49
  outline: none;
50
50
  position: relative;
51
51
  }
52
- .calendar-input__block_d7iey {
52
+ .calendar-input__block_lznfy {
53
53
  width: 100%;
54
54
  }
55
- .calendar-input__calendarContainer_d7iey {
55
+ .calendar-input__calendarContainer_lznfy {
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_d7iey {
61
+ .calendar-input__calendarContainer_lznfy {
62
62
  width: 100%;
63
63
  min-width: 288px
64
64
  }
65
65
  }
66
- .calendar-input__calendarResponsive_d7iey {
66
+ .calendar-input__calendarResponsive_lznfy {
67
67
  width: var(--calendar-width);
68
68
  padding: 0 var(--gap-m);
69
69
  }
70
- .calendar-input__calendarIcon_d7iey {
70
+ .calendar-input__calendarIcon_lznfy {
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_d7iey:not(:only-child) {
76
+ .calendar-input__calendarIcon_lznfy:not(:only-child) {
77
77
  margin-right: var(--gap-2xs);
78
78
  }
79
- .calendar-input__nativeInput_d7iey {
79
+ .calendar-input__nativeInput_lznfy {
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_d7iey::-webkit-calendar-picker-indicator {
90
+ .calendar-input__nativeInput_lznfy::-webkit-calendar-picker-indicator {
91
91
  display: none;
92
92
  }
93
- .calendar-input__nativeInput_d7iey::-webkit-inner-spin-button {
93
+ .calendar-input__nativeInput_lznfy::-webkit-inner-spin-button {
94
94
  display: none;
95
95
  }
package/modern/utils.js CHANGED
@@ -28,7 +28,7 @@ const isValidInputValue = (newInputValue, minDate, maxDate, offDays = []) => {
28
28
  return Boolean(dateValue &&
29
29
  isCompleteDateInput(newInputValue) &&
30
30
  dateInLimits(dateValue, minDate, maxDate) &&
31
- !offDays.some(offDay => isSameDay(offDay, dateValue)));
31
+ !offDays.some((offDay) => isSameDay(offDay, dateValue)));
32
32
  };
33
33
 
34
34
  export { DATE_FORMAT, DATE_MASK, IS_BROWSER, NATIVE_DATE_FORMAT, SUPPORTS_INPUT_TYPE_DATE, formatDate, isInputDateSupported, isValidInputValue, parseDateString };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-calendar-input",
3
- "version": "8.0.0",
3
+ "version": "8.0.2",
4
4
  "description": "Calendar input component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -18,9 +18,9 @@
18
18
  "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
19
19
  },
20
20
  "dependencies": {
21
- "@alfalab/core-components-calendar": "^6.1.9",
22
- "@alfalab/core-components-date-input": "^4.0.0",
23
- "@alfalab/core-components-popover": "^6.0.2",
21
+ "@alfalab/core-components-calendar": "^6.1.11",
22
+ "@alfalab/core-components-date-input": "^4.0.2",
23
+ "@alfalab/core-components-popover": "^6.0.3",
24
24
  "@alfalab/hooks": "^1.7.0",
25
25
  "classnames": "^2.3.1",
26
26
  "date-fns": "^2.16.1",
package/send-stats.js CHANGED
@@ -55,7 +55,7 @@ async function main() {
55
55
  };
56
56
 
57
57
  return new Promise((resolve, reject) => {
58
- const req = http.request(options, res => {
58
+ const req = http.request(options, (res) => {
59
59
  res.on('end', () => {
60
60
  resolve();
61
61
  });