@vpdev2/metakyc-sdk 1.0.21 → 1.0.23

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/dist/index.js CHANGED
@@ -2505,7 +2505,7 @@ const T = ({ children: t, className: e, ...r }) => /* @__PURE__ */ n(
2505
2505
  "div",
2506
2506
  {
2507
2507
  className: te(
2508
- "rounded-xl shadow-sm border",
2508
+ "metakyc-card rounded-xl shadow-sm border",
2509
2509
  e
2510
2510
  ),
2511
2511
  style: {
@@ -4467,13 +4467,21 @@ Failed to reload test data. Please refresh the page.`);
4467
4467
  subtitle: e,
4468
4468
  className: r = ""
4469
4469
  }) => {
4470
- const { currentTheme: s } = se(), a = t || (s == null ? void 0 : s.title) || "KYC Verification";
4471
- return /* @__PURE__ */ o("div", { className: `metakyc-header ${r}`, children: [
4472
- (s == null ? void 0 : s.logo) && s.logo.visible && /* @__PURE__ */ n("div", { className: "mb-3", children: /* @__PURE__ */ n(Er, { config: s.logo }) }),
4473
- /* @__PURE__ */ o("div", { children: [
4474
- /* @__PURE__ */ n("h1", { className: "text-2xl font-bold text-gray-900 dark:text-white", children: a }),
4475
- e && /* @__PURE__ */ n("p", { className: "text-sm text-gray-600 dark:text-gray-400 mt-1", children: e })
4476
- ] })
4470
+ const { currentTheme: s } = se(), a = t || (s == null ? void 0 : s.title) || "", i = !!(s != null && s.logo && s.logo.visible && s.logo.url), l = !!a;
4471
+ return !i && !l ? null : /* @__PURE__ */ o("div", { className: `metakyc-header ${r}`, children: [
4472
+ /* @__PURE__ */ o("div", { className: "flex items-center", children: [
4473
+ i && /* @__PURE__ */ n(Er, { config: s.logo }),
4474
+ i && l && /* @__PURE__ */ n(
4475
+ "span",
4476
+ {
4477
+ className: "text-gray-400 dark:text-gray-500 mx-3",
4478
+ style: { fontSize: "1.5rem", fontWeight: 300 },
4479
+ children: "|"
4480
+ }
4481
+ ),
4482
+ l && /* @__PURE__ */ n("h2", { className: "text-xl font-bold text-gray-900 dark:text-white", children: a })
4483
+ ] }),
4484
+ e && /* @__PURE__ */ n("p", { className: "text-sm text-gray-600 dark:text-gray-400 mt-1", children: e })
4477
4485
  ] });
4478
4486
  }, Yr = ({
4479
4487
  workflowKey: t,