@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.
- package/lib/getSwizzleConfig.js +35 -1
- package/lib/theme/DocBreadcrumbs/Items/Home/index.d.ts +8 -0
- package/lib/theme/DocBreadcrumbs/Items/Home/index.js +29 -0
- package/lib/theme/DocBreadcrumbs/Items/Home/styles.module.css +14 -0
- package/lib/theme/DocBreadcrumbs/index.js +1 -19
- package/lib/theme/DocBreadcrumbs/styles.module.css +0 -8
- package/lib/theme/DocPage/Layout/Sidebar/ExpandButton/styles.module.css +3 -2
- package/lib/theme/DocPage/Layout/Sidebar/index.js +13 -8
- package/lib/theme/DocPage/Layout/Sidebar/styles.module.css +7 -0
- package/lib/theme/DocPage/Layout/styles.module.css +1 -0
- package/lib/theme/DocSidebar/Desktop/CollapseButton/styles.module.css +1 -0
- package/lib/theme/DocSidebar/Desktop/Content/index.js +6 -0
- package/lib/theme/DocSidebar/Desktop/styles.module.css +0 -6
- package/lib/theme/Heading/index.js +17 -8
- package/lib/theme/Layout/Provider/index.js +0 -2
- package/lib/theme/Layout/styles.module.css +2 -0
- package/lib/theme/Navbar/Layout/index.js +6 -0
- package/lib/theme/Tabs/index.js +63 -130
- package/package.json +14 -14
- package/src/getSwizzleConfig.ts +39 -1
- package/src/theme/DocBreadcrumbs/Items/Home/index.tsx +33 -0
- package/src/theme/DocBreadcrumbs/Items/Home/styles.module.css +14 -0
- package/src/theme/DocBreadcrumbs/index.tsx +1 -20
- package/src/theme/DocBreadcrumbs/styles.module.css +0 -8
- package/src/theme/DocPage/Layout/Sidebar/ExpandButton/styles.module.css +3 -2
- package/src/theme/DocPage/Layout/Sidebar/index.tsx +13 -8
- package/src/theme/DocPage/Layout/Sidebar/styles.module.css +7 -0
- package/src/theme/DocPage/Layout/styles.module.css +1 -0
- package/src/theme/DocSidebar/Desktop/CollapseButton/styles.module.css +1 -0
- package/src/theme/DocSidebar/Desktop/Content/index.tsx +6 -0
- package/src/theme/DocSidebar/Desktop/styles.module.css +0 -6
- package/src/theme/Heading/index.tsx +18 -8
- package/src/theme/Layout/Provider/index.tsx +0 -2
- package/src/theme/Layout/styles.module.css +2 -0
- package/src/theme/Navbar/Layout/index.tsx +6 -0
- package/src/theme/Tabs/index.tsx +79 -142
- package/src/theme-classic.d.ts +8 -25
package/src/theme-classic.d.ts
CHANGED
|
@@ -1123,38 +1123,17 @@ declare module '@theme/Mermaid' {
|
|
|
1123
1123
|
}
|
|
1124
1124
|
|
|
1125
1125
|
declare module '@theme/TabItem' {
|
|
1126
|
-
import type {
|
|
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 {
|
|
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
|
+
}
|