@alfalab/core-components-date-input 4.3.9 → 4.3.10
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.d.ts +4 -0
- package/Component.js +5 -1
- package/cssm/Component.d.ts +4 -0
- package/cssm/Component.js +4 -0
- package/esm/Component.d.ts +4 -0
- package/esm/Component.js +5 -1
- package/esm/index.css +4 -4
- package/index.css +4 -4
- package/modern/Component.d.ts +4 -0
- package/modern/Component.js +5 -1
- package/modern/index.css +4 -4
- package/package.json +2 -2
- package/src/Component.tsx +4 -0
package/Component.d.ts
CHANGED
|
@@ -22,6 +22,10 @@ type DateInputProps = Omit<InputProps, 'onChange'> & {
|
|
|
22
22
|
value: string;
|
|
23
23
|
}) => void;
|
|
24
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated
|
|
27
|
+
* use UniversalDateInput instead
|
|
28
|
+
*/
|
|
25
29
|
declare const DateInput: React.ForwardRefExoticComponent<Omit<InputProps, "onChange"> & {
|
|
26
30
|
/**
|
|
27
31
|
* Управление нативным режимом на мобильных устройствах
|
package/Component.js
CHANGED
|
@@ -17,9 +17,13 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
17
17
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
18
18
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
19
19
|
|
|
20
|
-
var styles = {"nativeInput":"date-
|
|
20
|
+
var styles = {"nativeInput":"date-input__nativeInput_xifz6"};
|
|
21
21
|
require('./index.css')
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated
|
|
25
|
+
* use UniversalDateInput instead
|
|
26
|
+
*/
|
|
23
27
|
var DateInput = React.forwardRef(function (_a, ref) {
|
|
24
28
|
var _b = _a.mobileMode, mobileMode = _b === void 0 ? 'input' : _b, _c = _a.defaultValue, defaultValue = _c === void 0 ? '' : _c, rightAddons = _a.rightAddons, error = _a.error, propValue = _a.value, onBlur = _a.onBlur, onChange = _a.onChange, onComplete = _a.onComplete, restProps = tslib.__rest(_a, ["mobileMode", "defaultValue", "rightAddons", "error", "value", "onBlur", "onChange", "onComplete"]);
|
|
25
29
|
var inputRef = React.useRef(null);
|
package/cssm/Component.d.ts
CHANGED
|
@@ -22,6 +22,10 @@ type DateInputProps = Omit<InputProps, 'onChange'> & {
|
|
|
22
22
|
value: string;
|
|
23
23
|
}) => void;
|
|
24
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated
|
|
27
|
+
* use UniversalDateInput instead
|
|
28
|
+
*/
|
|
25
29
|
declare const DateInput: React.ForwardRefExoticComponent<Omit<InputProps, "onChange"> & {
|
|
26
30
|
/**
|
|
27
31
|
* Управление нативным режимом на мобильных устройствах
|
package/cssm/Component.js
CHANGED
|
@@ -19,6 +19,10 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
19
19
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
20
20
|
var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated
|
|
24
|
+
* use UniversalDateInput instead
|
|
25
|
+
*/
|
|
22
26
|
var DateInput = React.forwardRef(function (_a, ref) {
|
|
23
27
|
var _b = _a.mobileMode, mobileMode = _b === void 0 ? 'input' : _b, _c = _a.defaultValue, defaultValue = _c === void 0 ? '' : _c, rightAddons = _a.rightAddons, error = _a.error, propValue = _a.value, onBlur = _a.onBlur, onChange = _a.onChange, onComplete = _a.onComplete, restProps = tslib.__rest(_a, ["mobileMode", "defaultValue", "rightAddons", "error", "value", "onBlur", "onChange", "onComplete"]);
|
|
24
28
|
var inputRef = React.useRef(null);
|
package/esm/Component.d.ts
CHANGED
|
@@ -22,6 +22,10 @@ type DateInputProps = Omit<InputProps, 'onChange'> & {
|
|
|
22
22
|
value: string;
|
|
23
23
|
}) => void;
|
|
24
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated
|
|
27
|
+
* use UniversalDateInput instead
|
|
28
|
+
*/
|
|
25
29
|
declare const DateInput: React.ForwardRefExoticComponent<Omit<InputProps, "onChange"> & {
|
|
26
30
|
/**
|
|
27
31
|
* Управление нативным режимом на мобильных устройствах
|
package/esm/Component.js
CHANGED
|
@@ -8,9 +8,13 @@ import 'date-fns/format';
|
|
|
8
8
|
import 'date-fns/isValid';
|
|
9
9
|
import 'date-fns/parse';
|
|
10
10
|
|
|
11
|
-
var styles = {"nativeInput":"date-
|
|
11
|
+
var styles = {"nativeInput":"date-input__nativeInput_xifz6"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated
|
|
16
|
+
* use UniversalDateInput instead
|
|
17
|
+
*/
|
|
14
18
|
var DateInput = forwardRef(function (_a, ref) {
|
|
15
19
|
var _b = _a.mobileMode, mobileMode = _b === void 0 ? 'input' : _b, _c = _a.defaultValue, defaultValue = _c === void 0 ? '' : _c, rightAddons = _a.rightAddons, error = _a.error, propValue = _a.value, onBlur = _a.onBlur, onChange = _a.onChange, onComplete = _a.onComplete, restProps = __rest(_a, ["mobileMode", "defaultValue", "rightAddons", "error", "value", "onBlur", "onChange", "onComplete"]);
|
|
16
20
|
var inputRef = useRef(null);
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: zychy */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :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 */
|
|
4
4
|
} :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 */
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
} :root {
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
|
-
} .date-
|
|
17
|
+
} .date-input__nativeInput_xifz6 {
|
|
18
18
|
opacity: 0;
|
|
19
19
|
position: absolute;
|
|
20
20
|
top: 0;
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
height: 100%;
|
|
24
24
|
appearance: none;
|
|
25
25
|
z-index: 1
|
|
26
|
-
} .date-
|
|
26
|
+
} .date-input__nativeInput_xifz6::-webkit-calendar-picker-indicator {
|
|
27
27
|
display: none;
|
|
28
|
-
} .date-
|
|
28
|
+
} .date-input__nativeInput_xifz6::-webkit-inner-spin-button {
|
|
29
29
|
display: none;
|
|
30
30
|
}
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: zychy */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :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 */
|
|
4
4
|
} :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 */
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
} :root {
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
|
-
} .date-
|
|
17
|
+
} .date-input__nativeInput_xifz6 {
|
|
18
18
|
opacity: 0;
|
|
19
19
|
position: absolute;
|
|
20
20
|
top: 0;
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
height: 100%;
|
|
24
24
|
appearance: none;
|
|
25
25
|
z-index: 1
|
|
26
|
-
} .date-
|
|
26
|
+
} .date-input__nativeInput_xifz6::-webkit-calendar-picker-indicator {
|
|
27
27
|
display: none;
|
|
28
|
-
} .date-
|
|
28
|
+
} .date-input__nativeInput_xifz6::-webkit-inner-spin-button {
|
|
29
29
|
display: none;
|
|
30
30
|
}
|
package/modern/Component.d.ts
CHANGED
|
@@ -22,6 +22,10 @@ type DateInputProps = Omit<InputProps, 'onChange'> & {
|
|
|
22
22
|
value: string;
|
|
23
23
|
}) => void;
|
|
24
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated
|
|
27
|
+
* use UniversalDateInput instead
|
|
28
|
+
*/
|
|
25
29
|
declare const DateInput: React.ForwardRefExoticComponent<Omit<InputProps, "onChange"> & {
|
|
26
30
|
/**
|
|
27
31
|
* Управление нативным режимом на мобильных устройствах
|
package/modern/Component.js
CHANGED
|
@@ -7,9 +7,13 @@ import 'date-fns/format';
|
|
|
7
7
|
import 'date-fns/isValid';
|
|
8
8
|
import 'date-fns/parse';
|
|
9
9
|
|
|
10
|
-
const styles = {"nativeInput":"date-
|
|
10
|
+
const styles = {"nativeInput":"date-input__nativeInput_xifz6"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated
|
|
15
|
+
* use UniversalDateInput instead
|
|
16
|
+
*/
|
|
13
17
|
const DateInput = forwardRef(({ mobileMode = 'input', defaultValue = '', rightAddons, error, value: propValue, onBlur, onChange, onComplete, ...restProps }, ref) => {
|
|
14
18
|
const inputRef = useRef(null);
|
|
15
19
|
const [shouldRenderNative, setShouldRenderNative] = useState(false);
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: zychy */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :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 */
|
|
4
4
|
} :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 */
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
} :root {
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
|
-
} .date-
|
|
17
|
+
} .date-input__nativeInput_xifz6 {
|
|
18
18
|
opacity: 0;
|
|
19
19
|
position: absolute;
|
|
20
20
|
top: 0;
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
height: 100%;
|
|
24
24
|
appearance: none;
|
|
25
25
|
z-index: 1
|
|
26
|
-
} .date-
|
|
26
|
+
} .date-input__nativeInput_xifz6::-webkit-calendar-picker-indicator {
|
|
27
27
|
display: none;
|
|
28
|
-
} .date-
|
|
28
|
+
} .date-input__nativeInput_xifz6::-webkit-inner-spin-button {
|
|
29
29
|
display: none;
|
|
30
30
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-date-input",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@alfalab/core-components-input": "^12.
|
|
17
|
+
"@alfalab/core-components-input": "^12.3.0",
|
|
18
18
|
"date-fns": "^2.16.1",
|
|
19
19
|
"react-merge-refs": "^1.1.0",
|
|
20
20
|
"tslib": "^2.4.0"
|
package/src/Component.tsx
CHANGED