UNPKG

@metamask/design-system-react-native

Version:
32 lines 1.82 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MAP_TEXT_VARIANT_FONTWEIGHT = exports.TWCLASSMAP_TEXT_FONTWEIGHT = void 0; const design_tokens_1 = require("@metamask/design-tokens"); const types_1 = require("../../types/index.cjs"); // Mappings exports.TWCLASSMAP_TEXT_FONTWEIGHT = { [types_1.FontWeight.Regular]: '-regular', [types_1.FontWeight.Medium]: '-medium', [types_1.FontWeight.Bold]: '-bold', }; exports.MAP_TEXT_VARIANT_FONTWEIGHT = { [types_1.TextVariant.DisplayLg]: design_tokens_1.typography.sDisplayLG.fontWeight, [types_1.TextVariant.DisplayMd]: design_tokens_1.typography.sDisplayMD.fontWeight, [types_1.TextVariant.HeadingLg]: design_tokens_1.typography.sHeadingLG.fontWeight, [types_1.TextVariant.HeadingMd]: design_tokens_1.typography.sHeadingMD.fontWeight, [types_1.TextVariant.HeadingSm]: design_tokens_1.typography.sHeadingSM.fontWeight, [types_1.TextVariant.BodyLg]: design_tokens_1.typography.sBodyLGMedium.fontWeight, [types_1.TextVariant.BodyMd]: design_tokens_1.typography.sBodyMD.fontWeight, [types_1.TextVariant.BodySm]: design_tokens_1.typography.sBodySM.fontWeight, [types_1.TextVariant.BodyXs]: design_tokens_1.typography.sBodyXS.fontWeight, [types_1.TextVariant.PageHeading]: design_tokens_1.typography.sPageHeading.fontWeight, [types_1.TextVariant.SectionHeading]: design_tokens_1.typography.sSectionHeading .fontWeight, [types_1.TextVariant.ButtonLabelMd]: design_tokens_1.typography.sButtonLabelMd .fontWeight, [types_1.TextVariant.ButtonLabelLg]: design_tokens_1.typography.sButtonLabelLg .fontWeight, [types_1.TextVariant.AmountDisplayLg]: design_tokens_1.typography.sAmountDisplayLg .fontWeight, }; //# sourceMappingURL=Text.constants.cjs.map