@alfalab/core-components-date-input 2.3.1 → 2.3.4
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 +28 -0
- package/Component.js +1 -1
- package/cssm/Component.js +1 -1
- package/cssm/index.js +1 -1
- package/esm/Component.js +2 -2
- package/esm/index.css +4 -4
- package/esm/index.js +1 -1
- package/index.css +4 -4
- package/modern/Component.js +2 -2
- package/modern/index.css +4 -4
- package/modern/index.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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
|
+
## [2.3.4](https://github.com/core-ds/core-components/compare/@alfalab/core-components-date-input@2.3.3...@alfalab/core-components-date-input@2.3.4) (2022-07-25)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @alfalab/core-components-date-input
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [2.3.3](https://github.com/core-ds/core-components/compare/@alfalab/core-components-date-input@2.3.2...@alfalab/core-components-date-input@2.3.3) (2022-07-18)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @alfalab/core-components-date-input
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [2.3.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-date-input@2.3.1...@alfalab/core-components-date-input@2.3.2) (2022-07-15)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* bump packages version ([#153](https://github.com/core-ds/core-components/issues/153)) ([fd3e082](https://github.com/core-ds/core-components/commit/fd3e08205672129cdce04e1000c673f2cd9c10da))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
## [2.3.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-date-input@2.3.0...@alfalab/core-components-date-input@2.3.1) (2022-07-14)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @alfalab/core-components-date-input
|
|
@@ -306,5 +333,6 @@ Co-authored-by: dmitrsavk <dmitrsavk@yandex.ru>
|
|
|
306
333
|
|
|
307
334
|
### Features
|
|
308
335
|
|
|
336
|
+
|
|
309
337
|
* **calendar-input:** uses date-input ([#752](https://github.com/core-ds/core-components/issues/752)) ([509dba2](https://github.com/core-ds/core-components/commit/509dba26913ccf6df859a200aa476eeef1df2ddc))
|
|
310
338
|
* **date-input:** add component ([#751](https://github.com/core-ds/core-components/issues/751)) ([4b94bee](https://github.com/core-ds/core-components/commit/4b94beec36acc73ac6c62cf37f87061c0ada4b35))
|
package/Component.js
CHANGED
|
@@ -55,7 +55,7 @@ function __rest(s, e) {
|
|
|
55
55
|
return t;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
var styles = {"nativeInput":"date-
|
|
58
|
+
var styles = {"nativeInput":"date-input__nativeInput_1cfyd"};
|
|
59
59
|
require('./index.css')
|
|
60
60
|
|
|
61
61
|
var DateInput = React.forwardRef(function (_a, ref) {
|
package/cssm/Component.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var coreComponentsInput = require('@alfalab/core-components-input/
|
|
6
|
+
var coreComponentsInput = require('@alfalab/core-components-input/cssm');
|
|
7
7
|
var mergeRefs = require('react-merge-refs');
|
|
8
8
|
require('date-fns/parse');
|
|
9
9
|
require('date-fns/format');
|
package/cssm/index.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var Component = require('./Component.js');
|
|
6
6
|
require('react');
|
|
7
|
-
require('@alfalab/core-components-input/
|
|
7
|
+
require('@alfalab/core-components-input/cssm');
|
|
8
8
|
require('react-merge-refs');
|
|
9
9
|
require('date-fns/parse');
|
|
10
10
|
require('date-fns/format');
|
package/esm/Component.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { forwardRef, useRef, useState, useCallback, useEffect } from 'react';
|
|
2
|
-
import { Input } from '@alfalab/core-components-input/
|
|
2
|
+
import { Input } from '@alfalab/core-components-input/esm';
|
|
3
3
|
import mergeRefs from 'react-merge-refs';
|
|
4
4
|
import 'date-fns/parse';
|
|
5
5
|
import 'date-fns/format';
|
|
@@ -46,7 +46,7 @@ function __rest(s, e) {
|
|
|
46
46
|
return t;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
var styles = {"nativeInput":"date-
|
|
49
|
+
var styles = {"nativeInput":"date-input__nativeInput_1cfyd"};
|
|
50
50
|
require('./index.css')
|
|
51
51
|
|
|
52
52
|
var DateInput = forwardRef(function (_a, ref) {
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 37ugv */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
/* Hard up */
|
|
9
9
|
}
|
|
10
|
-
.date-
|
|
10
|
+
.date-input__nativeInput_1cfyd {
|
|
11
11
|
opacity: 0;
|
|
12
12
|
position: absolute;
|
|
13
13
|
top: 0;
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
appearance: none;
|
|
19
19
|
z-index: 1
|
|
20
20
|
}
|
|
21
|
-
.date-
|
|
21
|
+
.date-input__nativeInput_1cfyd::-webkit-calendar-picker-indicator {
|
|
22
22
|
display: none;
|
|
23
23
|
}
|
|
24
|
-
.date-
|
|
24
|
+
.date-input__nativeInput_1cfyd::-webkit-inner-spin-button {
|
|
25
25
|
display: none;
|
|
26
26
|
}
|
package/esm/index.js
CHANGED
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 37ugv */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
/* Hard up */
|
|
9
9
|
}
|
|
10
|
-
.date-
|
|
10
|
+
.date-input__nativeInput_1cfyd {
|
|
11
11
|
opacity: 0;
|
|
12
12
|
position: absolute;
|
|
13
13
|
top: 0;
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
appearance: none;
|
|
19
19
|
z-index: 1
|
|
20
20
|
}
|
|
21
|
-
.date-
|
|
21
|
+
.date-input__nativeInput_1cfyd::-webkit-calendar-picker-indicator {
|
|
22
22
|
display: none;
|
|
23
23
|
}
|
|
24
|
-
.date-
|
|
24
|
+
.date-input__nativeInput_1cfyd::-webkit-inner-spin-button {
|
|
25
25
|
display: none;
|
|
26
26
|
}
|
package/modern/Component.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { forwardRef, useRef, useState, useCallback, useEffect } from 'react';
|
|
2
|
-
import { Input } from '@alfalab/core-components-input/
|
|
2
|
+
import { Input } from '@alfalab/core-components-input/modern';
|
|
3
3
|
import mergeRefs from 'react-merge-refs';
|
|
4
4
|
import 'date-fns/parse';
|
|
5
5
|
import 'date-fns/format';
|
|
@@ -7,7 +7,7 @@ import 'date-fns/isValid';
|
|
|
7
7
|
import { format, parseDateString, isCompleteDateInput, isValid, NATIVE_DATE_FORMAT, formatDate } from './utils/format.js';
|
|
8
8
|
import { isInputDateSupported } from './utils/native-supports.js';
|
|
9
9
|
|
|
10
|
-
var styles = {"nativeInput":"date-
|
|
10
|
+
var styles = {"nativeInput":"date-input__nativeInput_1cfyd"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
const DateInput = forwardRef(({ mobileMode = 'input', defaultValue = '', rightAddons, error, value: propValue, onBlur, onChange, onComplete, ...restProps }, ref) => {
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 37ugv */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
/* Hard up */
|
|
9
9
|
}
|
|
10
|
-
.date-
|
|
10
|
+
.date-input__nativeInput_1cfyd {
|
|
11
11
|
opacity: 0;
|
|
12
12
|
position: absolute;
|
|
13
13
|
top: 0;
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
appearance: none;
|
|
19
19
|
z-index: 1
|
|
20
20
|
}
|
|
21
|
-
.date-
|
|
21
|
+
.date-input__nativeInput_1cfyd::-webkit-calendar-picker-indicator {
|
|
22
22
|
display: none;
|
|
23
23
|
}
|
|
24
|
-
.date-
|
|
24
|
+
.date-input__nativeInput_1cfyd::-webkit-inner-spin-button {
|
|
25
25
|
display: none;
|
|
26
26
|
}
|
package/modern/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-date-input",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"module": "./esm/index.js",
|
|
9
9
|
"scripts": {
|
|
10
|
-
"postinstall": "node ./send-stats.js
|
|
10
|
+
"postinstall": "node -e \"if (require('fs').existsSync('./send-stats.js')){require('./send-stats.js')} \""
|
|
11
11
|
},
|
|
12
12
|
"publishConfig": {
|
|
13
13
|
"access": "public",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"react": "^16.9.0 || ^17.0.1"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@alfalab/core-components-input": "^
|
|
20
|
+
"@alfalab/core-components-input": "^9.0.0",
|
|
21
21
|
"date-fns": "^2.16.1",
|
|
22
22
|
"react-merge-refs": "^1.1.0"
|
|
23
23
|
}
|