@nmorph/nmorph-ui-kit 0.0.1 → 0.0.2

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 (107) hide show
  1. package/dist/index.es.js +3897 -3912
  2. package/dist/style.css +1 -1
  3. package/dist/styles/base/_animation.scss +8 -0
  4. package/dist/styles/base/_basic.scss +43 -0
  5. package/dist/styles/base/_colors.scss +14 -5
  6. package/dist/styles/base/_common-mixins.scss +12 -5
  7. package/dist/styles/base/_dimensions.scss +18 -8
  8. package/dist/styles/base/_theme-mixin.scss +12 -10
  9. package/dist/styles/base/_typography.scss +29 -132
  10. package/dist/styles/base/style.scss +3 -7
  11. package/dist/styles/main.scss +1 -2
  12. package/dist/types/components/form/nmorph-form/NmorphForm.vue.d.ts +56 -0
  13. package/dist/types/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts +58 -0
  14. package/dist/types/components/form/nmorph-form/components/nmorph-form-item/components/index.d.ts +3 -0
  15. package/dist/types/components/form/nmorph-form/components/nmorph-form-item/components/nmorph-error-box/NmorphErrorBox.vue.d.ts +38 -0
  16. package/dist/types/components/form/nmorph-form/components/nmorph-form-item/components/nmorph-validation-icon/NmorphValidationIcon.vue.d.ts +30 -0
  17. package/dist/types/components/form/types.d.ts +7 -0
  18. package/dist/types/components/inputs/checkbox/nmorph-checkbox/NmorphCheckbox.vue.d.ts +6 -3
  19. package/dist/types/components/inputs/checkbox/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +4 -22
  20. package/dist/types/components/inputs/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +72 -0
  21. package/dist/types/components/inputs/nmorph-autocomplete/types.d.ts +5 -0
  22. package/dist/types/components/inputs/nmorph-clear-button/NmorphClearButton.vue.d.ts +7 -0
  23. package/dist/types/components/inputs/nmorph-date-picker/NmorphDatePicker.vue.d.ts +70 -0
  24. package/dist/types/components/inputs/nmorph-date-picker/components/nmorph-date-picker-content/NmorphDatePickerContent.vue.d.ts +40 -0
  25. package/dist/types/components/inputs/nmorph-date-picker/components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.d.ts +43 -0
  26. package/dist/types/components/inputs/nmorph-date-picker/components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.d.ts +38 -0
  27. package/dist/types/components/inputs/nmorph-date-picker/components/types.d.ts +6 -0
  28. package/dist/types/components/inputs/nmorph-file-upload/NmorphFileUpload.vue.d.ts +18 -3
  29. package/dist/types/components/inputs/nmorph-number-input/NmorphNumberInput.vue.d.ts +12 -27
  30. package/dist/types/components/inputs/nmorph-select/NmorphSelect.vue.d.ts +19 -8
  31. package/dist/types/components/inputs/nmorph-select-option/NmorphSelectOption.vue.d.ts +4 -4
  32. package/dist/types/components/inputs/nmorph-slider/NmorphSlider.vue.d.ts +4 -4
  33. package/dist/types/components/inputs/nmorph-switch/NmorphSwitch.vue.d.ts +7 -5
  34. package/dist/types/components/inputs/nmorph-text-input/NmorphTextInput.vue.d.ts +16 -30
  35. package/dist/types/components/inputs/nmorph-time-picker/NmorphTimePicker.vue.d.ts +65 -0
  36. package/dist/types/components/inputs/nmorph-time-picker/components/NmorphTimeRoller.vue.d.ts +46 -0
  37. package/dist/types/components/inputs/nmorph-time-picker/types.d.ts +3 -0
  38. package/dist/types/components/inputs/nmorph-time-picker/utils.d.ts +3 -0
  39. package/dist/types/components/inputs/radio/nmorph-radio/NmorphRadio.vue.d.ts +48 -0
  40. package/dist/types/components/inputs/radio/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +7 -20
  41. package/dist/types/components/nmorph-alert/NmorphAlert.vue.d.ts +67 -0
  42. package/dist/types/components/nmorph-alert/types.d.ts +6 -0
  43. package/dist/types/components/nmorph-avatar/NmorphAvatar.vue.d.ts +62 -0
  44. package/dist/types/components/nmorph-avatar/type.d.ts +1 -0
  45. package/dist/types/components/nmorph-backtop/NmorphBacktop.vue.d.ts +48 -0
  46. package/dist/types/components/nmorph-badge/NmorphBadge.vue.d.ts +60 -0
  47. package/dist/types/components/nmorph-breadcrumb/NmorphBreadcrumb.vue.d.ts +36 -0
  48. package/dist/types/components/nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue.d.ts +40 -0
  49. package/dist/types/components/nmorph-breadcrumb/types.d.ts +13 -0
  50. package/dist/types/components/nmorph-button/NmorphButton.vue.d.ts +14 -21
  51. package/dist/types/components/nmorph-calendar/NmorphCalendar.vue.d.ts +75 -0
  52. package/dist/types/components/nmorph-calendar/components/nmorph-calendar-header/NmorphCalendarHeader.vue.d.ts +42 -0
  53. package/dist/types/components/nmorph-calendar/locale.d.ts +1 -0
  54. package/dist/types/components/nmorph-calendar/types.d.ts +12 -0
  55. package/dist/types/components/nmorph-calendar/utils.d.ts +9 -0
  56. package/dist/types/components/nmorph-card/NmorphCard.vue.d.ts +4 -4
  57. package/dist/types/components/nmorph-carousel/NmorphCarousel.vue.d.ts +39 -2
  58. package/dist/types/components/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue.d.ts +30 -0
  59. package/dist/types/components/nmorph-carousel/types.d.ts +5 -0
  60. package/dist/types/components/nmorph-collapse/NmorphCollapse.vue.d.ts +42 -0
  61. package/dist/types/components/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +55 -0
  62. package/dist/types/components/nmorph-collapse/types.d.ts +6 -0
  63. package/dist/types/components/nmorph-dialog/NmorphDialog.vue.d.ts +47 -0
  64. package/dist/types/components/{inputs/common/NmorphValidationIcon.vue.d.ts → nmorph-divider/NmorphDivider.vue.d.ts} +5 -5
  65. package/dist/types/components/nmorph-divider/types.d.ts +1 -0
  66. package/dist/types/components/nmorph-dropdown/NmorphDropdown.vue.d.ts +55 -0
  67. package/dist/types/components/nmorph-icon/NmorphIcon.vue.d.ts +15 -15
  68. package/dist/types/components/nmorph-icon/NmorphIconsMap.d.ts +2 -4
  69. package/dist/types/components/nmorph-icon/types.d.ts +3 -3
  70. package/dist/types/components/nmorph-image/NmorphImage.vue.d.ts +6 -8
  71. package/dist/types/components/nmorph-link/NmorphLink.vue.d.ts +9 -9
  72. package/dist/types/components/nmorph-overlay/NmorphOverlay.vue.d.ts +2 -1
  73. package/dist/types/components/nmorph-pagination/NmorphPagination.vue.d.ts +56 -0
  74. package/dist/types/components/nmorph-progress/NmorphProgress.vue.d.ts +66 -0
  75. package/dist/types/components/nmorph-progress/types.d.ts +6 -0
  76. package/dist/types/components/nmorph-scroll/NmorphScroll.vue.d.ts +69 -0
  77. package/dist/types/components/nmorph-skeleton/NmorphSkeleton.vue.d.ts +45 -0
  78. package/dist/types/components/{nmorph-error-box/NmorphErrorBox.vue.d.ts → nmorph-skeleton/components/NmorphSkeletonItem.vue.d.ts} +5 -9
  79. package/dist/types/components/nmorph-skeleton/types.d.ts +1 -0
  80. package/dist/types/components/nmorph-sort-button/NmorphSortButton.vue.d.ts +28 -0
  81. package/dist/types/components/nmorph-tabs/NmorphTabs.vue.d.ts +47 -0
  82. package/dist/types/components/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue.d.ts +40 -0
  83. package/dist/types/components/nmorph-tabs/type.d.ts +11 -0
  84. package/dist/types/components/nmorph-tabs/utils.d.ts +3 -0
  85. package/dist/types/components/nmorph-tag/NmorphTag.vue.d.ts +5 -5
  86. package/dist/types/components/nmorph-tooltip/NmorphTooltip.vue.d.ts +5 -23
  87. package/dist/types/components/table/nmorph-table/NmorphTable.vue.d.ts +59 -0
  88. package/dist/types/components/table/nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue.d.ts +30 -0
  89. package/dist/types/components/table/nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue.d.ts +48 -0
  90. package/dist/types/components/table/types.d.ts +19 -0
  91. package/dist/types/components.d.ts +32 -2
  92. package/dist/types/hooks/index.d.ts +3 -0
  93. package/dist/types/hooks/useFieldValidation.d.ts +53 -0
  94. package/dist/types/hooks/useFormValidation.d.ts +10 -0
  95. package/dist/types/hooks/usePlacement.d.ts +17 -0
  96. package/dist/types/types/common.d.ts +77 -0
  97. package/dist/types/utils/create-modifiers.d.ts +4 -1
  98. package/dist/types/utils/deep-clone.d.ts +1 -0
  99. package/dist/types/utils/generateUUID.d.ts +1 -0
  100. package/dist/types/utils/index.d.ts +3 -0
  101. package/dist/types/utils/is-string-html.d.ts +1 -0
  102. package/package.json +1 -1
  103. package/dist/styles/base/_transition.scss +0 -6
  104. package/dist/types/hooks/useValidation.d.ts +0 -55
  105. package/dist/types/types/common.enums.d.ts +0 -46
  106. /package/dist/types/components/inputs/nmorph-select-option/{types/index.d.ts → types.d.ts} +0 -0
  107. /package/dist/{styles/packages/style.scss → types/hooks/useEventManager.d.ts} +0 -0
