@alfalab/core-components-calendar-input 8.2.21 → 8.2.22
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.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 +3 -3
|
@@ -21,7 +21,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
21
21
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
22
22
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
23
23
|
|
|
24
|
-
var styles = {"component":"calendar-
|
|
24
|
+
var styles = {"component":"calendar-input__component_qcz0y","block":"calendar-input__block_qcz0y","calendarContainer":"calendar-input__calendarContainer_qcz0y","calendarResponsive":"calendar-input__calendarResponsive_qcz0y","calendarIcon":"calendar-input__calendarIcon_qcz0y","nativeInput":"calendar-input__nativeInput_qcz0y"};
|
|
25
25
|
require('./index.css')
|
|
26
26
|
|
|
27
27
|
var CalendarInput = React.forwardRef(function (_a, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1j2hp */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-secondary: #e9e9eb;
|
|
@@ -44,32 +44,32 @@
|
|
|
44
44
|
} :root {
|
|
45
45
|
--calendar-input-icon-color: var(--color-light-graphic-primary);
|
|
46
46
|
--calendar-input-popover-border-radius: var(--border-radius-m);
|
|
47
|
-
} .calendar-
|
|
47
|
+
} .calendar-input__component_qcz0y {
|
|
48
48
|
display: inline-block;
|
|
49
49
|
outline: none;
|
|
50
50
|
position: relative;
|
|
51
|
-
} .calendar-
|
|
51
|
+
} .calendar-input__block_qcz0y {
|
|
52
52
|
width: 100%;
|
|
53
|
-
} .calendar-
|
|
53
|
+
} .calendar-input__calendarContainer_qcz0y {
|
|
54
54
|
display: inline-block;
|
|
55
55
|
box-sizing: border-box;
|
|
56
56
|
border-radius: var(--calendar-input-popover-border-radius);
|
|
57
57
|
border: 1px solid var(--color-light-border-secondary)
|
|
58
|
-
} @media (max-width: 374px) { .calendar-
|
|
58
|
+
} @media (max-width: 374px) { .calendar-input__calendarContainer_qcz0y {
|
|
59
59
|
width: 100%;
|
|
60
60
|
min-width: 288px
|
|
61
61
|
}
|
|
62
|
-
} .calendar-
|
|
62
|
+
} .calendar-input__calendarResponsive_qcz0y {
|
|
63
63
|
width: var(--calendar-width);
|
|
64
64
|
padding: 0 var(--gap-m);
|
|
65
|
-
} .calendar-
|
|
65
|
+
} .calendar-input__calendarIcon_qcz0y {
|
|
66
66
|
width: 24px;
|
|
67
67
|
height: 24px;
|
|
68
68
|
display: block;
|
|
69
69
|
color: var(--calendar-input-icon-color)
|
|
70
|
-
} .calendar-
|
|
70
|
+
} .calendar-input__calendarIcon_qcz0y:not(:only-child) {
|
|
71
71
|
margin-right: var(--gap-2xs);
|
|
72
|
-
} .calendar-
|
|
72
|
+
} .calendar-input__nativeInput_qcz0y {
|
|
73
73
|
opacity: 0;
|
|
74
74
|
position: absolute;
|
|
75
75
|
top: 0;
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
-webkit-appearance: none;
|
|
80
80
|
appearance: none;
|
|
81
81
|
z-index: 1
|
|
82
|
-
} .calendar-
|
|
82
|
+
} .calendar-input__nativeInput_qcz0y::-webkit-calendar-picker-indicator {
|
|
83
83
|
display: none;
|
|
84
|
-
} .calendar-
|
|
84
|
+
} .calendar-input__nativeInput_qcz0y::-webkit-inner-spin-button {
|
|
85
85
|
display: none;
|
|
86
86
|
}
|
|
@@ -11,7 +11,7 @@ import 'date-fns/format';
|
|
|
11
11
|
import 'date-fns/isSameDay';
|
|
12
12
|
import 'date-fns/parse';
|
|
13
13
|
|
|
14
|
-
var styles = {"component":"calendar-
|
|
14
|
+
var styles = {"component":"calendar-input__component_qcz0y","block":"calendar-input__block_qcz0y","calendarContainer":"calendar-input__calendarContainer_qcz0y","calendarResponsive":"calendar-input__calendarResponsive_qcz0y","calendarIcon":"calendar-input__calendarIcon_qcz0y","nativeInput":"calendar-input__nativeInput_qcz0y"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
var CalendarInput = forwardRef(function (_a, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1j2hp */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-secondary: #e9e9eb;
|
|
@@ -44,32 +44,32 @@
|
|
|
44
44
|
} :root {
|
|
45
45
|
--calendar-input-icon-color: var(--color-light-graphic-primary);
|
|
46
46
|
--calendar-input-popover-border-radius: var(--border-radius-m);
|
|
47
|
-
} .calendar-
|
|
47
|
+
} .calendar-input__component_qcz0y {
|
|
48
48
|
display: inline-block;
|
|
49
49
|
outline: none;
|
|
50
50
|
position: relative;
|
|
51
|
-
} .calendar-
|
|
51
|
+
} .calendar-input__block_qcz0y {
|
|
52
52
|
width: 100%;
|
|
53
|
-
} .calendar-
|
|
53
|
+
} .calendar-input__calendarContainer_qcz0y {
|
|
54
54
|
display: inline-block;
|
|
55
55
|
box-sizing: border-box;
|
|
56
56
|
border-radius: var(--calendar-input-popover-border-radius);
|
|
57
57
|
border: 1px solid var(--color-light-border-secondary)
|
|
58
|
-
} @media (max-width: 374px) { .calendar-
|
|
58
|
+
} @media (max-width: 374px) { .calendar-input__calendarContainer_qcz0y {
|
|
59
59
|
width: 100%;
|
|
60
60
|
min-width: 288px
|
|
61
61
|
}
|
|
62
|
-
} .calendar-
|
|
62
|
+
} .calendar-input__calendarResponsive_qcz0y {
|
|
63
63
|
width: var(--calendar-width);
|
|
64
64
|
padding: 0 var(--gap-m);
|
|
65
|
-
} .calendar-
|
|
65
|
+
} .calendar-input__calendarIcon_qcz0y {
|
|
66
66
|
width: 24px;
|
|
67
67
|
height: 24px;
|
|
68
68
|
display: block;
|
|
69
69
|
color: var(--calendar-input-icon-color)
|
|
70
|
-
} .calendar-
|
|
70
|
+
} .calendar-input__calendarIcon_qcz0y:not(:only-child) {
|
|
71
71
|
margin-right: var(--gap-2xs);
|
|
72
|
-
} .calendar-
|
|
72
|
+
} .calendar-input__nativeInput_qcz0y {
|
|
73
73
|
opacity: 0;
|
|
74
74
|
position: absolute;
|
|
75
75
|
top: 0;
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
-webkit-appearance: none;
|
|
80
80
|
appearance: none;
|
|
81
81
|
z-index: 1
|
|
82
|
-
} .calendar-
|
|
82
|
+
} .calendar-input__nativeInput_qcz0y::-webkit-calendar-picker-indicator {
|
|
83
83
|
display: none;
|
|
84
|
-
} .calendar-
|
|
84
|
+
} .calendar-input__nativeInput_qcz0y::-webkit-inner-spin-button {
|
|
85
85
|
display: none;
|
|
86
86
|
}
|
|
@@ -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-
|
|
13
|
+
const styles = {"component":"calendar-input__component_qcz0y","block":"calendar-input__block_qcz0y","calendarContainer":"calendar-input__calendarContainer_qcz0y","calendarResponsive":"calendar-input__calendarResponsive_qcz0y","calendarIcon":"calendar-input__calendarIcon_qcz0y","nativeInput":"calendar-input__nativeInput_qcz0y"};
|
|
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:
|
|
1
|
+
/* hash: 1j2hp */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-secondary: #e9e9eb;
|
|
@@ -44,32 +44,32 @@
|
|
|
44
44
|
} :root {
|
|
45
45
|
--calendar-input-icon-color: var(--color-light-graphic-primary);
|
|
46
46
|
--calendar-input-popover-border-radius: var(--border-radius-m);
|
|
47
|
-
} .calendar-
|
|
47
|
+
} .calendar-input__component_qcz0y {
|
|
48
48
|
display: inline-block;
|
|
49
49
|
outline: none;
|
|
50
50
|
position: relative;
|
|
51
|
-
} .calendar-
|
|
51
|
+
} .calendar-input__block_qcz0y {
|
|
52
52
|
width: 100%;
|
|
53
|
-
} .calendar-
|
|
53
|
+
} .calendar-input__calendarContainer_qcz0y {
|
|
54
54
|
display: inline-block;
|
|
55
55
|
box-sizing: border-box;
|
|
56
56
|
border-radius: var(--calendar-input-popover-border-radius);
|
|
57
57
|
border: 1px solid var(--color-light-border-secondary)
|
|
58
|
-
} @media (max-width: 374px) { .calendar-
|
|
58
|
+
} @media (max-width: 374px) { .calendar-input__calendarContainer_qcz0y {
|
|
59
59
|
width: 100%;
|
|
60
60
|
min-width: 288px
|
|
61
61
|
}
|
|
62
|
-
} .calendar-
|
|
62
|
+
} .calendar-input__calendarResponsive_qcz0y {
|
|
63
63
|
width: var(--calendar-width);
|
|
64
64
|
padding: 0 var(--gap-m);
|
|
65
|
-
} .calendar-
|
|
65
|
+
} .calendar-input__calendarIcon_qcz0y {
|
|
66
66
|
width: 24px;
|
|
67
67
|
height: 24px;
|
|
68
68
|
display: block;
|
|
69
69
|
color: var(--calendar-input-icon-color)
|
|
70
|
-
} .calendar-
|
|
70
|
+
} .calendar-input__calendarIcon_qcz0y:not(:only-child) {
|
|
71
71
|
margin-right: var(--gap-2xs);
|
|
72
|
-
} .calendar-
|
|
72
|
+
} .calendar-input__nativeInput_qcz0y {
|
|
73
73
|
opacity: 0;
|
|
74
74
|
position: absolute;
|
|
75
75
|
top: 0;
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
-webkit-appearance: none;
|
|
80
80
|
appearance: none;
|
|
81
81
|
z-index: 1
|
|
82
|
-
} .calendar-
|
|
82
|
+
} .calendar-input__nativeInput_qcz0y::-webkit-calendar-picker-indicator {
|
|
83
83
|
display: none;
|
|
84
|
-
} .calendar-
|
|
84
|
+
} .calendar-input__nativeInput_qcz0y::-webkit-inner-spin-button {
|
|
85
85
|
display: none;
|
|
86
86
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-calendar-input",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.22",
|
|
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.3.
|
|
22
|
-
"@alfalab/core-components-date-input": "^4.2.
|
|
21
|
+
"@alfalab/core-components-calendar": "^6.3.1",
|
|
22
|
+
"@alfalab/core-components-date-input": "^4.2.4",
|
|
23
23
|
"@alfalab/core-components-popover": "^6.0.8",
|
|
24
24
|
"@alfalab/hooks": "^1.7.0",
|
|
25
25
|
"classnames": "^2.3.1",
|