@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.
- package/README.md +0 -0
- package/dist/fonts/Inter-Bold.woff +0 -0
- package/dist/fonts/Inter-Bold.woff2 +0 -0
- package/dist/fonts/Inter-Regular.woff +0 -0
- package/dist/fonts/Inter-Regular.woff2 +0 -0
- package/dist/fonts/Inter-SemiBold.woff +0 -0
- package/dist/fonts/Inter-SemiBold.woff2 +0 -0
- package/dist/index.es.js +4159 -0
- package/dist/style.css +1 -0
- package/dist/styles/base/_animation.scss +19 -0
- package/dist/styles/base/_border-radius.scss +10 -0
- package/dist/styles/base/_colors.scss +35 -0
- package/dist/styles/base/_common-mixins.scss +39 -0
- package/dist/styles/base/_dimensions.scss +10 -0
- package/dist/styles/base/_histoire.scss +8 -0
- package/dist/styles/base/_normalize.scss +388 -0
- package/dist/styles/base/_theme-mixin.scss +32 -0
- package/dist/styles/base/_transition.scss +6 -0
- package/dist/styles/base/_typography.scss +147 -0
- package/dist/styles/base/style.scss +13 -0
- package/dist/styles/main.scss +4 -0
- package/dist/styles/packages/style.scss +0 -0
- package/dist/types/components/inputs/checkbox/nmorph-checkbox/NmorphCheckbox.vue.d.ts +48 -0
- package/dist/types/components/inputs/checkbox/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +72 -0
- package/dist/types/components/inputs/checkbox/types.d.ts +11 -0
- package/dist/types/components/inputs/common/NmorphValidationIcon.vue.d.ts +30 -0
- package/dist/types/components/inputs/nmorph-file-upload/NmorphFileUpload.vue.d.ts +55 -0
- package/dist/types/components/inputs/nmorph-file-upload/types.d.ts +57 -0
- package/dist/types/components/inputs/nmorph-number-input/NmorphNumberInput.vue.d.ts +76 -0
- package/dist/types/components/inputs/nmorph-select/NmorphSelect.vue.d.ts +65 -0
- package/dist/types/components/inputs/nmorph-select-option/NmorphSelectOption.vue.d.ts +48 -0
- package/dist/types/components/inputs/nmorph-select-option/types/index.d.ts +1 -0
- package/dist/types/components/inputs/nmorph-slider/NmorphSlider.vue.d.ts +56 -0
- package/dist/types/components/inputs/nmorph-switch/NmorphSwitch.vue.d.ts +52 -0
- package/dist/types/components/inputs/nmorph-text-input/NmorphTextInput.vue.d.ts +79 -0
- package/dist/types/components/inputs/radio/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +72 -0
- package/dist/types/components/inputs/radio/types.d.ts +9 -0
- package/dist/types/components/nmorph-button/NmorphButton.vue.d.ts +79 -0
- package/dist/types/components/nmorph-button/types.d.ts +9 -0
- package/dist/types/components/nmorph-card/NmorphCard.vue.d.ts +39 -0
- package/dist/types/components/nmorph-carousel/NmorphCarousel.vue.d.ts +3 -0
- package/dist/types/components/nmorph-error-box/NmorphErrorBox.vue.d.ts +34 -0
- package/dist/types/components/nmorph-icon/NmorphIcon.vue.d.ts +53 -0
- package/dist/types/components/nmorph-icon/NmorphIconsMap.d.ts +4 -0
- package/dist/types/components/nmorph-icon/types.d.ts +7 -0
- package/dist/types/components/nmorph-image/NmorphImage.vue.d.ts +59 -0
- package/dist/types/components/nmorph-image-preview/NmorphImagePreview.vue.d.ts +56 -0
- package/dist/types/components/nmorph-link/NmorphLink.vue.d.ts +69 -0
- package/dist/types/components/nmorph-overlay/NmorphOverlay.vue.d.ts +44 -0
- package/dist/types/components/nmorph-tag/NmorphTag.vue.d.ts +44 -0
- package/dist/types/components/nmorph-tooltip/NmorphTooltip.vue.d.ts +68 -0
- package/dist/types/components.d.ts +22 -0
- package/dist/types/histoire.setup.d.ts +2 -0
- package/dist/types/hooks/useValidation.d.ts +55 -0
- package/dist/types/main.d.ts +7 -0
- package/dist/types/plugins/i18n.d.ts +2 -0
- package/dist/types/types/common.enums.d.ts +46 -0
- package/dist/types/utils/create-modifiers.d.ts +1 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +121 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { IconName } from '../nmorph-icon/types';
|
|
3
|
+
import { Color } from '../../types/common.enums';
|
|
4
|
+
declare enum LinkTarget {
|
|
5
|
+
self = "_self",
|
|
6
|
+
blank = "_blank",
|
|
7
|
+
parent = "_parent",
|
|
8
|
+
top = "_top"
|
|
9
|
+
}
|
|
10
|
+
interface IProps {
|
|
11
|
+
color?: keyof typeof Color;
|
|
12
|
+
underline?: boolean;
|
|
13
|
+
href?: string;
|
|
14
|
+
text?: string;
|
|
15
|
+
iconName?: IconName;
|
|
16
|
+
target?: keyof typeof LinkTarget;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
|
|
20
|
+
color: Color;
|
|
21
|
+
href: string;
|
|
22
|
+
underline: boolean;
|
|
23
|
+
iconName: string;
|
|
24
|
+
text: string;
|
|
25
|
+
target: string;
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
|
|
28
|
+
color: Color;
|
|
29
|
+
href: string;
|
|
30
|
+
underline: boolean;
|
|
31
|
+
iconName: string;
|
|
32
|
+
text: string;
|
|
33
|
+
target: string;
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
}>>>, {
|
|
36
|
+
disabled: boolean;
|
|
37
|
+
text: string;
|
|
38
|
+
color: "accent" | "success" | "error" | "warning";
|
|
39
|
+
target: "self" | "blank" | "parent" | "top";
|
|
40
|
+
underline: boolean;
|
|
41
|
+
href: string;
|
|
42
|
+
iconName: IconName;
|
|
43
|
+
}, {}>, {
|
|
44
|
+
prepend?(_: {}): any;
|
|
45
|
+
default?(_: {}): any;
|
|
46
|
+
}>;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
49
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
50
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
51
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
52
|
+
} : {
|
|
53
|
+
type: PropType<T[K]>;
|
|
54
|
+
required: true;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
type __VLS_WithDefaults<P, D> = {
|
|
58
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
59
|
+
default: D[K];
|
|
60
|
+
}> : P[K];
|
|
61
|
+
};
|
|
62
|
+
type __VLS_Prettify<T> = {
|
|
63
|
+
[K in keyof T]: T[K];
|
|
64
|
+
} & {};
|
|
65
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
66
|
+
new (): {
|
|
67
|
+
$slots: S;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
interface IProps {
|
|
3
|
+
show?: boolean;
|
|
4
|
+
outsideClickEmitEvent?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
|
|
7
|
+
show: boolean;
|
|
8
|
+
outsideClickEmitEvent: boolean;
|
|
9
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
|
+
"on-outside-click": () => void;
|
|
11
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
|
|
12
|
+
show: boolean;
|
|
13
|
+
outsideClickEmitEvent: boolean;
|
|
14
|
+
}>>> & {
|
|
15
|
+
"onOn-outside-click"?: (() => any) | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
show: boolean;
|
|
18
|
+
outsideClickEmitEvent: boolean;
|
|
19
|
+
}, {}>, {
|
|
20
|
+
default?(_: {}): any;
|
|
21
|
+
}>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
25
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
+
} : {
|
|
28
|
+
type: PropType<T[K]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
type __VLS_WithDefaults<P, D> = {
|
|
33
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
34
|
+
default: D[K];
|
|
35
|
+
}> : P[K];
|
|
36
|
+
};
|
|
37
|
+
type __VLS_Prettify<T> = {
|
|
38
|
+
[K in keyof T]: T[K];
|
|
39
|
+
} & {};
|
|
40
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { ControlComponentHeight } from '../../types/common.enums';
|
|
3
|
+
interface IProps {
|
|
4
|
+
value: string;
|
|
5
|
+
text: string;
|
|
6
|
+
removable?: boolean;
|
|
7
|
+
height?: keyof typeof ControlComponentHeight;
|
|
8
|
+
transparent?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
|
|
11
|
+
height: string;
|
|
12
|
+
removable: boolean;
|
|
13
|
+
transparent: boolean;
|
|
14
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
15
|
+
close: (value: string) => void;
|
|
16
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
|
|
17
|
+
height: string;
|
|
18
|
+
removable: boolean;
|
|
19
|
+
transparent: boolean;
|
|
20
|
+
}>>> & {
|
|
21
|
+
onClose?: ((value: string) => any) | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
height: "default" | "thick" | "thin";
|
|
24
|
+
transparent: boolean;
|
|
25
|
+
removable: boolean;
|
|
26
|
+
}, {}>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
29
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
30
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
31
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
32
|
+
} : {
|
|
33
|
+
type: PropType<T[K]>;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
type __VLS_WithDefaults<P, D> = {
|
|
38
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
39
|
+
default: D[K];
|
|
40
|
+
}> : P[K];
|
|
41
|
+
};
|
|
42
|
+
type __VLS_Prettify<T> = {
|
|
43
|
+
[K in keyof T]: T[K];
|
|
44
|
+
} & {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
declare enum TooltipPosition {
|
|
3
|
+
left = "left",
|
|
4
|
+
right = "right",
|
|
5
|
+
top = "top",
|
|
6
|
+
bottom = "bottom"
|
|
7
|
+
}
|
|
8
|
+
type Placement = keyof typeof TooltipPosition;
|
|
9
|
+
interface ForceCoordinate {
|
|
10
|
+
x?: string;
|
|
11
|
+
y?: string;
|
|
12
|
+
}
|
|
13
|
+
interface IProps {
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
text?: string;
|
|
16
|
+
position?: Placement;
|
|
17
|
+
forceShow?: boolean;
|
|
18
|
+
forceCoordinate?: ForceCoordinate | null;
|
|
19
|
+
blockPosition?: boolean;
|
|
20
|
+
}
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
text: string;
|
|
24
|
+
position: string;
|
|
25
|
+
forceShow: boolean;
|
|
26
|
+
forceCoordinate: null;
|
|
27
|
+
blockPosition: boolean;
|
|
28
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
text: string;
|
|
31
|
+
position: string;
|
|
32
|
+
forceShow: boolean;
|
|
33
|
+
forceCoordinate: null;
|
|
34
|
+
blockPosition: boolean;
|
|
35
|
+
}>>>, {
|
|
36
|
+
disabled: boolean;
|
|
37
|
+
text: string;
|
|
38
|
+
forceShow: boolean;
|
|
39
|
+
forceCoordinate: ForceCoordinate | null;
|
|
40
|
+
blockPosition: boolean;
|
|
41
|
+
position: "right" | "left" | "top" | "bottom";
|
|
42
|
+
}, {}>, {
|
|
43
|
+
default?(_: {}): any;
|
|
44
|
+
content?(_: {}): any;
|
|
45
|
+
}>;
|
|
46
|
+
export default _default;
|
|
47
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
48
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
49
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
50
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
51
|
+
} : {
|
|
52
|
+
type: PropType<T[K]>;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
type __VLS_WithDefaults<P, D> = {
|
|
57
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
58
|
+
default: D[K];
|
|
59
|
+
}> : P[K];
|
|
60
|
+
};
|
|
61
|
+
type __VLS_Prettify<T> = {
|
|
62
|
+
[K in keyof T]: T[K];
|
|
63
|
+
} & {};
|
|
64
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
65
|
+
new (): {
|
|
66
|
+
$slots: S;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import NmorphTextInput from './components/inputs/nmorph-text-input/NmorphTextInput.vue';
|
|
2
|
+
import NmorphCheckbox from './components/inputs/checkbox/nmorph-checkbox/NmorphCheckbox.vue';
|
|
3
|
+
import NmorphCheckboxGroup from './components/inputs/checkbox/nmorph-checkbox-group/NmorphCheckboxGroup.vue';
|
|
4
|
+
import NmorphRadioGroup from './components/inputs/radio/nmorph-radio-group/NmorphRadioGroup.vue';
|
|
5
|
+
import NmorphNumberInput from './components/inputs/nmorph-number-input/NmorphNumberInput.vue';
|
|
6
|
+
import NmorphSlider from './components/inputs/nmorph-slider/NmorphSlider.vue';
|
|
7
|
+
import NmorphSwitch from './components/inputs/nmorph-switch/NmorphSwitch.vue';
|
|
8
|
+
import NmorphSelect from './components/inputs/nmorph-select/NmorphSelect.vue';
|
|
9
|
+
import NmorphSelectOption from './components/inputs/nmorph-select-option/NmorphSelectOption.vue';
|
|
10
|
+
import NmorphFileUpload from './components/inputs/nmorph-file-upload/NmorphFileUpload.vue';
|
|
11
|
+
import NmorphIcon from './components/nmorph-icon/NmorphIcon.vue';
|
|
12
|
+
import NmorphButton from './components/nmorph-button/NmorphButton.vue';
|
|
13
|
+
import NmorphCard from './components/nmorph-card/NmorphCard.vue';
|
|
14
|
+
import NmorphLink from './components/nmorph-link/NmorphLink.vue';
|
|
15
|
+
import NmorphErrorBox from './components/nmorph-error-box/NmorphErrorBox.vue';
|
|
16
|
+
import NmorphTooltip from './components/nmorph-tooltip/NmorphTooltip.vue';
|
|
17
|
+
import NmorphTag from './components/nmorph-tag/NmorphTag.vue';
|
|
18
|
+
import NmorphOverlay from './components/nmorph-overlay/NmorphOverlay.vue';
|
|
19
|
+
import NmorphImage from './components/nmorph-image/NmorphImage.vue';
|
|
20
|
+
import NmorphImagePreview from './components/nmorph-image-preview/NmorphImagePreview.vue';
|
|
21
|
+
import NmorphCarousel from './components/nmorph-carousel/NmorphCarousel.vue';
|
|
22
|
+
export { NmorphTextInput, NmorphImage, NmorphIcon, NmorphButton, NmorphCheckbox, NmorphRadioGroup, NmorphCheckboxGroup, NmorphCarousel, NmorphNumberInput, NmorphSwitch, NmorphSelect, NmorphSelectOption, NmorphFileUpload, NmorphCard, NmorphLink, NmorphSlider, NmorphErrorBox, NmorphTooltip, NmorphOverlay, NmorphImagePreview, NmorphTag, };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
export declare const enum CheckboxValidationType {
|
|
3
|
+
'contains-one' = "contains-one",
|
|
4
|
+
'not-contains' = "not-contains",
|
|
5
|
+
'full-equal' = "full-equal"
|
|
6
|
+
}
|
|
7
|
+
export declare enum NumberCompareOperator {
|
|
8
|
+
'eq' = "eq",
|
|
9
|
+
'gte' = "gte",
|
|
10
|
+
'lte' = "lte",
|
|
11
|
+
'gt' = "gt",
|
|
12
|
+
'lt' = "lt"
|
|
13
|
+
}
|
|
14
|
+
export interface IRule {
|
|
15
|
+
error: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ICheckboxGroupValidationRule extends IRule {
|
|
18
|
+
checkboxCompareType: keyof typeof CheckboxValidationType;
|
|
19
|
+
value: string[];
|
|
20
|
+
}
|
|
21
|
+
export interface ITextValidationRule extends IRule {
|
|
22
|
+
pattern: RegExp;
|
|
23
|
+
}
|
|
24
|
+
export interface INumberValidationRule extends IRule {
|
|
25
|
+
operator: keyof typeof NumberCompareOperator;
|
|
26
|
+
value: number;
|
|
27
|
+
}
|
|
28
|
+
export interface IRadioGroupValidationRule extends IRule {
|
|
29
|
+
radioCompareType: 'equal' | 'not-equal';
|
|
30
|
+
value: string;
|
|
31
|
+
}
|
|
32
|
+
interface IUseTextValidationPayload {
|
|
33
|
+
inputValue: Ref<string>;
|
|
34
|
+
rules: ITextValidationRule[];
|
|
35
|
+
}
|
|
36
|
+
interface IUseNumberValidationPayload {
|
|
37
|
+
inputValue: Ref<number>;
|
|
38
|
+
rules: INumberValidationRule[];
|
|
39
|
+
}
|
|
40
|
+
interface IUseCheckboxGroupValidationPayload {
|
|
41
|
+
inputValue: Ref<string[]>;
|
|
42
|
+
rules: ICheckboxGroupValidationRule[];
|
|
43
|
+
}
|
|
44
|
+
interface IUseRadioGroupValidationPayload {
|
|
45
|
+
inputValue: Ref<string>;
|
|
46
|
+
rules: IRadioGroupValidationRule[];
|
|
47
|
+
}
|
|
48
|
+
type IUseValidationPayload = IUseTextValidationPayload | IUseNumberValidationPayload | IUseCheckboxGroupValidationPayload | IUseRadioGroupValidationPayload;
|
|
49
|
+
export declare const useValidation: ({ inputValue, rules }: IUseValidationPayload) => {
|
|
50
|
+
touched: Ref<boolean>;
|
|
51
|
+
showValidation: ComputedRef<boolean>;
|
|
52
|
+
valid: ComputedRef<boolean>;
|
|
53
|
+
errors: Ref<string[]>;
|
|
54
|
+
};
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare enum ControlComponentHeight {
|
|
2
|
+
thick = "thick",
|
|
3
|
+
default = "default",
|
|
4
|
+
thin = "thin"
|
|
5
|
+
}
|
|
6
|
+
export declare enum ComponentDirection {
|
|
7
|
+
row = "row",
|
|
8
|
+
column = "column"
|
|
9
|
+
}
|
|
10
|
+
export interface CommonInputProps {
|
|
11
|
+
height?: keyof typeof ControlComponentHeight;
|
|
12
|
+
fill?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare enum ShadowType {
|
|
16
|
+
inset = "inset",
|
|
17
|
+
outset = "outset",
|
|
18
|
+
combined = "combined"
|
|
19
|
+
}
|
|
20
|
+
export declare enum Color {
|
|
21
|
+
accent = "accent",
|
|
22
|
+
success = "success",
|
|
23
|
+
error = "error",
|
|
24
|
+
warning = "warning"
|
|
25
|
+
}
|
|
26
|
+
export declare enum NmorphIconList {
|
|
27
|
+
'eye' = "eye",
|
|
28
|
+
'eye-blocked' = "eye-blocked",
|
|
29
|
+
'success' = "success",
|
|
30
|
+
'error' = "error",
|
|
31
|
+
'plus' = "plus",
|
|
32
|
+
'minus' = "minus",
|
|
33
|
+
'loader' = "loader",
|
|
34
|
+
'chevron-down' = "chevron-down",
|
|
35
|
+
'audio' = "audio",
|
|
36
|
+
'archive' = "archive",
|
|
37
|
+
'video' = "video",
|
|
38
|
+
'image' = "image",
|
|
39
|
+
'doc' = "doc",
|
|
40
|
+
'enlarge' = "enlarge",
|
|
41
|
+
'shrink' = "shrink",
|
|
42
|
+
'rotate-right' = "rotate-right",
|
|
43
|
+
'rotate-left' = "rotate-left",
|
|
44
|
+
'zoom-in' = "zoom-in",
|
|
45
|
+
'zoom-out' = "zoom-out"
|
|
46
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createModifiers: (block: string, modifiers: string[]) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './create-modifiers';
|
package/package.json
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nmorph/nmorph-ui-kit",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"private": false,
|
|
5
|
+
"version": "0.0.1",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": "18.13.0",
|
|
9
|
+
"npm": "8.19.3"
|
|
10
|
+
},
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"main": "./dist/index.umd.js",
|
|
13
|
+
"module": "./dist/index.es.js",
|
|
14
|
+
"style": "./dist/style.css",
|
|
15
|
+
"sideEffects": [
|
|
16
|
+
"*.css"
|
|
17
|
+
],
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"tsconfig.base.json",
|
|
21
|
+
".eslintrc.base.cjs",
|
|
22
|
+
".stylelintrc.base.cjs",
|
|
23
|
+
".prettierrc.base.cjs"
|
|
24
|
+
],
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"import": {
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"default": "./dist/index.es.js"
|
|
30
|
+
},
|
|
31
|
+
"require": "./dist/index.umd.js"
|
|
32
|
+
},
|
|
33
|
+
"./dist/index.d.ts": "./dist/index.d.ts",
|
|
34
|
+
"./dist/style.css": "./dist/style.css",
|
|
35
|
+
"./dist/styles/abstracts/_variables.scss": "./dist/styles/abstracts/_variables.scss",
|
|
36
|
+
"./dist/styles/abstracts/_mixins.scss": "./dist/styles/abstracts/_mixins.scss",
|
|
37
|
+
"./dist/styles/abstracts/_functions.scss": "./dist/styles/abstracts/_functions.scss",
|
|
38
|
+
"./dist/styles/main.scss": "./dist/styles/main.scss"
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "vue-tsc && vite build",
|
|
42
|
+
"lint:es:check": "eslint --ext .js,.ts,.vue --ignore-path .gitignore src/",
|
|
43
|
+
"lint:es": "eslint --ext .js,.ts,.vue --ignore-path .gitignore --fix src/",
|
|
44
|
+
"lint:style:check": "stylelint ./src/**/*.{scss,vue}",
|
|
45
|
+
"lint:style": "stylelint ./src/**/*.{scss,vue} --fix",
|
|
46
|
+
"lint:check": "npm run lint:es:check && npm run lint:style:check",
|
|
47
|
+
"lint": "npm run lint:es && npm run lint:style",
|
|
48
|
+
"dev:type": "vue-tsc -p ./tsconfig.vue.json",
|
|
49
|
+
"prepare": "cd .. && husky install ./library/.husky",
|
|
50
|
+
"validate-branch-name": "node .husky/validate-branch-name.cjs",
|
|
51
|
+
"validate-commit-msg": "node .husky/validate-commit-msg.cjs",
|
|
52
|
+
"story:dev": "histoire dev",
|
|
53
|
+
"story:build": "histoire build",
|
|
54
|
+
"story:preview": "histoire preview",
|
|
55
|
+
"test:dev": "npx vitest"
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"@element-plus/icons-vue": "^2.3.1",
|
|
59
|
+
"@faker-js/faker": "^8.3.1",
|
|
60
|
+
"@types/vue-router": "^2.0.0",
|
|
61
|
+
"element-plus": "^2.5.0",
|
|
62
|
+
"libphonenumber-js": "^1.10.53",
|
|
63
|
+
"lodash": "^4.17.21",
|
|
64
|
+
"maska": "^2.1.11",
|
|
65
|
+
"maz-ui": "^3.31.5",
|
|
66
|
+
"normalize.css": "^8.0.1",
|
|
67
|
+
"pinia": "^2.1.7",
|
|
68
|
+
"uuid": "^9.0.1",
|
|
69
|
+
"vue": "^3.4.7",
|
|
70
|
+
"vue-i18n": "^9.9.0",
|
|
71
|
+
"vue-template-es2015-compiler": "^1.9.1",
|
|
72
|
+
"vuescroll": "^5.1.1"
|
|
73
|
+
},
|
|
74
|
+
"devDependencies": {
|
|
75
|
+
"@histoire/plugin-vue": "^0.17.6",
|
|
76
|
+
"@types/js-cookie": "^3.0.6",
|
|
77
|
+
"@types/node": "^20.10.8",
|
|
78
|
+
"@types/uuid": "^9.0.7",
|
|
79
|
+
"@typescript-eslint/eslint-plugin": "^6.18.1",
|
|
80
|
+
"@typescript-eslint/parser": "^6.18.1",
|
|
81
|
+
"@vitejs/plugin-vue": "^4.4.0",
|
|
82
|
+
"@vue/test-utils": "^2.4.3",
|
|
83
|
+
"ajv": "^8.12.0",
|
|
84
|
+
"eslint": "^8.56.0",
|
|
85
|
+
"eslint-config-prettier": "^9.1.0",
|
|
86
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
87
|
+
"eslint-plugin-storybook": "^0.6.15",
|
|
88
|
+
"eslint-plugin-vue": "^9.19.2",
|
|
89
|
+
"happy-dom": "^13.1.0",
|
|
90
|
+
"histoire": "^0.17.6",
|
|
91
|
+
"husky": "^8.0.3",
|
|
92
|
+
"js-cookie": "^3.0.5",
|
|
93
|
+
"mitt": "^3.0.1",
|
|
94
|
+
"prettier": "^3.1.1",
|
|
95
|
+
"sass": "^1.69.7",
|
|
96
|
+
"stylelint": "^16.1.0",
|
|
97
|
+
"stylelint-config-idiomatic-order": "^10.0.0",
|
|
98
|
+
"stylelint-config-rational-order": "^0.1.2",
|
|
99
|
+
"stylelint-config-recommended-scss": "^14.0.0",
|
|
100
|
+
"stylelint-config-recommended-vue": "^1.5.0",
|
|
101
|
+
"stylelint-config-standard": "^36.0.0",
|
|
102
|
+
"stylelint-config-standard-scss": "^13.0.0",
|
|
103
|
+
"stylelint-order": "^6.0.4",
|
|
104
|
+
"stylelint-prettier": "^5.0.0",
|
|
105
|
+
"stylelint-scss": "^6.0.0",
|
|
106
|
+
"typescript": "^5.3.3",
|
|
107
|
+
"vite": "^4.5.0",
|
|
108
|
+
"vite-plugin-dts": "^3.7.0",
|
|
109
|
+
"vite-plugin-static-copy": "^0.17.1",
|
|
110
|
+
"vite-svg-loader": "^5.1.0",
|
|
111
|
+
"vitest": "^1.2.0",
|
|
112
|
+
"vue-eslint-parser": "^9.4.0",
|
|
113
|
+
"vue-final-modal": "^4.5.3",
|
|
114
|
+
"vue-tsc": "^1.8.27"
|
|
115
|
+
},
|
|
116
|
+
"peerDependencies": {
|
|
117
|
+
"ajv": "^8.12.0",
|
|
118
|
+
"js-cookie": "^3.0.5",
|
|
119
|
+
"vue-final-modal": "^4.4.5"
|
|
120
|
+
}
|
|
121
|
+
}
|