@nmorph/nmorph-ui-kit 0.2.155 → 0.2.156

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.
@@ -8,7 +8,7 @@ export interface INmorphUseFormValidation {
8
8
  errors: Ref<string[]>;
9
9
  validate: () => void;
10
10
  }>;
11
- isFormValid: Ref<boolean, boolean>;
12
- isAnyTouched: Ref<boolean, boolean>;
11
+ isFormValid: Ref<boolean>;
12
+ isAnyTouched: Ref<boolean>;
13
13
  }
14
14
  export declare const useFormValidation: (formData: NmorphFormValueType, validateFormOnLoad?: boolean) => INmorphUseFormValidation;
@@ -10,4 +10,5 @@ export declare const useNmorphBrowser: () => {
10
10
  width: number;
11
11
  height: number;
12
12
  }>;
13
+ scrollTop: Ref<number, number>;
13
14
  };
@@ -1,7 +1,12 @@
1
1
  import { Ref } from 'vue';
2
2
  import { I18n } from 'vue-i18n';
3
3
  import { NmorphFormValidationDataType } from '../components';
4
+ import { useNmorphBrowser, useNmorphTheme } from '../providers';
4
5
 
6
+ export interface INmorphInstance {
7
+ theme: ReturnType<typeof useNmorphTheme>;
8
+ browser: ReturnType<typeof useNmorphBrowser>;
9
+ }
5
10
  export interface INmorphFromDataExpose {
6
11
  formData: NmorphFormValidationDataType;
7
12
  }
@@ -397,12 +402,6 @@ export interface INmorphDimensions {
397
402
  width: number;
398
403
  height: number;
399
404
  }
400
- export interface INmorphInstance {
401
- theme: INmorphThemeInstance;
402
- browser: {
403
- dimensions: Ref<INmorphDimensions>;
404
- };
405
- }
406
405
  export interface INmorphImage {
407
406
  src: string;
408
407
  srcSet?: string;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@nmorph/nmorph-ui-kit",
3
3
  "type": "module",
4
4
  "private": false,
5
- "version": "0.2.155",
5
+ "version": "0.2.156",
6
6
  "license": "MIT",
7
7
  "engines": {
8
8
  "node": "18.13.0",