@tap-payments/os-micro-frontend-shared 0.1.261-test.1 → 0.1.261-test.3
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/build/components/Customer/CustomerForms/FullInfo.js +1 -1
- package/build/components/Customer/CustomerForms/FullInfoForm.js +1 -1
- package/build/components/Customer/CustomerForms/PhoneNumberForm.js +1 -1
- package/build/components/Customer/index.d.ts +0 -1
- package/build/components/Customer/index.js +0 -1
- package/build/components/Inputs/CountriesDropDown/CountriesDropdown.d.ts +3 -2
- package/package.json +2 -2
|
@@ -18,7 +18,7 @@ import { useTranslation } from 'react-i18next';
|
|
|
18
18
|
import { MobileWrapper, FormWrapper, InputStyled, InputNumberStyled, ErrorStyled } from './style';
|
|
19
19
|
import { validationFullInfoSchema } from './validation';
|
|
20
20
|
import CountriesDropdown from '../../Inputs/CountriesDropDown';
|
|
21
|
-
function FullInfo({ customer, country, defaultCountry, countries, isCountriesLoading
|
|
21
|
+
function FullInfo({ customer, country, defaultCountry, countries, isCountriesLoading, onCustomerChange, onCountryChange, isCustomerNotValid, }) {
|
|
22
22
|
const firstNameRef = useRef();
|
|
23
23
|
const lastNameRef = useRef();
|
|
24
24
|
const emailRef = useRef();
|
|
@@ -19,7 +19,7 @@ import { InputNumberStyled, MobileWrapper } from '../../index.js';
|
|
|
19
19
|
import { FormWrapper, SubmitButton, InputStyled, ErrorStyled } from './style';
|
|
20
20
|
import { validationFullInfoSchema } from './validation';
|
|
21
21
|
import CountriesDropdown from '../../Inputs/CountriesDropDown';
|
|
22
|
-
function FullInfoForm({ submitButtonText, onSubmit, customer, country, items, isItemsNotValid, defaultCountry, countries, isCountriesLoading
|
|
22
|
+
function FullInfoForm({ submitButtonText, onSubmit, customer, country, items, isItemsNotValid, defaultCountry, countries, isCountriesLoading, onCustomerChange, onCountryChange, }) {
|
|
23
23
|
const firstNameRef = useRef();
|
|
24
24
|
const lastNameRef = useRef();
|
|
25
25
|
const emailRef = useRef();
|
|
@@ -18,7 +18,7 @@ import { useTranslation } from 'react-i18next';
|
|
|
18
18
|
import { CountriesDropdown, InputNumberStyled, MobileWrapper } from '../../index.js';
|
|
19
19
|
import { FormWrapper, SubmitButton, InputStyled, ErrorStyled } from './style';
|
|
20
20
|
import { validationPhoneNumberSchema } from './validation';
|
|
21
|
-
function PhoneNumberForm({ submitButtonText, onSubmit, customer, country, isItemsNotValid, items, defaultCountry, countries, isCountriesLoading
|
|
21
|
+
function PhoneNumberForm({ submitButtonText, onSubmit, customer, country, isItemsNotValid, items, defaultCountry, countries, isCountriesLoading, onCustomerChange, onCountryChange, }) {
|
|
22
22
|
const firstNameRef = useRef();
|
|
23
23
|
const lastNameRef = useRef();
|
|
24
24
|
const phoneNumberRef = useRef();
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { Country } from '../../../types/index.js';
|
|
3
|
-
|
|
3
|
+
type CountriesDropdownProps = {
|
|
4
4
|
value?: Partial<Country>;
|
|
5
5
|
defaultCountry?: string;
|
|
6
6
|
onChangeCountry?: (country: Country) => void;
|
|
7
7
|
required?: boolean;
|
|
8
8
|
countries: Country[];
|
|
9
9
|
isLoading: boolean;
|
|
10
|
-
}
|
|
10
|
+
};
|
|
11
|
+
declare function CountriesDropdown({ defaultCountry, value: selectedCountry, onChangeCountry, required, countries, isLoading, }: Readonly<CountriesDropdownProps>): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
declare const _default: import("react").MemoExoticComponent<typeof CountriesDropdown>;
|
|
12
13
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tap-payments/os-micro-frontend-shared",
|
|
3
3
|
"description": "Shared components and utilities for Tap Payments micro frontends",
|
|
4
|
-
"version": "0.1.261-test.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.261-test.3",
|
|
5
|
+
"testVersion": 3,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|