@redneckz/wildless-cms-uni-blocks 0.14.1001 → 0.14.1003
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/bundle.umd.js +25 -24
- package/bundle/bundle.umd.min.js +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/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/components/RkoTariffCardsTable/RkoTariffCardsTable.js +1 -1
- package/dist/components/RkoTariffCardsTable/RkoTariffCardsTable.js.map +1 -1
- package/dist/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js +1 -1
- package/dist/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.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/common.css +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/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
- package/lib/components/RkoTariffCardsTable/RkoTariffCardsTable.js +1 -1
- package/lib/components/RkoTariffCardsTable/RkoTariffCardsTable.js.map +1 -1
- package/lib/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js +1 -1
- package/lib/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.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/bundle.umd.js +25 -24
- package/mobile/bundle/bundle.umd.min.js +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/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/components/RkoTariffCardsTable/RkoTariffCardsTable.js +1 -1
- package/mobile/dist/components/RkoTariffCardsTable/RkoTariffCardsTable.js.map +1 -1
- package/mobile/dist/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js +1 -1
- package/mobile/dist/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.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/common.css +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/components/RkoTariffCardsTable/RkoTariffCardsTable.js +1 -1
- package/mobile/lib/components/RkoTariffCardsTable/RkoTariffCardsTable.js.map +1 -1
- package/mobile/lib/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.js +1 -1
- package/mobile/lib/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.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/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/components/RkoTariffCardsTable/RkoTariffCardsTable.tsx +1 -1
- package/mobile/src/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.tsx +2 -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/components/ApplicationLeadForm/GroupedConsents.tsx +1 -0
- package/src/components/ApplicationLeadForm/renderSubmitButton.tsx +1 -1
- package/src/components/CreditForm/StepsNavigationButtons.tsx +7 -2
- package/src/components/RkoTariffCardsTable/RkoTariffCardsTable.tsx +1 -1
- package/src/components/RkoTariffCardsTable/renderRkoTariffsTableHeader.tsx +2 -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
|
@@ -10,14 +10,16 @@ export type DraftActionButtonProps = TitleProps &
|
|
|
10
10
|
DescriptionProps &
|
|
11
11
|
OnClickProps & {
|
|
12
12
|
icon: IconName;
|
|
13
|
+
name?: string;
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
export const DraftActionButton = JSX<DraftActionButtonProps>(
|
|
16
|
-
({ title, icon, description, onClick = noop }) => (
|
|
17
|
+
({ title, icon, description, name, onClick = noop }) => (
|
|
17
18
|
<button
|
|
18
19
|
className="flex gap-lg items-center border border-gray/30 rounded-xl cursor-pointer p-4 hover:border-green"
|
|
19
20
|
type="button"
|
|
20
21
|
onClick={onClick}
|
|
22
|
+
data-test-id={name}
|
|
21
23
|
>
|
|
22
24
|
<Img image={{ icon, iconVersion: 'normal' }} width="78" height="78" />
|
|
23
25
|
<div className="flex flex-col items-start gap-xs md:w-72 md:mr-lg">
|
|
@@ -70,12 +70,14 @@ export const DraftDialog = JSX<DraftDialogProps>(function ({
|
|
|
70
70
|
icon="BankColorIcon"
|
|
71
71
|
description={createdDate ? `Черновик от ${formatDate(new Date(createdDate))}` : ''}
|
|
72
72
|
onClick={handleGoToDraft}
|
|
73
|
+
name="go-to-draft-button"
|
|
73
74
|
/>
|
|
74
75
|
<DraftActionButton
|
|
75
76
|
title={isFromLead ? 'Продолжить заполнение текущей заявки' : 'Создать новую заявку'}
|
|
76
77
|
icon="NewLoanIcon"
|
|
77
78
|
description={productData.description}
|
|
78
79
|
onClick={isFromLead ? onClose : handleGoToNewTask}
|
|
80
|
+
name="go-to-current-task-button"
|
|
79
81
|
/>
|
|
80
82
|
</div>
|
|
81
83
|
</div>
|
|
@@ -72,6 +72,7 @@ export const InputCode = JSX<InputCodeProps>(({ values, setValues, hasError, err
|
|
|
72
72
|
onFocus={(event) => event.target.select()}
|
|
73
73
|
onKeyDown={handleKeyDown(index)}
|
|
74
74
|
className={getInputStyle(index, values, hasError)}
|
|
75
|
+
data-test-id={`sms-code-${index}`}
|
|
75
76
|
/>
|
|
76
77
|
))}
|
|
77
78
|
</div>
|
|
@@ -8,7 +8,7 @@ import { Text } from '../../../ui-kit/Text/Text';
|
|
|
8
8
|
interface SubmitButtonProps extends DisabledProps, TextProps, OnClickProps {}
|
|
9
9
|
|
|
10
10
|
export const SubmitButton = JSX<SubmitButtonProps>(({ disabled = false, onClick, text }) => (
|
|
11
|
-
<Button type="button" onClick={onClick} disabled={disabled}>
|
|
11
|
+
<Button type="button" onClick={onClick} disabled={disabled} testId="sms-code-submit-button">
|
|
12
12
|
<Text font="font-normal">{text}</Text>
|
|
13
13
|
</Button>
|
|
14
14
|
));
|
|
@@ -48,6 +48,7 @@ export interface ButtonProps
|
|
|
48
48
|
data?: AspectsDef[];
|
|
49
49
|
dataTheme?: ColorPalette;
|
|
50
50
|
wcmsIgnore?: boolean;
|
|
51
|
+
testId?: string;
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
export const Button = JSX<ButtonProps>(
|
|
@@ -65,6 +66,7 @@ export const Button = JSX<ButtonProps>(
|
|
|
65
66
|
children,
|
|
66
67
|
wcmsIgnore,
|
|
67
68
|
onClick = noop,
|
|
69
|
+
testId,
|
|
68
70
|
}) => {
|
|
69
71
|
const handleClick = useCallback(role !== 'tab' ? handlerDecorator(onClick) : onClick, [
|
|
70
72
|
role,
|
|
@@ -101,6 +103,7 @@ export const Button = JSX<ButtonProps>(
|
|
|
101
103
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
102
104
|
{...aspectsAttrs}
|
|
103
105
|
onClick={handleClick}
|
|
106
|
+
data-test-id={testId}
|
|
104
107
|
>
|
|
105
108
|
{children}
|
|
106
109
|
</button>
|
|
@@ -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
|
);
|