@nmorph/nmorph-ui-kit 2.2.4 → 2.2.6

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.
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -1,5 +1,5 @@
1
+ import { Ref, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
2
  import { INmorphCheckboxOption, NmorphCheckboxDesignType } from '../../../types';
2
- import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphCheckboxOption, {
4
4
  inputDOMRef: Ref<HTMLElement, HTMLElement>;
5
5
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
@@ -11,6 +11,8 @@ 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";
15
+ disabled: boolean;
14
16
  modelValue: string[];
15
17
  design: NmorphCheckboxDesignType;
16
18
  options: INmorphCheckboxOption[];
@@ -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;
@@ -1,5 +1,5 @@
1
+ import { Ref, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
2
  import { INmorphRadioOption, NmorphRadioStyleType } from '../../../types';
2
- import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  interface INmorphProps extends Omit<INmorphRadioOption, 'value'> {
4
4
  value?: string;
5
5
  styleType?: keyof typeof NmorphRadioStyleType;
@@ -13,6 +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
17
  disabled: boolean;
17
18
  modelValue: string;
18
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;
@@ -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,10 +1,11 @@
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;
@@ -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 {
@@ -165,6 +169,7 @@ export interface INmorphCheckboxOption {
165
169
  modelValue?: boolean;
166
170
  label?: string;
167
171
  design?: NmorphCheckboxDesignType;
172
+ height?: keyof typeof NmorphComponentHeight;
168
173
  }
169
174
  export type NmorphCheckboxDesignType = 'button' | 'checkbox';
170
175
  export type NmorphCheckboxGroupSelectedValueInjectionType = Ref<string[]>;
@@ -174,6 +179,7 @@ export interface INmorphRadioOption {
174
179
  label?: string;
175
180
  value: string;
176
181
  tabindex?: number;
182
+ height?: keyof typeof NmorphComponentHeight;
177
183
  }
178
184
  export declare enum NmorphRadioStyleType {
179
185
  'radio-style' = "radio-style",
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.4",
5
+ "version": "2.2.6",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",