@nuxt/devtools-ui-kit 2.4.1 → 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 (53) 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/NCard.vue.d.ts +12 -0
  5. package/dist/components/NCheckbox.vue +8 -15
  6. package/dist/components/NCheckbox.vue.d.ts +23 -0
  7. package/dist/components/NCodeBlock.vue +20 -33
  8. package/dist/components/NCodeBlock.vue.d.ts +13 -0
  9. package/dist/components/NDarkToggle.vue +31 -49
  10. package/dist/components/NDarkToggle.vue.d.ts +12 -0
  11. package/dist/components/NDialog.vue +30 -47
  12. package/dist/components/NDialog.vue.d.ts +27 -0
  13. package/dist/components/NDrawer.vue +28 -41
  14. package/dist/components/NDrawer.vue.d.ts +25 -0
  15. package/dist/components/NDropdown.vue +12 -17
  16. package/dist/components/NDropdown.vue.d.ts +27 -0
  17. package/dist/components/NIcon.vue +4 -4
  18. package/dist/components/NIcon.vue.d.ts +5 -0
  19. package/dist/components/NIconTitle.vue +5 -5
  20. package/dist/components/NIconTitle.vue.d.ts +16 -0
  21. package/dist/components/NLink.vue +13 -15
  22. package/dist/components/NLink.vue.d.ts +18 -0
  23. package/dist/components/NLoading.vue.d.ts +12 -0
  24. package/dist/components/NMarkdown.vue +6 -9
  25. package/dist/components/NMarkdown.vue.d.ts +6 -0
  26. package/dist/components/NNavbar.vue +9 -13
  27. package/dist/components/NNavbar.vue.d.ts +24 -0
  28. package/dist/components/NNotification.vue +21 -25
  29. package/dist/components/NNotification.vue.d.ts +2 -0
  30. package/dist/components/NPanelGrids.vue.d.ts +12 -0
  31. package/dist/components/NRadio.vue +11 -18
  32. package/dist/components/NRadio.vue.d.ts +25 -0
  33. package/dist/components/NSectionBlock.vue +16 -26
  34. package/dist/components/NSectionBlock.vue.d.ts +37 -0
  35. package/dist/components/NSelect.vue +10 -19
  36. package/dist/components/NSelect.vue.d.ts +29 -0
  37. package/dist/components/NSelectTabs.vue +14 -21
  38. package/dist/components/NSelectTabs.vue.d.ts +17 -0
  39. package/dist/components/NSplitPane.vue +22 -32
  40. package/dist/components/NSplitPane.vue.d.ts +27 -0
  41. package/dist/components/NSwitch.vue +7 -12
  42. package/dist/components/NSwitch.vue.d.ts +25 -0
  43. package/dist/components/NTextInput.vue +15 -27
  44. package/dist/components/NTextInput.vue.d.ts +33 -0
  45. package/dist/components/NTip.vue +4 -4
  46. package/dist/components/NTip.vue.d.ts +17 -0
  47. package/dist/module.json +2 -2
  48. package/dist/runtime/client.d.ts +3 -0
  49. package/dist/types.d.mts +3 -1
  50. package/dist/unocss.mjs +1 -1
  51. package/package.json +18 -18
  52. package/dist/module.cjs +0 -5
  53. package/dist/types.d.ts +0 -1
@@ -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.1",
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.1",
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.1"
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.17.3",
39
- "@unocss/core": "^66.1.1",
40
- "@unocss/nuxt": "^66.1.1",
41
- "@unocss/preset-attributify": "^66.1.1",
42
- "@unocss/preset-icons": "^66.1.1",
43
- "@unocss/preset-mini": "^66.1.1",
44
- "@unocss/reset": "^66.1.1",
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.1.1",
51
+ "unocss": "^66.1.3",
52
52
  "v-lazy-show": "^0.3.0",
53
- "@nuxt/devtools-kit": "2.4.1"
53
+ "@nuxt/devtools-kit": "2.5.0-beta.1"
54
54
  },
55
55
  "devDependencies": {
56
- "nuxt": "^3.17.3",
57
- "@nuxt/devtools": "2.4.1"
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'