@propellerads/kyc-form 3.7.0 → 4.1.0

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/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # KycForm
2
+
2
3
  `KycForm`.
3
4
 
4
5
  ![size](https://img.shields.io/bundlephobia/min/@propellerads/kyc-form.svg)
@@ -8,11 +9,14 @@
8
9
  [Github](https://github.com/propellerads/ui-components/tree/master/Components/KycForm)
9
10
 
10
11
  ## Installation
11
- * `yarn add @propellerads/kyc-form` or `npm install @propellerads/kyc-form -S`
12
+
13
+ - `yarn add @propellerads/kyc-form` or `npm install @propellerads/kyc-form -S`
12
14
 
13
15
  ### How to use
14
- * `import KycForm from '@propellerads/kyc-form';`
15
- * And render
16
+
17
+ - `import KycForm from '@propellerads/kyc-form';`
18
+ - And render
19
+
16
20
  ```
17
21
  <KycForm
18
22
  elementId="kyc-form-component"
@@ -39,4 +43,4 @@
39
43
  }]}
40
44
  onUploadClick={console.log}
41
45
  />
42
- ```
46
+ ```
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import { KYCFormItemFileExtraPartProps, KYCFormItemFileProps, KYCFormItemTextProps } from './types';
2
3
  declare const _default: {
3
- KYCFormItemFileExtraPart: (props: KYCFormItemFileExtraPartProps) => JSX.Element;
4
- KYCFormItemFile: (props: KYCFormItemFileProps) => JSX.Element;
5
- KYCFormItemText: (props: KYCFormItemTextProps) => JSX.Element;
4
+ KYCFormItemFileExtraPart: (props: KYCFormItemFileExtraPartProps) => React.JSX.Element;
5
+ KYCFormItemFile: (props: KYCFormItemFileProps) => React.JSX.Element;
6
+ KYCFormItemText: (props: KYCFormItemTextProps) => React.JSX.Element;
6
7
  };
7
8
  export default _default;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { KYCErrorLabelProps } from './types';
2
- declare const KYCErrorLabel: (props: KYCErrorLabelProps) => JSX.Element;
3
+ declare const KYCErrorLabel: (props: KYCErrorLabelProps) => React.JSX.Element;
3
4
  export default KYCErrorLabel;
@@ -1,4 +1,4 @@
1
1
  declare const StyledKYCErrorLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
2
2
  declare const StyledKYCErrorLabelIcon: import("styled-components").StyledComponent<"span", any, {}, never>;
3
3
  declare const StyledKYCErrorLabelText: import("styled-components").StyledComponent<"span", any, {}, never>;
4
- export { StyledKYCErrorLabel, StyledKYCErrorLabelIcon, StyledKYCErrorLabelText, };
4
+ export { StyledKYCErrorLabel, StyledKYCErrorLabelIcon, StyledKYCErrorLabelText };
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { KYCFormItemProps } from './types';
2
- declare const KYCFormItem: (props: KYCFormItemProps) => JSX.Element;
3
+ declare const KYCFormItem: (props: KYCFormItemProps) => React.JSX.Element;
3
4
  export default KYCFormItem;
@@ -1,4 +1,4 @@
1
1
  declare const StyledKYCFormItem: import("styled-components").StyledComponent<"div", any, {}, never>;
2
2
  declare const StyledKYCFormItemTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
3
3
  declare const StyledKYCFormItemDescription: import("styled-components").StyledComponent<"div", any, {}, never>;
4
- export { StyledKYCFormItem, StyledKYCFormItemTitle, StyledKYCFormItemDescription, };
4
+ export { StyledKYCFormItem, StyledKYCFormItemTitle, StyledKYCFormItemDescription };
@@ -1,9 +1,10 @@
1
+ import React from 'react';
1
2
  import { KYCSucessScreenProps, KYCFailScreenProps } from './types';
2
3
  import { MAX_FILE_SIZE, MAX_EXTRA_PARTS_COUNT, ACCEPT_FORMATS, PDF_MIME_TYPE, AVAILABLE_EXTRA_PARTS_DOCUMENTS } from '../constants';
3
4
  import { DOCUMENT_TYPES, PART_TYPES } from '../document.types';
4
5
  declare const _default: {
5
- KYCSucessScreen: (props: KYCSucessScreenProps) => JSX.Element;
6
- KYCFailScreen: (props: KYCFailScreenProps) => JSX.Element;
6
+ KYCSucessScreen: (props: KYCSucessScreenProps) => React.JSX.Element;
7
+ KYCFailScreen: (props: KYCFailScreenProps) => React.JSX.Element;
7
8
  };
8
9
  export default _default;
9
10
  export { MAX_FILE_SIZE, MAX_EXTRA_PARTS_COUNT, ACCEPT_FORMATS, DOCUMENT_TYPES, PART_TYPES, PDF_MIME_TYPE, AVAILABLE_EXTRA_PARTS_DOCUMENTS, };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,11 @@
1
+ import React from 'react';
1
2
  import { MAX_FILE_SIZE, MAX_EXTRA_PARTS_COUNT, ACCEPT_FORMATS, PDF_MIME_TYPE, OPTIONAL_DOCUMENT_PARTS, AVAILABLE_EXTRA_PARTS_DOCUMENTS } from './constants';
2
3
  import { DOCUMENT_TYPES, PART_TYPES } from './document.types';
3
4
  import { KYCFormProps } from './types';
4
5
  declare const KYCForm: {
5
- (props: KYCFormProps): JSX.Element;
6
- SucessScreen: (props: import("./KYCStatusScreen/types").KYCSucessScreenProps) => JSX.Element;
7
- FailScreen: (props: import("./KYCStatusScreen/types").KYCFailScreenProps) => JSX.Element;
6
+ (props: KYCFormProps): React.JSX.Element;
7
+ SucessScreen: (props: import("./KYCStatusScreen/types").KYCSucessScreenProps) => React.JSX.Element;
8
+ FailScreen: (props: import("./KYCStatusScreen/types").KYCFailScreenProps) => React.JSX.Element;
8
9
  };
9
10
  export default KYCForm;
10
11
  export { MAX_FILE_SIZE, MAX_EXTRA_PARTS_COUNT, ACCEPT_FORMATS, DOCUMENT_TYPES, PART_TYPES, PDF_MIME_TYPE, OPTIONAL_DOCUMENT_PARTS, AVAILABLE_EXTRA_PARTS_DOCUMENTS, };
package/dist/style.d.ts CHANGED
@@ -2,4 +2,4 @@ declare const StyledKYCForm: import("styled-components").StyledComponent<"div",
2
2
  declare const StyledKYCFormTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
3
3
  declare const StyledKYCFormDocuments: import("styled-components").StyledComponent<"div", any, {}, never>;
4
4
  declare const StyledKYCFormButton: import("styled-components").StyledComponent<"div", any, {}, never>;
5
- export { StyledKYCForm, StyledKYCFormTitle, StyledKYCFormDocuments, StyledKYCFormButton, };
5
+ export { StyledKYCForm, StyledKYCFormTitle, StyledKYCFormDocuments, StyledKYCFormButton };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@propellerads/kyc-form",
3
- "version": "3.7.0",
3
+ "version": "4.1.0",
4
4
  "module": "dist/kyc-form.esm.js",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -21,25 +21,22 @@
21
21
  "build": "tsdx build"
22
22
  },
23
23
  "peerDependencies": {
24
- "@types/react": "^17.0.2",
25
- "@types/react-dom": "^17.0.2",
26
- "@types/styled-components": "5.1.1",
27
- "react": "^17.0.2",
28
- "react-dom": "^17.0.2",
24
+ "react": ">=18 <19",
29
25
  "styled-components": "5.1.1"
30
26
  },
31
27
  "dependencies": {
32
- "@propellerads/button": "^6.2.0",
33
- "@propellerads/icon": "^5.11.0",
34
- "@propellerads/image-uploader": "^1.1.1",
28
+ "@propellerads/button": "^6.4.0",
29
+ "@propellerads/icon": "^6.0.1",
30
+ "@propellerads/image-uploader": "^2.0.0",
35
31
  "@propellerads/stylevariables": "^1.3.1",
36
- "@propellerads/success-label": "^2.1.1",
37
- "@propellerads/textarea": "3.1.0"
32
+ "@propellerads/success-label": "^3.0.0",
33
+ "@propellerads/textarea": "^4.0.0"
38
34
  },
39
35
  "devDependencies": {
40
36
  "tsdx": "^0.14.1",
41
37
  "tslib": "^2.3.1",
42
- "typescript": "^4.4.2"
43
- },
44
- "gitHead": "ca473fc06ef068abd0cc49d1911c3f3c4d094442"
38
+ "typescript": "^4.9.5",
39
+ "@types/react": ">=18 <19",
40
+ "@types/styled-components": "5.1.34"
41
+ }
45
42
  }
package/CHANGELOG.md DELETED
@@ -1,55 +0,0 @@
1
- #### `3.7.0`
2
-
3
- * Correct rendering uploaded wide images
4
-
5
- #### `3.6.0`
6
-
7
- * `PAYMENT_SYSTEM_SCREEN` now has optional extra part
8
- * `ID_EXTRA` doesn't have optional extra part anymore
9
-
10
- #### `3.5.0`
11
-
12
- * Improved file deleting logic
13
-
14
- #### `3.4.0`
15
-
16
- * Most of the fields now support format: 1 required file and two optional
17
- * Maximum files for multipart fields now is 3
18
-
19
- #### `3.3.0`
20
-
21
- * Doc with type "other" now supports extra parts
22
-
23
- #### `3.2.0`
24
-
25
- * added new document types
26
- * bumped dependencies
27
-
28
- #### `3.1.0`
29
-
30
- * updated peerDependencies
31
-
32
- #### `3.0.0`
33
-
34
- * Marked react, react-dom and styled-components (and @types) as peerDependencies
35
- * Upgraded @propellerads/textarea to 3.0.0
36
-
37
- #### `2.1.0`
38
-
39
- * User can write feedback in textarea as well
40
-
41
- #### `2.0.0`
42
-
43
- * edit dependencies, add build
44
-
45
- #### `1.0.3`
46
-
47
- * Add `validator` prop
48
-
49
- #### `1.0.2`
50
-
51
- * KYCForm fixes
52
-
53
- #### `1.0.1`
54
-
55
- * Add KYCForm