{"version":3,"file":"typography.mjs","sources":["../../../../../../components/typography/src/typography.ts"],"sourcesContent":["import { buildProps } from '@fusion-ui-vue/utils'\nimport type {\n  AcceptableColor,\n  TypographyWithoutSize,\n} from '@fusion-ui-vue/theme'\nimport { typographyWithSize, typographyWithoutSize } from '@fusion-ui-vue/theme'\nimport type { ExtractPropTypes, PropType } from 'vue'\nimport { componentSizes } from '@fusion-ui-vue/constants'\n\nconst $typographyWithSize = typographyWithSize\n  .map(item => componentSizes.map(size => `${item}.${size}`))\n  .flat()\nconst typographyVariant = [...typographyWithoutSize, ...$typographyWithSize]\nexport type TypographyVariant =\n  | TypographyWithoutSize\n  | 'title.small'\n  | 'title.medium'\n  | 'title.large'\n  | 'body.small'\n  | 'body.medium'\n  | 'body.large'\n  | 'label.small'\n  | 'label.medium'\n  | 'label.large'\n\nexport const typographyProps = buildProps({\n  variant: {\n    type: String as PropType<TypographyVariant>,\n    values: typographyVariant,\n    default: 'body.large',\n  },\n  component: {\n    type: String,\n  },\n  noWarp: {\n    type: Boolean,\n    default: false,\n  },\n  gutter: {\n    type: Boolean,\n    default: false,\n  },\n  color: {\n    type: [String, Function] as PropType<AcceptableColor>,\n    default: 'onSurface',\n  },\n})\n\nexport type TypographyProps = ExtractPropTypes<typeof typographyProps>\n"],"names":[],"mappings":";;;;;;;AASA,MAAM,mBAAsB,GAAA,kBAAA,CACzB,GAAI,CAAA,CAAA,IAAA,KAAQ,eAAe,GAAI,CAAA,CAAA,IAAA,KAAQ,CAAG,EAAA,IAAI,CAAI,CAAA,EAAA,IAAI,CAAE,CAAA,CAAC,EACzD,IAAK,EAAA,CAAA;AACR,MAAM,iBAAoB,GAAA,CAAC,GAAG,qBAAA,EAAuB,GAAG,mBAAmB,CAAA,CAAA;AAapE,MAAM,kBAAkB,UAAW,CAAA;AAAA,EACxC,OAAS,EAAA;AAAA,IACP,IAAM,EAAA,MAAA;AAAA,IACN,MAAQ,EAAA,iBAAA;AAAA,IACR,OAAS,EAAA,YAAA;AAAA,GACX;AAAA,EACA,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,MAAA;AAAA,GACR;AAAA,EACA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA,EACA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA,EACA,KAAO,EAAA;AAAA,IACL,IAAA,EAAM,CAAC,MAAA,EAAQ,QAAQ,CAAA;AAAA,IACvB,OAAS,EAAA,WAAA;AAAA,GACX;AACF,CAAC;;;;"}