@nmorph/nmorph-ui-kit 1.1.2 → 1.1.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 +3701 -3574
- package/dist/index.umd.js +252 -220
- package/dist/src/components/basic/nmorph-icon/NmorphIcons.d.ts +1 -0
- package/dist/src/components/form/nmorph-checkbox/NmorphCheckbox.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts +2 -0
- package/dist/src/components/form/nmorph-form/types.d.ts +5 -0
- package/dist/src/components/form/nmorph-form/use-form-item-input.d.ts +8 -0
- package/dist/src/components/form/nmorph-select/NmorphSelect.vue.d.ts +0 -4
- package/dist/src/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue.d.ts +1 -0
- package/dist/src/types/index.d.ts +3 -0
- package/package.json +2 -2
|
@@ -95,6 +95,7 @@ export { default as NmorphIconFood } from '../../../assets/icons/food.svg';
|
|
|
95
95
|
export { default as NmorphIconForkSpoon } from '../../../assets/icons/fork-spoon.svg';
|
|
96
96
|
export { default as NmorphIconFullScreen } from '../../../assets/icons/full-screen.svg';
|
|
97
97
|
export { default as NmorphIconGoblet } from '../../../assets/icons/goblet-full.svg';
|
|
98
|
+
export { default as NmorphIconGoogle } from '../../../assets/icons/google.svg';
|
|
98
99
|
export { default as NmorphIconGoldMedal } from '../../../assets/icons/gold-medal.svg';
|
|
99
100
|
export { default as NmorphIconGoodsFilled } from '../../../assets/icons/goods-filled.svg';
|
|
100
101
|
export { default as NmorphIconGoods } from '../../../assets/icons/goods.svg';
|
|
@@ -7,8 +7,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphCheckbox
|
|
|
7
7
|
}, string, PublicProps, Readonly<INmorphCheckboxOption> & Readonly<{
|
|
8
8
|
"onUpdate:model-value"?: (val: boolean) => any;
|
|
9
9
|
}>, {
|
|
10
|
-
disabled: boolean;
|
|
11
10
|
id: string;
|
|
11
|
+
disabled: boolean;
|
|
12
12
|
label: string;
|
|
13
13
|
modelValue: boolean;
|
|
14
14
|
design: NmorphCheckboxDesignType;
|
package/dist/src/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts
CHANGED
|
@@ -2,12 +2,14 @@ import { NmorphComponentHeight } from '../../../../../types';
|
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
interface INmorphProps {
|
|
4
4
|
id: string;
|
|
5
|
+
name?: string;
|
|
5
6
|
height?: keyof typeof NmorphComponentHeight;
|
|
6
7
|
label?: string;
|
|
7
8
|
showValidationIcon?: boolean;
|
|
8
9
|
staticErrorBoxSpace?: boolean;
|
|
9
10
|
}
|
|
10
11
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
|
|
12
|
+
name: string;
|
|
11
13
|
height: "default" | "thick" | "thin";
|
|
12
14
|
label: string;
|
|
13
15
|
showValidationIcon: boolean;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { INmorphUseFormValidation, NmorphRulesType } from '../../../hooks';
|
|
2
|
+
import { Ref } from 'vue';
|
|
2
3
|
export type NmorphAvailableFormValueType = string | string[] | number | number[] | boolean | boolean[] | Date | Date[];
|
|
3
4
|
export type NmorphFormValueType = Record<string, {
|
|
4
5
|
value: NmorphAvailableFormValueType;
|
|
5
6
|
rules: NmorphRulesType;
|
|
6
7
|
}>;
|
|
7
8
|
export type NmorphFormValidationDataType = INmorphUseFormValidation;
|
|
9
|
+
export interface NmorphFormItemInputDataType {
|
|
10
|
+
id: Ref<string>;
|
|
11
|
+
name: Ref<string>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { INmorphCommonInputProps } from '../../../types';
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
|
+
export declare const nmorphFormItemInputDataKey = "nmorph-form-item-input-data";
|
|
4
|
+
export declare const useFormItemInput: (props: Pick<INmorphCommonInputProps, 'id' | 'name' | 'tabindex'>) => {
|
|
5
|
+
id: ComputedRef<string>;
|
|
6
|
+
name: ComputedRef<string>;
|
|
7
|
+
tabindex: ComputedRef<number>;
|
|
8
|
+
};
|
|
@@ -9,8 +9,6 @@ interface INmorphProps extends INmorphCommonInputProps {
|
|
|
9
9
|
modelValue?: NmorphSelectModelValueType;
|
|
10
10
|
loading?: boolean;
|
|
11
11
|
open?: boolean;
|
|
12
|
-
id?: string;
|
|
13
|
-
name?: string;
|
|
14
12
|
}
|
|
15
13
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
16
14
|
"update:model-value": (val: NmorphSelectModelValueType) => any;
|
|
@@ -20,9 +18,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
20
18
|
loading: boolean;
|
|
21
19
|
height: "default" | "thick" | "thin";
|
|
22
20
|
disabled: boolean;
|
|
23
|
-
id: string;
|
|
24
21
|
modelValue: NmorphSelectModelValueType;
|
|
25
|
-
name: string;
|
|
26
22
|
open: boolean;
|
|
27
23
|
options: INmorphSelectOption[];
|
|
28
24
|
noElementPlaceholder: string;
|
|
@@ -6,6 +6,7 @@ interface INmorphProps extends Omit<INmorphCommonInputProps, 'height'> {
|
|
|
6
6
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
7
7
|
inputDOMRef: Ref<HTMLElement, HTMLElement>;
|
|
8
8
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
|
|
9
|
+
tabindex: number;
|
|
9
10
|
disabled: boolean;
|
|
10
11
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
11
12
|
default?(_: {}): any;
|
|
@@ -28,8 +28,11 @@ export declare enum NmorphComponentDirection {
|
|
|
28
28
|
column = "column"
|
|
29
29
|
}
|
|
30
30
|
export interface INmorphCommonInputProps {
|
|
31
|
+
id?: string;
|
|
32
|
+
name?: string;
|
|
31
33
|
height?: keyof typeof NmorphComponentHeight;
|
|
32
34
|
disabled?: boolean;
|
|
35
|
+
tabindex?: number;
|
|
33
36
|
}
|
|
34
37
|
export declare enum NmorphShadowType {
|
|
35
38
|
inset = "shadow-inset",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@nmorph/nmorph-ui-kit",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "1.1.
|
|
5
|
+
"version": "1.1.5",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=18.13.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"lint:style": "stylelint ./src/**/*.{scss,vue} --fix",
|
|
47
47
|
"lint:check": "npm run lint:es:check && npm run lint:style:check",
|
|
48
48
|
"lint": "npm run lint:es && npm run lint:style",
|
|
49
|
-
"dev:type": "vue-tsc -p ./tsconfig.
|
|
49
|
+
"dev:type": "vue-tsc -p ./tsconfig.json",
|
|
50
50
|
"prepare": "cd .. && husky install ./library/.husky",
|
|
51
51
|
"validate-branch-name": "node .husky/validate-branch-name.cjs",
|
|
52
52
|
"validate-commit-msg": "node .husky/validate-commit-msg.cjs",
|