@@ -1,14 +1,14 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { NmorphDirection } from './types';
2
3
  interface IProps {
3
- valid: boolean;
4
- show: boolean;
4
+ direction?: NmorphDirection;
5
5
  }
6
6
  declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
7
- show: boolean;
7
+ direction: string;
8
8
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
9
- show: boolean;
9
+ direction: string;
10
10
  }>>>, {
11
- show: boolean;
11
+ direction: NmorphDirection;
12
12
  }, {}>;
13
13
  export default _default;
14
14
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -0,0 +1 @@
1
+ export type NmorphDirection = 'vertical' | 'horizontal';
@@ -0,0 +1,55 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { NmorphDomElement } from '../../types/common';
3
+ interface IProps {
4
+ open: boolean;
5
+ relativeElement: NmorphDomElement;
6
+ width?: number;
7
+ xOffset?: number;
8
+ yOffset?: number;
9
+ fillWidth?: boolean;
10
+ }
11
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
12
+ width: number;
13
+ xOffset: number;
14
+ yOffset: number;
15
+ fillWidth: boolean;
16
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
17
+ "on-outside-click": () => void;
18
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
19
+ width: number;
20
+ xOffset: number;
21
+ yOffset: number;
22
+ fillWidth: boolean;
23
+ }>>> & {
24
+ "onOn-outside-click"?: (() => any) | undefined;
25
+ }, {
26
+ yOffset: number;
27
+ xOffset: number;
28
+ width: number;
29
+ fillWidth: boolean;
30
+ }, {}>, {
31
+ default?(_: {}): any;
32
+ }>;
33
+ export default _default;
34
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
35
+ type __VLS_TypePropsToRuntimeProps<T> = {
36
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
37
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
38
+ } : {
39
+ type: PropType<T[K]>;
40
+ required: true;
41
+ };
42
+ };
43
+ type __VLS_WithDefaults<P, D> = {
44
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
45
+ default: D[K];
46
+ }> : P[K];
47
+ };
48
+ type __VLS_Prettify<T> = {
49
+ [K in keyof T]: T[K];
50
+ } & {};
51
+ type __VLS_WithTemplateSlots<T, S> = T & {
52
+ new (): {
53
+ $slots: S;
54
+ };
55
+ };
@@ -1,29 +1,29 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { IconName, IconSize } from './types';
2
+ import { NmorphIconName, NmorphIconSize } from './types';
3
3
  interface IProps {
4
- name?: IconName;
5
- size?: keyof typeof IconSize;
4
+ name?: NmorphIconName;
5
+ size?: keyof typeof NmorphIconSize;
6
6
  width?: string;
7
7
  height?: string;
8
8
  path?: string;
9
9
  }
