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.

40 lines (39 loc) 1.47 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] = "aba14137-4874-407e-9694-ea42d684baa3", e._sentryDebugIdIdentifier = "sentry-dbid-aba14137-4874-407e-9694-ea42d684baa3"); } catch (e) {} import cx from "classnames"; import { jsx } from "preact/jsx-runtime"; var Tag_module_default = { tag: "adyen-kyc-tag", "tag-grey": "adyen-kyc-tag-grey", tagGrey: "adyen-kyc-tag-grey", "tag-blue": "adyen-kyc-tag-blue", tagBlue: "adyen-kyc-tag-blue", "tag-orange": "adyen-kyc-tag-orange", tagOrange: "adyen-kyc-tag-orange", "tag-red": "adyen-kyc-tag-red", tagRed: "adyen-kyc-tag-red", "tag-teal": "adyen-kyc-tag-teal", tagTeal: "adyen-kyc-tag-teal", "tag-green": "adyen-kyc-tag-green", tagGreen: "adyen-kyc-tag-green" }; //#endregion //#region src/components/ui/atoms/Tag/Tag.tsx var variantMap = { grey: Tag_module_default.tagGrey, teal: Tag_module_default.tagTeal, red: Tag_module_default.tagRed, green: Tag_module_default.tagGreen, orange: Tag_module_default.tagOrange, blue: Tag_module_default.tagBlue }; var Tag = ({ className, variant = "blue", children }) => { return /* @__PURE__ */ jsx("span", { className: cx(Tag_module_default.tag, variantMap[variant], className), children }); }; //#endregion export { Tag as t };