@code-coaching/vuetiful 0.0.3 → 0.0.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/style.css +10 -1
- package/dist/styles/all.css +259 -15
- package/dist/types/directives/clipboard.d.ts +3 -0
- package/dist/types/directives/index.d.ts +2 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/code-block/code-block.vue.d.ts +110 -0
- package/dist/types/utils/code-block/highlight.d.ts +4 -0
- package/dist/types/utils/index.d.ts +2 -2
- package/dist/vuetiful.es.mjs +46479 -24
- package/dist/vuetiful.umd.js +25 -17
- package/package.json +4 -1
- package/src/directives/clipboard.ts +9 -0
- package/src/directives/index.ts +5 -0
- package/src/index.ts +1 -0
- package/src/utils/code-block/code-block.vue +106 -0
- package/src/utils/code-block/highlight.ts +19 -0
- package/src/utils/index.ts +3 -2
- package/dist/types/utils/MyUtil.d.ts +0 -5
- package/src/utils/MyUtil.ts +0 -7
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { CssClasses } from "@/index";
|
|
2
|
+
import "highlight.js/styles/github-dark.css";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
language: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
code: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
background: {
|
|
13
|
+
type: () => CssClasses;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
blur: {
|
|
17
|
+
type: () => CssClasses;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
text: {
|
|
21
|
+
type: () => CssClasses;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
color: {
|
|
25
|
+
type: () => CssClasses;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
rounded: {
|
|
29
|
+
type: () => CssClasses;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
shadow: {
|
|
33
|
+
type: () => CssClasses;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
button: {
|
|
37
|
+
type: () => CssClasses;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
buttonLabel: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
buttonCopied: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
}, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
49
|
+
copy: () => void;
|
|
50
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
51
|
+
language: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
code: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
background: {
|
|
60
|
+
type: () => CssClasses;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
blur: {
|
|
64
|
+
type: () => CssClasses;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
text: {
|
|
68
|
+
type: () => CssClasses;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
color: {
|
|
72
|
+
type: () => CssClasses;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
rounded: {
|
|
76
|
+
type: () => CssClasses;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
shadow: {
|
|
80
|
+
type: () => CssClasses;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
button: {
|
|
84
|
+
type: () => CssClasses;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
buttonLabel: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
buttonCopied: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
}>> & {
|
|
96
|
+
onCopy?: (() => any) | undefined;
|
|
97
|
+
}, {
|
|
98
|
+
rounded: string;
|
|
99
|
+
button: string;
|
|
100
|
+
code: string;
|
|
101
|
+
language: string;
|
|
102
|
+
background: string;
|
|
103
|
+
blur: string;
|
|
104
|
+
text: string;
|
|
105
|
+
color: string;
|
|
106
|
+
shadow: string;
|
|
107
|
+
buttonLabel: string;
|
|
108
|
+
buttonCopied: string;
|
|
109
|
+
}>;
|
|
110
|
+
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useDarkMode } from "./dark-mode/dark-mode";
|
|
2
2
|
import DarkModeSwitch from "./dark-mode/dark-mode.vue";
|
|
3
|
-
import MyUtil from "./MyUtil";
|
|
4
3
|
import { useTheme } from "./theme/theme";
|
|
5
4
|
import ThemeSwitcher from "./theme/theme-switcher.vue";
|
|
6
|
-
|
|
5
|
+
import CodeBlock from "./code-block/code-block.vue";
|
|
6
|
+
export { DarkModeSwitch, ThemeSwitcher, useDarkMode, useTheme, CodeBlock };
|