{"version":3,"file":"DescriptionFieldTemplate.mjs","sources":["../../src/templates/DescriptionFieldTemplate.tsx"],"sourcesContent":["import { Text } from '@mantine/core';\nimport { DescriptionFieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\n/** The `DescriptionField` is the template to use to render the description of a field\n *\n * @param props - The `DescriptionFieldProps` for this component\n */\nexport default function DescriptionFieldTemplate<\n  T = any,\n  S extends StrictRJSFSchema = RJSFSchema,\n  F extends FormContextType = any,\n>(props: DescriptionFieldProps<T, S, F>) {\n  const { id, description } = props;\n  if (!description) {\n    return null;\n  }\n  return (\n    <Text size='xs' id={id} c='gray' className={`armt-template-description`}>\n      {description}\n    </Text>\n  );\n}\n"],"names":[],"mappings":";;;AAGe,SAAS,wBAAwB,CAAC,KAAK,EAAE;AACxD,EAAE,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;AACpC,EAAE,IAAI,CAAC,WAAW,EAAE;AACpB,IAAI,OAAO,IAAI,CAAC;AAChB,GAAG;AACH,EAAE,uBAAuB,GAAG,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,yBAAyB,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC,CAAC;AACjI;;;;"}