@nmorph/nmorph-ui-kit 2.1.0 → 2.2.0
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 +3463 -3322
- package/dist/index.umd.js +321 -234
- package/dist/src/components/data/nmorph-badge/NmorphBadge.vue.d.ts +10 -5
- package/dist/src/components/feedback/index.d.ts +2 -0
- package/dist/src/components/feedback/nmorph-callout/NmorphCallout.vue.d.ts +11 -0
- package/dist/src/components/feedback/nmorph-callout/types.d.ts +1 -0
- 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/form/nmorph-select-button/NmorphSelectButton.vue.d.ts +2 -0
- package/dist/src/types/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type NmorphBadgeSize = 'tiny' | 'extra-small' | 'base';
|
|
2
3
|
interface INmorphProps {
|
|
3
4
|
value?: number | string;
|
|
4
5
|
max?: number;
|
|
@@ -6,15 +7,18 @@ interface INmorphProps {
|
|
|
6
7
|
isTag?: boolean;
|
|
7
8
|
hidden?: boolean;
|
|
8
9
|
color?: string;
|
|
10
|
+
size?: NmorphBadgeSize;
|
|
9
11
|
offsetY?: number;
|
|
10
12
|
offsetX?: number;
|
|
13
|
+
zIndex?: number;
|
|
11
14
|
disabled?: boolean;
|
|
12
15
|
}
|
|
13
16
|
type NmorphBadgeValueSlotProps = {
|
|
14
|
-
value: INmorphProps[
|
|
17
|
+
value: INmorphProps['value'];
|
|
15
18
|
displayValue: string | number | undefined;
|
|
16
19
|
};
|
|
17
20
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
|
|
21
|
+
size: NmorphBadgeSize;
|
|
18
22
|
value: string | number;
|
|
19
23
|
color: string;
|
|
20
24
|
disabled: boolean;
|
|
@@ -24,12 +28,13 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
24
28
|
isTag: boolean;
|
|
25
29
|
offsetY: number;
|
|
26
30
|
offsetX: number;
|
|
31
|
+
zIndex: number;
|
|
27
32
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, Readonly<{
|
|
28
|
-
default?: (props: Record<string, never>) =>
|
|
29
|
-
value?: (props: NmorphBadgeValueSlotProps) =>
|
|
33
|
+
default?: (props: Record<string, never>) => unknown;
|
|
34
|
+
value?: (props: NmorphBadgeValueSlotProps) => unknown;
|
|
30
35
|
}> & {
|
|
31
|
-
default?: (props: Record<string, never>) =>
|
|
32
|
-
value?: (props: NmorphBadgeValueSlotProps) =>
|
|
36
|
+
default?: (props: Record<string, never>) => unknown;
|
|
37
|
+
value?: (props: NmorphBadgeValueSlotProps) => unknown;
|
|
33
38
|
}>;
|
|
34
39
|
export default _default;
|
|
35
40
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { default as NmorphAlert } from './nmorph-alert/NmorphAlert.vue';
|
|
2
2
|
export * from './nmorph-alert/types';
|
|
3
|
+
export { default as NmorphCallout } from './nmorph-callout/NmorphCallout.vue';
|
|
4
|
+
export * from './nmorph-callout/types';
|
|
3
5
|
export { default as NmorphDialog } from './nmorph-dialog/NmorphDialog.vue';
|
|
4
6
|
export { default as NmorphTooltip } from './nmorph-tooltip/NmorphTooltip.vue';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NmorphCalloutType } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
interface INmorphProps {
|
|
4
|
+
type?: NmorphCalloutType;
|
|
5
|
+
title: string;
|
|
6
|
+
content: string;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
|
|
9
|
+
type: NmorphCalloutType;
|
|
10
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type NmorphCalloutType = 'info' | 'warning';
|
|
@@ -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;
|
|
@@ -4,12 +4,14 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
|
|
|
4
4
|
interface INmorphProps extends INmorphCommonInputProps {
|
|
5
5
|
modelValue?: string;
|
|
6
6
|
options?: INmorphSelectButtonOption[];
|
|
7
|
+
fill?: boolean;
|
|
7
8
|
}
|
|
8
9
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
9
10
|
"update:model-value": (val: string) => any;
|
|
10
11
|
}, string, PublicProps, Readonly<INmorphProps> & Readonly<{
|
|
11
12
|
"onUpdate:model-value"?: (val: string) => any;
|
|
12
13
|
}>, {
|
|
14
|
+
fill: boolean;
|
|
13
15
|
height: "default" | "thick" | "thin";
|
|
14
16
|
disabled: boolean;
|
|
15
17
|
modelValue: string;
|
|
@@ -73,7 +73,7 @@ export interface INmorphColorVariable {
|
|
|
73
73
|
}
|
|
74
74
|
export interface INmorphOtherThemeOptions {
|
|
75
75
|
baseShadowWidth?: string;
|
|
76
|
-
|
|
76
|
+
baseShadowBlurCoefficient?: string;
|
|
77
77
|
}
|
|
78
78
|
export interface INmorphThemeOptions {
|
|
79
79
|
themes?: NmorphThemeOptionsType;
|
|
@@ -99,6 +99,7 @@ export interface INmorphStaticColors {
|
|
|
99
99
|
warnText?: string;
|
|
100
100
|
gray?: string;
|
|
101
101
|
accent?: string;
|
|
102
|
+
scrollThumb?: string;
|
|
102
103
|
white?: string;
|
|
103
104
|
black?: string;
|
|
104
105
|
text?: string;
|