@nmorph/nmorph-ui-kit 0.2.154 → 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:
|
|
12
|
-
isAnyTouched:
|
|
11
|
+
isFormValid: Ref<boolean>;
|
|
12
|
+
isAnyTouched: Ref<boolean>;
|
|
13
13
|
}
|
|
14
14
|
export declare const useFormValidation: (formData: NmorphFormValueType, validateFormOnLoad?: boolean) => INmorphUseFormValidation;
|
|
@@ -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;
|