Andrey Epifancev d2b4ff2018 feat: skill aura-design — дизайн-система AURA для личных проектов (#17)
Скилл переносится из ~/.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>
2026-10-22 12:10:34 +04:00

21 lines
882 B
TypeScript

import type { ReactNode } from "react";
import { IconCheck, IconError, IconInfo, IconWarning } from "./icons.tsx";
const ICON = { success: IconCheck, error: IconError, warning: IconWarning, info: IconInfo };
export function Notice({ tone, title, children, action }: {
tone: "success" | "error" | "warning" | "info"; title?: ReactNode; children?: ReactNode; action?: ReactNode;
}) {
const I = ICON[tone];
return (
<div className={`ui-notice ui-notice--${tone}`} role={tone === "error" || tone === "warning" ? "alert" : "status"}>
<span className="ui-notice__icon"><I size={16} /></span>
<div className="ui-notice__body">
{title && <div className="ui-notice__title">{title}</div>}
{children && <div className="ui-notice__text">{children}</div>}
</div>
{action && <div className="ui-notice__action">{action}</div>}
</div>
);
}