@nmorph/nmorph-ui-kit 2.0.3 → 2.1.1

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.
@@ -5,6 +5,7 @@ interface INmorphProps extends INmorphImage {
5
5
  shape?: keyof typeof AvatarShapeType;
6
6
  frameBorder?: number;
7
7
  imagePadding?: number;
8
+ name?: string;
8
9
  fallback?: Component;
9
10
  }
10
11
  declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
@@ -16,11 +17,13 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
16
17
  }>, {
17
18
  size: number;
18
19
  shape: "square" | "circle";
20
+ name: string;
19
21
  frameBorder: number;
20
22
  imagePadding: number;
21
23
  fallback: any;
22
24
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
23
25
  error?(_: {}): any;
26
+ error?(_: {}): any;
24
27
  }>;
25
28
  export default _default;
26
29
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -8,10 +8,11 @@ interface INmorphProps {
8
8
  color?: string;
9
9
  offsetY?: number;
10
10
  offsetX?: number;
11
+ zIndex?: number;
11
12
  disabled?: boolean;
12
13
  }
13
14
  type NmorphBadgeValueSlotProps = {
14
- value: INmorphProps["value"];
15
+ value: INmorphProps['value'];
15
16
  displayValue: string | number | undefined;
16
17
  };
17
18
  declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
@@ -24,12 +25,13 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
24
25
  isTag: boolean;
25
26
  offsetY: number;
26
27
  offsetX: number;
28
+ zIndex: number;
27
29
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, Readonly<{
28
- default?: (props: Record<string, never>) => any;
29
- value?: (props: NmorphBadgeValueSlotProps) => any;
30
+ default?: (props: Record<string, never>) => unknown;
31
+ value?: (props: NmorphBadgeValueSlotProps) => unknown;
30
32
  }> & {
31
- default?: (props: Record<string, never>) => any;
32
- value?: (props: NmorphBadgeValueSlotProps) => any;
33
+ default?: (props: Record<string, never>) => unknown;
34
+ value?: (props: NmorphBadgeValueSlotProps) => unknown;
33
35
  }>;
34
36
  export default _default;
35
37
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -20,11 +20,11 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
20
20
  width: string;
21
21
  title: string;
22
22
  modelValue: boolean;
23
+ zIndex: number;
23
24
  openDelay: number;
24
25
  closeDelay: number;
25
26
  closeOnClickModal: boolean;
26
27
  showClose: boolean;
27
- zIndex: number;
28
28
  closeOnOverlay: boolean;
29
29
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
30
30
  header?(_: {}): any;
@@ -3,6 +3,7 @@ import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProv
3
3
  interface INmorphProps extends INmorphCommonInputProps {
4
4
  modelValue?: string;
5
5
  showValue?: boolean;
6
+ displayFormat?: 'hex' | 'rgb' | 'hsl';
6
7
  }
7
8
  declare const _default: DefineComponent<INmorphProps, {
8
9
  inputDOMRef: Ref<HTMLElement, HTMLElement>;
@@ -19,5 +20,6 @@ declare const _default: DefineComponent<INmorphProps, {
19
20
  disabled: boolean;
20
21
  modelValue: string;
21
22
  showValue: boolean;
23
+ displayFormat: "hex" | "rgb" | "hsl";
22
24
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
23
25
  export default _default;
@@ -1,5 +1,5 @@
1
- import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
1
  import { INmorphCustomFileData, NmorphResolutionType } from '../..';
2
+ import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  interface INmorphProps {
4
4
  modelValue?: INmorphCustomFileData[];
5
5
  disabled?: boolean;
@@ -8,13 +8,13 @@ interface INmorphProps {
8
8
  photoWithPreview?: boolean;
9
9
  buttonText?: string;
10
10
  }
11
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<INmorphProps, {
11
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
12
12
  inputDOMRef: Ref<HTMLElement, HTMLElement>;
13
13
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
14
- "update:model-value": (val: File[]) => any;
14
+ "update:model-value": (val: INmorphCustomFileData[]) => any;
15
15
  "on-unsupported-file-type-error": (val: string) => any;
16
16
  }, string, PublicProps, Readonly<INmorphProps> & Readonly<{
17
- "onUpdate:model-value"?: (val: File[]) => any;
17
+ "onUpdate:model-value"?: (val: INmorphCustomFileData[]) => any;
18
18
  "onOn-unsupported-file-type-error"?: (val: string) => any;
19
19
  }>, {
20
20
  disabled: boolean;
@@ -1,8 +1,8 @@
1
- import { INmorphNotification, NmorphNotificationPlacement } from '..';
1
+ import { INmorphNotification, TNmorphNotificationPlacement } from '..';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  interface INmorphProps {
4
4
  notifications: INmorphNotification[];
5
- placement?: keyof typeof NmorphNotificationPlacement;
5
+ placement?: TNmorphNotificationPlacement;
6
6
  zIndex?: number;
7
7
  quantity?: number;
8
8
  }
@@ -3,6 +3,7 @@ export interface INmorphNotification extends INmorphAlertProps {
3
3
  id?: string;
4
4
  duration?: number;
5
5
  width?: string;
6
+ placement?: TNmorphNotificationPlacement;
6
7
  }
7
8
  export declare enum NmorphNotificationPlacement {
8
9
  'top-left' = "top-left",
@@ -12,3 +13,4 @@ export declare enum NmorphNotificationPlacement {
12
13
  'bottom-center' = "bottom-center",
13
14
  'bottom-right' = "bottom-right"
14
15
  }
16
+ export type TNmorphNotificationPlacement = keyof typeof NmorphNotificationPlacement;
@@ -5,6 +5,7 @@ export declare const useNmorphNotification: () => {
5
5
  id?: string;
6
6
  duration?: number;
7
7
  width?: string;
8
+ placement?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
8
9
  type?: "error" | "success" | "warning" | "info";
9
10
  closable?: boolean;
10
11
  title?: string;
@@ -18,6 +19,7 @@ export declare const useNmorphNotification: () => {
18
19
  id?: string;
19
20
  duration?: number;
20
21
  width?: string;
22
+ placement?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
21
23
  type?: "error" | "success" | "warning" | "info";
22
24
  closable?: boolean;
23
25
  title?: string;
@@ -99,6 +99,7 @@ export interface INmorphStaticColors {
99
99
  warnText?: string;
100
100
  gray?: string;
101
101
  accent?: string;
102
+ scrollThumb?: string;
102
103
  white?: string;
103
104
  black?: string;
104
105
  text?: string;
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.0.3",
5
+ "version": "2.1.1",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",