ixia-ui-react 1.4.3 → 1.4.4
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.d.ts +2 -2
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -750,10 +750,10 @@ declare function CodeBlock$1({ items, defaultValue, className, ref, ...props }:
|
|
|
750
750
|
export declare function CodeBlockActions({ className, ref, ...props }: CodeBlockActionsProps): import("react").JSX.Element;
|
|
751
751
|
//#endregion
|
|
752
752
|
//#region src/components/code-block/code-block-copy.d.ts
|
|
753
|
-
export declare function CodeBlockCopy({ className, children, ref, ...props }: CodeBlockCopyProps): React$1.JSX.Element
|
|
753
|
+
export declare function CodeBlockCopy({ className, children, ref, ...props }: CodeBlockCopyProps): React$1.JSX.Element;
|
|
754
754
|
//#endregion
|
|
755
755
|
//#region src/components/code-block/code-block-download.d.ts
|
|
756
|
-
export declare function CodeBlockDownload({ className, children, ref, ...props }: CodeBlockDownloadProps): React$1.JSX.Element
|
|
756
|
+
export declare function CodeBlockDownload({ className, children, ref, ...props }: CodeBlockDownloadProps): React$1.JSX.Element;
|
|
757
757
|
//#endregion
|
|
758
758
|
//#region src/components/code-block/code-block-header.d.ts
|
|
759
759
|
type CodeBlockHeaderProps = React.ComponentProps<'div'>;
|
package/dist/index.js
CHANGED
|
@@ -2349,7 +2349,7 @@ function useCodeBlock() {
|
|
|
2349
2349
|
//#region src/components/code-block/code-block-actions.tsx
|
|
2350
2350
|
function CodeBlockActions({ className, ref, ...props }) {
|
|
2351
2351
|
return /* @__PURE__ */ jsx("div", {
|
|
2352
|
-
className: cn("absolute top-
|
|
2352
|
+
className: cn("absolute top-2xs right-2xs flex items-center gap-3xs", className),
|
|
2353
2353
|
ref,
|
|
2354
2354
|
...props
|
|
2355
2355
|
});
|
|
@@ -2378,7 +2378,6 @@ function CodeBlockCopy({ className, children, ref, ...props }) {
|
|
|
2378
2378
|
console.error("Failed to copy text:", error);
|
|
2379
2379
|
}
|
|
2380
2380
|
};
|
|
2381
|
-
if (React.isValidElement(currentValue.content)) return;
|
|
2382
2381
|
return /* @__PURE__ */ jsxs(Button, {
|
|
2383
2382
|
"aria-label": "Copy code",
|
|
2384
2383
|
onClick: handleClick,
|
|
@@ -2419,7 +2418,6 @@ function CodeBlockDownload({ className, children, ref, ...props }) {
|
|
|
2419
2418
|
console.error("Failed to download file:", error);
|
|
2420
2419
|
}
|
|
2421
2420
|
};
|
|
2422
|
-
if (React.isValidElement(currentValue.content)) return;
|
|
2423
2421
|
return /* @__PURE__ */ jsxs(Button, {
|
|
2424
2422
|
"aria-label": "Download file",
|
|
2425
2423
|
onClick: handleClick,
|