/** @jsxRuntime automatic */ /** @jsxImportSource @alchemy.run/sigil */ import { Hyperlink as SigilHyperlink, Text as SigilText } from "@alchemy.run/sigil"; import type { ComponentProps } from "react"; import { theme } from "../../../Util/Theme.ts"; import { useCliEnvironment } from "./Environment.tsx"; export type TextTone = | "default" | "muted" | "emphasis" | "brand" | "accent" | "info" | "success" | "warning" | "danger"; export interface TextProps extends Omit, "color"> { readonly tone?: TextTone; readonly color?: ComponentProps["color"]; } /** CLI typography primitive. Consumers never import Sigil directly. */ export function Text({ tone = "default", color, backgroundColor, bold, dimColor, italic, underline, strikethrough, inverse, ...props }: TextProps) { const { colors } = useCliEnvironment(); return ( ); } type LinkProps = { readonly href: string; readonly children?: string; }; export function Link({ href, children }: LinkProps) { const { colors } = useCliEnvironment(); const label = children ?? href; return ( {label} ); }