@docusaurus/theme-classic 3.8.1-canary-6399 → 3.8.1-canary-6401
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/lib/theme/Blog/Components/Author/Socials/index.js +3 -1
- package/lib/theme/Icon/Socials/Default/index.js +6 -6
- package/lib/theme/Icon/Socials/Email/index.d.ts +9 -0
- package/lib/theme/Icon/Socials/Email/index.js +25 -0
- package/lib/theme/Tabs/index.js +9 -1
- package/package.json +15 -15
- package/src/theme/Blog/Components/Author/Socials/index.tsx +3 -1
- package/src/theme/Icon/Socials/Default/index.tsx +6 -6
- package/src/theme/Icon/Socials/Email/index.tsx +28 -0
- package/src/theme/Tabs/index.tsx +9 -1
- package/src/theme-classic.d.ts +8 -0
|
@@ -19,6 +19,7 @@ import Threads from '@theme/Icon/Socials/Threads';
|
|
|
19
19
|
import Youtube from '@theme/Icon/Socials/YouTube';
|
|
20
20
|
import Mastodon from '@theme/Icon/Socials/Mastodon';
|
|
21
21
|
import Twitch from '@theme/Icon/Socials/Twitch';
|
|
22
|
+
import Email from '@theme/Icon/Socials/Email';
|
|
22
23
|
import styles from './styles.module.css';
|
|
23
24
|
const SocialPlatformConfigs = {
|
|
24
25
|
twitter: {Icon: Twitter, label: 'Twitter'},
|
|
@@ -32,6 +33,7 @@ const SocialPlatformConfigs = {
|
|
|
32
33
|
mastodon: {Icon: Mastodon, label: 'Mastodon'},
|
|
33
34
|
youtube: {Icon: Youtube, label: 'YouTube'},
|
|
34
35
|
twitch: {Icon: Twitch, label: 'Twitch'},
|
|
36
|
+
email: {Icon: Email, label: 'Email'},
|
|
35
37
|
};
|
|
36
38
|
function getSocialPlatformConfig(platformKey) {
|
|
37
39
|
return (
|
|
@@ -45,7 +47,7 @@ function SocialLink({platform, link}) {
|
|
|
45
47
|
const {Icon, label} = getSocialPlatformConfig(platform);
|
|
46
48
|
return (
|
|
47
49
|
<Link className={styles.authorSocialLink} href={link} title={label}>
|
|
48
|
-
<Icon className={clsx(styles.
|
|
50
|
+
<Icon className={clsx(styles.authorSocialIcon)} />
|
|
49
51
|
</Link>
|
|
50
52
|
);
|
|
51
53
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
// SVG Source: https://
|
|
7
|
+
// SVG Source: https://github.com/tabler/tabler-icons
|
|
8
8
|
function DefaultSocial(props) {
|
|
9
9
|
return (
|
|
10
10
|
<svg
|
|
@@ -19,11 +19,11 @@ function DefaultSocial(props) {
|
|
|
19
19
|
strokeLinejoin="round"
|
|
20
20
|
{...props}>
|
|
21
21
|
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
22
|
-
<path d="
|
|
23
|
-
<path d="
|
|
24
|
-
<path d="
|
|
25
|
-
<path d="M11.
|
|
26
|
-
<path d="M12.
|
|
22
|
+
<path d="M1.2 12a10.8 10.8 0 1 0 21.6 0a10.8 10.8 0 0 0 -21.6 0" />
|
|
23
|
+
<path d="M1.92 8.4h20.16" />
|
|
24
|
+
<path d="M1.92 15.6h20.16" />
|
|
25
|
+
<path d="M11.4 1.2a20.4 20.4 0 0 0 0 21.6" />
|
|
26
|
+
<path d="M12.6 1.2a20.4 20.4 0 0 1 0 21.6" />
|
|
27
27
|
</svg>
|
|
28
28
|
);
|
|
29
29
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import type { ReactNode, SVGProps } from 'react';
|
|
8
|
+
declare function Email(props: SVGProps<SVGSVGElement>): ReactNode;
|
|
9
|
+
export default Email;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
// SVG Source: https://github.com/tabler/tabler-icons
|
|
8
|
+
function Email(props) {
|
|
9
|
+
return (
|
|
10
|
+
<svg
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
viewBox="0 0 24 24"
|
|
13
|
+
fill="none"
|
|
14
|
+
stroke="currentColor"
|
|
15
|
+
strokeLinecap="round"
|
|
16
|
+
strokeLinejoin="round"
|
|
17
|
+
strokeWidth={2}
|
|
18
|
+
{...props}>
|
|
19
|
+
<path stroke="none" d="M0 0h24v24H0z" />
|
|
20
|
+
<path d="M7.2 12a4.8 4.8 0 1 0 9.6 0 4.8 4.8 0 1 0-9.6 0" />
|
|
21
|
+
<path d="M16.8 12v1.8a3 3 0 0 0 6 0V12a10.8 10.8 0 1 0-6.6 9.936" />
|
|
22
|
+
</svg>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
export default Email;
|
package/lib/theme/Tabs/index.js
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React, {cloneElement} from 'react';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
|
+
import {ThemeClassNames} from '@docusaurus/theme-common';
|
|
9
10
|
import {
|
|
10
11
|
useScrollPositionBlocker,
|
|
11
12
|
useTabs,
|
|
@@ -111,7 +112,14 @@ function TabContent({lazy, children, selectedValue}) {
|
|
|
111
112
|
function TabsComponent(props) {
|
|
112
113
|
const tabs = useTabs(props);
|
|
113
114
|
return (
|
|
114
|
-
<div
|
|
115
|
+
<div
|
|
116
|
+
className={clsx(
|
|
117
|
+
ThemeClassNames.tabs.container,
|
|
118
|
+
// former name kept for backward compatibility
|
|
119
|
+
// see https://github.com/facebook/docusaurus/pull/4086
|
|
120
|
+
'tabs-container',
|
|
121
|
+
styles.tabList,
|
|
122
|
+
)}>
|
|
115
123
|
<TabList {...tabs} {...props} />
|
|
116
124
|
<TabContent {...tabs} {...props} />
|
|
117
125
|
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/theme-classic",
|
|
3
|
-
"version": "3.8.1-canary-
|
|
3
|
+
"version": "3.8.1-canary-6401",
|
|
4
4
|
"description": "Classic theme for Docusaurus",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/theme-classic.d.ts",
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
"copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@docusaurus/core": "3.8.1-canary-
|
|
24
|
-
"@docusaurus/logger": "3.8.1-canary-
|
|
25
|
-
"@docusaurus/mdx-loader": "3.8.1-canary-
|
|
26
|
-
"@docusaurus/module-type-aliases": "3.8.1-canary-
|
|
27
|
-
"@docusaurus/plugin-content-blog": "3.8.1-canary-
|
|
28
|
-
"@docusaurus/plugin-content-docs": "3.8.1-canary-
|
|
29
|
-
"@docusaurus/plugin-content-pages": "3.8.1-canary-
|
|
30
|
-
"@docusaurus/theme-common": "3.8.1-canary-
|
|
31
|
-
"@docusaurus/theme-translations": "3.8.1-canary-
|
|
32
|
-
"@docusaurus/types": "3.8.1-canary-
|
|
33
|
-
"@docusaurus/utils": "3.8.1-canary-
|
|
34
|
-
"@docusaurus/utils-common": "3.8.1-canary-
|
|
35
|
-
"@docusaurus/utils-validation": "3.8.1-canary-
|
|
23
|
+
"@docusaurus/core": "3.8.1-canary-6401",
|
|
24
|
+
"@docusaurus/logger": "3.8.1-canary-6401",
|
|
25
|
+
"@docusaurus/mdx-loader": "3.8.1-canary-6401",
|
|
26
|
+
"@docusaurus/module-type-aliases": "3.8.1-canary-6401",
|
|
27
|
+
"@docusaurus/plugin-content-blog": "3.8.1-canary-6401",
|
|
28
|
+
"@docusaurus/plugin-content-docs": "3.8.1-canary-6401",
|
|
29
|
+
"@docusaurus/plugin-content-pages": "3.8.1-canary-6401",
|
|
30
|
+
"@docusaurus/theme-common": "3.8.1-canary-6401",
|
|
31
|
+
"@docusaurus/theme-translations": "3.8.1-canary-6401",
|
|
32
|
+
"@docusaurus/types": "3.8.1-canary-6401",
|
|
33
|
+
"@docusaurus/utils": "3.8.1-canary-6401",
|
|
34
|
+
"@docusaurus/utils-common": "3.8.1-canary-6401",
|
|
35
|
+
"@docusaurus/utils-validation": "3.8.1-canary-6401",
|
|
36
36
|
"@mdx-js/react": "^3.0.0",
|
|
37
37
|
"clsx": "^2.0.0",
|
|
38
38
|
"infima": "0.2.0-alpha.45",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"engines": {
|
|
62
62
|
"node": ">=20.0"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "920d28b24f99406ebadf02a68010c2d998b44ff3"
|
|
65
65
|
}
|
|
@@ -23,6 +23,7 @@ import Threads from '@theme/Icon/Socials/Threads';
|
|
|
23
23
|
import Youtube from '@theme/Icon/Socials/YouTube';
|
|
24
24
|
import Mastodon from '@theme/Icon/Socials/Mastodon';
|
|
25
25
|
import Twitch from '@theme/Icon/Socials/Twitch';
|
|
26
|
+
import Email from '@theme/Icon/Socials/Email';
|
|
26
27
|
|
|
27
28
|
import styles from './styles.module.css';
|
|
28
29
|
|
|
@@ -42,6 +43,7 @@ const SocialPlatformConfigs: Record<string, SocialPlatformConfig> = {
|
|
|
42
43
|
mastodon: {Icon: Mastodon, label: 'Mastodon'},
|
|
43
44
|
youtube: {Icon: Youtube, label: 'YouTube'},
|
|
44
45
|
twitch: {Icon: Twitch, label: 'Twitch'},
|
|
46
|
+
email: {Icon: Email, label: 'Email'},
|
|
45
47
|
};
|
|
46
48
|
|
|
47
49
|
function getSocialPlatformConfig(platformKey: string): SocialPlatformConfig {
|
|
@@ -57,7 +59,7 @@ function SocialLink({platform, link}: {platform: string; link: string}) {
|
|
|
57
59
|
const {Icon, label} = getSocialPlatformConfig(platform);
|
|
58
60
|
return (
|
|
59
61
|
<Link className={styles.authorSocialLink} href={link} title={label}>
|
|
60
|
-
<Icon className={clsx(styles.
|
|
62
|
+
<Icon className={clsx(styles.authorSocialIcon)} />
|
|
61
63
|
</Link>
|
|
62
64
|
);
|
|
63
65
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import type {ReactNode, SVGProps} from 'react';
|
|
9
9
|
|
|
10
|
-
// SVG Source: https://
|
|
10
|
+
// SVG Source: https://github.com/tabler/tabler-icons
|
|
11
11
|
function DefaultSocial(props: SVGProps<SVGSVGElement>): ReactNode {
|
|
12
12
|
return (
|
|
13
13
|
<svg
|
|
@@ -22,11 +22,11 @@ function DefaultSocial(props: SVGProps<SVGSVGElement>): ReactNode {
|
|
|
22
22
|
strokeLinejoin="round"
|
|
23
23
|
{...props}>
|
|
24
24
|
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
|
25
|
-
<path d="
|
|
26
|
-
<path d="
|
|
27
|
-
<path d="
|
|
28
|
-
<path d="M11.
|
|
29
|
-
<path d="M12.
|
|
25
|
+
<path d="M1.2 12a10.8 10.8 0 1 0 21.6 0a10.8 10.8 0 0 0 -21.6 0" />
|
|
26
|
+
<path d="M1.92 8.4h20.16" />
|
|
27
|
+
<path d="M1.92 15.6h20.16" />
|
|
28
|
+
<path d="M11.4 1.2a20.4 20.4 0 0 0 0 21.6" />
|
|
29
|
+
<path d="M12.6 1.2a20.4 20.4 0 0 1 0 21.6" />
|
|
30
30
|
</svg>
|
|
31
31
|
);
|
|
32
32
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import type {ReactNode, SVGProps} from 'react';
|
|
9
|
+
|
|
10
|
+
// SVG Source: https://github.com/tabler/tabler-icons
|
|
11
|
+
function Email(props: SVGProps<SVGSVGElement>): ReactNode {
|
|
12
|
+
return (
|
|
13
|
+
<svg
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
viewBox="0 0 24 24"
|
|
16
|
+
fill="none"
|
|
17
|
+
stroke="currentColor"
|
|
18
|
+
strokeLinecap="round"
|
|
19
|
+
strokeLinejoin="round"
|
|
20
|
+
strokeWidth={2}
|
|
21
|
+
{...props}>
|
|
22
|
+
<path stroke="none" d="M0 0h24v24H0z" />
|
|
23
|
+
<path d="M7.2 12a4.8 4.8 0 1 0 9.6 0 4.8 4.8 0 1 0-9.6 0" />
|
|
24
|
+
<path d="M16.8 12v1.8a3 3 0 0 0 6 0V12a10.8 10.8 0 1 0-6.6 9.936" />
|
|
25
|
+
</svg>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
export default Email;
|
package/src/theme/Tabs/index.tsx
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import React, {cloneElement, type ReactElement, type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
|
+
import {ThemeClassNames} from '@docusaurus/theme-common';
|
|
10
11
|
import {
|
|
11
12
|
useScrollPositionBlocker,
|
|
12
13
|
useTabs,
|
|
@@ -143,7 +144,14 @@ function TabContent({
|
|
|
143
144
|
function TabsComponent(props: Props): ReactNode {
|
|
144
145
|
const tabs = useTabs(props);
|
|
145
146
|
return (
|
|
146
|
-
<div
|
|
147
|
+
<div
|
|
148
|
+
className={clsx(
|
|
149
|
+
ThemeClassNames.tabs.container,
|
|
150
|
+
// former name kept for backward compatibility
|
|
151
|
+
// see https://github.com/facebook/docusaurus/pull/4086
|
|
152
|
+
'tabs-container',
|
|
153
|
+
styles.tabList,
|
|
154
|
+
)}>
|
|
147
155
|
<TabList {...tabs} {...props} />
|
|
148
156
|
<TabContent {...tabs} {...props} />
|
|
149
157
|
</div>
|
package/src/theme-classic.d.ts
CHANGED
|
@@ -1894,6 +1894,14 @@ declare module '@theme/Icon/Socials/Twitch' {
|
|
|
1894
1894
|
export default function Twitch(props: Props): ReactNode;
|
|
1895
1895
|
}
|
|
1896
1896
|
|
|
1897
|
+
declare module '@theme/Icon/Socials/Email' {
|
|
1898
|
+
import type {ComponentProps, ReactNode} from 'react';
|
|
1899
|
+
|
|
1900
|
+
export interface Props extends ComponentProps<'svg'> {}
|
|
1901
|
+
|
|
1902
|
+
export default function Email(props: Props): ReactNode;
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1897
1905
|
declare module '@theme/Icon/Socials/Mastodon' {
|
|
1898
1906
|
import type {ComponentProps, ReactNode} from 'react';
|
|
1899
1907
|
|