{"version":3,"file":"types.mjs","sources":["../../../../../../theme/src/typography/types.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/indent */\nimport type { ComponentSizes } from '@fusion-ui-vue/constants'\n\nexport interface TypographyProp {\n  fontFamily: string\n  fontWeight: number\n  fontSize: string\n  fontStyle: string\n  letterSpacing: string\n  lineHeight: string\n  textTransform: string\n  textDecoration: string\n}\n\nexport const typographyWithSize = ['title', 'body', 'label'] as const\nexport type TypographyWithSize = typeof typographyWithSize[number]\nexport const typographyWithoutSize = [\n  'h1',\n  'h2',\n  'h3',\n  'h4',\n  'h5',\n  'h6',\n] as const\nexport type TypographyWithoutSize = typeof typographyWithoutSize[number]\n\nexport type TypographyType = TypographyWithoutSize | TypographyWithSize\n\ninterface TypographyDefaultConfig {\n  fontFamily: string\n  htmlFontSize: number\n  fontSize: number\n  pxToRem: (size: number) => string\n}\nexport type Typography = TypographyDefaultConfig &\n  Record<TypographyWithoutSize, TypographyProp> &\n  Record<TypographyWithSize, Record<ComponentSizes, TypographyProp>>\n\nexport type TypographyMap = Record<TypographyType, string>\nexport const typographyMapping: TypographyMap = {\n  h1: 'h1',\n  h2: 'h2',\n  h3: 'h3',\n  h4: 'h4',\n  h5: 'h5',\n  h6: 'h6',\n  title: 'h6',\n  body: 'p',\n  label: 'span',\n}\n"],"names":[],"mappings":"AAcO,MAAM,kBAAqB,GAAA,CAAC,OAAS,EAAA,MAAA,EAAQ,OAAO,EAAA;AAEpD,MAAM,qBAAwB,GAAA;AAAA,EACnC,IAAA;AAAA,EACA,IAAA;AAAA,EACA,IAAA;AAAA,EACA,IAAA;AAAA,EACA,IAAA;AAAA,EACA,IAAA;AACF,EAAA;AAgBO,MAAM,iBAAmC,GAAA;AAAA,EAC9C,EAAI,EAAA,IAAA;AAAA,EACJ,EAAI,EAAA,IAAA;AAAA,EACJ,EAAI,EAAA,IAAA;AAAA,EACJ,EAAI,EAAA,IAAA;AAAA,EACJ,EAAI,EAAA,IAAA;AAAA,EACJ,EAAI,EAAA,IAAA;AAAA,EACJ,KAAO,EAAA,IAAA;AAAA,EACP,IAAM,EAAA,GAAA;AAAA,EACN,KAAO,EAAA,MAAA;AACT;;;;"}