@oiij/naive-ui 0.0.18 → 0.0.20

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.
@@ -1,10 +1,10 @@
1
- import * as vue0 from "vue";
1
+ import * as vue1 from "vue";
2
2
  import { Ref } from "vue";
3
- import * as _vueuse_core1 from "@vueuse/core";
3
+ import * as _vueuse_core2 from "@vueuse/core";
4
4
  import { FormInst, FormItemRule, FormRules } from "naive-ui";
5
5
 
6
6
  //#region src/composables/useNaiveForm.d.ts
7
- interface ClearRules {
7
+ interface NaiveFormClearRules {
8
8
  string?: string | null;
9
9
  number?: number | null;
10
10
  boolean?: boolean | null;
@@ -12,7 +12,7 @@ interface ClearRules {
12
12
  type NaiveFormRules<T extends Record<string, any>> = Partial<Record<keyof T, FormRules | FormItemRule | FormItemRule[]>>;
13
13
  interface NaiveFormOptions<T extends Record<string, any>> {
14
14
  rules?: NaiveFormRules<T>;
15
- clearRules?: ClearRules;
15
+ clearRules?: NaiveFormClearRules;
16
16
  }
17
17
  declare function useNaiveForm<T extends Record<string, any>>(value?: T, options?: NaiveFormOptions<T>): {
18
18
  formRef: Ref<FormInst | undefined, FormInst | undefined>;
@@ -20,7 +20,7 @@ declare function useNaiveForm<T extends Record<string, any>>(value?: T, options?
20
20
  formRules: Partial<Record<keyof T, FormRules | FormItemRule | FormItemRule[]>> | undefined;
21
21
  formProps: {
22
22
  ref: Ref<FormInst | undefined, FormInst | undefined>;
23
- model: vue0.Reactive<T>;
23
+ model: vue1.Reactive<T>;
24
24
  rules: Partial<Record<keyof T, FormRules | FormItemRule | FormItemRule[]>> | undefined;
25
25
  };
26
26
  validate: () => Promise<unknown[]> | undefined;
@@ -28,8 +28,8 @@ declare function useNaiveForm<T extends Record<string, any>>(value?: T, options?
28
28
  resetForm: () => void;
29
29
  reset: () => void;
30
30
  clear: () => void;
31
- onValidated: _vueuse_core1.EventHookOn<[T]>;
31
+ onValidated: _vueuse_core2.EventHookOn<[T]>;
32
32
  };
33
33
  type NaiveFormReturns<T extends Record<string, any>> = ReturnType<typeof useNaiveForm<T>>;
34
34
  //#endregion
35
- export { NaiveFormOptions, NaiveFormReturns, NaiveFormRules, useNaiveForm };
35
+ export { NaiveFormClearRules, NaiveFormOptions, NaiveFormReturns, NaiveFormRules, useNaiveForm };
@@ -1,10 +1,10 @@
1
- import * as _vueuse_core1 from "@vueuse/core";
2
- import * as vue0 from "vue";
1
+ import * as _vueuse_core2 from "@vueuse/core";
2
+ import * as vue1 from "vue";
3
3
  import { Ref } from "vue";
4
4
  import { FormInst, FormItemRule, FormRules } from "naive-ui";
5
5
 
6
6
  //#region src/composables/useNaiveForm.d.ts
7
- interface ClearRules {
7
+ interface NaiveFormClearRules {
8
8
  string?: string | null;
9
9
  number?: number | null;
10
10
  boolean?: boolean | null;
@@ -12,7 +12,7 @@ interface ClearRules {
12
12
  type NaiveFormRules<T extends Record<string, any>> = Partial<Record<keyof T, FormRules | FormItemRule | FormItemRule[]>>;
13
13
  interface NaiveFormOptions<T extends Record<string, any>> {
14
14
  rules?: NaiveFormRules<T>;
15
- clearRules?: ClearRules;
15
+ clearRules?: NaiveFormClearRules;
16
16
  }
17
17
  declare function useNaiveForm<T extends Record<string, any>>(value?: T, options?: NaiveFormOptions<T>): {
18
18
  formRef: Ref<FormInst | undefined, FormInst | undefined>;
@@ -20,7 +20,7 @@ declare function useNaiveForm<T extends Record<string, any>>(value?: T, options?
20
20
  formRules: Partial<Record<keyof T, FormRules | FormItemRule | FormItemRule[]>> | undefined;
21
21
  formProps: {
22
22
  ref: Ref<FormInst | undefined, FormInst | undefined>;
23
- model: vue0.Reactive<T>;
23
+ model: vue1.Reactive<T>;
24
24
  rules: Partial<Record<keyof T, FormRules | FormItemRule | FormItemRule[]>> | undefined;
25
25
  };
26
26
  validate: () => Promise<unknown[]> | undefined;
@@ -28,8 +28,8 @@ declare function useNaiveForm<T extends Record<string, any>>(value?: T, options?
28
28
  resetForm: () => void;
29
29
  reset: () => void;
30
30
  clear: () => void;
31
- onValidated: _vueuse_core1.EventHookOn<[T]>;
31
+ onValidated: _vueuse_core2.EventHookOn<[T]>;
32
32
  };
33
33
  type NaiveFormReturns<T extends Record<string, any>> = ReturnType<typeof useNaiveForm<T>>;
34
34
  //#endregion
35
- export { NaiveFormOptions, NaiveFormReturns, NaiveFormRules, useNaiveForm };
35
+ export { NaiveFormClearRules, NaiveFormOptions, NaiveFormReturns, NaiveFormRules, useNaiveForm };
@@ -1,6 +1,6 @@
1
1
  import { ComputedRef, Ref } from "vue";
2
2
  import { GlobalThemeOverrides, NDateLocale } from "naive-ui";
3
- import * as naive_ui_es_themes_interface2 from "naive-ui/es/themes/interface";
3
+ import * as naive_ui_es_themes_interface0 from "naive-ui/es/themes/interface";
4
4
 
5
5
  //#region src/composables/useNaiveTheme.d.ts
6
6
  interface Color {
@@ -19,7 +19,7 @@ interface NaiveThemeOptions {
19
19
  declare function useNaiveTheme(options?: NaiveThemeOptions): {
20
20
  language: Ref<string | undefined, string | undefined>;
21
21
  darkMode: Ref<boolean | undefined, boolean | undefined>;
22
- theme: ComputedRef<naive_ui_es_themes_interface2.BuiltInGlobalTheme | undefined>;
22
+ theme: ComputedRef<naive_ui_es_themes_interface0.BuiltInGlobalTheme | undefined>;
23
23
  themeOverrides: ComputedRef<GlobalThemeOverrides>;
24
24
  locale: ComputedRef<{
25
25
  name: string;
@@ -1,6 +1,6 @@
1
1
  import { ComputedRef, Ref } from "vue";
2
2
  import { GlobalThemeOverrides, NDateLocale } from "naive-ui";
3
- import * as naive_ui_es_themes_interface2 from "naive-ui/es/themes/interface";
3
+ import * as naive_ui_es_themes_interface0 from "naive-ui/es/themes/interface";
4
4
 
5
5
  //#region src/composables/useNaiveTheme.d.ts
6
6
  interface Color {
@@ -19,7 +19,7 @@ interface NaiveThemeOptions {
19
19
  declare function useNaiveTheme(options?: NaiveThemeOptions): {
20
20
  language: Ref<string | undefined, string | undefined>;
21
21
  darkMode: Ref<boolean | undefined, boolean | undefined>;
22
- theme: ComputedRef<naive_ui_es_themes_interface2.BuiltInGlobalTheme | undefined>;
22
+ theme: ComputedRef<naive_ui_es_themes_interface0.BuiltInGlobalTheme | undefined>;
23
23
  themeOverrides: ComputedRef<GlobalThemeOverrides>;
24
24
  locale: ComputedRef<{
25
25
  name: string;
package/dist/index.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- import { NaiveFormOptions, NaiveFormReturns, NaiveFormRules, useNaiveForm } from "./composables/useNaiveForm.cjs";
1
+ import { NaiveFormClearRules, NaiveFormOptions, NaiveFormReturns, NaiveFormRules, useNaiveForm } from "./composables/useNaiveForm.cjs";
2
2
  import { NaiveThemeReturns, useNaiveTheme } from "./composables/useNaiveTheme.cjs";
3
- export { NaiveFormOptions, NaiveFormReturns, NaiveFormRules, NaiveThemeReturns, useNaiveForm, useNaiveTheme };
3
+ export { NaiveFormClearRules, NaiveFormOptions, NaiveFormReturns, NaiveFormRules, NaiveThemeReturns, useNaiveForm, useNaiveTheme };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { NaiveFormOptions, NaiveFormReturns, NaiveFormRules, useNaiveForm } from "./composables/useNaiveForm.js";
1
+ import { NaiveFormClearRules, NaiveFormOptions, NaiveFormReturns, NaiveFormRules, useNaiveForm } from "./composables/useNaiveForm.js";
2
2
  import { NaiveThemeReturns, useNaiveTheme } from "./composables/useNaiveTheme.js";
3
- export { NaiveFormOptions, NaiveFormReturns, NaiveFormRules, NaiveThemeReturns, useNaiveForm, useNaiveTheme };
3
+ export { NaiveFormClearRules, NaiveFormOptions, NaiveFormReturns, NaiveFormRules, NaiveThemeReturns, useNaiveForm, useNaiveTheme };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oiij/naive-ui",
3
3
  "type": "module",
4
- "version": "0.0.18",
4
+ "version": "0.0.20",
5
5
  "description": "Som Composable Functions And Components for Vue 3",
6
6
  "author": "oiij",
7
7
  "license": "MIT",
@@ -46,8 +46,8 @@
46
46
  "vue": "^3.5.13",
47
47
  "vue-hooks-plus": "^2.4.0",
48
48
  "@oiij/css-render": "0.0.2",
49
- "@oiij/use": "0.0.18",
50
- "@oiij/markdown-it": "0.0.3"
49
+ "@oiij/markdown-it": "0.0.3",
50
+ "@oiij/use": "0.0.18"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/prismjs": "^1.26.5",
@@ -59,9 +59,9 @@
59
59
  "vue": "^3.5.17",
60
60
  "vue-component-type-helpers": "^2.2.10",
61
61
  "vue-hooks-plus": "^2.4.0",
62
- "@oiij/css-render": "0.0.2",
62
+ "@oiij/markdown-it": "0.0.3",
63
63
  "@oiij/use": "0.0.18",
64
- "@oiij/markdown-it": "0.0.3"
64
+ "@oiij/css-render": "0.0.2"
65
65
  },
66
66
  "publishConfig": {
67
67
  "access": "public"