gbc-kyc-kit 1.8.7 → 1.8.8

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,
@@ -29452,6 +29452,10 @@ lib.useDeviceData = useDeviceData;
29452
29452
  lib.useDeviceSelectors = useDeviceSelectors;
29453
29453
  lib.useMobileOrientation = useMobileOrientation;
29454
29454
  lib.withOrientationChange = withOrientationChange;
29455
+ const primaryColor = getComputedStyle(document.documentElement).getPropertyValue("--primary");
29456
+ const primaryColorHover = getComputedStyle(document.documentElement).getPropertyValue("--primary-hov");
29457
+ const fontSize = getComputedStyle(document.documentElement).getPropertyValue("--font-size");
29458
+ const fontFamily = getComputedStyle(document.documentElement).getPropertyValue("--font-family");
29455
29459
  function LivenessCheck({
29456
29460
  mode,
29457
29461
  clientId,
@@ -29484,7 +29488,16 @@ function LivenessCheck({
29484
29488
  videoRecording: false,
29485
29489
  url: "https://regula-sandbox.globalbridgeconnections.com.py/face-sdk",
29486
29490
  customization: {
29487
- fontFamily: "Noto Sans, sans-serif"
29491
+ fontFamily,
29492
+ fontSize,
29493
+ onboardingScreenStartButtonBackground: primaryColor,
29494
+ onboardingScreenStartButtonBackgroundHover: primaryColorHover,
29495
+ retryScreenRetryButtonBackground: primaryColor,
29496
+ retryScreenRetryButtonBackgroundHover: primaryColor,
29497
+ cameraScreenSectorActive: primaryColor,
29498
+ cameraScreenStrokeNormal: primaryColor,
29499
+ processingScreenProgress: primaryColor,
29500
+ cameraScreenSectorTarget: primaryColorHover
29488
29501
  }
29489
29502
  };
29490
29503
  component.addEventListener("face-liveness", listener);