@redneckz/wildless-cms-uni-blocks 0.14.1000 → 0.14.1002
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/bundle/api/LeadServiceAPI.d.ts +2 -1
- package/bundle/bundle.umd.js +31 -26
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/bundle/retail/components/DraftDialog/DraftActionButton.d.ts +1 -0
- package/bundle/ui-kit/Button/Button.d.ts +1 -0
- package/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +1 -0
- package/bundle/ui-kit/DatePicker/DatePicker.d.ts +1 -0
- package/bundle/ui-kit/DatePicker/DatePickerInput.d.ts +1 -0
- package/bundle/ui-kit/DatePicker/renderDatePickerForm.d.ts +2 -1
- package/dist/api/LeadServiceAPI.d.ts +2 -1
- package/dist/api/LeadServiceAPI.js +3 -3
- package/dist/api/LeadServiceAPI.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/dist/components/ApplicationForm/constants.js +5 -1
- package/dist/components/ApplicationForm/constants.js.map +1 -1
- package/dist/components/ApplicationLeadForm/GroupedConsents.js +1 -1
- package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/dist/components/ApplicationLeadForm/renderSubmitButton.js +1 -1
- package/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/dist/components/CreditForm/StepsNavigationButtons.js +1 -1
- package/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
- package/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/dist/retail/components/DaDataInputControl/DaDataInputControl.js +1 -1
- package/dist/retail/components/DaDataInputControl/DaDataInputControl.js.map +1 -1
- package/dist/retail/components/DraftDialog/DraftActionButton.d.ts +1 -0
- package/dist/retail/components/DraftDialog/DraftActionButton.js +1 -1
- package/dist/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.js +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/dist/retail/components/Fields/ConsentField.js +1 -1
- package/dist/retail/components/Fields/ConsentField.js.map +1 -1
- package/dist/retail/components/VerifyPhoneDialog/InputCode.js +1 -1
- package/dist/retail/components/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/dist/retail/components/VerifyPhoneDialog/SubmitButton.js +1 -1
- package/dist/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
- package/dist/ui-kit/Button/Button.d.ts +1 -0
- package/dist/ui-kit/Button/Button.js +2 -2
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/Checkbox/Checkbox.js +2 -2
- package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/dist/ui-kit/Checkbox/CheckboxProps.d.ts +1 -0
- package/dist/ui-kit/DatePicker/DatePicker.d.ts +1 -0
- package/dist/ui-kit/DatePicker/DatePicker.js +2 -1
- package/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
- package/dist/ui-kit/DatePicker/DatePickerInput.d.ts +1 -0
- package/dist/ui-kit/DatePicker/DatePickerInput.js +2 -2
- package/dist/ui-kit/DatePicker/DatePickerInput.js.map +1 -1
- package/dist/ui-kit/DatePicker/renderDatePickerForm.d.ts +2 -1
- package/dist/ui-kit/DatePicker/renderDatePickerForm.js +1 -1
- package/dist/ui-kit/DatePicker/renderDatePickerForm.js.map +1 -1
- package/dist/ui-kit/Input/Input.js +1 -1
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/dist/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js +1 -1
- package/dist/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js.map +1 -1
- package/lib/api/LeadServiceAPI.d.ts +2 -1
- package/lib/api/LeadServiceAPI.js +3 -3
- package/lib/api/LeadServiceAPI.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/lib/components/ApplicationForm/constants.js +5 -1
- package/lib/components/ApplicationForm/constants.js.map +1 -1
- package/lib/components/ApplicationLeadForm/GroupedConsents.js +1 -1
- package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/lib/components/ApplicationLeadForm/renderSubmitButton.js +1 -1
- package/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/lib/components/CreditForm/StepsNavigationButtons.js +1 -1
- package/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
- package/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/lib/retail/components/DaDataInputControl/DaDataInputControl.js +1 -1
- package/lib/retail/components/DaDataInputControl/DaDataInputControl.js.map +1 -1
- package/lib/retail/components/DraftDialog/DraftActionButton.d.ts +1 -0
- package/lib/retail/components/DraftDialog/DraftActionButton.js +1 -1
- package/lib/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.js +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/lib/retail/components/Fields/ConsentField.js +1 -1
- package/lib/retail/components/Fields/ConsentField.js.map +1 -1
- package/lib/retail/components/VerifyPhoneDialog/InputCode.js +1 -1
- package/lib/retail/components/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/lib/retail/components/VerifyPhoneDialog/SubmitButton.js +1 -1
- package/lib/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
- package/lib/ui-kit/Button/Button.d.ts +1 -0
- package/lib/ui-kit/Button/Button.js +2 -2
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/Checkbox/Checkbox.js +2 -2
- package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/lib/ui-kit/Checkbox/CheckboxProps.d.ts +1 -0
- package/lib/ui-kit/DatePicker/DatePicker.d.ts +1 -0
- package/lib/ui-kit/DatePicker/DatePicker.js +2 -1
- package/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
- package/lib/ui-kit/DatePicker/DatePickerInput.d.ts +1 -0
- package/lib/ui-kit/DatePicker/DatePickerInput.js +2 -2
- package/lib/ui-kit/DatePicker/DatePickerInput.js.map +1 -1
- package/lib/ui-kit/DatePicker/renderDatePickerForm.d.ts +2 -1
- package/lib/ui-kit/DatePicker/renderDatePickerForm.js +1 -1
- package/lib/ui-kit/DatePicker/renderDatePickerForm.js.map +1 -1
- package/lib/ui-kit/Input/Input.js +1 -1
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/lib/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js +1 -1
- package/lib/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js.map +1 -1
- package/mobile/bundle/api/LeadServiceAPI.d.ts +2 -1
- package/mobile/bundle/bundle.umd.js +31 -26
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/mobile/bundle/retail/components/DraftDialog/DraftActionButton.d.ts +1 -0
- package/mobile/bundle/ui-kit/Button/Button.d.ts +1 -0
- package/mobile/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +1 -0
- package/mobile/bundle/ui-kit/DatePicker/DatePicker.d.ts +1 -0
- package/mobile/bundle/ui-kit/DatePicker/DatePickerInput.d.ts +1 -0
- package/mobile/bundle/ui-kit/DatePicker/renderDatePickerForm.d.ts +2 -1
- package/mobile/dist/api/LeadServiceAPI.d.ts +2 -1
- package/mobile/dist/api/LeadServiceAPI.js +3 -3
- package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/constants.js +5 -1
- package/mobile/dist/components/ApplicationForm/constants.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js +1 -1
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
- package/mobile/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/mobile/dist/retail/components/DaDataInputControl/DaDataInputControl.js +1 -1
- package/mobile/dist/retail/components/DaDataInputControl/DaDataInputControl.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftActionButton.d.ts +1 -0
- package/mobile/dist/retail/components/DraftDialog/DraftActionButton.js +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/dist/retail/components/Fields/ConsentField.js +1 -1
- package/mobile/dist/retail/components/Fields/ConsentField.js.map +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/InputCode.js +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/SubmitButton.js +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
- package/mobile/dist/ui-kit/Button/Button.d.ts +1 -0
- package/mobile/dist/ui-kit/Button/Button.js +2 -2
- package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js +2 -2
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/CheckboxProps.d.ts +1 -0
- package/mobile/dist/ui-kit/DatePicker/DatePicker.d.ts +1 -0
- package/mobile/dist/ui-kit/DatePicker/DatePicker.js +2 -1
- package/mobile/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
- package/mobile/dist/ui-kit/DatePicker/DatePickerInput.d.ts +1 -0
- package/mobile/dist/ui-kit/DatePicker/DatePickerInput.js +2 -2
- package/mobile/dist/ui-kit/DatePicker/DatePickerInput.js.map +1 -1
- package/mobile/dist/ui-kit/DatePicker/renderDatePickerForm.d.ts +2 -1
- package/mobile/dist/ui-kit/DatePicker/renderDatePickerForm.js +1 -1
- package/mobile/dist/ui-kit/DatePicker/renderDatePickerForm.js.map +1 -1
- package/mobile/dist/ui-kit/Input/Input.js +1 -1
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js.map +1 -1
- package/mobile/lib/api/LeadServiceAPI.d.ts +2 -1
- package/mobile/lib/api/LeadServiceAPI.js +3 -3
- package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/constants.js +5 -1
- package/mobile/lib/components/ApplicationForm/constants.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js +1 -1
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
- package/mobile/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/mobile/lib/retail/components/DaDataInputControl/DaDataInputControl.js +1 -1
- package/mobile/lib/retail/components/DaDataInputControl/DaDataInputControl.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftActionButton.d.ts +1 -0
- package/mobile/lib/retail/components/DraftDialog/DraftActionButton.js +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/lib/retail/components/Fields/ConsentField.js +1 -1
- package/mobile/lib/retail/components/Fields/ConsentField.js.map +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/InputCode.js +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/SubmitButton.js +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
- package/mobile/lib/ui-kit/Button/Button.d.ts +1 -0
- package/mobile/lib/ui-kit/Button/Button.js +2 -2
- package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js +2 -2
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/CheckboxProps.d.ts +1 -0
- package/mobile/lib/ui-kit/DatePicker/DatePicker.d.ts +1 -0
- package/mobile/lib/ui-kit/DatePicker/DatePicker.js +2 -1
- package/mobile/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
- package/mobile/lib/ui-kit/DatePicker/DatePickerInput.d.ts +1 -0
- package/mobile/lib/ui-kit/DatePicker/DatePickerInput.js +2 -2
- package/mobile/lib/ui-kit/DatePicker/DatePickerInput.js.map +1 -1
- package/mobile/lib/ui-kit/DatePicker/renderDatePickerForm.d.ts +2 -1
- package/mobile/lib/ui-kit/DatePicker/renderDatePickerForm.js +1 -1
- package/mobile/lib/ui-kit/DatePicker/renderDatePickerForm.js.map +1 -1
- package/mobile/lib/ui-kit/Input/Input.js +1 -1
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js.map +1 -1
- package/mobile/src/api/LeadServiceAPI.ts +4 -2
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +1 -0
- package/mobile/src/components/ApplicationForm/constants.ts +5 -1
- package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +1 -0
- package/mobile/src/components/ApplicationLeadForm/renderSubmitButton.tsx +1 -1
- package/mobile/src/components/CreditForm/StepsNavigationButtons.tsx +7 -2
- package/mobile/src/retail/components/ConsentBkiDialog/ConsentBkiDialog.tsx +6 -1
- package/mobile/src/retail/components/DaDataInputControl/DaDataInputControl.tsx +1 -0
- package/mobile/src/retail/components/DraftDialog/DraftActionButton.tsx +3 -1
- package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +2 -0
- package/mobile/src/retail/components/Fields/ConsentField.tsx +1 -0
- package/mobile/src/retail/components/VerifyPhoneDialog/InputCode.tsx +1 -0
- package/mobile/src/retail/components/VerifyPhoneDialog/SubmitButton.tsx +1 -1
- package/mobile/src/ui-kit/Button/Button.tsx +3 -0
- package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +2 -1
- package/mobile/src/ui-kit/Checkbox/CheckboxProps.ts +1 -0
- package/mobile/src/ui-kit/DatePicker/DatePicker.tsx +3 -0
- package/mobile/src/ui-kit/DatePicker/DatePickerInput.tsx +3 -1
- package/mobile/src/ui-kit/DatePicker/renderDatePickerForm.tsx +3 -0
- package/mobile/src/ui-kit/Input/Input.tsx +1 -0
- package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +1 -0
- package/mobile/src/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.tsx +1 -1
- package/package.json +1 -1
- package/src/api/LeadServiceAPI.ts +4 -2
- package/src/components/ApplicationForm/ApplicationFormContent.ts +1 -0
- package/src/components/ApplicationForm/constants.ts +5 -1
- package/src/components/ApplicationLeadForm/GroupedConsents.tsx +1 -0
- package/src/components/ApplicationLeadForm/renderSubmitButton.tsx +1 -1
- package/src/components/CreditForm/StepsNavigationButtons.tsx +7 -2
- package/src/retail/components/ConsentBkiDialog/ConsentBkiDialog.tsx +6 -1
- package/src/retail/components/DaDataInputControl/DaDataInputControl.tsx +1 -0
- package/src/retail/components/DraftDialog/DraftActionButton.tsx +3 -1
- package/src/retail/components/DraftDialog/DraftDialog.tsx +2 -0
- package/src/retail/components/Fields/ConsentField.tsx +1 -0
- package/src/retail/components/VerifyPhoneDialog/InputCode.tsx +1 -0
- package/src/retail/components/VerifyPhoneDialog/SubmitButton.tsx +1 -1
- package/src/ui-kit/Button/Button.tsx +3 -0
- package/src/ui-kit/Checkbox/Checkbox.tsx +2 -1
- package/src/ui-kit/Checkbox/CheckboxProps.ts +1 -0
- package/src/ui-kit/DatePicker/DatePicker.tsx +3 -0
- package/src/ui-kit/DatePicker/DatePickerInput.tsx +3 -1
- package/src/ui-kit/DatePicker/renderDatePickerForm.tsx +3 -0
- package/src/ui-kit/Input/Input.tsx +1 -0
- package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +1 -0
- package/src/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.tsx +1 -1
|
@@ -17,7 +17,7 @@ const CHECK_PATHS = [
|
|
|
17
17
|
];
|
|
18
18
|
|
|
19
19
|
export const Checkbox = JSX<CheckboxProps>(
|
|
20
|
-
({ className, value, text, disabled, isRadio, onChange }) => {
|
|
20
|
+
({ className, value, text, disabled, isRadio, onChange, name }) => {
|
|
21
21
|
const handleChange = useCallback(
|
|
22
22
|
(e: PreventableEvent) => {
|
|
23
23
|
if (disabled) {
|
|
@@ -47,6 +47,7 @@ export const Checkbox = JSX<CheckboxProps>(
|
|
|
47
47
|
<div className={className}>
|
|
48
48
|
<label
|
|
49
49
|
className={style('flex items-center relative group/box', getCursorStyle(disabled))}
|
|
50
|
+
data-test-id={name}
|
|
50
51
|
onClick={handleChange}
|
|
51
52
|
>
|
|
52
53
|
<div
|
|
@@ -35,6 +35,7 @@ interface DatePickerProps extends ControlProps<Date>, ComponentType, LabelProps,
|
|
|
35
35
|
maxDate?: Date;
|
|
36
36
|
valid?: boolean;
|
|
37
37
|
weekends?: number[];
|
|
38
|
+
name?: string;
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
export const DatePicker = JSX<DatePickerProps>(
|
|
@@ -49,6 +50,7 @@ export const DatePicker = JSX<DatePickerProps>(
|
|
|
49
50
|
disabled,
|
|
50
51
|
weekends,
|
|
51
52
|
onChange,
|
|
53
|
+
name,
|
|
52
54
|
}) => {
|
|
53
55
|
const [isCalendarVisible, { setValue, setFalse: hideCalendar }] = useBool(false);
|
|
54
56
|
const [selectedMonth, setSelectedMonth] = useState(value?.getMonth() || new Date().getMonth());
|
|
@@ -98,6 +100,7 @@ export const DatePicker = JSX<DatePickerProps>(
|
|
|
98
100
|
disabled,
|
|
99
101
|
setSelectedMonth,
|
|
100
102
|
setSelectedYear,
|
|
103
|
+
name,
|
|
101
104
|
})}
|
|
102
105
|
{isCalendarVisible && !disabled ? (
|
|
103
106
|
<div
|
|
@@ -22,6 +22,7 @@ interface DatePickerInputProps extends ComponentType, DisabledProps, OnClickProp
|
|
|
22
22
|
setSelectedYear: (selectedYear: number) => void;
|
|
23
23
|
value?: string;
|
|
24
24
|
onChange?: (value: Date) => void;
|
|
25
|
+
name?: string;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
interface UpdateSelectedDateProps {
|
|
@@ -32,7 +33,7 @@ interface UpdateSelectedDateProps {
|
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
export const DatePickerInput = JSX<DatePickerInputProps>(
|
|
35
|
-
({ setSelectedMonth, setSelectedYear, className, value, disabled, onChange, onClick }) => {
|
|
36
|
+
({ setSelectedMonth, setSelectedYear, className, value, disabled, onChange, onClick, name }) => {
|
|
36
37
|
const ref = useRef<HTMLInputElement | null>(null);
|
|
37
38
|
const [inputValue, setInputValue] = useState<string>(value || '');
|
|
38
39
|
|
|
@@ -76,6 +77,7 @@ export const DatePickerInput = JSX<DatePickerInputProps>(
|
|
|
76
77
|
onChange={handleChange}
|
|
77
78
|
onBlur={onBlur}
|
|
78
79
|
disabled={disabled}
|
|
80
|
+
data-test-id={name}
|
|
79
81
|
/>
|
|
80
82
|
{disabled ? null : <Icon className="mr-s" {...ICON_PROPS} />}
|
|
81
83
|
</div>
|
|
@@ -16,12 +16,14 @@ export const renderDatePickerForm = ({
|
|
|
16
16
|
setSelectedMonth,
|
|
17
17
|
setSelectedYear,
|
|
18
18
|
disabled = false,
|
|
19
|
+
name,
|
|
19
20
|
}: DisabledProps &
|
|
20
21
|
ControlProps<Date> & {
|
|
21
22
|
handleChangeVisibleCalendar: () => void;
|
|
22
23
|
valid: boolean;
|
|
23
24
|
setSelectedMonth: (selectedMonth: number) => void;
|
|
24
25
|
setSelectedYear: (selectedYear: number) => void;
|
|
26
|
+
name?: string;
|
|
25
27
|
}) => (
|
|
26
28
|
<DatePickerInput
|
|
27
29
|
onChange={onChange}
|
|
@@ -31,5 +33,6 @@ export const renderDatePickerForm = ({
|
|
|
31
33
|
setSelectedMonth={setSelectedMonth}
|
|
32
34
|
setSelectedYear={setSelectedYear}
|
|
33
35
|
className={style(formStyle, valid ? 'border-gray' : 'border-error')}
|
|
36
|
+
name={name}
|
|
34
37
|
></DatePickerInput>
|
|
35
38
|
);
|
|
@@ -74,7 +74,7 @@ const renderText = (timeNextReq: number, handleSendCode: () => void) =>
|
|
|
74
74
|
<Timer seconds={timeNextReq} />
|
|
75
75
|
</div>
|
|
76
76
|
) : (
|
|
77
|
-
<Button embedded onClick={handleSendCode}>
|
|
77
|
+
<Button embedded onClick={handleSendCode} testId="send-new-code-button">
|
|
78
78
|
<ButtonTitle>Получить новый код</ButtonTitle>
|
|
79
79
|
</Button>
|
|
80
80
|
);
|