@docusaurus/theme-classic 3.8.1-canary-6394 → 3.8.1-canary-6396

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.
@@ -4,6 +4,8 @@
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
+ import clsx from 'clsx';
8
+ import styles from './styles.module.css';
7
9
  // SVG Source: https://svgl.app/
8
10
  function Bluesky(props) {
9
11
  return (
@@ -13,11 +15,10 @@ function Bluesky(props) {
13
15
  height="1em"
14
16
  preserveAspectRatio="xMidYMid"
15
17
  viewBox="0 0 256 226"
16
- {...props}>
17
- <path
18
- fill="#1185FE"
19
- d="M55.491 15.172c29.35 22.035 60.917 66.712 72.509 90.686 11.592-23.974 43.159-68.651 72.509-90.686C221.686-.727 256-13.028 256 26.116c0 7.818-4.482 65.674-7.111 75.068-9.138 32.654-42.436 40.983-72.057 35.942 51.775 8.812 64.946 38 36.501 67.187-54.021 55.433-77.644-13.908-83.696-31.676-1.11-3.257-1.63-4.78-1.637-3.485-.008-1.296-.527.228-1.637 3.485-6.052 17.768-29.675 87.11-83.696 31.676-28.445-29.187-15.274-58.375 36.5-67.187-29.62 5.041-62.918-3.288-72.056-35.942C4.482 91.79 0 33.934 0 26.116 0-13.028 34.314-.727 55.491 15.172Z"
20
- />
18
+ style={{'--dark': '#0085ff', '--light': '#0085ff'}}
19
+ {...props}
20
+ className={clsx(props.className, styles.blueskySvg)}>
21
+ <path d="M55.491 15.172c29.35 22.035 60.917 66.712 72.509 90.686 11.592-23.974 43.159-68.651 72.509-90.686C221.686-.727 256-13.028 256 26.116c0 7.818-4.482 65.674-7.111 75.068-9.138 32.654-42.436 40.983-72.057 35.942 51.775 8.812 64.946 38 36.501 67.187-54.021 55.433-77.644-13.908-83.696-31.676-1.11-3.257-1.63-4.78-1.637-3.485-.008-1.296-.527.228-1.637 3.485-6.052 17.768-29.675 87.11-83.696 31.676-28.445-29.187-15.274-58.375 36.5-67.187-29.62 5.041-62.918-3.288-72.056-35.942C4.482 91.79 0 33.934 0 26.116 0-13.028 34.314-.727 55.491 15.172Z" />
21
22
  </svg>
22
23
  );
23
24
  }
@@ -0,0 +1,14 @@
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
+ [data-theme='dark'] .blueskySvg {
9
+ fill: var(--light);
10
+ }
11
+
12
+ [data-theme='light'] .blueskySvg {
13
+ fill: var(--dark);
14
+ }
@@ -4,6 +4,6 @@
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
- import type { ReactNode, SVGProps } from 'react';
7
+ import type { SVGProps, ReactNode } from 'react';
8
8
  declare function LinkedIn(props: SVGProps<SVGSVGElement>): ReactNode;
9
9
  export default LinkedIn;
@@ -4,6 +4,8 @@
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
+ import clsx from 'clsx';
8
+ import styles from './styles.module.css';
7
9
  // SVG Source: https://svgl.app/
8
10
  function LinkedIn(props) {
9
11
  return (
@@ -13,11 +15,10 @@ function LinkedIn(props) {
13
15
  height="1em"
14
16
  preserveAspectRatio="xMidYMid"
15
17
  viewBox="0 0 256 256"
16
- {...props}>
17
- <path
18
- d="M218.123 218.127h-37.931v-59.403c0-14.165-.253-32.4-19.728-32.4-19.756 0-22.779 15.434-22.779 31.369v60.43h-37.93V95.967h36.413v16.694h.51a39.907 39.907 0 0 1 35.928-19.733c38.445 0 45.533 25.288 45.533 58.186l-.016 67.013ZM56.955 79.27c-12.157.002-22.014-9.852-22.016-22.009-.002-12.157 9.851-22.014 22.008-22.016 12.157-.003 22.014 9.851 22.016 22.008A22.013 22.013 0 0 1 56.955 79.27m18.966 138.858H37.95V95.967h37.97v122.16ZM237.033.018H18.89C8.58-.098.125 8.161-.001 18.471v219.053c.122 10.315 8.576 18.582 18.89 18.474h218.144c10.336.128 18.823-8.139 18.966-18.474V18.454c-.147-10.33-8.635-18.588-18.966-18.453"
19
- fill="#0A66C2"
20
- />
18
+ style={{'--dark': '#0a66c2', '--light': '#ffffffe6'}}
19
+ {...props}
20
+ className={clsx(props.className, styles.linkedinSvg)}>
21
+ <path d="M218.123 218.127h-37.931v-59.403c0-14.165-.253-32.4-19.728-32.4-19.756 0-22.779 15.434-22.779 31.369v60.43h-37.93V95.967h36.413v16.694h.51a39.907 39.907 0 0 1 35.928-19.733c38.445 0 45.533 25.288 45.533 58.186l-.016 67.013ZM56.955 79.27c-12.157.002-22.014-9.852-22.016-22.009-.002-12.157 9.851-22.014 22.008-22.016 12.157-.003 22.014 9.851 22.016 22.008A22.013 22.013 0 0 1 56.955 79.27m18.966 138.858H37.95V95.967h37.97v122.16ZM237.033.018H18.89C8.58-.098.125 8.161-.001 18.471v219.053c.122 10.315 8.576 18.582 18.89 18.474h218.144c10.336.128 18.823-8.139 18.966-18.474V18.454c-.147-10.33-8.635-18.588-18.966-18.453" />
21
22
  </svg>
22
23
  );
23
24
  }
@@ -0,0 +1,14 @@
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
+ [data-theme='dark'] .linkedinSvg {
9
+ fill: var(--light);
10
+ }
11
+
12
+ [data-theme='light'] .linkedinSvg {
13
+ fill: var(--dark);
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-classic",
3
- "version": "3.8.1-canary-6394",
3
+ "version": "3.8.1-canary-6396",
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-6394",
24
- "@docusaurus/logger": "3.8.1-canary-6394",
25
- "@docusaurus/mdx-loader": "3.8.1-canary-6394",
26
- "@docusaurus/module-type-aliases": "3.8.1-canary-6394",
27
- "@docusaurus/plugin-content-blog": "3.8.1-canary-6394",
28
- "@docusaurus/plugin-content-docs": "3.8.1-canary-6394",
29
- "@docusaurus/plugin-content-pages": "3.8.1-canary-6394",
30
- "@docusaurus/theme-common": "3.8.1-canary-6394",
31
- "@docusaurus/theme-translations": "3.8.1-canary-6394",
32
- "@docusaurus/types": "3.8.1-canary-6394",
33
- "@docusaurus/utils": "3.8.1-canary-6394",
34
- "@docusaurus/utils-common": "3.8.1-canary-6394",
35
- "@docusaurus/utils-validation": "3.8.1-canary-6394",
23
+ "@docusaurus/core": "3.8.1-canary-6396",
24
+ "@docusaurus/logger": "3.8.1-canary-6396",
25
+ "@docusaurus/mdx-loader": "3.8.1-canary-6396",
26
+ "@docusaurus/module-type-aliases": "3.8.1-canary-6396",
27
+ "@docusaurus/plugin-content-blog": "3.8.1-canary-6396",
28
+ "@docusaurus/plugin-content-docs": "3.8.1-canary-6396",
29
+ "@docusaurus/plugin-content-pages": "3.8.1-canary-6396",
30
+ "@docusaurus/theme-common": "3.8.1-canary-6396",
31
+ "@docusaurus/theme-translations": "3.8.1-canary-6396",
32
+ "@docusaurus/types": "3.8.1-canary-6396",
33
+ "@docusaurus/utils": "3.8.1-canary-6396",
34
+ "@docusaurus/utils-common": "3.8.1-canary-6396",
35
+ "@docusaurus/utils-validation": "3.8.1-canary-6396",
36
36
  "@mdx-js/react": "^3.0.0",
37
37
  "clsx": "^2.0.0",
38
38
  "copy-text-to-clipboard": "^3.2.0",
@@ -62,5 +62,5 @@
62
62
  "engines": {
63
63
  "node": ">=20.0"
64
64
  },
65
- "gitHead": "2711147e94e07c6af3bcfb175a7b7991fa526fa9"
65
+ "gitHead": "610155402716fdf70a54c86c60b9d426edb1f913"
66
66
  }
@@ -5,7 +5,9 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import type {SVGProps, ReactNode} from 'react';
8
+ import type {SVGProps, ReactNode, CSSProperties} from 'react';
9
+ import clsx from 'clsx';
10
+ import styles from './styles.module.css';
9
11
 
10
12
  // SVG Source: https://svgl.app/
11
13
  function Bluesky(props: SVGProps<SVGSVGElement>): ReactNode {
@@ -16,11 +18,10 @@ function Bluesky(props: SVGProps<SVGSVGElement>): ReactNode {
16
18
  height="1em"
17
19
  preserveAspectRatio="xMidYMid"
18
20
  viewBox="0 0 256 226"
19
- {...props}>
20
- <path
21
- fill="#1185FE"
22
- d="M55.491 15.172c29.35 22.035 60.917 66.712 72.509 90.686 11.592-23.974 43.159-68.651 72.509-90.686C221.686-.727 256-13.028 256 26.116c0 7.818-4.482 65.674-7.111 75.068-9.138 32.654-42.436 40.983-72.057 35.942 51.775 8.812 64.946 38 36.501 67.187-54.021 55.433-77.644-13.908-83.696-31.676-1.11-3.257-1.63-4.78-1.637-3.485-.008-1.296-.527.228-1.637 3.485-6.052 17.768-29.675 87.11-83.696 31.676-28.445-29.187-15.274-58.375 36.5-67.187-29.62 5.041-62.918-3.288-72.056-35.942C4.482 91.79 0 33.934 0 26.116 0-13.028 34.314-.727 55.491 15.172Z"
23
- />
21
+ style={{'--dark': '#0085ff', '--light': '#0085ff'} as CSSProperties}
22
+ {...props}
23
+ className={clsx(props.className, styles.blueskySvg)}>
24
+ <path d="M55.491 15.172c29.35 22.035 60.917 66.712 72.509 90.686 11.592-23.974 43.159-68.651 72.509-90.686C221.686-.727 256-13.028 256 26.116c0 7.818-4.482 65.674-7.111 75.068-9.138 32.654-42.436 40.983-72.057 35.942 51.775 8.812 64.946 38 36.501 67.187-54.021 55.433-77.644-13.908-83.696-31.676-1.11-3.257-1.63-4.78-1.637-3.485-.008-1.296-.527.228-1.637 3.485-6.052 17.768-29.675 87.11-83.696 31.676-28.445-29.187-15.274-58.375 36.5-67.187-29.62 5.041-62.918-3.288-72.056-35.942C4.482 91.79 0 33.934 0 26.116 0-13.028 34.314-.727 55.491 15.172Z" />
24
25
  </svg>
25
26
  );
26
27
  }
@@ -0,0 +1,14 @@
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
+ [data-theme='dark'] .blueskySvg {
9
+ fill: var(--light);
10
+ }
11
+
12
+ [data-theme='light'] .blueskySvg {
13
+ fill: var(--dark);
14
+ }
@@ -5,7 +5,9 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import type {ReactNode, SVGProps} from 'react';
8
+ import type {SVGProps, ReactNode, CSSProperties} from 'react';
9
+ import clsx from 'clsx';
10
+ import styles from './styles.module.css';
9
11
 
10
12
  // SVG Source: https://svgl.app/
11
13
  function LinkedIn(props: SVGProps<SVGSVGElement>): ReactNode {
@@ -16,11 +18,10 @@ function LinkedIn(props: SVGProps<SVGSVGElement>): ReactNode {
16
18
  height="1em"
17
19
  preserveAspectRatio="xMidYMid"
18
20
  viewBox="0 0 256 256"
19
- {...props}>
20
- <path
21
- d="M218.123 218.127h-37.931v-59.403c0-14.165-.253-32.4-19.728-32.4-19.756 0-22.779 15.434-22.779 31.369v60.43h-37.93V95.967h36.413v16.694h.51a39.907 39.907 0 0 1 35.928-19.733c38.445 0 45.533 25.288 45.533 58.186l-.016 67.013ZM56.955 79.27c-12.157.002-22.014-9.852-22.016-22.009-.002-12.157 9.851-22.014 22.008-22.016 12.157-.003 22.014 9.851 22.016 22.008A22.013 22.013 0 0 1 56.955 79.27m18.966 138.858H37.95V95.967h37.97v122.16ZM237.033.018H18.89C8.58-.098.125 8.161-.001 18.471v219.053c.122 10.315 8.576 18.582 18.89 18.474h218.144c10.336.128 18.823-8.139 18.966-18.474V18.454c-.147-10.33-8.635-18.588-18.966-18.453"
22
- fill="#0A66C2"
23
- />
21
+ style={{'--dark': '#0a66c2', '--light': '#ffffffe6'} as CSSProperties}
22
+ {...props}
23
+ className={clsx(props.className, styles.linkedinSvg)}>
24
+ <path d="M218.123 218.127h-37.931v-59.403c0-14.165-.253-32.4-19.728-32.4-19.756 0-22.779 15.434-22.779 31.369v60.43h-37.93V95.967h36.413v16.694h.51a39.907 39.907 0 0 1 35.928-19.733c38.445 0 45.533 25.288 45.533 58.186l-.016 67.013ZM56.955 79.27c-12.157.002-22.014-9.852-22.016-22.009-.002-12.157 9.851-22.014 22.008-22.016 12.157-.003 22.014 9.851 22.016 22.008A22.013 22.013 0 0 1 56.955 79.27m18.966 138.858H37.95V95.967h37.97v122.16ZM237.033.018H18.89C8.58-.098.125 8.161-.001 18.471v219.053c.122 10.315 8.576 18.582 18.89 18.474h218.144c10.336.128 18.823-8.139 18.966-18.474V18.454c-.147-10.33-8.635-18.588-18.966-18.453" />
24
25
  </svg>
25
26
  );
26
27
  }
@@ -0,0 +1,14 @@
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
+ [data-theme='dark'] .linkedinSvg {
9
+ fill: var(--light);
10
+ }
11
+
12
+ [data-theme='light'] .linkedinSvg {
13
+ fill: var(--dark);
14
+ }