@nmorph/nmorph-ui-kit 2.2.5 → 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 (33) hide show
  1. package/dist/index.es.js +7820 -7475
  2. package/dist/index.umd.js +268 -264
  3. package/dist/src/components/basic/nmorph-button/NmorphButton.vue.d.ts +1 -1
  4. package/dist/src/components/data/nmorph-badge/NmorphBadge.vue.d.ts +1 -1
  5. package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +1 -1
  6. package/dist/src/components/data/nmorph-image-preview/NmorphImagePreview.vue.d.ts +1 -0
  7. package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.d.ts +1 -1
  8. package/dist/src/components/feedback/nmorph-dialog/NmorphDialog.vue.d.ts +0 -1
  9. package/dist/src/components/form/index.d.ts +1 -0
  10. package/dist/src/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +2 -1
  11. package/dist/src/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +1 -1
  12. package/dist/src/components/form/nmorph-color-picker/NmorphColorPicker.vue.d.ts +1 -1
  13. package/dist/src/components/form/nmorph-date-picker/NmorphDatePicker.vue.d.ts +2 -1
  14. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts +1 -1
  15. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue.d.ts +1 -1
  16. package/dist/src/components/form/nmorph-number-input/NmorphNumberInput.vue.d.ts +1 -1
  17. package/dist/src/components/form/nmorph-otp-input/NmorphOTPInput.vue.d.ts +1 -1
  18. package/dist/src/components/form/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +1 -1
  19. package/dist/src/components/form/nmorph-select/NmorphSelect.vue.d.ts +2 -1
  20. package/dist/src/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.d.ts +1 -1
  21. package/dist/src/components/form/nmorph-select-button/NmorphSelectButton.vue.d.ts +1 -1
  22. package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +3 -10
  23. package/dist/src/components/form/nmorph-slider/types.d.ts +8 -0
  24. package/dist/src/components/form/nmorph-text-input/NmorphTextInput.vue.d.ts +1 -1
  25. package/dist/src/components/navigation/nmorph-dropdown/NmorphDropdown.vue.d.ts +1 -0
  26. package/dist/src/components/others/nmorph-overlay/NmorphOverlay.vue.d.ts +1 -0
  27. package/dist/src/components/providers/nmorph-notification-provider/types.d.ts +1 -1
  28. package/dist/src/hooks/index.d.ts +1 -0
  29. package/dist/src/hooks/use-z-index.d.ts +2 -0
  30. package/dist/src/outside-hooks/index.d.ts +1 -0
  31. package/dist/src/outside-hooks/use-nmorph-z-index.d.ts +7 -0
  32. package/dist/src/types/index.d.ts +6 -2
  33. 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;
@@ -23,12 +23,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
23
23
  color: string;
24
24
  disabled: boolean;
25
25
  hidden: boolean;
26
+ zIndex: number;
26
27
  max: number;
27
28
  isDot: boolean;
28
29
  isTag: boolean;
29
30
  offsetY: number;
30
31
  offsetX: number;
