diff --git a/src/markup-components/components.ts b/src/markup-components/components.ts index 07a74e7a6..f04f94a3c 100644 --- a/src/markup-components/components.ts +++ b/src/markup-components/components.ts @@ -46,6 +46,7 @@ import { UserAuthForm as userAuthForm, UserAuthFormProps, UserConsentCard as userConsentCard, + UserLogoutCard as userLogoutCard, UserConsentCardProps, UserErrorCard as userErrorCard, UserErrorCardProps, @@ -53,6 +54,7 @@ import { UserSettingsCardProps, WebAuthnSettingsProps, WebAuthnSettingsSection as webAuthnSettingsSection, + UserLogoutCardProps, } from "../react-components" import { CodeBoxProps } from "../react-components/codebox" import { ComponentWrapper } from "./component-wrapper" @@ -162,6 +164,9 @@ export const LookupSecretSettingsSection = ( export const UserConsentCard = (props: UserConsentCardProps) => ComponentWrapper(userConsentCard(props)) +export const UserLogoutCard = (props: UserLogoutCardProps) => + ComponentWrapper(userLogoutCard(props)) + export type { ButtonLinkProps, ButtonProps, @@ -187,6 +192,7 @@ export type { UserAuthCardProps, UserAuthFormProps, UserConsentCardProps, + UserLogoutCardProps, UserErrorCardProps, UserSettingsCardProps, UserSettingsFlowType, diff --git a/src/react-components/checkbox.tsx b/src/react-components/checkbox.tsx index 7d32c5f01..847ccf4f6 100644 --- a/src/react-components/checkbox.tsx +++ b/src/react-components/checkbox.tsx @@ -26,7 +26,7 @@ export const Checkbox = ({ dataTestid, ...props }: CheckboxProps): JSX.Element => { - const id = Math.random().toString(36).substring(2) + const id = props.id ?? Math.random().toString(36).substring(2) return (