UNPKG

@hitachivantara/uikit-react-core

Version:

Core React components for the NEXT Design System.

31 lines (30 loc) 617 B
const typographyVariants = [ "display", "title1", "title2", "title3", "title4", "body", "label", "captionLabel", "caption1", "caption2" ]; const mappableVariants = /* @__PURE__ */ new Map([ ["3xlTitle", "display"], ["xlTitle", "title1"], ["mTitle", "title2"], ["xsTitle", "title3"], ["highlightText", "label"], ["normalText", "body"], ["vizText", "caption1"] ]); const mapVariant = (variant, theme) => { if (theme === "ds3") return variant; const mappedVariant = mappableVariants.get(variant); return mappedVariant || variant; }; export { mapVariant, typographyVariants };