{"version":3,"file":"heightClassMapper.cjs","sources":["../../../../../../src/components/ui/theme/layout/heightClassMapper.ts"],"sourcesContent":["import { BaseClassMapper } from \"../common/BaseClassMapper\";\nimport type { CategoryProps, HeightKey } from \"../../props\";\n\n/**\n * HeightClassMapper handles height styling for components.\n */\nexport class HeightClassMapper extends BaseClassMapper implements Record<HeightKey, string> {\n  /** Height fit-content */\n  hFit: string = \"h-fit\";\n  /** Height 100% */\n  hFull: string = \"h-full\";\n  /** Height auto */\n  hAuto: string = \"h-auto\";\n  /** Viewport height (100vh), removes max-height constraint */\n  hScreen: string = \"h-screen max-h-none\";\n\n  getClasses(extractedKeys: CategoryProps): string[] {\n    const classes: string[] = [];\n\n    const heightValue = extractedKeys?.height;\n\n    if (heightValue && heightValue in this) {\n      classes.push(this[heightValue as HeightKey]);\n    }\n\n    return classes;\n  }\n}\n"],"names":["BaseClassMapper"],"mappings":";;;;AAMO,MAAM,0BAA0BA,+BAAA,CAAqD;AAAA,EAArF,WAAA,GAAA;AAAA,IAAA,KAAA,CAAA,GAAA,SAAA,CAAA;AAEL;AAAA,IAAA,IAAA,CAAA,IAAA,GAAe,OAAA;AAEf;AAAA,IAAA,IAAA,CAAA,KAAA,GAAgB,QAAA;AAEhB;AAAA,IAAA,IAAA,CAAA,KAAA,GAAgB,QAAA;AAEhB;AAAA,IAAA,IAAA,CAAA,OAAA,GAAkB,qBAAA;AAAA,EAAA;AAAA,EAElB,WAAW,aAAA,EAAwC;AACjD,IAAA,MAAM,UAAoB,EAAC;AAE3B,IAAA,MAAM,cAAc,aAAA,EAAe,MAAA;AAEnC,IAAA,IAAI,WAAA,IAAe,eAAe,IAAA,EAAM;AACtC,MAAA,OAAA,CAAQ,IAAA,CAAK,IAAA,CAAK,WAAwB,CAAC,CAAA;AAAA,IAC7C;AAEA,IAAA,OAAO,OAAA;AAAA,EACT;AACF;;;;"}