@dartech/arsenal-ui 1.4.64 → 1.4.66
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/index.js +6 -3
- package/package.json +1 -1
- package/src/lib/Forms/ControlPhoneInput.d.ts +2 -1
package/index.js
CHANGED
@@ -1089,8 +1089,9 @@ function ControlQueryAutocomplete(_a) {
|
|
1089
1089
|
})]
|
1090
1090
|
}) : label,
|
1091
1091
|
InputLabelProps: {
|
1092
|
-
shrink:
|
1092
|
+
shrink: !!(autocompleteProps === null || autocompleteProps === void 0 ? void 0 : autocompleteProps.placeholder)
|
1093
1093
|
},
|
1094
|
+
placeholder: autocompleteProps === null || autocompleteProps === void 0 ? void 0 : autocompleteProps.placeholder,
|
1094
1095
|
sx: {
|
1095
1096
|
'.MuiInputLabel-root span': {
|
1096
1097
|
color: '#D6331F'
|
@@ -3265,9 +3266,10 @@ const ControlPhoneInput = _a => {
|
|
3265
3266
|
required,
|
3266
3267
|
mask = '+7 (799) 999 99 99',
|
3267
3268
|
requiredErrorText = '',
|
3268
|
-
inputMaskProps
|
3269
|
+
inputMaskProps,
|
3270
|
+
disabled
|
3269
3271
|
} = _a,
|
3270
|
-
textFieldProps = __rest(_a, ["control", "name", "label", "required", "mask", "requiredErrorText", "inputMaskProps"]);
|
3272
|
+
textFieldProps = __rest(_a, ["control", "name", "label", "required", "mask", "requiredErrorText", "inputMaskProps", "disabled"]);
|
3271
3273
|
return jsx(Controller, {
|
3272
3274
|
control: control,
|
3273
3275
|
name: name,
|
@@ -3289,6 +3291,7 @@ const ControlPhoneInput = _a => {
|
|
3289
3291
|
error
|
3290
3292
|
}
|
3291
3293
|
}) => jsx(InputMask, Object.assign({
|
3294
|
+
disabled: disabled,
|
3292
3295
|
mask: mask,
|
3293
3296
|
value: field.value,
|
3294
3297
|
onChange: field.onChange,
|
package/package.json
CHANGED
@@ -9,7 +9,8 @@ type Props = TextFieldProps & {
|
|
9
9
|
mask?: string;
|
10
10
|
label?: ReactNode;
|
11
11
|
requiredErrorText?: string;
|
12
|
+
disabled?: boolean;
|
12
13
|
inputMaskProps?: InputMaskProps;
|
13
14
|
};
|
14
|
-
export declare const ControlPhoneInput: ({ control, name, label, required, mask, requiredErrorText, inputMaskProps, ...textFieldProps }: Props) => JSX.Element;
|
15
|
+
export declare const ControlPhoneInput: ({ control, name, label, required, mask, requiredErrorText, inputMaskProps, disabled, ...textFieldProps }: Props) => JSX.Element;
|
15
16
|
export default ControlPhoneInput;
|