{"version":3,"file":"index.mjs","sources":["../../src/index.ts"],"sourcesContent":["import { definePreset, mergeConfigs, UserConfig } from \"@unocss/core\";\nimport { presetRemToPx } from \"@unocss/preset-rem-to-px\";\nimport { presetWind3, PresetWind3Options, Theme } from \"@unocss/preset-wind3\";\n\nimport { rules } from \"./rules\";\nimport { extendTheme, themeModes } from \"./theme\";\n\nexport { rules, extendTheme, themeModes };\n\nexport interface HvUnoOptions extends PresetWind3Options {\n  /** Base fontSize size. 1rem = ${baseFontSize}px. @default 16 */\n  baseFontSize?: number;\n}\n\nexport const presetHv = definePreset<HvUnoOptions, Theme>((options) => {\n  const { baseFontSize = 16, ...otherOptions } = options || {};\n  /** HV base theme configuration */\n  const hvConfig: UserConfig<Theme> = {\n    extendTheme,\n    rules,\n  };\n\n  return {\n    name: \"@hitachivantara/uikit-uno-preset\",\n    ...mergeConfigs([\n      // base uno config\n      presetWind3(otherOptions),\n      // convert rem to px & make 1 unit 8px (32px = 1rem => 1/4rem = 8px)\n      presetRemToPx({ baseFontSize }),\n      hvConfig,\n    ]),\n  };\n});\n"],"names":[],"mappings":";;;;;;AAca,MAAA,WAAW,aAAkC,CAAC,YAAY;AACrE,QAAM,EAAE,eAAe,IAAI,GAAG,aAAa,IAAI,WAAW,CAAC;AAE3D,QAAM,WAA8B;AAAA,IAClC;AAAA,IACA;AAAA,EACF;AAEO,SAAA;AAAA,IACL,MAAM;AAAA,IACN,GAAG,aAAa;AAAA;AAAA,MAEd,YAAY,YAAY;AAAA;AAAA,MAExB,cAAc,EAAE,cAAc;AAAA,MAC9B;AAAA,IACD,CAAA;AAAA,EACH;AACF,CAAC;"}