@kakadu/components 6.11.3 → 6.12.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/build/components/code.d.ts +11 -4
- package/build/components/code.js +4 -4
- package/build/components/code.mjs +257 -254
- package/build/components/input.d.ts +3 -1
- package/build/components/input.js +2 -2
- package/build/components/input.mjs +3 -2
- package/build/components/text.js +1 -1
- package/build/components/text.mjs +1 -1
- package/build/components.css +1 -1
- package/build/index.js +1 -1
- package/build/index.mjs +201 -200
- package/package.json +1 -1
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import React, { type HTMLAttributes } from 'react';
|
|
1
|
+
import React, { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
2
|
export declare function formatCode(code: string): string;
|
|
3
|
-
|
|
4
|
-
readonly isBlock?: boolean;
|
|
3
|
+
type CodeProperties = Omit<HTMLAttributes<HTMLElement>, 'children'> & {
|
|
5
4
|
readonly language?: string;
|
|
6
5
|
readonly children: string;
|
|
7
6
|
readonly innerClassName?: string;
|
|
8
|
-
} &
|
|
7
|
+
} & ({
|
|
8
|
+
readonly isBlock?: false;
|
|
9
|
+
readonly footnote?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
readonly isBlock: true;
|
|
12
|
+
readonly footnote?: ReactNode;
|
|
13
|
+
});
|
|
14
|
+
export default function Code({ language, footnote, isBlock, children, className, innerClassName, ...properties }: CodeProperties): React.JSX.Element;
|
|
15
|
+
export {};
|