{"version":3,"file":"direction.mjs","sources":["../src/direction/Direction.ts"],"sourcesContent":["import { computed, type MaybeRefOrGetter, toValue } from 'vue'\nimport { useConfigContext } from '../config/index.ts'\n\nexport type Direction = 'ltr' | 'rtl'\n\nexport function useDirection(localDir?: MaybeRefOrGetter<Direction | undefined>) {\n  const globalConfig = useConfigContext()\n\n  return computed(() => toValue(localDir) || toValue(globalConfig.dir) || 'ltr')\n}\n"],"names":[],"mappings":";;;AAKO,SAAS,aAAa,QAAoD,EAAA;AAC/E,EAAA,MAAM,eAAe,gBAAiB,EAAA;AAEtC,EAAO,OAAA,QAAA,CAAS,MAAM,OAAQ,CAAA,QAAQ,KAAK,OAAQ,CAAA,YAAA,CAAa,GAAG,CAAA,IAAK,KAAK,CAAA;AAC/E;;;;"}