UNPKG

@adyen/kyc-components

Version:

This guide assumes that you have already an account with Adyen. A legalEntity needs to be created, and you need to have a `legalEntityId` to instatiate a Component.

77 lines (76 loc) 3.02 kB
try { let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack; n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "6959d4ec-a295-47fe-a238-2b1d695796ba", e._sentryDebugIdIdentifier = "sentry-dbid-6959d4ec-a295-47fe-a238-2b1d695796ba"); } catch (e) {} import { i as Typography } from "./translation-BYvhW5zA.js"; import { t as StackLayout } from "./StackLayout-IUdNMDgW.js"; import { jsx, jsxs } from "preact/jsx-runtime"; var LandingLayout_module_default = { "landing-layout-image": "_landing-layout-image_1nous_1", landingLayoutImage: "_landing-layout-image_1nous_1", "landing-layout-help-action": "_landing-layout-help-action_1nous_11", landingLayoutHelpAction: "_landing-layout-help-action_1nous_11", "landing-layout-actions": "_landing-layout-actions_1nous_16", landingLayoutActions: "_landing-layout-actions_1nous_16", "landing-layout-errors": "_landing-layout-errors_1nous_23", landingLayoutErrors: "_landing-layout-errors_1nous_23", "landing-layout-disclaimer": "_landing-layout-disclaimer_1nous_31", landingLayoutDisclaimer: "_landing-layout-disclaimer_1nous_31", "landing-layout-center": "_landing-layout-center_1nous_36", landingLayoutCenter: "_landing-layout-center_1nous_36" }; //#endregion //#region src/components/ui/layout/LandingLayout/LandingLayout.tsx var LandingLayout = ({ actions, content, description, error, disclaimer, helpAction, media, title }) => { return /* @__PURE__ */ jsxs(StackLayout, { gap: "large", align: "center", children: [ media && /* @__PURE__ */ jsx("div", { role: "region", className: LandingLayout_module_default.landingLayoutImage, children: media }), error && /* @__PURE__ */ jsx("div", { className: LandingLayout_module_default.landingLayoutErrors, children: error }), /* @__PURE__ */ jsxs(StackLayout, { gap: "small", children: [ /* @__PURE__ */ jsx(Typography, { el: "h2", className: LandingLayout_module_default.landingLayoutCenter, variant: "title-l", children: title }), description && /* @__PURE__ */ jsx(Typography, { className: LandingLayout_module_default.landingLayoutCenter, variant: "body", color: "primary", children: description }), /* @__PURE__ */ jsx("div", { className: LandingLayout_module_default.landingLayoutHelpAction, children: helpAction }) ] }), content, /* @__PURE__ */ jsx("div", { className: LandingLayout_module_default.landingLayoutActions, children: /* @__PURE__ */ jsxs(StackLayout, { gap: "small", children: [actions, disclaimer && /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "tertiary", className: LandingLayout_module_default.landingLayoutDisclaimer, children: disclaimer })] }) }) ] }); }; //#endregion export { LandingLayout as t };