| 62 | ]); |
| 63 | |
| 64 | function getLibraryLogo(subtitle) { |
| 65 | if (subtitle === 'React Aria' || subtitle === 'Internationalized') { |
| 66 | return { |
| 67 | type: 'svg', |
| 68 | props: { |
| 69 | width: 156, |
| 70 | height: 154, |
| 71 | viewBox: '0 0 801 789', |
| 72 | xmlns: 'http://www.w3.org/2000/svg', |
| 73 | children: [ |
| 74 | { |
| 75 | type: 'path', |
| 76 | props: { |
| 77 | d: 'M196.982 514.709C208.175 499.409 230.82 498.847 242.758 513.572L304.192 591.02H303.164L335.947 632.935C348.452 648.36 350.322 671.192 338.426 687.091L269.192 776.667C263.18 784.445 253.904 789 244.073 789H15.9042C2.67099 789 -4.75388 773.758 3.40515 763.34L138.368 591.02H138.3L196.982 514.709Z', |
| 78 | fill: '#6733FF' |
| 79 | } |
| 80 | }, |
| 81 | { |
| 82 | type: 'path', |
| 83 | props: { |
| 84 | d: 'M521.047 0C667.958 0 787.056 119.096 787.056 266.007C787.056 384.756 709.241 485.326 601.824 519.523L796.6 763.217C804.908 773.611 797.508 789 784.201 789H584.008C574.743 789 565.94 784.952 559.909 777.918L497.742 705.421L293.505 447.391C257.513 401.92 289.897 334.983 347.889 334.98L521.047 334.973C559.134 334.973 590.011 304.095 590.012 266.007C590.011 227.92 559.134 197.042 521.047 197.042H230.317C205.333 197.042 189.001 185.889 174.373 167.626L77.727 46.9705C62.5727 28.0503 76.0433 0.00115052 100.284 0H521.047Z', |
| 85 | fill: '#6733FF' |
| 86 | } |
| 87 | } |
| 88 | ] |
| 89 | } |
| 90 | }; |
| 91 | } else { |
| 92 | // Adobe logo for React Spectrum |
| 93 | return { |
| 94 | type: 'svg', |
| 95 | props: { |
| 96 | width: 156, |
| 97 | height: 138, |
| 98 | viewBox: '0 0 501.71 444.05', |
| 99 | xmlns: 'http://www.w3.org/2000/svg', |
| 100 | children: { |
| 101 | type: 'polygon', |
| 102 | props: { |
| 103 | fill: '#eb1000', |
| 104 | strokeWidth: 0, |
| 105 | points: |
| 106 | '297.58 444.05 261.13 342.65 169.67 342.65 246.54 149.12 363.19 444.05 501.71 444.05 316.8 0 186.23 0 0 444.05 297.58 444.05 297.58 444.05' |
| 107 | } |
| 108 | } |
| 109 | } |
| 110 | }; |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | await fs.mkdir(outputDir, {recursive: true}); |
| 115 | |