@nmorph/nmorph-ui-kit 2.2.6 → 2.2.7

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 (23) hide show
  1. package/dist/index.es.js +7814 -7492
  2. package/dist/index.umd.js +274 -268
  3. package/dist/src/components/basic/nmorph-button/NmorphButton.vue.d.ts +1 -1
  4. package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +1 -1
  5. package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.d.ts +1 -1
  6. package/dist/src/components/form/index.d.ts +1 -0
  7. package/dist/src/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +1 -1
  8. package/dist/src/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +1 -1
  9. package/dist/src/components/form/nmorph-color-picker/NmorphColorPicker.vue.d.ts +1 -1
  10. package/dist/src/components/form/nmorph-date-picker/NmorphDatePicker.vue.d.ts +1 -1
  11. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts +1 -1
  12. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue.d.ts +1 -1
  13. package/dist/src/components/form/nmorph-number-input/NmorphNumberInput.vue.d.ts +1 -1
  14. package/dist/src/components/form/nmorph-otp-input/NmorphOTPInput.vue.d.ts +1 -1
  15. package/dist/src/components/form/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +1 -1
  16. package/dist/src/components/form/nmorph-select/NmorphSelect.vue.d.ts +1 -1
  17. package/dist/src/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.d.ts +1 -1
  18. package/dist/src/components/form/nmorph-select-button/NmorphSelectButton.vue.d.ts +1 -1
  19. package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +3 -10
  20. package/dist/src/components/form/nmorph-slider/types.d.ts +8 -0
  21. package/dist/src/components/form/nmorph-text-input/NmorphTextInput.vue.d.ts +1 -1
  22. package/dist/src/types/index.d.ts +1 -1
  23. package/package.json +15 -3
@@ -26,7 +26,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
26
26
  accentBgOnHover: boolean;
27
27
  shape: "default" | "square" | "round" | "circle";
28
28
  tabindex: number;
29
- height: "default" | "thick" | "thin";
29
+ height: "thick" | "basic" | "thin";
30
30
  disabled: boolean;
31
31
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
32
32
  "icon-only"?(_: {}): any;
@@ -17,7 +17,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
17
17
  }) => any;
