@nuxt/devtools-ui-kit 2.4.0 → 2.5.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.
Files changed (54) hide show
  1. package/dist/components/NBadge.vue.d.ts +12 -0
  2. package/dist/components/NBadgeHashed.vue +11 -13
  3. package/dist/components/NBadgeHashed.vue.d.ts +15 -0
  4. package/dist/components/NButton.mjs +11 -9
  5. package/dist/components/NCard.vue.d.ts +12 -0
  6. package/dist/components/NCheckbox.vue +8 -15
  7. package/dist/components/NCheckbox.vue.d.ts +23 -0
  8. package/dist/components/NCodeBlock.vue +20 -33
  9. package/dist/components/NCodeBlock.vue.d.ts +13 -0
  10. package/dist/components/NDarkToggle.vue +31 -49
  11. package/dist/components/NDarkToggle.vue.d.ts +12 -0
  12. package/dist/components/NDialog.vue +30 -47
  13. package/dist/components/NDialog.vue.d.ts +27 -0
  14. package/dist/components/NDrawer.vue +28 -41
  15. package/dist/components/NDrawer.vue.d.ts +25 -0
  16. package/dist/components/NDropdown.vue +12 -17
  17. package/dist/components/NDropdown.vue.d.ts +27 -0
  18. package/dist/components/NIcon.vue +4 -4
  19. package/dist/components/NIcon.vue.d.ts +5 -0
  20. package/dist/components/NIconTitle.vue +5 -5
  21. package/dist/components/NIconTitle.vue.d.ts +16 -0
  22. package/dist/components/NLink.vue +13 -15
  23. package/dist/components/NLink.vue.d.ts +18 -0
  24. package/dist/components/NLoading.vue.d.ts +12 -0
  25. package/dist/components/NMarkdown.vue +6 -9
  26. package/dist/components/NMarkdown.vue.d.ts +6 -0
  27. package/dist/components/NNavbar.vue +9 -13
  28. package/dist/components/NNavbar.vue.d.ts +24 -0
  29. package/dist/components/NNotification.vue +21 -25
  30. package/dist/components/NNotification.vue.d.ts +2 -0
  31. package/dist/components/NPanelGrids.vue.d.ts +12 -0
  32. package/dist/components/NRadio.vue +11 -18
  33. package/dist/components/NRadio.vue.d.ts +25 -0
  34. package/dist/components/NSectionBlock.vue +16 -26
  35. package/dist/components/NSectionBlock.vue.d.ts +37 -0
  36. package/dist/components/NSelect.vue +10 -19
  37. package/dist/components/NSelect.vue.d.ts +29 -0
  38. package/dist/components/NSelectTabs.vue +14 -21
  39. package/dist/components/NSelectTabs.vue.d.ts +17 -0
  40. package/dist/components/NSplitPane.vue +22 -32
  41. package/dist/components/NSplitPane.vue.d.ts +27 -0
  42. package/dist/components/NSwitch.vue +7 -12
  43. package/dist/components/NSwitch.vue.d.ts +25 -0
  44. package/dist/components/NTextInput.vue +15 -27
  45. package/dist/components/NTextInput.vue.d.ts +33 -0
  46. package/dist/components/NTip.vue +4 -4
  47. package/dist/components/NTip.vue.d.ts +17 -0
  48. package/dist/module.json +2 -2
  49. package/dist/runtime/client.d.ts +3 -0
  50. package/dist/types.d.mts +3 -1
  51. package/dist/unocss.mjs +1 -1
  52. package/package.json +18 -18
  53. package/dist/module.cjs +0 -5
  54. package/dist/types.d.ts +0 -1
