feat(core): support one time password (#9798)

This commit is contained in:
forehalo
2025-01-22 07:33:09 +00:00
parent bf797c7a0c
commit 5828eb53b6
16 changed files with 362 additions and 131 deletions
@@ -46,6 +46,21 @@ export function Text(props: PropsWithChildren) {
return <span style={BasicTextStyle}>{props.children}</span>;
}
export function SecondaryText(props: PropsWithChildren) {
return (
<span
style={{
...BasicTextStyle,
color: '#7A7A7A',
fontSize: '14px',
lineHeight: '22px',
}}
>
{props.children}
</span>
);
}
export function Bold(props: PropsWithChildren) {
return <span style={{ fontWeight: 600 }}>{props.children}</span>;
}
@@ -70,6 +85,23 @@ export const Avatar = (props: {
);
};
export const OnelineCodeBlock = (props: PropsWithChildren) => {
return (
<pre
style={{
...BasicTextStyle,
whiteSpace: 'nowrap',
border: '1px solid rgba(0,0,0,.1)',
padding: '8px 10px',
borderRadius: '4px',
backgroundColor: '#F5F5F5',
}}
>
{props.children}
</pre>
);
};
export const Name = (props: PropsWithChildren) => {
return <Bold>{props.children}</Bold>;
};