{"version":3,"sources":["../../src/next/index.ts"],"names":["localFont"],"mappings":";;;;;;;;;AAyCO,IAAM,aAAaA,0BAAA,CAAU;AAAA,EACnC,GAAA,EAAK;AAAA,IACJ;AAAA,MACC,IAAA,EAAM,4BAAA;AAAA,MACN,MAAA,EAAQ,KAAA;AAAA,MACR,KAAA,EAAO;AAAA;AACR,GACD;AAAA,EACA,OAAA,EAAS,MAAA;AAAA,EACT,QAAA,EAAU,eAAA;AAAA,EACV,OAAA,EAAS;AACV,CAAC;AAiBM,IAAM,gBAAA,GAAmB;AAAA,EAC/B,GAAA,EAAK;AAAA,IACJ;AAAA,MACC,IAAA,EAAM,4BAAA;AAAA,MACN,MAAA,EAAQ,KAAA;AAAA,MACR,KAAA,EAAO;AAAA;AACR,GACD;AAAA,EACA,OAAA,EAAS,MAAA;AAAA,EACT,QAAA,EAAU,eAAA;AAAA,EACV,OAAA,EAAS;AACV","file":"index.cjs","sourcesContent":["/**\n * Next.js `next/font`-compatible local font loader for the Dirham web font.\n *\n * Provides automatic font preloading, self-hosting, and CSS variable generation\n * when used with Next.js 13+.\n *\n * @example\n * ```tsx\n * // app/layout.tsx\n * import { dirhamFont } from \"dirham/next\";\n *\n * export default function RootLayout({ children }) {\n *   return (\n *     <html className={dirhamFont.variable}>\n *       <body>{children}</body>\n *     </html>\n *   );\n * }\n * ```\n *\n * Then use the CSS variable in your styles:\n * ```css\n * .dirham-symbol {\n *   font-family: var(--font-dirham);\n * }\n * ```\n *\n * Or with Tailwind:\n * ```tsx\n * <span className={`${dirhamFont.className} text-2xl`}>ৃ</span>\n * ```\n */\n\nimport localFont from \"next/font/local\";\n\n/**\n * Pre-configured Dirham font instance for Next.js.\n *\n * Uses `next/font/local` for automatic preloading, self-hosting,\n * and zero layout shift (no FOIT/FOUT).\n */\nexport const dirhamFont = localFont({\n\tsrc: [\n\t\t{\n\t\t\tpath: \"../dist/fonts/dirham.woff2\",\n\t\t\tweight: \"400\",\n\t\t\tstyle: \"normal\",\n\t\t},\n\t],\n\tdisplay: \"swap\",\n\tvariable: \"--font-dirham\",\n\tpreload: true,\n});\n\n/**\n * Font configuration for manual setup with `next/font/local`.\n * Use this if you need to customize the font loading behavior.\n *\n * @example\n * ```tsx\n * import localFont from \"next/font/local\";\n * import { dirhamFontConfig } from \"dirham/next\";\n *\n * const myDirham = localFont({\n *   ...dirhamFontConfig,\n *   display: \"optional\",\n * });\n * ```\n */\nexport const dirhamFontConfig = {\n\tsrc: [\n\t\t{\n\t\t\tpath: \"../dist/fonts/dirham.woff2\",\n\t\t\tweight: \"400\" as const,\n\t\t\tstyle: \"normal\" as const,\n\t\t},\n\t],\n\tdisplay: \"swap\" as const,\n\tvariable: \"--font-dirham\",\n\tpreload: true,\n};\n"]}