@nmorph/nmorph-ui-kit 0.0.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.
Files changed (60) hide show
  1. package/README.md +0 -0
  2. package/dist/fonts/Inter-Bold.woff +0 -0
  3. package/dist/fonts/Inter-Bold.woff2 +0 -0
  4. package/dist/fonts/Inter-Regular.woff +0 -0
  5. package/dist/fonts/Inter-Regular.woff2 +0 -0
  6. package/dist/fonts/Inter-SemiBold.woff +0 -0
  7. package/dist/fonts/Inter-SemiBold.woff2 +0 -0
  8. package/dist/index.es.js +4159 -0
  9. package/dist/style.css +1 -0
  10. package/dist/styles/base/_animation.scss +19 -0
  11. package/dist/styles/base/_border-radius.scss +10 -0
  12. package/dist/styles/base/_colors.scss +35 -0
  13. package/dist/styles/base/_common-mixins.scss +39 -0
  14. package/dist/styles/base/_dimensions.scss +10 -0
  15. package/dist/styles/base/_histoire.scss +8 -0
  16. package/dist/styles/base/_normalize.scss +388 -0
  17. package/dist/styles/base/_theme-mixin.scss +32 -0
  18. package/dist/styles/base/_transition.scss +6 -0
  19. package/dist/styles/base/_typography.scss +147 -0
  20. package/dist/styles/base/style.scss +13 -0
  21. package/dist/styles/main.scss +4 -0
  22. package/dist/styles/packages/style.scss +0 -0
  23. package/dist/types/components/inputs/checkbox/nmorph-checkbox/NmorphCheckbox.vue.d.ts +48 -0
  24. package/dist/types/components/inputs/checkbox/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +72 -0
  25. package/dist/types/components/inputs/checkbox/types.d.ts +11 -0
  26. package/dist/types/components/inputs/common/NmorphValidationIcon.vue.d.ts +30 -0
  27. package/dist/types/components/inputs/nmorph-file-upload/NmorphFileUpload.vue.d.ts +55 -0
  28. package/dist/types/components/inputs/nmorph-file-upload/types.d.ts +57 -0
  29. package/dist/types/components/inputs/nmorph-number-input/NmorphNumberInput.vue.d.ts +76 -0
  30. package/dist/types/components/inputs/nmorph-select/NmorphSelect.vue.d.ts +65 -0
  31. package/dist/types/components/inputs/nmorph-select-option/NmorphSelectOption.vue.d.ts +48 -0
  32. package/dist/types/components/inputs/nmorph-select-option/types/index.d.ts +1 -0
  33. package/dist/types/components/inputs/nmorph-slider/NmorphSlider.vue.d.ts +56 -0
  34. package/dist/types/components/inputs/nmorph-switch/NmorphSwitch.vue.d.ts +52 -0
  35. package/dist/types/components/inputs/nmorph-text-input/NmorphTextInput.vue.d.ts +79 -0
  36. package/dist/types/components/inputs/radio/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +72 -0
  37. package/dist/types/components/inputs/radio/types.d.ts +9 -0
  38. package/dist/types/components/nmorph-button/NmorphButton.vue.d.ts +79 -0
  39. package/dist/types/components/nmorph-button/types.d.ts +9 -0
  40. package/dist/types/components/nmorph-card/NmorphCard.vue.d.ts +39 -0
  41. package/dist/types/components/nmorph-carousel/NmorphCarousel.vue.d.ts +3 -0
  42. package/dist/types/components/nmorph-error-box/NmorphErrorBox.vue.d.ts +34 -0
  43. package/dist/types/components/nmorph-icon/NmorphIcon.vue.d.ts +53 -0
  44. package/dist/types/components/nmorph-icon/NmorphIconsMap.d.ts +4 -0
  45. package/dist/types/components/nmorph-icon/types.d.ts +7 -0
  46. package/dist/types/components/nmorph-image/NmorphImage.vue.d.ts +59 -0
  47. package/dist/types/components/nmorph-image-preview/NmorphImagePreview.vue.d.ts +56 -0
  48. package/dist/types/components/nmorph-link/NmorphLink.vue.d.ts +69 -0
  49. package/dist/types/components/nmorph-overlay/NmorphOverlay.vue.d.ts +44 -0
  50. package/dist/types/components/nmorph-tag/NmorphTag.vue.d.ts +44 -0
  51. package/dist/types/components/nmorph-tooltip/NmorphTooltip.vue.d.ts +68 -0
  52. package/dist/types/components.d.ts +22 -0
  53. package/dist/types/histoire.setup.d.ts +2 -0
  54. package/dist/types/hooks/useValidation.d.ts +55 -0
  55. package/dist/types/main.d.ts +7 -0
  56. package/dist/types/plugins/i18n.d.ts +2 -0
  57. package/dist/types/types/common.enums.d.ts +46 -0
  58. package/dist/types/utils/create-modifiers.d.ts +1 -0
  59. package/dist/types/utils/index.d.ts +1 -0
  60. package/package.json +121 -0
