gbc-kyc-kit 3.1.0 → 3.1.2

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.
@@ -18579,17 +18579,33 @@ function CustomButton({
18579
18579
  onClick,
18580
18580
  children,
18581
18581
  href,
18582
- className
18582
+ className,
18583
+ startIcon,
18584
+ size,
18585
+ variant
18583
18586
  }) {
18584
18587
  return /* @__PURE__ */ jsx$1("div", {
18585
18588
  className: `button-container m-0 ${className}`,
18586
- children: /* @__PURE__ */ jsx$1("button", {
18589
+ children: /* @__PURE__ */ jsxs("button", {
18587
18590
  type,
18588
18591
  name,
18589
18592
  id,
18590
18593
  onClick,
18591
- href,
18592
- children
18594
+ className: `${variant} ${size}`,
18595
+ style: {
18596
+ gap: "8px",
18597
+ display: "flex",
18598
+ alignItems: "center",
18599
+ justifyContent: "center"
18600
+ },
18601
+ children: [startIcon && /* @__PURE__ */ jsx$1("div", {
18602
+ className: "start-icon",
18603
+ style: {
18604
+ display: "flex",
18605
+ alignItems: "center"
18606
+ },
18607
+ children: startIcon
18608
+ }), children]
18593
18609
  })
18594
18610
  }, id);
18595
18611
  }
@@ -18597,7 +18613,10 @@ CustomButton.defautProps = {
18597
18613
  type: "button",
18598
18614
  name: "",
18599
18615
  id: "",
18600
- className: ""
18616
+ className: "",
18617
+ size: "medium",
18618
+ variant: "contained",
18619
+ startIcon: null
18601
18620
  };
18602
18621
  CustomButton.propTypes = {
18603
18622
  type: propTypes.exports.PropTypes.string,
@@ -18605,7 +18624,10 @@ CustomButton.propTypes = {
18605
18624
  id: propTypes.exports.PropTypes.string,
18606
18625
  href: propTypes.exports.PropTypes.string,
18607
18626
  children: propTypes.exports.PropTypes.node.isRequired,
18608
- className: propTypes.exports.PropTypes.string
18627
+ className: propTypes.exports.PropTypes.string,
18628
+ size: propTypes.exports.PropTypes.string,
18629
+ startIcon: propTypes.exports.PropTypes.node,
18630
+ variant: propTypes.exports.PropTypes.string
18609
18631
  };
18610
18632
  var __assign = function() {
18611
18633
  __assign = Object.assign || function __assign2(t2) {
@@ -44264,7 +44286,6 @@ const V2OcrComponent = ({
44264
44286
  error,
44265
44287
  videoRef,
44266
44288
  canvasRef,
44267
- canSwitchCamera: canSwitchCameraHook,
44268
44289
  capturePhoto,
44269
44290
  handleCloseCamera,
44270
44291
  handleRetryCamera,
@@ -44272,7 +44293,6 @@ const V2OcrComponent = ({
44272
44293
  removeDocument,
44273
44294
  handleFileInputChange,
44274
44295
  currentCameraIndex: currentIdx,
44275
- setAvailableCameras,
44276
44296
  setRecomendationsReviewed,
44277
44297
  recomendationsReviewed
44278
44298
  } = CameraController();
@@ -44352,7 +44372,9 @@ const V2OcrComponent = ({
44352
44372
  variant: "subtitle2",
44353
44373
  gutterBottom: true,
44354
44374
  fontWeight: "bold",
44355
- color: "primary",
44375
+ sx: {
44376
+ color: "var(--primary)"
44377
+ },
44356
44378
  textAlign: "left",
44357
44379
  children: "Recomendaciones:"
44358
44380
  }), /* @__PURE__ */ jsxs("div", {
@@ -44426,8 +44448,8 @@ const V2OcrComponent = ({
44426
44448
  children: "Recorta la imagen para que se ajuste al documento, recuerda dejar bordes suficientes para el reconocimiento del tipo de documento"
44427
44449
  })]
44428
44450
  })]
44429
- }), /* @__PURE__ */ jsx$1(MUIButton, {
44430
- variant: "contained",
44451
+ }), /* @__PURE__ */ jsx$1(CustomButton, {
44452
+ type: "button",
44431
44453
  onClick: () => setRecomendationsReviewed(true),
44432
44454
  fullWidth: true,
44433
44455
  children: "Continuar"
@@ -44578,7 +44600,7 @@ const V2OcrComponent = ({
44578
44600
  sx: {
44579
44601
  borderStyle: "dashed",
44580
44602
  "&:hover": {
44581
- borderColor: "primary.main",
44603
+ borderColor: `var(--primary)`,
44582
44604
  backgroundColor: "action.hover"
44583
44605
  }
44584
44606
  },
@@ -44628,20 +44650,20 @@ const V2OcrComponent = ({
44628
44650
  })
44629
44651
  }), /* @__PURE__ */ jsxs(Box$1, {
44630
44652
  className: "camera-button",
44631
- children: [/* @__PURE__ */ jsx$1(MUIButton, {
44653
+ children: [/* @__PURE__ */ jsx$1(CustomButton, {
44654
+ type: "button",
44632
44655
  variant: "contained",
44633
44656
  startIcon: /* @__PURE__ */ jsx$1(PhotoCamera, {}),
44634
44657
  onClick: () => handleCameraCapture(true),
44635
- size: "small",
44636
44658
  children: "Usar C\xE1mara"
44637
- }), /* @__PURE__ */ jsx$1(MUIButton, {
44659
+ }), /* @__PURE__ */ jsx$1(CustomButton, {
44660
+ type: "button",
44638
44661
  variant: "outlined",
44639
44662
  startIcon: /* @__PURE__ */ jsx$1(CloudUploadIcon, {}),
44640
44663
  onClick: () => {
44641
44664
  var _a;
44642
44665
  return (_a = document.getElementById("front-document-input")) == null ? void 0 : _a.click();
44643
44666
  },
44644
- size: "small",
44645
44667
  children: "Sube de tu galer\xEDa"
44646
44668
  })]
44647
44669
  })]
@@ -44842,20 +44864,20 @@ const V2OcrComponent = ({
44842
44864
  })
44843
44865
  }), /* @__PURE__ */ jsxs(Box$1, {
44844
44866
  className: "camera-button",
44845
- children: [/* @__PURE__ */ jsx$1(MUIButton, {
44867
+ children: [/* @__PURE__ */ jsx$1(CustomButton, {
44868
+ type: "button",
44846
44869
  variant: "contained",
44847
44870
  startIcon: /* @__PURE__ */ jsx$1(PhotoCamera, {}),
44848
44871
  onClick: () => handleCameraCapture(false),
44849
- size: "small",
44850
44872
  children: "Usar C\xE1mara"
44851
- }), /* @__PURE__ */ jsx$1(MUIButton, {
44873
+ }), /* @__PURE__ */ jsx$1(CustomButton, {
44874
+ type: "button",
44852
44875
  variant: "outlined",
44853
44876
  startIcon: /* @__PURE__ */ jsx$1(CloudUploadIcon, {}),
44854
44877
  onClick: () => {
44855
44878
  var _a;
44856
44879
  return (_a = document.getElementById("rear-document-input")) == null ? void 0 : _a.click();
44857
44880
  },
44858
- size: "small",
44859
44881
  children: "Sube de tu galer\xEDa"
44860
44882
  })]
44861
44883
  })]