@nmorph/nmorph-ui-kit 2.0.2 → 2.1.0

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.
@@ -1,27 +1,13 @@
1
- import { NmorphCoordsType, NmorphOverflowProp, NmorphScrollBehavior } from '../..';
1
+ import { INmorphScrollProps, NmorphCoordsType } from './types';
2
2
  import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- interface INmorphProps {
4
- height?: string;
5
- maxHeight?: string;
6
- modelValue?: NmorphCoordsType;
7
- scrollYProp?: keyof typeof NmorphOverflowProp;
8
- scrollXProp?: keyof typeof NmorphOverflowProp;
9
- cssScrollBehavior?: keyof typeof NmorphScrollBehavior;
10
- scrollEndDelay?: number;
11
- updateOnlyOnScrollEnd?: boolean;
12
- yBarWidthInPx?: number;
13
- xBarWidthInPx?: number;
14
- xGapInPx?: number;
15
- yGapInPx?: number;
16
- }
17
- declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
3
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphScrollProps, {
18
4
  scrollDOMContainer: Ref<HTMLElement, HTMLElement>;
19
5
  moveTo: (coords: NmorphCoordsType) => void;
20
6
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
21
7
  "on-scroll": (event: Event) => any;
22
8
  "update:model-value": (coords: NmorphCoordsType) => any;
23
9
  "on-scroll-end": () => any;
24
- }, string, PublicProps, Readonly<INmorphProps> & Readonly<{
10
+ }, string, PublicProps, Readonly<INmorphScrollProps> & Readonly<{
25
11
  "onOn-scroll"?: (event: Event) => any;
26
12
  "onUpdate:model-value"?: (coords: NmorphCoordsType) => any;
27
13
  "onOn-scroll-end"?: () => any;
@@ -1,4 +1,4 @@
1
- import { INmorphCoords } from '../../../types';
1
+ import { INmorphCoords, NmorphDomElementType } from '../../../types';
2
2
  export type NmorphCoordsType = INmorphCoords<number>;
3
3
  export declare enum NmorphOverflowProp {
4
4
  auto = "auto",
@@ -12,3 +12,23 @@ export declare enum NmorphScrollBehavior {
12
12
  initial = "initial",
13
13
  unset = "unset"
14
14
  }
15
+ export type NmorphScrollOverflowType = keyof typeof NmorphOverflowProp;
16
+ export type NmorphScrollBehaviorType = keyof typeof NmorphScrollBehavior;
17
+ export interface INmorphScrollProps {
18
+ height?: string;
19
+ maxHeight?: string;
20
+ modelValue?: NmorphCoordsType;
21
+ scrollYProp?: NmorphScrollOverflowType;
22
+ scrollXProp?: NmorphScrollOverflowType;
23
+ cssScrollBehavior?: NmorphScrollBehaviorType;
24
+ scrollEndDelay?: number;
25
+ updateOnlyOnScrollEnd?: boolean;
26
+ yBarWidthInPx?: number;
27
+ xBarWidthInPx?: number;
28
+ xGapInPx?: number;
29
+ yGapInPx?: number;
30
+ }
31
+ export interface INmorphScrollExpose {
32
+ scrollDOMContainer: NmorphDomElementType;
33
+ moveTo: (coords: NmorphCoordsType) => void;
34
+ }
@@ -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 & {
@@ -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;
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.2",
5
+ "version": "2.1.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",