@julseb-lib/react 0.1.44 → 0.1.45
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.js
CHANGED
|
@@ -11494,11 +11494,11 @@ var CodeContainer = (_a) => {
|
|
|
11494
11494
|
var _b = _a, {
|
|
11495
11495
|
children,
|
|
11496
11496
|
code,
|
|
11497
|
-
|
|
11497
|
+
showNumbers
|
|
11498
11498
|
} = _b, rest = __objRest(_b, [
|
|
11499
11499
|
"children",
|
|
11500
11500
|
"code",
|
|
11501
|
-
"
|
|
11501
|
+
"showNumbers"
|
|
11502
11502
|
]);
|
|
11503
11503
|
const [hasCopied, setHasCopied] = useState29(false);
|
|
11504
11504
|
const copyToClipboard = () => {
|
|
@@ -11519,7 +11519,7 @@ var CodeContainer = (_a) => {
|
|
|
11519
11519
|
style,
|
|
11520
11520
|
className: "relative max-w-full overflow-x-scroll",
|
|
11521
11521
|
children: tokens.map((line, i) => /* @__PURE__ */ jsxs55("div", __spreadProps(__spreadValues({}, getLineProps({ line })), { children: [
|
|
11522
|
-
|
|
11522
|
+
showNumbers && /* @__PURE__ */ jsx129("span", { className: "mr-6", children: i + 1 }),
|
|
11523
11523
|
line.map((token, key) => /* @__PURE__ */ jsx129(
|
|
11524
11524
|
"span",
|
|
11525
11525
|
__spreadValues({}, getTokenProps({ token })),
|