diff --git a/site/components/docs-layout.tsx b/site/components/docs-layout.tsx index 2ad3b51..c566c33 100644 --- a/site/components/docs-layout.tsx +++ b/site/components/docs-layout.tsx @@ -7,6 +7,7 @@ import Logo from '../assets/logo-small.svg'; const TableItem: React.FC<{ href: string; + children?: React.ReactNode; }> = ({ children, href }) => ( @@ -15,7 +16,9 @@ const TableItem: React.FC<{ ); -const TableHeader: React.FC = ({ children }) => ( +const TableHeader: React.FC<{ + children?: React.ReactNode; +}> = ({ children }) => ( {children} diff --git a/site/components/emoji-button.tsx b/site/components/emoji-button.tsx index f67b154..3151513 100644 --- a/site/components/emoji-button.tsx +++ b/site/components/emoji-button.tsx @@ -1,6 +1,7 @@ export const EmojiButton: React.FC<{ onClick: () => void; emoji: string | JSX.Element; + children?: React.ReactNode; }> = ({ onClick, children, emoji }) => ( = [ 'top-left', diff --git a/site/package.json b/site/package.json index 722f481..2024731 100644 --- a/site/package.json +++ b/site/package.json @@ -8,12 +8,12 @@ "dependencies": { "@mdx-js/loader": "^2.1.2", "@mdx-js/react": "^2.1.2", - "@next/mdx": "^12.2.0", + "@next/mdx": "^12.2.1", "@svgr/webpack": "^6.2.1", "@tailwindcss/typography": "^0.5.2", "@types/prismjs": "^1.26.0", "clsx": "^1.1.1", - "next": "^12.2.0", + "next": "^12.2.1", "next-seo": "^5.4.0", "postcss": "^8.4.14", "prism-react-renderer": "^1.3.5", diff --git a/site/pages/index.tsx b/site/pages/index.tsx index fc66873..f111956 100644 --- a/site/pages/index.tsx +++ b/site/pages/index.tsx @@ -21,7 +21,7 @@ import Link from 'next/link'; const version = packageInfo.version; -const Feature: React.FC = ({ children }) => ( +const Feature: React.FC<{ children?: React.ReactNode }> = ({ children }) => ( {children} diff --git a/site/pnpm-lock.yaml b/site/pnpm-lock.yaml index 1e3a77b..086a691 100644 --- a/site/pnpm-lock.yaml +++ b/site/pnpm-lock.yaml @@ -3,7 +3,7 @@ lockfileVersion: 5.4 specifiers: '@mdx-js/loader': ^2.1.2 '@mdx-js/react': ^2.1.2 - '@next/mdx': ^12.2.0 + '@next/mdx': ^12.2.1 '@svgr/webpack': ^6.2.1 '@tailwindcss/typography': ^0.5.2 '@types/node': ^18.0.0 @@ -12,7 +12,7 @@ specifiers: '@types/react-dom': ^18.0.5 autoprefixer: ^10.4.7 clsx: ^1.1.1 - next: ^12.2.0 + next: ^12.2.1 next-compose-plugins: ^2.2.1 next-seo: ^5.4.0 postcss: ^8.4.14 @@ -27,13 +27,13 @@ specifiers: dependencies: '@mdx-js/loader': 2.1.2 '@mdx-js/react': 2.1.2_react@18.2.0 - '@next/mdx': 12.2.0_todqhrvd7cvbb36hzi2r6xttgq + '@next/mdx': 12.2.1_todqhrvd7cvbb36hzi2r6xttgq '@svgr/webpack': 6.2.1 '@tailwindcss/typography': 0.5.3_tailwindcss@3.1.5 '@types/prismjs': 1.26.0 clsx: 1.2.1 - next: 12.2.0_biqbaboplfbrettd7655fr4n2y - next-seo: 5.4.0_24lkarzjpo3wcmj2o6qyrkug4y + next: 12.2.1_biqbaboplfbrettd7655fr4n2y + next-seo: 5.4.0_mhihrgpmhoktude7gn4rdcr2ka postcss: 8.4.14 prism-react-renderer: 1.3.5_react@18.2.0 react: 18.2.0 @@ -1396,12 +1396,12 @@ packages: react: 18.2.0 dev: false - /@next/env/12.2.0: - resolution: {integrity: sha512-/FCkDpL/8SodJEXvx/DYNlOD5ijTtkozf4PPulYPtkPOJaMPpBSOkzmsta4fnrnbdH6eZjbwbiXFdr6gSQCV4w==} + /@next/env/12.2.1: + resolution: {integrity: sha512-lz3TJKIvbdGRUsUr/+h3vy7XvBNGTGzHwhurk5AtqrABj4Zyo70xbshcI7YQTNUK4x9OA/E+SOcXvVx0DHmFRw==} dev: false - /@next/mdx/12.2.0_todqhrvd7cvbb36hzi2r6xttgq: - resolution: {integrity: sha512-obWsgfD0/1+OOr4PMQlSal34uhIDxkFe9Db+LaFfRDbsmD8+gb0YevUOV5KBoleEHXfDku0WAPUUmPmDiAxu1w==} + /@next/mdx/12.2.1_todqhrvd7cvbb36hzi2r6xttgq: + resolution: {integrity: sha512-2T/EZbyX/r9vhrgDnvjybW1xbdIgOcXaiaVughkjP77HUueMSQJpvrgrJrGudcBsPoU15obX3hDMVhejSPRrcg==} peerDependencies: '@mdx-js/loader': '>=0.15.0' '@mdx-js/react': '*' @@ -1410,8 +1410,8 @@ packages: '@mdx-js/react': 2.1.2_react@18.2.0 dev: false - /@next/swc-android-arm-eabi/12.2.0: - resolution: {integrity: sha512-hbneH8DNRB2x0Nf5fPCYoL8a0osvdTCe4pvOc9Rv5CpDsoOlf8BWBs2OWpeP0U2BktGvIsuUhmISmdYYGyrvTw==} + /@next/swc-android-arm-eabi/12.2.1: + resolution: {integrity: sha512-Gk7fvo1McA9gues9hixoeoxKnvvUusW0P+fya4ZAU3us+bQm1EqSoDrnOrUsdsgwIPQ3HobOJPY5C3xvKOl/tA==} engines: {node: '>= 10'} cpu: [arm] os: [android] @@ -1419,8 +1419,8 @@ packages: dev: false optional: true - /@next/swc-android-arm64/12.2.0: - resolution: {integrity: sha512-1eEk91JHjczcJomxJ8X0XaUeNcp5Lx1U2Ic7j15ouJ83oRX+3GIslOuabW2oPkSgXbHkThMClhirKpvG98kwZg==} + /@next/swc-android-arm64/12.2.1: + resolution: {integrity: sha512-J+QwWRm2+bOtacZFahoplX3dCYGDpou86VjfcE+M5/E0UCtBmZ6JvItyV4scK8wSKHQQUWq8DmOEm/C0lhsSRQ==} engines: {node: '>= 10'} cpu: [arm64] os: [android] @@ -1428,8 +1428,8 @@ packages: dev: false optional: true - /@next/swc-darwin-arm64/12.2.0: - resolution: {integrity: sha512-x5U5gJd7ZvrEtTFnBld9O2bUlX8opu7mIQUqRzj7KeWzBwPhrIzTTsQXAiNqsaMuaRPvyHBVW/5d/6g6+89Y8g==} + /@next/swc-darwin-arm64/12.2.1: + resolution: {integrity: sha512-teSfpKHdHQER4FVVCdvS0fHff35Gh4LB2DZ2eNAateIluP2Gnl+tT881MeM4Knvl2Mvm3Z3vtSJNthVoveJnMA==} engines: {node: '>= 10'} cpu: [arm64] os: [darwin] @@ -1437,8 +1437,8 @@ packages: dev: false optional: true - /@next/swc-darwin-x64/12.2.0: - resolution: {integrity: sha512-iwMNFsrAPjfedjKDv9AXPAV16PWIomP3qw/FfPaxkDVRbUls7BNdofBLzkQmqxqWh93WrawLwaqyXpJuAaiwJA==} + /@next/swc-darwin-x64/12.2.1: + resolution: {integrity: sha512-flA1H+9krrINtdWoXBzeESkdIV34OKX0+Lnqd90J1nsERTXntYy6CNOMxMtv1otAcnFy7EHYJQIL8URuu/2XXg==} engines: {node: '>= 10'} cpu: [x64] os: [darwin] @@ -1446,8 +1446,8 @@ packages: dev: false optional: true - /@next/swc-freebsd-x64/12.2.0: - resolution: {integrity: sha512-gRiAw8g3Akf6niTDLEm1Emfa7jXDjvaAj/crDO8hKASKA4Y1fS4kbi/tyWw5VtoFI4mUzRmCPmZ8eL0tBSG58A==} + /@next/swc-freebsd-x64/12.2.1: + resolution: {integrity: sha512-SkAjp7B7aBxAsRVMZGiAp/qMkh65PLzYuLBTsBSu+4fxFuKF7MAEgaIUhvC8zzD58A+Y9yrY/3813bhtrwkcuA==} engines: {node: '>= 10'} cpu: [x64] os: [freebsd] @@ -1455,8 +1455,8 @@ packages: dev: false optional: true - /@next/swc-linux-arm-gnueabihf/12.2.0: - resolution: {integrity: sha512-/TJZkxaIpeEwnXh6A40trgwd40C5+LJroLUOEQwMOJdavLl62PjCA6dGl1pgooWLCIb5YdBQ0EG4ylzvLwS2+Q==} + /@next/swc-linux-arm-gnueabihf/12.2.1: + resolution: {integrity: sha512-V7ov2LXrLWuYVH/syzrzpmwWumg5rCh0siwOPNCRzVkrpgP8WoIRNdeZ/NQIj0ng+kq7gDF1jib583Lk0wbDeQ==} engines: {node: '>= 10'} cpu: [arm] os: [linux] @@ -1464,8 +1464,8 @@ packages: dev: false optional: true - /@next/swc-linux-arm64-gnu/12.2.0: - resolution: {integrity: sha512-++WAB4ElXCSOKG9H8r4ENF8EaV+w0QkrpjehmryFkQXmt5juVXz+nKDVlCRMwJU7A1O0Mie82XyEoOrf6Np1pA==} + /@next/swc-linux-arm64-gnu/12.2.1: + resolution: {integrity: sha512-HlnDQD3r4YqCj2gu6uo86oEM0ixBsyKLaPcZcGwWAD5mFG5R4zzTZG7BO2wJkGWmkzijHluE14dlTmfzc8jdEQ==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] @@ -1473,8 +1473,8 @@ packages: dev: false optional: true - /@next/swc-linux-arm64-musl/12.2.0: - resolution: {integrity: sha512-XrqkHi/VglEn5zs2CYK6ofJGQySrd+Lr4YdmfJ7IhsCnMKkQY1ma9Hv5THwhZVof3e+6oFHrQ9bWrw9K4WTjFA==} + /@next/swc-linux-arm64-musl/12.2.1: + resolution: {integrity: sha512-P8AkWd4RHbuF24ol3jk2akXpntcDI0gv5uD7eMpAOXb8W2A6y/sv0tKNSGUV3efSutOyu23jNn2EiTNxHgU4NQ==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] @@ -1482,8 +1482,8 @@ packages: dev: false optional: true - /@next/swc-linux-x64-gnu/12.2.0: - resolution: {integrity: sha512-MyhHbAKVjpn065WzRbqpLu2krj4kHLi6RITQdD1ee+uxq9r2yg5Qe02l24NxKW+1/lkmpusl4Y5Lks7rBiJn4w==} + /@next/swc-linux-x64-gnu/12.2.1: + resolution: {integrity: sha512-ZbsM+rIMqK6xi3lovspzPJoIPre3LglKrCXKLkln7rD0uiymzfLhS2VCj8u4qRynz22iAzuI4mJNpZa3AsJFrA==} engines: {node: '>= 10'} cpu: [x64] os: [linux] @@ -1491,8 +1491,8 @@ packages: dev: false optional: true - /@next/swc-linux-x64-musl/12.2.0: - resolution: {integrity: sha512-Tz1tJZ5egE0S/UqCd5V6ZPJsdSzv/8aa7FkwFmIJ9neLS8/00za+OY5pq470iZQbPrkTwpKzmfTTIPRVD5iqDg==} + /@next/swc-linux-x64-musl/12.2.1: + resolution: {integrity: sha512-JeATguMe37bviPwkIUjO7T3kcefMBQwJFLhkFTaJYGmPm12EsW1FtKcg87AI87xdGvfrHQKlM3phNaG/dkneTQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] @@ -1500,8 +1500,8 @@ packages: dev: false optional: true - /@next/swc-win32-arm64-msvc/12.2.0: - resolution: {integrity: sha512-0iRO/CPMCdCYUzuH6wXLnsfJX1ykBX4emOOvH0qIgtiZM0nVYbF8lkEyY2ph4XcsurpinS+ziWuYCXVqrOSqiw==} + /@next/swc-win32-arm64-msvc/12.2.1: + resolution: {integrity: sha512-8dal/MdrVshDKYBtloJw/RhJx140KUoRRYoRfpJ9oAdP8UXBdR0haKfg5EdOy98t8Q76apArxPsK7DfwoR1f3w==} engines: {node: '>= 10'} cpu: [arm64] os: [win32] @@ -1509,8 +1509,8 @@ packages: dev: false optional: true - /@next/swc-win32-ia32-msvc/12.2.0: - resolution: {integrity: sha512-8A26RJVcJHwIKm8xo/qk2ePRquJ6WCI2keV2qOW/Qm+ZXrPXHMIWPYABae/nKN243YFBNyPiHytjX37VrcpUhg==} + /@next/swc-win32-ia32-msvc/12.2.1: + resolution: {integrity: sha512-uSAoOBpCp4oxVD9gTY1f27hr9xNLEOCglxZPH1+FonHpM5n9Sp4H01uQHWE/Y26iHmJeUJAWxtRxEYylnO4U9A==} engines: {node: '>= 10'} cpu: [ia32] os: [win32] @@ -1518,8 +1518,8 @@ packages: dev: false optional: true - /@next/swc-win32-x64-msvc/12.2.0: - resolution: {integrity: sha512-OI14ozFLThEV3ey6jE47zrzSTV/6eIMsvbwozo+XfdWqOPwQ7X00YkRx4GVMKMC0rM44oGS2gmwMKYpe4EblnA==} + /@next/swc-win32-x64-msvc/12.2.1: + resolution: {integrity: sha512-gx4aLMAZAVjtShiCrUSszoxnzBWJWf09Lkey6mcc0jFZjbz4xkyDbp53V229DtOYTUL4t0IZJ0I7+ftQ5CYIjg==} engines: {node: '>= 10'} cpu: [x64] os: [win32] @@ -2968,20 +2968,20 @@ packages: resolution: {integrity: sha512-OjJ+fV15FXO2uQXQagLD4C0abYErBjyjE0I0FHpOEIB8upw0hg1ldFP6cqHTJBH1cZqy96OeR3u1dJ+Ez2D4Bg==} dev: true - /next-seo/5.4.0_24lkarzjpo3wcmj2o6qyrkug4y: + /next-seo/5.4.0_mhihrgpmhoktude7gn4rdcr2ka: resolution: {integrity: sha512-R9DhajPwJnR/lsF2hZ8cN8uqr5CVITsRrCG1AF5+ufcaybKYOvnH8sH9MaH4/hpkps3PQ9H71S7J7SPYixAYzQ==} peerDependencies: next: ^8.1.1-canary.54 || >=9.0.0 react: '>=16.0.0' react-dom: '>=16.0.0' dependencies: - next: 12.2.0_biqbaboplfbrettd7655fr4n2y + next: 12.2.1_biqbaboplfbrettd7655fr4n2y react: 18.2.0 react-dom: 18.2.0_react@18.2.0 dev: false - /next/12.2.0_biqbaboplfbrettd7655fr4n2y: - resolution: {integrity: sha512-B4j7D3SHYopLYx6/Ark0fenwIar9tEaZZFAaxmKjgcMMexhVJzB3jt7X+6wcdXPPMeUD6r09weUtnDpjox/vIA==} + /next/12.2.1_biqbaboplfbrettd7655fr4n2y: + resolution: {integrity: sha512-090KB5CZRlLG/GWxb8tA1ZFwqL8OfpUtH4mXA7POuisa6NL5ihiAZhfk5nRBdPHvkXuSt0n7zQaVym6SrT3Wiw==} engines: {node: '>=12.22.0'} hasBin: true peerDependencies: @@ -2998,7 +2998,7 @@ packages: sass: optional: true dependencies: - '@next/env': 12.2.0 + '@next/env': 12.2.1 '@swc/helpers': 0.4.2 caniuse-lite: 1.0.30001363 postcss: 8.4.5 @@ -3007,19 +3007,19 @@ packages: styled-jsx: 5.0.2_react@18.2.0 use-sync-external-store: 1.1.0_react@18.2.0 optionalDependencies: - '@next/swc-android-arm-eabi': 12.2.0 - '@next/swc-android-arm64': 12.2.0 - '@next/swc-darwin-arm64': 12.2.0 - '@next/swc-darwin-x64': 12.2.0 - '@next/swc-freebsd-x64': 12.2.0 - '@next/swc-linux-arm-gnueabihf': 12.2.0 - '@next/swc-linux-arm64-gnu': 12.2.0 - '@next/swc-linux-arm64-musl': 12.2.0 - '@next/swc-linux-x64-gnu': 12.2.0 - '@next/swc-linux-x64-musl': 12.2.0 - '@next/swc-win32-arm64-msvc': 12.2.0 - '@next/swc-win32-ia32-msvc': 12.2.0 - '@next/swc-win32-x64-msvc': 12.2.0 + '@next/swc-android-arm-eabi': 12.2.1 + '@next/swc-android-arm64': 12.2.1 + '@next/swc-darwin-arm64': 12.2.1 + '@next/swc-darwin-x64': 12.2.1 + '@next/swc-freebsd-x64': 12.2.1 + '@next/swc-linux-arm-gnueabihf': 12.2.1 + '@next/swc-linux-arm64-gnu': 12.2.1 + '@next/swc-linux-arm64-musl': 12.2.1 + '@next/swc-linux-x64-gnu': 12.2.1 + '@next/swc-linux-x64-musl': 12.2.1 + '@next/swc-win32-arm64-msvc': 12.2.1 + '@next/swc-win32-ia32-msvc': 12.2.1 + '@next/swc-win32-x64-msvc': 12.2.1 transitivePeerDependencies: - '@babel/core' - babel-plugin-macros diff --git a/site/tailwind.config.js b/site/tailwind.config.js index a86634e..25c51f6 100644 --- a/site/tailwind.config.js +++ b/site/tailwind.config.js @@ -1,6 +1,6 @@ module.exports = { mode: 'jit', - purge: [ + content: [ './pages/*.tsx', './pages/**/*.tsx', './pages/*.mdx', @@ -8,7 +8,6 @@ module.exports = { './components/*.tsx', './components/**/*.tsx', ], - darkMode: false, // or 'media' or 'class' theme: { extend: { boxShadow: {