10
10
  declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
11
- name: string;
12
- size: IconSize;
13
- width: string;
14
- height: string;
15
- path: string;
11
+ name: undefined;
12
+ size: string;
13
+ width: undefined;
14
+ height: undefined;
15
+ path: undefined;
16
16
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
17
- name: string;
18
- size: IconSize;
19
- width: string;
20
- height: string;
21
- path: string;
17
+ name: undefined;
18
+ size: string;
19
+ width: undefined;
20
+ height: undefined;
21
+ path: undefined;
22
22
  }>>>, {
23
+ size: "small" | "medium" | "large";
23
24
  path: string;
24
- name: IconName;
25
25
  height: string;
26
- size: "small" | "medium" | "large";
26
+ name: NmorphIconName;
27
27
  width: string;
28
28
  }, {}>, {
29
29
  default?(_: {}): any;
@@ -1,4 +1,2 @@
1
- import { NmorphIconList } from '../../types/common.enums';
2
- export declare const NmorphIconsMap: {
3
- [key in NmorphIconList]: string;
4
- };
1
+ import { NmorphIconList } from '../../types/common';
2
+ export declare const NmorphIconsMap: Record<NmorphIconList, string>;
@@ -1,7 +1,7 @@
1
- import { NmorphIconList } from '../../types/common.enums';
2
- export declare enum IconSize {
1
+ import { NmorphIconList } from '../../types/common';
2
+ export declare enum NmorphIconSize {
3
3
  small = "small",
4
4
  medium = "medium",
5
5
  large = "large"
6
6
  }
7
- export type IconName = keyof typeof NmorphIconList | '';
7
+ export type NmorphIconName = keyof typeof NmorphIconList | '';
@@ -1,17 +1,12 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- declare enum ImageFit {
3
- fill = "fill",
4
- contain = "contain",
5
- cover = "cover",
6
- none = "none",
7
- 'scale-down' = "scale-down"
8
- }
2
+ import { ImageFit } from '../../types/common';
9
3
  interface IProps {
10
4
  src: string;
11
5
  fit?: keyof typeof ImageFit;
12
6
  alt?: string;
13
7
  loadingText?: string;
14
8
  loadFailedText?: string;
9
+ srcset?: string;
15
10
  }
16
11
  declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
17
12
  fit: string;
@@ -19,17 +14,20 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
19
14
  alt: string;
20
15
  loadingText: string;
21
16
  loadFailedText: string;
17
+ srcset: string;
22
18
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
23
19
  fit: string;
24
20
  closeOnOutsideClick: boolean;
25
21
  alt: string;
26
22
  loadingText: string;
27
23
  loadFailedText: string;
24
+ srcset: string;
28
25
  }>>>, {
29
- fit: "fill" | "contain" | "cover" | "none" | "scale-down";
30
26
  alt: string;
27
+ fit: "fill" | "contain" | "cover" | "none" | "scale-down";
31
28
  loadingText: string;
32
29
  loadFailedText: string;
30
+ srcset: string;
33
31
  }, {}>, {
34
32
  loading?(_: {}): any;
35
33
  error?(_: {}): any;
@@ -1,6 +1,6 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { IconName } from '../nmorph-icon/types';
3
- import { Color } from '../../types/common.enums';
2
+ import { NmorphIconName } from '../nmorph-icon/types';
3
+ import { NmorphColor } from '../../types/common';
4
4
  declare enum LinkTarget {
5
5
  self = "_self",
6
6
  blank = "_blank",
@@ -8,16 +8,16 @@ declare enum LinkTarget {
8
8
  top = "_top"
9
9
  }
10
10
  interface IProps {
11
- color?: keyof typeof Color;
11
+ color?: keyof typeof NmorphColor;
12
12
  underline?: boolean;
13
13
  href?: string;
14
14
  text?: string;
15
- iconName?: IconName;
15
+ iconName?: NmorphIconName;
16
16
  target?: keyof typeof LinkTarget;
17
17
  disabled?: boolean;
18
18
  }
19
19
  declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
20
- color: Color;
20
+ color: NmorphColor;
21
21
  href: string;
22
22
  underline: boolean;
23
23
  iconName: string;
@@ -25,7 +25,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
25
25
  target: string;
26
26
  disabled: boolean;
27
27
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
28
- color: Color;
28
+ color: NmorphColor;
29
29
  href: string;
30
30
  underline: boolean;
31
31
  iconName: string;
@@ -33,13 +33,13 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
33
33
  target: string;
34
34
  disabled: boolean;
35
35
  }>>>, {
36
- disabled: boolean;
37
36
  text: string;
37
+ target: "top" | "self" | "blank" | "parent";
38
+ disabled: boolean;
38
39
  color: "accent" | "success" | "error" | "warning";
39
- target: "self" | "blank" | "parent" | "top";
40
40
  underline: boolean;
41
41
  href: string;
42
- iconName: IconName;
42
+ iconName: NmorphIconName;
43
43
  }, {}>, {
44
44
  prepend?(_: {}): any;
45
45
  default?(_: {}): any;
@@ -1,7 +1,8 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
2
  interface IProps {
3
- show?: boolean;
3
+ show: boolean;
4
4
  outsideClickEmitEvent?: boolean;
5
+ transparent?: boolean;
5
6
  }
6
7
  declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
7
8
  show: boolean;
@@ -0,0 +1,56 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ interface IProps {
3
+ total: number;
4
+ range?: [number, number];
5
+ modelValue?: number;
6
+ pagerCount?: number;
7
+ disabled?: boolean;
8
+ hideOnSinglePage?: boolean;
9
+ }
10
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
11
+ range: () => number[];
12
+ modelValue: number;
13
+ pagerCount: number;
14
+ disabled: boolean;
15
+ hideOnSinglePage: boolean;
16
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
17
+ "prev-click": (currentPage: number) => void;
18
+ "next-click": (currentPage: number) => void;
19
+ "update:modelValue": (currentPage: number) => void;
20
+ "update:range": (range: [number, number]) => void;
21
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
22
+ range: () => number[];
23
+ modelValue: number;
24
+ pagerCount: number;
25
+ disabled: boolean;
26
+ hideOnSinglePage: boolean;
27
+ }>>> & {
28
+ "onUpdate:modelValue"?: ((currentPage: number) => any) | undefined;
29
+ "onPrev-click"?: ((currentPage: number) => any) | undefined;
30
+ "onNext-click"?: ((currentPage: number) => any) | undefined;
31
+ "onUpdate:range"?: ((range: [number, number]) => any) | undefined;
32
+ }, {
33
+ modelValue: number;
34
+ disabled: boolean;
35
+ range: [number, number];
36
+ pagerCount: number;
37
+ hideOnSinglePage: boolean;
38
+ }, {}>;
39
+ export default _default;
40
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
41
+ type __VLS_TypePropsToRuntimeProps<T> = {
42
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
43
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
44
+ } : {
45
+ type: PropType<T[K]>;
46
+ required: true;
47
+ };
48
+ };
49
+ type __VLS_WithDefaults<P, D> = {
50
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
51
+ default: D[K];
52
+ }> : P[K];
53
+ };
54
+ type __VLS_Prettify<T> = {
55
+ [K in keyof T]: T[K];
56
+ } & {};
@@ -0,0 +1,66 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { NmorphProgressColorType, NmorphProgressType } from './types';
3
+ interface IProps {
4
+ type?: NmorphProgressType;
5
+ color?: NmorphProgressColorType;
6
+ percentage: number;
7
+ textInside?: boolean;
8
+ showText?: boolean;
9
+ indeterminate?: boolean;
10
+ circleSize?: number;
11
+ strokeWidth?: number;
12
+ }
13
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
14
+ height: string;
15
+ type: string;
16
+ color: string;
17
+ textInside: boolean;
18
+ showText: boolean;
19
+ indeterminate: boolean;
20
+ circleSize: number;
21
+ strokeWidth: number;
22
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
23
+ height: string;
24
+ type: string;
25
+ color: string;
26
+ textInside: boolean;
27
+ showText: boolean;
28
+ indeterminate: boolean;
29
+ circleSize: number;
30
+ strokeWidth: number;
31
+ }>>>, {
32
+ type: NmorphProgressType;
33
+ color: NmorphProgressColorType;
34
+ textInside: boolean;
35
+ showText: boolean;
36
+ indeterminate: boolean;
37
+ circleSize: number;
38
+ strokeWidth: number;
39
+ }, {}>, {
40
+ "inner-text"?(_: {}): any;
41
+ "right-sight"?(_: {}): any;
42
+ "circle-inner-part"?(_: {}): any;
43
+ }>;
44
+ export default _default;
45
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
46
+ type __VLS_TypePropsToRuntimeProps<T> = {
47
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
48
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
49
+ } : {
50
+ type: PropType<T[K]>;
51
+ required: true;
52
+ };
53
+ };
54
+ type __VLS_WithDefaults<P, D> = {
55
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
56
+ default: D[K];
57
+ }> : P[K];
58
+ };
59
+ type __VLS_Prettify<T> = {
60
+ [K in keyof T]: T[K];
61
+ } & {};
62
+ type __VLS_WithTemplateSlots<T, S> = T & {
63
+ new (): {
64
+ $slots: S;
65
+ };
66
+ };
@@ -0,0 +1,6 @@
1
+ export type NmorphProgressType = 'linear' | 'circle';
2
+ export type NmorphProgressColorFn = (percentage: number) => string;
3
+ export type NmorphProgressColorType = string | {
4
+ color: string;
5
+ percentage: number;
6
+ }[] | NmorphProgressColorFn;
@@ -0,0 +1,69 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { NmorphCoords } from '../../types/common';
3
+ type Coords = NmorphCoords<number>;
4
+ declare enum NmorphOverflowProp {
5
+ auto = "auto",
6
+ hidden = "hidden",
7
+ scroll = "scroll"
8
+ }
9
+ interface IProps {
10
+ modelValue?: Coords;
11
+ scrollYProp?: keyof typeof NmorphOverflowProp;
12
+ scrollXProp?: keyof typeof NmorphOverflowProp;
13
+ scrollEndDelay?: number;
14
+ }
15
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
16
+ modelValue: () => {
17
+ x: number;
18
+ y: number;
19
+ };
20
+ scrollYProp: string;
21
+ scrollXProp: string;
22
+ scrollEndDelay: number;
23
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
24
+ "on-scroll": (event: Event) => void;
25
+ "update:modelValue": (coords: Coords) => void;
26
+ "on-scroll-end": () => void;
27
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
28
+ modelValue: () => {
29
+ x: number;
30
+ y: number;
31
+ };
32
+ scrollYProp: string;
33
+ scrollXProp: string;
34
+ scrollEndDelay: number;
35
+ }>>> & {
36
+ "onUpdate:modelValue"?: ((coords: Coords) => any) | undefined;
37
+ "onOn-scroll"?: ((event: Event) => any) | undefined;
38
+ "onOn-scroll-end"?: (() => any) | undefined;
39
+ }, {
40
+ modelValue: Coords;
41
+ scrollYProp: "hidden" | "auto" | "scroll";
42
+ scrollXProp: "hidden" | "auto" | "scroll";
43
+ scrollEndDelay: number;
44
+ }, {}>, {
45
+ default?(_: {}): any;
46
+ }>;
47
+ export default _default;
48
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
49
+ type __VLS_TypePropsToRuntimeProps<T> = {
50
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
51
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
52
+ } : {
53
+ type: PropType<T[K]>;
54
+ required: true;
55
+ };
56
+ };
57
+ type __VLS_WithDefaults<P, D> = {
58
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
59
+ default: D[K];
60
+ }> : P[K];
61
+ };
62
+ type __VLS_Prettify<T> = {
63
+ [K in keyof T]: T[K];
64
+ } & {};
65
+ type __VLS_WithTemplateSlots<T, S> = T & {
66
+ new (): {
67
+ $slots: S;
68
+ };
69
+ };
@@ -0,0 +1,45 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ interface IProps {
3
+ animated?: boolean;
4
+ loading?: boolean;
5
+ rows?: number;
6
+ }
7
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
8
+ animated: boolean;
9
+ loading: boolean;
10
+ rows: number;
11
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
12
+ animated: boolean;
13
+ loading: boolean;
14
+ rows: number;
15
+ }>>>, {
16
+ loading: boolean;
17
+ rows: number;
18
+ animated: boolean;
19
+ }, {}>, {
20
+ template?(_: {}): any;
21
+ default?(_: {}): any;
22
+ }>;
23
+ export default _default;
24
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
+ type __VLS_TypePropsToRuntimeProps<T> = {
26
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
27
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
28
+ } : {
29
+ type: PropType<T[K]>;
30
+ required: true;
31
+ };
32
+ };
33
+ type __VLS_WithDefaults<P, D> = {
34
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
35
+ default: D[K];
36
+ }> : P[K];
37
+ };
38
+ type __VLS_Prettify<T> = {
39
+ [K in keyof T]: T[K];
40
+ } & {};
41
+ type __VLS_WithTemplateSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
@@ -1,18 +1,14 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { ControlComponentHeight } from '../../types/common.enums';
2
+ import { NmorphSkeletonItemPropsType } from '../types';
3
3
  interface IProps {
4
- height?: keyof typeof ControlComponentHeight;
5
- errors: string[];
4
+ variant?: NmorphSkeletonItemPropsType;
6
5
  }
