@nuxt/devtools-ui-kit 0.2.4 → 0.2.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.
- package/dist/components/NCodeBlock.vue +18 -0
- package/dist/components/NDropdown.vue +1 -1
- package/dist/components/NMarkdown.vue +19 -0
- package/dist/module.json +1 -1
- package/dist/runtime/client.d.ts +1 -0
- package/dist/runtime/client.mjs +2 -0
- package/dist/unocss.mjs +1 -0
- package/package.json +15 -11
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
// This components requires to run in DevTools to render correctly
|
|
3
|
+
import { devToolsClient } from '../runtime/client'
|
|
4
|
+
|
|
5
|
+
defineProps<{
|
|
6
|
+
code: string
|
|
7
|
+
lang?: string
|
|
8
|
+
}>()
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<template v-if="lang && devToolsClient?.devtools?.renderCodeHighlight">
|
|
13
|
+
<pre class="n-code-block" v-html="devToolsClient.devtools.renderCodeHighlight(code, lang)" />
|
|
14
|
+
</template>
|
|
15
|
+
<template v-else>
|
|
16
|
+
<pre class="n-code-block" v-text="code" />
|
|
17
|
+
</template>
|
|
18
|
+
</template>
|
|
@@ -22,7 +22,7 @@ onClickOutside(el, () => {
|
|
|
22
22
|
</slot>
|
|
23
23
|
|
|
24
24
|
<div
|
|
25
|
-
class="absolute n-transition n-bg-base rounded z-10
|
|
25
|
+
class="absolute n-transition n-bg-base rounded border z-10 n-border-base shadow"
|
|
26
26
|
:class="[enabled ? 'op-100' : 'op0 pointer-events-none -translate-y-1']"
|
|
27
27
|
>
|
|
28
28
|
<slot />
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
// This components requires to run in DevTools to render correctly
|
|
3
|
+
|
|
4
|
+
import { devToolsClient } from '../runtime/client'
|
|
5
|
+
|
|
6
|
+
defineProps<{
|
|
7
|
+
markdown: string
|
|
8
|
+
tag?: string
|
|
9
|
+
}>()
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
<template v-if="markdown && devToolsClient?.devtools?.renderMarkdown">
|
|
14
|
+
<component :is="tag || 'span'" class="n-markdown" v-html="devToolsClient.devtools.renderMarkdown(markdown)" />
|
|
15
|
+
</template>
|
|
16
|
+
<template v-else>
|
|
17
|
+
<component :is="tag || 'span'" class="n-markdown" v-text="markdown" />
|
|
18
|
+
</template>
|
|
19
|
+
</template>
|
package/dist/module.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const devToolsClient: import("vue").Ref<import("@nuxt/devtools").NuxtDevtoolsIframeClient | undefined>;
|
package/dist/unocss.mjs
CHANGED
|
@@ -59,6 +59,7 @@ const unocssPreset = () => ({
|
|
|
59
59
|
// general
|
|
60
60
|
"n-bg-base": "bg-white dark:bg-[#151515]",
|
|
61
61
|
"n-bg-active": "bg-gray:5",
|
|
62
|
+
"n-bg-hover": "bg-gray:3",
|
|
62
63
|
"n-border-base": "border-gray/20",
|
|
63
64
|
"n-transition": "transition-all duration-200",
|
|
64
65
|
"n-focus-base": "ring-2 ring-context/50",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/devtools-ui-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.5",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "nuxt/devtools",
|
|
7
7
|
"exports": {
|
|
@@ -22,25 +22,29 @@
|
|
|
22
22
|
"dist",
|
|
23
23
|
"*.cjs"
|
|
24
24
|
],
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"@nuxt/devtools": "0.2.5"
|
|
27
|
+
},
|
|
25
28
|
"dependencies": {
|
|
26
|
-
"@iconify-json/carbon": "^1.1.
|
|
27
|
-
"@nuxt/kit": "^3.2.
|
|
29
|
+
"@iconify-json/carbon": "^1.1.16",
|
|
30
|
+
"@nuxt/kit": "^3.2.3",
|
|
28
31
|
"@nuxtjs/color-mode": "^3.2.0",
|
|
29
|
-
"@unocss/core": "^0.50.
|
|
30
|
-
"@unocss/nuxt": "^0.50.
|
|
31
|
-
"@unocss/preset-attributify": "^0.50.
|
|
32
|
-
"@unocss/preset-icons": "^0.50.
|
|
33
|
-
"@unocss/preset-mini": "^0.50.
|
|
34
|
-
"@unocss/reset": "^0.50.
|
|
32
|
+
"@unocss/core": "^0.50.1",
|
|
33
|
+
"@unocss/nuxt": "^0.50.1",
|
|
34
|
+
"@unocss/preset-attributify": "^0.50.1",
|
|
35
|
+
"@unocss/preset-icons": "^0.50.1",
|
|
36
|
+
"@unocss/preset-mini": "^0.50.1",
|
|
37
|
+
"@unocss/reset": "^0.50.1",
|
|
35
38
|
"@vueuse/core": "^9.13.0",
|
|
36
39
|
"@vueuse/integrations": "^9.13.0",
|
|
37
40
|
"@vueuse/nuxt": "^9.13.0",
|
|
38
41
|
"defu": "^6.1.2",
|
|
39
42
|
"focus-trap": "^7.3.1",
|
|
40
|
-
"unocss": "^0.50.
|
|
43
|
+
"unocss": "^0.50.1",
|
|
44
|
+
"@nuxt/devtools": "0.2.5"
|
|
41
45
|
},
|
|
42
46
|
"devDependencies": {
|
|
43
|
-
"nuxt": "^3.2.
|
|
47
|
+
"nuxt": "^3.2.3"
|
|
44
48
|
},
|
|
45
49
|
"publishConfig": {
|
|
46
50
|
"access": "public"
|