@nmorph/nmorph-ui-kit 2.2.45 → 2.2.47

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 (39) hide show
  1. package/dist/assets/icons/forward.svg.js +11 -7
  2. package/dist/assets/icons/reply.svg.js +9 -5
  3. package/dist/components/basic/nmorph-icon/NmorphIcon.css +1 -1
  4. package/dist/components/basic/nmorph-link/NmorphLink.vue.js +46 -34
  5. package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.css +1 -1
  6. package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.js +42 -40
  7. package/dist/components/feedback/nmorph-callout/NmorphCallout.css +1 -1
  8. package/dist/components/feedback/nmorph-callout/NmorphCallout.vue.js +66 -28
  9. package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.css +1 -1
  10. package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.js +81 -47
  11. package/dist/emoji/base.js +77 -0
  12. package/dist/emoji/index.d.ts +2 -0
  13. package/dist/emoji/index.js +16 -0
  14. package/dist/emoji/locales/en.js +41 -0
  15. package/dist/emoji/locales/ru.js +41 -0
  16. package/dist/emoji/locales/zh.js +41 -0
  17. package/dist/index.es.js +861 -855
  18. package/dist/index.umd.js +27 -27
  19. package/dist/package.json.js +1 -1
  20. package/dist/src/components/basic/nmorph-link/NmorphLink.vue.d.ts +7 -0
  21. package/dist/src/components/basic/nmorph-link/types.d.ts +7 -0
  22. package/dist/src/components/data/nmorph-audio-preview/NmorphAudioPreview.vue.d.ts +2 -2
  23. package/dist/src/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.d.ts +1 -0
  24. package/dist/src/components/data/nmorph-emoji-picker/types.d.ts +1 -0
  25. package/dist/src/components/data/nmorph-empty/NmorphEmpty.vue.d.ts +1 -1
  26. package/dist/src/components/data/nmorph-file-card/NmorphFileCard.vue.d.ts +2 -2
  27. package/dist/src/components/data/nmorph-video-preview/NmorphVideoPreview.vue.d.ts +2 -2
  28. package/dist/src/components/feedback/nmorph-callout/NmorphCallout.vue.d.ts +17 -3
  29. package/dist/src/components/feedback/nmorph-callout/types.d.ts +12 -1
  30. package/dist/src/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.d.ts +2 -2
  31. package/dist/src/components/navigation/nmorph-dropdown/NmorphDropdown.vue.d.ts +2 -2
  32. package/dist/src/emoji/base.d.ts +20 -0
  33. package/dist/src/emoji/index.d.ts +8 -0
  34. package/dist/src/emoji/locales/en.d.ts +3 -0
  35. package/dist/src/emoji/locales/ru.d.ts +3 -0
  36. package/dist/src/emoji/locales/zh.d.ts +3 -0
  37. package/dist/src/main.d.ts +1 -0
  38. package/dist/style.css +1 -1
  39. package/package.json +17 -1