18
18
  }>, {
19
19
  block: boolean;
20
- height: "default" | "thick" | "thin";
20
+ height: "thick" | "basic" | "thin";
21
21
  disabled: boolean;
22
22
  title: string;
23
23
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
@@ -8,7 +8,7 @@ declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentO
8
8
  }, string, PublicProps, Readonly<INmorphProps> & Readonly<{
9
9
  onClose?: (val: string) => any;
10
10
  }>, {
11
- height: "default" | "thick" | "thin";
11
+ height: "thick" | "basic" | "thin";
12
12
  design: NmorphElementDesignType;
13
13
  removable: boolean;
14
14
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
@@ -15,6 +15,7 @@ export { default as NmorphSelect } from './nmorph-select/NmorphSelect.vue';
15
15
  export * from './nmorph-select/types';
16
16
  export { default as NmorphSelectOption } from './nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue';
17
17
  export { default as NmorphSlider } from './nmorph-slider/NmorphSlider.vue';
18
+ export * from './nmorph-slider/types';
18
19
  export { default as NmorphSwitch } from './nmorph-switch/NmorphSwitch.vue';
19
20
  export { default as NmorphTextInput } from './nmorph-text-input/NmorphTextInput.vue';
20
21
  export { default as NmorphRadio } from './nmorph-radio/NmorphRadio.vue';
@@ -16,7 +16,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
16
16
  onSelect?: (value: unknown) => any;
17
17
  "onUpdate:model-value"?: (value: string) => any;
18
18
  }>, {
19
- height: "default" | "thick" | "thin";
19
+ height: "thick" | "basic" | "thin";
20
20
  disabled: boolean;
21
21
  placeholder: string;
22
22
  modelValue: string;
@@ -11,7 +11,7 @@ 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";
14
+ height: "thick" | "basic" | "thin";
15
15
  disabled: boolean;
16
16
  modelValue: string[];
17
17
  design: NmorphCheckboxDesignType;
@@ -16,7 +16,7 @@ declare const _default: DefineComponent<INmorphProps, {
16
16
  onFocus?: () => any;
17
17
  "onUpdate:model-value"?: (val: string) => any;
18
18
  }>, {
19
- height: "default" | "thick" | "thin";
19
+ height: "thick" | "basic" | "thin";
20
20
  disabled: boolean;
21
21
  modelValue: string;
22
22
  showValue: boolean;
@@ -15,7 +15,7 @@ declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentO
15
15
  "onUpdate:model-value"?: (modelValue: NmorphSelectedDateModelType) => any;
16
16
  }>, {
17
17
  type: "date" | "dates" | "daterange";
18
- height: "default" | "thick" | "thin";
18
+ height: "thick" | "basic" | "thin";
19
19
  disabled: boolean;
20
20
  placeholder: string;
21
21
  modelValue: NmorphSelectedDateModelType;
@@ -12,7 +12,7 @@ interface INmorphProps {
12
12
  declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
13
13
  name: string;
14
14
  autocomplete: string;
15
- height: "default" | "thick" | "thin";
15
+ height: "thick" | "basic" | "thin";
16
16
  label: string;
17
17
  showValidationIcon: boolean;
18
18
  staticErrorBoxSpace: boolean;
@@ -6,7 +6,7 @@ interface INmorphProps {
6
6
  staticHeight?: boolean;
7
7
  }
8
8
  declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
9
- height: "default" | "thick" | "thin";
9
+ height: "thick" | "basic" | "thin";
10
10
  errors: string[] | Ref<string[], string[]>;
11
11
  staticHeight: boolean;
12
12
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -14,7 +14,7 @@ declare const _default: DefineComponent<INmorphProps, {
14
14
  }, string, PublicProps, Readonly<INmorphProps> & Readonly<{
15
15
  "onUpdate:model-value"?: (val: number) => any;
16
16
  }>, {
17
- height: "default" | "thick" | "thin";
17
+ height: "thick" | "basic" | "thin";
18
18
  disabled: boolean;
19
19
  modelValue: number;
20
20
  max: number;
@@ -24,7 +24,7 @@ declare const _default: DefineComponent<INmorphProps, {
24
24
  onComplete?: (val: string) => any;
25
25
  }>, {
26
26
  length: number;
27
- height: "default" | "thick" | "thin";
27
+ height: "thick" | "basic" | "thin";
28
28
  disabled: boolean;
29
29
  autocapitalize: string;
30
30
  modelValue: string;
@@ -13,7 +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
+ height: "thick" | "basic" | "thin";
17
17
  disabled: boolean;
18
18
  modelValue: string;
19
19
  options: NmorphListRadioOptionElementType[];
@@ -20,7 +20,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
20
20
  }>, {
21
21
  fill: boolean;
22
22
  loading: boolean;
23
- height: "default" | "thick" | "thin";
23
+ height: "thick" | "basic" | "thin";
24
24
  disabled: boolean;
25
25
  modelValue: NmorphSelectModelValueType;
26
26
  open: boolean;
@@ -5,7 +5,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphSelectOp
5
5
  }, string, PublicProps, Readonly<INmorphSelectOption> & Readonly<{
6
6
  "onChange-value"?: (val: string) => any;
7
7
  }>, {
8
- height: "default" | "thick" | "thin";
8
+ height: "thick" | "basic" | "thin";
9
9
  disabled: boolean;
10
10
  label: string;
11
11
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
@@ -12,7 +12,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
12
12
  "onUpdate:model-value"?: (val: string) => any;
13
13
  }>, {
14
14
  fill: boolean;
15
- height: "default" | "thick" | "thin";
15
+ height: "thick" | "basic" | "thin";
16
16
  disabled: boolean;
17
17
  modelValue: string;
18
18
  options: INmorphSelectButtonOption[];
@@ -1,15 +1,8 @@
1
- import { INmorphCommonInputProps } from '../../../types';
1
+ import { INmorphSliderProps } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- interface INmorphProps extends Omit<INmorphCommonInputProps, 'height'> {
4
- modelValue?: number;
5
- max?: number;
6
- min?: number;
7
- step?: number;
8
- showTooltip?: boolean;
9
- }
10
- declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
3
+ declare const _default: DefineComponent<INmorphSliderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
11
4
  "update:model-value": (val: number) => any;
12
- }, string, PublicProps, Readonly<INmorphProps> & Readonly<{
5
+ }, string, PublicProps, Readonly<INmorphSliderProps> & Readonly<{
13
6
  "onUpdate:model-value"?: (val: number) => any;
14
7
  }>, {
15
8
  disabled: boolean;
@@ -0,0 +1,8 @@
1
+ import { INmorphCommonInputProps } from '../../../types';
2
+ export interface INmorphSliderProps extends Omit<INmorphCommonInputProps, 'height'> {
3
+ modelValue?: number;
4
+ max?: number;
5
+ min?: number;
6
+ step?: number;
7
+ showTooltip?: boolean;
8
+ }
@@ -24,7 +24,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
24
24
  "onUpdate:model-value"?: (val: string) => any;
25
25
  "onOn-enter"?: () => any;
26
26
  }>, {
27
- height: "default" | "thick" | "thin";
27
+ height: "thick" | "basic" | "thin";
28
28
  disabled: boolean;
29
29
  placeholder: string;
30
30
  modelValue: string;
@@ -12,7 +12,7 @@ export interface INmorphFromDataExpose {
12
12
  }
13
13
  export declare enum NmorphComponentHeight {
14
14
  thick = "thick-component",
15
- default = "default-height-component",
15
+ basic = "basic-component",
16
16
  thin = "thin-component"
17
17
  }
18
18
  export type NmorphSortOrderType = keyof typeof NmorphSortOrder | undefined;
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": "2.2.6",
5
+ "version": "2.2.7",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -43,7 +43,12 @@
43
43
  "./dist/styles/main.scss": "./dist/styles/main.scss"
44
44
  },
45
45
  "scripts": {
46
+ "dev": "HOME=/tmp/nmorph-storybook-home STORYBOOK_DISABLE_TELEMETRY=1 storybook dev -p 43183",
47
+ "storybook": "HOME=/tmp/nmorph-storybook-home STORYBOOK_DISABLE_TELEMETRY=1 storybook dev -p 43183",
48
+ "build:storybook": "HOME=/tmp/nmorph-storybook-home STORYBOOK_DISABLE_TELEMETRY=1 storybook build",
46
49
  "build": "npm run build:types && vite build",
50
+ "test": "vitest run",
51
+ "test:watch": "vitest",
47
52
  "watch": "vite build --watch",
48
53
  "lint:es:check": "eslint --ext .js,.ts,.vue --ignore-path .gitignore src/",
49
54
  "lint:es": "eslint --ext .js,.ts,.vue --ignore-path .gitignore --fix src/",
@@ -63,12 +68,17 @@
63
68
  "vue-i18n": "^9.9.0"
64
69
  },
65
70
  "devDependencies": {
71
+ "@storybook/addon-docs": "10.3.6",
72
+ "@storybook/builder-vite": "10.3.6",
73
+ "@storybook/vue3": "10.3.6",
74
+ "@storybook/vue3-vite": "10.3.6",
66
75
  "@types/node": "^20.10.8",
67
76
  "@types/vue": "^2.0.0",
68
77
  "@types/vue-router": "^2.0.0",
69
78
  "@typescript-eslint/eslint-plugin": "^6.18.1",
70
79
  "@typescript-eslint/parser": "^6.18.1",
71
- "@vitejs/plugin-vue": "^4.4.0",
80
+ "@vitejs/plugin-vue": "^5.2.4",
81
+ "@vue/test-utils": "^2.4.10",
72
82
  "eslint": "^8.56.0",
73
83
  "eslint-config-prettier": "^9.1.0",
74
84
  "eslint-plugin-prettier": "^5.1.3",
@@ -79,6 +89,7 @@
79
89
  "prettier": "^3.1.1",
80
90
  "rollup-plugin-ignore": "^1.0.10",
81
91
  "sass": "^1.69.7",
92
+ "storybook": "10.3.6",
82
93
  "stylelint": "^16.1.0",
83
94
  "stylelint-config-idiomatic-order": "^10.0.0",
84
95
  "stylelint-config-rational-order": "^0.0.4",
@@ -90,10 +101,11 @@
90
101
  "stylelint-prettier": "^5.0.0",
91
102
  "stylelint-scss": "^6.0.0",
92
103
  "typescript": "~5.1.6",
93
- "vite": "^4.5.0",
104
+ "vite": "^5.4.21",
94
105
  "vite-plugin-dts": "^4.3.0",
95
106
  "vite-plugin-static-copy": "^0.17.1",
96
107
  "vite-svg-loader": "^5.1.0",
108
+ "vitest": "2.1.9",
97
109
  "vue-eslint-parser": "^9.4.0",
98
110
  "vue-tsc": "^1.6.5"
99
111
  }