@nuxt/devtools-ui-kit 1.0.0-beta.0 → 1.0.0-beta.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.
@@ -3,7 +3,7 @@ import { useVModel } from '@vueuse/core'
3
3
 
4
4
  const props = withDefaults(
5
5
  defineProps<{
6
- modelValue?: boolean
6
+ modelValue?: boolean | null
7
7
  disabled?: boolean
8
8
  }>(),
9
9
  {
@@ -1,7 +1,5 @@
1
1
  <script setup lang="ts">
2
2
  import { computed, nextTick } from 'vue'
3
-
4
- // @ts-expect-error auto imported from @nuxtjs/color-mode
5
3
  import { useColorMode } from '#imports'
6
4
 
7
5
  const mode = useColorMode()
@@ -61,7 +61,7 @@ const transitionType = {
61
61
  :border="`${transition === 'right' ? 'l' : transition === 'bottom' ? 't' : 'b'} base`"
62
62
  flex="~ col gap-1"
63
63
  :class="{ 'right-0': transition === 'right' || transition === 'bottom' }"
64
- absolute bottom-0 z-10 z-20 of-auto text-sm glass-effect
64
+ absolute bottom-0 z-10 z-20 of-auto text-sm n-glass-effect
65
65
  :style="{
66
66
  top: transition === 'bottom' ? 'auto' : `${height}px`,
67
67
  left: transition === 'right' && !width ? 'auto' : `${width}px`,
@@ -0,0 +1,33 @@
1
+ <script setup lang="ts">
2
+ defineProps<{
3
+ search?: string
4
+ noPadding?: boolean
5
+ }>()
6
+
7
+ const emit = defineEmits<{
8
+ (event: 'update:search', value: string): void
9
+ }>()
10
+
11
+ function update(event: any) {
12
+ emit('update:search', event.target.value)
13
+ }
14
+ </script>
15
+
16
+ <template>
17
+ <div flex="~ col gap2" border="b base" flex-1 n-navbar-glass :class="[{ p4: !noPadding }]">
18
+ <div flex="~ gap4" items-center>
19
+ <slot v-if="search !== undefined" name="search">
20
+ <NTextInput
21
+ placeholder="Search..."
22
+ icon="carbon-search"
23
+ n="primary" flex-auto
24
+ :class="{ 'px-5 py-2': !noPadding }"
25
+ :value="search"
26
+ @input="update"
27
+ />
28
+ </slot>
29
+ <slot name="actions" />
30
+ </div>
31
+ <slot />
32
+ </div>
33
+ </template>
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "devtools-ui-kit",
3
3
  "configKey": "devtoolsUIKit",
4
- "version": "1.0.0-beta.0"
4
+ "version": "1.0.0-beta.1"
5
5
  }
package/dist/unocss.mjs CHANGED
@@ -125,7 +125,10 @@ function unocssPreset() {
125
125
  // loading
126
126
  "n-loading": "flex h-full w-full justify-center items-center",
127
127
  "n-panel-grids": "n-panel-grids-light dark:n-panel-grids-dark",
128
- "n-panel-grids-center": "n-panel-grids flex flex-col h-full gap-2 items-center justify-center"
128
+ "n-panel-grids-center": "n-panel-grids flex flex-col h-full gap-2 items-center justify-center",
129
+ // glass
130
+ "n-glass-effect": "backdrop-blur-6 bg-white/80 dark:bg-[#151515]/90",
131
+ "n-navbar-glass": "sticky z-10 top-0 n-glass-effect"
129
132
  }
130
133
  };
131
134
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/devtools-ui-kit",
3
3
  "type": "module",
4
- "version": "1.0.0-beta.0",
4
+ "version": "1.0.0-beta.1",
5
5
  "license": "MIT",
6
6
  "repository": "nuxt/devtools",
7
7
  "exports": {
@@ -23,41 +23,41 @@
23
23
  "dist"
24
24
  ],
25
25
  "peerDependencies": {
26
- "@nuxt/devtools": "1.0.0-beta.0"
26
+ "@nuxt/devtools": "1.0.0-beta.1"
27
27
  },
28
28
  "dependencies": {
29
29
  "@iconify-json/carbon": "^1.1.21",
30
30
  "@iconify-json/logos": "^1.1.37",
31
31
  "@iconify-json/ri": "^1.1.12",
32
- "@iconify-json/tabler": "^1.1.92",
32
+ "@iconify-json/tabler": "^1.1.94",
33
33
  "@nuxt/kit": "^3.7.4",
34
34
  "@nuxtjs/color-mode": "^3.3.0",
35
- "@unocss/core": "^0.56.2",
36
- "@unocss/nuxt": "^0.56.2",
37
- "@unocss/preset-attributify": "^0.56.2",
38
- "@unocss/preset-icons": "^0.56.2",
39
- "@unocss/preset-mini": "^0.56.2",
40
- "@unocss/reset": "^0.56.2",
41
- "@vueuse/core": "^10.4.1",
42
- "@vueuse/integrations": "^10.4.1",
43
- "@vueuse/nuxt": "^10.4.1",
35
+ "@unocss/core": "^0.56.5",
36
+ "@unocss/nuxt": "^0.56.5",
37
+ "@unocss/preset-attributify": "^0.56.5",
38
+ "@unocss/preset-icons": "^0.56.5",
39
+ "@unocss/preset-mini": "^0.56.5",
40
+ "@unocss/reset": "^0.56.5",
41
+ "@vueuse/core": "^10.5.0",
42
+ "@vueuse/integrations": "^10.5.0",
43
+ "@vueuse/nuxt": "^10.5.0",
44
44
  "defu": "^6.1.2",
45
45
  "focus-trap": "^7.5.3",
46
46
  "splitpanes": "^3.1.5",
47
- "unocss": "^0.56.2",
47
+ "unocss": "^0.56.5",
48
48
  "v-lazy-show": "^0.2.3",
49
- "@nuxt/devtools-kit": "1.0.0-beta.0"
49
+ "@nuxt/devtools-kit": "1.0.0-beta.1"
50
50
  },
51
51
  "devDependencies": {
52
52
  "nuxt": "^3.7.4",
53
- "@nuxt/devtools": "1.0.0-beta.0"
53
+ "@nuxt/devtools": "1.0.0-beta.1"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"
57
57
  },
58
58
  "scripts": {
59
- "build": "nuxt-build-module",
60
- "stub": "nuxt-build-module --stub",
59
+ "build": "nuxt-build-module build",
60
+ "stub": "nuxt-build-module build --stub",
61
61
  "dev": "nuxi dev playground",
62
62
  "playground:build": "nuxi generate playground"
63
63
  }