@@ -1,39 +1,29 @@
1
- <script setup lang="ts">
2
- import { useLocalStorage } from '@vueuse/core'
3
- import { Pane, Splitpanes } from 'splitpanes'
4
- import { computed, ref } from 'vue'
5
-
6
- import 'splitpanes/dist/splitpanes.css'
7
-
8
- const props = withDefaults(defineProps<{
9
- /**
10
- * The key to use for storing the pane sizes in localStorage.
11
- */
12
- storageKey?: string
13
- stateKey?: string
14
- leftSize?: number
15
- minSize?: number
16
- horizontal?: boolean
17
- }>(), {
18
- stateKey: 'nuxt-devtools-panels-state',
19
- })
20
-
21
- const state = useLocalStorage<Record<string, number>>(props.stateKey, {} as any, { listenToStorageChanges: false })
22
-
23
- const DEFAULT = 30
24
-
25
- const key = props.storageKey
26
- const size = key
27
- ? computed({
28
- get: () => state.value[key] || props.leftSize || DEFAULT,
29
- set: (v) => { state.value[key] = v },
30
- })
31
- : ref(props.leftSize || DEFAULT)
1
+ <script setup>
2
+ import { useLocalStorage } from "@vueuse/core";
3
+ import { Pane, Splitpanes } from "splitpanes";
4
+ import { computed, ref } from "vue";
5
+ import "splitpanes/dist/splitpanes.css";
6
+ const props = defineProps({
7
+ storageKey: { type: String, required: false },
8
+ stateKey: { type: String, required: false, default: "nuxt-devtools-panels-state" },
9
+ leftSize: { type: Number, required: false },
10
+ minSize: { type: Number, required: false },
11
+ horizontal: { type: Boolean, required: false }
12
+ });
13
+ const state = useLocalStorage(props.stateKey, {}, { listenToStorageChanges: false });
14
+ const DEFAULT = 30;
15
+ const key = props.storageKey;
16
+ const size = key ? computed({
17
+ get: () => state.value[key] || props.leftSize || DEFAULT,
18
+ set: (v) => {
19
+ state.value[key] = v;
20
+ }
21
+ }) : ref(props.leftSize || DEFAULT);
32
22
  </script>
33
23
 
34
24
  <template>
35
25
  <Splitpanes :horizontal="horizontal" h-full of-hidden @resize="size = $event[0].size">
36
- <Pane h-full class="of-auto!" :size="size" :min-size="$slots.right ? (minSize || 10) : 100">
26
+ <Pane h-full class="of-auto!" :size="size" :min-size="$slots.right ? minSize || 10 : 100">
37
27
  <slot name="left" />
38
28
  </Pane>
39
29
  <Pane v-if="$slots.right" relative h-full class="of-auto!" :min-size="minSize || 10">
@@ -0,0 +1,27 @@
1
+ import 'splitpanes/dist/splitpanes.css';
2
+ type __VLS_Props = {
3
+ /**
4
+ * The key to use for storing the pane sizes in localStorage.
5
+ */
6
+ storageKey?: string;
7
+ stateKey?: string;
8
+ leftSize?: number;
9
+ minSize?: number;
10
+ horizontal?: boolean;
11
+ };
12
+ declare var __VLS_14: {}, __VLS_20: {};
13
+ type __VLS_Slots = {} & {
14
+ left?: (props: typeof __VLS_14) => any;
15
+ } & {
16
+ right?: (props: typeof __VLS_20) => any;
17
+ };
18
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
19
+ stateKey: string;
20
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
22
+ export default _default;
23
+ type __VLS_WithSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -1,16 +1,11 @@
1
- <script setup lang="ts">
2
- withDefaults(
3
- defineProps<{
4
- disabled?: boolean
5
- }>(),
6
- {
7
- disabled: false,
8
- },
9
- )
10
- const checked = defineModel('modelValue', {
1
+ <script setup>
2
+ defineProps({
3
+ disabled: { type: Boolean, required: false, default: false }
4
+ });
5
+ const checked = defineModel("modelValue", {
11
6
  type: Boolean,
12
- default: false,
13
- })
7
+ default: false
8
+ });
14
9
  </script>
15
10
 
16
11
  <template>
