@nmorph/nmorph-ui-kit 0.2.151 → 0.2.152
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.
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/src/components/basic/nmorph-button/NmorphButton.vue.d.ts +1 -1
- package/dist/src/components/feedback/nmorph-alert/NmorphAlert.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-form/NmorphForm.vue.d.ts +3 -12
- package/dist/src/hooks/use-nmorph-translation.d.ts +1 -1
- package/dist/src/hooks/use-placement.d.ts +1 -1
- package/dist/src/types/index.d.ts +4 -0
- package/package.json +1 -1
|
@@ -45,9 +45,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
|
|
|
45
45
|
icon: any;
|
|
46
46
|
}>>> & Readonly<{}>, {
|
|
47
47
|
loading: boolean;
|
|
48
|
-
fill: boolean;
|
|
49
48
|
height: keyof typeof NmorphComponentHeight;
|
|
50
49
|
type: keyof typeof NmorphButtonType;
|
|
50
|
+
fill: boolean;
|
|
51
51
|
text: string | number;
|
|
52
52
|
disabled: boolean;
|
|
53
53
|
styleType: keyof typeof NmorphButtonStyle;
|
|
@@ -35,8 +35,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
|
|
|
35
35
|
}>>> & Readonly<{
|
|
36
36
|
onClose?: () => any;
|
|
37
37
|
}>, {
|
|
38
|
-
fill: boolean;
|
|
39
38
|
type: keyof typeof NmorphAlertType;
|
|
39
|
+
fill: boolean;
|
|
40
40
|
html: string;
|
|
41
41
|
title: string;
|
|
42
42
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NmorphFormValueType } from './types';
|
|
2
|
-
import { DefineComponent, ExtractPropTypes,
|
|
1
|
+
import { NmorphFormValueType, NmorphFormValidationDataType } from './types';
|
|
2
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
|
|
3
3
|
|
|
4
4
|
interface INmorphProps {
|
|
5
5
|
value: NmorphFormValueType;
|
|
@@ -11,16 +11,7 @@ declare function __VLS_template(): {
|
|
|
11
11
|
declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
12
12
|
validateImmediately: boolean;
|
|
13
13
|
}>>, {
|
|
14
|
-
formData:
|
|
15
|
-
fields: Record<string, {
|
|
16
|
-
touched: Ref<boolean, boolean>;
|
|
17
|
-
valid: Ref<boolean, boolean>;
|
|
18
|
-
errors: Ref<string[], string[]>;
|
|
19
|
-
validate: () => any;
|
|
20
|
-
}>;
|
|
21
|
-
isFormValid: Ref<boolean, boolean>;
|
|
22
|
-
isAnyTouched: Ref<boolean, boolean>;
|
|
23
|
-
};
|
|
14
|
+
formData: NmorphFormValidationDataType;
|
|
24
15
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
25
16
|
validateImmediately: boolean;
|
|
26
17
|
}>>> & Readonly<{}>, {
|
|
@@ -9,7 +9,7 @@ interface INmorphUsePlacementPayload {
|
|
|
9
9
|
xOffset?: number;
|
|
10
10
|
}
|
|
11
11
|
export declare const usePlacement: (data: INmorphUsePlacementPayload) => {
|
|
12
|
-
placement: Ref<"bottom" | "top" | "
|
|
12
|
+
placement: Ref<"bottom" | "top" | "right" | "left", "bottom" | "top" | "right" | "left">;
|
|
13
13
|
placementCoords: Ref<{
|
|
14
14
|
x: string;
|
|
15
15
|
y: string;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { I18n } from 'vue-i18n';
|
|
3
|
+
import { NmorphFormValidationDataType } from '../components';
|
|
3
4
|
|
|
5
|
+
export interface INmorphFromDataExpose {
|
|
6
|
+
formData: NmorphFormValidationDataType;
|
|
7
|
+
}
|
|
4
8
|
export declare enum NmorphComponentHeight {
|
|
5
9
|
thick = "thick-component",
|
|
6
10
|
default = "default-height-component",
|