[WIP] Encryption for secure values (#183)

This commit is contained in:
Gregory Schier
2025-04-15 07:18:26 -07:00
committed by GitHub
parent e114a85c39
commit 2e55a1bd6d
208 changed files with 4063 additions and 28698 deletions

View File

@@ -1,5 +1,6 @@
import classNames from 'classnames';
import type { HTMLAttributes } from 'react';
import type { HTMLAttributes, ReactNode } from 'react';
import { IconTooltip } from './IconTooltip';
export function Label({
htmlFor,
@@ -8,21 +9,24 @@ export function Label({
visuallyHidden,
tags = [],
required,
help,
...props
}: HTMLAttributes<HTMLLabelElement> & {
htmlFor: string;
htmlFor: string | null;
required?: boolean;
tags?: string[];
visuallyHidden?: boolean;
children: ReactNode;
help?: ReactNode;
}) {
return (
<label
htmlFor={htmlFor}
htmlFor={htmlFor ?? undefined}
className={classNames(
className,
visuallyHidden && 'sr-only',
'flex-shrink-0 text-sm',
'text-text-subtle whitespace-nowrap flex items-center gap-1',
'text-text-subtle whitespace-nowrap flex items-center gap-1 mb-0.5',
)}
{...props}
>
@@ -35,6 +39,7 @@ export function Label({
({tag})
</span>
))}
{help && <IconTooltip content={help} />}
</label>
);
}