{"version":3,"file":"defaultFieldErrorTheme.cjs","sources":["../../../../../src/components/ui/field/defaultFieldErrorTheme.ts"],"sourcesContent":["import { ComponentTheme } from \"../theme/common\";\nimport type { TypographyProps, TextTheme } from \"../typography/common\";\nimport { TYPOGRAPHY_CATEGORIES } from \"../typography/common\";\nimport { defaultTextTheme } from \"../typography/text/defaultTextTheme\";\nimport { fieldErrorDefaults } from \"./fieldErrorDefaults\";\n\n/** Field's error text: Text's classes under its own class, so a filled surface can re-point its color. */\nexport const defaultFieldErrorTheme = new ComponentTheme<TypographyProps, TextTheme>(\n  defaultTextTheme.tag,\n  `${defaultTextTheme.base} vane-field-error`,\n  defaultTextTheme.themes,\n  fieldErrorDefaults,\n  TYPOGRAPHY_CATEGORIES,\n  (props: TypographyProps) => props.href ? \"a\" : \"p\",\n  defaultTextTheme.vaneType\n);\n"],"names":["ComponentTheme","defaultTextTheme","fieldErrorDefaults","TYPOGRAPHY_CATEGORIES"],"mappings":";;;;;;;;;;;AAOO,MAAM,yBAAyB,IAAIA,6BAAA;AAAA,EACxCC,iCAAA,CAAiB,GAAA;AAAA,EACjB,CAAA,EAAGA,kCAAiB,IAAI,CAAA,iBAAA,CAAA;AAAA,EACxBA,iCAAA,CAAiB,MAAA;AAAA,EACjBC,qCAAA;AAAA,EACAC,0CAAA;AAAA,EACA,CAAC,KAAA,KAA2B,KAAA,CAAM,IAAA,GAAO,GAAA,GAAM,GAAA;AAAA,EAC/CF,iCAAA,CAAiB;AACnB;;;;"}