@alfalab/core-components-calendar-input 10.2.13 → 10.2.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.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
|
@@ -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_1q1po","block":"calendar-input__block_1q1po","calendarContainer":"calendar-input__calendarContainer_1q1po","calendarResponsive":"calendar-input__calendarResponsive_1q1po","calendarIcon":"calendar-input__calendarIcon_1q1po","nativeInput":"calendar-input__nativeInput_1q1po"};
|
|
22
22
|
require('./index.css')
|
|
23
23
|
|
|
24
24
|
var CalendarInput = React.forwardRef(function (_a, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1mog0 */
|
|
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;
|
|
@@ -43,31 +43,31 @@
|
|
|
43
43
|
} :root {
|
|
44
44
|
--calendar-input-icon-color: var(--color-light-neutral-translucent-700);
|
|
45
45
|
--calendar-input-popover-border-radius: var(--border-radius-m);
|
|
46
|
-
} .calendar-
|
|
46
|
+
} .calendar-input__component_1q1po {
|
|
47
47
|
display: inline-block;
|
|
48
48
|
outline: none;
|
|
49
49
|
position: relative;
|
|
50
|
-
} .calendar-
|
|
50
|
+
} .calendar-input__block_1q1po {
|
|
51
51
|
width: 100%;
|
|
52
|
-
} .calendar-
|
|
52
|
+
} .calendar-input__calendarContainer_1q1po {
|
|
53
53
|
display: inline-block;
|
|
54
54
|
box-sizing: border-box;
|
|
55
55
|
border-radius: var(--calendar-input-popover-border-radius);
|
|
56
56
|
border: 1px solid var(--color-light-neutral-300)
|
|
57
|
-
} @media (max-width: 374px) { .calendar-
|
|
57
|
+
} @media (max-width: 374px) { .calendar-input__calendarContainer_1q1po {
|
|
58
58
|
width: 100%;
|
|
59
59
|
min-width: 288px
|
|
60
60
|
}
|
|
61
|
-
} .calendar-
|
|
61
|
+
} .calendar-input__calendarResponsive_1q1po {
|
|
62
62
|
width: var(--calendar-width);
|
|
63
|
-
} .calendar-
|
|
63
|
+
} .calendar-input__calendarIcon_1q1po {
|
|
64
64
|
width: 24px;
|
|
65
65
|
height: 24px;
|
|
66
66
|
display: block;
|
|
67
67
|
color: var(--calendar-input-icon-color)
|
|
68
|
-
} .calendar-
|
|
68
|
+
} .calendar-input__calendarIcon_1q1po:not(:only-child) {
|
|
69
69
|
margin-right: var(--gap-2xs);
|
|
70
|
-
} .calendar-
|
|
70
|
+
} .calendar-input__nativeInput_1q1po {
|
|
71
71
|
opacity: 0;
|
|
72
72
|
position: absolute;
|
|
73
73
|
top: 0;
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
height: 100%;
|
|
77
77
|
appearance: none;
|
|
78
78
|
z-index: 1
|
|
79
|
-
} .calendar-
|
|
79
|
+
} .calendar-input__nativeInput_1q1po::-webkit-calendar-picker-indicator {
|
|
80
80
|
display: none;
|
|
81
|
-
} .calendar-
|
|
81
|
+
} .calendar-input__nativeInput_1q1po::-webkit-inner-spin-button {
|
|
82
82
|
display: none;
|
|
83
83
|
}
|
|
@@ -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_1q1po","block":"calendar-input__block_1q1po","calendarContainer":"calendar-input__calendarContainer_1q1po","calendarResponsive":"calendar-input__calendarResponsive_1q1po","calendarIcon":"calendar-input__calendarIcon_1q1po","nativeInput":"calendar-input__nativeInput_1q1po"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
var CalendarInput = forwardRef(function (_a, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1mog0 */
|
|
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;
|
|
@@ -43,31 +43,31 @@
|
|
|
43
43
|
} :root {
|
|
44
44
|
--calendar-input-icon-color: var(--color-light-neutral-translucent-700);
|
|
45
45
|
--calendar-input-popover-border-radius: var(--border-radius-m);
|
|
46
|
-
} .calendar-
|
|
46
|
+
} .calendar-input__component_1q1po {
|
|
47
47
|
display: inline-block;
|
|
48
48
|
outline: none;
|
|
49
49
|
position: relative;
|
|
50
|
-
} .calendar-
|
|
50
|
+
} .calendar-input__block_1q1po {
|
|
51
51
|
width: 100%;
|
|
52
|
-
} .calendar-
|
|
52
|
+
} .calendar-input__calendarContainer_1q1po {
|
|
53
53
|
display: inline-block;
|
|
54
54
|
box-sizing: border-box;
|
|
55
55
|
border-radius: var(--calendar-input-popover-border-radius);
|
|
56
56
|
border: 1px solid var(--color-light-neutral-300)
|
|
57
|
-
} @media (max-width: 374px) { .calendar-
|
|
57
|
+
} @media (max-width: 374px) { .calendar-input__calendarContainer_1q1po {
|
|
58
58
|
width: 100%;
|
|
59
59
|
min-width: 288px
|
|
60
60
|
}
|
|
61
|
-
} .calendar-
|
|
61
|
+
} .calendar-input__calendarResponsive_1q1po {
|
|
62
62
|
width: var(--calendar-width);
|
|
63
|
-
} .calendar-
|
|
63
|
+
} .calendar-input__calendarIcon_1q1po {
|
|
64
64
|
width: 24px;
|
|
65
65
|
height: 24px;
|
|
66
66
|
display: block;
|
|
67
67
|
color: var(--calendar-input-icon-color)
|
|
68
|
-
} .calendar-
|
|
68
|
+
} .calendar-input__calendarIcon_1q1po:not(:only-child) {
|
|
69
69
|
margin-right: var(--gap-2xs);
|
|
70
|
-
} .calendar-
|
|
70
|
+
} .calendar-input__nativeInput_1q1po {
|
|
71
71
|
opacity: 0;
|
|
72
72
|
position: absolute;
|
|
73
73
|
top: 0;
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
height: 100%;
|
|
77
77
|
appearance: none;
|
|
78
78
|
z-index: 1
|
|
79
|
-
} .calendar-
|
|
79
|
+
} .calendar-input__nativeInput_1q1po::-webkit-calendar-picker-indicator {
|
|
80
80
|
display: none;
|
|
81
|
-
} .calendar-
|
|
81
|
+
} .calendar-input__nativeInput_1q1po::-webkit-inner-spin-button {
|
|
82
82
|
display: none;
|
|
83
83
|
}
|
|
@@ -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_1q1po","block":"calendar-input__block_1q1po","calendarContainer":"calendar-input__calendarContainer_1q1po","calendarResponsive":"calendar-input__calendarResponsive_1q1po","calendarIcon":"calendar-input__calendarIcon_1q1po","nativeInput":"calendar-input__nativeInput_1q1po"};
|
|
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: 1mog0 */
|
|
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;
|
|
@@ -43,31 +43,31 @@
|
|
|
43
43
|
} :root {
|
|
44
44
|
--calendar-input-icon-color: var(--color-light-neutral-translucent-700);
|
|
45
45
|
--calendar-input-popover-border-radius: var(--border-radius-m);
|
|
46
|
-
} .calendar-
|
|
46
|
+
} .calendar-input__component_1q1po {
|
|
47
47
|
display: inline-block;
|
|
48
48
|
outline: none;
|
|
49
49
|
position: relative;
|
|
50
|
-
} .calendar-
|
|
50
|
+
} .calendar-input__block_1q1po {
|
|
51
51
|
width: 100%;
|
|
52
|
-
} .calendar-
|
|
52
|
+
} .calendar-input__calendarContainer_1q1po {
|
|
53
53
|
display: inline-block;
|
|
54
54
|
box-sizing: border-box;
|
|
55
55
|
border-radius: var(--calendar-input-popover-border-radius);
|
|
56
56
|
border: 1px solid var(--color-light-neutral-300)
|
|
57
|
-
} @media (max-width: 374px) { .calendar-
|
|
57
|
+
} @media (max-width: 374px) { .calendar-input__calendarContainer_1q1po {
|
|
58
58
|
width: 100%;
|
|
59
59
|
min-width: 288px
|
|
60
60
|
}
|
|
61
|
-
} .calendar-
|
|
61
|
+
} .calendar-input__calendarResponsive_1q1po {
|
|
62
62
|
width: var(--calendar-width);
|
|
63
|
-
} .calendar-
|
|
63
|
+
} .calendar-input__calendarIcon_1q1po {
|
|
64
64
|
width: 24px;
|
|
65
65
|
height: 24px;
|
|
66
66
|
display: block;
|
|
67
67
|
color: var(--calendar-input-icon-color)
|
|
68
|
-
} .calendar-
|
|
68
|
+
} .calendar-input__calendarIcon_1q1po:not(:only-child) {
|
|
69
69
|
margin-right: var(--gap-2xs);
|
|
70
|
-
} .calendar-
|
|
70
|
+
} .calendar-input__nativeInput_1q1po {
|
|
71
71
|
opacity: 0;
|
|
72
72
|
position: absolute;
|
|
73
73
|
top: 0;
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
height: 100%;
|
|
77
77
|
appearance: none;
|
|
78
78
|
z-index: 1
|
|
79
|
-
} .calendar-
|
|
79
|
+
} .calendar-input__nativeInput_1q1po::-webkit-calendar-picker-indicator {
|
|
80
80
|
display: none;
|
|
81
|
-
} .calendar-
|
|
81
|
+
} .calendar-input__nativeInput_1q1po::-webkit-inner-spin-button {
|
|
82
82
|
display: none;
|
|
83
83
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-calendar-input",
|
|
3
|
-
"version": "10.2.
|
|
3
|
+
"version": "10.2.14",
|
|
4
4
|
"description": "Calendar input component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@alfalab/core-components-calendar": "^7.6.
|
|
19
|
-
"@alfalab/core-components-date-input": "^4.3.
|
|
18
|
+
"@alfalab/core-components-calendar": "^7.6.3",
|
|
19
|
+
"@alfalab/core-components-date-input": "^4.3.27",
|
|
20
20
|
"@alfalab/core-components-popover": "^6.2.1",
|
|
21
21
|
"@alfalab/hooks": "^1.13.0",
|
|
22
22
|
"@alfalab/icons-glyph": "^2.139.0",
|