import { cva } from 'class-variance-authority'; export const amountVariants = cva('whitespace-nowrap', { variants: { size: { /** The one hero figure on a screen: قابل واریز, the checkout total. */ figure: 'text-display', /** Tier totals. */ title: 'text-heading-sm', body: 'text-body-md', /** Dense rows. */ caption: 'text-caption', }, tone: { ink: 'text-text-primary', /** The hero tone: ink with a bold number (600 at title size, as in the DS). Default at figure size. */ figure: 'text-text-primary', /** Per-month equivalents. */ mute: 'text-text-secondary', /** A negative balance, with its explanation underneath. */ negative: 'text-danger-text', /** Money returned to the investor (بازگشت وجه), with `signed`. */ positive: 'text-success-text', }, /** A cancelled payout, or a standing price beside a promotion. */ struck: { true: 'text-text-tertiary', false: '' }, }, defaultVariants: { size: 'body', tone: 'ink', struck: false }, }); export const amountNumberVariants = cva('', { variants: { weight: { regular: 'font-normal', semibold: 'font-semibold', bold: 'font-bold', }, struck: { true: 'line-through decoration-[1.5px]', false: '', }, }, defaultVariants: { weight: 'semibold', struck: false }, }); export const amountCurrencyVariants = cva('text-[0.8em] font-normal', { variants: { /** «تومان» is secondary next to an ink figure, and follows any other tone. */ muted: { true: 'text-text-secondary', false: '' }, }, defaultVariants: { muted: true }, });