@code-coaching/vuetiful 0.0.2 → 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.
@@ -0,0 +1,3 @@
1
+ import { DirectiveBinding } from "vue";
2
+ declare const clipboard: (el: HTMLElement, binding: DirectiveBinding) => void;
3
+ export default clipboard;
@@ -0,0 +1,2 @@
1
+ import vClipboard from './clipboard';
2
+ export { vClipboard };
@@ -1,7 +1,6 @@
1
1
  declare function install(app: any): void;
2
2
  import "./assets/main.css";
3
3
  import "./styles/tailwind.css";
4
- import "./themes/theme-vuetiful.css";
5
4
  declare const _default: {
6
5
  install: typeof install;
7
6
  };
@@ -9,4 +8,5 @@ export default _default;
9
8
  export * from "./components";
10
9
  export * from "./constants";
11
10
  export * from "./utils";
11
+ export * from "./directives";
12
12
  export declare type CssClasses = string;
@@ -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;
@@ -0,0 +1,4 @@
1
+ declare const useHighlight: () => {
2
+ highlight: (code: string, lang: string) => string;
3
+ };
4
+ export { useHighlight };
@@ -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
- export { MyUtil, DarkModeSwitch, ThemeSwitcher, useDarkMode, useTheme };
5
+ import CodeBlock from "./code-block/code-block.vue";
6
+ export { DarkModeSwitch, ThemeSwitcher, useDarkMode, useTheme, CodeBlock };
@@ -48,7 +48,7 @@ declare const _default: import("vue").DefineComponent<{
48
48
  chosenTheme: Readonly<import("vue").Ref<string>>;
49
49
  themes: Readonly<import("vue").Ref<readonly {
50
50
  readonly name: string;
51
- readonly url?: string | undefined;
51
+ readonly url: string;
52
52
  }[]>>;
53
53
  showPopup: import("vue").Ref<boolean>;
54
54
  listClasses: import("vue").ComputedRef<string>;
@@ -1,12 +1,12 @@
1
1
  import { Ref } from "vue";
2
2
  interface Theme {
3
3
  name: string;
4
- url?: string;
4
+ url: string;
5
5
  }
6
6
  declare const useTheme: () => {
7
7
  themes: Readonly<Ref<readonly {
8
8
  readonly name: string;
9
- readonly url?: string | undefined;
9
+ readonly url: string;
10
10
  }[]>>;
11
11
  chosenTheme: Readonly<Ref<string>>;
12
12
  initializeTheme: (callback?: Function | undefined) => void;
@@ -22,6 +22,6 @@ declare const useTheme: () => {
22
22
  };
23
23
  overwriteThemes: (newThemes: Array<Theme>) => void;
24
24
  registerAllBuiltInThemes: () => Array<Theme>;
25
- registerTheme: (name: string, url?: string | undefined) => Theme;
25
+ registerTheme: (name: string, url: string) => Theme;
26
26
  };
27
27
  export { useTheme };