gbc-kyc-kit 1.8.7 → 1.8.9

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.
@@ -26688,8 +26688,8 @@ const caseAllCaps = {
26688
26688
  const defaultFontFamily = '"Roboto", "Helvetica", "Arial", sans-serif';
26689
26689
  function createTypography(palette, typography) {
26690
26690
  const _ref = typeof typography === "function" ? typography(palette) : typography, {
26691
- fontFamily = defaultFontFamily,
26692
- fontSize = 14,
26691
+ fontFamily: fontFamily2 = defaultFontFamily,
26692
+ fontSize: fontSize2 = 14,
26693
26693
  fontWeightLight = 300,
26694
26694
  fontWeightRegular = 400,
26695
26695
  fontWeightMedium = 500,
@@ -26698,14 +26698,14 @@ function createTypography(palette, typography) {
26698
26698
  allVariants,
26699
26699
  pxToRem: pxToRem2
26700
26700
  } = _ref, other = _objectWithoutPropertiesLoose$1(_ref, _excluded$3);
26701
- const coef = fontSize / 14;
26701
+ const coef = fontSize2 / 14;
26702
26702
  const pxToRem = pxToRem2 || ((size) => `${size / htmlFontSize * coef}rem`);
26703
26703
  const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends$1({
26704
- fontFamily,
26704
+ fontFamily: fontFamily2,
26705
26705
  fontWeight,
26706
26706
  fontSize: pxToRem(size),
26707
26707
  lineHeight
26708
- }, fontFamily === defaultFontFamily ? {
26708
+ }, fontFamily2 === defaultFontFamily ? {
26709
26709
  letterSpacing: `${round(letterSpacing / size)}em`
26710
26710
  } : {}, casing, allVariants);
26711
26711
  const variants = {
@@ -26733,8 +26733,8 @@ function createTypography(palette, typography) {
26733
26733
  return deepmerge(_extends$1({
26734
26734
  htmlFontSize,
26735
26735
  pxToRem,
26736
- fontFamily,
26737
- fontSize,
26736
+ fontFamily: fontFamily2,
26737
+ fontSize: fontSize2,
26738
26738
  fontWeightLight,
26739
26739
  fontWeightRegular,
26740
26740
  fontWeightMedium,
@@ -26868,11 +26868,11 @@ const _excluded = ["children", "className", "color", "component", "fontSize", "h
26868
26868
  const useUtilityClasses = (ownerState) => {
26869
26869
  const {
26870
26870
  color: color2,
26871
- fontSize,
26871
+ fontSize: fontSize2,
26872
26872
  classes
26873
26873
  } = ownerState;
26874
26874
  const slots = {
26875
- root: ["root", color2 !== "inherit" && `color${capitalize(color2)}`, `fontSize${capitalize(fontSize)}`]
26875
+ root: ["root", color2 !== "inherit" && `color${capitalize(color2)}`, `fontSize${capitalize(fontSize2)}`]
26876
26876
  };
26877
26877
  return composeClasses(slots, getSvgIconUtilityClass, classes);
26878
26878
  };
@@ -26923,7 +26923,7 @@ const SvgIcon = /* @__PURE__ */ React$1.forwardRef(function SvgIcon2(inProps, re
26923
26923
  className,
26924
26924
  color: color2 = "inherit",
26925
26925
  component = "svg",
26926
- fontSize = "medium",
26926
+ fontSize: fontSize2 = "medium",
26927
26927
  htmlColor,
26928
26928
  inheritViewBox = false,
26929
26929
  titleAccess,
@@ -26933,7 +26933,7 @@ const SvgIcon = /* @__PURE__ */ React$1.forwardRef(function SvgIcon2(inProps, re
26933
26933
  const ownerState = _extends$1({}, props, {
26934
26934
  color: color2,
26935
26935
  component,
26936
- fontSize,
26936
+ fontSize: fontSize2,
26937
26937
  instanceFontSize: inProps.fontSize,
26938
26938
  inheritViewBox,
26939
26939
  viewBox,
@@ -27406,7 +27406,6 @@ function DocumentReader({
27406
27406
  }), /* @__PURE__ */ jsx("input", {
27407
27407
  type: "file",
27408
27408
  hidden: true,
27409
- accept: ".jpg, .jpeg, .png",
27410
27409
  capture: "camera",
27411
27410
  id: "firstImage",
27412
27411
  onChange: (e2) => {
@@ -27428,7 +27427,6 @@ function DocumentReader({
27428
27427
  }), /* @__PURE__ */ jsx("input", {
27429
27428
  type: "file",
27430
27429
  hidden: true,
27431
- accept: ".jpg, .jpeg, .png",
27432
27430
  capture: "camera",
27433
27431
  id: "secondImage",
27434
27432
  onChange: (e2) => {
@@ -29452,6 +29450,10 @@ lib.useDeviceData = useDeviceData;
29452
29450
  lib.useDeviceSelectors = useDeviceSelectors;
29453
29451
  lib.useMobileOrientation = useMobileOrientation;
29454
29452
  lib.withOrientationChange = withOrientationChange;
29453
+ const primaryColor = getComputedStyle(document.documentElement).getPropertyValue("--primary");
29454
+ const primaryColorHover = getComputedStyle(document.documentElement).getPropertyValue("--primary-hov");
29455
+ const fontSize = getComputedStyle(document.documentElement).getPropertyValue("--font-size");
29456
+ const fontFamily = getComputedStyle(document.documentElement).getPropertyValue("--font-family");
29455
29457
  function LivenessCheck({
29456
29458
  mode,
29457
29459
  clientId,
@@ -29484,7 +29486,16 @@ function LivenessCheck({
29484
29486
  videoRecording: false,
29485
29487
  url: "https://regula-sandbox.globalbridgeconnections.com.py/face-sdk",
29486
29488
  customization: {
29487
- fontFamily: "Noto Sans, sans-serif"
29489
+ fontFamily,
29490
+ fontSize,
29491
+ onboardingScreenStartButtonBackground: primaryColor,
29492
+ onboardingScreenStartButtonBackgroundHover: primaryColorHover,
29493
+ retryScreenRetryButtonBackground: primaryColor,
29494
+ retryScreenRetryButtonBackgroundHover: primaryColor,
29495
+ cameraScreenSectorActive: primaryColor,
29496
+ cameraScreenStrokeNormal: primaryColor,
29497
+ processingScreenProgress: primaryColor,
29498
+ cameraScreenSectorTarget: primaryColorHover
29488
29499
  }
29489
29500
  };
29490
29501
  component.addEventListener("face-liveness", listener);