@docusaurus/theme-classic 3.8.1-canary-6400 → 3.8.1-canary-6402

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.
@@ -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.authorSocialLink)} />
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://tabler.io/
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="M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0" />
23
- <path d="M3.6 9h16.8" />
24
- <path d="M3.6 15h16.8" />
25
- <path d="M11.5 3a17 17 0 0 0 0 18" />
26
- <path d="M12.5 3a17 17 0 0 1 0 18" />
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-classic",
3
- "version": "3.8.1-canary-6400",
3
+ "version": "3.8.1-canary-6402",
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-6400",
24
- "@docusaurus/logger": "3.8.1-canary-6400",
25
- "@docusaurus/mdx-loader": "3.8.1-canary-6400",
26
- "@docusaurus/module-type-aliases": "3.8.1-canary-6400",
27
- "@docusaurus/plugin-content-blog": "3.8.1-canary-6400",
28
- "@docusaurus/plugin-content-docs": "3.8.1-canary-6400",
29
- "@docusaurus/plugin-content-pages": "3.8.1-canary-6400",
30
- "@docusaurus/theme-common": "3.8.1-canary-6400",
31
- "@docusaurus/theme-translations": "3.8.1-canary-6400",
32
- "@docusaurus/types": "3.8.1-canary-6400",
33
- "@docusaurus/utils": "3.8.1-canary-6400",
34
- "@docusaurus/utils-common": "3.8.1-canary-6400",
35
- "@docusaurus/utils-validation": "3.8.1-canary-6400",
23
+ "@docusaurus/core": "3.8.1-canary-6402",
24
+ "@docusaurus/logger": "3.8.1-canary-6402",
25
+ "@docusaurus/mdx-loader": "3.8.1-canary-6402",
26
+ "@docusaurus/module-type-aliases": "3.8.1-canary-6402",
27
+ "@docusaurus/plugin-content-blog": "3.8.1-canary-6402",
28
+ "@docusaurus/plugin-content-docs": "3.8.1-canary-6402",
29
+ "@docusaurus/plugin-content-pages": "3.8.1-canary-6402",
30
+ "@docusaurus/theme-common": "3.8.1-canary-6402",
31
+ "@docusaurus/theme-translations": "3.8.1-canary-6402",
32
+ "@docusaurus/types": "3.8.1-canary-6402",
33
+ "@docusaurus/utils": "3.8.1-canary-6402",
34
+ "@docusaurus/utils-common": "3.8.1-canary-6402",
35
+ "@docusaurus/utils-validation": "3.8.1-canary-6402",
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": "ba556e9a60021d91b91f3795fe3e647842ded5f6"
64
+ "gitHead": "d8576f8e307990a7f8350e753b3034d5e6de53d1"
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.authorSocialLink)} />
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://tabler.io/
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="M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0" />
26
- <path d="M3.6 9h16.8" />
27
- <path d="M3.6 15h16.8" />
28
- <path d="M11.5 3a17 17 0 0 0 0 18" />
29
- <path d="M12.5 3a17 17 0 0 1 0 18" />
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;
@@ -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