import { prepareComponentToken as n, prepareToken as i } from "./index.mjs";
import "../../../../@ant-design/cssinjs/es/extractStyle.mjs";
import "../../../../@ant-design/cssinjs/es/hooks/useCacheToken.mjs";
import "react";
import "../../../../@ant-design/cssinjs/es/StyleContext.mjs";
import "../../../../@ant-design/cssinjs/es/theme/createTheme.mjs";
import "../../../../rc-util/es/warning.mjs";
import "../../../../@ant-design/cssinjs/es/theme/ThemeCache.mjs";
import "../../../../@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs";
import "../../../../@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs";
import "../../../../@ant-design/cssinjs/es/hooks/useHMR.mjs";
import "../../../../@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
import { genSubStyleComponent as s } from "../../theme/util/genComponentStyleHook.mjs";
import C from "../../theme/util/genPresetColor.mjs";
const a = (o) => C(o, (r, e) => {
  let {
    textColor: p,
    lightBorderColor: m,
    lightColor: l,
    darkColor: t
  } = e;
  return {
    [`${o.componentCls}${o.componentCls}-${r}`]: {
      color: p,
      background: l,
      borderColor: m,
      // Inverse color
      "&-inverse": {
        color: o.colorTextLightSolid,
        background: t,
        borderColor: t
      },
      [`&${o.componentCls}-borderless`]: {
        borderColor: "transparent"
      }
    }
  };
}), v = s(["Tag", "preset"], (o) => {
  const r = i(o);
  return a(r);
}, n);
export {
  v as default
};
