{"version":3,"file":"radius-resolver.cjs","names":["rem"],"sources":["../../../../../../src/core/Box/style-props/resolvers/radius-resolver/radius-resolver.ts"],"sourcesContent":["import { MantineTheme } from '../../../../MantineProvider';\nimport { rem } from '../../../../utils';\n\nexport function radiusResolver(value: unknown, theme: MantineTheme) {\n  if (typeof value === 'string' && value in theme.radius) {\n    return `var(--mantine-radius-${value})`;\n  }\n\n  if (typeof value === 'number') {\n    return rem(value);\n  }\n\n  if (typeof value === 'string') {\n    return rem(value);\n  }\n\n  return value;\n}\n"],"mappings":";;;AAGA,SAAgB,eAAe,OAAgB,OAAqB;CAClE,IAAI,OAAO,UAAU,YAAY,SAAS,MAAM,QAC9C,OAAO,wBAAwB,MAAM;CAGvC,IAAI,OAAO,UAAU,UACnB,OAAOA,YAAAA,IAAI,KAAK;CAGlB,IAAI,OAAO,UAAU,UACnB,OAAOA,YAAAA,IAAI,KAAK;CAGlB,OAAO;AACT"}