@nuxt/devtools-ui-kit 0.7.6 → 0.8.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/README.md CHANGED
@@ -4,6 +4,6 @@
4
4
 
5
5
  > **Warning**: This library is heavily working in progress. Breaking changes may not follow semver. Pin the version if used.
6
6
 
7
- UI kit for module authors to build embedded views for Nuxt Devtools.
7
+ UI kit for module authors to build embedded views for Nuxt DevTools.
8
8
 
9
9
  Please refer to the [DevTools UI Kit](https://devtools.nuxtjs.org/module/ui-kit) for the full documentation.
@@ -1,13 +1,13 @@
1
1
  <script setup lang="ts">
2
2
  // This components requires to run in DevTools to render correctly
3
3
  import { computed, nextTick } from 'vue'
4
- import type { Lang } from 'shiki-es'
4
+ import type { BuiltinLanguage } from 'shikiji'
5
5
  import { devToolsClient } from '../runtime/client'
6
6
 
7
7
  const props = withDefaults(
8
8
  defineProps<{
9
9
  code: string
10
- lang?: Lang | 'text'
10
+ lang?: BuiltinLanguage | 'text'
11
11
  lines?: boolean
12
12
  transformRendered?: (code: string) => string
13
13
  }>(), {
@@ -21,7 +21,7 @@ const input = useVModel(props, 'modelValue', emit, { passive: true })
21
21
 
22
22
  <template>
23
23
  <div
24
- class="n-text-input flex flex items-center border n-border-base rounded px-2 py-1 focus-within:n-focus-base focus-within:border-context n-bg-base"
24
+ class="n-select flex flex items-center border n-border-base rounded px-2 py-1 focus-within:n-focus-base focus-within:border-context n-bg-base"
25
25
  >
26
26
  <slot name="icon">
27
27
  <NIcon v-if="icon" :icon="icon" class="mr-0.4em text-1.1em op50" />
@@ -0,0 +1,49 @@
1
+ <script setup lang="ts">
2
+ import { useVModel } from '@vueuse/core'
3
+
4
+ const props = withDefaults(
5
+ defineProps<{
6
+ modelValue?: any
7
+ disabled?: boolean
8
+ options: { value: any; label: string }[]
9
+ }>(),
10
+ {
11
+ modelValue: undefined,
12
+ disabled: false,
13
+ },
14
+ )
15
+ const emit = defineEmits<{ (...args: any): void }>()
16
+ const input = useVModel(props, 'modelValue', emit, { passive: true })
17
+ </script>
18
+
19
+ <template>
20
+ <fieldset
21
+ class="n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded n-bg-base"
22
+ >
23
+ <label
24
+ v-for="i, idx of options"
25
+ :key="i.label"
26
+ :disabled="disabled"
27
+ class="relative n-border-base hover:n-bg-active px-0.5em py-0.1em"
28
+ :class="[
29
+ idx ? 'border-l n-border-base ml--1px' : '',
30
+ i.value === input ? 'n-bg-active' : '',
31
+ ]"
32
+ :title="i.label"
33
+ >
34
+ <div
35
+ :class="[
36
+ i.value === input ? '' : 'op35',
37
+ ]"
38
+ >{{ i.label }}</div>
39
+ <input
40
+ v-model="input"
41
+ type="radio"
42
+ :disabled="disabled"
43
+ :value="i.value"
44
+ :title="i.label"
45
+ class="absolute inset-0 op-0.1"
46
+ >
47
+ </label>
48
+ </fieldset>
49
+ </template>
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "devtools-ui-kit",
3
3
  "configKey": "devtoolsUIKit",
4
- "version": "0.7.6"
4
+ "version": "0.8.1"
5
5
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/devtools-ui-kit",
3
3
  "type": "module",
4
- "version": "0.7.6",
4
+ "version": "0.8.1",
5
5
  "license": "MIT",
6
6
  "repository": "nuxt/devtools",
7
7
  "exports": {
@@ -23,33 +23,33 @@
23
23
  "*.cjs"
24
24
  ],
25
25
  "peerDependencies": {
26
- "@nuxt/devtools": "0.7.6"
26
+ "@nuxt/devtools": "0.8.1"
27
27
  },
28
28
  "dependencies": {
29
- "@iconify-json/carbon": "^1.1.19",
29
+ "@iconify-json/carbon": "^1.1.20",
30
30
  "@iconify-json/logos": "^1.1.34",
31
31
  "@iconify-json/ri": "^1.1.12",
32
- "@iconify-json/tabler": "^1.1.87",
33
- "@nuxt/kit": "^3.6.5",
32
+ "@iconify-json/tabler": "^1.1.89",
33
+ "@nuxt/kit": "^3.7.0",
34
34
  "@nuxtjs/color-mode": "^3.3.0",
35
- "@unocss/core": "^0.54.2",
36
- "@unocss/nuxt": "^0.54.2",
37
- "@unocss/preset-attributify": "^0.54.2",
38
- "@unocss/preset-icons": "^0.54.2",
39
- "@unocss/preset-mini": "^0.54.2",
40
- "@unocss/reset": "^0.54.2",
41
- "@vueuse/core": "^10.3.0",
42
- "@vueuse/integrations": "^10.3.0",
43
- "@vueuse/nuxt": "^10.3.0",
35
+ "@unocss/core": "^0.55.3",
36
+ "@unocss/nuxt": "^0.55.3",
37
+ "@unocss/preset-attributify": "^0.55.3",
38
+ "@unocss/preset-icons": "^0.55.3",
39
+ "@unocss/preset-mini": "^0.55.3",
40
+ "@unocss/reset": "^0.55.3",
41
+ "@vueuse/core": "^10.4.1",
42
+ "@vueuse/integrations": "^10.4.1",
43
+ "@vueuse/nuxt": "^10.4.1",
44
44
  "defu": "^6.1.2",
45
45
  "focus-trap": "^7.5.2",
46
- "unocss": "^0.54.2",
46
+ "unocss": "^0.55.3",
47
47
  "v-lazy-show": "^0.2.3",
48
- "@nuxt/devtools": "0.7.6",
49
- "@nuxt/devtools-kit": "0.7.6"
48
+ "@nuxt/devtools": "0.8.1",
49
+ "@nuxt/devtools-kit": "0.8.1"
50
50
  },
51
51
  "devDependencies": {
52
- "nuxt": "^3.6.5"
52
+ "nuxt": "^3.7.0"
53
53
  },
54
54
  "publishConfig": {
55
55
  "access": "public"