@depup/nextra 4.6.1-depup.0
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/LICENSE +21 -0
- package/README.md +56 -0
- package/changes.json +110 -0
- package/dist/client/components/banner/close-banner-button.d.ts +8 -0
- package/dist/client/components/banner/close-banner-button.js +45 -0
- package/dist/client/components/banner/index.client.d.ts +5 -0
- package/dist/client/components/banner/index.client.js +46 -0
- package/dist/client/components/banner/index.d.ts +51 -0
- package/dist/client/components/banner/index.js +93 -0
- package/dist/client/components/bleed.d.ts +63 -0
- package/dist/client/components/bleed.js +54 -0
- package/dist/client/components/button.d.ts +9 -0
- package/dist/client/components/button.js +55 -0
- package/dist/client/components/callout.d.ts +136 -0
- package/dist/client/components/callout.js +99 -0
- package/dist/client/components/cards.d.ts +104 -0
- package/dist/client/components/cards.js +132 -0
- package/dist/client/components/collapse.d.ts +12 -0
- package/dist/client/components/collapse.js +143 -0
- package/dist/client/components/file-tree/file.d.ts +9 -0
- package/dist/client/components/file-tree/file.js +43 -0
- package/dist/client/components/file-tree/folder.d.ts +12 -0
- package/dist/client/components/file-tree/folder.js +94 -0
- package/dist/client/components/file-tree/index.d.ts +57 -0
- package/dist/client/components/file-tree/index.js +12 -0
- package/dist/client/components/file-tree/tree.d.ts +5 -0
- package/dist/client/components/file-tree/tree.js +41 -0
- package/dist/client/components/head.d.ts +139 -0
- package/dist/client/components/head.js +202 -0
- package/dist/client/components/image-zoom.d.ts +6 -0
- package/dist/client/components/image-zoom.js +79 -0
- package/dist/client/components/index.d.ts +56 -0
- package/dist/client/components/index.js +42 -0
- package/dist/client/components/playground.d.ts +90 -0
- package/dist/client/components/playground.js +103 -0
- package/dist/client/components/popup/index.client.d.ts +7 -0
- package/dist/client/components/popup/index.client.js +83 -0
- package/dist/client/components/popup/index.d.ts +12 -0
- package/dist/client/components/popup/index.js +11 -0
- package/dist/client/components/search.d.ts +88 -0
- package/dist/client/components/search.js +426 -0
- package/dist/client/components/select.d.ts +19 -0
- package/dist/client/components/select.js +109 -0
- package/dist/client/components/skip-nav/index.client.d.ts +5 -0
- package/dist/client/components/skip-nav/index.client.js +45 -0
- package/dist/client/components/skip-nav/index.d.ts +6 -0
- package/dist/client/components/skip-nav/index.js +24 -0
- package/dist/client/components/steps.d.ts +64 -0
- package/dist/client/components/steps.js +74 -0
- package/dist/client/components/tabs/index.client.d.ts +21 -0
- package/dist/client/components/tabs/index.client.js +243 -0
- package/dist/client/components/tabs/index.d.ts +53 -0
- package/dist/client/components/tabs/index.js +9 -0
- package/dist/client/evaluate.d.ts +30 -0
- package/dist/client/evaluate.js +17 -0
- package/dist/client/hocs/index.d.ts +4 -0
- package/dist/client/hocs/index.js +6 -0
- package/dist/client/hocs/with-github-alert.d.ts +11 -0
- package/dist/client/hocs/with-github-alert.js +30 -0
- package/dist/client/hocs/with-icons.d.ts +6 -0
- package/dist/client/hocs/with-icons.js +76 -0
- package/dist/client/hooks/index.d.ts +4 -0
- package/dist/client/hooks/index.js +10 -0
- package/dist/client/hooks/use-copy.d.ts +9 -0
- package/dist/client/hooks/use-copy.js +77 -0
- package/dist/client/hooks/use-fs-route.d.ts +3 -0
- package/dist/client/hooks/use-fs-route.js +20 -0
- package/dist/client/hooks/use-hash.d.ts +3 -0
- package/dist/client/hooks/use-hash.js +20 -0
- package/dist/client/hooks/use-mounted.d.ts +3 -0
- package/dist/client/hooks/use-mounted.js +13 -0
- package/dist/client/icons/arrow-right.d.ts +5 -0
- package/dist/client/icons/arrow-right.js +24 -0
- package/dist/client/icons/chatgpt.d.ts +2 -0
- package/dist/client/icons/chatgpt.js +24 -0
- package/dist/client/icons/check.d.ts +2 -0
- package/dist/client/icons/check.js +24 -0
- package/dist/client/icons/claude.d.ts +2 -0
- package/dist/client/icons/claude.js +81 -0
- package/dist/client/icons/copy.d.ts +2 -0
- package/dist/client/icons/copy.js +31 -0
- package/dist/client/icons/cpp.d.ts +2 -0
- package/dist/client/icons/cpp.js +24 -0
- package/dist/client/icons/cross-circled.d.ts +2 -0
- package/dist/client/icons/cross-circled.js +24 -0
- package/dist/client/icons/csharp.d.ts +2 -0
- package/dist/client/icons/csharp.js +24 -0
- package/dist/client/icons/css.d.ts +2 -0
- package/dist/client/icons/css.js +24 -0
- package/dist/client/icons/discord.d.ts +2 -0
- package/dist/client/icons/discord.js +24 -0
- package/dist/client/icons/expand.d.ts +2 -0
- package/dist/client/icons/expand.js +31 -0
- package/dist/client/icons/file.d.ts +2 -0
- package/dist/client/icons/file.js +24 -0
- package/dist/client/icons/folder-open.d.ts +2 -0
- package/dist/client/icons/folder-open.js +24 -0
- package/dist/client/icons/folder.d.ts +2 -0
- package/dist/client/icons/folder.js +24 -0
- package/dist/client/icons/github-caution.d.ts +2 -0
- package/dist/client/icons/github-caution.js +24 -0
- package/dist/client/icons/github-important.d.ts +2 -0
- package/dist/client/icons/github-important.js +24 -0
- package/dist/client/icons/github-note.d.ts +2 -0
- package/dist/client/icons/github-note.js +24 -0
- package/dist/client/icons/github-tip.d.ts +2 -0
- package/dist/client/icons/github-tip.js +24 -0
- package/dist/client/icons/github-warning.d.ts +2 -0
- package/dist/client/icons/github-warning.js +24 -0
- package/dist/client/icons/github.d.ts +2 -0
- package/dist/client/icons/github.js +24 -0
- package/dist/client/icons/globe.d.ts +2 -0
- package/dist/client/icons/globe.js +24 -0
- package/dist/client/icons/go.d.ts +2 -0
- package/dist/client/icons/go.js +46 -0
- package/dist/client/icons/graphql.d.ts +2 -0
- package/dist/client/icons/graphql.js +56 -0
- package/dist/client/icons/index.d.ts +2 -0
- package/dist/client/icons/index.js +92 -0
- package/dist/client/icons/javascript.d.ts +2 -0
- package/dist/client/icons/javascript.js +24 -0
- package/dist/client/icons/json.d.ts +2 -0
- package/dist/client/icons/json.js +41 -0
- package/dist/client/icons/link-arrow.d.ts +2 -0
- package/dist/client/icons/link-arrow.js +31 -0
- package/dist/client/icons/link.d.ts +2 -0
- package/dist/client/icons/link.js +24 -0
- package/dist/client/icons/markdown.d.ts +2 -0
- package/dist/client/icons/markdown.js +24 -0
- package/dist/client/icons/mdx.d.ts +2 -0
- package/dist/client/icons/mdx.js +24 -0
- package/dist/client/icons/menu.d.ts +2 -0
- package/dist/client/icons/menu.js +36 -0
- package/dist/client/icons/moon.d.ts +2 -0
- package/dist/client/icons/moon.js +24 -0
- package/dist/client/icons/move.d.ts +2 -0
- package/dist/client/icons/move.js +24 -0
- package/dist/client/icons/python.d.ts +2 -0
- package/dist/client/icons/python.js +31 -0
- package/dist/client/icons/react.d.ts +2 -0
- package/dist/client/icons/react.js +38 -0
- package/dist/client/icons/rust.d.ts +2 -0
- package/dist/client/icons/rust.js +31 -0
- package/dist/client/icons/spinner.d.ts +2 -0
- package/dist/client/icons/spinner.js +31 -0
- package/dist/client/icons/sun.d.ts +2 -0
- package/dist/client/icons/sun.js +24 -0
- package/dist/client/icons/svelte.d.ts +2 -0
- package/dist/client/icons/svelte.js +31 -0
- package/dist/client/icons/terminal.d.ts +2 -0
- package/dist/client/icons/terminal.js +24 -0
- package/dist/client/icons/terraform.d.ts +2 -0
- package/dist/client/icons/terraform.js +24 -0
- package/dist/client/icons/typescript.d.ts +2 -0
- package/dist/client/icons/typescript.js +24 -0
- package/dist/client/icons/word-wrap.d.ts +2 -0
- package/dist/client/icons/word-wrap.js +24 -0
- package/dist/client/icons/x.d.ts +2 -0
- package/dist/client/icons/x.js +24 -0
- package/dist/client/mdx-components/anchor.d.ts +10 -0
- package/dist/client/mdx-components/anchor.js +109 -0
- package/dist/client/mdx-components/code.d.ts +7 -0
- package/dist/client/mdx-components/code.js +52 -0
- package/dist/client/mdx-components/details.d.ts +5 -0
- package/dist/client/mdx-components/details.js +166 -0
- package/dist/client/mdx-components/image.d.ts +28 -0
- package/dist/client/mdx-components/image.js +39 -0
- package/dist/client/mdx-components/index.d.ts +11 -0
- package/dist/client/mdx-components/index.js +16 -0
- package/dist/client/mdx-components/pre/copy-to-clipboard.d.ts +5 -0
- package/dist/client/mdx-components/pre/copy-to-clipboard.js +49 -0
- package/dist/client/mdx-components/pre/index.d.ts +16 -0
- package/dist/client/mdx-components/pre/index.js +156 -0
- package/dist/client/mdx-components/pre/toggle-word-wrap-button.d.ts +7 -0
- package/dist/client/mdx-components/pre/toggle-word-wrap-button.js +31 -0
- package/dist/client/mdx-components/summary.d.ts +5 -0
- package/dist/client/mdx-components/summary.js +80 -0
- package/dist/client/mdx-components/table.d.ts +57 -0
- package/dist/client/mdx-components/table.js +95 -0
- package/dist/client/mdx-components.d.ts +89 -0
- package/dist/client/mdx-components.js +15 -0
- package/dist/client/mdx-remote.d.ts +62 -0
- package/dist/client/mdx-remote.js +36 -0
- package/dist/client/normalize-pages.d.ts +84 -0
- package/dist/client/normalize-pages.js +232 -0
- package/dist/client/package.json +1 -0
- package/dist/client/pages.d.ts +131 -0
- package/dist/client/pages.js +39 -0
- package/dist/client/remove-links.d.ts +6 -0
- package/dist/client/remove-links.js +35 -0
- package/dist/client/setup-page.d.ts +18 -0
- package/dist/client/setup-page.js +14 -0
- package/dist/server/compile-metadata.d.ts +12 -0
- package/dist/server/compile-metadata.js +39 -0
- package/dist/server/compile.d.ts +39 -0
- package/dist/server/compile.js +158 -0
- package/dist/server/constants.d.ts +15 -0
- package/dist/server/constants.js +22 -0
- package/dist/server/fetch-filepaths-from-github.d.ts +10 -0
- package/dist/server/fetch-filepaths-from-github.js +36 -0
- package/dist/server/index.d.ts +39 -0
- package/dist/server/index.js +203 -0
- package/dist/server/loader.d.ts +18 -0
- package/dist/server/loader.js +155 -0
- package/dist/server/locales.d.ts +22 -0
- package/dist/server/locales.js +38 -0
- package/dist/server/page-map/find-meta-and-page-file-paths.d.ts +8 -0
- package/dist/server/page-map/find-meta-and-page-file-paths.js +32 -0
- package/dist/server/page-map/get.d.ts +50 -0
- package/dist/server/page-map/get.js +28 -0
- package/dist/server/page-map/index-page.d.ts +21 -0
- package/dist/server/page-map/index-page.js +57 -0
- package/dist/server/page-map/index.d.ts +26 -0
- package/dist/server/page-map/index.js +24 -0
- package/dist/server/page-map/merge-meta-with-page-map.d.ts +17 -0
- package/dist/server/page-map/merge-meta-with-page-map.js +74 -0
- package/dist/server/page-map/normalize.d.ts +17 -0
- package/dist/server/page-map/normalize.js +122 -0
- package/dist/server/page-map/placeholder.d.ts +2 -0
- package/dist/server/page-map/placeholder.js +0 -0
- package/dist/server/page-map/to-ast.d.ts +18 -0
- package/dist/server/page-map/to-ast.js +47 -0
- package/dist/server/page-map/to-js.d.ts +21 -0
- package/dist/server/page-map/to-js.js +72 -0
- package/dist/server/page-map/to-page-map.d.ts +26 -0
- package/dist/server/page-map/to-page-map.js +101 -0
- package/dist/server/recma-plugins/index.d.ts +3 -0
- package/dist/server/recma-plugins/index.js +4 -0
- package/dist/server/recma-plugins/recma-rewrite.d.ts +11 -0
- package/dist/server/recma-plugins/recma-rewrite.js +98 -0
- package/dist/server/rehype-plugins/index.d.ts +18 -0
- package/dist/server/rehype-plugins/index.js +16 -0
- package/dist/server/rehype-plugins/rehype-better-react-mathjax.d.ts +24 -0
- package/dist/server/rehype-plugins/rehype-better-react-mathjax.js +96 -0
- package/dist/server/rehype-plugins/rehype-extract-toc-content.d.ts +6 -0
- package/dist/server/rehype-plugins/rehype-extract-toc-content.js +119 -0
- package/dist/server/rehype-plugins/rehype-twoslash-popup.d.ts +6 -0
- package/dist/server/rehype-plugins/rehype-twoslash-popup.js +50 -0
- package/dist/server/rehype-plugins/rehype.d.ts +21 -0
- package/dist/server/rehype-plugins/rehype.js +84 -0
- package/dist/server/remark-plugins/index.d.ts +15 -0
- package/dist/server/remark-plugins/index.js +26 -0
- package/dist/server/remark-plugins/remark-assign-frontmatter.d.ts +10 -0
- package/dist/server/remark-plugins/remark-assign-frontmatter.js +24 -0
- package/dist/server/remark-plugins/remark-custom-heading-id.d.ts +9 -0
- package/dist/server/remark-plugins/remark-custom-heading-id.js +18 -0
- package/dist/server/remark-plugins/remark-export-only-metadata.d.ts +6 -0
- package/dist/server/remark-plugins/remark-export-only-metadata.js +18 -0
- package/dist/server/remark-plugins/remark-export-source-code.d.ts +6 -0
- package/dist/server/remark-plugins/remark-export-source-code.js +35 -0
- package/dist/server/remark-plugins/remark-headings.d.ts +12 -0
- package/dist/server/remark-plugins/remark-headings.js +133 -0
- package/dist/server/remark-plugins/remark-link-rewrite.d.ts +11 -0
- package/dist/server/remark-plugins/remark-link-rewrite.js +12 -0
- package/dist/server/remark-plugins/remark-mdx-disable-explicit-jsx.d.ts +10 -0
- package/dist/server/remark-plugins/remark-mdx-disable-explicit-jsx.js +10 -0
- package/dist/server/remark-plugins/remark-mdx-frontmatter.d.ts +6 -0
- package/dist/server/remark-plugins/remark-mdx-frontmatter.js +37 -0
- package/dist/server/remark-plugins/remark-mdx-title.d.ts +10 -0
- package/dist/server/remark-plugins/remark-mdx-title.js +53 -0
- package/dist/server/remark-plugins/remark-remove-imports.d.ts +6 -0
- package/dist/server/remark-plugins/remark-remove-imports.js +12 -0
- package/dist/server/remark-plugins/remark-static-image.d.ts +6 -0
- package/dist/server/remark-plugins/remark-static-image.js +107 -0
- package/dist/server/schemas.d.ts +352 -0
- package/dist/server/schemas.js +240 -0
- package/dist/server/tsdoc/base.d.ts +38 -0
- package/dist/server/tsdoc/base.js +284 -0
- package/dist/server/tsdoc/index.d.ts +6 -0
- package/dist/server/tsdoc/index.js +10 -0
- package/dist/server/tsdoc/tsdoc.d.ts +102 -0
- package/dist/server/tsdoc/tsdoc.js +262 -0
- package/dist/server/tsdoc/types.d.ts +64 -0
- package/dist/server/tsdoc/types.js +0 -0
- package/dist/server/tsdoc/zod-to-ts.d.ts +5 -0
- package/dist/server/tsdoc/zod-to-ts.js +107 -0
- package/dist/server/twoslash.d.ts +6 -0
- package/dist/server/twoslash.js +60 -0
- package/dist/server/utils.d.ts +12 -0
- package/dist/server/utils.js +45 -0
- package/dist/types.d.ts +128 -0
- package/dist/types.generated.d.ts +203 -0
- package/dist/types.generated.js +0 -0
- package/dist/types.js +0 -0
- package/loader.cjs +24 -0
- package/package.json +265 -0
- package/styles/cards.css +24 -0
- package/styles/code-block.css +266 -0
- package/styles/default.css +55 -0
- package/styles/react-medium-image-zoom.css +101 -0
- package/styles/scrollbar.css +14 -0
- package/styles/steps.css +22 -0
- package/styles/subheading-anchor.css +25 -0
package/package.json
ADDED
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@depup/nextra",
|
|
3
|
+
"version": "4.6.1-depup.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Next.js and MDX based site generator. (with updated dependencies)",
|
|
6
|
+
"repository": "https://github.com/shuding/nextra",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": ">=18"
|
|
10
|
+
},
|
|
11
|
+
"types": "./dist/server/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
"./package.json": "./package.json",
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/server/index.d.ts",
|
|
16
|
+
"import": "./dist/server/index.js",
|
|
17
|
+
"require": "./dist/server/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./components": {
|
|
20
|
+
"types": "./dist/client/components/index.d.ts",
|
|
21
|
+
"import": "./dist/client/components/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./hooks": {
|
|
24
|
+
"types": "./dist/client/hooks/index.d.ts",
|
|
25
|
+
"import": "./dist/client/hooks/index.js"
|
|
26
|
+
},
|
|
27
|
+
"./icons": {
|
|
28
|
+
"types": "./dist/client/icons/index.d.ts",
|
|
29
|
+
"import": "./dist/client/icons/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./compile": {
|
|
32
|
+
"types": "./dist/server/compile.d.ts",
|
|
33
|
+
"import": "./dist/server/compile.js"
|
|
34
|
+
},
|
|
35
|
+
"./locales": {
|
|
36
|
+
"types": "./dist/server/locales.d.ts",
|
|
37
|
+
"import": "./dist/server/locales.js"
|
|
38
|
+
},
|
|
39
|
+
"./fetch-filepaths-from-github": {
|
|
40
|
+
"types": "./dist/server/fetch-filepaths-from-github.d.ts",
|
|
41
|
+
"import": "./dist/server/fetch-filepaths-from-github.js"
|
|
42
|
+
},
|
|
43
|
+
"./page-map": {
|
|
44
|
+
"types": "./dist/server/page-map/index.d.ts",
|
|
45
|
+
"import": "./dist/server/page-map/index.js"
|
|
46
|
+
},
|
|
47
|
+
"./schemas": {
|
|
48
|
+
"types": "./dist/server/schemas.d.ts",
|
|
49
|
+
"import": "./dist/server/schemas.js"
|
|
50
|
+
},
|
|
51
|
+
"./tsdoc": {
|
|
52
|
+
"types": "./dist/server/tsdoc/index.d.ts",
|
|
53
|
+
"import": "./dist/server/tsdoc/index.js"
|
|
54
|
+
},
|
|
55
|
+
"./merge-meta-with-page-map": {
|
|
56
|
+
"types": "./dist/server/page-map/merge-meta-with-page-map.d.ts",
|
|
57
|
+
"import": "./dist/server/page-map/merge-meta-with-page-map.js"
|
|
58
|
+
},
|
|
59
|
+
"./*": {
|
|
60
|
+
"types": "./dist/client/*.d.ts",
|
|
61
|
+
"import": "./dist/client/*.js"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"files": [
|
|
65
|
+
"dist",
|
|
66
|
+
"loader.cjs",
|
|
67
|
+
"styles",
|
|
68
|
+
"changes.json",
|
|
69
|
+
"README.md"
|
|
70
|
+
],
|
|
71
|
+
"peerDependencies": {
|
|
72
|
+
"next": ">=14",
|
|
73
|
+
"react": ">=18",
|
|
74
|
+
"react-dom": ">=18"
|
|
75
|
+
},
|
|
76
|
+
"dependencies": {
|
|
77
|
+
"@formatjs/intl-localematcher": "^0.8.2",
|
|
78
|
+
"@headlessui/react": "^2.2.9",
|
|
79
|
+
"@mdx-js/mdx": "^3.1.1",
|
|
80
|
+
"@napi-rs/simple-git": "^0.1.22",
|
|
81
|
+
"@shikijs/twoslash": "^4.0.2",
|
|
82
|
+
"@theguild/remark-mermaid": "^0.3.0",
|
|
83
|
+
"@theguild/remark-npm2yarn": "^0.3.3",
|
|
84
|
+
"better-react-mathjax": "^3.0.0",
|
|
85
|
+
"clsx": "^2.1.1",
|
|
86
|
+
"estree-util-to-js": "^2.0.0",
|
|
87
|
+
"estree-util-value-to-estree": "^3.5.0",
|
|
88
|
+
"fast-glob": "^3.3.3",
|
|
89
|
+
"github-slugger": "^2.0.0",
|
|
90
|
+
"hast-util-to-estree": "^3.1.3",
|
|
91
|
+
"katex": "^0.16.38",
|
|
92
|
+
"mdast-util-from-markdown": "^2.0.3",
|
|
93
|
+
"mdast-util-gfm": "^3.1.0",
|
|
94
|
+
"mdast-util-to-hast": "^13.2.1",
|
|
95
|
+
"negotiator": "^1.0.0",
|
|
96
|
+
"react-compiler-runtime": "^19.1.0-rc.2",
|
|
97
|
+
"react-medium-image-zoom": "^5.4.1",
|
|
98
|
+
"rehype-katex": "^7.0.1",
|
|
99
|
+
"rehype-pretty-code": "^0.14.3",
|
|
100
|
+
"rehype-raw": "^7.0.0",
|
|
101
|
+
"remark-frontmatter": "^5.0.0",
|
|
102
|
+
"remark-gfm": "^4.0.1",
|
|
103
|
+
"remark-math": "^6.0.0",
|
|
104
|
+
"remark-reading-time": "^2.1.0",
|
|
105
|
+
"remark-smartypants": "^3.0.2",
|
|
106
|
+
"server-only": "^0.0.1",
|
|
107
|
+
"shiki": "^4.0.2",
|
|
108
|
+
"slash": "^5.1.0",
|
|
109
|
+
"title": "^4.0.1",
|
|
110
|
+
"ts-morph": "^27.0.2",
|
|
111
|
+
"unist-util-remove": "^4.0.0",
|
|
112
|
+
"unist-util-visit": "^5.1.0",
|
|
113
|
+
"unist-util-visit-children": "^3.0.0",
|
|
114
|
+
"yaml": "^2.8.2",
|
|
115
|
+
"zod": "^4.3.6"
|
|
116
|
+
},
|
|
117
|
+
"devDependencies": {
|
|
118
|
+
"@svgr/plugin-svgo": "^8.1.0",
|
|
119
|
+
"@testing-library/react": "^16.0.0",
|
|
120
|
+
"@types/estree": "^1.0.5",
|
|
121
|
+
"@types/hast": "^3.0.4",
|
|
122
|
+
"@types/mdast": "^4.0.4",
|
|
123
|
+
"@types/negotiator": "^0.6.3",
|
|
124
|
+
"@types/react": "^19.1.8",
|
|
125
|
+
"@types/webpack": "^5.28.5",
|
|
126
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
127
|
+
"esbuild-plugin-svgr": "^3.1.1",
|
|
128
|
+
"mdast-util-mdx-jsx": "^3.1.3",
|
|
129
|
+
"mdast-util-mdxjs-esm": "^2.0.1",
|
|
130
|
+
"next": "^16.0.7",
|
|
131
|
+
"react": "19.1.0",
|
|
132
|
+
"react-dom": "19.1.0",
|
|
133
|
+
"unified": "^11.0.5",
|
|
134
|
+
"vitest": "^3.0.0",
|
|
135
|
+
"esbuild-react-compiler-plugin": "0.0.0"
|
|
136
|
+
},
|
|
137
|
+
"sideEffects": false,
|
|
138
|
+
"scripts": {
|
|
139
|
+
"build": "NODE_ENV=production tsup",
|
|
140
|
+
"dev": "NODE_OPTIONS=--max_old_space_size=8192 tsup --watch",
|
|
141
|
+
"test": "vitest --typecheck",
|
|
142
|
+
"types:check": "tsc --noEmit"
|
|
143
|
+
},
|
|
144
|
+
"keywords": [
|
|
145
|
+
"nextra",
|
|
146
|
+
"depup",
|
|
147
|
+
"updated-dependencies",
|
|
148
|
+
"security",
|
|
149
|
+
"latest",
|
|
150
|
+
"patched"
|
|
151
|
+
],
|
|
152
|
+
"depup": {
|
|
153
|
+
"changes": {
|
|
154
|
+
"@formatjs/intl-localematcher": {
|
|
155
|
+
"from": "^0.6.0",
|
|
156
|
+
"to": "^0.8.2"
|
|
157
|
+
},
|
|
158
|
+
"@headlessui/react": {
|
|
159
|
+
"from": "^2.1.2",
|
|
160
|
+
"to": "^2.2.9"
|
|
161
|
+
},
|
|
162
|
+
"@mdx-js/mdx": {
|
|
163
|
+
"from": "^3.0.0",
|
|
164
|
+
"to": "^3.1.1"
|
|
165
|
+
},
|
|
166
|
+
"@napi-rs/simple-git": {
|
|
167
|
+
"from": "^0.1.9",
|
|
168
|
+
"to": "^0.1.22"
|
|
169
|
+
},
|
|
170
|
+
"@shikijs/twoslash": {
|
|
171
|
+
"from": "^3.2.1",
|
|
172
|
+
"to": "^4.0.2"
|
|
173
|
+
},
|
|
174
|
+
"@theguild/remark-npm2yarn": {
|
|
175
|
+
"from": "^0.3.2",
|
|
176
|
+
"to": "^0.3.3"
|
|
177
|
+
},
|
|
178
|
+
"better-react-mathjax": {
|
|
179
|
+
"from": "^2.3.0",
|
|
180
|
+
"to": "^3.0.0"
|
|
181
|
+
},
|
|
182
|
+
"clsx": {
|
|
183
|
+
"from": "^2.1.0",
|
|
184
|
+
"to": "^2.1.1"
|
|
185
|
+
},
|
|
186
|
+
"estree-util-value-to-estree": {
|
|
187
|
+
"from": "^3.3.3",
|
|
188
|
+
"to": "^3.5.0"
|
|
189
|
+
},
|
|
190
|
+
"fast-glob": {
|
|
191
|
+
"from": "^3.3.2",
|
|
192
|
+
"to": "^3.3.3"
|
|
193
|
+
},
|
|
194
|
+
"hast-util-to-estree": {
|
|
195
|
+
"from": "^3.1.0",
|
|
196
|
+
"to": "^3.1.3"
|
|
197
|
+
},
|
|
198
|
+
"katex": {
|
|
199
|
+
"from": "^0.16.21",
|
|
200
|
+
"to": "^0.16.38"
|
|
201
|
+
},
|
|
202
|
+
"mdast-util-from-markdown": {
|
|
203
|
+
"from": "^2.0.1",
|
|
204
|
+
"to": "^2.0.3"
|
|
205
|
+
},
|
|
206
|
+
"mdast-util-gfm": {
|
|
207
|
+
"from": "^3.0.0",
|
|
208
|
+
"to": "^3.1.0"
|
|
209
|
+
},
|
|
210
|
+
"mdast-util-to-hast": {
|
|
211
|
+
"from": "^13.2.0",
|
|
212
|
+
"to": "^13.2.1"
|
|
213
|
+
},
|
|
214
|
+
"react-medium-image-zoom": {
|
|
215
|
+
"from": "^5.2.12",
|
|
216
|
+
"to": "^5.4.1"
|
|
217
|
+
},
|
|
218
|
+
"rehype-katex": {
|
|
219
|
+
"from": "^7.0.0",
|
|
220
|
+
"to": "^7.0.1"
|
|
221
|
+
},
|
|
222
|
+
"rehype-pretty-code": {
|
|
223
|
+
"from": "0.14.1",
|
|
224
|
+
"to": "^0.14.3"
|
|
225
|
+
},
|
|
226
|
+
"remark-gfm": {
|
|
227
|
+
"from": "^4.0.0",
|
|
228
|
+
"to": "^4.0.1"
|
|
229
|
+
},
|
|
230
|
+
"remark-reading-time": {
|
|
231
|
+
"from": "^2.0.2",
|
|
232
|
+
"to": "^2.1.0"
|
|
233
|
+
},
|
|
234
|
+
"remark-smartypants": {
|
|
235
|
+
"from": "^3.0.0",
|
|
236
|
+
"to": "^3.0.2"
|
|
237
|
+
},
|
|
238
|
+
"shiki": {
|
|
239
|
+
"from": "^3.2.1",
|
|
240
|
+
"to": "^4.0.2"
|
|
241
|
+
},
|
|
242
|
+
"ts-morph": {
|
|
243
|
+
"from": "^27.0.0",
|
|
244
|
+
"to": "^27.0.2"
|
|
245
|
+
},
|
|
246
|
+
"unist-util-visit": {
|
|
247
|
+
"from": "^5.0.0",
|
|
248
|
+
"to": "^5.1.0"
|
|
249
|
+
},
|
|
250
|
+
"yaml": {
|
|
251
|
+
"from": "^2.3.2",
|
|
252
|
+
"to": "^2.8.2"
|
|
253
|
+
},
|
|
254
|
+
"zod": {
|
|
255
|
+
"from": "^4.1.12",
|
|
256
|
+
"to": "^4.3.6"
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
"depsUpdated": 26,
|
|
260
|
+
"originalPackage": "nextra",
|
|
261
|
+
"originalVersion": "4.6.1",
|
|
262
|
+
"processedAt": "2026-03-18T22:03:32.138Z",
|
|
263
|
+
"smokeTest": "failed"
|
|
264
|
+
}
|
|
265
|
+
}
|
package/styles/cards.css
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.nextra-cards {
|
|
2
|
+
grid-template-columns: repeat(
|
|
3
|
+
auto-fill,
|
|
4
|
+
minmax(max(250px, calc((100% - 1rem * 2) / var(--rows))), 1fr)
|
|
5
|
+
);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.nextra-card {
|
|
9
|
+
img {
|
|
10
|
+
@apply x:select-none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
& > span > svg {
|
|
14
|
+
@apply x:w-6 x:h-auto x:transition x:text-black/50 x:dark:text-white/50 x:shrink-0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&:hover > span > svg {
|
|
18
|
+
@apply x:text-current!;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
p {
|
|
22
|
+
@apply x:mt-2;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
.nextra-code span {
|
|
2
|
+
@apply x:bg-(--shiki-light-bg) x:text-(--shiki-light);
|
|
3
|
+
@apply x:dark:bg-(--shiki-dark-bg) x:dark:text-(--shiki-dark);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
code.nextra-code {
|
|
7
|
+
box-decoration-break: slice;
|
|
8
|
+
font-feature-settings:
|
|
9
|
+
'rlig' 1,
|
|
10
|
+
'calt' 1,
|
|
11
|
+
'ss01' 1;
|
|
12
|
+
@apply x:text-sm;
|
|
13
|
+
|
|
14
|
+
:not(pre) > &:not([class*='twoslash-']) {
|
|
15
|
+
@apply x:p-[.12em_.25em];
|
|
16
|
+
@apply x:rounded-[.375em];
|
|
17
|
+
@apply x:border-black/[0.04] x:bg-black/[0.03] x:break-words x:border x:text-[.9em];
|
|
18
|
+
@apply x:dark:border-white/10 x:dark:bg-white/10;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
pre code.nextra-code:not([class*='twoslash-']) {
|
|
23
|
+
@apply x:grid;
|
|
24
|
+
counter-reset: line;
|
|
25
|
+
|
|
26
|
+
&[data-line-numbers] > span {
|
|
27
|
+
@apply x:pl-2;
|
|
28
|
+
@apply x:before:text-gray-600 x:dark:before:text-gray-400;
|
|
29
|
+
&::before {
|
|
30
|
+
counter-increment: line;
|
|
31
|
+
content: counter(line);
|
|
32
|
+
@apply x:inline-block x:pr-4 x:text-right x:min-w-[2.6rem];
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
& > span {
|
|
37
|
+
@apply x:px-4;
|
|
38
|
+
|
|
39
|
+
&[data-highlighted-line] {
|
|
40
|
+
@apply x:bg-primary-600/10 x:dark:bg-primary-600/20 x:text-primary-600/80! x:shadow-[2px_0_currentColor_inset];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[data-highlighted-chars] {
|
|
44
|
+
@apply x:rounded-sm x:ring-2 x:ring-primary-600/20 x:dark:ring-primary-600/40;
|
|
45
|
+
@apply x:bg-primary-600/20 x:dark:bg-primary-600/40;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
html[data-nextra-word-wrap] & {
|
|
50
|
+
@apply x:max-md:whitespace-pre-wrap;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.nextra-copy-icon {
|
|
55
|
+
animation: fade-in 0.3s ease forwards;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@keyframes fade-in {
|
|
59
|
+
0% {
|
|
60
|
+
opacity: 0;
|
|
61
|
+
}
|
|
62
|
+
100% {
|
|
63
|
+
opacity: 1;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* ===== Basic ===== */
|
|
68
|
+
:root {
|
|
69
|
+
--twoslash-border-color: #8888;
|
|
70
|
+
--twoslash-underline-color: currentColor;
|
|
71
|
+
--twoslash-highlighted-border: 195, 125, 13;
|
|
72
|
+
--twoslash-popup-bg: #f8f8f8;
|
|
73
|
+
--twoslash-popup-color: inherit;
|
|
74
|
+
--twoslash-popup-shadow: rgba(0, 0, 0.08) 0px 1px 4px;
|
|
75
|
+
--twoslash-docs-color: #888;
|
|
76
|
+
--twoslash-docs-font: sans-serif;
|
|
77
|
+
--twoslash-matched-color: inherit;
|
|
78
|
+
--twoslash-unmatched-color: #888;
|
|
79
|
+
--twoslash-cursor-color: #8888;
|
|
80
|
+
--twoslash-error-color: 212, 86, 86;
|
|
81
|
+
--twoslash-error-bg: rgba(var(--twoslash-error-color), 0.13);
|
|
82
|
+
--twoslash-tag-color: 55, 114, 207;
|
|
83
|
+
--twoslash-tag-warn-color: 195, 125, 13;
|
|
84
|
+
--twoslash-tag-annotate-color: 27, 166, 115;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.dark {
|
|
88
|
+
--twoslash-popup-bg: #000;
|
|
89
|
+
--twoslash-border-color: #404040;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Respect people's wishes to not have animations */
|
|
93
|
+
@media (prefers-reduced-motion: reduce) {
|
|
94
|
+
.twoslash * {
|
|
95
|
+
transition: none !important;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* ===== Hover Info ===== */
|
|
100
|
+
.twoslash:hover .twoslash-hover {
|
|
101
|
+
border-color: var(--twoslash-underline-color);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.twoslash-hover {
|
|
105
|
+
border-bottom: 1px dotted transparent;
|
|
106
|
+
transition-timing-function: ease;
|
|
107
|
+
transition: border-color 0.3s;
|
|
108
|
+
position: relative;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.twoslash-popup-container {
|
|
112
|
+
@apply x:inline-flex x:flex-col x:absolute x:transition-opacity x:duration-300 x:z-10 x:mt-1.5 x:rounded;
|
|
113
|
+
transform: translateY(1.1em);
|
|
114
|
+
background: var(--twoslash-popup-bg) !important;
|
|
115
|
+
color: var(--twoslash-popup-color);
|
|
116
|
+
border: 1px solid var(--twoslash-border-color);
|
|
117
|
+
text-align: left;
|
|
118
|
+
/*box-shadow: var(--twoslash-popup-shadow);*/
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.twoslash-query-presisted .twoslash-popup-container {
|
|
122
|
+
z-index: 9;
|
|
123
|
+
transform: translateY(1.5em);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.twoslash-popup-arrow {
|
|
127
|
+
@apply x:absolute x:-top-1 x:border-t x:border-r x:size-1.5 x:-rotate-45;
|
|
128
|
+
@apply x:border-(--twoslash-border-color) x:bg-(--twoslash-popup-bg);
|
|
129
|
+
left: 1em;
|
|
130
|
+
pointer-events: none;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.twoslash-popup-code,
|
|
134
|
+
.twoslash-popup-docs {
|
|
135
|
+
padding: 6px 8px;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.twoslash-popup-docs {
|
|
139
|
+
@apply x:text-sm;
|
|
140
|
+
color: var(--twoslash-docs-color);
|
|
141
|
+
font-family: var(--twoslash-docs-font);
|
|
142
|
+
border-top: 1px solid var(--twoslash-border-color);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.twoslash-popup-docs-tags {
|
|
146
|
+
display: flex;
|
|
147
|
+
flex-direction: column;
|
|
148
|
+
font-family: var(--twoslash-docs-font);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.twoslash-popup-docs-tags,
|
|
152
|
+
.twoslash-popup-docs-tag-name {
|
|
153
|
+
margin-right: 0.5em;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* ===== Error Line ===== */
|
|
157
|
+
.twoslash-error-line {
|
|
158
|
+
position: relative;
|
|
159
|
+
background-color: var(--twoslash-error-bg);
|
|
160
|
+
border-left: 3px solid currentColor;
|
|
161
|
+
color: rgb(var(--twoslash-error-color));
|
|
162
|
+
padding: 6px 12px;
|
|
163
|
+
margin: 0.2em 0;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.twoslash-error {
|
|
167
|
+
background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%206%203'%20enable-background%3D'new%200%200%206%203'%20height%3D'3'%20width%3D'6'%3E%3Cg%20fill%3D'%23c94824'%3E%3Cpolygon%20points%3D'5.5%2C0%202.5%2C3%201.1%2C3%204.1%2C0'%2F%3E%3Cpolygon%20points%3D'4%2C0%206%2C2%206%2C0.6%205.4%2C0'%2F%3E%3Cpolygon%20points%3D'0%2C2%201%2C3%202.4%2C3%200%2C0.6'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")
|
|
168
|
+
repeat-x bottom left;
|
|
169
|
+
padding-bottom: 2px;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* ===== Completeions ===== */
|
|
173
|
+
.twoslash-completion-cursor {
|
|
174
|
+
position: relative;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.twoslash-completion-cursor .twoslash-completion-list {
|
|
178
|
+
@apply x:absolute x:left-0 x:border x:top-1 x:rounded;
|
|
179
|
+
transform: translate(0, 1.2em);
|
|
180
|
+
background: var(--twoslash-popup-bg);
|
|
181
|
+
border-color: var(--twoslash-border-color);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.twoslash-completion-list {
|
|
185
|
+
@apply x:py-1 x:px-2 x:w-60;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.twoslash-completion-list::before {
|
|
189
|
+
background-color: var(--twoslash-cursor-color);
|
|
190
|
+
width: 2px;
|
|
191
|
+
position: absolute;
|
|
192
|
+
top: -1.6em;
|
|
193
|
+
height: 1.4em;
|
|
194
|
+
left: -1px;
|
|
195
|
+
content: ' ';
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.twoslash-completion-list li {
|
|
199
|
+
overflow: hidden;
|
|
200
|
+
display: flex;
|
|
201
|
+
align-items: center;
|
|
202
|
+
gap: 0.25em;
|
|
203
|
+
line-height: 1em;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.twoslash-completion-list li span.twoslash-completions-unmatched {
|
|
207
|
+
color: var(--twoslash-unmatched-color);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.twoslash-completion-list .deprecated {
|
|
211
|
+
text-decoration: line-through;
|
|
212
|
+
opacity: 0.5;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.twoslash-completion-list li span.twoslash-completions-matched {
|
|
216
|
+
color: var(--twoslash-matched-color);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/* Highlights */
|
|
220
|
+
.twoslash-highlighted {
|
|
221
|
+
background-color: rgba(var(--twoslash-highlighted-border), 0.13);
|
|
222
|
+
border: 1px solid rgba(var(--twoslash-highlighted-border), 0.31);
|
|
223
|
+
padding: 1px 2px;
|
|
224
|
+
margin: -1px -3px;
|
|
225
|
+
border-radius: 4px;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/* Icons */
|
|
229
|
+
.twoslash-completion-list .twoslash-completions-icon {
|
|
230
|
+
color: var(--twoslash-unmatched-color);
|
|
231
|
+
width: 1em;
|
|
232
|
+
flex: none;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/* Custom Tags */
|
|
236
|
+
.twoslash-tag-line {
|
|
237
|
+
position: relative;
|
|
238
|
+
background-color: rgba(var(--twoslash-tag-color), 0.13);
|
|
239
|
+
border-left: 3px solid currentColor;
|
|
240
|
+
color: rgb(var(--twoslash-tag-color));
|
|
241
|
+
padding: 6px 10px;
|
|
242
|
+
margin: 0.2em 0;
|
|
243
|
+
display: flex;
|
|
244
|
+
align-items: center;
|
|
245
|
+
gap: 0.3em;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.twoslash-tag-line .twoslash-tag-icon {
|
|
249
|
+
width: 1.1em;
|
|
250
|
+
color: inherit;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.twoslash-tag-line.twoslash-tag-error-line {
|
|
254
|
+
background-color: var(--twoslash-error-bg);
|
|
255
|
+
color: rgb(var(--twoslash-error-color));
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.twoslash-tag-line.twoslash-tag-warn-line {
|
|
259
|
+
background-color: rgba(var(--twoslash-tag-warn-color), 0.13);
|
|
260
|
+
color: rgb(var(--twoslash-tag-warn-color));
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.twoslash-tag-line.twoslash-tag-annotate-line {
|
|
264
|
+
background-color: rgba(var(--twoslash-tag-annotate-color), 0.13);
|
|
265
|
+
color: rgb(var(--twoslash-tag-annotate-color));
|
|
266
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@source '../src/client/icons/*.svg';
|
|
2
|
+
@source '../src/client/{components,hocs,mdx-components}/**/*.tsx';
|
|
3
|
+
@source '../src/server/tsdoc/**/*.tsx';
|
|
4
|
+
@variant dark (&:where(.dark *));
|
|
5
|
+
|
|
6
|
+
@theme {
|
|
7
|
+
--color-nextra-bg: rgb(var(--nextra-bg));
|
|
8
|
+
--color-primary-50: hsl(
|
|
9
|
+
var(--nextra-primary-hue) var(--nextra-primary-saturation)
|
|
10
|
+
calc(var(--nextra-primary-lightness) + 52%)
|
|
11
|
+
);
|
|
12
|
+
--color-primary-100: hsl(
|
|
13
|
+
var(--nextra-primary-hue) var(--nextra-primary-saturation)
|
|
14
|
+
calc(var(--nextra-primary-lightness) + 49%)
|
|
15
|
+
);
|
|
16
|
+
--color-primary-200: hsl(
|
|
17
|
+
var(--nextra-primary-hue) var(--nextra-primary-saturation)
|
|
18
|
+
calc(var(--nextra-primary-lightness) + 41%)
|
|
19
|
+
);
|
|
20
|
+
--color-primary-300: hsl(
|
|
21
|
+
var(--nextra-primary-hue) var(--nextra-primary-saturation)
|
|
22
|
+
calc(var(--nextra-primary-lightness) + 32%)
|
|
23
|
+
);
|
|
24
|
+
--color-primary-400: hsl(
|
|
25
|
+
var(--nextra-primary-hue) var(--nextra-primary-saturation)
|
|
26
|
+
calc(var(--nextra-primary-lightness) + 21%)
|
|
27
|
+
);
|
|
28
|
+
--color-primary-500: hsl(
|
|
29
|
+
var(--nextra-primary-hue) var(--nextra-primary-saturation)
|
|
30
|
+
calc(var(--nextra-primary-lightness) + 5%)
|
|
31
|
+
);
|
|
32
|
+
--color-primary-600: hsl(
|
|
33
|
+
var(--nextra-primary-hue) var(--nextra-primary-saturation)
|
|
34
|
+
var(--nextra-primary-lightness)
|
|
35
|
+
);
|
|
36
|
+
--color-primary-700: hsl(
|
|
37
|
+
var(--nextra-primary-hue) var(--nextra-primary-saturation)
|
|
38
|
+
calc(var(--nextra-primary-lightness) - 6%)
|
|
39
|
+
);
|
|
40
|
+
--color-primary-800: hsl(
|
|
41
|
+
var(--nextra-primary-hue) var(--nextra-primary-saturation)
|
|
42
|
+
calc(var(--nextra-primary-lightness) - 13%)
|
|
43
|
+
);
|
|
44
|
+
--color-primary-900: hsl(
|
|
45
|
+
var(--nextra-primary-hue) var(--nextra-primary-saturation)
|
|
46
|
+
calc(var(--nextra-primary-lightness) - 21%)
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Fixes extra margin-top inside Tabs.Tab
|
|
51
|
+
* https://github.com/shuding/nextra/issues/4303#issuecomment-2695040708
|
|
52
|
+
*/
|
|
53
|
+
[data-headlessui-state='selected'] > h3[style^='visibility:'] + * {
|
|
54
|
+
@apply x:mt-0;
|
|
55
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
[data-rmiz-ghost] {
|
|
2
|
+
position: absolute;
|
|
3
|
+
pointer-events: none;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
[data-rmiz-btn-zoom],
|
|
7
|
+
[data-rmiz-btn-unzoom] {
|
|
8
|
+
@apply x:bg-black/70 x:text-white x:dark:bg-white/70 x:dark:text-black x:rounded-full x:size-10;
|
|
9
|
+
outline-offset: 2px;
|
|
10
|
+
padding: 9px;
|
|
11
|
+
touch-action: manipulation;
|
|
12
|
+
appearance: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-rmiz-btn-zoom] {
|
|
16
|
+
position: absolute;
|
|
17
|
+
inset: 10px 10px auto auto;
|
|
18
|
+
cursor: zoom-in;
|
|
19
|
+
|
|
20
|
+
&:not(:focus):not(:active) {
|
|
21
|
+
position: absolute;
|
|
22
|
+
clip: rect(0 0 0 0);
|
|
23
|
+
clip-path: inset(50%);
|
|
24
|
+
height: 1px;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
pointer-events: none;
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
width: 1px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[data-rmiz-btn-unzoom] {
|
|
33
|
+
position: absolute;
|
|
34
|
+
inset: 20px 20px auto auto;
|
|
35
|
+
cursor: zoom-out;
|
|
36
|
+
z-index: 1;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[data-rmiz-content='found'] {
|
|
40
|
+
img,
|
|
41
|
+
svg,
|
|
42
|
+
[role='img'],
|
|
43
|
+
[data-zoom] {
|
|
44
|
+
cursor: zoom-in;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
[data-rmiz-modal]::backdrop {
|
|
49
|
+
display: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[data-rmiz-modal][open] {
|
|
53
|
+
position: fixed;
|
|
54
|
+
width: 100vw;
|
|
55
|
+
width: 100dvw;
|
|
56
|
+
height: 100vh;
|
|
57
|
+
height: 100dvh;
|
|
58
|
+
max-width: none;
|
|
59
|
+
max-height: none;
|
|
60
|
+
margin: 0;
|
|
61
|
+
padding: 0;
|
|
62
|
+
border: 0;
|
|
63
|
+
background: transparent;
|
|
64
|
+
overflow: hidden;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
[data-rmiz-modal-overlay] {
|
|
68
|
+
position: absolute;
|
|
69
|
+
inset: 0;
|
|
70
|
+
transition: opacity 0.3s;
|
|
71
|
+
background: rgba(var(--nextra-bg), 0.8);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
[data-rmiz-modal-overlay='hidden'] {
|
|
75
|
+
opacity: 0%;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
[data-rmiz-modal-overlay='visible'] {
|
|
79
|
+
opacity: 100%;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
[data-rmiz-modal-content] {
|
|
83
|
+
position: relative;
|
|
84
|
+
width: 100%;
|
|
85
|
+
height: 100%;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
[data-rmiz-modal-img] {
|
|
89
|
+
position: absolute;
|
|
90
|
+
cursor: zoom-out;
|
|
91
|
+
image-rendering: high-quality;
|
|
92
|
+
transform-origin: top left;
|
|
93
|
+
transition: transform 0.3s;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@media (prefers-reduced-motion: reduce) {
|
|
97
|
+
[data-rmiz-modal-overlay],
|
|
98
|
+
[data-rmiz-modal-img] {
|
|
99
|
+
transition-duration: 0.01ms;
|
|
100
|
+
}
|
|
101
|
+
}
|