digitinary-ui 1.0.270 → 1.0.271
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/dist/types/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { Country } from 'react-phone-number-input';
|
|
2
3
|
export type RadioOption = {
|
|
3
4
|
value: string;
|
|
4
5
|
label: string;
|
|
@@ -227,3 +228,24 @@ export type ArenaLabelProps = {
|
|
|
227
228
|
label: string;
|
|
228
229
|
type: 'required' | 'optional';
|
|
229
230
|
};
|
|
231
|
+
export interface PhoneNumberProps {
|
|
232
|
+
value?: string;
|
|
233
|
+
onChange?: (value: string) => void;
|
|
234
|
+
label?: string;
|
|
235
|
+
placeholder?: string;
|
|
236
|
+
required?: boolean;
|
|
237
|
+
disabled?: boolean;
|
|
238
|
+
errorMsg?: string;
|
|
239
|
+
className?: string;
|
|
240
|
+
defaultCountry?: Country;
|
|
241
|
+
countries?: Country[];
|
|
242
|
+
excludedCountries?: Country[];
|
|
243
|
+
international?: boolean;
|
|
244
|
+
withCountryCallingCode?: boolean;
|
|
245
|
+
size?: 'small' | 'medium' | 'large';
|
|
246
|
+
rtl?: boolean;
|
|
247
|
+
validate?: (value: string) => boolean;
|
|
248
|
+
countrySelectProps?: React.SelectHTMLAttributes<HTMLSelectElement>;
|
|
249
|
+
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
250
|
+
showDefaultValidation?: boolean;
|
|
251
|
+
}
|
package/package.json
CHANGED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Country } from 'react-phone-number-input';
|
|
3
|
-
export interface PhoneNumberProps {
|
|
4
|
-
value?: string;
|
|
5
|
-
onChange?: (value: string) => void;
|
|
6
|
-
label?: string;
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
required?: boolean;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
errorMsg?: string;
|
|
11
|
-
className?: string;
|
|
12
|
-
defaultCountry?: Country;
|
|
13
|
-
countries?: Country[];
|
|
14
|
-
excludedCountries?: Country[];
|
|
15
|
-
international?: boolean;
|
|
16
|
-
withCountryCallingCode?: boolean;
|
|
17
|
-
size?: 'small' | 'medium' | 'large';
|
|
18
|
-
rtl?: boolean;
|
|
19
|
-
validate?: (value: string) => boolean;
|
|
20
|
-
countrySelectProps?: React.SelectHTMLAttributes<HTMLSelectElement>;
|
|
21
|
-
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
22
|
-
showDefaultValidation?: boolean;
|
|
23
|
-
}
|