gbc-kyc-kit 1.1.9 → 1.2.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,6 +1,9 @@
1
1
  ## KYC Kit
2
2
 
3
- Components to make a complete secure onboarding
3
+ Components to make a complete secure onboarding.
4
+ Global Bridge Connections KYC Kit can read more than 100 countries documents.
5
+ Ask for your Client ID writing to servicios@globalbridgeconnections.com.py
6
+ How work it? You can see our documentation https://global-bridge-connections-paragu.gitbook.io/dashboard-kyc/
4
7
 
5
8
  ## Library installation
6
9
 
@@ -23,50 +26,23 @@ You could customize all styles of components, just need make reference to the la
23
26
  **Important**
24
27
  Remember that you can use mode prop to turn between dark or light mode without change styles.
25
28
 
26
- ### CSS
29
+ ### CSS/SASS/SCSS
27
30
 
28
31
  ```css
29
32
  /* Rest of code */
30
- body .kit-gbc {
31
- background-color: #202124;
32
- }
33
-
34
- body .kit-gbc h4 {
35
- color: white;
36
- }
37
- /* To change color of Liveness Check Component */
38
- .liveness {
39
- position: inherit;
40
- --font-family: Arial, sans-serif;
41
- --main-color: #060633;
42
- --second-color: #cdcdda;
43
- --third-color: #8787f3;
44
- --hover-color: #060633;
45
- --active-color: #060633;
46
- }
47
- ```
48
-
49
- ### SASS/SCSS
50
-
51
- ```css
52
- body {
53
- /* Rest of code */
54
- .kit-gbc {
55
- background-color: #202124;
56
- h4 {
57
- color: white;
58
- }
59
- /* To change color of Liveness Check Component */
60
- .liveness {
61
- position: inherit;
62
- --font-family: Arial, sans-serif;
63
- --main-color: #060633;
64
- --second-color: #cdcdda;
65
- --third-color: #8787f3;
66
- --hover-color: #060633;
67
- --active-color: #060633;
68
- }
69
- }
33
+ :root {
34
+ --primary: #1976d2;
35
+ --primary-hov: #2689ed;
36
+ --secondary: #e8edff;
37
+ --button-color: #1976d2;
38
+ --text-button-color: #fff;
39
+ --secondary: #e8edff;
40
+ --warning: #f8bb86;
41
+ --success: #4caf50;
42
+ --error: #ff1199;
43
+ --text-color: #8c8c8c;
44
+ --title-color: #262626;
45
+ --font-family: "Noto Sans", sans-serif;
70
46
  }
71
47
  ```
72
48
 
@@ -18935,7 +18935,7 @@ function CustomButton({
18935
18935
  href
18936
18936
  }) {
18937
18937
  return /* @__PURE__ */ jsx("div", {
18938
- className: "button-container mt-2",
18938
+ className: `button-container mt-2`,
18939
18939
  children: /* @__PURE__ */ jsx("button", {
18940
18940
  type,
18941
18941
  name,
@@ -20144,14 +20144,14 @@ function StatusComponent({
20144
20144
  }) : null, !lib$1(lists) && /* @__PURE__ */ jsx(ListsAccordion, {
20145
20145
  lists,
20146
20146
  handleReport
20147
+ }), /* @__PURE__ */ jsx(CustomButton, {
20148
+ className: "my-2 col-6 warning-button",
20149
+ onClick: () => clearState(),
20150
+ children: "Verificar nuevamente"
20147
20151
  }), complementarySearch && /* @__PURE__ */ jsx(CustomButton, {
20148
20152
  className: "my-2 col-6",
20149
20153
  onClick: complementarySearch,
20150
20154
  children: "Ampliar criterios de consulta"
20151
- }), /* @__PURE__ */ jsx(CustomButton, {
20152
- className: "my-2 col-6",
20153
- onClick: () => clearState(),
20154
- children: "Verificar nuevamente"
20155
20155
  })]
20156
20156
  })
20157
20157
  });
