@code-coaching/vuetiful 0.16.0 → 0.16.1
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 +1 -1
- package/dist/styles/all.css +10 -10
- package/dist/vuetiful.es.mjs +9 -6
- package/dist/vuetiful.umd.js +5 -5
- package/package.json +1 -1
- package/src/components/atoms/VCodeBlock.vue +5 -5
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { CssClasses, vClipboard } from "@/index";
|
|
2
|
+
import { CssClasses, vClipboard, VButton } from "@/index";
|
|
3
3
|
import { useHighlight } from "@/services/highlight.service";
|
|
4
4
|
import "highlight.js/styles/github-dark.css";
|
|
5
5
|
import { ref } from "vue";
|
|
@@ -32,7 +32,7 @@ const props = defineProps({
|
|
|
32
32
|
|
|
33
33
|
buttonClass: {
|
|
34
34
|
type: String as () => CssClasses,
|
|
35
|
-
default: "btn
|
|
35
|
+
default: "btn-sm bg-surface-400 text-surface-900",
|
|
36
36
|
},
|
|
37
37
|
buttonText: {
|
|
38
38
|
type: String,
|
|
@@ -40,7 +40,7 @@ const props = defineProps({
|
|
|
40
40
|
},
|
|
41
41
|
buttonCopiedText: {
|
|
42
42
|
type: String,
|
|
43
|
-
default: "
|
|
43
|
+
default: "Copied!",
|
|
44
44
|
},
|
|
45
45
|
});
|
|
46
46
|
|
|
@@ -73,13 +73,13 @@ function onCopyClick() {
|
|
|
73
73
|
:class="`code-block-header flex items-center justify-between p-2 pb-0 pl-4 text-xs uppercase text-white/50 ${headerClass}`"
|
|
74
74
|
>
|
|
75
75
|
<span :class="`code-block-language`">{{ languageFormatter(language) }}</span>
|
|
76
|
-
<button
|
|
76
|
+
<v-button
|
|
77
77
|
:class="`code-block-btn ${buttonClass}`"
|
|
78
78
|
@click="onCopyClick()"
|
|
79
79
|
v-clipboard="props.code"
|
|
80
80
|
>
|
|
81
81
|
{{ !copyState ? buttonText : buttonCopiedText }}
|
|
82
|
-
</button>
|
|
82
|
+
</v-button>
|
|
83
83
|
</header>
|
|
84
84
|
<pre
|
|
85
85
|
:class="`code-block-pre ${
|