armtek-uikit-react 1.0.108 → 1.0.109
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/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"armtek-uikit-react","version":"1.0.
|
|
1
|
+
{"name":"armtek-uikit-react","version":"1.0.109","description":"Armtek UIKit for React","repository":{"type":"git","url":"ssh://git@gl.corp:10022/int/uikit/uikit_react.git"},"author":"","license":"ISC","dependencies":{"build":"^0.1.4","clsx":"^2.0.0","rc-slider":"^10.2.1","react":"*","react-datepicker":"^4.16.0","react-dom":"*","react-transition-group":"^4.4.5"},"peerDependencies":{"react":"*","react-dom":"*"},"scripts":{"pub":"npm version patch && npm publish"}}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TextFieldProps } from '../TextField/TextField';
|
|
2
2
|
import { ChangeEvent, MouseEvent } from 'react';
|
|
3
3
|
import { DatePickerProps } from '../DatePicker/DatePicker';
|
|
4
|
+
type BaseInputProps = Pick<TextFieldProps, 'label' | 'className' | 'placeholder'>;
|
|
4
5
|
type OwnProps = {
|
|
5
6
|
onClick?: (e: MouseEvent) => void;
|
|
6
7
|
format?: string;
|
|
@@ -13,6 +14,6 @@ type OwnProps = {
|
|
|
13
14
|
showTimeOnly?: boolean;
|
|
14
15
|
inputProps?: Omit<TextFieldProps, 'onChange' | 'value'>;
|
|
15
16
|
};
|
|
16
|
-
export type DateFieldProps = OwnProps & Omit<DatePickerProps, keyof OwnProps>;
|
|
17
|
-
export declare const DateField: import("react").ForwardRefExoticComponent<OwnProps & Omit<DatePickerProps, keyof OwnProps> & import("react").RefAttributes<
|
|
17
|
+
export type DateFieldProps = OwnProps & BaseInputProps & Omit<DatePickerProps, keyof OwnProps>;
|
|
18
|
+
export declare const DateField: import("react").ForwardRefExoticComponent<OwnProps & BaseInputProps & Omit<DatePickerProps, keyof OwnProps> & import("react").RefAttributes<any>>;
|
|
18
19
|
export default DateField;
|
|
@@ -16,6 +16,9 @@ export const DateField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
16
16
|
format = 'dd.MM.yyyy',
|
|
17
17
|
inputProps,
|
|
18
18
|
onInput,
|
|
19
|
+
label,
|
|
20
|
+
placeholder,
|
|
21
|
+
className,
|
|
19
22
|
showTime,
|
|
20
23
|
showTimeOnly,
|
|
21
24
|
disabled,
|
|
@@ -55,6 +58,9 @@ export const DateField = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
55
58
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
56
59
|
children: [/*#__PURE__*/_jsx(TextField, {
|
|
57
60
|
ref: ref,
|
|
61
|
+
label: label,
|
|
62
|
+
placeholder: placeholder,
|
|
63
|
+
className: className,
|
|
58
64
|
...inputProps,
|
|
59
65
|
value: (dateValue == null ? void 0 : dateValue.toLocaleDateString('ru-RU')) || '',
|
|
60
66
|
onChange: () => null,
|