UNPKG

@wordpress/global-styles-ui

Version:
1 lines • 1.2 kB
{"version":3,"file":"constants.mjs","names":[],"sources":["../../../src/font-library/utils/constants.ts"],"sourcesContent":["import { _x } from '@wordpress/i18n';\n\nexport const ALLOWED_FILE_EXTENSIONS = [ 'otf', 'ttf', 'woff', 'woff2' ];\n\nexport const FONT_WEIGHTS: Record< string, string > = {\n\t100: _x( 'Thin', 'font weight' ),\n\t200: _x( 'Extra-light', 'font weight' ),\n\t300: _x( 'Light', 'font weight' ),\n\t400: _x( 'Normal', 'font weight' ),\n\t500: _x( 'Medium', 'font weight' ),\n\t600: _x( 'Semi-bold', 'font weight' ),\n\t700: _x( 'Bold', 'font weight' ),\n\t800: _x( 'Extra-bold', 'font weight' ),\n\t900: _x( 'Black', 'font weight' ),\n};\n\nexport const FONT_STYLES: Record< string, string > = {\n\tnormal: _x( 'Normal', 'font style' ),\n\titalic: _x( 'Italic', 'font style' ),\n};\n"],"mappings":";;AAEA,MAAa,0BAA0B;CAAE;CAAO;CAAO;CAAQ;AAAQ;AAEvE,MAAa,eAAyC;CACrD,KAAK,GAAI,QAAQ,aAAc;CAC/B,KAAK,GAAI,eAAe,aAAc;CACtC,KAAK,GAAI,SAAS,aAAc;CAChC,KAAK,GAAI,UAAU,aAAc;CACjC,KAAK,GAAI,UAAU,aAAc;CACjC,KAAK,GAAI,aAAa,aAAc;CACpC,KAAK,GAAI,QAAQ,aAAc;CAC/B,KAAK,GAAI,cAAc,aAAc;CACrC,KAAK,GAAI,SAAS,aAAc;AACjC;AAEA,MAAa,cAAwC;CACpD,QAAQ,GAAI,UAAU,YAAa;CACnC,QAAQ,GAAI,UAAU,YAAa;AACpC"}