31
- zIndex: number;
32
32
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, Readonly<{
33
33
  default?: (props: Record<string, never>) => unknown;
34
34
  value?: (props: NmorphBadgeValueSlotProps) => unknown;
@@ -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>, {
@@ -7,6 +7,7 @@ interface INmorphProps {
7
7
  scaleStep?: number;
8
8
  minScaleLevel?: number;
9
9
  maxScaleLevel?: number;
10
+ zIndex?: number;
10
11
  }
11
12
  declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
12
13
  "update:model-value": (value: boolean) => 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>;
@@ -20,7 +20,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
20
20
  width: string;
21
21
  title: string;
22
22
  modelValue: boolean;
23
- zIndex: number;
24
23
  openDelay: number;
25
24
  closeDelay: number;
26
25
  closeOnClickModal: boolean;
@@ -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';
@@ -7,6 +7,7 @@ interface INmorphProps extends INmorphCommonInputProps {
7
7
  clearable?: boolean;
8
8
  list: INmorphAutocompleteListItem[];
9
9
  actionCallback?: NmorphAutocompleteActionCallbackType;
10
+ zIndex?: number;
10
11
  }
11
12
  declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
12
13
  select: (value: unknown) => any;
@@ -15,7 +16,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
15
16
  onSelect?: (value: unknown) => any;
16
17
  "onUpdate:model-value"?: (value: string) => any;
17
18
  }>, {
18
- height: "default" | "thick" | "thin";
19
+ height: "thick" | "basic" | "thin";
19
20
  disabled: boolean;
20
21
  placeholder: string;
21
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;
@@ -7,6 +7,7 @@ interface INmorphProps extends INmorphCommonInputProps {
7
7
  type?: keyof typeof NmorphSelectionDateType;
8
8
  textSeparator?: string;
9
9
  initialDate?: Date;
10
+ zIndex?: number;
10
11
  }
11
12
  declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
12
13
  "update:model-value": (modelValue: NmorphSelectedDateModelType) => any;
@@ -14,7 +15,7 @@ declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentO
14
15
  "onUpdate:model-value"?: (modelValue: NmorphSelectedDateModelType) => any;
15
16
  }>, {
16
17
  type: "date" | "dates" | "daterange";
17
- height: "default" | "thick" | "thin";
18
+ height: "thick" | "basic" | "thin";
18
19
  disabled: boolean;
19
20
  placeholder: string;
20
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[];
@@ -11,6 +11,7 @@ interface INmorphProps extends INmorphCommonInputProps {
11
11
  open?: boolean;
12
12
  fill?: boolean;
13
13
  optionsWidth?: 'truncate' | 'auto';
14
+ zIndex?: number;
14
15
  }
15
16
  declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
16
17
  "update:model-value": (val: NmorphSelectModelValueType) => any;
@@ -19,7 +20,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
19
20
  }>, {
20
21
  fill: boolean;
21
22
  loading: boolean;
22
- height: "default" | "thick" | "thin";
23
+ height: "thick" | "basic" | "thin";
23
24
  disabled: boolean;
24
25
  modelValue: NmorphSelectModelValueType;
25
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;
@@ -9,6 +9,7 @@ interface INmorphProps {
9
9
  xOffset?: number;
10
10
  yOffset?: number;
11
11
  fillWidth?: boolean;
12
+ zIndex?: number;
12
13
  }
13
14
  declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
14
15
  "on-outside-click": () => any;
@@ -2,6 +2,7 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
2
2
  interface INmorphProps {
3
3
  show: boolean;
4
4
  transparent?: boolean;
5
+ zIndex?: number;
5
6
  }
6
7
  declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
7
8
  "on-outside-click": () => any;
@@ -1,4 +1,4 @@
1
- import { INmorphAlertProps } from '../../../main';
1
+ import { INmorphAlertProps } from '../../feedback/nmorph-alert/types';
2
2
  export interface INmorphNotification extends INmorphAlertProps {
3
3
  id?: string;
4
4
  duration?: number;
@@ -1,6 +1,7 @@
1
1
  export * from './use-field-validation';
2
2
  export * from './use-form-validation';
3
3
  export * from './use-placement';
4
+ export * from './use-z-index';
4
5
  export * from '../outside-hooks/use-nmorph-theme';
5
6
  export * from './use-nmorph-translation';
6
7
  export * from './use-style-class-mixins';
@@ -0,0 +1,2 @@
1
+ import { WatchSource, ComputedRef } from 'vue';
2
+ export declare const useZIndex: (open: WatchSource<boolean>, zIndex: () => number | undefined) => ComputedRef<number>;
@@ -2,3 +2,4 @@ export { useNmorphTheme } from './use-nmorph-theme';
2
2
  export { useNmorphBrowser } from './use-nmorph-browser';
3
3
  export { useNmorphNotification } from './use-nmorph-notification';
4
4
  export { useNmorph } from './use-nmorph';
5
+ export { useNmorphZIndex } from './use-nmorph-z-index';
@@ -0,0 +1,7 @@
1
+ import { Ref } from 'vue';
2
+ export declare const useNmorphZIndex: (options?: {
3
+ base?: number;
4
+ }) => {
5
+ current: Ref<number, number>;
6
+ next: () => number;
7
+ };
@@ -1,17 +1,18 @@
1
1
  import { Ref } from 'vue';
2
2
  import { I18n } from 'vue-i18n';
3
3
  import { NmorphFormValidationDataType } from '../components';
4
- import { useNmorphBrowser, useNmorphTheme } from '../outside-hooks';
4
+ import { useNmorphBrowser, useNmorphTheme, useNmorphZIndex } from '../outside-hooks';
5
5
  export interface INmorphInstance {
6
6
  theme: ReturnType<typeof useNmorphTheme>;
7
7
  browser: ReturnType<typeof useNmorphBrowser>;
8
+ zIndex: ReturnType<typeof useNmorphZIndex>;
8
9
  }
9
10
  export interface INmorphFromDataExpose {
10
11
  formData: NmorphFormValidationDataType;
11
12
  }
12
13
  export declare enum NmorphComponentHeight {
13
14
  thick = "thick-component",
14
- default = "default-height-component",
15
+ basic = "basic-component",
15
16
  thin = "thin-component"
16
17
  }
17
18
  export type NmorphSortOrderType = keyof typeof NmorphSortOrder | undefined;
@@ -86,6 +87,9 @@ export interface INmorphThemeOptions {
86
87
  export interface INmorphOptions {
87
88
  theme?: INmorphThemeOptions;
88
89
  i18n?: INmorphApplyTranslation;
90
+ zIndex?: {
91
+ base?: number;
92
+ };
89
93
  }
90
94
  export type NmorphThemeOptionsType = Record<string, INmorphThemeColors>;
91
95
  export interface INmorphStaticColors {
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.5",
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
  }