@nmorph/nmorph-ui-kit 2.0.3 → 2.1.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.
- package/dist/index.es.js +3936 -3777
- package/dist/index.umd.js +427 -343
- package/dist/src/components/data/nmorph-avatar/NmorphAvatar.vue.d.ts +3 -0
- package/dist/src/components/data/nmorph-badge/NmorphBadge.vue.d.ts +7 -5
- package/dist/src/components/feedback/nmorph-dialog/NmorphDialog.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-color-picker/NmorphColorPicker.vue.d.ts +2 -0
- package/dist/src/components/form/nmorph-file-upload/NmorphFileUpload.vue.d.ts +4 -4
- package/dist/src/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.d.ts +2 -2
- package/dist/src/components/providers/nmorph-notification-provider/types.d.ts +2 -0
- package/dist/src/outside-hooks/use-nmorph-notification.d.ts +2 -0
- package/dist/src/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ interface INmorphProps extends INmorphImage {
|
|
|
5
5
|
shape?: keyof typeof AvatarShapeType;
|
|
6
6
|
frameBorder?: number;
|
|
7
7
|
imagePadding?: number;
|
|
8
|
+
name?: string;
|
|
8
9
|
fallback?: Component;
|
|
9
10
|
}
|
|
10
11
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
@@ -16,11 +17,13 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
16
17
|
}>, {
|
|
17
18
|
size: number;
|
|
18
19
|
shape: "square" | "circle";
|
|
20
|
+
name: string;
|
|
19
21
|
frameBorder: number;
|
|
20
22
|
imagePadding: number;
|
|
21
23
|
fallback: any;
|
|
22
24
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
23
25
|
error?(_: {}): any;
|
|
26
|
+
error?(_: {}): any;
|
|
24
27
|
}>;
|
|
25
28
|
export default _default;
|
|
26
29
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -8,10 +8,11 @@ interface INmorphProps {
|
|
|
8
8
|
color?: string;
|
|
9
9
|
offsetY?: number;
|
|
10
10
|
offsetX?: number;
|
|
11
|
+
zIndex?: number;
|
|
11
12
|
disabled?: boolean;
|
|
12
13
|
}
|
|
13
14
|
type NmorphBadgeValueSlotProps = {
|
|
14
|
-
value: INmorphProps[
|
|
15
|
+
value: INmorphProps['value'];
|
|
15
16
|
displayValue: string | number | undefined;
|
|
16
17
|
};
|
|
17
18
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
|
|
@@ -24,12 +25,13 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
24
25
|
isTag: boolean;
|
|
25
26
|
offsetY: number;
|
|
26
27
|
offsetX: number;
|
|
28
|
+
zIndex: number;
|
|
27
29
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, Readonly<{
|
|
28
|
-
default?: (props: Record<string, never>) =>
|
|
29
|
-
value?: (props: NmorphBadgeValueSlotProps) =>
|
|
30
|
+
default?: (props: Record<string, never>) => unknown;
|
|
31
|
+
value?: (props: NmorphBadgeValueSlotProps) => unknown;
|
|
30
32
|
}> & {
|
|
31
|
-
default?: (props: Record<string, never>) =>
|
|
32
|
-
value?: (props: NmorphBadgeValueSlotProps) =>
|
|
33
|
+
default?: (props: Record<string, never>) => unknown;
|
|
34
|
+
value?: (props: NmorphBadgeValueSlotProps) => unknown;
|
|
33
35
|
}>;
|
|
34
36
|
export default _default;
|
|
35
37
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -20,11 +20,11 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
20
20
|
width: string;
|
|
21
21
|
title: string;
|
|
22
22
|
modelValue: boolean;
|
|
23
|
+
zIndex: number;
|
|
23
24
|
openDelay: number;
|
|
24
25
|
closeDelay: number;
|
|
25
26
|
closeOnClickModal: boolean;
|
|
26
27
|
showClose: boolean;
|
|
27
|
-
zIndex: number;
|
|
28
28
|
closeOnOverlay: boolean;
|
|
29
29
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
30
30
|
header?(_: {}): any;
|
|
@@ -3,6 +3,7 @@ import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProv
|
|
|
3
3
|
interface INmorphProps extends INmorphCommonInputProps {
|
|
4
4
|
modelValue?: string;
|
|
5
5
|
showValue?: boolean;
|
|
6
|
+
displayFormat?: 'hex' | 'rgb' | 'hsl';
|
|
6
7
|
}
|
|
7
8
|
declare const _default: DefineComponent<INmorphProps, {
|
|
8
9
|
inputDOMRef: Ref<HTMLElement, HTMLElement>;
|
|
@@ -19,5 +20,6 @@ declare const _default: DefineComponent<INmorphProps, {
|
|
|
19
20
|
disabled: boolean;
|
|
20
21
|
modelValue: string;
|
|
21
22
|
showValue: boolean;
|
|
23
|
+
displayFormat: "hex" | "rgb" | "hsl";
|
|
22
24
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
23
25
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
1
|
import { INmorphCustomFileData, NmorphResolutionType } from '../..';
|
|
2
|
+
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
interface INmorphProps {
|
|
4
4
|
modelValue?: INmorphCustomFileData[];
|
|
5
5
|
disabled?: boolean;
|
|
@@ -8,13 +8,13 @@ interface INmorphProps {
|
|
|
8
8
|
photoWithPreview?: boolean;
|
|
9
9
|
buttonText?: string;
|
|
10
10
|
}
|
|
11
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<INmorphProps, {
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
12
12
|
inputDOMRef: Ref<HTMLElement, HTMLElement>;
|
|
13
13
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
14
|
-
"update:model-value": (val:
|
|
14
|
+
"update:model-value": (val: INmorphCustomFileData[]) => any;
|
|
15
15
|
"on-unsupported-file-type-error": (val: string) => any;
|
|
16
16
|
}, string, PublicProps, Readonly<INmorphProps> & Readonly<{
|
|
17
|
-
"onUpdate:model-value"?: (val:
|
|
17
|
+
"onUpdate:model-value"?: (val: INmorphCustomFileData[]) => any;
|
|
18
18
|
"onOn-unsupported-file-type-error"?: (val: string) => any;
|
|
19
19
|
}>, {
|
|
20
20
|
disabled: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { INmorphNotification,
|
|
1
|
+
import { INmorphNotification, TNmorphNotificationPlacement } from '..';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
interface INmorphProps {
|
|
4
4
|
notifications: INmorphNotification[];
|
|
5
|
-
placement?:
|
|
5
|
+
placement?: TNmorphNotificationPlacement;
|
|
6
6
|
zIndex?: number;
|
|
7
7
|
quantity?: number;
|
|
8
8
|
}
|
|
@@ -3,6 +3,7 @@ export interface INmorphNotification extends INmorphAlertProps {
|
|
|
3
3
|
id?: string;
|
|
4
4
|
duration?: number;
|
|
5
5
|
width?: string;
|
|
6
|
+
placement?: TNmorphNotificationPlacement;
|
|
6
7
|
}
|
|
7
8
|
export declare enum NmorphNotificationPlacement {
|
|
8
9
|
'top-left' = "top-left",
|
|
@@ -12,3 +13,4 @@ export declare enum NmorphNotificationPlacement {
|
|
|
12
13
|
'bottom-center' = "bottom-center",
|
|
13
14
|
'bottom-right' = "bottom-right"
|
|
14
15
|
}
|
|
16
|
+
export type TNmorphNotificationPlacement = keyof typeof NmorphNotificationPlacement;
|
|
@@ -5,6 +5,7 @@ export declare const useNmorphNotification: () => {
|
|
|
5
5
|
id?: string;
|
|
6
6
|
duration?: number;
|
|
7
7
|
width?: string;
|
|
8
|
+
placement?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
8
9
|
type?: "error" | "success" | "warning" | "info";
|
|
9
10
|
closable?: boolean;
|
|
10
11
|
title?: string;
|
|
@@ -18,6 +19,7 @@ export declare const useNmorphNotification: () => {
|
|
|
18
19
|
id?: string;
|
|
19
20
|
duration?: number;
|
|
20
21
|
width?: string;
|
|
22
|
+
placement?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
21
23
|
type?: "error" | "success" | "warning" | "info";
|
|
22
24
|
closable?: boolean;
|
|
23
25
|
title?: string;
|