@docusaurus/theme-classic 2.2.0 → 2.3.0

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 (37) hide show
  1. package/lib/getSwizzleConfig.js +35 -1
  2. package/lib/theme/DocBreadcrumbs/Items/Home/index.d.ts +8 -0
  3. package/lib/theme/DocBreadcrumbs/Items/Home/index.js +29 -0
  4. package/lib/theme/DocBreadcrumbs/Items/Home/styles.module.css +14 -0
  5. package/lib/theme/DocBreadcrumbs/index.js +1 -19
  6. package/lib/theme/DocBreadcrumbs/styles.module.css +0 -8
  7. package/lib/theme/DocPage/Layout/Sidebar/ExpandButton/styles.module.css +3 -2
  8. package/lib/theme/DocPage/Layout/Sidebar/index.js +13 -8
  9. package/lib/theme/DocPage/Layout/Sidebar/styles.module.css +7 -0
  10. package/lib/theme/DocPage/Layout/styles.module.css +1 -0
  11. package/lib/theme/DocSidebar/Desktop/CollapseButton/styles.module.css +1 -0
  12. package/lib/theme/DocSidebar/Desktop/Content/index.js +6 -0
  13. package/lib/theme/DocSidebar/Desktop/styles.module.css +0 -6
  14. package/lib/theme/Heading/index.js +17 -8
  15. package/lib/theme/Layout/Provider/index.js +0 -2
  16. package/lib/theme/Layout/styles.module.css +2 -0
  17. package/lib/theme/Navbar/Layout/index.js +6 -0
  18. package/lib/theme/Tabs/index.js +63 -130
  19. package/package.json +14 -14
  20. package/src/getSwizzleConfig.ts +39 -1
  21. package/src/theme/DocBreadcrumbs/Items/Home/index.tsx +33 -0
  22. package/src/theme/DocBreadcrumbs/Items/Home/styles.module.css +14 -0
  23. package/src/theme/DocBreadcrumbs/index.tsx +1 -20
  24. package/src/theme/DocBreadcrumbs/styles.module.css +0 -8
  25. package/src/theme/DocPage/Layout/Sidebar/ExpandButton/styles.module.css +3 -2
  26. package/src/theme/DocPage/Layout/Sidebar/index.tsx +13 -8
  27. package/src/theme/DocPage/Layout/Sidebar/styles.module.css +7 -0
  28. package/src/theme/DocPage/Layout/styles.module.css +1 -0
  29. package/src/theme/DocSidebar/Desktop/CollapseButton/styles.module.css +1 -0
  30. package/src/theme/DocSidebar/Desktop/Content/index.tsx +6 -0
  31. package/src/theme/DocSidebar/Desktop/styles.module.css +0 -6
  32. package/src/theme/Heading/index.tsx +18 -8
  33. package/src/theme/Layout/Provider/index.tsx +0 -2
  34. package/src/theme/Layout/styles.module.css +2 -0
  35. package/src/theme/Navbar/Layout/index.tsx +6 -0
  36. package/src/theme/Tabs/index.tsx +79 -142
  37. package/src/theme-classic.d.ts +8 -25
@@ -1123,38 +1123,17 @@ declare module '@theme/Mermaid' {
1123
1123
  }
1124
1124
 
1125
1125
  declare module '@theme/TabItem' {
1126
- import type {ReactNode} from 'react';
1126
+ import type {TabItemProps} from '@docusaurus/theme-common/internal';
1127
1127
 
1128
- export interface Props {
1129
- readonly children: ReactNode;
1130
- readonly value: string;
1131
- readonly default?: boolean;
1132
- readonly label?: string;
1133
- readonly hidden?: boolean;
1134
- readonly className?: string;
1135
- readonly attributes?: {[key: string]: unknown};
1136
- }
1128
+ export interface Props extends TabItemProps {}
1137
1129
 
1138
1130
  export default function TabItem(props: Props): JSX.Element;
1139
1131
  }
1140
1132
 
1141
1133
  declare module '@theme/Tabs' {
1142
- import type {ReactElement} from 'react';
1143
- import type {Props as TabItemProps} from '@theme/TabItem';
1134
+ import type {TabsProps} from '@docusaurus/theme-common/internal';
1144
1135
 
1145
- export interface Props {
1146
- readonly lazy?: boolean;
1147
- readonly block?: boolean;
1148
- readonly children: readonly ReactElement<TabItemProps>[];
1149
- readonly defaultValue?: string | null;
1150
- readonly values?: readonly {
1151
- value: string;
1152
- label?: string;
1153
- attributes?: {[key: string]: unknown};
1154
- }[];
1155
- readonly groupId?: string;
1156
- readonly className?: string;
1157
- }
1136
+ export interface Props extends TabsProps {}
1158
1137
 
1159
1138
  export default function Tabs(props: Props): JSX.Element;
1160
1139
  }
@@ -1392,3 +1371,7 @@ declare module '@theme/prism-include-languages' {
1392
1371
  PrismObject: typeof PrismNamespace,
1393
1372
  ): void;
1394
1373
  }
1374
+
1375
+ declare module '@theme/DocBreadcrumbs/Items/Home' {
1376
+ export default function HomeBreadcrumbItem(): JSX.Element;
1377
+ }