@readme/markdown 11.2.1 → 11.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
function TableOfContents({ children }: React.PropsWithChildren) {
|
|
3
|
+
function TableOfContents({ children, heading = 'Table of Contents' }: React.PropsWithChildren<{ heading?: string }>) {
|
|
4
4
|
return (
|
|
5
5
|
<nav aria-label="Table of contents" role="navigation">
|
|
6
6
|
<ul className="toc-list">
|
|
@@ -8,7 +8,7 @@ function TableOfContents({ children }: React.PropsWithChildren) {
|
|
|
8
8
|
{/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
|
|
9
9
|
<a className="tocHeader" href="#">
|
|
10
10
|
<i className="icon icon-text-align-left"></i>
|
|
11
|
-
|
|
11
|
+
{heading}
|
|
12
12
|
</a>
|
|
13
13
|
</li>
|
|
14
14
|
<li className="toc-children">{children}</li>
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare function TableOfContents({ children }: React.PropsWithChildren
|
|
2
|
+
declare function TableOfContents({ children, heading }: React.PropsWithChildren<{
|
|
3
|
+
heading?: string;
|
|
4
|
+
}>): React.JSX.Element;
|
|
3
5
|
export default TableOfContents;
|
package/dist/main.js
CHANGED
|
@@ -9235,13 +9235,13 @@ const Table = (props) => {
|
|
|
9235
9235
|
|
|
9236
9236
|
;// ./components/TableOfContents/index.tsx
|
|
9237
9237
|
|
|
9238
|
-
function TableOfContents({ children }) {
|
|
9238
|
+
function TableOfContents({ children, heading = 'Table of Contents' }) {
|
|
9239
9239
|
return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("nav", { "aria-label": "Table of contents", role: "navigation" },
|
|
9240
9240
|
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("ul", { className: "toc-list" },
|
|
9241
9241
|
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("li", null,
|
|
9242
9242
|
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("a", { className: "tocHeader", href: "#" },
|
|
9243
9243
|
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("i", { className: "icon icon-text-align-left" }),
|
|
9244
|
-
|
|
9244
|
+
heading)),
|
|
9245
9245
|
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("li", { className: "toc-children" }, children))));
|
|
9246
9246
|
}
|
|
9247
9247
|
/* harmony default export */ const components_TableOfContents = (TableOfContents);
|
|
@@ -87920,8 +87920,8 @@ const run_run = (string, _opts = {}) => {
|
|
|
87920
87920
|
default: (props) => (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement(contexts, { baseUrl: baseUrl, copyButtons: copyButtons, terms: terms, theme: theme, variables: variables },
|
|
87921
87921
|
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement(Content, { ...props }))),
|
|
87922
87922
|
toc,
|
|
87923
|
-
Toc: props => Toc ? (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement(components_TableOfContents,
|
|
87924
|
-
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement(Toc,
|
|
87923
|
+
Toc: (props) => Toc ? (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement(components_TableOfContents, { heading: props.heading },
|
|
87924
|
+
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement(Toc, null))) : null,
|
|
87925
87925
|
stylesheet,
|
|
87926
87926
|
...exports,
|
|
87927
87927
|
};
|
package/dist/main.node.js
CHANGED
|
@@ -21848,13 +21848,13 @@ const Table = (props) => {
|
|
|
21848
21848
|
|
|
21849
21849
|
;// ./components/TableOfContents/index.tsx
|
|
21850
21850
|
|
|
21851
|
-
function TableOfContents({ children }) {
|
|
21851
|
+
function TableOfContents({ children, heading = 'Table of Contents' }) {
|
|
21852
21852
|
return (external_react_default().createElement("nav", { "aria-label": "Table of contents", role: "navigation" },
|
|
21853
21853
|
external_react_default().createElement("ul", { className: "toc-list" },
|
|
21854
21854
|
external_react_default().createElement("li", null,
|
|
21855
21855
|
external_react_default().createElement("a", { className: "tocHeader", href: "#" },
|
|
21856
21856
|
external_react_default().createElement("i", { className: "icon icon-text-align-left" }),
|
|
21857
|
-
|
|
21857
|
+
heading)),
|
|
21858
21858
|
external_react_default().createElement("li", { className: "toc-children" }, children))));
|
|
21859
21859
|
}
|
|
21860
21860
|
/* harmony default export */ const components_TableOfContents = (TableOfContents);
|
|
@@ -108131,8 +108131,8 @@ const run_run = (string, _opts = {}) => {
|
|
|
108131
108131
|
default: (props) => (external_react_default().createElement(contexts, { baseUrl: baseUrl, copyButtons: copyButtons, terms: terms, theme: theme, variables: variables },
|
|
108132
108132
|
external_react_default().createElement(Content, { ...props }))),
|
|
108133
108133
|
toc,
|
|
108134
|
-
Toc: props => Toc ? (external_react_default().createElement(components_TableOfContents,
|
|
108135
|
-
external_react_default().createElement(Toc,
|
|
108134
|
+
Toc: (props) => Toc ? (external_react_default().createElement(components_TableOfContents, { heading: props.heading },
|
|
108135
|
+
external_react_default().createElement(Toc, null))) : null,
|
|
108136
108136
|
stylesheet,
|
|
108137
108137
|
...exports,
|
|
108138
108138
|
};
|