@alfalab/core-components-time-input 2.2.8 → 2.2.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 +4 -0
- package/cssm/Component.d.ts +4 -0
- package/cssm/Component.js +4 -0
- package/esm/Component.d.ts +4 -0
- package/esm/Component.js +4 -0
- package/modern/Component.d.ts +4 -0
- package/modern/Component.js +4 -0
- package/package.json +2 -2
- package/src/Component.tsx +4 -0
package/Component.d.ts
CHANGED
|
@@ -20,6 +20,10 @@ type TimeInputProps = Omit<InputProps, 'onChange'> & {
|
|
|
20
20
|
value: string;
|
|
21
21
|
}) => void;
|
|
22
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated
|
|
25
|
+
* use UniversalDateInput instead
|
|
26
|
+
*/
|
|
23
27
|
declare const TimeInput: React.ForwardRefExoticComponent<Omit<InputProps, "onChange"> & {
|
|
24
28
|
/**
|
|
25
29
|
* Обработчик изменения значения
|
package/Component.js
CHANGED
|
@@ -12,6 +12,10 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
13
13
|
|
|
14
14
|
/* eslint-disable no-useless-escape */
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated
|
|
17
|
+
* use UniversalDateInput instead
|
|
18
|
+
*/
|
|
15
19
|
var TimeInput = React__default.default.forwardRef(function (_a, ref) {
|
|
16
20
|
var _b = _a.defaultValue, defaultValue = _b === void 0 ? '' : _b, propValue = _a.value, onChange = _a.onChange, onComplete = _a.onComplete, className = _a.className, restProps = tslib.__rest(_a, ["defaultValue", "value", "onChange", "onComplete", "className"]);
|
|
17
21
|
var _c = React.useState(propValue || defaultValue), value = _c[0], setValue = _c[1];
|
package/cssm/Component.d.ts
CHANGED
|
@@ -20,6 +20,10 @@ type TimeInputProps = Omit<InputProps, 'onChange'> & {
|
|
|
20
20
|
value: string;
|
|
21
21
|
}) => void;
|
|
22
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated
|
|
25
|
+
* use UniversalDateInput instead
|
|
26
|
+
*/
|
|
23
27
|
declare const TimeInput: React.ForwardRefExoticComponent<Omit<InputProps, "onChange"> & {
|
|
24
28
|
/**
|
|
25
29
|
* Обработчик изменения значения
|
package/cssm/Component.js
CHANGED
|
@@ -12,6 +12,10 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
13
13
|
|
|
14
14
|
/* eslint-disable no-useless-escape */
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated
|
|
17
|
+
* use UniversalDateInput instead
|
|
18
|
+
*/
|
|
15
19
|
var TimeInput = React__default.default.forwardRef(function (_a, ref) {
|
|
16
20
|
var _b = _a.defaultValue, defaultValue = _b === void 0 ? '' : _b, propValue = _a.value, onChange = _a.onChange, onComplete = _a.onComplete, className = _a.className, restProps = tslib.__rest(_a, ["defaultValue", "value", "onChange", "onComplete", "className"]);
|
|
17
21
|
var _c = React.useState(propValue || defaultValue), value = _c[0], setValue = _c[1];
|
package/esm/Component.d.ts
CHANGED
|
@@ -20,6 +20,10 @@ type TimeInputProps = Omit<InputProps, 'onChange'> & {
|
|
|
20
20
|
value: string;
|
|
21
21
|
}) => void;
|
|
22
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated
|
|
25
|
+
* use UniversalDateInput instead
|
|
26
|
+
*/
|
|
23
27
|
declare const TimeInput: React.ForwardRefExoticComponent<Omit<InputProps, "onChange"> & {
|
|
24
28
|
/**
|
|
25
29
|
* Обработчик изменения значения
|
package/esm/Component.js
CHANGED
|
@@ -4,6 +4,10 @@ import { Input } from '@alfalab/core-components-input/esm';
|
|
|
4
4
|
import { format, isCompleteTimeInput, isValidInputValue } from './utils/format.js';
|
|
5
5
|
|
|
6
6
|
/* eslint-disable no-useless-escape */
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated
|
|
9
|
+
* use UniversalDateInput instead
|
|
10
|
+
*/
|
|
7
11
|
var TimeInput = React.forwardRef(function (_a, ref) {
|
|
8
12
|
var _b = _a.defaultValue, defaultValue = _b === void 0 ? '' : _b, propValue = _a.value, onChange = _a.onChange, onComplete = _a.onComplete, className = _a.className, restProps = __rest(_a, ["defaultValue", "value", "onChange", "onComplete", "className"]);
|
|
9
13
|
var _c = useState(propValue || defaultValue), value = _c[0], setValue = _c[1];
|
package/modern/Component.d.ts
CHANGED
|
@@ -20,6 +20,10 @@ type TimeInputProps = Omit<InputProps, 'onChange'> & {
|
|
|
20
20
|
value: string;
|
|
21
21
|
}) => void;
|
|
22
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated
|
|
25
|
+
* use UniversalDateInput instead
|
|
26
|
+
*/
|
|
23
27
|
declare const TimeInput: React.ForwardRefExoticComponent<Omit<InputProps, "onChange"> & {
|
|
24
28
|
/**
|
|
25
29
|
* Обработчик изменения значения
|
package/modern/Component.js
CHANGED
|
@@ -3,6 +3,10 @@ import { Input } from '@alfalab/core-components-input/modern';
|
|
|
3
3
|
import { format, isCompleteTimeInput, isValidInputValue } from './utils/format.js';
|
|
4
4
|
|
|
5
5
|
/* eslint-disable no-useless-escape */
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated
|
|
8
|
+
* use UniversalDateInput instead
|
|
9
|
+
*/
|
|
6
10
|
const TimeInput = React.forwardRef(({ defaultValue = '', value: propValue, onChange, onComplete, className, ...restProps }, ref) => {
|
|
7
11
|
const [value, setValue] = useState(propValue || defaultValue);
|
|
8
12
|
const handleChange = (event) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-time-input",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@alfalab/core-components-input": "^12.
|
|
18
|
+
"@alfalab/core-components-input": "^12.3.0",
|
|
19
19
|
"tslib": "^2.4.0"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/src/Component.tsx
CHANGED
|
@@ -24,6 +24,10 @@ export type TimeInputProps = Omit<InputProps, 'onChange'> & {
|
|
|
24
24
|
) => void;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated
|
|
29
|
+
* use UniversalDateInput instead
|
|
30
|
+
*/
|
|
27
31
|
export const TimeInput = React.forwardRef<HTMLInputElement, TimeInputProps>(
|
|
28
32
|
(
|
|
29
33
|
{ defaultValue = '', value: propValue, onChange, onComplete, className, ...restProps },
|