7
6
  declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
8
- height: ControlComponentHeight;
9
- errors: () => never[];
7
+ variant: string;
10
8
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
11
- height: ControlComponentHeight;
12
- errors: () => never[];
9
+ variant: string;
13
10
  }>>>, {
14
- height: "default" | "thick" | "thin";
15
- errors: string[];
11
+ variant: NmorphSkeletonItemPropsType;
16
12
  }, {}>;
17
13
  export default _default;
18
14
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -0,0 +1 @@
1
+ export type NmorphSkeletonItemPropsType = 'text' | 'h1' | 'image' | 'circle';
@@ -0,0 +1,28 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { NmorphSortOrderType } from '../../types/common';
3
+ interface IProps {
4
+ value: NmorphSortOrderType;
5
+ }
6
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
7
+ sort: (val: NmorphSortOrderType) => void;
8
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {}>>> & {
9
+ onSort?: ((val: NmorphSortOrderType) => any) | undefined;
10
+ }, {}, {}>;
11
+ export default _default;
12
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
+ type __VLS_TypePropsToRuntimeProps<T> = {
14
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
15
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
16
+ } : {
17
+ type: PropType<T[K]>;
18
+ required: true;
19
+ };
20
+ };
21
+ type __VLS_WithDefaults<P, D> = {
22
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
23
+ default: D[K];
24
+ }> : P[K];
25
+ };
26
+ type __VLS_Prettify<T> = {
27
+ [K in keyof T]: T[K];
28
+ } & {};
@@ -0,0 +1,47 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { NmorphTableModelType } from './type';
3
+ interface IProps {
4
+ modelValue?: NmorphTableModelType;
5
+ stretch?: boolean;
6
+ }
7
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
8
+ modelValue: number;
9
+ stretch: boolean;
10
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
11
+ "update:model-value": (value: NmorphTableModelType) => void;
12
+ "tab-change": (value: NmorphTableModelType) => void;
13
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
14
+ modelValue: number;
15
+ stretch: boolean;
16
+ }>>> & {
17
+ "onUpdate:model-value"?: ((value: NmorphTableModelType) => any) | undefined;
18
+ "onTab-change"?: ((value: NmorphTableModelType) => any) | undefined;
19
+ }, {
20
+ modelValue: NmorphTableModelType;
21
+ stretch: boolean;
22
+ }, {}>, {
23
+ default?(_: {}): any;
24
+ }>;
25
+ export default _default;
26
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
27
+ type __VLS_TypePropsToRuntimeProps<T> = {
28
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
29
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
30
+ } : {
31
+ type: PropType<T[K]>;
32
+ required: true;
33
+ };
34
+ };
35
+ type __VLS_WithDefaults<P, D> = {
36
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
37
+ default: D[K];
38
+ }> : P[K];
39
+ };
40
+ type __VLS_Prettify<T> = {
41
+ [K in keyof T]: T[K];
42
+ } & {};
43
+ type __VLS_WithTemplateSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
@@ -0,0 +1,40 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { NmorphTabPaneProps } from '../../type';
3
+ interface IProps extends NmorphTabPaneProps {
4
+ }
5
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
6
+ label: string;
7
+ disabled: boolean;
8
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
9
+ label: string;
10
+ disabled: boolean;
11
+ }>>>, {
12
+ label: string;
13
+ disabled: boolean;
14
+ }, {}>, {
15
+ label?(_: {}): any;
16
+ default?(_: {}): any;
17
+ }>;
18
+ export default _default;
19
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
20
+ type __VLS_TypePropsToRuntimeProps<T> = {
21
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
22
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
23
+ } : {
24
+ type: PropType<T[K]>;
25
+ required: true;
26
+ };
27
+ };
28
+ type __VLS_WithDefaults<P, D> = {
29
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
30
+ default: D[K];
31
+ }> : P[K];
32
+ };
33
+ type __VLS_Prettify<T> = {
34
+ [K in keyof T]: T[K];
35
+ } & {};
36
+ type __VLS_WithTemplateSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -0,0 +1,11 @@
1
+ import { Ref } from 'vue';
2
+ export type NmorphTableModelType = string | number;
3
+ export interface NmorphTabPaneProps {
4
+ label?: string;
5
+ name: string;
6
+ disabled?: boolean;
7
+ }
8
+ export interface NmorphTabsDataProvider {
9
+ tabsData: Ref<NmorphTabPaneProps[]>;
10
+ tabsIdentifier: string;
11
+ }
@@ -0,0 +1,3 @@
1
+ import { NmorphTableModelType } from './type';
2
+ export declare const getTabLabelId: (tabsIdentifier: string | undefined, name: NmorphTableModelType) => string | undefined;
3
+ export declare const getTabContentId: (tabsIdentifier: string | undefined, name: NmorphTableModelType) => string | undefined;