@docusaurus/theme-classic 0.0.0-5010 → 0.0.0-5012

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.
Files changed (135) hide show
  1. package/lib/index.js +2 -2
  2. package/lib-next/theme/BlogArchivePage/index.js +1 -1
  3. package/lib-next/theme/BlogListPage/index.js +4 -4
  4. package/lib-next/theme/BlogPostItem/index.js +2 -2
  5. package/lib-next/theme/BlogPostPage/index.js +4 -4
  6. package/lib-next/theme/BlogSidebar/index.js +1 -1
  7. package/lib-next/theme/BlogTagsListPage/index.js +3 -3
  8. package/lib-next/theme/BlogTagsPostsPage/index.js +5 -4
  9. package/lib-next/theme/CodeBlock/Content/Element.js +1 -1
  10. package/lib-next/theme/CodeBlock/Content/String.js +1 -1
  11. package/lib-next/theme/CodeBlock/index.js +1 -1
  12. package/lib-next/theme/ColorModeToggle/index.js +1 -1
  13. package/lib-next/theme/DocBreadcrumbs/index.js +3 -3
  14. package/lib-next/theme/DocCard/index.js +2 -2
  15. package/lib-next/theme/DocCardList/index.js +1 -1
  16. package/lib-next/theme/DocCategoryGeneratedIndexPage/index.js +1 -1
  17. package/lib-next/theme/DocItem/index.js +7 -7
  18. package/lib-next/theme/DocItemFooter/index.js +1 -1
  19. package/lib-next/theme/DocPage/Layout/Main/index.js +1 -1
  20. package/lib-next/theme/DocPage/Layout/Sidebar/ExpandButton/index.js +1 -1
  21. package/lib-next/theme/DocPage/Layout/Sidebar/index.js +4 -4
  22. package/lib-next/theme/DocPage/Layout/index.js +1 -1
  23. package/lib-next/theme/DocPage/index.js +2 -2
  24. package/lib-next/theme/DocSidebar/Desktop/CollapseButton/index.js +1 -1
  25. package/lib-next/theme/DocSidebarItem/Category/index.js +3 -2
  26. package/lib-next/theme/DocSidebarItems/index.js +1 -1
  27. package/lib-next/theme/DocTagDocListPage/index.js +3 -2
  28. package/lib-next/theme/DocTagsListPage/index.js +2 -2
  29. package/lib-next/theme/DocVersionBadge/index.js +1 -1
  30. package/lib-next/theme/DocVersionBanner/index.js +1 -1
  31. package/lib-next/theme/EditThisPage/index.js +1 -1
  32. package/lib-next/theme/Footer/Logo/index.js +1 -1
  33. package/lib-next/theme/Layout/index.js +5 -5
  34. package/lib-next/theme/Logo/index.js +1 -1
  35. package/lib-next/theme/MDXComponents/Ul.js +2 -2
  36. package/lib-next/theme/MDXPage/index.js +3 -3
  37. package/lib-next/theme/Navbar/ColorModeToggle/index.js +1 -1
  38. package/lib-next/theme/Navbar/Content/index.js +3 -3
  39. package/lib-next/theme/Navbar/Layout/index.js +1 -1
  40. package/lib-next/theme/Navbar/MobileSidebar/Header/index.js +1 -1
  41. package/lib-next/theme/Navbar/MobileSidebar/PrimaryMenu/index.js +1 -1
  42. package/lib-next/theme/Navbar/MobileSidebar/Toggle/index.js +1 -1
  43. package/lib-next/theme/Navbar/MobileSidebar/index.js +2 -2
  44. package/lib-next/theme/NavbarItem/DocNavbarItem.js +3 -3
  45. package/lib-next/theme/NavbarItem/DocSidebarNavbarItem.js +3 -3
  46. package/lib-next/theme/NavbarItem/DocsVersionDropdownNavbarItem.js +2 -2
  47. package/lib-next/theme/NavbarItem/DocsVersionNavbarItem.js +1 -1
  48. package/lib-next/theme/NavbarItem/LocaleDropdownNavbarItem/index.js +2 -2
  49. package/lib-next/theme/NavbarItem/NavbarNavLink.js +1 -1
  50. package/lib-next/theme/NotFound.js +1 -1
  51. package/lib-next/theme/SiteMetadata/index.js +2 -2
  52. package/lib-next/theme/TOCInline/index.js +1 -1
  53. package/lib-next/theme/TOCItems/index.js +1 -1
  54. package/lib-next/theme/Tabs/__tests__/index.test.js +2 -2
  55. package/lib-next/theme/Tabs/index.js +1 -1
  56. package/lib-next/theme/TagsListByLetter/index.js +1 -1
  57. package/package.json +13 -13
  58. package/src/index.ts +4 -4
  59. package/src/theme/BlogArchivePage/index.tsx +2 -2
  60. package/src/theme/BlogListPage/index.tsx +5 -5
  61. package/src/theme/BlogPostAuthors/index.tsx +1 -1
  62. package/src/theme/BlogPostItem/index.tsx +2 -2
  63. package/src/theme/BlogPostPage/index.tsx +5 -5
  64. package/src/theme/BlogSidebar/Desktop/index.tsx +1 -1
  65. package/src/theme/BlogSidebar/index.tsx +1 -1
  66. package/src/theme/BlogTagsListPage/index.tsx +4 -5
  67. package/src/theme/BlogTagsPostsPage/index.tsx +5 -6
  68. package/src/theme/CodeBlock/Content/Element.tsx +1 -1
  69. package/src/theme/CodeBlock/Content/String.tsx +1 -1
  70. package/src/theme/CodeBlock/Line/index.tsx +1 -0
  71. package/src/theme/CodeBlock/index.tsx +1 -1
  72. package/src/theme/ColorModeToggle/index.tsx +2 -2
  73. package/src/theme/Details/index.tsx +1 -0
  74. package/src/theme/DocBreadcrumbs/index.tsx +3 -2
  75. package/src/theme/DocCard/index.tsx +7 -6
  76. package/src/theme/DocCardList/index.tsx +2 -3
  77. package/src/theme/DocCategoryGeneratedIndexPage/index.tsx +2 -2
  78. package/src/theme/DocItem/index.tsx +9 -8
  79. package/src/theme/DocItemFooter/index.tsx +2 -3
  80. package/src/theme/DocPage/Layout/Main/index.tsx +2 -3
  81. package/src/theme/DocPage/Layout/Sidebar/ExpandButton/index.tsx +1 -1
  82. package/src/theme/DocPage/Layout/Sidebar/index.tsx +4 -5
  83. package/src/theme/DocPage/Layout/index.tsx +2 -2
  84. package/src/theme/DocPage/index.tsx +3 -5
  85. package/src/theme/DocSidebar/Desktop/CollapseButton/index.tsx +1 -1
  86. package/src/theme/DocSidebar/index.tsx +1 -1
  87. package/src/theme/DocSidebarItem/Category/index.tsx +1 -3
  88. package/src/theme/DocSidebarItem/Link/index.tsx +0 -1
  89. package/src/theme/DocSidebarItems/index.tsx +1 -1
  90. package/src/theme/DocTagDocListPage/index.tsx +3 -4
  91. package/src/theme/DocTagsListPage/index.tsx +3 -4
  92. package/src/theme/DocVersionBadge/index.tsx +1 -1
  93. package/src/theme/DocVersionBanner/index.tsx +1 -1
  94. package/src/theme/EditThisPage/index.tsx +2 -3
  95. package/src/theme/Footer/Links/MultiColumn/index.tsx +1 -1
  96. package/src/theme/Footer/Links/Simple/index.tsx +1 -1
  97. package/src/theme/Footer/Links/index.tsx +1 -1
  98. package/src/theme/Footer/Logo/index.tsx +2 -2
  99. package/src/theme/Heading/index.tsx +1 -1
  100. package/src/theme/IconEdit/index.tsx +0 -1
  101. package/src/theme/LastUpdated/index.tsx +1 -1
  102. package/src/theme/Layout/index.tsx +6 -6
  103. package/src/theme/Logo/index.tsx +2 -3
  104. package/src/theme/MDXComponents/Img/index.tsx +1 -1
  105. package/src/theme/MDXComponents/Ul.tsx +2 -2
  106. package/src/theme/MDXPage/index.tsx +4 -4
  107. package/src/theme/Navbar/ColorModeToggle/index.tsx +1 -1
  108. package/src/theme/Navbar/Content/index.tsx +5 -4
  109. package/src/theme/Navbar/Layout/index.tsx +2 -2
  110. package/src/theme/Navbar/MobileSidebar/Header/index.tsx +1 -1
  111. package/src/theme/Navbar/MobileSidebar/Layout/index.tsx +1 -1
  112. package/src/theme/Navbar/MobileSidebar/PrimaryMenu/index.tsx +1 -1
  113. package/src/theme/Navbar/MobileSidebar/Toggle/index.tsx +1 -1
  114. package/src/theme/Navbar/MobileSidebar/index.tsx +2 -2
  115. package/src/theme/NavbarItem/DefaultNavbarItem.tsx +1 -4
  116. package/src/theme/NavbarItem/DocNavbarItem.tsx +3 -3
  117. package/src/theme/NavbarItem/DocSidebarNavbarItem.tsx +3 -4
  118. package/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx +3 -3
  119. package/src/theme/NavbarItem/DocsVersionNavbarItem.tsx +2 -2
  120. package/src/theme/NavbarItem/DropdownNavbarItem.tsx +2 -3
  121. package/src/theme/NavbarItem/LocaleDropdownNavbarItem/index.tsx +3 -3
  122. package/src/theme/NavbarItem/NavbarNavLink.tsx +2 -2
  123. package/src/theme/NavbarItem/SearchNavbarItem.tsx +1 -1
  124. package/src/theme/NavbarItem/index.tsx +1 -2
  125. package/src/theme/NotFound.tsx +1 -1
  126. package/src/theme/SiteMetadata/index.tsx +1 -1
  127. package/src/theme/TOC/index.tsx +2 -1
  128. package/src/theme/TOCCollapsible/index.tsx +1 -1
  129. package/src/theme/TOCInline/index.tsx +2 -1
  130. package/src/theme/TOCItems/index.tsx +2 -2
  131. package/src/theme/TabItem/index.tsx +1 -1
  132. package/src/theme/Tabs/index.tsx +1 -2
  133. package/src/theme/TagsListByLetter/index.tsx +1 -1
  134. package/src/theme/ThemedImage/index.tsx +0 -1
  135. package/src/translations.ts +2 -3
