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

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 (31) hide show
  1. package/lib-next/theme/DocPage/Layout/Sidebar/index.js +1 -1
  2. package/lib-next/theme/DocPage/Layout/Sidebar/{index.module.css → styles.module.css} +0 -0
  3. package/lib-next/theme/DocPage/Layout/index.js +1 -1
  4. package/lib-next/theme/DocPage/Layout/{index.module.css → styles.module.css} +0 -0
  5. package/lib-next/theme/DocSidebarItem/{Category.js → Category/index.js} +0 -0
  6. package/lib-next/theme/DocSidebarItem/{Html.js → Html/index.js} +1 -1
  7. package/lib-next/theme/DocSidebarItem/{Html.module.css → Html/styles.module.css} +0 -0
  8. package/lib-next/theme/DocSidebarItem/{Link.js → Link/index.js} +1 -1
  9. package/lib-next/theme/DocSidebarItem/{Link.module.css → Link/styles.module.css} +0 -0
  10. package/lib-next/theme/MDXComponents/{Img.js → Img/index.js} +1 -1
  11. package/lib-next/theme/MDXComponents/{Img.module.css → Img/styles.module.css} +0 -0
  12. package/lib-next/theme/TOCCollapsible/{CollapseButton.js → CollapseButton/index.js} +1 -1
  13. package/lib-next/theme/TOCCollapsible/{CollapseButton.module.css → CollapseButton/styles.module.css} +0 -0
  14. package/lib-next/theme/TOCCollapsible/index.js +1 -1
  15. package/lib-next/theme/TOCCollapsible/{index.module.css → styles.module.css} +0 -0
  16. package/package.json +13 -13
  17. package/src/theme/DocPage/Layout/Sidebar/index.tsx +1 -1
  18. package/src/theme/DocPage/Layout/Sidebar/{index.module.css → styles.module.css} +0 -0
  19. package/src/theme/DocPage/Layout/index.tsx +2 -3
  20. package/src/theme/DocPage/Layout/{index.module.css → styles.module.css} +0 -0
  21. package/src/theme/DocSidebarItem/{Category.tsx → Category/index.tsx} +0 -0
  22. package/src/theme/DocSidebarItem/{Html.tsx → Html/index.tsx} +1 -1
  23. package/src/theme/DocSidebarItem/{Html.module.css → Html/styles.module.css} +0 -0
  24. package/src/theme/DocSidebarItem/{Link.tsx → Link/index.tsx} +1 -1
  25. package/src/theme/DocSidebarItem/{Link.module.css → Link/styles.module.css} +0 -0
  26. package/src/theme/MDXComponents/{Img.tsx → Img/index.tsx} +2 -1
  27. package/src/theme/MDXComponents/{Img.module.css → Img/styles.module.css} +0 -0
  28. package/src/theme/TOCCollapsible/{CollapseButton.tsx → CollapseButton/index.tsx} +2 -1
  29. package/src/theme/TOCCollapsible/{CollapseButton.module.css → CollapseButton/styles.module.css} +0 -0
  30. package/src/theme/TOCCollapsible/index.tsx +2 -1
  31. /package/src/theme/TOCCollapsible/{index.module.css → styles.module.css} +0 -0
@@ -9,7 +9,7 @@ import DocSidebar from '@theme/DocSidebar';
9
9
  import {useLocation} from '@docusaurus/router';
10
10
  import ExpandButton from '@theme/DocPage/Layout/Sidebar/ExpandButton';
11
11
  import clsx from 'clsx';
12
- import styles from './index.module.css';
12
+ import styles from './styles.module.css';
13
13
  import {ThemeClassNames, useDocsSidebar} from '@docusaurus/theme-common'; // Reset sidebar state when sidebar changes
14
14
  // Use React key to unmount/remount the children
15
15
  // See https://github.com/facebook/docusaurus/issues/3414
@@ -9,8 +9,8 @@ import Layout from '@theme/Layout';
9
9
  import BackToTopButton from '@theme/BackToTopButton';
10
10
  import DocPageLayoutSidebar from '@theme/DocPage/Layout/Sidebar';
11
11
  import DocPageLayoutMain from '@theme/DocPage/Layout/Main';