@@ -20393,17 +20393,13 @@ function UploadDocument({
20393
20393
  message,
20394
20394
  pic
20395
20395
  }) {
20396
- return /* @__PURE__ */ jsxs("div", {
20397
- children: [/* @__PURE__ */ jsxs("div", {
20396
+ return /* @__PURE__ */ jsx("div", {
20397
+ children: /* @__PURE__ */ jsxs("div", {
20398
20398
  className: "first-animation",
20399
20399
  children: [/* @__PURE__ */ jsx(UploadIcon, {}), /* @__PURE__ */ jsx("p", {
20400
20400
  children: message
20401
20401
  })]
20402
- }), /* @__PURE__ */ jsx("img", {
20403
- src: pic,
20404
- width: 200,
20405
- className: "second-animation"
20406
- })]
20402
+ })
20407
20403
  });
20408
20404
  }
20409
20405
  function DocumentReader({
@@ -20441,22 +20437,28 @@ function DocumentReader({
20441
20437
  onSubmit: simpleHandleSubmit(onSendSubmitDocument),
20442
20438
  children: /* @__PURE__ */ jsxs("div", {
20443
20439
  className: "sub",
20444
- children: [/* @__PURE__ */ jsx("h4", {
20445
- children: "Lectura del documento"
20446
- }), !lib$1(status) ? /* @__PURE__ */ jsx(StatusComponent, {
20447
- status,
20448
- message,
20449
- clearState
20450
- }) : /* @__PURE__ */ jsxs(Fragment, {
20451
- children: [/* @__PURE__ */ jsx("p", {
20440
+ children: [/* @__PURE__ */ jsxs("div", {
20441
+ className: "header-component",
20442
+ children: [/* @__PURE__ */ jsx("h4", {
20443
+ children: "Lectura del documento"
20444
+ }), !lib$1(status) ? /* @__PURE__ */ jsx(StatusComponent, {
20445
+ status,
20446
+ message,
20447
+ clearState
20448
+ }) : /* @__PURE__ */ jsx("p", {
20452
20449
  children: "Utilice la c\xE1mara de su dispositivo para capturar una foto de su documento de identidad."
20453
- }), /* @__PURE__ */ jsxs("label", {
20454
- className: "upload-document",
20450
+ })]
20451
+ }), lib$1(status) && /* @__PURE__ */ jsxs("div", {
20452
+ className: `body-id-doc ${dual && docImage.firstImage && "ready"}`,
20453
+ children: [/* @__PURE__ */ jsxs("label", {
20454
+ className: "upload-document front",
20455
20455
  style: {
20456
- backgroundImage: `url(${base64 ? base64.firstImage : `../../../assets/img/front_doc.png`})`,
20457
20456
  display: "flex"
20458
20457
  },
20459
- children: [docImage.firstImage ? "" : /* @__PURE__ */ jsx(UploadDocument, {
20458
+ children: [docImage.firstImage ? /* @__PURE__ */ jsx("img", {
20459
+ src: base64.firstImage,
20460
+ alt: "front-document"
20461
+ }) : /* @__PURE__ */ jsx(UploadDocument, {
20460
20462
  message: "Carga frontal",
20461
20463
  pic: frontID
20462
20464
  }), /* @__PURE__ */ jsx("input", {
@@ -20469,14 +20471,16 @@ function DocumentReader({
20469
20471
  handleChangeDocument(e2);
20470
20472
  }
20471
20473
  })]
20472
- }), dual && /* @__PURE__ */ jsxs(Fragment, {
20473
- children: [/* @__PURE__ */ jsx("hr", {}), /* @__PURE__ */ jsxs("label", {
20474
- className: "upload-document",
20474
+ }), dual && /* @__PURE__ */ jsx(Fragment, {
20475
+ children: /* @__PURE__ */ jsxs("label", {
20476
+ className: "upload-document back",
20475
20477
  style: {
20476
- backgroundImage: `url(${base64.secondImage ? base64.secondImage : ""})`,
20477
20478
  display: "flex"
20478
20479
  },
20479
- children: [docImage.secondImage ? "" : /* @__PURE__ */ jsx(UploadDocument, {
20480
+ children: [docImage.secondImage ? /* @__PURE__ */ jsx("img", {
20481
+ src: base64.secondImage,
20482
+ alt: "rear-document"
20483
+ }) : /* @__PURE__ */ jsx(UploadDocument, {
20480
20484
  message: "Carga del Reverso",
20481
20485
  pic: rearID
20482
20486
  }), /* @__PURE__ */ jsx("input", {
@@ -20489,11 +20493,24 @@ function DocumentReader({
20489
20493
  handleChangeDocument(e2);
20490
20494
  }
20491
20495
  })]
20492
- })]
20496
+ })
20497
+ })]
20498
+ }), dual && base64.firstImage && lib$1(status) && (base64.secondImage ? /* @__PURE__ */ jsxs("div", {
20499
+ className: "both-button",
20500
+ children: [/* @__PURE__ */ jsx(CustomButton, {
20501
+ type: "warning",
20502
+ onClick: () => clearState(),
20503
+ children: "Volver"
20493
20504
  }), /* @__PURE__ */ jsx(CustomButton, {
20494
20505
  type: "submit",
20495
20506
  children: "Procesar"
20496
20507
  })]
20508
+ }) : /* @__PURE__ */ jsx(CustomButton, {
20509
+ onClick: () => clearState(),
20510
+ children: "Volver a cargar la foto frontal"
20511
+ })), !dual && !status && /* @__PURE__ */ jsx(CustomButton, {
20512
+ type: "submit",
20513
+ children: "Procesar"
20497
20514
  })]
20498
20515
  })
20499
20516
  })]