Скилл переносится из ~/.claude/skills/aura-design в репозиторий обвязки: SKILL.md, справочники reference/ и набор kit/ (токены, base.css, компоненты React, оболочка AppShell, тест токенов, test-setup, примеры входа). install.sh ставит его в ~/.claude/skills/aura-design, --check его видит. tests/test-aura-design.sh проверяет структуру и инварианты набора. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
668 B
TypeScript
18 lines
668 B
TypeScript
import type { ReactNode } from "react";
|
|
import { IconClose } from "./icons.tsx";
|
|
|
|
export function Badge({ tone = "neutral", children }: { tone?: "neutral" | "success" | "error" | "warning" | "info"; children: ReactNode }) {
|
|
return <span className={`ui-badge ui-badge--${tone}`}>{children}</span>;
|
|
}
|
|
|
|
export function Chip({ children, onRemove, removeLabel }: { children: ReactNode; onRemove(): void; removeLabel: string }) {
|
|
return (
|
|
<span className="ui-chip">
|
|
{children}
|
|
<button type="button" className="ui-chip__x" aria-label={removeLabel} title={removeLabel} onClick={onRemove}>
|
|
<IconClose size={16} />
|
|
</button>
|
|
</span>
|
|
);
|
|
}
|