@@ -0,0 +1,25 @@
1
+ type __VLS_Props = {
2
+ disabled?: boolean;
3
+ };
4
+ declare const checked: import("vue").ModelRef<boolean, string, boolean, boolean>;
5
+ type __VLS_PublicProps = __VLS_Props & {
6
+ 'modelValue'?: typeof checked['value'];
7
+ };
8
+ declare var __VLS_1: {};
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_1) => any;
11
+ };
12
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
+ "update:modelValue": (value: boolean) => any;
14
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
15
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
16
+ }>, {
17
+ disabled: boolean;
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -1,29 +1,17 @@
1
- <script setup lang="ts">
2
- import { useVModel } from '@vueuse/core'
3
-
4
- const props = withDefaults(
5
- defineProps<{
6
- modelValue?: string | number
7
- icon?: string
8
- placeholder?: string
9
- disabled?: boolean
10
- autofocus?: boolean
11
- autocomplete?: string
12
- readonly?: boolean
13
- type?: string
14
- }>(),
15
- {
16
- modelValue: '',
17
- type: 'text',
18
- },
19
- )
20
-
21
- const emit = defineEmits<{
22
- (name: 'keydown', event: KeyboardEvent): void
23
- (name: 'keyup', event: KeyboardEvent): void
24
- (name: 'change', event: Event): void
25
- }>()
26
- const input = useVModel(props, 'modelValue', emit, { passive: true })
1
+ <script setup>
2
+ import { useVModel } from "@vueuse/core";
3
+ const props = defineProps({
4
+ modelValue: { type: [String, Number], required: false, default: "" },
5
+ icon: { type: String, required: false },
6
+ placeholder: { type: String, required: false },
7
+ disabled: { type: Boolean, required: false },
8
+ autofocus: { type: Boolean, required: false },
9
+ autocomplete: { type: String, required: false },
10
+ readonly: { type: Boolean, required: false },
11
+ type: { type: String, required: false, default: "text" }
12
+ });
13
+ const emit = defineEmits(["keydown", "keyup", "change"]);
14
+ const input = useVModel(props, "modelValue", emit, { passive: true });
27
15
  </script>
28
16
 
29
17
  <template>
@@ -33,7 +21,7 @@ const input = useVModel(props, 'modelValue', emit, { passive: true })
33
21
  </slot>
34
22
  <input
35
23
  v-model="input"
36
- v-bind="$props as any"
24
+ v-bind="$props"
37
25
  class="ml-0.4em w-full flex-auto n-bg-base !outline-none"
38
26
  >
39
27
  </div>
@@ -0,0 +1,33 @@
1
+ type __VLS_Props = {
2
+ modelValue?: string | number;
3
+ icon?: string;
4
+ placeholder?: string;
5
+ disabled?: boolean;
6
+ autofocus?: boolean;
7
+ autocomplete?: string;
8
+ readonly?: boolean;
9
+ type?: string;
10
+ };
11
+ declare var __VLS_1: {};
12
+ type __VLS_Slots = {} & {
13
+ icon?: (props: typeof __VLS_1) => any;
14
+ };
15
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
16
+ keydown: (event: KeyboardEvent) => any;
17
+ keyup: (event: KeyboardEvent) => any;
18
+ change: (event: Event) => any;
19
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
20
+ onKeydown?: ((event: KeyboardEvent) => any) | undefined;
21
+ onKeyup?: ((event: KeyboardEvent) => any) | undefined;
22
+ onChange?: ((event: Event) => any) | undefined;
23
+ }>, {
24
+ modelValue: string | number;
25
+ type: string;
26
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
28
+ export default _default;
29
+ type __VLS_WithSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -1,7 +1,7 @@
1
- <script setup lang="ts">
2
- defineProps<{
3
- icon?: string
4
- }>()
1
+ <script setup>
2
+ defineProps({
3
+ icon: { type: String, required: false }
4
+ });
5
5
  </script>
6
6
 
7
7
  <template>
@@ -0,0 +1,17 @@
1
+ type __VLS_Props = {
2
+ icon?: string;
3
+ };
4
+ declare var __VLS_1: {}, __VLS_7: {};
5
+ type __VLS_Slots = {} & {
6
+ icon?: (props: typeof __VLS_1) => any;
7
+ } & {
8
+ default?: (props: typeof __VLS_7) => any;
9
+ };
10
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
12
+ export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
package/dist/module.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@nuxt/devtools-ui-kit",
3
3
  "configKey": "devtoolsUIKit",
4
- "version": "2.4.0",
4
+ "version": "2.5.0-beta.1",
5
5
  "builder": {
6
- "@nuxt/module-builder": "0.8.4",
6
+ "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.5.0"
8
8
  }
9
9
  }
