@docusaurus/theme-classic 0.0.0-4879 → 0.0.0-4887

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.
@@ -1110,6 +1110,14 @@ declare module '@theme/IconEdit' {
1110
1110
  export default function IconEdit(props: Props): JSX.Element;
1111
1111
  }
1112
1112
 
1113
+ declare module '@theme/IconHome' {
1114
+ import type {ComponentProps} from 'react';
1115
+
1116
+ export interface Props extends ComponentProps<'svg'> {}
1117
+
1118
+ export default function IconHome(props: Props): JSX.Element;
1119
+ }
1120
+
1113
1121
  declare module '@theme/IconLightMode' {
1114
1122
  import type {ComponentProps} from 'react';
1115
1123
 
@@ -13,7 +13,8 @@ import {
13
13
  import styles from './styles.module.css';
14
14
  import clsx from 'clsx';
15
15
  import Link from '@docusaurus/Link';
16
- import useBaseUrl from '@docusaurus/useBaseUrl'; // TODO move to design system folder
16
+ import useBaseUrl from '@docusaurus/useBaseUrl';
17
+ import IconHome from '@theme/IconHome'; // TODO move to design system folder
17
18
 
18
19
  function BreadcrumbsItemLink({children, href, isLast}) {
19
20
  const className = 'breadcrumbs__link';
@@ -59,7 +60,7 @@ function HomeBreadcrumbItem() {
59
60
  <Link
60
61
  className={clsx('breadcrumbs__link', styles.breadcrumbsItemLink)}
61
62
  href={homeHref}>
62
- 🏠
63
+ <IconHome className={styles.icon} />
63
64
  </Link>
64
65
  </li>
65
66
  );
@@ -9,3 +9,9 @@
9
9
  --ifm-breadcrumb-size-multiplier: 0.8;
10
10
  margin-bottom: 0.8rem;
11
11
  }
12
+
13
+ .icon {
14
+ vertical-align: middle;
15
+ height: 1rem;
16
+ width: 1rem;
17
+ }
@@ -0,0 +1,23 @@
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 React from 'react';
8
+ export default function IconDarkMode(props) {
9
+ return (
10
+ <svg
11
+ xmlns="http://www.w3.org/2000/svg"
12
+ height="24"
13
+ width="24"
14
+ viewBox="0 0 24 24"
15
+ {...props}>
16
+ <path d="M0 0h24v24H0V0z" fill="none" />
17
+ <path
18
+ d="M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z"
19
+ fill="currentColor"
20
+ />
21
+ </svg>
22
+ );
23
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-classic",
3
- "version": "0.0.0-4879",
3
+ "version": "0.0.0-4887",
4
4
  "description": "Classic theme for Docusaurus",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/theme-classic.d.ts",
@@ -21,15 +21,15 @@
21
21
  "format:lib-next": "prettier --config ../../.prettierrc --write \"lib-next/**/*.{js,ts,jsx,tsc}\""
22
22
  },
23
23
  "dependencies": {
24
- "@docusaurus/core": "0.0.0-4879",
25
- "@docusaurus/plugin-content-blog": "0.0.0-4879",
26
- "@docusaurus/plugin-content-docs": "0.0.0-4879",
27
- "@docusaurus/plugin-content-pages": "0.0.0-4879",
28
- "@docusaurus/theme-common": "0.0.0-4879",
29
- "@docusaurus/theme-translations": "0.0.0-4879",
30
- "@docusaurus/utils": "0.0.0-4879",
31
- "@docusaurus/utils-common": "0.0.0-4879",
32
- "@docusaurus/utils-validation": "0.0.0-4879",
24
+ "@docusaurus/core": "0.0.0-4887",
25
+ "@docusaurus/plugin-content-blog": "0.0.0-4887",
26
+ "@docusaurus/plugin-content-docs": "0.0.0-4887",
27
+ "@docusaurus/plugin-content-pages": "0.0.0-4887",
28
+ "@docusaurus/theme-common": "0.0.0-4887",
29
+ "@docusaurus/theme-translations": "0.0.0-4887",
30
+ "@docusaurus/utils": "0.0.0-4887",
31
+ "@docusaurus/utils-common": "0.0.0-4887",
32
+ "@docusaurus/utils-validation": "0.0.0-4887",
33
33
  "@mdx-js/react": "^1.6.22",
34
34
  "clsx": "^1.1.1",
35
35
  "copy-text-to-clipboard": "^3.0.1",
@@ -45,8 +45,8 @@
45
45
  "@babel/cli": "^7.17.6",
46
46
  "@babel/core": "^7.17.9",
47
47
  "@babel/preset-typescript": "^7.16.7",
48
- "@docusaurus/module-type-aliases": "0.0.0-4879",
49
- "@docusaurus/types": "0.0.0-4879",
48
+ "@docusaurus/module-type-aliases": "0.0.0-4887",
49
+ "@docusaurus/types": "0.0.0-4887",
50
50
  "@types/mdx-js__react": "^1.5.5",
51
51
  "@types/prismjs": "^1.26.0",
52
52
  "@types/rtlcss": "^3.1.4",
@@ -62,5 +62,5 @@
62
62
  "engines": {
63
63
  "node": ">=14"
64
64
  },
65
- "gitHead": "0ebf7473396171d10b7c91bc3f33cdf16863ee5c"
65
+ "gitHead": "87ce2a6c9491e474712d082a66491d46856f5d3f"
66
66
  }
@@ -15,6 +15,7 @@ import styles from './styles.module.css';
15
15
  import clsx from 'clsx';
16
16
  import Link from '@docusaurus/Link';
17
17
  import useBaseUrl from '@docusaurus/useBaseUrl';
18
+ import IconHome from '@theme/IconHome';
18
19
 
19
20
  // TODO move to design system folder
20
21
  function BreadcrumbsItemLink({
@@ -76,7 +77,7 @@ function HomeBreadcrumbItem() {
76
77
  <Link
77
78
  className={clsx('breadcrumbs__link', styles.breadcrumbsItemLink)}
78
79
  href={homeHref}>
79
- 🏠
80
+ <IconHome className={styles.icon} />
80
81
  </Link>
81
82
  </li>
82
83
  );
@@ -9,3 +9,9 @@
9
9
  --ifm-breadcrumb-size-multiplier: 0.8;
10
10
  margin-bottom: 0.8rem;
11
11
  }
12
+
13
+ .icon {
14
+ vertical-align: middle;
15
+ height: 1rem;
16
+ width: 1rem;
17
+ }
@@ -0,0 +1,26 @@
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 React from 'react';
9
+ import type {Props} from '@theme/IconHome';
10
+
11
+ export default function IconDarkMode(props: Props): JSX.Element {
12
+ return (
13
+ <svg
14
+ xmlns="http://www.w3.org/2000/svg"
15
+ height="24"
16
+ width="24"
17
+ viewBox="0 0 24 24"
18
+ {...props}>
19
+ <path d="M0 0h24v24H0V0z" fill="none" />
20
+ <path
21
+ d="M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z"
22
+ fill="currentColor"
23
+ />
24
+ </svg>
25
+ );
26
+ }
@@ -1110,6 +1110,14 @@ declare module '@theme/IconEdit' {
1110
1110
  export default function IconEdit(props: Props): JSX.Element;
1111
1111
  }
1112
1112
 
1113
+ declare module '@theme/IconHome' {
1114
+ import type {ComponentProps} from 'react';
1115
+
1116
+ export interface Props extends ComponentProps<'svg'> {}
1117
+
1118
+ export default function IconHome(props: Props): JSX.Element;
1119
+ }
1120
+
1113
1121
  declare module '@theme/IconLightMode' {
1114
1122
  import type {ComponentProps} from 'react';
1115
1123