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.
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import './style.scss';
3
- import { PhoneNumberProps } from './type';
3
+ import { PhoneNumberProps } from '../../types';
4
4
  declare const PhoneNumber: React.FC<PhoneNumberProps>;
5
5
  export default PhoneNumber;
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "digitinary-ui",
3
- "version": "1.0.270",
3
+ "version": "1.0.271",
4
4
  "description": "Digitinary UI Library",
5
5
  "author": "Digitinary Company",
6
6
  "repository": {
@@ -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
- }