@@ -0,0 +1,3 @@
1
+ import type { NuxtDevtoolsIframeClient } from '@nuxt/devtools-kit/types';
2
+ import type { Ref } from 'vue';
3
+ export declare const devToolsClient: Ref<NuxtDevtoolsIframeClient | undefined>;
package/dist/types.d.mts CHANGED
@@ -1 +1,3 @@
1
- export { type unocssPreset } from './module.js'
1
+ export { type unocssPreset } from './unocss.mjs'
2
+
3
+ export { type ModuleOptions, default } from './module.mjs'
package/dist/unocss.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { theme } from '@unocss/preset-mini';
2
2
  import { fonts } from '@unocss/preset-mini/rules';
3
3
  import { parseColor } from '@unocss/preset-mini/utils';
4
- import { mergeDeep, presetWind3, presetAttributify, presetTypography, presetIcons, presetWebFonts, transformerDirectives, transformerVariantGroup } from 'unocss';
4
+ import { transformerDirectives, transformerVariantGroup, presetWind3, presetAttributify, presetTypography, presetIcons, presetWebFonts, mergeDeep } from 'unocss';
5
5
 
6
6
  function unocssPreset() {
7
7
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/devtools-ui-kit",
3
3
  "type": "module",
4
- "version": "2.4.0",
4
+ "version": "2.5.0-beta.1",
5
5
  "license": "MIT",
6
6
  "homepage": "https://devtools.nuxt.com/module/ui-kit",
7
7
  "repository": {
@@ -28,33 +28,33 @@
28
28
  "dist"
29
29
  ],
30
30
  "peerDependencies": {
31
- "@nuxt/devtools": "2.4.0"
31
+ "@nuxt/devtools": "2.5.0-beta.1"
32
32
  },
33
33
  "dependencies": {
34
34
  "@iconify-json/carbon": "^1.2.8",
35
35
  "@iconify-json/logos": "^1.2.4",
36
36
  "@iconify-json/ri": "^1.2.5",
37
- "@iconify-json/tabler": "^1.2.17",
38
- "@nuxt/kit": "^3.16.2",
39
- "@unocss/core": "^66.0.0",
40
- "@unocss/nuxt": "^66.0.0",
41
- "@unocss/preset-attributify": "^66.0.0",
42
- "@unocss/preset-icons": "^66.0.0",
43
- "@unocss/preset-mini": "^66.0.0",
44
- "@unocss/reset": "^66.0.0",
45
- "@vueuse/core": "^13.1.0",
46
- "@vueuse/integrations": "^13.1.0",
47
- "@vueuse/nuxt": "^13.1.0",
37
+ "@iconify-json/tabler": "^1.2.18",
38
+ "@nuxt/kit": "^3.17.4",
39
+ "@unocss/core": "^66.1.3",
40
+ "@unocss/nuxt": "^66.1.3",
41
+ "@unocss/preset-attributify": "^66.1.3",
42
+ "@unocss/preset-icons": "^66.1.3",
43
+ "@unocss/preset-mini": "^66.1.3",
44
+ "@unocss/reset": "^66.1.3",
45
+ "@vueuse/core": "^13.3.0",
46
+ "@vueuse/integrations": "^13.3.0",
47
+ "@vueuse/nuxt": "^13.3.0",
48
48
  "defu": "^6.1.4",
49
- "focus-trap": "^7.6.4",
49
+ "focus-trap": "^7.6.5",
50
50
  "splitpanes": "^3.2.0",
51
- "unocss": "^66.0.0",
51
+ "unocss": "^66.1.3",
52
52
  "v-lazy-show": "^0.3.0",
53
- "@nuxt/devtools-kit": "2.4.0"
53
+ "@nuxt/devtools-kit": "2.5.0-beta.1"
54
54
  },
55
55
  "devDependencies": {
56
- "nuxt": "^3.16.2",
57
- "@nuxt/devtools": "2.4.0"
56
+ "nuxt": "^3.17.4",
57
+ "@nuxt/devtools": "2.5.0-beta.1"
58
58
  },
59
59
  "publishConfig": {
60
60
  "access": "public"
package/dist/module.cjs DELETED
@@ -1,5 +0,0 @@
1
- module.exports = function(...args) {
2
- return import('./module.mjs').then(m => m.default.call(this, ...args))
3
- }
4
- const _meta = module.exports.meta = require('./module.json')
5
- module.exports.getMeta = () => Promise.resolve(_meta)
package/dist/types.d.ts DELETED
@@ -1 +0,0 @@
1
- export { type unocssPreset } from './module'