12
- import styles from './index.module.css';
13
12
  import {useDocsSidebar} from '@docusaurus/theme-common';
13
+ import styles from './styles.module.css';
14
14
  export default function DocPageLayout({children}) {
15
15
  const sidebar = useDocsSidebar();
16
16
  const [hiddenSidebarContainer, setHiddenSidebarContainer] = useState(false);
@@ -7,7 +7,7 @@
7
7
  import React from 'react';
8
8
  import clsx from 'clsx';
9
9
  import {ThemeClassNames} from '@docusaurus/theme-common';
10
- import styles from './Html.module.css';
10
+ import styles from './styles.module.css';
11
11
  export default function DocSidebarItemHtml({item, level, index}) {
12
12
  const {value, defaultStyle, className} = item;
13
13
  return (
@@ -10,7 +10,7 @@ import {isActiveSidebarItem, ThemeClassNames} from '@docusaurus/theme-common';
10
10
  import Link from '@docusaurus/Link';
11
11
  import isInternalUrl from '@docusaurus/isInternalUrl';
12
12
  import IconExternalLink from '@theme/IconExternalLink';
13
- import styles from './Link.module.css';
13
+ import styles from './styles.module.css';
14
14
  export default function DocSidebarItemLink({
15
15
  item,
16
16
  onItemClick,
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import React from 'react';
8
- import styles from './Img.module.css';
9
8
  import clsx from 'clsx';
9
+ import styles from './styles.module.css';
10
10
 
11
11
  function transformImgClassName(className) {
12
12
  return clsx(className, styles.img);
@@ -7,7 +7,7 @@
7
7
  import React from 'react';
8
8
  import clsx from 'clsx';
9
9
  import Translate from '@docusaurus/Translate';
10
- import styles from './CollapseButton.module.css';
10
+ import styles from './styles.module.css';
11
11
  export default function TOCCollapsibleCollapseButton({collapsed, ...props}) {
12
12
  return (
13
13
  <button
@@ -7,9 +7,9 @@
7
7
  import React from 'react';
8
8
  import clsx from 'clsx';
9
9
  import {useCollapsible, Collapsible} from '@docusaurus/theme-common';
10
- import styles from './index.module.css';
11
10
  import TOCItems from '@theme/TOCItems';
12
11
  import CollapseButton from '@theme/TOCCollapsible/CollapseButton';
12
+ import styles from './styles.module.css';
13
13
  export default function TOCCollapsible({
14
14
  toc,
15
15
  className,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-classic",
3
- "version": "0.0.0-5009",
3
+ "version": "0.0.0-5010",
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-5009",
25
- "@docusaurus/plugin-content-blog": "0.0.0-5009",
26
- "@docusaurus/plugin-content-docs": "0.0.0-5009",
27
- "@docusaurus/plugin-content-pages": "0.0.0-5009",
28
- "@docusaurus/theme-common": "0.0.0-5009",
29
- "@docusaurus/theme-translations": "0.0.0-5009",
30
- "@docusaurus/utils": "0.0.0-5009",
31
- "@docusaurus/utils-common": "0.0.0-5009",
32
- "@docusaurus/utils-validation": "0.0.0-5009",
24
+ "@docusaurus/core": "0.0.0-5010",
25
+ "@docusaurus/plugin-content-blog": "0.0.0-5010",
26
+ "@docusaurus/plugin-content-docs": "0.0.0-5010",
27
+ "@docusaurus/plugin-content-pages": "0.0.0-5010",
28
+ "@docusaurus/theme-common": "0.0.0-5010",
29
+ "@docusaurus/theme-translations": "0.0.0-5010",
30
+ "@docusaurus/utils": "0.0.0-5010",
31
+ "@docusaurus/utils-common": "0.0.0-5010",
32
+ "@docusaurus/utils-validation": "0.0.0-5010",
33
33
  "@mdx-js/react": "^1.6.22",
34
34
  "clsx": "^1.1.1",
35
35
  "copy-text-to-clipboard": "^3.0.1",
@@ -46,8 +46,8 @@
46
46
  "@babel/cli": "^7.17.10",
47
47
  "@babel/core": "^7.17.10",
48
48
  "@babel/preset-typescript": "^7.16.7",
49
- "@docusaurus/module-type-aliases": "0.0.0-5009",
50
- "@docusaurus/types": "0.0.0-5009",
49
+ "@docusaurus/module-type-aliases": "0.0.0-5010",
50
+ "@docusaurus/types": "0.0.0-5010",
51
51
  "@types/mdx-js__react": "^1.5.5",
52
52
  "@types/nprogress": "^0.2.0",
53
53
  "@types/prismjs": "^1.26.0",
@@ -64,5 +64,5 @@
64
64
  "engines": {
65
65
  "node": ">=14"
66
66
  },
67
- "gitHead": "b3d1590b3b6a0d270bf339c637574152cc4d51dc"
67
+ "gitHead": "d4c0feac2c3c1cd9853af197a8a539832700e541"
68
68
  }
@@ -12,7 +12,7 @@ import type {Props} from '@theme/DocPage/Layout/Sidebar';
12
12
  import ExpandButton from '@theme/DocPage/Layout/Sidebar/ExpandButton';
13
13
 
14
14
  import clsx from 'clsx';
15
- import styles from './index.module.css';
15
+ import styles from './styles.module.css';
16
16
 
17
17
  import {ThemeClassNames, useDocsSidebar} from '@docusaurus/theme-common';
18
18
 
@@ -11,11 +11,10 @@ import BackToTopButton from '@theme/BackToTopButton';
11
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
-
15
- import styles from './index.module.css';
16
-
17
14
  import {useDocsSidebar} from '@docusaurus/theme-common';
18
15
 
16
+ import styles from './styles.module.css';
17
+
19
18
  export default function DocPageLayout({children}: Props): JSX.Element {
20
19
  const sidebar = useDocsSidebar();
21
20
  const [hiddenSidebarContainer, setHiddenSidebarContainer] = useState(false);
@@ -10,7 +10,7 @@ import clsx from 'clsx';
10
10
  import {ThemeClassNames} from '@docusaurus/theme-common';
11
11
  import type {Props} from '@theme/DocSidebarItem/Html';
12
12
 
13
- import styles from './Html.module.css';
13
+ import styles from './styles.module.css';
14
14
 
15
15
  export default function DocSidebarItemHtml({
16
16
  item,
@@ -14,7 +14,7 @@ import IconExternalLink from '@theme/IconExternalLink';
14
14
 
15
15
  import type {Props} from '@theme/DocSidebarItem/Link';
16
16
 
17
- import styles from './Link.module.css';
17
+ import styles from './styles.module.css';
18
18
 
19
19
  export default function DocSidebarItemLink({
20
20
  item,
@@ -7,9 +7,10 @@
7
7
 
8
8
  import React from 'react';
9
9
  import type {Props} from '@theme/MDXComponents/Img';
10
- import styles from './Img.module.css';
11
10
  import clsx from 'clsx';
12
11
 
12
+ import styles from './styles.module.css';
13
+
13
14
  function transformImgClassName(className?: string): string {
14
15
  return clsx(className, styles.img);
15
16
  }
@@ -8,9 +8,10 @@
8
8
  import React from 'react';
9
9
  import clsx from 'clsx';
10
10
  import Translate from '@docusaurus/Translate';
11
- import styles from './CollapseButton.module.css';
12
11
  import type {Props} from '@theme/TOCCollapsible/CollapseButton';
13
12
 
13
+ import styles from './styles.module.css';
14
+
14
15
  export default function TOCCollapsibleCollapseButton({
15
16
  collapsed,
16
17
  ...props
@@ -8,11 +8,12 @@
8
8
  import React from 'react';
9
9
  import clsx from 'clsx';
10
10
  import {useCollapsible, Collapsible} from '@docusaurus/theme-common';
11
- import styles from './index.module.css';
12
11
  import TOCItems from '@theme/TOCItems';
13
12
  import type {Props} from '@theme/TOCCollapsible';
14
13
  import CollapseButton from '@theme/TOCCollapsible/CollapseButton';
15
14
 
15
+ import styles from './styles.module.css';
16
+
16
17
  export default function TOCCollapsible({
17
18
  toc,
18
19
  className,