koval-ui
Version:
React components collection with minimalistic design. Supports theming, layout, and input validation.
1 lines • 1.15 kB
Source Map (JSON)
{"version":3,"file":"ViewDecimalCell.cjs","sources":["../../../../../src/lib/DataTable/cells/ViewDecimalCell.tsx"],"sourcesContent":["import type {ComponentProps, FC} from 'react';\n\nimport {NumberDecimal} from '@/lib/Number';\nimport type {Locale} from '@/internal/locale';\n\nimport classes from './Cells.module.css';\nimport type {CellComponent} from './../types.ts';\n\nexport type Props = ComponentProps<CellComponent>;\n\nexport const ViewDecimalCell: FC<Props> = ({value, cellContext, ...restProps}) => {\n const locale = cellContext.table.options.meta?.locale as Locale;\n return (\n <div className={classes.viewNumberCell}>\n <NumberDecimal {...restProps} locale={locale} value={Number(value)} />\n </div>\n );\n};\n"],"names":["ViewDecimalCell","value","cellContext","restProps","locale","_a","jsx","classes","NumberDecimal"],"mappings":"kNAUaA,EAA6B,CAAC,CAAC,MAAAC,EAAO,YAAAC,EAAa,GAAGC,KAAe,OAC9E,MAAMC,GAASC,EAAAH,EAAY,MAAM,QAAQ,OAA1B,YAAAG,EAAgC,OAC/C,OACKC,EAAAA,IAAA,MAAA,CAAI,UAAWC,EAAAA,QAAQ,eACpB,SAACD,EAAA,IAAAE,EAAA,cAAA,CAAe,GAAGL,EAAW,OAAAC,EAAgB,MAAO,OAAOH,CAAK,CAAG,CAAA,EACxE,CAER"}