@nmorph/nmorph-ui-kit 1.1.2 → 1.1.4

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.
@@ -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;
@@ -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,7 @@
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'>) => {
5
+ id: ComputedRef<string>;
6
+ name: ComputedRef<string>;
7
+ };
@@ -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;
@@ -28,6 +28,8 @@ 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;
33
35
  }
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.2",
5
+ "version": "1.1.4",
6
6
  "license": "MIT",
7
7
  "engines": {
8
8
  "node": ">=18.13.0",