2026-10-08 18:36:22 +00:00
|
|
|
|
import { cva } from 'class-variance-authority';
|
|
|
|
|
|
|
feat(island): v6 compositions — list rows, page header, section title, pinned footer, result panel, stat tile, meter, search field, avatar stack, timeline, code input, key-value, analyst card; new chips, segmented, avatar sizes, toast placement, account menu items, post and prediction card names and close reason
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 13:38:43 +00:00
|
|
|
|
/**
|
|
|
|
|
|
* One key–value line (DS KV). `sm` for a receipt card, `md` (8px, the DS) for a detail sheet or a
|
|
|
|
|
|
* KeyValue group.
|
|
|
|
|
|
*/
|
|
|
|
|
|
export const detailRowVariants = cva('min-w-0', {
|
2026-10-08 18:36:22 +00:00
|
|
|
|
variants: {
|
|
|
|
|
|
size: {
|
|
|
|
|
|
sm: 'py-1.5',
|
|
|
|
|
|
md: 'py-2',
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
defaultVariants: { size: 'md' },
|
|
|
|
|
|
});
|
feat(island): v6 compositions — list rows, page header, section title, pinned footer, result panel, stat tile, meter, search field, avatar stack, timeline, code input, key-value, analyst card; new chips, segmented, avatar sizes, toast placement, account menu items, post and prediction card names and close reason
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 13:38:43 +00:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* The value at the end, 15/26: regular unless `strong`; a status tone is always 600. Its parts
|
|
|
|
|
|
* (badge, value, copy) sit in one end-aligned row that wraps.
|
|
|
|
|
|
*/
|
|
|
|
|
|
export const detailValueVariants = cva(
|
|
|
|
|
|
'm-0 min-w-0 text-end text-[0.9375rem] leading-[1.625rem]',
|
|
|
|
|
|
{
|
|
|
|
|
|
variants: {
|
|
|
|
|
|
strong: { true: 'font-semibold', false: 'font-normal' },
|
|
|
|
|
|
tone: {
|
|
|
|
|
|
default: 'text-text-primary',
|
|
|
|
|
|
success: 'font-semibold text-success-text',
|
|
|
|
|
|
danger: 'font-semibold text-danger-text',
|
|
|
|
|
|
warning: 'font-semibold text-warning-text',
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
defaultVariants: { strong: false, tone: 'default' },
|
|
|
|
|
|
},
|
|
|
|
|
|
);
|