@@ -7,23 +7,24 @@
7
7
 
8
8
  import React from 'react';
9
9
  import clsx from 'clsx';
10
+ import {
11
+ PageMetadata,
12
+ HtmlClassNameProvider,
13
+ ThemeClassNames,
14
+ useWindowSize,
15
+ } from '@docusaurus/theme-common';
10
16
  import DocPaginator from '@theme/DocPaginator';
11
17
  import DocVersionBanner from '@theme/DocVersionBanner';
12
18
  import DocVersionBadge from '@theme/DocVersionBadge';
13
- import type {Props} from '@theme/DocItem';
14
19
  import DocItemFooter from '@theme/DocItemFooter';
15
20
  import TOC from '@theme/TOC';
16
21
  import TOCCollapsible from '@theme/TOCCollapsible';
17
22
  import Heading from '@theme/Heading';
18
- import styles from './styles.module.css';
19
- import {
20
- PageMetadata,
21
- HtmlClassNameProvider,
22
- ThemeClassNames,
23
- useWindowSize,
24
- } from '@docusaurus/theme-common';
25
23
  import DocBreadcrumbs from '@theme/DocBreadcrumbs';
26
24
  import MDXContent from '@theme/MDXContent';
25
+ import type {Props} from '@theme/DocItem';
26
+
27
+ import styles from './styles.module.css';
27
28
 
