Initial project import

This commit is contained in:
drjones
2026-06-13 17:36:44 -07:00
commit ad2a18cc8d
18471 changed files with 4497570 additions and 0 deletions

20
src/bom/index.ts Normal file
View File

@@ -0,0 +1,20 @@
/**
* Bill of Materials module — public API.
*
* Pure logic:
* computeBom(parts) -> Bom (line items, cut lists, costs)
* bomToCsv(bom) -> sectioned CSV string
* bomToText(bom) -> printable plain-text shopping list
* downloadBomCsv(bom, name) -> trigger a browser .csv download
*
* UI:
* <BomPanel onClose={...} /> -> self-contained drawer reading useBuilder
*
* Formatting helpers (used by the panel, exported for reuse):
* formatDiameter, formatInches, formatMoney
*/
export { computeBom, formatDiameter, formatInches, formatMoney } from './computeBom';
export { bomToCsv, bomToText, downloadBomCsv } from './csv';
export { downloadBomPdf } from './pdf';
export { BomPanel } from './BomPanel';
export type { Bom, BomLine, CutList, CutStick, CategorySubtotal } from './types';