@@ -0,0 +1,56 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { CommonInputProps } from '../../../types/common.enums';
3
+ interface IProps extends Omit<CommonInputProps, 'height'> {
4
+ modelValue?: number;
5
+ max?: number;
6
+ min?: number;
7
+ step?: number;
8
+ showTooltip?: boolean;
9
+ }
10
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
11
+ modelValue: number;
12
+ max: number;
13
+ min: number;
14
+ step: number;
15
+ disabled: boolean;
16
+ fill: boolean;
17
+ showTooltip: boolean;
18
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
19
+ "update:modelValue": (val: number) => void;
20
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
21
+ modelValue: number;
22
+ max: number;
23
+ min: number;
24
+ step: number;
25
+ disabled: boolean;
26
+ fill: boolean;
27
+ showTooltip: boolean;
28
+ }>>> & {
29
+ "onUpdate:modelValue"?: ((val: number) => any) | undefined;
30
+ }, {
31
+ disabled: boolean;
32
+ modelValue: number;
33
+ fill: boolean;
34
+ max: number;
35
+ min: number;
36
+ step: number;
37
+ showTooltip: boolean;
38
+ }, {}>;
39
+ export default _default;
40
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
41
+ type __VLS_TypePropsToRuntimeProps<T> = {
42
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
43
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
44
+ } : {
45
+ type: PropType<T[K]>;
46
+ required: true;
47
+ };
48
+ };
49
+ type __VLS_WithDefaults<P, D> = {
50
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
51
+ default: D[K];
52
+ }> : P[K];
53
+ };
54
+ type __VLS_Prettify<T> = {
55
+ [K in keyof T]: T[K];
56
+ } & {};
@@ -0,0 +1,52 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { CommonInputProps } from '../../../types/common.enums';
3
+ interface IProps extends Omit<CommonInputProps, 'fill'> {
4
+ modelValue?: boolean;
5
+ loading?: boolean;
6
+ }
7
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
8
+ modelValue: boolean;
9
+ loading: boolean;
10
+ disabled: boolean;
11
+ height: string;
12
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
13
+ "update:modelValue": (val: boolean) => void;
14
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
15
+ modelValue: boolean;
16
+ loading: boolean;
17
+ disabled: boolean;
18
+ height: string;
19
+ }>>> & {
20
+ "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
21
+ }, {
22
+ disabled: boolean;
23
+ modelValue: boolean;
24
+ height: "default" | "thick" | "thin";
25
+ loading: boolean;
26
+ }, {}>, {
27
+ "thumb-on"?(_: {}): any;
28
+ "thumb-off"?(_: {}): any;
29
+ }>;
30
+ export default _default;
31
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
32
+ type __VLS_TypePropsToRuntimeProps<T> = {
33
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
34
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
35
+ } : {
36
+ type: PropType<T[K]>;
37
+ required: true;
38
+ };
39
+ };
40
+ type __VLS_WithDefaults<P, D> = {
41
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
42
+ default: D[K];
43
+ }> : P[K];
44
+ };
45
+ type __VLS_Prettify<T> = {
46
+ [K in keyof T]: T[K];
47
+ } & {};
48
+ type __VLS_WithTemplateSlots<T, S> = T & {
49
+ new (): {
50
+ $slots: S;
51
+ };
52
+ };
@@ -0,0 +1,79 @@
1
+ import { ITextValidationRule } from '../../../hooks/useValidation';
2
+ import { CommonInputProps, ControlComponentHeight } from '../../../types/common.enums';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, Ref } from 'vue';
4
+ interface IProps extends CommonInputProps {
5
+ placeholder?: string;
6
+ typePassword?: boolean;
7
+ modelValue?: string;
8
+ rules?: ITextValidationRule[];
9
+ showValidationIcon?: boolean;
10
+ staticErrorBoxSpace?: boolean;
11
+ }
12
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
13
+ placeholder: string;
14
+ label: string;
15
+ typePassword: boolean;
16
+ disabled: boolean;
17
+ modelValue: string;
18
+ rules: () => never[];
19
+ height: ControlComponentHeight;
20
+ showValidationIcon: boolean;
21
+ staticErrorBoxSpace: boolean;
22
+ fill: boolean;
23
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
24
+ "update:modelValue": (val: string) => void;
25
+ getDomRef: (el: Ref<HTMLElement | null>) => void;
26
+ focus: () => void;
27
+ blur: () => void;
28
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
29
+ placeholder: string;
30
+ label: string;
31
+ typePassword: boolean;
32
+ disabled: boolean;
33
+ modelValue: string;
34
+ rules: () => never[];
35
+ height: ControlComponentHeight;
36
+ showValidationIcon: boolean;
37
+ staticErrorBoxSpace: boolean;
38
+ fill: boolean;
39
+ }>>> & {
40
+ "onUpdate:modelValue"?: ((val: string) => any) | undefined;
41
+ onFocus?: (() => any) | undefined;
42
+ onBlur?: (() => any) | undefined;
43
+ onGetDomRef?: ((el: Ref<HTMLElement | null>) => any) | undefined;
44
+ }, {
45
+ disabled: boolean;
46
+ modelValue: string;
47
+ fill: boolean;
48
+ rules: ITextValidationRule[];
49
+ placeholder: string;
50
+ typePassword: boolean;
51
+ showValidationIcon: boolean;
52
+ staticErrorBoxSpace: boolean;
53
+ height: "default" | "thick" | "thin";
54
+ }, {}>, {
55
+ append?(_: {}): any;
56
+ }>;
57
+ export default _default;
58
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
59
+ type __VLS_TypePropsToRuntimeProps<T> = {
60
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
61
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
62
+ } : {
63
+ type: PropType<T[K]>;
64
+ required: true;
65
+ };
66
+ };
67
+ type __VLS_WithDefaults<P, D> = {
68
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
69
+ default: D[K];
70
+ }> : P[K];
71
+ };
72
+ type __VLS_Prettify<T> = {
73
+ [K in keyof T]: T[K];
74
+ } & {};
75
+ type __VLS_WithTemplateSlots<T, S> = T & {
76
+ new (): {
77
+ $slots: S;
78
+ };
79
+ };
@@ -0,0 +1,72 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { IRadioGroupValidationRule } from '../../../../hooks/useValidation';
3
+ import { CommonInputProps, ComponentDirection } from '../../../../types/common.enums';
4
+ import { IRadioOption, RadioStyleType } from '../types';
5
+ interface IProps extends CommonInputProps {
6
+ modelValue: string;
7
+ options: IRadioOption[];
8
+ styleType?: keyof typeof RadioStyleType;
9
+ direction?: keyof typeof ComponentDirection;
10
+ rules?: IRadioGroupValidationRule[];
11
+ showValidationIcon?: boolean;
12
+ staticErrorBoxSpace?: boolean;
13
+ }
14
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
15
+ modelValue: string;
16
+ styleType: string;
17
+ options: () => never[];
18
+ direction: string;
19
+ rules: () => never[];
20
+ showValidationIcon: boolean;
21
+ staticErrorBoxSpace: boolean;
22
+ fill: boolean;
23
+ label: string;
24
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
25
+ "update:modelValue": (val: string) => void;
26
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
27
+ modelValue: string;
28
+ styleType: string;
29
+ options: () => never[];
30
+ direction: string;
31
+ rules: () => never[];
32
+ showValidationIcon: boolean;
33
+ staticErrorBoxSpace: boolean;
34
+ fill: boolean;
35
+ label: string;
36
+ }>>> & {
37
+ "onUpdate:modelValue"?: ((val: string) => any) | undefined;
38
+ }, {
39
+ modelValue: string;
40
+ styleType: "button-style" | "radio-style";
41
+ fill: boolean;
42
+ rules: IRadioGroupValidationRule[];
43
+ showValidationIcon: boolean;
44
+ staticErrorBoxSpace: boolean;
45
+ options: IRadioOption[];
46
+ direction: "row" | "column";
47
+ }, {}>, {
48
+ default?(_: {}): any;
49
+ }>;
50
+ export default _default;
51
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
52
+ type __VLS_TypePropsToRuntimeProps<T> = {
53
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
54
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
55
+ } : {
56
+ type: PropType<T[K]>;
57
+ required: true;
58
+ };
59
+ };
60
+ type __VLS_WithDefaults<P, D> = {
61
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
62
+ default: D[K];
63
+ }> : P[K];
64
+ };
65
+ type __VLS_Prettify<T> = {
66
+ [K in keyof T]: T[K];
67
+ } & {};
68
+ type __VLS_WithTemplateSlots<T, S> = T & {
69
+ new (): {
70
+ $slots: S;
71
+ };
72
+ };
@@ -0,0 +1,9 @@
1
+ export interface IRadioOption {
2
+ disabled?: boolean;
3
+ label?: string;
4
+ value: string;
5
+ }
6
+ export declare enum RadioStyleType {
7
+ 'radio-style' = "radio-style",
8
+ 'button-style' = "button-style"
9
+ }
@@ -0,0 +1,79 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { ControlComponentHeight } from '../../types/common.enums';
3
+ import { NmorphButtonType, NmorphButtonStyle } from './types';
4
+ interface IProps {
5
+ type?: keyof typeof NmorphButtonType;
6
+ width?: string;
7
+ fill?: boolean;
8
+ text?: string;
9
+ disabled?: boolean;
10
+ loading?: boolean;
11
+ styleType?: keyof typeof NmorphButtonStyle;
12
+ height?: keyof typeof ControlComponentHeight;
13
+ bgTransparentOnHover?: boolean;
14
+ ripple?: boolean;
15
+ }
16
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
17
+ type: NmorphButtonType;
18
+ width: string;
19
+ fill: boolean;
20
+ text: string;
21
+ disabled: boolean;
22
+ loading: boolean;
23
+ styleType: NmorphButtonStyle;
24
+ height: ControlComponentHeight;
25
+ bgTransparentOnHover: boolean;
26
+ ripple: boolean;
27
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
28
+ click: () => void;
29
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
30
+ type: NmorphButtonType;
31
+ width: string;
32
+ fill: boolean;
33
+ text: string;
34
+ disabled: boolean;
35
+ loading: boolean;
36
+ styleType: NmorphButtonStyle;
37
+ height: ControlComponentHeight;
38
+ bgTransparentOnHover: boolean;
39
+ ripple: boolean;
40
+ }>>> & {
41
+ onClick?: (() => any) | undefined;
42
+ }, {
43
+ disabled: boolean;
44
+ styleType: "default" | "transparent";
45
+ fill: boolean;
46
+ type: "button" | "reset" | "submit";
47
+ text: string;
48
+ height: "default" | "thick" | "thin";
49
+ width: string;
50
+ bgTransparentOnHover: boolean;
51
+ loading: boolean;
52
+ ripple: boolean;
53
+ }, {}>, {
54
+ default?(_: {}): any;
55
+ append?(_: {}): any;
56
+ }>;
57
+ export default _default;
58
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
59
+ type __VLS_TypePropsToRuntimeProps<T> = {
60
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
61
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
62
+ } : {
63
+ type: PropType<T[K]>;
64
+ required: true;
65
+ };
66
+ };
67
+ type __VLS_WithDefaults<P, D> = {
68
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
69
+ default: D[K];
70
+ }> : P[K];
71
+ };
72
+ type __VLS_Prettify<T> = {
73
+ [K in keyof T]: T[K];
74
+ } & {};
75
+ type __VLS_WithTemplateSlots<T, S> = T & {
76
+ new (): {
77
+ $slots: S;
78
+ };
79
+ };
@@ -0,0 +1,9 @@
1
+ export declare enum NmorphButtonStyle {
2
+ default = "default",
3
+ transparent = "transparent"
4
+ }
5
+ export declare enum NmorphButtonType {
6
+ submit = "submit",
7
+ reset = "reset",
8
+ button = "button"
9
+ }
@@ -0,0 +1,39 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { ShadowType } from '../../types/common.enums';
3
+ interface IProps {
4
+ shadowType?: keyof typeof ShadowType;
5
+ }
6
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
7
+ shadowType: ShadowType;
8
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
9
+ shadowType: ShadowType;
10
+ }>>>, {
11
+ shadowType: "inset" | "outset" | "combined";
12
+ }, {}>, {
13
+ header?(_: {}): any;
14
+ default?(_: {}): any;
15
+ footer?(_: {}): any;
16
+ }>;
17
+ export default _default;
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToRuntimeProps<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
27
+ type __VLS_WithDefaults<P, D> = {
28
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
29
+ default: D[K];
30
+ }> : P[K];
31
+ };
32
+ type __VLS_Prettify<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
35
+ type __VLS_WithTemplateSlots<T, S> = T & {
36
+ new (): {
37
+ $slots: S;
38
+ };
39
+ };
@@ -0,0 +1,3 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
3
+ export default _default;
@@ -0,0 +1,34 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { ControlComponentHeight } from '../../types/common.enums';
3
+ interface IProps {
4
+ height?: keyof typeof ControlComponentHeight;
5
+ errors: string[];
6
+ }
7
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
8
+ height: ControlComponentHeight;
9
+ errors: () => never[];
10
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
11
+ height: ControlComponentHeight;
12
+ errors: () => never[];
13
+ }>>>, {
14
+ height: "default" | "thick" | "thin";
15
+ errors: string[];
16
+ }, {}>;
17
+ export default _default;
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToRuntimeProps<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
27
+ type __VLS_WithDefaults<P, D> = {
28
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
29
+ default: D[K];
30
+ }> : P[K];
31
+ };
32
+ type __VLS_Prettify<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
@@ -0,0 +1,53 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { IconName, IconSize } from './types';
3
+ interface IProps {
4
+ name?: IconName;
5
+ size?: keyof typeof IconSize;
6
+ width?: string;
7
+ height?: string;
8
+ path?: string;
9
+ }
10
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
11
+ name: string;
12
+ size: IconSize;
13
+ width: string;
14
+ height: string;
15
+ path: string;
16
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
17
+ name: string;
18
+ size: IconSize;
19
+ width: string;
20
+ height: string;
21
+ path: string;
22
+ }>>>, {
23
+ path: string;
24
+ name: IconName;
25
+ height: string;
26
+ size: "small" | "medium" | "large";
27
+ width: string;
28
+ }, {}>, {
29
+ default?(_: {}): any;
30
+ }>;
31
+ export default _default;
32
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
33
+ type __VLS_TypePropsToRuntimeProps<T> = {
34
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
35
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
36
+ } : {
37
+ type: PropType<T[K]>;
38
+ required: true;
39
+ };
40
+ };
41
+ type __VLS_WithDefaults<P, D> = {
42
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
43
+ default: D[K];
44
+ }> : P[K];
45
+ };
46
+ type __VLS_Prettify<T> = {
47
+ [K in keyof T]: T[K];
48
+ } & {};
49
+ type __VLS_WithTemplateSlots<T, S> = T & {
50
+ new (): {
51
+ $slots: S;
52
+ };
53
+ };
@@ -0,0 +1,4 @@
1
+ import { NmorphIconList } from '../../types/common.enums';
2
+ export declare const NmorphIconsMap: {
3
+ [key in NmorphIconList]: string;
4
+ };
@@ -0,0 +1,7 @@
1
+ import { NmorphIconList } from '../../types/common.enums';
2
+ export declare enum IconSize {
3
+ small = "small",
4
+ medium = "medium",
5
+ large = "large"
6
+ }
7
+ export type IconName = keyof typeof NmorphIconList | '';
@@ -0,0 +1,59 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ declare enum ImageFit {
3
+ fill = "fill",
4
+ contain = "contain",
5
+ cover = "cover",
6
+ none = "none",
7
+ 'scale-down' = "scale-down"
8
+ }
9
+ interface IProps {
10
+ src: string;
11
+ fit?: keyof typeof ImageFit;
12
+ alt?: string;
13
+ loadingText?: string;
14
+ loadFailedText?: string;
15
+ }
16
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
17
+ fit: string;
18
+ closeOnOutsideClick: boolean;
19
+ alt: string;
20
+ loadingText: string;
21
+ loadFailedText: string;
22
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
23
+ fit: string;
24
+ closeOnOutsideClick: boolean;
25
+ alt: string;
26
+ loadingText: string;
27
+ loadFailedText: string;
28
+ }>>>, {
29
+ fit: "fill" | "contain" | "cover" | "none" | "scale-down";
30
+ alt: string;
31
+ loadingText: string;
32
+ loadFailedText: string;
33
+ }, {}>, {
34
+ loading?(_: {}): any;
35
+ error?(_: {}): any;
36
+ }>;
37
+ export default _default;
38
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
39
+ type __VLS_TypePropsToRuntimeProps<T> = {
40
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
41
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
42
+ } : {
43
+ type: PropType<T[K]>;
44
+ required: true;
45
+ };
46
+ };
47
+ type __VLS_WithDefaults<P, D> = {
48
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
49
+ default: D[K];
50
+ }> : P[K];
51
+ };
52
+ type __VLS_Prettify<T> = {
53
+ [K in keyof T]: T[K];
54
+ } & {};
55
+ type __VLS_WithTemplateSlots<T, S> = T & {
56
+ new (): {
57
+ $slots: S;
58
+ };
59
+ };
@@ -0,0 +1,56 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ interface IProps {
3
+ show?: boolean;
4
+ alt?: string;
5
+ initialIndex?: number;
6
+ src: string | string[];
7
+ scaleStep?: number;
8
+ minScaleLevel?: number;
9
+ maxScaleLevel?: number;
10
+ }
11
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
12
+ alt: string;
13
+ show: boolean;
14
+ initialIndex: number;
15
+ scaleStep: number;
16
+ minScaleLevel: number;
17
+ maxScaleLevel: number;
18
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
19
+ "on-close": () => void;
20
+ "on-open": () => void;
21
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
22
+ alt: string;
23
+ show: boolean;
24
+ initialIndex: number;
25
+ scaleStep: number;
26
+ minScaleLevel: number;
27
+ maxScaleLevel: number;
28
+ }>>> & {
29
+ "onOn-close"?: (() => any) | undefined;
30
+ "onOn-open"?: (() => any) | undefined;
31
+ }, {
32
+ show: boolean;
33
+ alt: string;
34
+ initialIndex: number;
35
+ scaleStep: number;
36
+ minScaleLevel: number;
37
+ maxScaleLevel: number;
38
+ }, {}>;
39
+ export default _default;
40
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
41
+ type __VLS_TypePropsToRuntimeProps<T> = {
42
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
43
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
44
+ } : {
45
+ type: PropType<T[K]>;
46
+ required: true;
47
+ };
48
+ };
49
+ type __VLS_WithDefaults<P, D> = {
50
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
51
+ default: D[K];
52
+ }> : P[K];
53
+ };
54
+ type __VLS_Prettify<T> = {
55
+ [K in keyof T]: T[K];
56
+ } & {};