28
29
  function DocItemMetadata(props: Props): JSX.Element {
29
30
  const {content: DocContent} = props;
@@ -7,16 +7,15 @@
7
7
 
8
8
  import React from 'react';
9
9
  import clsx from 'clsx';
10
-
10
+ import {ThemeClassNames} from '@docusaurus/theme-common';
11
11
  import LastUpdated from '@theme/LastUpdated';
12
- import type {Props} from '@theme/DocItem';
13
12
  import EditThisPage from '@theme/EditThisPage';
14
13
  import TagsListInline, {
15
14
  type Props as TagsListInlineProps,
16
15
  } from '@theme/TagsListInline';
16
+ import type {Props} from '@theme/DocItem';
17
17
 
18
18
  import styles from './styles.module.css';
19
- import {ThemeClassNames} from '@docusaurus/theme-common';
20
19
 
21
20
  function TagsRow(props: TagsListInlineProps) {
22
21
  return (
@@ -6,12 +6,11 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
-
9
+ import clsx from 'clsx';
10
10
  import {useDocsSidebar} from '@docusaurus/theme-common';
11
+ import type {Props} from '@theme/DocPage/Layout/Main';
11
12
 
12
- import clsx from 'clsx';
13
13
  import styles from './styles.module.css';
14
- import type {Props} from '@theme/DocPage/Layout/Main';
15
14
 
16
15
  export default function DocPageLayoutMain({
17
16
  hiddenSidebarContainer,
@@ -6,8 +6,8 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
- import IconArrow from '@theme/IconArrow';
10
9
  import {translate} from '@docusaurus/Translate';
10
+ import IconArrow from '@theme/IconArrow';
11
11
  import type {Props} from '@theme/DocPage/Layout/Sidebar/ExpandButton';
12
12
 
13
13
  import styles from './styles.module.css';
@@ -6,16 +6,15 @@
6
6
  */
7
7
 
8
8
  import React, {type ReactNode, useState, useCallback} from 'react';
9
- import DocSidebar from '@theme/DocSidebar';
9
+ import clsx from 'clsx';
10
+ import {ThemeClassNames, useDocsSidebar} from '@docusaurus/theme-common';
10
11
  import {useLocation} from '@docusaurus/router';
11
- import type {Props} from '@theme/DocPage/Layout/Sidebar';
12
+ import DocSidebar from '@theme/DocSidebar';
12
13
  import ExpandButton from '@theme/DocPage/Layout/Sidebar/ExpandButton';
14
+ import type {Props} from '@theme/DocPage/Layout/Sidebar';
13
15
 
14
- import clsx from 'clsx';
15
16
  import styles from './styles.module.css';
16
17
 
17
- import {ThemeClassNames, useDocsSidebar} from '@docusaurus/theme-common';
18
-
19
18
  // Reset sidebar state when sidebar changes
20
19
  // Use React key to unmount/remount the children
21
20
  // See https://github.com/facebook/docusaurus/issues/3414
@@ -6,12 +6,12 @@
6
6
  */
7
7
 
8
8
  import React, {useState} from 'react';
9
+ import {useDocsSidebar} from '@docusaurus/theme-common';
9
10
  import Layout from '@theme/Layout';
10
11
  import BackToTopButton from '@theme/BackToTopButton';
11
- import type {Props} from '@theme/DocPage/Layout';
12
12
  import DocPageLayoutSidebar from '@theme/DocPage/Layout/Sidebar';
13
13
  import DocPageLayoutMain from '@theme/DocPage/Layout/Main';
14
- import {useDocsSidebar} from '@docusaurus/theme-common';
14
+ import type {Props} from '@theme/DocPage/Layout';
15
15
 
16
16
  import styles from './styles.module.css';
17
17
 
@@ -6,12 +6,7 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
- import NotFound from '@theme/NotFound';
10
- import type {Props} from '@theme/DocPage';
11
- import DocPageLayout from '@theme/DocPage/Layout';
12
-
13
9
  import clsx from 'clsx';
14
-
15
10
  import {
16
11
  HtmlClassNameProvider,
17
12
  ThemeClassNames,
@@ -20,7 +15,10 @@ import {
20
15
  DocsVersionProvider,
21
16
  useDocRouteMetadata,
22
17
  } from '@docusaurus/theme-common';
18
+ import DocPageLayout from '@theme/DocPage/Layout';
19
+ import NotFound from '@theme/NotFound';
23
20
  import SearchMetadata from '@theme/SearchMetadata';
21
+ import type {Props} from '@theme/DocPage';
24
22
 
25
23
  export default function DocPage(props: Props): JSX.Element {
26
24
  const {versionMetadata} = props;
@@ -7,8 +7,8 @@
7
7
 
8
8
  import React from 'react';
9
9
  import clsx from 'clsx';
10
- import IconArrow from '@theme/IconArrow';
11
10
  import {translate} from '@docusaurus/Translate';
11
+ import IconArrow from '@theme/IconArrow';
12
12
  import type {Props} from '@theme/DocSidebar/Desktop/CollapseButton';
13
13
 
14
14
  import styles from './styles.module.css';
@@ -7,9 +7,9 @@
7
7
 
8
8
  import React from 'react';
9
9
  import {useWindowSize} from '@docusaurus/theme-common';
10
- import type {Props} from '@theme/DocSidebar';
11
10
  import DocSidebarDesktop from '@theme/DocSidebar/Desktop';
12
11
  import DocSidebarMobile from '@theme/DocSidebar/Mobile';
12
+ import type {Props} from '@theme/DocSidebar';
13
13
 
14
14
  export default function DocSidebar(props: Props): JSX.Element {
15
15
  const windowSize = useWindowSize();
@@ -20,12 +20,10 @@ import {
20
20
  } from '@docusaurus/theme-common';
21
21
  import Link from '@docusaurus/Link';
22
22
  import {translate} from '@docusaurus/Translate';
23
-
23
+ import useIsBrowser from '@docusaurus/useIsBrowser';
24
24
  import DocSidebarItems from '@theme/DocSidebarItems';
25
25
  import type {Props} from '@theme/DocSidebarItem/Category';
26
26
 
27
- import useIsBrowser from '@docusaurus/useIsBrowser';
28
-
29
27
  // If we navigate to a category and it becomes active, it should automatically
30
28
  // expand itself
31
29
  function useAutoExpandActiveCategory({
@@ -11,7 +11,6 @@ import {isActiveSidebarItem, ThemeClassNames} from '@docusaurus/theme-common';
11
11
  import Link from '@docusaurus/Link';
12
12
  import isInternalUrl from '@docusaurus/isInternalUrl';
13
13
  import IconExternalLink from '@theme/IconExternalLink';
14
-
15
14
  import type {Props} from '@theme/DocSidebarItem/Link';
16
15
 
17
16
  import styles from './styles.module.css';
@@ -6,8 +6,8 @@
6
6
  */
7
7
 
8
8
  import React, {memo} from 'react';
9
- import DocSidebarItem from '@theme/DocSidebarItem';
10
9
  import {DocSidebarItemsExpandedStateProvider} from '@docusaurus/theme-common';
10
+ import DocSidebarItem from '@theme/DocSidebarItem';
11
11
 
12
12
  import type {Props} from '@theme/DocSidebarItems';
13
13
 
@@ -6,8 +6,7 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
-
10
- import Layout from '@theme/Layout';
9
+ import clsx from 'clsx';
11
10
  import Link from '@docusaurus/Link';
12
11
  import {
13
12
  PageMetadata,
@@ -16,9 +15,9 @@ import {
16
15
  usePluralForm,
17
16
  } from '@docusaurus/theme-common';
18
17
  import Translate, {translate} from '@docusaurus/Translate';
19
- import type {Props} from '@theme/DocTagDocListPage';
18
+ import Layout from '@theme/Layout';
20
19
  import SearchMetadata from '@theme/SearchMetadata';
21
- import clsx from 'clsx';
20
+ import type {Props} from '@theme/DocTagDocListPage';
22
21
 
23
22
  // Very simple pluralization: probably good enough for now
24
23
  function useNDocsTaggedPlural() {
@@ -6,18 +6,17 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
-
10
- import Layout from '@theme/Layout';
9
+ import clsx from 'clsx';
11
10
  import {
12
11
  PageMetadata,
13
12
  HtmlClassNameProvider,
14
13
  ThemeClassNames,
15
14
  translateTagsPageTitle,
16
15
  } from '@docusaurus/theme-common';
16
+ import Layout from '@theme/Layout';
17
17
  import TagsListByLetter from '@theme/TagsListByLetter';
18
- import type {Props} from '@theme/DocTagsListPage';
19
18
  import SearchMetadata from '@theme/SearchMetadata';
20
- import clsx from 'clsx';
19
+ import type {Props} from '@theme/DocTagsListPage';
21
20
 
22
21
  export default function DocTagsListPage({tags}: Props): JSX.Element {
23
22
  const title = translateTagsPageTitle();
@@ -6,9 +6,9 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
+ import clsx from 'clsx';
9
10
  import Translate from '@docusaurus/Translate';
10
11
  import {ThemeClassNames, useDocsVersion} from '@docusaurus/theme-common';
11
- import clsx from 'clsx';
12
12
  import type {Props} from '@theme/DocVersionBadge';
13
13
 
14
14
  export default function DocVersionBadge({
@@ -6,6 +6,7 @@
6
6
  */
7
7
 
8
8
  import React, {type ComponentType} from 'react';
9
+ import clsx from 'clsx';
9
10
  import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
10
11
  import Link from '@docusaurus/Link';
11
12
  import Translate from '@docusaurus/Translate';
@@ -21,7 +22,6 @@ import {
21
22
  } from '@docusaurus/theme-common';
22
23
 
23
24
  import type {Props} from '@theme/DocVersionBanner';
24
- import clsx from 'clsx';
25
25
  import type {
26
26
  VersionBanner,
27
27
  PropVersionMetadata,
@@ -7,10 +7,9 @@
7
7
 
8
8
  import React from 'react';
9
9
  import Translate from '@docusaurus/Translate';
10
-
11
- import type {Props} from '@theme/EditThisPage';
12
- import IconEdit from '@theme/IconEdit';
13
10
  import {ThemeClassNames} from '@docusaurus/theme-common';
11
+ import IconEdit from '@theme/IconEdit';
12
+ import type {Props} from '@theme/EditThisPage';
14
13
 
15
14
  export default function EditThisPage({editUrl}: Props): JSX.Element {
16
15
  return (
@@ -6,8 +6,8 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
- import type {Props} from '@theme/Footer/Links/MultiColumn';
10
9
  import LinkItem from '@theme/Footer/LinkItem';
10
+ import type {Props} from '@theme/Footer/Links/MultiColumn';
11
11
 
12
12
  type ColumnType = Props['columns'][number];
13
13
  type ColumnItemType = ColumnType['items'][number];
@@ -6,8 +6,8 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
- import type {Props} from '@theme/Footer/Links/Simple';
10
9
  import LinkItem from '@theme/Footer/LinkItem';
10
+ import type {Props} from '@theme/Footer/Links/Simple';
11
11
 
12
12
  function Separator() {
13
13
  return <span className="footer__link-separator">·</span>;
@@ -8,9 +8,9 @@
8
8
  import React from 'react';
9
9
 
10
10
  import {isMultiColumnFooterLinks} from '@docusaurus/theme-common';
11
- import type {Props} from '@theme/Footer/Links';
12
11
  import FooterLinksMultiColumn from '@theme/Footer/Links/MultiColumn';
13
12
  import FooterLinksSimple from '@theme/Footer/Links/Simple';
13
+ import type {Props} from '@theme/Footer/Links';
14
14
 
15
15
  export default function FooterLinks({links}: Props): JSX.Element {
16
16
  return isMultiColumnFooterLinks(links) ? (
@@ -6,13 +6,13 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
-
10
9
  import Link from '@docusaurus/Link';
11
10
  import {useBaseUrlUtils} from '@docusaurus/useBaseUrl';
12
- import styles from './styles.module.css';
13
11
  import ThemedImage from '@theme/ThemedImage';
14
12
  import type {Props} from '@theme/Footer/Logo';
15
13
 
14
+ import styles from './styles.module.css';
15
+
16
16
  function LogoImage({logo}: Props) {
17
17
  const {withBaseUrl} = useBaseUrlUtils();
18
18
  const sources = {
@@ -7,9 +7,9 @@
7
7
 
8
8
  import React from 'react';
9
9
  import clsx from 'clsx';
10
- import type {Props} from '@theme/Heading';
11
10
  import {translate} from '@docusaurus/Translate';
12
11
  import {useThemeConfig} from '@docusaurus/theme-common';
12
+ import type {Props} from '@theme/Heading';
13
13
 
14
14
  import styles from './styles.module.css';
15
15
 
@@ -7,7 +7,6 @@
7
7
 
8
8
  import React from 'react';
9
9
  import clsx from 'clsx';
10
-
11
10
  import type {Props} from '@theme/IconEdit';
12
11
 
13
12
  import styles from './styles.module.css';
@@ -7,8 +7,8 @@
7
7
 
8
8
  import React from 'react';
9
9
  import Translate from '@docusaurus/Translate';
10
- import type {Props} from '@theme/LastUpdated';
11
10
  import {ThemeClassNames} from '@docusaurus/theme-common';
11
+ import type {Props} from '@theme/LastUpdated';
12
12
 
13
13
  function LastUpdatedAtDate({
14
14
  lastUpdatedAt,
@@ -8,19 +8,19 @@
8
8
  import React from 'react';
9
9
  import clsx from 'clsx';
10
10
  import ErrorBoundary from '@docusaurus/ErrorBoundary';
11
- import SkipToContent from '@theme/SkipToContent';
12
- import AnnouncementBar from '@theme/AnnouncementBar';
13
- import Navbar from '@theme/Navbar';
14
- import Footer from '@theme/Footer';
15
- import LayoutProviders from '@theme/LayoutProviders';
16
- import type {Props} from '@theme/Layout';
17
11
  import {
18
12
  PageMetadata,
19
13
  ThemeClassNames,
20
14
  useKeyboardNavigation,
21
15
  } from '@docusaurus/theme-common';
16
+ import SkipToContent from '@theme/SkipToContent';
17
+ import AnnouncementBar from '@theme/AnnouncementBar';
18
+ import Navbar from '@theme/Navbar';
19
+ import Footer from '@theme/Footer';
20
+ import LayoutProviders from '@theme/LayoutProviders';
22
21
  import ErrorPageContent from '@theme/ErrorPageContent';
23
22
  import './styles.css';
23
+ import type {Props} from '@theme/Layout';
24
24
 
25
25
  export default function Layout(props: Props): JSX.Element {
26
26
  const {
@@ -6,13 +6,12 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
- import type {Props} from '@theme/Logo';
10
-
11
9
  import Link from '@docusaurus/Link';
12
- import ThemedImage from '@theme/ThemedImage';
13
10
  import useBaseUrl from '@docusaurus/useBaseUrl';
14
11
  import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
15
12
  import {useThemeConfig} from '@docusaurus/theme-common';
13
+ import ThemedImage from '@theme/ThemedImage';
14
+ import type {Props} from '@theme/Logo';
16
15
 
17
16
  export default function Logo(props: Props): JSX.Element {
18
17
  const {
@@ -6,8 +6,8 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
- import type {Props} from '@theme/MDXComponents/Img';
10
9
  import clsx from 'clsx';
10
+ import type {Props} from '@theme/MDXComponents/Img';
11
11
 
12
12
  import styles from './styles.module.css';
13
13
 
@@ -12,8 +12,8 @@ import type {Props} from '@theme/MDXComponents/Ul';
12
12
  function transformUlClassName(className?: string): string {
13
13
  return clsx(
14
14
  className,
15
- // This class is set globally by GitHub/MDX
16
- // We keep the global class, but add Infima class to get list without styling
15
+ // This class is set globally by GitHub/MDX. We keep the global class, and
16
+ // add another Infima class to get list without styling
17
17
  // See https://github.com/syntax-tree/mdast-util-to-hast/issues/28
18
18
  className?.includes('contains-task-list') && 'clean-list',
19
19
  );
@@ -7,15 +7,15 @@
7
7
 
8
8
  import React from 'react';
9
9
  import clsx from 'clsx';
10
- import Layout from '@theme/Layout';
11
- import MDXContent from '@theme/MDXContent';
12
- import type {Props} from '@theme/MDXPage';
13
- import TOC from '@theme/TOC';
14
10
  import {
15
11
  PageMetadata,
16
12
  HtmlClassNameProvider,
17
13
  ThemeClassNames,
18
14
  } from '@docusaurus/theme-common';
15
+ import Layout from '@theme/Layout';
16
+ import MDXContent from '@theme/MDXContent';
17
+ import TOC from '@theme/TOC';
18
+ import type {Props} from '@theme/MDXPage';
19
19
 
20
20
  import styles from './styles.module.css';
21
21
 
@@ -5,10 +5,10 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
+ import React from 'react';
8
9
  import {useColorMode, useThemeConfig} from '@docusaurus/theme-common';
9
10
  import ColorModeToggle from '@theme/ColorModeToggle';
10
11
  import type {Props} from '@theme/Navbar/ColorModeToggle';
11
- import React from 'react';
12
12
 
13
13
  export default function NavbarColorModeToggle({
14
14
  className,
@@ -6,18 +6,19 @@
6
6
  */
7
7
 
8
8
  import React, {type ReactNode} from 'react';
9
- import type {Props as NavbarItemConfig} from '@theme/NavbarItem';
10
- import NavbarItem from '@theme/NavbarItem';
11
- import NavbarColorModeToggle from '@theme/Navbar/ColorModeToggle';
12
- import SearchBar from '@theme/SearchBar';
13
9
  import {
14
10
  splitNavbarItems,
15
11
  useNavbarMobileSidebar,
16
12
  useThemeConfig,
17
13
  } from '@docusaurus/theme-common';
14
+ import NavbarItem from '@theme/NavbarItem';
15
+ import NavbarColorModeToggle from '@theme/Navbar/ColorModeToggle';
16
+ import SearchBar from '@theme/SearchBar';
18
17
  import NavbarMobileSidebarToggle from '@theme/Navbar/MobileSidebar/Toggle';
19
18
  import NavbarLogo from '@theme/Navbar/Logo';
20
19
  import NavbarSearch from '@theme/Navbar/Search';
20
+ import type {Props as NavbarItemConfig} from '@theme/NavbarItem';
21
+
21
22
  import styles from './styles.module.css';
22
23
 
23
24
  function useNavbarItems() {
@@ -7,13 +7,13 @@
7
7
 
8
8
  import React, {type ComponentProps} from 'react';
9
9
  import clsx from 'clsx';
10
- import NavbarMobileSidebar from '@theme/Navbar/MobileSidebar';
11
- import type {Props} from '@theme/Navbar/Layout';
12
10
  import {
13
11
  useThemeConfig,
14
12
  useHideableNavbar,
15
13
  useNavbarMobileSidebar,
16
14
  } from '@docusaurus/theme-common';
15
+ import NavbarMobileSidebar from '@theme/Navbar/MobileSidebar';
16
+ import type {Props} from '@theme/Navbar/Layout';
17
17
 
18
18
  import styles from './styles.module.css';
19
19
 
@@ -6,10 +6,10 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
+ import {useNavbarMobileSidebar} from '@docusaurus/theme-common';
9
10
  import NavbarColorModeToggle from '@theme/Navbar/ColorModeToggle';
10
11
  import IconClose from '@theme/IconClose';
11
12
  import NavbarLogo from '@theme/Navbar/Logo';
12
- import {useNavbarMobileSidebar} from '@docusaurus/theme-common';
13
13
 
14
14
  function CloseButton() {
15
15
  const mobileSidebar = useNavbarMobileSidebar();
@@ -7,8 +7,8 @@
7
7
 
8
8
  import React from 'react';
9
9
  import clsx from 'clsx';
10
- import type {Props} from '@theme/Navbar/MobileSidebar/Layout';
11
10
  import {useNavbarSecondaryMenu} from '@docusaurus/theme-common';
11
+ import type {Props} from '@theme/Navbar/MobileSidebar/Layout';
12
12
 
13
13
  export default function NavbarMobileSidebarLayout({
14
14
  header,
@@ -7,8 +7,8 @@
7
7
 
8
8
  import React from 'react';
9
9
  import {useNavbarMobileSidebar, useThemeConfig} from '@docusaurus/theme-common';
10
+ import NavbarItem from '@theme/NavbarItem';
10
11
  import type {Props as NavbarItemConfig} from '@theme/NavbarItem';
11
- import NavbarItem from '../../../NavbarItem';
12
12
 
13
13
  function useNavbarItems() {
14
14
  // TODO temporary casting until ThemeConfig type is improved
@@ -6,8 +6,8 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
- import IconMenu from '@theme/IconMenu';
10
9
  import {useNavbarMobileSidebar} from '@docusaurus/theme-common';
10
+ import IconMenu from '@theme/IconMenu';
11
11
 
12
12
  export default function MobileSidebarToggle(): JSX.Element {
13
13
  const mobileSidebar = useNavbarMobileSidebar();
@@ -6,12 +6,12 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
- import NavbarMobileSidebarLayout from '@theme/Navbar/MobileSidebar/Layout';
10
- import NavbarMobileSidebarHeader from '@theme/Navbar/MobileSidebar/Header';
11
9
  import {
12
10
  useLockBodyScroll,
13
11
  useNavbarMobileSidebar,
14
12
  } from '@docusaurus/theme-common';
13
+ import NavbarMobileSidebarLayout from '@theme/Navbar/MobileSidebar/Layout';
14
+ import NavbarMobileSidebarHeader from '@theme/Navbar/MobileSidebar/Header';
15
15
  import NavbarMobileSidebarPrimaryMenu from '@theme/Navbar/MobileSidebar/PrimaryMenu';
16
16
  import NavbarMobileSidebarSecondaryMenu from '@theme/Navbar/MobileSidebar/SecondaryMenu';
17
17
 
@@ -7,16 +7,13 @@
7
7
 
8
8
  import React from 'react';
9
9
  import clsx from 'clsx';
10
-
11
10
  import NavbarNavLink from '@theme/NavbarItem/NavbarNavLink';
12
-
11
+ import {getInfimaActiveClassName} from '@theme/NavbarItem/utils';
13
12
  import type {
14
13
  DesktopOrMobileNavBarItemProps,
15
14
  Props,
16
15
  } from '@theme/NavbarItem/DefaultNavbarItem';
17
16
 
18
- import {getInfimaActiveClassName} from '@theme/NavbarItem/utils';
19
-
20
17
  function DefaultNavbarItemDesktop({
21
18
  className,
22
19
  isDropdownItem = false,
@@ -6,12 +6,12 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
- import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
10
- import {useActiveDocContext} from '@docusaurus/plugin-content-docs/client';
11
9
  import clsx from 'clsx';
10
+ import {useActiveDocContext} from '@docusaurus/plugin-content-docs/client';
11
+ import {useLayoutDoc} from '@docusaurus/theme-common';
12
+ import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
12
13
  import {getInfimaActiveClassName} from '@theme/NavbarItem/utils';
13
14
  import type {Props} from '@theme/NavbarItem/DocNavbarItem';
14
- import {useLayoutDoc} from '@docusaurus/theme-common';
15
15
 
16
16
  export default function DocNavbarItem({
17
17
  docId,
@@ -6,12 +6,11 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
- import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
10
- import {useActiveDocContext} from '@docusaurus/plugin-content-docs/client';
11
9
  import clsx from 'clsx';
12
- import {getInfimaActiveClassName} from '@theme/NavbarItem/utils';
10
+ import {useActiveDocContext} from '@docusaurus/plugin-content-docs/client';
13
11
  import {useLayoutDocsSidebar} from '@docusaurus/theme-common';
14
-
12
+ import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
13
+ import {getInfimaActiveClassName} from '@theme/NavbarItem/utils';
15
14
  import type {Props} from '@theme/NavbarItem/DocSidebarNavbarItem';
16
15
 
17
16
  export default function DocSidebarNavbarItem({