{"version":3,"file":"radiusClassMapper.cjs","sources":["../../../../../../src/components/ui/theme/layout/radiusClassMapper.ts"],"sourcesContent":["import { BaseClassMapper } from \"../common/BaseClassMapper\";\nimport type { CategoryProps, ShapeKey } from \"../../props\";\n\n/**\n * Border radius theme - outputs consumer class rounded-(--br) for rounded shapes.\n * CSS variable values (--br-unit) are now set via CSS rules\n * in vars.css using semantic classes and data attributes.\n *\n * pill and sharp shapes use fixed Tailwind classes.\n */\nexport class RadiusClassMapper extends BaseClassMapper implements Record<ShapeKey, string> {\n  /** Pill shape - fully rounded corners */\n  pill: string = \"rounded-full\";\n  /** Sharp shape - no rounded corners */\n  sharp: string = \"rounded-none\";\n  /** Rounded shape - dynamic border radius from CSS variable */\n  rounded: string = \"rounded-(--br)\";\n\n  getClasses(extractedKeys: CategoryProps): string[] {\n    const shape = extractedKeys.shape;\n\n    if (shape) {\n      switch (shape) {\n        case 'pill':\n          return [this.pill];\n        case 'sharp':\n          return [this.sharp];\n        case 'rounded':\n          return [this.rounded];\n        default:\n          return [];\n      }\n    }\n\n    return [];\n  }\n}\n"],"names":["BaseClassMapper"],"mappings":";;;;AAUO,MAAM,0BAA0BA,+BAAA,CAAoD;AAAA,EAApF,WAAA,GAAA;AAAA,IAAA,KAAA,CAAA,GAAA,SAAA,CAAA;AAEL;AAAA,IAAA,IAAA,CAAA,IAAA,GAAe,cAAA;AAEf;AAAA,IAAA,IAAA,CAAA,KAAA,GAAgB,cAAA;AAEhB;AAAA,IAAA,IAAA,CAAA,OAAA,GAAkB,gBAAA;AAAA,EAAA;AAAA,EAElB,WAAW,aAAA,EAAwC;AACjD,IAAA,MAAM,QAAQ,aAAA,CAAc,KAAA;AAE5B,IAAA,IAAI,KAAA,EAAO;AACT,MAAA,QAAQ,KAAA;AAAO,QACb,KAAK,MAAA;AACH,UAAA,OAAO,CAAC,KAAK,IAAI,CAAA;AAAA,QACnB,KAAK,OAAA;AACH,UAAA,OAAO,CAAC,KAAK,KAAK,CAAA;AAAA,QACpB,KAAK,SAAA;AACH,UAAA,OAAO,CAAC,KAAK,OAAO,CAAA;AAAA,QACtB;AACE,UAAA,OAAO,EAAC;AAAA;AACZ,IACF;AAEA,IAAA,OAAO,EAAC;AAAA,EACV;AACF;;;;"}