{"version":3,"file":"AddButton.mjs","sources":["../../../src/templates/ButtonTemplates/AddButton.tsx"],"sourcesContent":["import { Button, ButtonProps } from '@mantine/core';\nimport { IconPlus } from '@tabler/icons-react';\n\nimport { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\n/** The `AddButton` renders a button that represent the `Add` action on a form\n */\nexport default function AddButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n  uiSchema,\n  registry,\n  color,\n  ...props\n}: IconButtonProps<T, S, F>) {\n  return (\n    <Button\n      title=''\n      color={color as ButtonProps['color']}\n      variant='light'\n      {...props}\n      leftIcon={<IconPlus />}\n      // leftSection={<IconPlus />}\n    ></Button>\n  );\n}\n"],"names":[],"mappings":";;;;AAIe,SAAS,SAAS,CAAC;AAClC,EAAE,QAAQ;AACV,EAAE,QAAQ;AACV,EAAE,KAAK;AACP,EAAE,GAAG,KAAK;AACV,CAAC,EAAE;AACH,EAAE,uBAAuB,GAAG;AAC5B,IAAI,MAAM;AACV,IAAI;AACJ,MAAM,KAAK,EAAE,EAAE;AACf,MAAM,KAAK;AACX,MAAM,OAAO,EAAE,OAAO;AACtB,MAAM,GAAG,KAAK;AACd,MAAM,QAAQ,kBAAkB,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC;AACjD,KAAK;AACL,GAAG,CAAC;AACJ;;;;"}