@alfalab/core-components-date-range-input 2.2.1 → 2.2.3
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-070df1af.d.ts → Component-9a6da64e.d.ts} +0 -0
- package/{Component-070df1af.js → Component-9a6da64e.js} +42 -29
- package/Component.desktop.d.ts +1 -1
- package/Component.desktop.js +2 -1
- package/Component.mobile.d.ts +1 -1
- package/Component.mobile.js +2 -1
- package/Component.responsive.d.ts +1 -1
- package/Component.responsive.js +1 -1
- package/components/date-range-input/Component.js +2 -1
- package/components/date-range-input/index.css +8 -8
- package/components/date-range-input/index.d.ts +1 -1
- package/components/date-range-input/index.js +2 -1
- package/cssm/{Component-a4cfbf46.d.ts → Component-540e1474.d.ts} +0 -0
- package/cssm/{Component-a4cfbf46.js → Component-540e1474.js} +41 -28
- package/cssm/Component.desktop.d.ts +1 -1
- package/cssm/Component.desktop.js +2 -1
- package/cssm/Component.mobile.d.ts +1 -1
- package/cssm/Component.mobile.js +2 -1
- package/cssm/Component.responsive.d.ts +1 -1
- package/cssm/Component.responsive.js +1 -1
- package/cssm/components/date-range-input/Component.js +2 -1
- package/cssm/components/date-range-input/index.d.ts +1 -1
- package/cssm/components/date-range-input/index.js +2 -1
- package/cssm/components/date-range-input/index.module.css +2 -2
- package/cssm/desktop.js +2 -1
- package/cssm/index.js +2 -2
- package/cssm/mobile.js +2 -1
- package/cssm/responsive.js +2 -2
- package/desktop.js +2 -1
- package/esm/{Component-3d173527.d.ts → Component-61c161e7.d.ts} +0 -0
- package/esm/{Component-3d173527.js → Component-61c161e7.js} +42 -29
- package/esm/Component.desktop.d.ts +1 -1
- package/esm/Component.desktop.js +2 -1
- package/esm/Component.mobile.d.ts +1 -1
- package/esm/Component.mobile.js +2 -1
- package/esm/Component.responsive.d.ts +1 -1
- package/esm/Component.responsive.js +1 -1
- package/esm/components/date-range-input/Component.js +2 -1
- package/esm/components/date-range-input/index.css +8 -8
- package/esm/components/date-range-input/index.d.ts +1 -1
- package/esm/components/date-range-input/index.js +2 -1
- package/esm/desktop.js +2 -1
- package/esm/index.js +2 -2
- package/esm/mobile.js +2 -1
- package/esm/responsive.js +2 -2
- package/index.js +2 -2
- package/mobile.js +2 -1
- package/modern/Component.desktop.js +1 -0
- package/modern/Component.mobile.js +1 -0
- package/modern/components/date-range-input/Component.js +42 -29
- package/modern/components/date-range-input/index.css +8 -8
- package/modern/components/date-range-input/index.js +1 -0
- package/modern/desktop.js +1 -0
- package/modern/mobile.js +1 -0
- package/package.json +5 -4
- package/responsive.js +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: wjsyj */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
--gap-m: 16px;
|
|
12
12
|
}
|
|
13
13
|
:root {
|
|
14
|
-
--border-radius-
|
|
14
|
+
--border-radius-m: 8px;
|
|
15
15
|
}
|
|
16
16
|
:root {
|
|
17
17
|
--calendar-width: 344px;
|
|
@@ -37,28 +37,28 @@
|
|
|
37
37
|
/* marker */
|
|
38
38
|
}
|
|
39
39
|
:root {
|
|
40
|
-
--calendar-popover-border-radius:
|
|
40
|
+
--calendar-popover-border-radius: var(--border-radius-m);
|
|
41
41
|
}
|
|
42
|
-
.date-range-
|
|
42
|
+
.date-range-input__component_gu60y {
|
|
43
43
|
display: inline-block;
|
|
44
44
|
outline: none;
|
|
45
45
|
position: relative;
|
|
46
46
|
}
|
|
47
|
-
.date-range-
|
|
47
|
+
.date-range-input__calendarContainer_gu60y {
|
|
48
48
|
display: inline-block;
|
|
49
49
|
box-sizing: border-box;
|
|
50
50
|
border-radius: var(--calendar-popover-border-radius)
|
|
51
51
|
}
|
|
52
52
|
@media (max-width: 374px) {
|
|
53
|
-
.date-range-
|
|
53
|
+
.date-range-input__calendarContainer_gu60y {
|
|
54
54
|
width: 100%;
|
|
55
55
|
min-width: 288px
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
.date-range-
|
|
58
|
+
.date-range-input__calendarResponsive_gu60y {
|
|
59
59
|
width: var(--calendar-width);
|
|
60
60
|
padding: 0 var(--gap-m);
|
|
61
61
|
}
|
|
62
|
-
.date-range-
|
|
62
|
+
.date-range-input__block_gu60y {
|
|
63
63
|
width: 100%;
|
|
64
64
|
}
|
|
@@ -7,6 +7,7 @@ import '@alfalab/core-components-calendar/modern';
|
|
|
7
7
|
import '@alfalab/core-components-icon-button/modern';
|
|
8
8
|
import '@alfalab/core-components-input/modern';
|
|
9
9
|
import '@alfalab/core-components-popover/modern';
|
|
10
|
+
import '@alfalab/hooks';
|
|
10
11
|
import '@alfalab/icons-glyph/CalendarMIcon';
|
|
11
12
|
import '../../utils/format.js';
|
|
12
13
|
import 'date-fns/parse';
|
package/modern/desktop.js
CHANGED
|
@@ -8,6 +8,7 @@ import '@alfalab/core-components-calendar/modern';
|
|
|
8
8
|
import '@alfalab/core-components-icon-button/modern';
|
|
9
9
|
import '@alfalab/core-components-input/modern';
|
|
10
10
|
import '@alfalab/core-components-popover/modern';
|
|
11
|
+
import '@alfalab/hooks';
|
|
11
12
|
import '@alfalab/icons-glyph/CalendarMIcon';
|
|
12
13
|
import './utils/format.js';
|
|
13
14
|
import 'date-fns/parse';
|
package/modern/mobile.js
CHANGED
|
@@ -8,6 +8,7 @@ import 'date-fns/isValid';
|
|
|
8
8
|
import '@alfalab/core-components-icon-button/modern';
|
|
9
9
|
import '@alfalab/core-components-input/modern';
|
|
10
10
|
import '@alfalab/core-components-popover/modern';
|
|
11
|
+
import '@alfalab/hooks';
|
|
11
12
|
import '@alfalab/icons-glyph/CalendarMIcon';
|
|
12
13
|
import './utils/format.js';
|
|
13
14
|
import 'date-fns/parse';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-date-range-input",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,10 +15,11 @@
|
|
|
15
15
|
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@alfalab/core-components-input": "^11.1.
|
|
19
|
-
"@alfalab/core-components-icon-button": "^6.0.
|
|
20
|
-
"@alfalab/core-components-calendar": "^6.2.
|
|
18
|
+
"@alfalab/core-components-input": "^11.1.3",
|
|
19
|
+
"@alfalab/core-components-icon-button": "^6.0.3",
|
|
20
|
+
"@alfalab/core-components-calendar": "^6.2.3",
|
|
21
21
|
"@alfalab/core-components-popover": "^6.0.5",
|
|
22
|
+
"@alfalab/hooks": "^1.13.0",
|
|
22
23
|
"classnames": "^2.3.1"
|
|
23
24
|
}
|
|
24
25
|
}
|
package/responsive.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var Component_responsive = require('./Component.responsive.js');
|
|
4
|
-
require('./Component-
|
|
4
|
+
require('./Component-9a6da64e.js');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-merge-refs');
|
|
7
7
|
require('classnames');
|
|
@@ -10,10 +10,10 @@ require('@alfalab/core-components-calendar');
|
|
|
10
10
|
require('@alfalab/core-components-icon-button');
|
|
11
11
|
require('@alfalab/core-components-input');
|
|
12
12
|
require('@alfalab/core-components-popover');
|
|
13
|
+
require('@alfalab/hooks');
|
|
13
14
|
require('@alfalab/icons-glyph/CalendarMIcon');
|
|
14
15
|
require('./utils/format.js');
|
|
15
16
|
require('date-fns/parse');
|
|
16
|
-
require('@alfalab/hooks');
|
|
17
17
|
require('./Component.desktop.js');
|
|
18
18
|
require('./Component.mobile.js');
|
|
19
19
|
|