@metamask/design-system-twrnc-preset 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -1
- package/dist/typography.cjs +10 -10
- package/dist/typography.cjs.map +1 -1
- package/dist/typography.mjs +10 -10
- package/dist/typography.mjs.map +1 -1
- package/dist/typography.types.cjs.map +1 -1
- package/dist/typography.types.d.cts +1 -1
- package/dist/typography.types.d.mts +1 -1
- package/dist/typography.types.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.2.1]
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Updated font file across apps and packages to match mobile codebase ([#801](https://github.com/MetaMask/metamask-design-system/pull/801))
|
|
15
|
+
|
|
10
16
|
## [0.2.0]
|
|
11
17
|
|
|
12
18
|
### Added
|
|
@@ -25,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
25
31
|
- MetaMask design token integration for React Native
|
|
26
32
|
- TWRNC preset configuration with MetaMask styling utilities
|
|
27
33
|
|
|
28
|
-
[Unreleased]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-twrnc-preset@0.2.
|
|
34
|
+
[Unreleased]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-twrnc-preset@0.2.1...HEAD
|
|
35
|
+
[0.2.1]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-twrnc-preset@0.2.0...@metamask/design-system-twrnc-preset@0.2.1
|
|
29
36
|
[0.2.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-twrnc-preset@0.1.0...@metamask/design-system-twrnc-preset@0.2.0
|
|
30
37
|
[0.1.0]: https://github.com/MetaMask/metamask-design-system/releases/tag/@metamask/design-system-twrnc-preset@0.1.0
|
package/dist/typography.cjs
CHANGED
|
@@ -118,16 +118,16 @@ exports.typographyTailwindConfig = {
|
|
|
118
118
|
],
|
|
119
119
|
},
|
|
120
120
|
fontFamily: {
|
|
121
|
-
'default-regular': 'Geist
|
|
122
|
-
'default-regular-italic': 'Geist
|
|
123
|
-
'default-medium': 'Geist
|
|
124
|
-
'default-medium-italic': 'Geist
|
|
125
|
-
'default-bold': 'Geist
|
|
126
|
-
'default-bold-italic': 'Geist
|
|
127
|
-
'accent-regular': '
|
|
128
|
-
'accent-medium': '
|
|
129
|
-
'accent-bold': '
|
|
130
|
-
'hero-regular': '
|
|
121
|
+
'default-regular': 'Geist Regular',
|
|
122
|
+
'default-regular-italic': 'Geist Regular Italic',
|
|
123
|
+
'default-medium': 'Geist Medium',
|
|
124
|
+
'default-medium-italic': 'Geist Medium Italic',
|
|
125
|
+
'default-bold': 'Geist Bold',
|
|
126
|
+
'default-bold-italic': 'Geist Bold Italic',
|
|
127
|
+
'accent-regular': 'MM Sans Regular',
|
|
128
|
+
'accent-medium': 'MM Sans Medium',
|
|
129
|
+
'accent-bold': 'MM Sans Bold',
|
|
130
|
+
'hero-regular': 'MM Poly Regular',
|
|
131
131
|
},
|
|
132
132
|
letterSpacing: {
|
|
133
133
|
'display-lg': `${design_tokens_1.typography.sDisplayLG.letterSpacing}`,
|
package/dist/typography.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.cjs","sourceRoot":"","sources":["../src/typography.ts"],"names":[],"mappings":";;;AAAA,2DAAqD;AAIxC,QAAA,wBAAwB,GAAkC;IACrE,QAAQ,EAAE;QACR,YAAY,EAAE;YACZ,0BAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,EAAE;YACzC;gBACE,UAAU,EAAE,GAAG,0BAAU,CAAC,UAAU,CAAC,UAAoB,IAAI;gBAC7D,aAAa,EAAE,GAAG,0B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,YAAY,EAAE,GAAG,0BAAU,CAAC,UAAU,CAAC,UAAoB,IAAI;QAC/D,YAAY,EAAE,GAAG,0BAAU,CAAC,UAAU,CAAC,UAAoB,IAAI;QAC/D,YAAY,EAAE,GAAG,0BAAU,CAAC,UAAU,CAAC,UAAoB,IAAI;QAC/D,YAAY,EAAE,GAAG,0BAAU,CAAC,UAAU,CAAC,UAAoB,IAAI;QAC/D,SAAS,EAAE,GAAG,0BAAU,CAAC,aAAa,CAAC,UAAoB,IAAI;QAC/D,SAAS,EAAE,GAAG,0BAAU,CAAC,OAAO,CAAC,UAAoB,IAAI;QACzD,SAAS,EAAE,GAAG,0BAAU,CAAC,OAAO,CAAC,UAAoB,IAAI;QACzD,SAAS,EAAE,GAAG,0BAAU,CAAC,OAAO,CAAC,UAAoB,IAAI;QACzD,cAAc,EAAE,GAAG,0BAAU,CAAC,YAAY,CAAC,UAAoB,IAAI;QACnE,iBAAiB,EAAE,GAAG,0BAAU,CAAC,eAAe,CAAC,UAAoB,IAAI;QACzE,iBAAiB,EAAE,GAAG,0BAAU,CAAC,cAAc,CAAC,UAAoB,IAAI;QACxE,iBAAiB,EAAE,GAAG,0BAAU,CAAC,cAAc,CAAC,UAAoB,IAAI;QACxE,mBAAmB,EAAE,GAAG,0BAAU,CAAC,gBAAgB,CAAC,UAAoB,IAAI;KAC7E;CACF,CAAC","sourcesContent":["import { typography } from '@metamask/design-tokens';\n\nimport type { TypographyTailwindConfigProps } from './typography.types';\n\nexport const typographyTailwindConfig: TypographyTailwindConfigProps = {\n fontSize: {\n 'display-lg': [\n typography.sDisplayLG.fontSize.toString(),\n {\n lineHeight: `${typography.sDisplayLG.lineHeight as number}px`,\n letterSpacing: `${typography.sDisplayLG.letterSpacing as number}`,\n fontWeight: typography.sDisplayLG.fontWeight,\n },\n ],\n 'display-md': [\n typography.sDisplayMD.fontSize.toString(),\n {\n lineHeight: `${typography.sDisplayMD.lineHeight as number}px`,\n letterSpacing: `${typography.sDisplayMD.letterSpacing as number}`,\n fontWeight: typography.sDisplayMD.fontWeight,\n },\n ],\n 'heading-lg': [\n typography.sHeadingLG.fontSize.toString(),\n {\n lineHeight: `${typography.sHeadingLG.lineHeight as number}px`,\n letterSpacing: `${typography.sHeadingLG.letterSpacing as number}`,\n fontWeight: typography.sHeadingLG.fontWeight,\n },\n ],\n 'heading-md': [\n typography.sHeadingMD.fontSize.toString(),\n {\n lineHeight: `${typography.sHeadingMD.lineHeight as number}px`,\n letterSpacing: `${typography.sHeadingMD.letterSpacing as number}`,\n fontWeight: typography.sHeadingMD.fontWeight,\n },\n ],\n 'heading-sm': [\n typography.sHeadingSM.fontSize.toString(),\n {\n lineHeight: `${typography.sHeadingSM.lineHeight as number}px`,\n letterSpacing: `${typography.sHeadingSM.letterSpacing as number}`,\n fontWeight: typography.sHeadingSM.fontWeight,\n },\n ],\n 'body-lg': [\n typography.sBodyLGMedium.fontSize.toString(),\n {\n lineHeight: `${typography.sBodyLGMedium.lineHeight as number}px`,\n letterSpacing: `${typography.sBodyLGMedium.letterSpacing as number}`,\n fontWeight: typography.sBodyLGMedium.fontWeight,\n },\n ],\n 'body-md': [\n typography.sBodyMD.fontSize.toString(),\n {\n lineHeight: `${typography.sBodyMD.lineHeight as number}px`,\n letterSpacing: `${typography.sBodyMD.letterSpacing as number}`,\n fontWeight: typography.sBodyMD.fontWeight,\n },\n ],\n 'body-sm': [\n typography.sBodySM.fontSize.toString(),\n {\n lineHeight: `${typography.sBodySM.lineHeight as number}px`,\n letterSpacing: `${typography.sBodySM.letterSpacing as number}`,\n fontWeight: typography.sBodySM.fontWeight,\n },\n ],\n 'body-xs': [\n typography.sBodyXS.fontSize.toString(),\n {\n lineHeight: `${typography.sBodyXS.lineHeight as number}px`,\n letterSpacing: `${typography.sBodyXS.letterSpacing as number}`,\n fontWeight: typography.sBodyXS.fontWeight,\n },\n ],\n 'page-heading': [\n typography.sPageHeading.fontSize.toString(),\n {\n lineHeight: `${typography.sPageHeading.lineHeight as number}px`,\n letterSpacing: `${typography.sPageHeading.letterSpacing as number}`,\n fontWeight: typography.sPageHeading.fontWeight,\n },\n ],\n 'section-heading': [\n typography.sSectionHeading.fontSize.toString(),\n {\n lineHeight: `${typography.sSectionHeading.lineHeight as number}px`,\n letterSpacing: `${typography.sSectionHeading.letterSpacing as number}`,\n fontWeight: typography.sSectionHeading.fontWeight,\n },\n ],\n 'button-label-md': [\n typography.sButtonLabelMd.fontSize.toString(),\n {\n lineHeight: `${typography.sButtonLabelMd.lineHeight as number}px`,\n letterSpacing: `${typography.sButtonLabelMd.letterSpacing as number}`,\n fontWeight: typography.sButtonLabelMd.fontWeight,\n },\n ],\n 'button-label-lg': [\n typography.sButtonLabelLg.fontSize.toString(),\n {\n lineHeight: `${typography.sButtonLabelLg.lineHeight as number}px`,\n letterSpacing: `${typography.sButtonLabelLg.letterSpacing as number}`,\n fontWeight: typography.sButtonLabelLg.fontWeight,\n },\n ],\n 'amount-display-lg': [\n typography.sAmountDisplayLg.fontSize.toString(),\n {\n lineHeight: `${typography.sAmountDisplayLg.lineHeight as number}px`,\n letterSpacing: `${typography.sAmountDisplayLg.letterSpacing as number}`,\n fontWeight: typography.sAmountDisplayLg.fontWeight,\n },\n ],\n },\n fontFamily: {\n 'default-regular': 'Geist-Regular',\n 'default-regular-italic': 'Geist-RegularItalic',\n 'default-medium': 'Geist-Medium',\n 'default-medium-italic': 'Geist-MediumItalic',\n 'default-bold': 'Geist-Bold',\n 'default-bold-italic': 'Geist-BoldItalic',\n 'accent-regular': 'MMSans-Regular',\n 'accent-medium': 'MMSans-Medium',\n 'accent-bold': 'MMSans-Bold',\n 'hero-regular': 'MMPoly-Regular',\n },\n letterSpacing: {\n 'display-lg': `${typography.sDisplayLG.letterSpacing as number}`,\n 'display-md': `${typography.sDisplayMD.letterSpacing as number}`,\n 'heading-lg': `${typography.sHeadingLG.letterSpacing as number}`,\n 'heading-md': `${typography.sHeadingMD.letterSpacing as number}`,\n 'heading-sm': `${typography.sHeadingSM.letterSpacing as number}`,\n 'body-lg': `${typography.sBodyLGMedium.letterSpacing as number}`,\n 'body-md': `${typography.sBodyMD.letterSpacing as number}`,\n 'body-sm': `${typography.sBodySM.letterSpacing as number}`,\n 'body-xs': `${typography.sBodyXS.letterSpacing as number}`,\n 'page-heading': `${typography.sPageHeading.letterSpacing as number}`,\n 'section-heading': `${typography.sSectionHeading.letterSpacing as number}`,\n 'button-label-md': `${typography.sButtonLabelMd.letterSpacing as number}`,\n 'button-label-lg': `${typography.sButtonLabelLg.letterSpacing as number}`,\n 'amount-display-lg': `${typography.sAmountDisplayLg.letterSpacing as number}`,\n },\n lineHeight: {\n 'display-lg': `${typography.sDisplayLG.lineHeight as number}px`,\n 'display-md': `${typography.sDisplayMD.lineHeight as number}px`,\n 'heading-lg': `${typography.sHeadingLG.lineHeight as number}px`,\n 'heading-md': `${typography.sHeadingMD.lineHeight as number}px`,\n 'heading-sm': `${typography.sHeadingSM.lineHeight as number}px`,\n 'body-lg': `${typography.sBodyLGMedium.lineHeight as number}px`,\n 'body-md': `${typography.sBodyMD.lineHeight as number}px`,\n 'body-sm': `${typography.sBodySM.lineHeight as number}px`,\n 'body-xs': `${typography.sBodyXS.lineHeight as number}px`,\n 'page-heading': `${typography.sPageHeading.lineHeight as number}px`,\n 'section-heading': `${typography.sSectionHeading.lineHeight as number}px`,\n 'button-label-md': `${typography.sButtonLabelMd.lineHeight as number}px`,\n 'button-label-lg': `${typography.sButtonLabelLg.lineHeight as number}px`,\n 'amount-display-lg': `${typography.sAmountDisplayLg.lineHeight as number}px`,\n },\n};\n"]}
|
|
1
|
+
{"version":3,"file":"typography.cjs","sourceRoot":"","sources":["../src/typography.ts"],"names":[],"mappings":";;;AAAA,2DAAqD;AAIxC,QAAA,wBAAwB,GAAkC;IACrE,QAAQ,EAAE;QACR,YAAY,EAAE;YACZ,0BAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,EAAE;YACzC;gBACE,UAAU,EAAE,GAAG,0BAAU,CAAC,UAAU,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GAAG,0BAAU,CAAC,UAAU,CAAC,UAAoB,IAAI;QAC/D,YAAY,EAAE,GAAG,0BAAU,CAAC,UAAU,CAAC,UAAoB,IAAI;QAC/D,YAAY,EAAE,GAAG,0BAAU,CAAC,UAAU,CAAC,UAAoB,IAAI;QAC/D,YAAY,EAAE,GAAG,0BAAU,CAAC,UAAU,CAAC,UAAoB,IAAI;QAC/D,YAAY,EAAE,GAAG,0BAAU,CAAC,UAAU,CAAC,UAAoB,IAAI;QAC/D,SAAS,EAAE,GAAG,0BAAU,CAAC,aAAa,CAAC,UAAoB,IAAI;QAC/D,SAAS,EAAE,GAAG,0BAAU,CAAC,OAAO,CAAC,UAAoB,IAAI;QACzD,SAAS,EAAE,GAAG,0BAAU,CAAC,OAAO,CAAC,UAAoB,IAAI;QACzD,SAAS,EAAE,GAAG,0BAAU,CAAC,OAAO,CAAC,UAAoB,IAAI;QACzD,cAAc,EAAE,GAAG,0BAAU,CAAC,YAAY,CAAC,UAAoB,IAAI;QACnE,iBAAiB,EAAE,GAAG,0BAAU,CAAC,eAAe,CAAC,UAAoB,IAAI;QACzE,iBAAiB,EAAE,GAAG,0BAAU,CAAC,cAAc,CAAC,UAAoB,IAAI;QACxE,iBAAiB,EAAE,GAAG,0BAAU,CAAC,cAAc,CAAC,UAAoB,IAAI;QACxE,mBAAmB,EAAE,GAAG,0BAAU,CAAC,gBAAgB,CAAC,UAAoB,IAAI;KAC7E;CACF,CAAC","sourcesContent":["import { typography } from '@metamask/design-tokens';\n\nimport type { TypographyTailwindConfigProps } from './typography.types';\n\nexport const typographyTailwindConfig: TypographyTailwindConfigProps = {\n fontSize: {\n 'display-lg': [\n typography.sDisplayLG.fontSize.toString(),\n {\n lineHeight: `${typography.sDisplayLG.lineHeight as number}px`,\n letterSpacing: `${typography.sDisplayLG.letterSpacing as number}`,\n fontWeight: typography.sDisplayLG.fontWeight,\n },\n ],\n 'display-md': [\n typography.sDisplayMD.fontSize.toString(),\n {\n lineHeight: `${typography.sDisplayMD.lineHeight as number}px`,\n letterSpacing: `${typography.sDisplayMD.letterSpacing as number}`,\n fontWeight: typography.sDisplayMD.fontWeight,\n },\n ],\n 'heading-lg': [\n typography.sHeadingLG.fontSize.toString(),\n {\n lineHeight: `${typography.sHeadingLG.lineHeight as number}px`,\n letterSpacing: `${typography.sHeadingLG.letterSpacing as number}`,\n fontWeight: typography.sHeadingLG.fontWeight,\n },\n ],\n 'heading-md': [\n typography.sHeadingMD.fontSize.toString(),\n {\n lineHeight: `${typography.sHeadingMD.lineHeight as number}px`,\n letterSpacing: `${typography.sHeadingMD.letterSpacing as number}`,\n fontWeight: typography.sHeadingMD.fontWeight,\n },\n ],\n 'heading-sm': [\n typography.sHeadingSM.fontSize.toString(),\n {\n lineHeight: `${typography.sHeadingSM.lineHeight as number}px`,\n letterSpacing: `${typography.sHeadingSM.letterSpacing as number}`,\n fontWeight: typography.sHeadingSM.fontWeight,\n },\n ],\n 'body-lg': [\n typography.sBodyLGMedium.fontSize.toString(),\n {\n lineHeight: `${typography.sBodyLGMedium.lineHeight as number}px`,\n letterSpacing: `${typography.sBodyLGMedium.letterSpacing as number}`,\n fontWeight: typography.sBodyLGMedium.fontWeight,\n },\n ],\n 'body-md': [\n typography.sBodyMD.fontSize.toString(),\n {\n lineHeight: `${typography.sBodyMD.lineHeight as number}px`,\n letterSpacing: `${typography.sBodyMD.letterSpacing as number}`,\n fontWeight: typography.sBodyMD.fontWeight,\n },\n ],\n 'body-sm': [\n typography.sBodySM.fontSize.toString(),\n {\n lineHeight: `${typography.sBodySM.lineHeight as number}px`,\n letterSpacing: `${typography.sBodySM.letterSpacing as number}`,\n fontWeight: typography.sBodySM.fontWeight,\n },\n ],\n 'body-xs': [\n typography.sBodyXS.fontSize.toString(),\n {\n lineHeight: `${typography.sBodyXS.lineHeight as number}px`,\n letterSpacing: `${typography.sBodyXS.letterSpacing as number}`,\n fontWeight: typography.sBodyXS.fontWeight,\n },\n ],\n 'page-heading': [\n typography.sPageHeading.fontSize.toString(),\n {\n lineHeight: `${typography.sPageHeading.lineHeight as number}px`,\n letterSpacing: `${typography.sPageHeading.letterSpacing as number}`,\n fontWeight: typography.sPageHeading.fontWeight,\n },\n ],\n 'section-heading': [\n typography.sSectionHeading.fontSize.toString(),\n {\n lineHeight: `${typography.sSectionHeading.lineHeight as number}px`,\n letterSpacing: `${typography.sSectionHeading.letterSpacing as number}`,\n fontWeight: typography.sSectionHeading.fontWeight,\n },\n ],\n 'button-label-md': [\n typography.sButtonLabelMd.fontSize.toString(),\n {\n lineHeight: `${typography.sButtonLabelMd.lineHeight as number}px`,\n letterSpacing: `${typography.sButtonLabelMd.letterSpacing as number}`,\n fontWeight: typography.sButtonLabelMd.fontWeight,\n },\n ],\n 'button-label-lg': [\n typography.sButtonLabelLg.fontSize.toString(),\n {\n lineHeight: `${typography.sButtonLabelLg.lineHeight as number}px`,\n letterSpacing: `${typography.sButtonLabelLg.letterSpacing as number}`,\n fontWeight: typography.sButtonLabelLg.fontWeight,\n },\n ],\n 'amount-display-lg': [\n typography.sAmountDisplayLg.fontSize.toString(),\n {\n lineHeight: `${typography.sAmountDisplayLg.lineHeight as number}px`,\n letterSpacing: `${typography.sAmountDisplayLg.letterSpacing as number}`,\n fontWeight: typography.sAmountDisplayLg.fontWeight,\n },\n ],\n },\n fontFamily: {\n 'default-regular': 'Geist Regular',\n 'default-regular-italic': 'Geist Regular Italic',\n 'default-medium': 'Geist Medium',\n 'default-medium-italic': 'Geist Medium Italic',\n 'default-bold': 'Geist Bold',\n 'default-bold-italic': 'Geist Bold Italic',\n 'accent-regular': 'MM Sans Regular',\n 'accent-medium': 'MM Sans Medium',\n 'accent-bold': 'MM Sans Bold',\n 'hero-regular': 'MM Poly Regular',\n },\n letterSpacing: {\n 'display-lg': `${typography.sDisplayLG.letterSpacing as number}`,\n 'display-md': `${typography.sDisplayMD.letterSpacing as number}`,\n 'heading-lg': `${typography.sHeadingLG.letterSpacing as number}`,\n 'heading-md': `${typography.sHeadingMD.letterSpacing as number}`,\n 'heading-sm': `${typography.sHeadingSM.letterSpacing as number}`,\n 'body-lg': `${typography.sBodyLGMedium.letterSpacing as number}`,\n 'body-md': `${typography.sBodyMD.letterSpacing as number}`,\n 'body-sm': `${typography.sBodySM.letterSpacing as number}`,\n 'body-xs': `${typography.sBodyXS.letterSpacing as number}`,\n 'page-heading': `${typography.sPageHeading.letterSpacing as number}`,\n 'section-heading': `${typography.sSectionHeading.letterSpacing as number}`,\n 'button-label-md': `${typography.sButtonLabelMd.letterSpacing as number}`,\n 'button-label-lg': `${typography.sButtonLabelLg.letterSpacing as number}`,\n 'amount-display-lg': `${typography.sAmountDisplayLg.letterSpacing as number}`,\n },\n lineHeight: {\n 'display-lg': `${typography.sDisplayLG.lineHeight as number}px`,\n 'display-md': `${typography.sDisplayMD.lineHeight as number}px`,\n 'heading-lg': `${typography.sHeadingLG.lineHeight as number}px`,\n 'heading-md': `${typography.sHeadingMD.lineHeight as number}px`,\n 'heading-sm': `${typography.sHeadingSM.lineHeight as number}px`,\n 'body-lg': `${typography.sBodyLGMedium.lineHeight as number}px`,\n 'body-md': `${typography.sBodyMD.lineHeight as number}px`,\n 'body-sm': `${typography.sBodySM.lineHeight as number}px`,\n 'body-xs': `${typography.sBodyXS.lineHeight as number}px`,\n 'page-heading': `${typography.sPageHeading.lineHeight as number}px`,\n 'section-heading': `${typography.sSectionHeading.lineHeight as number}px`,\n 'button-label-md': `${typography.sButtonLabelMd.lineHeight as number}px`,\n 'button-label-lg': `${typography.sButtonLabelLg.lineHeight as number}px`,\n 'amount-display-lg': `${typography.sAmountDisplayLg.lineHeight as number}px`,\n },\n};\n"]}
|
package/dist/typography.mjs
CHANGED
|
@@ -115,16 +115,16 @@ export const typographyTailwindConfig = {
|
|
|
115
115
|
],
|
|
116
116
|
},
|
|
117
117
|
fontFamily: {
|
|
118
|
-
'default-regular': 'Geist
|
|
119
|
-
'default-regular-italic': 'Geist
|
|
120
|
-
'default-medium': 'Geist
|
|
121
|
-
'default-medium-italic': 'Geist
|
|
122
|
-
'default-bold': 'Geist
|
|
123
|
-
'default-bold-italic': 'Geist
|
|
124
|
-
'accent-regular': '
|
|
125
|
-
'accent-medium': '
|
|
126
|
-
'accent-bold': '
|
|
127
|
-
'hero-regular': '
|
|
118
|
+
'default-regular': 'Geist Regular',
|
|
119
|
+
'default-regular-italic': 'Geist Regular Italic',
|
|
120
|
+
'default-medium': 'Geist Medium',
|
|
121
|
+
'default-medium-italic': 'Geist Medium Italic',
|
|
122
|
+
'default-bold': 'Geist Bold',
|
|
123
|
+
'default-bold-italic': 'Geist Bold Italic',
|
|
124
|
+
'accent-regular': 'MM Sans Regular',
|
|
125
|
+
'accent-medium': 'MM Sans Medium',
|
|
126
|
+
'accent-bold': 'MM Sans Bold',
|
|
127
|
+
'hero-regular': 'MM Poly Regular',
|
|
128
128
|
},
|
|
129
129
|
letterSpacing: {
|
|
130
130
|
'display-lg': `${typography.sDisplayLG.letterSpacing}`,
|
package/dist/typography.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.mjs","sourceRoot":"","sources":["../src/typography.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,gCAAgC;AAIrD,MAAM,CAAC,MAAM,wBAAwB,GAAkC;IACrE,QAAQ,EAAE;QACR,YAAY,EAAE;YACZ,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,EAAE;YACzC;gBACE,UAAU,EAAE,GAAG,UAAU,CAAC,UAAU,CAAC,UAAoB,IAAI;gBAC7D,aAAa,EAAE,GAAG,UAAU,CAAC,UAAU,CAAC,aAAuB,EAAE;gBACjE,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC,UAAU;aAC7C;SACF;QACD,YAAY,EAAE;YACZ,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,EAAE;YACzC;gBACE,UAAU,EAAE,GAAG,UAAU,CAAC,UAAU,CAAC,UAAoB,IAAI;gBAC7D,aAAa,EA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,CAAC,OAAO,CAAC,UAAoB,IAAI;QACzD,SAAS,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,UAAoB,IAAI;QACzD,SAAS,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,UAAoB,IAAI;QACzD,cAAc,EAAE,GAAG,UAAU,CAAC,YAAY,CAAC,UAAoB,IAAI;QACnE,iBAAiB,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC,UAAoB,IAAI;QACzE,iBAAiB,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,UAAoB,IAAI;QACxE,iBAAiB,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,UAAoB,IAAI;QACxE,mBAAmB,EAAE,GAAG,UAAU,CAAC,gBAAgB,CAAC,UAAoB,IAAI;KAC7E;CACF,CAAC","sourcesContent":["import { typography } from '@metamask/design-tokens';\n\nimport type { TypographyTailwindConfigProps } from './typography.types';\n\nexport const typographyTailwindConfig: TypographyTailwindConfigProps = {\n fontSize: {\n 'display-lg': [\n typography.sDisplayLG.fontSize.toString(),\n {\n lineHeight: `${typography.sDisplayLG.lineHeight as number}px`,\n letterSpacing: `${typography.sDisplayLG.letterSpacing as number}`,\n fontWeight: typography.sDisplayLG.fontWeight,\n },\n ],\n 'display-md': [\n typography.sDisplayMD.fontSize.toString(),\n {\n lineHeight: `${typography.sDisplayMD.lineHeight as number}px`,\n letterSpacing: `${typography.sDisplayMD.letterSpacing as number}`,\n fontWeight: typography.sDisplayMD.fontWeight,\n },\n ],\n 'heading-lg': [\n typography.sHeadingLG.fontSize.toString(),\n {\n lineHeight: `${typography.sHeadingLG.lineHeight as number}px`,\n letterSpacing: `${typography.sHeadingLG.letterSpacing as number}`,\n fontWeight: typography.sHeadingLG.fontWeight,\n },\n ],\n 'heading-md': [\n typography.sHeadingMD.fontSize.toString(),\n {\n lineHeight: `${typography.sHeadingMD.lineHeight as number}px`,\n letterSpacing: `${typography.sHeadingMD.letterSpacing as number}`,\n fontWeight: typography.sHeadingMD.fontWeight,\n },\n ],\n 'heading-sm': [\n typography.sHeadingSM.fontSize.toString(),\n {\n lineHeight: `${typography.sHeadingSM.lineHeight as number}px`,\n letterSpacing: `${typography.sHeadingSM.letterSpacing as number}`,\n fontWeight: typography.sHeadingSM.fontWeight,\n },\n ],\n 'body-lg': [\n typography.sBodyLGMedium.fontSize.toString(),\n {\n lineHeight: `${typography.sBodyLGMedium.lineHeight as number}px`,\n letterSpacing: `${typography.sBodyLGMedium.letterSpacing as number}`,\n fontWeight: typography.sBodyLGMedium.fontWeight,\n },\n ],\n 'body-md': [\n typography.sBodyMD.fontSize.toString(),\n {\n lineHeight: `${typography.sBodyMD.lineHeight as number}px`,\n letterSpacing: `${typography.sBodyMD.letterSpacing as number}`,\n fontWeight: typography.sBodyMD.fontWeight,\n },\n ],\n 'body-sm': [\n typography.sBodySM.fontSize.toString(),\n {\n lineHeight: `${typography.sBodySM.lineHeight as number}px`,\n letterSpacing: `${typography.sBodySM.letterSpacing as number}`,\n fontWeight: typography.sBodySM.fontWeight,\n },\n ],\n 'body-xs': [\n typography.sBodyXS.fontSize.toString(),\n {\n lineHeight: `${typography.sBodyXS.lineHeight as number}px`,\n letterSpacing: `${typography.sBodyXS.letterSpacing as number}`,\n fontWeight: typography.sBodyXS.fontWeight,\n },\n ],\n 'page-heading': [\n typography.sPageHeading.fontSize.toString(),\n {\n lineHeight: `${typography.sPageHeading.lineHeight as number}px`,\n letterSpacing: `${typography.sPageHeading.letterSpacing as number}`,\n fontWeight: typography.sPageHeading.fontWeight,\n },\n ],\n 'section-heading': [\n typography.sSectionHeading.fontSize.toString(),\n {\n lineHeight: `${typography.sSectionHeading.lineHeight as number}px`,\n letterSpacing: `${typography.sSectionHeading.letterSpacing as number}`,\n fontWeight: typography.sSectionHeading.fontWeight,\n },\n ],\n 'button-label-md': [\n typography.sButtonLabelMd.fontSize.toString(),\n {\n lineHeight: `${typography.sButtonLabelMd.lineHeight as number}px`,\n letterSpacing: `${typography.sButtonLabelMd.letterSpacing as number}`,\n fontWeight: typography.sButtonLabelMd.fontWeight,\n },\n ],\n 'button-label-lg': [\n typography.sButtonLabelLg.fontSize.toString(),\n {\n lineHeight: `${typography.sButtonLabelLg.lineHeight as number}px`,\n letterSpacing: `${typography.sButtonLabelLg.letterSpacing as number}`,\n fontWeight: typography.sButtonLabelLg.fontWeight,\n },\n ],\n 'amount-display-lg': [\n typography.sAmountDisplayLg.fontSize.toString(),\n {\n lineHeight: `${typography.sAmountDisplayLg.lineHeight as number}px`,\n letterSpacing: `${typography.sAmountDisplayLg.letterSpacing as number}`,\n fontWeight: typography.sAmountDisplayLg.fontWeight,\n },\n ],\n },\n fontFamily: {\n 'default-regular': 'Geist-Regular',\n 'default-regular-italic': 'Geist-RegularItalic',\n 'default-medium': 'Geist-Medium',\n 'default-medium-italic': 'Geist-MediumItalic',\n 'default-bold': 'Geist-Bold',\n 'default-bold-italic': 'Geist-BoldItalic',\n 'accent-regular': 'MMSans-Regular',\n 'accent-medium': 'MMSans-Medium',\n 'accent-bold': 'MMSans-Bold',\n 'hero-regular': 'MMPoly-Regular',\n },\n letterSpacing: {\n 'display-lg': `${typography.sDisplayLG.letterSpacing as number}`,\n 'display-md': `${typography.sDisplayMD.letterSpacing as number}`,\n 'heading-lg': `${typography.sHeadingLG.letterSpacing as number}`,\n 'heading-md': `${typography.sHeadingMD.letterSpacing as number}`,\n 'heading-sm': `${typography.sHeadingSM.letterSpacing as number}`,\n 'body-lg': `${typography.sBodyLGMedium.letterSpacing as number}`,\n 'body-md': `${typography.sBodyMD.letterSpacing as number}`,\n 'body-sm': `${typography.sBodySM.letterSpacing as number}`,\n 'body-xs': `${typography.sBodyXS.letterSpacing as number}`,\n 'page-heading': `${typography.sPageHeading.letterSpacing as number}`,\n 'section-heading': `${typography.sSectionHeading.letterSpacing as number}`,\n 'button-label-md': `${typography.sButtonLabelMd.letterSpacing as number}`,\n 'button-label-lg': `${typography.sButtonLabelLg.letterSpacing as number}`,\n 'amount-display-lg': `${typography.sAmountDisplayLg.letterSpacing as number}`,\n },\n lineHeight: {\n 'display-lg': `${typography.sDisplayLG.lineHeight as number}px`,\n 'display-md': `${typography.sDisplayMD.lineHeight as number}px`,\n 'heading-lg': `${typography.sHeadingLG.lineHeight as number}px`,\n 'heading-md': `${typography.sHeadingMD.lineHeight as number}px`,\n 'heading-sm': `${typography.sHeadingSM.lineHeight as number}px`,\n 'body-lg': `${typography.sBodyLGMedium.lineHeight as number}px`,\n 'body-md': `${typography.sBodyMD.lineHeight as number}px`,\n 'body-sm': `${typography.sBodySM.lineHeight as number}px`,\n 'body-xs': `${typography.sBodyXS.lineHeight as number}px`,\n 'page-heading': `${typography.sPageHeading.lineHeight as number}px`,\n 'section-heading': `${typography.sSectionHeading.lineHeight as number}px`,\n 'button-label-md': `${typography.sButtonLabelMd.lineHeight as number}px`,\n 'button-label-lg': `${typography.sButtonLabelLg.lineHeight as number}px`,\n 'amount-display-lg': `${typography.sAmountDisplayLg.lineHeight as number}px`,\n },\n};\n"]}
|
|
1
|
+
{"version":3,"file":"typography.mjs","sourceRoot":"","sources":["../src/typography.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,gCAAgC;AAIrD,MAAM,CAAC,MAAM,wBAAwB,GAAkC;IACrE,QAAQ,EAAE;QACR,YAAY,EAAE;YACZ,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,EAAE;YACzC;gBACE,UAAU,EAAE,GAAG,UAAU,CAAC,UAAU,CAAC,UAAoB,IAAI;gBAC7D,aAAa,EAAE,GAAG,UAAU,CAAC,UAAU,CAAC,aAAuB,EAAE;gBACjE,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC,UAAU;aAC7C;SACF;QACD,YAAY,EAAE;YACZ,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,EAAE;YACzC;gBACE,UAAU,EAAE,GAAG,UAAU,CAAC,UAAU,CAAC,UAAoB,IAAI;gBAC7D,aAAa,EAAE,GAAG,UAAU,CAA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C,UAAoB,IAAI;QACzD,SAAS,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,UAAoB,IAAI;QACzD,SAAS,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,UAAoB,IAAI;QACzD,cAAc,EAAE,GAAG,UAAU,CAAC,YAAY,CAAC,UAAoB,IAAI;QACnE,iBAAiB,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC,UAAoB,IAAI;QACzE,iBAAiB,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,UAAoB,IAAI;QACxE,iBAAiB,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,UAAoB,IAAI;QACxE,mBAAmB,EAAE,GAAG,UAAU,CAAC,gBAAgB,CAAC,UAAoB,IAAI;KAC7E;CACF,CAAC","sourcesContent":["import { typography } from '@metamask/design-tokens';\n\nimport type { TypographyTailwindConfigProps } from './typography.types';\n\nexport const typographyTailwindConfig: TypographyTailwindConfigProps = {\n fontSize: {\n 'display-lg': [\n typography.sDisplayLG.fontSize.toString(),\n {\n lineHeight: `${typography.sDisplayLG.lineHeight as number}px`,\n letterSpacing: `${typography.sDisplayLG.letterSpacing as number}`,\n fontWeight: typography.sDisplayLG.fontWeight,\n },\n ],\n 'display-md': [\n typography.sDisplayMD.fontSize.toString(),\n {\n lineHeight: `${typography.sDisplayMD.lineHeight as number}px`,\n letterSpacing: `${typography.sDisplayMD.letterSpacing as number}`,\n fontWeight: typography.sDisplayMD.fontWeight,\n },\n ],\n 'heading-lg': [\n typography.sHeadingLG.fontSize.toString(),\n {\n lineHeight: `${typography.sHeadingLG.lineHeight as number}px`,\n letterSpacing: `${typography.sHeadingLG.letterSpacing as number}`,\n fontWeight: typography.sHeadingLG.fontWeight,\n },\n ],\n 'heading-md': [\n typography.sHeadingMD.fontSize.toString(),\n {\n lineHeight: `${typography.sHeadingMD.lineHeight as number}px`,\n letterSpacing: `${typography.sHeadingMD.letterSpacing as number}`,\n fontWeight: typography.sHeadingMD.fontWeight,\n },\n ],\n 'heading-sm': [\n typography.sHeadingSM.fontSize.toString(),\n {\n lineHeight: `${typography.sHeadingSM.lineHeight as number}px`,\n letterSpacing: `${typography.sHeadingSM.letterSpacing as number}`,\n fontWeight: typography.sHeadingSM.fontWeight,\n },\n ],\n 'body-lg': [\n typography.sBodyLGMedium.fontSize.toString(),\n {\n lineHeight: `${typography.sBodyLGMedium.lineHeight as number}px`,\n letterSpacing: `${typography.sBodyLGMedium.letterSpacing as number}`,\n fontWeight: typography.sBodyLGMedium.fontWeight,\n },\n ],\n 'body-md': [\n typography.sBodyMD.fontSize.toString(),\n {\n lineHeight: `${typography.sBodyMD.lineHeight as number}px`,\n letterSpacing: `${typography.sBodyMD.letterSpacing as number}`,\n fontWeight: typography.sBodyMD.fontWeight,\n },\n ],\n 'body-sm': [\n typography.sBodySM.fontSize.toString(),\n {\n lineHeight: `${typography.sBodySM.lineHeight as number}px`,\n letterSpacing: `${typography.sBodySM.letterSpacing as number}`,\n fontWeight: typography.sBodySM.fontWeight,\n },\n ],\n 'body-xs': [\n typography.sBodyXS.fontSize.toString(),\n {\n lineHeight: `${typography.sBodyXS.lineHeight as number}px`,\n letterSpacing: `${typography.sBodyXS.letterSpacing as number}`,\n fontWeight: typography.sBodyXS.fontWeight,\n },\n ],\n 'page-heading': [\n typography.sPageHeading.fontSize.toString(),\n {\n lineHeight: `${typography.sPageHeading.lineHeight as number}px`,\n letterSpacing: `${typography.sPageHeading.letterSpacing as number}`,\n fontWeight: typography.sPageHeading.fontWeight,\n },\n ],\n 'section-heading': [\n typography.sSectionHeading.fontSize.toString(),\n {\n lineHeight: `${typography.sSectionHeading.lineHeight as number}px`,\n letterSpacing: `${typography.sSectionHeading.letterSpacing as number}`,\n fontWeight: typography.sSectionHeading.fontWeight,\n },\n ],\n 'button-label-md': [\n typography.sButtonLabelMd.fontSize.toString(),\n {\n lineHeight: `${typography.sButtonLabelMd.lineHeight as number}px`,\n letterSpacing: `${typography.sButtonLabelMd.letterSpacing as number}`,\n fontWeight: typography.sButtonLabelMd.fontWeight,\n },\n ],\n 'button-label-lg': [\n typography.sButtonLabelLg.fontSize.toString(),\n {\n lineHeight: `${typography.sButtonLabelLg.lineHeight as number}px`,\n letterSpacing: `${typography.sButtonLabelLg.letterSpacing as number}`,\n fontWeight: typography.sButtonLabelLg.fontWeight,\n },\n ],\n 'amount-display-lg': [\n typography.sAmountDisplayLg.fontSize.toString(),\n {\n lineHeight: `${typography.sAmountDisplayLg.lineHeight as number}px`,\n letterSpacing: `${typography.sAmountDisplayLg.letterSpacing as number}`,\n fontWeight: typography.sAmountDisplayLg.fontWeight,\n },\n ],\n },\n fontFamily: {\n 'default-regular': 'Geist Regular',\n 'default-regular-italic': 'Geist Regular Italic',\n 'default-medium': 'Geist Medium',\n 'default-medium-italic': 'Geist Medium Italic',\n 'default-bold': 'Geist Bold',\n 'default-bold-italic': 'Geist Bold Italic',\n 'accent-regular': 'MM Sans Regular',\n 'accent-medium': 'MM Sans Medium',\n 'accent-bold': 'MM Sans Bold',\n 'hero-regular': 'MM Poly Regular',\n },\n letterSpacing: {\n 'display-lg': `${typography.sDisplayLG.letterSpacing as number}`,\n 'display-md': `${typography.sDisplayMD.letterSpacing as number}`,\n 'heading-lg': `${typography.sHeadingLG.letterSpacing as number}`,\n 'heading-md': `${typography.sHeadingMD.letterSpacing as number}`,\n 'heading-sm': `${typography.sHeadingSM.letterSpacing as number}`,\n 'body-lg': `${typography.sBodyLGMedium.letterSpacing as number}`,\n 'body-md': `${typography.sBodyMD.letterSpacing as number}`,\n 'body-sm': `${typography.sBodySM.letterSpacing as number}`,\n 'body-xs': `${typography.sBodyXS.letterSpacing as number}`,\n 'page-heading': `${typography.sPageHeading.letterSpacing as number}`,\n 'section-heading': `${typography.sSectionHeading.letterSpacing as number}`,\n 'button-label-md': `${typography.sButtonLabelMd.letterSpacing as number}`,\n 'button-label-lg': `${typography.sButtonLabelLg.letterSpacing as number}`,\n 'amount-display-lg': `${typography.sAmountDisplayLg.letterSpacing as number}`,\n },\n lineHeight: {\n 'display-lg': `${typography.sDisplayLG.lineHeight as number}px`,\n 'display-md': `${typography.sDisplayMD.lineHeight as number}px`,\n 'heading-lg': `${typography.sHeadingLG.lineHeight as number}px`,\n 'heading-md': `${typography.sHeadingMD.lineHeight as number}px`,\n 'heading-sm': `${typography.sHeadingSM.lineHeight as number}px`,\n 'body-lg': `${typography.sBodyLGMedium.lineHeight as number}px`,\n 'body-md': `${typography.sBodyMD.lineHeight as number}px`,\n 'body-sm': `${typography.sBodySM.lineHeight as number}px`,\n 'body-xs': `${typography.sBodyXS.lineHeight as number}px`,\n 'page-heading': `${typography.sPageHeading.lineHeight as number}px`,\n 'section-heading': `${typography.sSectionHeading.lineHeight as number}px`,\n 'button-label-md': `${typography.sButtonLabelMd.lineHeight as number}px`,\n 'button-label-lg': `${typography.sButtonLabelLg.lineHeight as number}px`,\n 'amount-display-lg': `${typography.sAmountDisplayLg.lineHeight as number}px`,\n },\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.types.cjs","sourceRoot":"","sources":["../src/typography.types.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Different Typography variants to be used as twrnc classNames\n */\nexport type TypographyVariant =\n | 'display-lg'\n | 'display-md'\n | 'heading-lg'\n | 'heading-md'\n | 'heading-sm'\n | 'body-lg'\n | 'body-md'\n | 'body-sm'\n | 'body-xs'\n | 'page-heading'\n | 'section-heading'\n | 'button-label-md'\n | 'button-label-lg'\n | 'amount-display-lg';\n\n/**\n * Different FontWeight and FontStyle to be used to calculate the FontFamily\n * in getFontFamilyFromWeightAndStyle\n */\nexport type FontWeight =\n | '100'\n | '200'\n | '300'\n | '400'\n | '500'\n | '600'\n | '700'\n | '800'\n | '900'\n | 'normal'\n | 'bold';\nexport type FontStyle = 'normal' | 'italic';\n\n/**\n * Props for TypographyTailwindConfig\n *\n * @example\n * {\n * fontSize: {\n * 'display-md': {\n * fontFamily: 'Geist
|
|
1
|
+
{"version":3,"file":"typography.types.cjs","sourceRoot":"","sources":["../src/typography.types.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Different Typography variants to be used as twrnc classNames\n */\nexport type TypographyVariant =\n | 'display-lg'\n | 'display-md'\n | 'heading-lg'\n | 'heading-md'\n | 'heading-sm'\n | 'body-lg'\n | 'body-md'\n | 'body-sm'\n | 'body-xs'\n | 'page-heading'\n | 'section-heading'\n | 'button-label-md'\n | 'button-label-lg'\n | 'amount-display-lg';\n\n/**\n * Different FontWeight and FontStyle to be used to calculate the FontFamily\n * in getFontFamilyFromWeightAndStyle\n */\nexport type FontWeight =\n | '100'\n | '200'\n | '300'\n | '400'\n | '500'\n | '600'\n | '700'\n | '800'\n | '900'\n | 'normal'\n | 'bold';\nexport type FontStyle = 'normal' | 'italic';\n\n/**\n * Props for TypographyTailwindConfig\n *\n * @example\n * {\n * fontSize: {\n * 'display-md': {\n * fontFamily: 'Geist Bold',\n * fontSize: '32',\n * fontWeight: '700',\n * letterSpacing: '0',\n * lineHeight: '40px',\n * },\n * },\n * fontFamily: {\n * sans: [\n * 'Geist',\n * 'Helvetica Neue',\n * 'Helvetica',\n * 'Arial',\n * 'sans-serif',\n * ],\n * 'display-md': 'Geist',\n * },\n * letterSpacing: {\n * 'display-md': '0',\n * },\n * fontWeight: {\n * 'display-md': '400',\n * },\n * lineHeight: {\n * 'display-md': '40px',\n * },\n * }\n */\nexport type TypographyTailwindConfigProps = {\n fontSize: Record<\n TypographyVariant,\n [\n string,\n {\n lineHeight: string; // Make sure to include units - \"40px\" instead of \"40\"\n letterSpacing: string;\n fontWeight: string;\n },\n ]\n >;\n fontFamily: {\n 'default-regular': string;\n 'default-regular-italic': string;\n 'default-medium': string;\n 'default-medium-italic': string;\n 'default-bold': string;\n 'default-bold-italic': string;\n 'accent-regular': string;\n 'accent-medium': string;\n 'accent-bold': string;\n 'hero-regular': string;\n };\n letterSpacing: Record<TypographyVariant, string>;\n lineHeight: Record<TypographyVariant, string>; // Make sure to include units - \"40px\" instead of \"40\"\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.types.mjs","sourceRoot":"","sources":["../src/typography.types.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Different Typography variants to be used as twrnc classNames\n */\nexport type TypographyVariant =\n | 'display-lg'\n | 'display-md'\n | 'heading-lg'\n | 'heading-md'\n | 'heading-sm'\n | 'body-lg'\n | 'body-md'\n | 'body-sm'\n | 'body-xs'\n | 'page-heading'\n | 'section-heading'\n | 'button-label-md'\n | 'button-label-lg'\n | 'amount-display-lg';\n\n/**\n * Different FontWeight and FontStyle to be used to calculate the FontFamily\n * in getFontFamilyFromWeightAndStyle\n */\nexport type FontWeight =\n | '100'\n | '200'\n | '300'\n | '400'\n | '500'\n | '600'\n | '700'\n | '800'\n | '900'\n | 'normal'\n | 'bold';\nexport type FontStyle = 'normal' | 'italic';\n\n/**\n * Props for TypographyTailwindConfig\n *\n * @example\n * {\n * fontSize: {\n * 'display-md': {\n * fontFamily: 'Geist
|
|
1
|
+
{"version":3,"file":"typography.types.mjs","sourceRoot":"","sources":["../src/typography.types.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Different Typography variants to be used as twrnc classNames\n */\nexport type TypographyVariant =\n | 'display-lg'\n | 'display-md'\n | 'heading-lg'\n | 'heading-md'\n | 'heading-sm'\n | 'body-lg'\n | 'body-md'\n | 'body-sm'\n | 'body-xs'\n | 'page-heading'\n | 'section-heading'\n | 'button-label-md'\n | 'button-label-lg'\n | 'amount-display-lg';\n\n/**\n * Different FontWeight and FontStyle to be used to calculate the FontFamily\n * in getFontFamilyFromWeightAndStyle\n */\nexport type FontWeight =\n | '100'\n | '200'\n | '300'\n | '400'\n | '500'\n | '600'\n | '700'\n | '800'\n | '900'\n | 'normal'\n | 'bold';\nexport type FontStyle = 'normal' | 'italic';\n\n/**\n * Props for TypographyTailwindConfig\n *\n * @example\n * {\n * fontSize: {\n * 'display-md': {\n * fontFamily: 'Geist Bold',\n * fontSize: '32',\n * fontWeight: '700',\n * letterSpacing: '0',\n * lineHeight: '40px',\n * },\n * },\n * fontFamily: {\n * sans: [\n * 'Geist',\n * 'Helvetica Neue',\n * 'Helvetica',\n * 'Arial',\n * 'sans-serif',\n * ],\n * 'display-md': 'Geist',\n * },\n * letterSpacing: {\n * 'display-md': '0',\n * },\n * fontWeight: {\n * 'display-md': '400',\n * },\n * lineHeight: {\n * 'display-md': '40px',\n * },\n * }\n */\nexport type TypographyTailwindConfigProps = {\n fontSize: Record<\n TypographyVariant,\n [\n string,\n {\n lineHeight: string; // Make sure to include units - \"40px\" instead of \"40\"\n letterSpacing: string;\n fontWeight: string;\n },\n ]\n >;\n fontFamily: {\n 'default-regular': string;\n 'default-regular-italic': string;\n 'default-medium': string;\n 'default-medium-italic': string;\n 'default-bold': string;\n 'default-bold-italic': string;\n 'accent-regular': string;\n 'accent-medium': string;\n 'accent-bold': string;\n 'hero-regular': string;\n };\n letterSpacing: Record<TypographyVariant, string>;\n lineHeight: Record<TypographyVariant, string>; // Make sure to include units - \"40px\" instead of \"40\"\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask/design-system-twrnc-preset",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Design System twrnc Preset",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MetaMask",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@babel/preset-react": "^7.25.9",
|
|
65
65
|
"@babel/preset-typescript": "^7.23.3",
|
|
66
66
|
"@metamask/auto-changelog": "^5.0.2",
|
|
67
|
-
"@metamask/design-tokens": "^8.1.
|
|
67
|
+
"@metamask/design-tokens": "^8.1.1",
|
|
68
68
|
"@testing-library/react-native": "^12.8.1",
|
|
69
69
|
"@ts-bridge/cli": "^0.6.3",
|
|
70
70
|
"@types/babel__preset-env": "^7",
|