@mantine-vue/code-highlight 1.1.2
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/cjs/index.cjs +1985 -0
- package/cjs/index.cjs.map +1 -0
- package/esm/index.mjs +1974 -0
- package/esm/index.mjs.map +1 -0
- package/lib/CodeHighlight/CodeHighlight.context.d.ts +5 -0
- package/lib/CodeHighlight/CodeHighlight.d.ts +506 -0
- package/lib/CodeHighlight/CodeHighlightControl/CodeHighlightControl.d.ts +68 -0
- package/lib/CodeHighlight/CopyCodeButton/CopyCodeButton.d.ts +32 -0
- package/lib/CodeHighlight/CopyCodeButton/CopyIcon.d.ts +13 -0
- package/lib/CodeHighlight/ExpandCodeButton/ExpandCodeButton.d.ts +41 -0
- package/lib/CodeHighlight/ExpandCodeButton/ExpandIcon.d.ts +13 -0
- package/lib/CodeHighlight/InlineCodeHighlight.d.ts +108 -0
- package/lib/CodeHighlightProvider/CodeHighlightProvider.d.ts +34 -0
- package/lib/CodeHighlightProvider/adapters/highlight-js-adapter.d.ts +2 -0
- package/lib/CodeHighlightProvider/adapters/index.d.ts +3 -0
- package/lib/CodeHighlightProvider/adapters/plain-text-adapter.d.ts +2 -0
- package/lib/CodeHighlightProvider/adapters/shiki-adapter.d.ts +7 -0
- package/lib/CodeHighlightProvider/adapters/shiki-themes.d.ts +430 -0
- package/lib/CodeHighlightProvider/index.d.ts +2 -0
- package/lib/CodeHighlightTabs/CodeHighlightTabs.d.ts +256 -0
- package/lib/CodeHighlightTabs/FileIcon.d.ts +34 -0
- package/lib/index.d.mts +15 -0
- package/lib/index.d.ts +15 -0
- package/package.json +46 -0
- package/styles.css +356 -0
- package/styles.layer.css +358 -0
|
@@ -0,0 +1,506 @@
|
|
|
1
|
+
import { type PropType, type VNodeChild } from 'vue';
|
|
2
|
+
import { type CodeHighlightAdapter } from '../CodeHighlightProvider/CodeHighlightProvider';
|
|
3
|
+
import { type CodeHighlightContextValue } from './CodeHighlight.context';
|
|
4
|
+
import { type CodeHighlightControlProps } from './CodeHighlightControl/CodeHighlightControl';
|
|
5
|
+
export type CodeHighlightStylesNames = 'codeHighlight' | 'pre' | 'code' | 'control' | 'controlTooltip' | 'controls' | 'scrollarea' | 'showCodeButton' | 'lineNumbers' | 'codeWrapper';
|
|
6
|
+
export type CodeHighlightCssVariables = {
|
|
7
|
+
codeHighlight: '--ch-max-height' | '--ch-background' | '--ch-radius';
|
|
8
|
+
};
|
|
9
|
+
export interface CodeHighlightSettings {
|
|
10
|
+
copyLabel?: string;
|
|
11
|
+
copiedLabel?: string;
|
|
12
|
+
defaultExpanded?: boolean;
|
|
13
|
+
expanded?: boolean;
|
|
14
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
15
|
+
maxCollapsedHeight?: number | string;
|
|
16
|
+
withCopyButton?: boolean;
|
|
17
|
+
withExpandButton?: boolean;
|
|
18
|
+
expandCodeLabel?: string;
|
|
19
|
+
collapseCodeLabel?: string;
|
|
20
|
+
background?: string;
|
|
21
|
+
radius?: string | number;
|
|
22
|
+
withBorder?: boolean;
|
|
23
|
+
withLineNumbers?: boolean;
|
|
24
|
+
controls?: VNodeChild[] | (() => VNodeChild);
|
|
25
|
+
codeColorScheme?: 'dark' | 'light' | (string & {});
|
|
26
|
+
}
|
|
27
|
+
export interface CodeHighlightProps extends CodeHighlightSettings {
|
|
28
|
+
__withOffset?: boolean;
|
|
29
|
+
__staticSelector?: string;
|
|
30
|
+
__inline?: boolean;
|
|
31
|
+
code: string;
|
|
32
|
+
language?: string;
|
|
33
|
+
classNames?: any;
|
|
34
|
+
styles?: any;
|
|
35
|
+
vars?: any;
|
|
36
|
+
unstyled?: boolean;
|
|
37
|
+
class?: any;
|
|
38
|
+
style?: any;
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
}
|
|
41
|
+
export interface CodeHighlightFactory {
|
|
42
|
+
props: CodeHighlightProps;
|
|
43
|
+
stylesNames: CodeHighlightStylesNames;
|
|
44
|
+
vars: CodeHighlightCssVariables;
|
|
45
|
+
}
|
|
46
|
+
export declare const CodeHighlight: {
|
|
47
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
48
|
+
code: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
required: true;
|
|
51
|
+
};
|
|
52
|
+
language: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: undefined;
|
|
55
|
+
};
|
|
56
|
+
copyLabel: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: undefined;
|
|
59
|
+
};
|
|
60
|
+
copiedLabel: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: undefined;
|
|
63
|
+
};
|
|
64
|
+
defaultExpanded: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: undefined;
|
|
67
|
+
};
|
|
68
|
+
expanded: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: undefined;
|
|
71
|
+
};
|
|
72
|
+
onExpandedChange: {
|
|
73
|
+
type: PropType<(expanded: boolean) => void>;
|
|
74
|
+
default: undefined;
|
|
75
|
+
};
|
|
76
|
+
maxCollapsedHeight: {
|
|
77
|
+
type: PropType<string | number>;
|
|
78
|
+
default: undefined;
|
|
79
|
+
};
|
|
80
|
+
withCopyButton: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: undefined;
|
|
83
|
+
};
|
|
84
|
+
withExpandButton: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
expandCodeLabel: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
default: undefined;
|
|
91
|
+
};
|
|
92
|
+
collapseCodeLabel: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
default: undefined;
|
|
95
|
+
};
|
|
96
|
+
background: {
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
default: undefined;
|
|
99
|
+
};
|
|
100
|
+
radius: {
|
|
101
|
+
type: PropType<string | number>;
|
|
102
|
+
default: undefined;
|
|
103
|
+
};
|
|
104
|
+
withBorder: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: boolean;
|
|
107
|
+
};
|
|
108
|
+
withLineNumbers: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
112
|
+
controls: {
|
|
113
|
+
type: PropType<CodeHighlightSettings["controls"]>;
|
|
114
|
+
default: undefined;
|
|
115
|
+
};
|
|
116
|
+
codeColorScheme: {
|
|
117
|
+
type: PropType<CodeHighlightSettings["codeColorScheme"]>;
|
|
118
|
+
default: undefined;
|
|
119
|
+
};
|
|
120
|
+
__withOffset: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
124
|
+
__staticSelector: {
|
|
125
|
+
type: StringConstructor;
|
|
126
|
+
default: undefined;
|
|
127
|
+
};
|
|
128
|
+
__inline: {
|
|
129
|
+
type: BooleanConstructor;
|
|
130
|
+
default: boolean;
|
|
131
|
+
};
|
|
132
|
+
classNames: {
|
|
133
|
+
type: (ObjectConstructor | FunctionConstructor)[];
|
|
134
|
+
default: undefined;
|
|
135
|
+
};
|
|
136
|
+
styles: {
|
|
137
|
+
type: (ObjectConstructor | FunctionConstructor)[];
|
|
138
|
+
default: undefined;
|
|
139
|
+
};
|
|
140
|
+
vars: {
|
|
141
|
+
type: (ObjectConstructor | FunctionConstructor)[];
|
|
142
|
+
default: undefined;
|
|
143
|
+
};
|
|
144
|
+
unstyled: {
|
|
145
|
+
type: BooleanConstructor;
|
|
146
|
+
default: boolean;
|
|
147
|
+
};
|
|
148
|
+
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
149
|
+
[key: string]: any;
|
|
150
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
151
|
+
radius: string | number;
|
|
152
|
+
classNames: Function | Record<string, any>;
|
|
153
|
+
styles: Function | Record<string, any>;
|
|
154
|
+
expanded: boolean;
|
|
155
|
+
background: string;
|
|
156
|
+
vars: Function | Record<string, any>;
|
|
157
|
+
unstyled: boolean;
|
|
158
|
+
__staticSelector: string;
|
|
159
|
+
withBorder: boolean;
|
|
160
|
+
defaultExpanded: boolean;
|
|
161
|
+
onExpandedChange: (expanded: boolean) => void;
|
|
162
|
+
controls: VNodeChild[] | (() => VNodeChild) | undefined;
|
|
163
|
+
copiedLabel: string;
|
|
164
|
+
copyLabel: string;
|
|
165
|
+
collapseCodeLabel: string;
|
|
166
|
+
expandCodeLabel: string;
|
|
167
|
+
__withOffset: boolean;
|
|
168
|
+
__inline: boolean;
|
|
169
|
+
language: string;
|
|
170
|
+
maxCollapsedHeight: string | number;
|
|
171
|
+
withCopyButton: boolean;
|
|
172
|
+
withExpandButton: boolean;
|
|
173
|
+
withLineNumbers: boolean;
|
|
174
|
+
codeColorScheme: "light" | "dark" | (string & {}) | undefined;
|
|
175
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
176
|
+
P: {};
|
|
177
|
+
B: {};
|
|
178
|
+
D: {};
|
|
179
|
+
C: {};
|
|
180
|
+
M: {};
|
|
181
|
+
Defaults: {};
|
|
182
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
183
|
+
code: {
|
|
184
|
+
type: StringConstructor;
|
|
185
|
+
required: true;
|
|
186
|
+
};
|
|
187
|
+
language: {
|
|
188
|
+
type: StringConstructor;
|
|
189
|
+
default: undefined;
|
|
190
|
+
};
|
|
191
|
+
copyLabel: {
|
|
192
|
+
type: StringConstructor;
|
|
193
|
+
default: undefined;
|
|
194
|
+
};
|
|
195
|
+
copiedLabel: {
|
|
196
|
+
type: StringConstructor;
|
|
197
|
+
default: undefined;
|
|
198
|
+
};
|
|
199
|
+
defaultExpanded: {
|
|
200
|
+
type: BooleanConstructor;
|
|
201
|
+
default: undefined;
|
|
202
|
+
};
|
|
203
|
+
expanded: {
|
|
204
|
+
type: BooleanConstructor;
|
|
205
|
+
default: undefined;
|
|
206
|
+
};
|
|
207
|
+
onExpandedChange: {
|
|
208
|
+
type: PropType<(expanded: boolean) => void>;
|
|
209
|
+
default: undefined;
|
|
210
|
+
};
|
|
211
|
+
maxCollapsedHeight: {
|
|
212
|
+
type: PropType<string | number>;
|
|
213
|
+
default: undefined;
|
|
214
|
+
};
|
|
215
|
+
withCopyButton: {
|
|
216
|
+
type: BooleanConstructor;
|
|
217
|
+
default: undefined;
|
|
218
|
+
};
|
|
219
|
+
withExpandButton: {
|
|
220
|
+
type: BooleanConstructor;
|
|
221
|
+
default: boolean;
|
|
222
|
+
};
|
|
223
|
+
expandCodeLabel: {
|
|
224
|
+
type: StringConstructor;
|
|
225
|
+
default: undefined;
|
|
226
|
+
};
|
|
227
|
+
collapseCodeLabel: {
|
|
228
|
+
type: StringConstructor;
|
|
229
|
+
default: undefined;
|
|
230
|
+
};
|
|
231
|
+
background: {
|
|
232
|
+
type: StringConstructor;
|
|
233
|
+
default: undefined;
|
|
234
|
+
};
|
|
235
|
+
radius: {
|
|
236
|
+
type: PropType<string | number>;
|
|
237
|
+
default: undefined;
|
|
238
|
+
};
|
|
239
|
+
withBorder: {
|
|
240
|
+
type: BooleanConstructor;
|
|
241
|
+
default: boolean;
|
|
242
|
+
};
|
|
243
|
+
withLineNumbers: {
|
|
244
|
+
type: BooleanConstructor;
|
|
245
|
+
default: boolean;
|
|
246
|
+
};
|
|
247
|
+
controls: {
|
|
248
|
+
type: PropType<CodeHighlightSettings["controls"]>;
|
|
249
|
+
default: undefined;
|
|
250
|
+
};
|
|
251
|
+
codeColorScheme: {
|
|
252
|
+
type: PropType<CodeHighlightSettings["codeColorScheme"]>;
|
|
253
|
+
default: undefined;
|
|
254
|
+
};
|
|
255
|
+
__withOffset: {
|
|
256
|
+
type: BooleanConstructor;
|
|
257
|
+
default: boolean;
|
|
258
|
+
};
|
|
259
|
+
__staticSelector: {
|
|
260
|
+
type: StringConstructor;
|
|
261
|
+
default: undefined;
|
|
262
|
+
};
|
|
263
|
+
__inline: {
|
|
264
|
+
type: BooleanConstructor;
|
|
265
|
+
default: boolean;
|
|
266
|
+
};
|
|
267
|
+
classNames: {
|
|
268
|
+
type: (ObjectConstructor | FunctionConstructor)[];
|
|
269
|
+
default: undefined;
|
|
270
|
+
};
|
|
271
|
+
styles: {
|
|
272
|
+
type: (ObjectConstructor | FunctionConstructor)[];
|
|
273
|
+
default: undefined;
|
|
274
|
+
};
|
|
275
|
+
vars: {
|
|
276
|
+
type: (ObjectConstructor | FunctionConstructor)[];
|
|
277
|
+
default: undefined;
|
|
278
|
+
};
|
|
279
|
+
unstyled: {
|
|
280
|
+
type: BooleanConstructor;
|
|
281
|
+
default: boolean;
|
|
282
|
+
};
|
|
283
|
+
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
284
|
+
[key: string]: any;
|
|
285
|
+
}>, {}, {}, {}, {
|
|
286
|
+
radius: string | number;
|
|
287
|
+
classNames: Function | Record<string, any>;
|
|
288
|
+
styles: Function | Record<string, any>;
|
|
289
|
+
expanded: boolean;
|
|
290
|
+
background: string;
|
|
291
|
+
vars: Function | Record<string, any>;
|
|
292
|
+
unstyled: boolean;
|
|
293
|
+
__staticSelector: string;
|
|
294
|
+
withBorder: boolean;
|
|
295
|
+
defaultExpanded: boolean;
|
|
296
|
+
onExpandedChange: (expanded: boolean) => void;
|
|
297
|
+
controls: VNodeChild[] | (() => VNodeChild) | undefined;
|
|
298
|
+
copiedLabel: string;
|
|
299
|
+
copyLabel: string;
|
|
300
|
+
collapseCodeLabel: string;
|
|
301
|
+
expandCodeLabel: string;
|
|
302
|
+
__withOffset: boolean;
|
|
303
|
+
__inline: boolean;
|
|
304
|
+
language: string;
|
|
305
|
+
maxCollapsedHeight: string | number;
|
|
306
|
+
withCopyButton: boolean;
|
|
307
|
+
withExpandButton: boolean;
|
|
308
|
+
withLineNumbers: boolean;
|
|
309
|
+
codeColorScheme: "light" | "dark" | (string & {}) | undefined;
|
|
310
|
+
}>;
|
|
311
|
+
__isFragment?: never;
|
|
312
|
+
__isTeleport?: never;
|
|
313
|
+
__isSuspense?: never;
|
|
314
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
315
|
+
code: {
|
|
316
|
+
type: StringConstructor;
|
|
317
|
+
required: true;
|
|
318
|
+
};
|
|
319
|
+
language: {
|
|
320
|
+
type: StringConstructor;
|
|
321
|
+
default: undefined;
|
|
322
|
+
};
|
|
323
|
+
copyLabel: {
|
|
324
|
+
type: StringConstructor;
|
|
325
|
+
default: undefined;
|
|
326
|
+
};
|
|
327
|
+
copiedLabel: {
|
|
328
|
+
type: StringConstructor;
|
|
329
|
+
default: undefined;
|
|
330
|
+
};
|
|
331
|
+
defaultExpanded: {
|
|
332
|
+
type: BooleanConstructor;
|
|
333
|
+
default: undefined;
|
|
334
|
+
};
|
|
335
|
+
expanded: {
|
|
336
|
+
type: BooleanConstructor;
|
|
337
|
+
default: undefined;
|
|
338
|
+
};
|
|
339
|
+
onExpandedChange: {
|
|
340
|
+
type: PropType<(expanded: boolean) => void>;
|
|
341
|
+
default: undefined;
|
|
342
|
+
};
|
|
343
|
+
maxCollapsedHeight: {
|
|
344
|
+
type: PropType<string | number>;
|
|
345
|
+
default: undefined;
|
|
346
|
+
};
|
|
347
|
+
withCopyButton: {
|
|
348
|
+
type: BooleanConstructor;
|
|
349
|
+
default: undefined;
|
|
350
|
+
};
|
|
351
|
+
withExpandButton: {
|
|
352
|
+
type: BooleanConstructor;
|
|
353
|
+
default: boolean;
|
|
354
|
+
};
|
|
355
|
+
expandCodeLabel: {
|
|
356
|
+
type: StringConstructor;
|
|
357
|
+
default: undefined;
|
|
358
|
+
};
|
|
359
|
+
collapseCodeLabel: {
|
|
360
|
+
type: StringConstructor;
|
|
361
|
+
default: undefined;
|
|
362
|
+
};
|
|
363
|
+
background: {
|
|
364
|
+
type: StringConstructor;
|
|
365
|
+
default: undefined;
|
|
366
|
+
};
|
|
367
|
+
radius: {
|
|
368
|
+
type: PropType<string | number>;
|
|
369
|
+
default: undefined;
|
|
370
|
+
};
|
|
371
|
+
withBorder: {
|
|
372
|
+
type: BooleanConstructor;
|
|
373
|
+
default: boolean;
|
|
374
|
+
};
|
|
375
|
+
withLineNumbers: {
|
|
376
|
+
type: BooleanConstructor;
|
|
377
|
+
default: boolean;
|
|
378
|
+
};
|
|
379
|
+
controls: {
|
|
380
|
+
type: PropType<CodeHighlightSettings["controls"]>;
|
|
381
|
+
default: undefined;
|
|
382
|
+
};
|
|
383
|
+
codeColorScheme: {
|
|
384
|
+
type: PropType<CodeHighlightSettings["codeColorScheme"]>;
|
|
385
|
+
default: undefined;
|
|
386
|
+
};
|
|
387
|
+
__withOffset: {
|
|
388
|
+
type: BooleanConstructor;
|
|
389
|
+
default: boolean;
|
|
390
|
+
};
|
|
391
|
+
__staticSelector: {
|
|
392
|
+
type: StringConstructor;
|
|
393
|
+
default: undefined;
|
|
394
|
+
};
|
|
395
|
+
__inline: {
|
|
396
|
+
type: BooleanConstructor;
|
|
397
|
+
default: boolean;
|
|
398
|
+
};
|
|
399
|
+
classNames: {
|
|
400
|
+
type: (ObjectConstructor | FunctionConstructor)[];
|
|
401
|
+
default: undefined;
|
|
402
|
+
};
|
|
403
|
+
styles: {
|
|
404
|
+
type: (ObjectConstructor | FunctionConstructor)[];
|
|
405
|
+
default: undefined;
|
|
406
|
+
};
|
|
407
|
+
vars: {
|
|
408
|
+
type: (ObjectConstructor | FunctionConstructor)[];
|
|
409
|
+
default: undefined;
|
|
410
|
+
};
|
|
411
|
+
unstyled: {
|
|
412
|
+
type: BooleanConstructor;
|
|
413
|
+
default: boolean;
|
|
414
|
+
};
|
|
415
|
+
}>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
416
|
+
[key: string]: any;
|
|
417
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
418
|
+
radius: string | number;
|
|
419
|
+
classNames: Function | Record<string, any>;
|
|
420
|
+
styles: Function | Record<string, any>;
|
|
421
|
+
expanded: boolean;
|
|
422
|
+
background: string;
|
|
423
|
+
vars: Function | Record<string, any>;
|
|
424
|
+
unstyled: boolean;
|
|
425
|
+
__staticSelector: string;
|
|
426
|
+
withBorder: boolean;
|
|
427
|
+
defaultExpanded: boolean;
|
|
428
|
+
onExpandedChange: (expanded: boolean) => void;
|
|
429
|
+
controls: VNodeChild[] | (() => VNodeChild) | undefined;
|
|
430
|
+
copiedLabel: string;
|
|
431
|
+
copyLabel: string;
|
|
432
|
+
collapseCodeLabel: string;
|
|
433
|
+
expandCodeLabel: string;
|
|
434
|
+
__withOffset: boolean;
|
|
435
|
+
__inline: boolean;
|
|
436
|
+
language: string;
|
|
437
|
+
maxCollapsedHeight: string | number;
|
|
438
|
+
withCopyButton: boolean;
|
|
439
|
+
withExpandButton: boolean;
|
|
440
|
+
withLineNumbers: boolean;
|
|
441
|
+
codeColorScheme: "light" | "dark" | (string & {}) | undefined;
|
|
442
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
443
|
+
classes: Record<string, string>;
|
|
444
|
+
varsResolver: (theme: import("@mantine-vue/core").MantineTheme, props: any, ctx: Record<string, any>) => Record<string, Record<string, string | undefined>>;
|
|
445
|
+
Control: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
446
|
+
tooltipLabel: {
|
|
447
|
+
type: StringConstructor;
|
|
448
|
+
default: undefined;
|
|
449
|
+
};
|
|
450
|
+
classNames: {
|
|
451
|
+
type: (ObjectConstructor | FunctionConstructor)[];
|
|
452
|
+
default: undefined;
|
|
453
|
+
};
|
|
454
|
+
styles: {
|
|
455
|
+
type: (ObjectConstructor | FunctionConstructor)[];
|
|
456
|
+
default: undefined;
|
|
457
|
+
};
|
|
458
|
+
vars: {
|
|
459
|
+
type: (ObjectConstructor | FunctionConstructor)[];
|
|
460
|
+
default: undefined;
|
|
461
|
+
};
|
|
462
|
+
component: {
|
|
463
|
+
type: StringConstructor;
|
|
464
|
+
default: string;
|
|
465
|
+
};
|
|
466
|
+
onClick: {
|
|
467
|
+
type: PropType<(event: MouseEvent) => void>;
|
|
468
|
+
default: undefined;
|
|
469
|
+
};
|
|
470
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
471
|
+
[key: string]: any;
|
|
472
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
473
|
+
tooltipLabel: {
|
|
474
|
+
type: StringConstructor;
|
|
475
|
+
default: undefined;
|
|
476
|
+
};
|
|
477
|
+
classNames: {
|
|
478
|
+
type: (ObjectConstructor | FunctionConstructor)[];
|
|
479
|
+
default: undefined;
|
|
480
|
+
};
|
|
481
|
+
styles: {
|
|
482
|
+
type: (ObjectConstructor | FunctionConstructor)[];
|
|
483
|
+
default: undefined;
|
|
484
|
+
};
|
|
485
|
+
vars: {
|
|
486
|
+
type: (ObjectConstructor | FunctionConstructor)[];
|
|
487
|
+
default: undefined;
|
|
488
|
+
};
|
|
489
|
+
component: {
|
|
490
|
+
type: StringConstructor;
|
|
491
|
+
default: string;
|
|
492
|
+
};
|
|
493
|
+
onClick: {
|
|
494
|
+
type: PropType<(event: MouseEvent) => void>;
|
|
495
|
+
default: undefined;
|
|
496
|
+
};
|
|
497
|
+
}>> & Readonly<{}>, {
|
|
498
|
+
onClick: (event: MouseEvent) => void;
|
|
499
|
+
classNames: Function | Record<string, any>;
|
|
500
|
+
styles: Function | Record<string, any>;
|
|
501
|
+
component: string;
|
|
502
|
+
vars: Function | Record<string, any>;
|
|
503
|
+
tooltipLabel: string;
|
|
504
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
505
|
+
};
|
|
506
|
+
export type { CodeHighlightAdapter, CodeHighlightContextValue, CodeHighlightControlProps };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
export interface CodeHighlightControlProps {
|
|
3
|
+
tooltipLabel?: string;
|
|
4
|
+
classNames?: any;
|
|
5
|
+
styles?: any;
|
|
6
|
+
vars?: any;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}
|
|
9
|
+
export declare const CodeHighlightControl: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
10
|
+
tooltipLabel: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
classNames: {
|
|
15
|
+
type: (ObjectConstructor | FunctionConstructor)[];
|
|
16
|
+
default: undefined;
|
|
17
|
+
};
|
|
18
|
+
styles: {
|
|
19
|
+
type: (ObjectConstructor | FunctionConstructor)[];
|
|
20
|
+
default: undefined;
|
|
21
|
+
};
|
|
22
|
+
vars: {
|
|
23
|
+
type: (ObjectConstructor | FunctionConstructor)[];
|
|
24
|
+
default: undefined;
|
|
25
|
+
};
|
|
26
|
+
component: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
onClick: {
|
|
31
|
+
type: PropType<(event: MouseEvent) => void>;
|
|
32
|
+
default: undefined;
|
|
33
|
+
};
|
|
34
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
|
+
tooltipLabel: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: undefined;
|
|
40
|
+
};
|
|
41
|
+
classNames: {
|
|
42
|
+
type: (ObjectConstructor | FunctionConstructor)[];
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
45
|
+
styles: {
|
|
46
|
+
type: (ObjectConstructor | FunctionConstructor)[];
|
|
47
|
+
default: undefined;
|
|
48
|
+
};
|
|
49
|
+
vars: {
|
|
50
|
+
type: (ObjectConstructor | FunctionConstructor)[];
|
|
51
|
+
default: undefined;
|
|
52
|
+
};
|
|
53
|
+
component: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
onClick: {
|
|
58
|
+
type: PropType<(event: MouseEvent) => void>;
|
|
59
|
+
default: undefined;
|
|
60
|
+
};
|
|
61
|
+
}>> & Readonly<{}>, {
|
|
62
|
+
onClick: (event: MouseEvent) => void;
|
|
63
|
+
classNames: Function | Record<string, any>;
|
|
64
|
+
styles: Function | Record<string, any>;
|
|
65
|
+
component: string;
|
|
66
|
+
vars: Function | Record<string, any>;
|
|
67
|
+
tooltipLabel: string;
|
|
68
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const CopyCodeButton: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
code: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
copiedLabel: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
copyLabel: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
code: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
copiedLabel: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
copyLabel: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
}>> & Readonly<{}>, {
|
|
30
|
+
copiedLabel: string;
|
|
31
|
+
copyLabel: string;
|
|
32
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const CopyIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
copied: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
copied: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
export declare const ExpandCodeButton: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
expanded: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
onExpand: {
|
|
8
|
+
type: PropType<(value: boolean) => void>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
collapseCodeLabel: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
expandCodeLabel: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
expanded: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
onExpand: {
|
|
27
|
+
type: PropType<(value: boolean) => void>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
collapseCodeLabel: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
expandCodeLabel: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
}>> & Readonly<{}>, {
|
|
39
|
+
collapseCodeLabel: string;
|
|
40
|
+
expandCodeLabel: string;
|
|
41
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const ExpandIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
expanded: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
expanded: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|