chore: ⬆️ Upgrade dependencies
Some checks failed
Mirror to Codeberg / Mirror (push) Failing after 0s

This commit is contained in:
Jesse Wierzbinski 2025-08-15 04:53:12 +02:00
parent bf4384376e
commit cdc1d6a6a2
23 changed files with 413 additions and 248 deletions

View file

@ -5,9 +5,9 @@ import clsx from "clsx";
import {
Children,
type ComponentPropsWithoutRef,
type ReactNode,
createContext,
isValidElement,
type ReactNode,
useContext,
useEffect,
useRef,
@ -144,7 +144,6 @@ function CodePanel({
label?: string;
code?: string;
}) {
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
const child = Children.only(children) as ReactNode & { props: any };
if (isValidElement(child)) {
@ -207,8 +206,7 @@ function CodeGroupHeader({
>
{getPanelTitle(
isValidElement(child)
? // biome-ignore lint/suspicious/noExplicitAny: <explanation>
(child.props as any)
? (child.props as any)
: {},
)}
</Tab>
@ -326,7 +324,6 @@ export function CodeGroup({
}: ComponentPropsWithoutRef<typeof CodeGroupPanels> & { title: string }) {
const languages =
Children.map(children, (child) =>
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
getPanelTitle(isValidElement(child) ? (child.props as any) : {}),
) ?? [];
const tabGroupProps = useTabGroupProps(languages);
@ -375,8 +372,8 @@ export function Code({ children, ...props }: ComponentPropsWithoutRef<"code">) {
);
}
return (
// biome-ignore lint/security/noDangerouslySetInnerHtml: <explanation>
// biome-ignore lint/style/useNamingConvention: <explanation>
// biome-ignore lint/security/noDangerouslySetInnerHtml: HTML is trusted
// biome-ignore lint/style/useNamingConvention: Biome incorrectly tags this as bad naming
<code {...props} dangerouslySetInnerHTML={{ __html: children }} />
);
}