@primer/primitives 10.6.0-rc.cbb4dec4 → 10.6.0-rc.ce40bf19
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.
| 
         @@ -43,10 +43,10 @@ export const figma = (outputFile, prefix, buildPath, options = {}) => { 
     | 
|
| 
       43 
43 
     | 
    
         
             
                        'name/pathToFigma',
         
     | 
| 
       44 
44 
     | 
    
         
             
                    ],
         
     | 
| 
       45 
45 
     | 
    
         
             
                    options: Object.assign(Object.assign({ basePxFontSize: 16, fontFamilies: {
         
     | 
| 
       46 
     | 
    
         
            -
                             
     | 
| 
       47 
     | 
    
         
            -
                             
     | 
| 
       48 
     | 
    
         
            -
                             
     | 
| 
       49 
     | 
    
         
            -
                             
     | 
| 
      
 46 
     | 
    
         
            +
                            system: 'SF Pro Text',
         
     | 
| 
      
 47 
     | 
    
         
            +
                            sansSerif: 'SF Pro Text',
         
     | 
| 
      
 48 
     | 
    
         
            +
                            sansSerifDisplay: 'SF Pro Display',
         
     | 
| 
      
 49 
     | 
    
         
            +
                            monospace: 'SF Mono',
         
     | 
| 
       50 
50 
     | 
    
         
             
                        } }, options), { theme: figmaTheme, themeOverrides: {
         
     | 
| 
       51 
51 
     | 
    
         
             
                            theme: options.theme,
         
     | 
| 
       52 
52 
     | 
    
         
             
                        } }),
         
     | 
| 
         @@ -40,5 +40,8 @@ export const fontFamilyToFigma = { 
     | 
|
| 
       40 
40 
     | 
    
         
             
                type: 'value',
         
     | 
| 
       41 
41 
     | 
    
         
             
                transitive: true,
         
     | 
| 
       42 
42 
     | 
    
         
             
                filter: isFontFamily,
         
     | 
| 
       43 
     | 
    
         
            -
                transform: (token, platform, options) => { 
     | 
| 
      
 43 
     | 
    
         
            +
                transform: (token, platform, options) => {
         
     | 
| 
      
 44 
     | 
    
         
            +
                    var _a;
         
     | 
| 
      
 45 
     | 
    
         
            +
                    return parseFontFamily(token, (_a = platform.options) === null || _a === void 0 ? void 0 : _a.fontFamilies, options);
         
     | 
| 
      
 46 
     | 
    
         
            +
                },
         
     | 
| 
       44 
47 
     | 
    
         
             
            };
         
     | 
| 
         @@ -41,7 +41,7 @@ 
     | 
|
| 
       41 
41 
     | 
    
         
             
              },
         
     | 
| 
       42 
42 
     | 
    
         
             
              {
         
     | 
| 
       43 
43 
     | 
    
         
             
                "name": "fontStack/system",
         
     | 
| 
       44 
     | 
    
         
            -
                "value": " 
     | 
| 
      
 44 
     | 
    
         
            +
                "value": "SF Pro Text",
         
     | 
| 
       45 
45 
     | 
    
         
             
                "type": "STRING",
         
     | 
| 
       46 
46 
     | 
    
         
             
                "refId": "typography/fontStack/system",
         
     | 
| 
       47 
47 
     | 
    
         
             
                "collection": "typography",
         
     | 
| 
         @@ -51,7 +51,7 @@ 
     | 
|
| 
       51 
51 
     | 
    
         
             
              },
         
     | 
| 
       52 
52 
     | 
    
         
             
              {
         
     | 
| 
       53 
53 
     | 
    
         
             
                "name": "fontStack/sansSerif",
         
     | 
| 
       54 
     | 
    
         
            -
                "value": " 
     | 
| 
      
 54 
     | 
    
         
            +
                "value": "SF Pro Text",
         
     | 
| 
       55 
55 
     | 
    
         
             
                "type": "STRING",
         
     | 
| 
       56 
56 
     | 
    
         
             
                "refId": "typography/fontStack/sansSerif",
         
     | 
| 
       57 
57 
     | 
    
         
             
                "collection": "typography",
         
     | 
| 
         @@ -61,7 +61,7 @@ 
     | 
|
| 
       61 
61 
     | 
    
         
             
              },
         
     | 
| 
       62 
62 
     | 
    
         
             
              {
         
     | 
| 
       63 
63 
     | 
    
         
             
                "name": "fontStack/sansSerifDisplay",
         
     | 
| 
       64 
     | 
    
         
            -
                "value": " 
     | 
| 
      
 64 
     | 
    
         
            +
                "value": "SF Pro Display",
         
     | 
| 
       65 
65 
     | 
    
         
             
                "type": "STRING",
         
     | 
| 
       66 
66 
     | 
    
         
             
                "refId": "typography/fontStack/sansSerifDisplay",
         
     | 
| 
       67 
67 
     | 
    
         
             
                "collection": "typography",
         
     | 
| 
         @@ -71,7 +71,7 @@ 
     | 
|
| 
       71 
71 
     | 
    
         
             
              },
         
     | 
| 
       72 
72 
     | 
    
         
             
              {
         
     | 
| 
       73 
73 
     | 
    
         
             
                "name": "fontStack/monospace",
         
     | 
| 
       74 
     | 
    
         
            -
                "value": " 
     | 
| 
      
 74 
     | 
    
         
            +
                "value": "SF Mono",
         
     | 
| 
       75 
75 
     | 
    
         
             
                "type": "STRING",
         
     | 
| 
       76 
76 
     | 
    
         
             
                "refId": "typography/fontStack/monospace",
         
     | 
| 
       77 
77 
     | 
    
         
             
                "collection": "typography",
         
     |