react-markdown-table-ts 0.4.16 → 0.4.18
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/dist/index.cjs.js +6 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +6 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
@@ -13907,11 +13907,15 @@ var MarkdownTable = function (_a) {
|
|
13907
13907
|
var handleCopy = function () {
|
13908
13908
|
navigator.clipboard.writeText(markdownTableSyntax);
|
13909
13909
|
};
|
13910
|
-
return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx("style", { children: theme === 'light' ? LIGHT_THEME_CSS : DARK_THEME_CSS }), jsxRuntimeExports.jsxs("div", { style: {
|
13910
|
+
return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx("style", { children: theme === 'light' ? LIGHT_THEME_CSS : DARK_THEME_CSS }), jsxRuntimeExports.jsxs("div", { style: {
|
13911
|
+
position: 'relative',
|
13912
|
+
isolation: 'isolate'
|
13913
|
+
}, children: [jsxRuntimeExports.jsx(IconButton$1, { onClick: handleCopy, sx: {
|
13911
13914
|
position: 'absolute',
|
13912
13915
|
top: '12px',
|
13913
13916
|
right: '8px',
|
13914
|
-
|
13917
|
+
zIndex: 1
|
13918
|
+
}, "aria-label": "Copy to clipboard", size: "small", children: jsxRuntimeExports.jsx(ContentCopyIcon, { fontSize: "small" }) }), jsxRuntimeExports.jsx("pre", { ref: preElementRef, className: "".concat(className, " language-markdown line-numbers ").concat(theme === 'dark' ? 'dark-theme' : ''), style: preStyle, children: jsxRuntimeExports.jsx("code", { className: "language-markdown", role: "code", children: markdownTableSyntax }) })] })] }));
|
13915
13919
|
};
|
13916
13920
|
|
13917
13921
|
exports.MarkdownTable = MarkdownTable;
|