@nuxt/devtools-ui-kit 0.7.5 → 0.8.0
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 +1 -1
- package/dist/components/NSelect.vue +1 -1
- package/dist/components/NSelectTabs.vue +49 -0
- package/dist/module.json +1 -1
- package/package.json +11 -11
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
|
|
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.
|
|
@@ -21,7 +21,7 @@ const input = useVModel(props, 'modelValue', emit, { passive: true })
|
|
|
21
21
|
|
|
22
22
|
<template>
|
|
23
23
|
<div
|
|
24
|
-
class="n-
|
|
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
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/devtools-ui-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.8.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "nuxt/devtools",
|
|
7
7
|
"exports": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"*.cjs"
|
|
24
24
|
],
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@nuxt/devtools": "0.
|
|
26
|
+
"@nuxt/devtools": "0.8.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@iconify-json/carbon": "^1.1.19",
|
|
@@ -32,21 +32,21 @@
|
|
|
32
32
|
"@iconify-json/tabler": "^1.1.87",
|
|
33
33
|
"@nuxt/kit": "^3.6.5",
|
|
34
34
|
"@nuxtjs/color-mode": "^3.3.0",
|
|
35
|
-
"@unocss/core": "^0.
|
|
36
|
-
"@unocss/nuxt": "^0.
|
|
37
|
-
"@unocss/preset-attributify": "^0.
|
|
38
|
-
"@unocss/preset-icons": "^0.
|
|
39
|
-
"@unocss/preset-mini": "^0.
|
|
40
|
-
"@unocss/reset": "^0.
|
|
35
|
+
"@unocss/core": "^0.55.0",
|
|
36
|
+
"@unocss/nuxt": "^0.55.0",
|
|
37
|
+
"@unocss/preset-attributify": "^0.55.0",
|
|
38
|
+
"@unocss/preset-icons": "^0.55.0",
|
|
39
|
+
"@unocss/preset-mini": "^0.55.0",
|
|
40
|
+
"@unocss/reset": "^0.55.0",
|
|
41
41
|
"@vueuse/core": "^10.3.0",
|
|
42
42
|
"@vueuse/integrations": "^10.3.0",
|
|
43
43
|
"@vueuse/nuxt": "^10.3.0",
|
|
44
44
|
"defu": "^6.1.2",
|
|
45
45
|
"focus-trap": "^7.5.2",
|
|
46
|
-
"unocss": "^0.
|
|
46
|
+
"unocss": "^0.55.0",
|
|
47
47
|
"v-lazy-show": "^0.2.3",
|
|
48
|
-
"@nuxt/devtools": "0.
|
|
49
|
-
"@nuxt/devtools
|
|
48
|
+
"@nuxt/devtools-kit": "0.8.0",
|
|
49
|
+
"@nuxt/devtools": "0.8.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"nuxt": "^3.6.5"
|