@alfalab/core-components-calendar-input 10.4.13 → 10.4.14
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/components/calendar-input/Component.d.ts +1 -1
- package/components/calendar-input/Component.js +1 -1
- package/components/calendar-input/index.css +11 -11
- package/esm/components/calendar-input/Component.js +1 -1
- package/esm/components/calendar-input/index.css +11 -11
- package/modern/components/calendar-input/Component.js +1 -1
- package/modern/components/calendar-input/index.css +11 -11
- package/package.json +2 -2
|
@@ -149,7 +149,7 @@ declare const CalendarInput: React.ForwardRefExoticComponent<Omit<DateInputProps
|
|
|
149
149
|
onMonthTitleClick?: ((event: React.MouseEvent<HTMLSpanElement, globalThis.MouseEvent>) => void) | undefined;
|
|
150
150
|
yearsAmount?: number | undefined;
|
|
151
151
|
scrollableContainer?: HTMLElement | undefined;
|
|
152
|
-
} & Omit<CalendarDesktopProps, ("className" | "dataTestId" | "hasHeader" | "
|
|
152
|
+
} & Omit<CalendarDesktopProps, ("className" | "dataTestId" | "hasHeader" | "onMonthChange" | "defaultView" | "selectorView" | "rangeComplete" | "onYearClick" | "onPeriodClick" | "responsive" | "showCurrentYearSelector") | ("contentClassName" | "headerClassName")> & Pick<CalendarDesktopProps, "className" | "dataTestId" | "hasHeader" | "onMonthChange" | "defaultView" | "selectorView" | "rangeComplete" | "onYearClick" | "onPeriodClick" | "responsive" | "showCurrentYearSelector"> & Record<string, unknown>) | undefined;
|
|
153
153
|
/**
|
|
154
154
|
* Значение инпута (используется и для календаря)
|
|
155
155
|
*/
|
|
@@ -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-
|
|
21
|
+
var styles = {"component":"calendar-input__component_1ihen","block":"calendar-input__block_1ihen","calendarContainer":"calendar-input__calendarContainer_1ihen","calendarResponsive":"calendar-input__calendarResponsive_1ihen","calendarIcon":"calendar-input__calendarIcon_1ihen","nativeInput":"calendar-input__nativeInput_1ihen"};
|
|
22
22
|
require('./index.css')
|
|
23
23
|
|
|
24
24
|
var CalendarInput = React.forwardRef(function (_a, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 9zi1k */
|
|
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-
|
|
53
|
+
} .calendar-input__component_1ihen {
|
|
54
54
|
display: inline-block;
|
|
55
55
|
outline: none;
|
|
56
56
|
position: relative;
|
|
57
|
-
} .calendar-
|
|
57
|
+
} .calendar-input__block_1ihen {
|
|
58
58
|
width: 100%;
|
|
59
|
-
} .calendar-
|
|
59
|
+
} .calendar-input__calendarContainer_1ihen {
|
|
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-
|
|
64
|
+
} @media (max-width: 374px) { .calendar-input__calendarContainer_1ihen {
|
|
65
65
|
width: 100%;
|
|
66
66
|
min-width: 288px
|
|
67
67
|
}
|
|
68
|
-
} .calendar-
|
|
68
|
+
} .calendar-input__calendarResponsive_1ihen {
|
|
69
69
|
width: var(--calendar-width);
|
|
70
|
-
} .calendar-
|
|
70
|
+
} .calendar-input__calendarIcon_1ihen {
|
|
71
71
|
width: 24px;
|
|
72
72
|
height: 24px;
|
|
73
73
|
display: block;
|
|
74
74
|
color: var(--calendar-input-icon-color)
|
|
75
|
-
} .calendar-
|
|
75
|
+
} .calendar-input__calendarIcon_1ihen:not(:only-child) {
|
|
76
76
|
margin-right: var(--gap-4);
|
|
77
|
-
} .calendar-
|
|
77
|
+
} .calendar-input__nativeInput_1ihen {
|
|
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-
|
|
86
|
+
} .calendar-input__nativeInput_1ihen::-webkit-calendar-picker-indicator {
|
|
87
87
|
display: none;
|
|
88
|
-
} .calendar-
|
|
88
|
+
} .calendar-input__nativeInput_1ihen::-webkit-inner-spin-button {
|
|
89
89
|
display: none;
|
|
90
90
|
}
|
|
@@ -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-
|
|
11
|
+
var styles = {"component":"calendar-input__component_1ihen","block":"calendar-input__block_1ihen","calendarContainer":"calendar-input__calendarContainer_1ihen","calendarResponsive":"calendar-input__calendarResponsive_1ihen","calendarIcon":"calendar-input__calendarIcon_1ihen","nativeInput":"calendar-input__nativeInput_1ihen"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
var CalendarInput = forwardRef(function (_a, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 9zi1k */
|
|
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-
|
|
53
|
+
} .calendar-input__component_1ihen {
|
|
54
54
|
display: inline-block;
|
|
55
55
|
outline: none;
|
|
56
56
|
position: relative;
|
|
57
|
-
} .calendar-
|
|
57
|
+
} .calendar-input__block_1ihen {
|
|
58
58
|
width: 100%;
|
|
59
|
-
} .calendar-
|
|
59
|
+
} .calendar-input__calendarContainer_1ihen {
|
|
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-
|
|
64
|
+
} @media (max-width: 374px) { .calendar-input__calendarContainer_1ihen {
|
|
65
65
|
width: 100%;
|
|
66
66
|
min-width: 288px
|
|
67
67
|
}
|
|
68
|
-
} .calendar-
|
|
68
|
+
} .calendar-input__calendarResponsive_1ihen {
|
|
69
69
|
width: var(--calendar-width);
|
|
70
|
-
} .calendar-
|
|
70
|
+
} .calendar-input__calendarIcon_1ihen {
|
|
71
71
|
width: 24px;
|
|
72
72
|
height: 24px;
|
|
73
73
|
display: block;
|
|
74
74
|
color: var(--calendar-input-icon-color)
|
|
75
|
-
} .calendar-
|
|
75
|
+
} .calendar-input__calendarIcon_1ihen:not(:only-child) {
|
|
76
76
|
margin-right: var(--gap-4);
|
|
77
|
-
} .calendar-
|
|
77
|
+
} .calendar-input__nativeInput_1ihen {
|
|
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-
|
|
86
|
+
} .calendar-input__nativeInput_1ihen::-webkit-calendar-picker-indicator {
|
|
87
87
|
display: none;
|
|
88
|
-
} .calendar-
|
|
88
|
+
} .calendar-input__nativeInput_1ihen::-webkit-inner-spin-button {
|
|
89
89
|
display: none;
|
|
90
90
|
}
|
|
@@ -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-
|
|
10
|
+
const styles = {"component":"calendar-input__component_1ihen","block":"calendar-input__block_1ihen","calendarContainer":"calendar-input__calendarContainer_1ihen","calendarResponsive":"calendar-input__calendarResponsive_1ihen","calendarIcon":"calendar-input__calendarIcon_1ihen","nativeInput":"calendar-input__nativeInput_1ihen"};
|
|
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:
|
|
1
|
+
/* hash: 9zi1k */
|
|
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-
|
|
53
|
+
} .calendar-input__component_1ihen {
|
|
54
54
|
display: inline-block;
|
|
55
55
|
outline: none;
|
|
56
56
|
position: relative;
|
|
57
|
-
} .calendar-
|
|
57
|
+
} .calendar-input__block_1ihen {
|
|
58
58
|
width: 100%;
|
|
59
|
-
} .calendar-
|
|
59
|
+
} .calendar-input__calendarContainer_1ihen {
|
|
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-
|
|
64
|
+
} @media (max-width: 374px) { .calendar-input__calendarContainer_1ihen {
|
|
65
65
|
width: 100%;
|
|
66
66
|
min-width: 288px
|
|
67
67
|
}
|
|
68
|
-
} .calendar-
|
|
68
|
+
} .calendar-input__calendarResponsive_1ihen {
|
|
69
69
|
width: var(--calendar-width);
|
|
70
|
-
} .calendar-
|
|
70
|
+
} .calendar-input__calendarIcon_1ihen {
|
|
71
71
|
width: 24px;
|
|
72
72
|
height: 24px;
|
|
73
73
|
display: block;
|
|
74
74
|
color: var(--calendar-input-icon-color)
|
|
75
|
-
} .calendar-
|
|
75
|
+
} .calendar-input__calendarIcon_1ihen:not(:only-child) {
|
|
76
76
|
margin-right: var(--gap-4);
|
|
77
|
-
} .calendar-
|
|
77
|
+
} .calendar-input__nativeInput_1ihen {
|
|
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-
|
|
86
|
+
} .calendar-input__nativeInput_1ihen::-webkit-calendar-picker-indicator {
|
|
87
87
|
display: none;
|
|
88
|
-
} .calendar-
|
|
88
|
+
} .calendar-input__nativeInput_1ihen::-webkit-inner-spin-button {
|
|
89
89
|
display: none;
|
|
90
90
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-calendar-input",
|
|
3
|
-
"version": "10.4.
|
|
3
|
+
"version": "10.4.14",
|
|
4
4
|
"description": "Calendar input component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@alfalab/core-components-calendar": "^7.17.
|
|
19
|
+
"@alfalab/core-components-calendar": "^7.17.4",
|
|
20
20
|
"@alfalab/core-components-date-input": "^4.4.12",
|
|
21
21
|
"@alfalab/core-components-mq": "^4.4.1",
|
|
22
22
|
"@alfalab/core-components-popover": "^6.3.6",
|