@@ -1,4 +1,4 @@
1
- const a = "2.2.45", e = {
1
+ const a = "2.2.47", e = {
2
2
  version: a
3
3
  };
4
4
  export {
@@ -1,6 +1,8 @@
1
1
  import { INmorphLinkProps } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { NmorphLinkReferrerPolicy } from '../..';
3
4
  declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphLinkProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphLinkProps> & Readonly<{}>, {
5
+ title: string;
4
6
  color: string;
5
7
  type: "error" | "accent" | "success" | "warning";
6
8
  text: string;
@@ -8,6 +10,11 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphLinkProp
8
10
  target: "self" | "blank" | "parent" | "top";
9
11
  underline: boolean;
10
12
  href: string;
13
+ rel: string;
14
+ referrerpolicy: NmorphLinkReferrerPolicy;
15
+ referrerPolicy: NmorphLinkReferrerPolicy;
16
+ download: string | boolean;
17
+ ariaLabel: string;
11
18
  iconName: string;
12
19
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>, {
13
20
  prepend?(_: {}): any;
@@ -1,4 +1,5 @@
1
1
  import { NmorphColor } from '../../../types';
2
+ export type NmorphLinkReferrerPolicy = '' | 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url';
2
3
  export declare enum NmorphLinkTarget {
3
4
  self = "_self",
4
5
  blank = "_blank",
@@ -11,6 +12,12 @@ export interface INmorphLinkProps {
11
12
  href?: string;
12
13
  text?: string;
13
14
  target?: keyof typeof NmorphLinkTarget;
15
+ rel?: string;
16
+ referrerpolicy?: NmorphLinkReferrerPolicy;
17
+ referrerPolicy?: NmorphLinkReferrerPolicy;
18
+ download?: string | boolean;
19
+ ariaLabel?: string;
20
+ title?: string;
14
21
  disabled?: boolean;
15
22
  color?: string;
16
23
  iconName?: string;
@@ -6,14 +6,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphAudioPre
6
6
  error: (val: Event) => any;
7
7
  pause: (val: Event) => any;
8
8
  play: (val: Event) => any;
9
- open: () => any;
10
9
  download: () => any;
10
+ open: () => any;
11
11
  }, string, PublicProps, Readonly<INmorphAudioPreviewProps> & Readonly<{
12
12
  onError?: (val: Event) => any;
13
13
  onPause?: (val: Event) => any;
14
14
  onPlay?: (val: Event) => any;
15
- onOpen?: () => any;
16
15
  onDownload?: () => any;
16
+ onOpen?: () => any;
17
17
  }>, {
18
18
  name: string;
19
19
  loading: boolean;
@@ -19,6 +19,7 @@ declare const _default: DefineComponent<INmorphEmojiPickerProps, {}, {}, {}, {},
19
19
  quickList: string[];
20
20
  initialExpanded: boolean;
21
21
  columns: number;
22
+ hideShadow: boolean;
22
23
  }, {}, {}, {}, string, ComponentProvideOptions, true, {
23
24
  gridRef: HTMLDivElement;
24
25
  }, HTMLDivElement>;
@@ -43,6 +43,7 @@ export interface INmorphEmojiPickerProps {
43
43
  height?: number | string;
44
44
  columns?: number;
45
45
  disabled?: boolean;
46
+ hideShadow?: boolean;
46
47
  }
47
48
  export interface INmorphEmojiPickerEmit {
48
49
  (e: 'select', val: string): void;
@@ -3,6 +3,7 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
3
3
  import { NmorphElementDesignType } from '../../../types';
4
4
  declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphEmptyProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphEmptyProps> & Readonly<{}>, {
5
5
  title: string;
6
+ ariaLabel: string;
6
7
  minHeight: string | number;
7
8
  role: string;
8
9
  design: NmorphElementDesignType;
@@ -11,7 +12,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphEmptyPro
11
12
  description: string;
12
13
  iconSize: string | number;
13
14
  hideIcon: boolean;
14
- ariaLabel: string;
15
15
  ariaOrientation: string;
16
16
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>, {
17
17
  icon?(_: {}): any;
@@ -2,12 +2,12 @@ import { INmorphFileCardProps } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphFileCardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
4
4
  error: () => any;
5
- open: () => any;
6
5
  download: () => any;
6
+ open: () => any;
7
7
  }, string, PublicProps, Readonly<INmorphFileCardProps> & Readonly<{
8
8
  onError?: () => any;
9
- onOpen?: () => any;
10
9
  onDownload?: () => any;
10
+ onOpen?: () => any;
11
11
  }>, {
12
12
  loading: boolean;
13
13
  error: boolean;
@@ -5,14 +5,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphVideoPre
5
5
  error: (val: Event) => any;
6
6
  pause: (val: Event) => any;
7
7
  play: (val: Event) => any;
8
- open: () => any;
9
8
  download: () => any;
9
+ open: () => any;
10
10
  }, string, PublicProps, Readonly<INmorphVideoPreviewProps> & Readonly<{
11
11
  onError?: (val: Event) => any;
12
12
  onPause?: (val: Event) => any;
13
13
  onPlay?: (val: Event) => any;
14
- onOpen?: () => any;
15
14
  onDownload?: () => any;
15
+ onOpen?: () => any;
16
16
  }>, {
17
17
  name: string;
18
18
  loading: boolean;
@@ -1,14 +1,28 @@
1
- import { INmorphCalloutProps, NmorphCalloutType } from './types';
1
+ import { INmorphCalloutProps, NmorphCalloutType, NmorphCalloutTarget, NmorphCalloutReferrerPolicy } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- declare const _default: DefineComponent<INmorphCalloutProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphCalloutProps> & Readonly<{}>, {
3
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphCalloutProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphCalloutProps> & Readonly<{}>, {
4
4
  title: string;
5
5
  color: string;
6
6
  type: NmorphCalloutType;
7
+ target: NmorphCalloutTarget;
8
+ href: string;
9
+ rel: string;
10
+ referrerpolicy: NmorphCalloutReferrerPolicy;
11
+ referrerPolicy: NmorphCalloutReferrerPolicy;
12
+ download: string | boolean;
13
+ ariaLabel: string;
7
14
  padding: string | number;
15
+ content: string;
16
+ as: keyof HTMLElementTagNameMap;
8
17
  borderRadius: string | number;
9
18
  accentWidth: string | number;
10
19
  titleGap: string | number;
11
20
  titleFontSize: string | number;
12
21
  contentFontSize: string | number;
13
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
22
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, any>;
14
23
  export default _default;
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -1,8 +1,19 @@
1
1
  export type NmorphCalloutType = 'info' | 'warning' | 'success' | 'error';
2
+ export type NmorphCalloutRootTag = keyof HTMLElementTagNameMap;
3
+ export type NmorphCalloutTarget = '_self' | '_blank' | '_parent' | '_top' | 'self' | 'blank' | 'parent' | 'top';
4
+ export type NmorphCalloutReferrerPolicy = '' | 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url';
2
5
  export interface INmorphCalloutProps {
3
6
  type?: NmorphCalloutType;
4
7
  title?: string;
5
- content: string;
8
+ content?: string;
9
+ as?: NmorphCalloutRootTag;
10
+ href?: string;
11
+ target?: NmorphCalloutTarget;
12
+ rel?: string;
13
+ referrerpolicy?: NmorphCalloutReferrerPolicy;
14
+ referrerPolicy?: NmorphCalloutReferrerPolicy;
15
+ download?: string | boolean;
16
+ ariaLabel?: string;
6
17
  color?: string;
7
18
  padding?: number | string;
8
19
  borderRadius?: number | string;
@@ -24,12 +24,13 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphContextM
24
24
  modelValue: boolean;
25
25
  disabled: boolean;
26
26
  width: string | number;
27
+ ariaLabel: string;
27
28
  minWidth: string | number;
28
29
  zIndex: number;
29
30
  closeOnEscape: boolean;
30
31
  trapFocus: boolean;
31
32
  role: string;
32
- ariaLabel: string;
33
+ hideShadow: boolean;
33
34
  options: NmorphContextMenuOption[];
34
35
  placement: NmorphPlacementType;
35
36
  yOffset: number;
@@ -37,7 +38,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphContextM
37
38
  trigger: NmorphContextMenuTrigger;
38
39
  maxWidth: string | number;
39
40
  fillWidth: boolean;
40
- hideShadow: boolean;
41
41
  closeOnScroll: boolean;
42
42
  mobileMode: NmorphContextMenuMobileMode;
43
43
  }, {}, {}, {}, string, ComponentProvideOptions, true, {
@@ -9,6 +9,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphDropdown
9
9
  "onOn-escape-keydown"?: () => any;
10
10
  }>, {
11
11
  width: string | number;
12
+ ariaLabel: string;
12
13
  minWidth: string | number;
13
14
  zIndex: number;
14
15
  closeOnEscape: boolean;
@@ -16,13 +17,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphDropdown
16
17
  restoreFocus: boolean;
17
18
  role: string;
18
19
  contentClass: string;
19
- ariaLabel: string;
20
+ hideShadow: boolean;
20
21
  placement: NmorphPlacementType;
21
22
  yOffset: number;
22
23
  xOffset: number;
23
24
  maxWidth: string | number;
24
25
  fillWidth: boolean;
25
- hideShadow: boolean;
26
26
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
27
27
  dropdownDOMRef: HTMLDivElement;
28
28
  }, any>, {
@@ -0,0 +1,20 @@
1
+ import { INmorphEmojiPickerI18n, INmorphEmojiPickerItem } from '../components/data/nmorph-emoji-picker/types';
2
+ export type NmorphEmojiLanguage = 'en' | 'ru' | 'zh';
3
+ export interface NmorphEmojiLocaleGroup {
4
+ label: string;
5
+ tags: string[];
6
+ }
7
+ export interface NmorphEmojiLocaleConfig {
8
+ language: NmorphEmojiLanguage;
9
+ groups: Record<string, NmorphEmojiLocaleGroup>;
10
+ i18n: INmorphEmojiPickerI18n;
11
+ quickList?: string[];
12
+ }
13
+ export interface NmorphEmojiLocale {
14
+ language: NmorphEmojiLanguage;
15
+ data: INmorphEmojiPickerItem[];
16
+ i18n: INmorphEmojiPickerI18n;
17
+ quickList: string[];
18
+ }
19
+ export declare const nmorphEmojiQuickList: string[];
20
+ export declare const createNmorphEmojiLocale: (config: NmorphEmojiLocaleConfig) => NmorphEmojiLocale;
@@ -0,0 +1,8 @@
1
+ import { NmorphEmojiLanguage, NmorphEmojiLocale } from './base';
2
+ export type { NmorphEmojiLanguage, NmorphEmojiLocale, NmorphEmojiLocaleConfig, NmorphEmojiLocaleGroup } from './base';
3
+ export { createNmorphEmojiLocale, nmorphEmojiQuickList } from './base';
4
+ export declare const nmorphEmojiLanguageOptions: Array<{
5
+ value: NmorphEmojiLanguage;
6
+ label: string;
7
+ }>;
8
+ export declare const loadNmorphEmojiLocale: (language: NmorphEmojiLanguage) => Promise<NmorphEmojiLocale>;
@@ -0,0 +1,3 @@
1
+ import { NmorphEmojiLocale } from '../base';
2
+ declare const _default: NmorphEmojiLocale;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { NmorphEmojiLocale } from '../base';
2
+ declare const _default: NmorphEmojiLocale;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { NmorphEmojiLocale } from '../base';
2
+ declare const _default: NmorphEmojiLocale;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  export * from './plugin';
2
2
  export * from './components';
3
+ export * from './emoji';