Update dependencies

This commit is contained in:
Matthew Ellison
2026-08-15 15:37:24 -04:00
parent 7265eaad18
commit cbd681e63b
26 changed files with 3230 additions and 4498 deletions

View File

@@ -1,20 +1,24 @@
import type { RadioButtonProps } from "$/types/InputTypes";
import { Radio } from "@headlessui/react";
import clsx from "clsx";
import { useId } from "react";
export default function RadioButton({
id = crypto.randomUUID().replaceAll("-", ""),
id,
className,
labelClassName,
size = "sm",
value,
disabled,
children
}: Readonly<RadioButtonProps>){
}: Readonly<RadioButtonProps>) {
const reactId = useId();
const effectiveId = id ?? reactId;
return (
<Radio
id={id}
id={effectiveId}
value={value}
className={clsx(
"group",
@@ -26,7 +30,7 @@ export default function RadioButton({
}
)}
disabled={disabled}
aria-labelledby={`${id}Label`}
aria-labelledby={`${effectiveId}Label`}
>
<div
className={clsx(
@@ -45,7 +49,7 @@ export default function RadioButton({
{
children &&
<span
id={`${id}Label`}
id={`${effectiveId}Label`}
className={labelClassName}
>
{children}