@nmorph/nmorph-ui-kit 2.2.3 → 2.2.5
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 +3509 -3462
- package/dist/index.umd.js +162 -148
- package/dist/src/components/data/nmorph-avatar/NmorphAvatar.vue.d.ts +14 -1
- package/dist/src/components/data/nmorph-image/NmorphImage.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-checkbox/NmorphCheckbox.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +2 -0
- package/dist/src/components/form/nmorph-radio/NmorphRadio.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +1 -0
- package/dist/src/types/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import { Component, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
import { INmorphImage, AvatarShapeType } from '../../../types';
|
|
3
|
-
interface INmorphProps extends INmorphImage {
|
|
3
|
+
interface INmorphProps extends Omit<INmorphImage, 'src'> {
|
|
4
|
+
src?: string | string[];
|
|
4
5
|
size?: number;
|
|
5
6
|
shape?: keyof typeof AvatarShapeType;
|
|
6
7
|
frameBorder?: number;
|
|
7
8
|
imagePadding?: number;
|
|
8
9
|
name?: string;
|
|
9
10
|
fallback?: Component;
|
|
11
|
+
preview?: boolean;
|
|
12
|
+
previewSrc?: string | string[];
|
|
13
|
+
previewInitialIndex?: number;
|
|
14
|
+
previewScaleStep?: number;
|
|
15
|
+
previewMinScaleLevel?: number;
|
|
16
|
+
previewMaxScaleLevel?: number;
|
|
10
17
|
}
|
|
11
18
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
12
19
|
error: (event: Event) => any;
|
|
@@ -21,6 +28,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
21
28
|
frameBorder: number;
|
|
22
29
|
imagePadding: number;
|
|
23
30
|
fallback: any;
|
|
31
|
+
preview: boolean;
|
|
32
|
+
previewSrc: string | string[];
|
|
33
|
+
previewInitialIndex: number;
|
|
34
|
+
previewScaleStep: number;
|
|
35
|
+
previewMinScaleLevel: number;
|
|
36
|
+
previewMaxScaleLevel: number;
|
|
24
37
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
25
38
|
error?(_: {}): any;
|
|
26
39
|
error?(_: {}): any;
|
|
@@ -12,10 +12,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
12
12
|
onError?: (event: Event) => any;
|
|
13
13
|
onLoad?: (event: Event) => any;
|
|
14
14
|
}>, {
|
|
15
|
-
frameBorder: number;
|
|
16
15
|
srcSet: string;
|
|
17
16
|
fit: "fill" | "none" | "contain" | "cover" | "scale-down";
|
|
18
17
|
alt: string;
|
|
18
|
+
frameBorder: number;
|
|
19
19
|
loadingText: string;
|
|
20
20
|
loadFailedText: string;
|
|
21
21
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { Ref, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
1
2
|
import { INmorphCheckboxOption, NmorphCheckboxDesignType } from '../../../types';
|
|
2
|
-
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphCheckboxOption, {
|
|
4
4
|
inputDOMRef: Ref<HTMLElement, HTMLElement>;
|
|
5
5
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
@@ -11,6 +11,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
11
11
|
}, string, PublicProps, Readonly<INmorphProps> & Readonly<{
|
|
12
12
|
"onUpdate:model-value"?: (val: string[]) => any;
|
|
13
13
|
}>, {
|
|
14
|
+
height: "default" | "thick" | "thin";
|
|
15
|
+
disabled: boolean;
|
|
14
16
|
modelValue: string[];
|
|
15
17
|
design: NmorphCheckboxDesignType;
|
|
16
18
|
options: INmorphCheckboxOption[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { Ref, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
1
2
|
import { INmorphRadioOption, NmorphRadioStyleType } from '../../../types';
|
|
2
|
-
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
interface INmorphProps extends Omit<INmorphRadioOption, 'value'> {
|
|
4
4
|
value?: string;
|
|
5
5
|
styleType?: keyof typeof NmorphRadioStyleType;
|
|
@@ -13,6 +13,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
13
13
|
"onUpdate:model-value"?: (val: string) => any;
|
|
14
14
|
}>, {
|
|
15
15
|
styleType: "button" | "radio-style";
|
|
16
|
+
height: "default" | "thick" | "thin";
|
|
16
17
|
disabled: boolean;
|
|
17
18
|
modelValue: string;
|
|
18
19
|
options: NmorphListRadioOptionElementType[];
|
|
@@ -165,6 +165,7 @@ export interface INmorphCheckboxOption {
|
|
|
165
165
|
modelValue?: boolean;
|
|
166
166
|
label?: string;
|
|
167
167
|
design?: NmorphCheckboxDesignType;
|
|
168
|
+
height?: keyof typeof NmorphComponentHeight;
|
|
168
169
|
}
|
|
169
170
|
export type NmorphCheckboxDesignType = 'button' | 'checkbox';
|
|
170
171
|
export type NmorphCheckboxGroupSelectedValueInjectionType = Ref<string[]>;
|
|
@@ -174,6 +175,7 @@ export interface INmorphRadioOption {
|
|
|
174
175
|
label?: string;
|
|
175
176
|
value: string;
|
|
176
177
|
tabindex?: number;
|
|
178
|
+
height?: keyof typeof NmorphComponentHeight;
|
|
177
179
|
}
|
|
178
180
|
export declare enum NmorphRadioStyleType {
|
|
179
181
|
'radio-style' = "radio-style",
|