@elmethis/react 0.3.4 → 0.3.5
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.
|
@@ -4,17 +4,8 @@ import type { ElmethisCSSVariables } from "@styles/variables";
|
|
|
4
4
|
export type ElmCodeBlockCSSVariables = Pick<ElmethisCSSVariables, "--elmethis-margin-block-start">;
|
|
5
5
|
export interface ElmCodeBlockProps {
|
|
6
6
|
style?: React.CSSProperties & ElmCodeBlockCSSVariables;
|
|
7
|
-
/**
|
|
8
|
-
* The code to display.
|
|
9
|
-
*/
|
|
10
7
|
code: string;
|
|
11
|
-
/**
|
|
12
|
-
* The language of the code.
|
|
13
|
-
*/
|
|
14
8
|
language?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Optional caption. Falls back to language if not provided.
|
|
17
|
-
*/
|
|
18
9
|
caption?: string;
|
|
19
10
|
}
|
|
20
11
|
export declare const ElmCodeBlock: ({ code, language, caption, style, }: ElmCodeBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ElmCodeBlock.d.ts","sourceRoot":"","sources":["../../../src/components/code/ElmCodeBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ElmCodeBlock.d.ts","sourceRoot":"","sources":["../../../src/components/code/ElmCodeBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,oBAAoB,CAAC;AAW5B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,oBAAoB,EACpB,+BAA+B,CAChC,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,GAAG,wBAAwB,CAAC;IACvD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,YAAY,GAAI,qCAK1B,iBAAiB,4CAkGnB,CAAC"}
|