{"version":3,"file":"listPositionClassMapper.mjs","sources":["../../../../../../src/components/ui/theme/list/listPositionClassMapper.ts"],"sourcesContent":["import { BaseClassMapper } from \"../common/BaseClassMapper\";\nimport type { CategoryProps } from \"../../props\";\nimport { ListPositionKey } from \"../../props\";\n\n/**\n * Maps the mutually-exclusive `inside` / `outside` boolean props to\n * Tailwind `list-inside` / `list-outside` utilities (controls the\n * CSS `list-style-position` property).\n *\n * Returns `[]` when neither is set so the component's base class /\n * component defaults retain full control.\n */\nexport class ListPositionClassMapper extends BaseClassMapper implements Record<ListPositionKey, string> {\n  /** Markers rendered inside the content area (wraps with text) */\n  listInside: string = 'list-inside';\n  /** Markers hanging outside the content area (traditional) */\n  listOutside: string = 'list-outside';\n\n  getClasses(extractedKeys: CategoryProps): string[] {\n    const p = extractedKeys?.listPosition;\n    if (p !== undefined) {\n      return [this[p]];\n    }\n    return [];\n  }\n}\n"],"names":[],"mappings":";;AAYO,MAAM,gCAAgC,eAAA,CAA2D;AAAA,EAAjG,WAAA,GAAA;AAAA,IAAA,KAAA,CAAA,GAAA,SAAA,CAAA;AAEL;AAAA,IAAA,IAAA,CAAA,UAAA,GAAqB,aAAA;AAErB;AAAA,IAAA,IAAA,CAAA,WAAA,GAAsB,cAAA;AAAA,EAAA;AAAA,EAEtB,WAAW,aAAA,EAAwC;AACjD,IAAA,MAAM,IAAI,aAAA,EAAe,YAAA;AACzB,IAAA,IAAI,MAAM,MAAA,EAAW;AACnB,MAAA,OAAO,CAAC,IAAA,CAAK,CAAC,CAAC,CAAA;AAAA,IACjB;AACA,IAAA,OAAO,EAAC;AAAA,EACV;AACF;;;;"}