@alfalab/core-components-calendar-input 5.0.1 → 5.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/CHANGELOG.md +8 -0
- package/dist/Component.js +1 -1
- package/dist/esm/Component.js +1 -1
- package/dist/esm/index.css +9 -9
- package/dist/index.css +9 -9
- package/dist/modern/Component.js +1 -1
- package/dist/modern/index.css +9 -9
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [5.0.2](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-calendar-input@5.0.1...@alfalab/core-components-calendar-input@5.0.2) (2021-11-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @alfalab/core-components-calendar-input
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [5.0.1](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-calendar-input@5.0.0...@alfalab/core-components-calendar-input@5.0.1) (2021-11-16)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @alfalab/core-components-calendar-input
|
package/dist/Component.js
CHANGED
|
@@ -55,7 +55,7 @@ function __rest(s, e) {
|
|
|
55
55
|
return t;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
var styles = {"component":"calendar-
|
|
58
|
+
var styles = {"component":"calendar-input__component_1gn0j","block":"calendar-input__block_1gn0j","calendarContainer":"calendar-input__calendarContainer_1gn0j","calendarIcon":"calendar-input__calendarIcon_1gn0j","nativeInput":"calendar-input__nativeInput_1gn0j"};
|
|
59
59
|
require('./index.css')
|
|
60
60
|
|
|
61
61
|
var CalendarInput = React.forwardRef(function (_a, ref) {
|
package/dist/esm/Component.js
CHANGED
|
@@ -45,7 +45,7 @@ function __rest(s, e) {
|
|
|
45
45
|
return t;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
var styles = {"component":"calendar-
|
|
48
|
+
var styles = {"component":"calendar-input__component_1gn0j","block":"calendar-input__block_1gn0j","calendarContainer":"calendar-input__calendarContainer_1gn0j","calendarIcon":"calendar-input__calendarIcon_1gn0j","nativeInput":"calendar-input__nativeInput_1gn0j"};
|
|
49
49
|
require('./index.css')
|
|
50
50
|
|
|
51
51
|
var CalendarInput = forwardRef(function (_a, ref) {
|
package/dist/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: nlooo */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-primary: #dbdee1;
|
|
4
4
|
--color-light-graphic-primary: #0b1f35;
|
|
@@ -43,31 +43,31 @@
|
|
|
43
43
|
--calendar-input-popover-border-color: var(--color-light-border-primary);
|
|
44
44
|
--calendar-input-popover-border-radius: var(--border-radius-m);
|
|
45
45
|
}
|
|
46
|
-
.calendar-
|
|
46
|
+
.calendar-input__component_1gn0j {
|
|
47
47
|
display: inline-block;
|
|
48
48
|
outline: none;
|
|
49
49
|
position: relative;
|
|
50
50
|
}
|
|
51
|
-
.calendar-
|
|
51
|
+
.calendar-input__block_1gn0j {
|
|
52
52
|
width: 100%;
|
|
53
53
|
}
|
|
54
|
-
.calendar-
|
|
54
|
+
.calendar-input__calendarContainer_1gn0j {
|
|
55
55
|
display: inline-block;
|
|
56
56
|
box-sizing: border-box;
|
|
57
57
|
box-shadow: var(--shadow-s);
|
|
58
58
|
border: 1px solid var(--calendar-input-popover-border-color);
|
|
59
59
|
border-radius: var(--calendar-input-popover-border-radius);
|
|
60
60
|
}
|
|
61
|
-
.calendar-
|
|
61
|
+
.calendar-input__calendarIcon_1gn0j {
|
|
62
62
|
width: 24px;
|
|
63
63
|
height: 24px;
|
|
64
64
|
display: block;
|
|
65
65
|
color: var(--calendar-input-icon-color)
|
|
66
66
|
}
|
|
67
|
-
.calendar-
|
|
67
|
+
.calendar-input__calendarIcon_1gn0j:not(:only-child) {
|
|
68
68
|
margin-right: var(--gap-2xs);
|
|
69
69
|
}
|
|
70
|
-
.calendar-
|
|
70
|
+
.calendar-input__nativeInput_1gn0j {
|
|
71
71
|
opacity: 0;
|
|
72
72
|
position: absolute;
|
|
73
73
|
top: 0;
|
|
@@ -78,9 +78,9 @@
|
|
|
78
78
|
appearance: none;
|
|
79
79
|
z-index: 1
|
|
80
80
|
}
|
|
81
|
-
.calendar-
|
|
81
|
+
.calendar-input__nativeInput_1gn0j::-webkit-calendar-picker-indicator {
|
|
82
82
|
display: none;
|
|
83
83
|
}
|
|
84
|
-
.calendar-
|
|
84
|
+
.calendar-input__nativeInput_1gn0j::-webkit-inner-spin-button {
|
|
85
85
|
display: none;
|
|
86
86
|
}
|
package/dist/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: nlooo */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-primary: #dbdee1;
|
|
4
4
|
--color-light-graphic-primary: #0b1f35;
|
|
@@ -43,31 +43,31 @@
|
|
|
43
43
|
--calendar-input-popover-border-color: var(--color-light-border-primary);
|
|
44
44
|
--calendar-input-popover-border-radius: var(--border-radius-m);
|
|
45
45
|
}
|
|
46
|
-
.calendar-
|
|
46
|
+
.calendar-input__component_1gn0j {
|
|
47
47
|
display: inline-block;
|
|
48
48
|
outline: none;
|
|
49
49
|
position: relative;
|
|
50
50
|
}
|
|
51
|
-
.calendar-
|
|
51
|
+
.calendar-input__block_1gn0j {
|
|
52
52
|
width: 100%;
|
|
53
53
|
}
|
|
54
|
-
.calendar-
|
|
54
|
+
.calendar-input__calendarContainer_1gn0j {
|
|
55
55
|
display: inline-block;
|
|
56
56
|
box-sizing: border-box;
|
|
57
57
|
box-shadow: var(--shadow-s);
|
|
58
58
|
border: 1px solid var(--calendar-input-popover-border-color);
|
|
59
59
|
border-radius: var(--calendar-input-popover-border-radius);
|
|
60
60
|
}
|
|
61
|
-
.calendar-
|
|
61
|
+
.calendar-input__calendarIcon_1gn0j {
|
|
62
62
|
width: 24px;
|
|
63
63
|
height: 24px;
|
|
64
64
|
display: block;
|
|
65
65
|
color: var(--calendar-input-icon-color)
|
|
66
66
|
}
|
|
67
|
-
.calendar-
|
|
67
|
+
.calendar-input__calendarIcon_1gn0j:not(:only-child) {
|
|
68
68
|
margin-right: var(--gap-2xs);
|
|
69
69
|
}
|
|
70
|
-
.calendar-
|
|
70
|
+
.calendar-input__nativeInput_1gn0j {
|
|
71
71
|
opacity: 0;
|
|
72
72
|
position: absolute;
|
|
73
73
|
top: 0;
|
|
@@ -78,9 +78,9 @@
|
|
|
78
78
|
appearance: none;
|
|
79
79
|
z-index: 1
|
|
80
80
|
}
|
|
81
|
-
.calendar-
|
|
81
|
+
.calendar-input__nativeInput_1gn0j::-webkit-calendar-picker-indicator {
|
|
82
82
|
display: none;
|
|
83
83
|
}
|
|
84
|
-
.calendar-
|
|
84
|
+
.calendar-input__nativeInput_1gn0j::-webkit-inner-spin-button {
|
|
85
85
|
display: none;
|
|
86
86
|
}
|
package/dist/modern/Component.js
CHANGED
|
@@ -6,7 +6,7 @@ import { parseDateString, isCompleteDateInput, formatDate, DateInput, SUPPORTS_I
|
|
|
6
6
|
import { Calendar, dateInLimits } from '@alfalab/core-components-calendar/dist/modern';
|
|
7
7
|
import { CalendarMIcon } from '@alfalab/icons-glyph/CalendarMIcon';
|
|
8
8
|
|
|
9
|
-
var styles = {"component":"calendar-
|
|
9
|
+
var styles = {"component":"calendar-input__component_1gn0j","block":"calendar-input__block_1gn0j","calendarContainer":"calendar-input__calendarContainer_1gn0j","calendarIcon":"calendar-input__calendarIcon_1gn0j","nativeInput":"calendar-input__nativeInput_1gn0j"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
const CalendarInput = forwardRef(({ block = false, className, inputClassName, defaultOpen = false, defaultMonth, defaultValue = '', calendarPosition = 'popover', value, dataTestId, calendarProps = {}, minDate = calendarProps.minDate, maxDate = calendarProps.maxDate, offDays = calendarProps.offDays || [], preventFlip, mobileMode = 'popover', wrapperRef = null, disabled, onChange, onInputChange, onCalendarChange, readOnly, Calendar: Calendar$1 = Calendar, popoverPosition = 'bottom-start', ...restProps }, ref) => {
|
package/dist/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: nlooo */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-primary: #dbdee1;
|
|
4
4
|
--color-light-graphic-primary: #0b1f35;
|
|
@@ -43,31 +43,31 @@
|
|
|
43
43
|
--calendar-input-popover-border-color: var(--color-light-border-primary);
|
|
44
44
|
--calendar-input-popover-border-radius: var(--border-radius-m);
|
|
45
45
|
}
|
|
46
|
-
.calendar-
|
|
46
|
+
.calendar-input__component_1gn0j {
|
|
47
47
|
display: inline-block;
|
|
48
48
|
outline: none;
|
|
49
49
|
position: relative;
|
|
50
50
|
}
|
|
51
|
-
.calendar-
|
|
51
|
+
.calendar-input__block_1gn0j {
|
|
52
52
|
width: 100%;
|
|
53
53
|
}
|
|
54
|
-
.calendar-
|
|
54
|
+
.calendar-input__calendarContainer_1gn0j {
|
|
55
55
|
display: inline-block;
|
|
56
56
|
box-sizing: border-box;
|
|
57
57
|
box-shadow: var(--shadow-s);
|
|
58
58
|
border: 1px solid var(--calendar-input-popover-border-color);
|
|
59
59
|
border-radius: var(--calendar-input-popover-border-radius);
|
|
60
60
|
}
|
|
61
|
-
.calendar-
|
|
61
|
+
.calendar-input__calendarIcon_1gn0j {
|
|
62
62
|
width: 24px;
|
|
63
63
|
height: 24px;
|
|
64
64
|
display: block;
|
|
65
65
|
color: var(--calendar-input-icon-color)
|
|
66
66
|
}
|
|
67
|
-
.calendar-
|
|
67
|
+
.calendar-input__calendarIcon_1gn0j:not(:only-child) {
|
|
68
68
|
margin-right: var(--gap-2xs);
|
|
69
69
|
}
|
|
70
|
-
.calendar-
|
|
70
|
+
.calendar-input__nativeInput_1gn0j {
|
|
71
71
|
opacity: 0;
|
|
72
72
|
position: absolute;
|
|
73
73
|
top: 0;
|
|
@@ -78,9 +78,9 @@
|
|
|
78
78
|
appearance: none;
|
|
79
79
|
z-index: 1
|
|
80
80
|
}
|
|
81
|
-
.calendar-
|
|
81
|
+
.calendar-input__nativeInput_1gn0j::-webkit-calendar-picker-indicator {
|
|
82
82
|
display: none;
|
|
83
83
|
}
|
|
84
|
-
.calendar-
|
|
84
|
+
.calendar-input__nativeInput_1gn0j::-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": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "Calendar input component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"react-dom": "^16.9.0 || ^17.0.1"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@alfalab/core-components-calendar": "^3.1.
|
|
23
|
-
"@alfalab/core-components-date-input": "^1.2.
|
|
22
|
+
"@alfalab/core-components-calendar": "^3.1.4",
|
|
23
|
+
"@alfalab/core-components-date-input": "^1.2.4",
|
|
24
24
|
"@alfalab/core-components-popover": "^5.5.0",
|
|
25
25
|
"classnames": "^2.2.6",
|
|
26
26
|
"date-fns": "^2.16.1",
|
|
27
27
|
"react-merge-refs": "^1.1.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "10c9fd1caacf98a5c15f84529889ddf41e9e1b54"
|
|
30
30
|
}
|