@acontplus/ui-kit
Version:
Framework-agnostic UI kit library providing reusable design assets, SVG icon definitions, button types, select options, and design system elements for consistent user interfaces across any JavaScript framework.
33 lines (32 loc) • 802 B
TypeScript
export interface PricingConfig {
defaultDecimals?: number;
roundingMode?: 'round' | 'ceil' | 'floor';
errorHandling?: 'throw' | 'return-null' | 'return-default';
}
export interface TaxCalculation {
baseAmount: number;
taxRate: number;
taxAmount: number;
totalAmount: number;
}
export interface DiscountCalculation {
originalPrice: number;
discountRate: number;
discountAmount: number;
finalPrice: number;
}
export interface ProfitMarginCalculation {
salePrice: number;
cost: number;
profitAmount: number;
profitMargin: number;
}
export interface LineItemCalculation {
unitPrice: number;
quantity: number;
subtotal: number;
discountAmount: number;
subtotalAfterDiscount: number;
taxAmount: number;
total: number;
}