@nmorph/nmorph-ui-kit 1.1.1 → 1.1.4

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 (121) hide show
  1. package/dist/index.d.ts +2 -0
  2. package/dist/index.es.js +3503 -3411
  3. package/dist/index.umd.js +216 -195
  4. package/dist/src/components/basic/index.d.ts +9 -0
  5. package/dist/src/components/basic/nmorph-button/NmorphButton.vue.d.ts +39 -0
  6. package/dist/src/components/basic/nmorph-button/types.d.ts +15 -0
  7. package/dist/src/components/basic/nmorph-icon/NmorphIcon.vue.d.ts +22 -0
  8. package/dist/src/components/basic/nmorph-icon/NmorphIcons.d.ts +260 -0
  9. package/dist/src/components/basic/nmorph-icon/types.d.ts +5 -0
  10. package/dist/src/components/basic/nmorph-link/NmorphLink.vue.d.ts +29 -0
  11. package/dist/src/components/basic/nmorph-link/types.d.ts +6 -0
  12. package/dist/src/components/basic/nmorph-scroll/NmorphScroll.vue.d.ts +49 -0
  13. package/dist/src/components/basic/nmorph-scroll/types.d.ts +14 -0
  14. package/dist/src/components/data/index.d.ts +28 -0
  15. package/dist/src/components/data/nmorph-avatar/NmorphAvatar.vue.d.ts +21 -0
  16. package/dist/src/components/data/nmorph-badge/NmorphBadge.vue.d.ts +31 -0
  17. package/dist/src/components/data/nmorph-calendar/NmorphCalendar.vue.d.ts +42 -0
  18. package/dist/src/components/data/nmorph-calendar/hooks/index.d.ts +2 -0
  19. package/dist/src/components/data/nmorph-calendar/hooks/use-calendar-texts.d.ts +4 -0
  20. package/dist/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.d.ts +25 -0
  21. package/dist/src/components/data/nmorph-calendar/types.d.ts +12 -0
  22. package/dist/src/components/data/nmorph-calendar/utils.d.ts +10 -0
  23. package/dist/src/components/data/nmorph-card/NmorphCard.vue.d.ts +20 -0
  24. package/dist/src/components/data/nmorph-carousel/NmorphCarousel.vue.d.ts +19 -0
  25. package/dist/src/components/data/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue.d.ts +13 -0
  26. package/dist/src/components/data/nmorph-carousel/types.d.ts +5 -0
  27. package/dist/src/components/data/nmorph-collapse/NmorphCollapse.vue.d.ts +21 -0
  28. package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +32 -0
  29. package/dist/src/components/data/nmorph-collapse/types.d.ts +9 -0
  30. package/dist/src/components/data/nmorph-image/NmorphImage.vue.d.ts +30 -0
  31. package/dist/src/components/data/nmorph-image-preview/NmorphImagePreview.vue.d.ts +23 -0
  32. package/dist/src/components/data/nmorph-image-preview/types.d.ts +5 -0
  33. package/dist/src/components/data/nmorph-pagination/NmorphPagination.vue.d.ts +23 -0
  34. package/dist/src/components/data/nmorph-progress/NmorphProgress.vue.d.ts +29 -0
  35. package/dist/src/components/data/nmorph-progress/types.d.ts +6 -0
  36. package/dist/src/components/data/nmorph-skeleton/NmorphSkeleton.vue.d.ts +20 -0
  37. package/dist/src/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue.d.ts +16 -0
  38. package/dist/src/components/data/nmorph-skeleton/types.d.ts +5 -0
  39. package/dist/src/components/data/nmorph-table/NmorphTable.vue.d.ts +24 -0
  40. package/dist/src/components/data/nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue.d.ts +13 -0
  41. package/dist/src/components/data/nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue.d.ts +23 -0
  42. package/dist/src/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue.d.ts +11 -0
  43. package/dist/src/components/data/nmorph-table/types.d.ts +21 -0
  44. package/dist/src/components/data/nmorph-tag-list/NmorphTagList.vue.d.ts +13 -0
  45. package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.d.ts +15 -0
  46. package/dist/src/components/data/nmorph-tag-list/types.d.ts +8 -0
  47. package/dist/src/components/feedback/index.d.ts +4 -0
  48. package/dist/src/components/feedback/nmorph-alert/NmorphAlert.vue.d.ts +30 -0
  49. package/dist/src/components/feedback/nmorph-alert/types.d.ts +18 -0
  50. package/dist/src/components/feedback/nmorph-dialog/NmorphDialog.vue.d.ts +38 -0
  51. package/dist/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue.d.ts +25 -0
  52. package/dist/src/components/form/index.d.ts +22 -0
  53. package/dist/src/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +36 -0
  54. package/dist/src/components/form/nmorph-autocomplete/types.d.ts +5 -0
  55. package/dist/src/components/form/nmorph-checkbox/NmorphCheckbox.vue.d.ts +24 -0
  56. package/dist/src/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +26 -0
  57. package/dist/src/components/form/nmorph-date-picker/NmorphDatePicker.vue.d.ts +24 -0
  58. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-clear-button/NmorphClearButton.vue.d.ts +7 -0
  59. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-content/NmorphDatePickerContent.vue.d.ts +17 -0
  60. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.d.ts +21 -0
  61. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.d.ts +17 -0
  62. package/dist/src/components/form/nmorph-file-upload/NmorphFileUpload.vue.d.ts +34 -0
  63. package/dist/src/components/form/nmorph-file-upload/types.d.ts +61 -0
  64. package/dist/src/components/form/nmorph-form/NmorphForm.vue.d.ts +20 -0
  65. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts +25 -0
  66. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/index.d.ts +3 -0
  67. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue.d.ts +13 -0
  68. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.vue.d.ts +9 -0
  69. package/dist/src/components/form/nmorph-form/types.d.ts +12 -0
  70. package/dist/src/components/form/nmorph-form/use-form-item-input.d.ts +7 -0
  71. package/dist/src/components/form/nmorph-number-input/NmorphNumberInput.vue.d.ts +25 -0
  72. package/dist/src/components/form/nmorph-radio/NmorphRadio.vue.d.ts +26 -0
  73. package/dist/src/components/form/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +28 -0
  74. package/dist/src/components/form/nmorph-select/NmorphSelect.vue.d.ts +35 -0
  75. package/dist/src/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.d.ts +19 -0
  76. package/dist/src/components/form/nmorph-select/types.d.ts +9 -0
  77. package/dist/src/components/form/nmorph-select-button/NmorphSelectButton.vue.d.ts +25 -0
  78. package/dist/src/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue.d.ts +18 -0
  79. package/dist/src/components/form/nmorph-select-button/types.d.ts +8 -0
  80. package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +22 -0
  81. package/dist/src/components/form/nmorph-switch/NmorphSwitch.vue.d.ts +33 -0
  82. package/dist/src/components/form/nmorph-text-input/NmorphTextInput.vue.d.ts +36 -0
  83. package/dist/src/components/index.d.ts +7 -0
  84. package/dist/src/components/navigation/index.d.ts +9 -0
  85. package/dist/src/components/navigation/nmorph-backtop/NmorphBacktop.vue.d.ts +26 -0
  86. package/dist/src/components/navigation/nmorph-breadcrumb/NmorphBreadcrumb.vue.d.ts +15 -0
  87. package/dist/src/components/navigation/nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue.d.ts +17 -0
  88. package/dist/src/components/navigation/nmorph-breadcrumb/types.d.ts +14 -0
  89. package/dist/src/components/navigation/nmorph-dropdown/NmorphDropdown.vue.d.ts +28 -0
  90. package/dist/src/components/navigation/nmorph-tabs/NmorphTabs.vue.d.ts +26 -0
  91. package/dist/src/components/navigation/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue.d.ts +22 -0
  92. package/dist/src/components/navigation/nmorph-tabs/type.d.ts +12 -0
  93. package/dist/src/components/navigation/nmorph-tabs/utils.d.ts +3 -0
  94. package/dist/src/components/others/index.d.ts +3 -0
  95. package/dist/src/components/others/nmorph-divider/NmorphDivider.vue.d.ts +9 -0
  96. package/dist/src/components/others/nmorph-divider/types.d.ts +1 -0
  97. package/dist/src/components/others/nmorph-overlay/NmorphOverlay.vue.d.ts +20 -0
  98. package/dist/src/components/providers/index.d.ts +3 -0
  99. package/dist/src/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.d.ts +14 -0
  100. package/dist/src/components/providers/nmorph-notification-provider/types.d.ts +14 -0
  101. package/dist/src/hooks/index.d.ts +7 -0
  102. package/dist/src/hooks/use-common-styles.d.ts +1 -0
  103. package/dist/src/hooks/use-field-validation.d.ts +53 -0
  104. package/dist/src/hooks/use-form-validation.d.ts +13 -0
  105. package/dist/src/hooks/use-nmorph-translation.d.ts +7 -0
  106. package/dist/src/hooks/use-placement.d.ts +20 -0
  107. package/dist/src/hooks/use-style-class-mixins.d.ts +1 -0
  108. package/dist/src/main.d.ts +9 -0
  109. package/dist/src/outside-hooks/index.d.ts +4 -0
  110. package/dist/src/outside-hooks/use-nmorph-browser.d.ts +14 -0
  111. package/dist/src/outside-hooks/use-nmorph-notification.d.ts +7 -0
  112. package/dist/src/outside-hooks/use-nmorph-theme.d.ts +2 -0
  113. package/dist/src/outside-hooks/use-nmorph.d.ts +2 -0
  114. package/dist/src/outside-utils/index.d.ts +3 -0
  115. package/dist/src/types/index.d.ts +182 -0
  116. package/dist/src/utils/case-transformers.d.ts +5 -0
  117. package/dist/src/utils/common.d.ts +3 -0
  118. package/dist/src/utils/create-modifiers.d.ts +4 -0
  119. package/dist/src/utils/index.d.ts +4 -0
  120. package/dist/src/utils/theme-style.d.ts +15 -0
  121. package/package.json +1 -1
@@ -0,0 +1,36 @@
1
+ import { INmorphCommonInputProps } from '../../../types';
2
+ import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ interface INmorphProps extends INmorphCommonInputProps {
4
+ placeholder?: string;
5
+ typePassword?: boolean;
6
+ modelValue?: string;
7
+ clearable?: boolean;
8
+ }
9
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
10
+ inputDOMRef: Ref<HTMLElement, HTMLElement>;
11
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
12
+ blur: () => any;
13
+ focus: () => any;
14
+ "update:model-value": (val: string) => any;
15
+ "on-enter": () => any;
16
+ }, string, PublicProps, Readonly<INmorphProps> & Readonly<{
17
+ onBlur?: () => any;
18
+ onFocus?: () => any;
19
+ "onUpdate:model-value"?: (val: string) => any;
20
+ "onOn-enter"?: () => any;
21
+ }>, {
22
+ height: "default" | "thick" | "thin";
23
+ disabled: boolean;
24
+ placeholder: string;
25
+ modelValue: string;
26
+ clearable: boolean;
27
+ typePassword: boolean;
28
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
29
+ "prepend-icon"?(_: {}): any;
30
+ }>;
31
+ export default _default;
32
+ type __VLS_WithTemplateSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
@@ -0,0 +1,7 @@
1
+ export * from './basic';
2
+ export * from './data';
3
+ export * from './feedback';
4
+ export * from './form';
5
+ export * from './navigation';
6
+ export * from './others';
7
+ export * from './providers';
@@ -0,0 +1,9 @@
1
+ export { default as NmorphBacktop } from './nmorph-backtop/NmorphBacktop.vue';
2
+ export { default as NmorphBreadcrumb } from './nmorph-breadcrumb/NmorphBreadcrumb.vue';
3
+ export * from './nmorph-breadcrumb/types';
4
+ export { default as NmorphBreadcrumbItem } from './nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue';
5
+ export { default as NmorphDropdown } from './nmorph-dropdown/NmorphDropdown.vue';
6
+ export { default as NmorphTabs } from './nmorph-tabs/NmorphTabs.vue';
7
+ export * from './nmorph-tabs/type';
8
+ export * from './nmorph-tabs/utils';
9
+ export { default as NmorphTabPane } from './nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue';
@@ -0,0 +1,26 @@
1
+ import { NmorphElementDesignType } from '../../../types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ interface INmorphProps {
4
+ right?: number;
5
+ bottom?: number;
6
+ visibilityHeight?: number;
7
+ design?: NmorphElementDesignType;
8
+ }
9
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
10
+ click: () => any;
11
+ }, string, PublicProps, Readonly<INmorphProps> & Readonly<{
12
+ onClick?: () => any;
13
+ }>, {
14
+ right: number;
15
+ design: NmorphElementDesignType;
16
+ bottom: number;
17
+ visibilityHeight: number;
18
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
19
+ default?(_: {}): any;
20
+ }>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,15 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ interface INmorphProps {
3
+ separator?: string;
4
+ }
5
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
6
+ separator: string;
7
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
8
+ default?(_: {}): any;
9
+ }>;
10
+ export default _default;
11
+ type __VLS_WithTemplateSlots<T, S> = T & {
12
+ new (): {
13
+ $slots: S;
14
+ };
15
+ };
@@ -0,0 +1,17 @@
1
+ import { INmorphBreadcrumbItemProps } from '../../../..';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { RouteLocationAsRelativeGeneric, RouteLocationAsPathGeneric } from 'vue-router';
4
+ interface INmorphProps extends INmorphBreadcrumbItemProps {
5
+ }
6
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
7
+ replace: boolean;
8
+ to: string | RouteLocationAsRelativeGeneric | RouteLocationAsPathGeneric;
9
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
10
+ default?(_: {}): any;
11
+ }>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,14 @@
1
+ import { Ref } from 'vue';
2
+ import { RouteLocationRaw } from 'vue-router';
3
+ export interface INmorphBreadcrumbItemProps {
4
+ to?: string | RouteLocationRaw;
5
+ replace?: boolean;
6
+ }
7
+ export interface NmorphBreadcrumbInjectionItemWithId extends INmorphBreadcrumbItemProps {
8
+ itemId: string;
9
+ }
10
+ export type NmorphBreadcrumbsType = Ref<NmorphBreadcrumbInjectionItemWithId[]>;
11
+ export interface NmorphBreadcrumbInjection {
12
+ breadcrumbs: NmorphBreadcrumbsType;
13
+ breadcrumbId: string;
14
+ }
@@ -0,0 +1,28 @@
1
+ import { NmorphDomElementType } from '../../../types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ interface INmorphProps {
4
+ open: boolean;
5
+ relativeElement: NmorphDomElementType;
6
+ width?: number;
7
+ xOffset?: number;
8
+ yOffset?: number;
9
+ fillWidth?: boolean;
10
+ }
11
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
12
+ "on-outside-click": () => any;
13
+ }, string, PublicProps, Readonly<INmorphProps> & Readonly<{
14
+ "onOn-outside-click"?: () => any;
15
+ }>, {
16
+ width: number;
17
+ xOffset: number;
18
+ yOffset: number;
19
+ fillWidth: boolean;
20
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
21
+ default?(_: {}): any;
22
+ }>;
23
+ export default _default;
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,26 @@
1
+ import { INmorphTabPaneProps, NmorphTableModelType } from '../..';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ interface INmorphProps {
4
+ modelValue?: NmorphTableModelType;
5
+ stretch?: boolean;
6
+ panes?: Array<INmorphTabPaneProps>;
7
+ }
8
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
9
+ "update:model-value": (value: NmorphTableModelType) => any;
10
+ "tab-change": (value: NmorphTableModelType) => any;
11
+ }, string, PublicProps, Readonly<INmorphProps> & Readonly<{
12
+ "onUpdate:model-value"?: (value: NmorphTableModelType) => any;
13
+ "onTab-change"?: (value: NmorphTableModelType) => any;
14
+ }>, {
15
+ modelValue: NmorphTableModelType;
16
+ stretch: boolean;
17
+ panes: INmorphTabPaneProps[];
18
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
19
+ default?(_: {}): any;
20
+ }>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,22 @@
1
+ import { INmorphTabPaneProps } from '../../../..';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ interface INmorphProps extends INmorphTabPaneProps {
4
+ }
5
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
6
+ disabled: boolean;
7
+ label: string;
8
+ content: string;
9
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
10
+ label?(_: {
11
+ scope: INmorphTabPaneProps;
12
+ }): any;
13
+ default?(_: {
14
+ scope: INmorphTabPaneProps;
15
+ }): any;
16
+ }>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,12 @@
1
+ import { Ref } from 'vue';
2
+ export type NmorphTableModelType = string | number;
3
+ export interface INmorphTabPaneProps {
4
+ label?: string;
5
+ name: string;
6
+ disabled?: boolean;
7
+ content?: string;
8
+ }
9
+ export interface INmorphTabsDataProvider {
10
+ tabsData: Ref<INmorphTabPaneProps[]>;
11
+ tabsIdentifier: string;
12
+ }
@@ -0,0 +1,3 @@
1
+ import { NmorphTableModelType } from './type';
2
+ export declare const getTabLabelId: (tabsIdentifier: string | undefined, name: NmorphTableModelType) => string;
3
+ export declare const getTabContentId: (tabsIdentifier: string | undefined, name: NmorphTableModelType) => string;
@@ -0,0 +1,3 @@
1
+ export { default as NmorphDivider } from './nmorph-divider/NmorphDivider.vue';
2
+ export * from './nmorph-divider/types';
3
+ export { default as NmorphOverlay } from './nmorph-overlay/NmorphOverlay.vue';
@@ -0,0 +1,9 @@
1
+ import { NmorphDirectionType } from '../..';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ interface INmorphProps {
4
+ direction?: NmorphDirectionType;
5
+ }
6
+ declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
7
+ direction: NmorphDirectionType;
8
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
9
+ export default _default;
@@ -0,0 +1 @@
1
+ export type NmorphDirectionType = 'vertical' | 'horizontal';
@@ -0,0 +1,20 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ interface INmorphProps {
3
+ show: boolean;
4
+ transparent?: boolean;
5
+ }
6
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
7
+ "on-outside-click": () => any;
8
+ }, string, PublicProps, Readonly<INmorphProps> & Readonly<{
9
+ "onOn-outside-click"?: () => any;
10
+ }>, {
11
+ transparent: boolean;
12
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
13
+ default?(_: {}): any;
14
+ }>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,3 @@
1
+ import { default as NmorphNotificationProvider } from './nmorph-notification-provider/NmorphNotificationProvider.vue';
2
+ export * from './nmorph-notification-provider/types';
3
+ export { NmorphNotificationProvider };
@@ -0,0 +1,14 @@
1
+ import { INmorphNotification, NmorphNotificationPlacement } from '..';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ interface INmorphProps {
4
+ notifications: INmorphNotification[];
5
+ placement?: keyof typeof NmorphNotificationPlacement;
6
+ zIndex?: number;
7
+ quantity?: number;
8
+ }
9
+ declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
10
+ zIndex: number;
11
+ placement: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
12
+ quantity: number;
13
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
14
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { INmorphAlertProps } from '../../../main';
2
+ export interface INmorphNotification extends INmorphAlertProps {
3
+ id?: string;
4
+ duration?: number;
5
+ width?: string;
6
+ }
7
+ export declare enum NmorphNotificationPlacement {
8
+ 'top-left' = "top-left",
9
+ 'top-center' = "top-center",
10
+ 'top-right' = "top-right",
11
+ 'bottom-left' = "bottom-left",
12
+ 'bottom-center' = "bottom-center",
13
+ 'bottom-right' = "bottom-right"
14
+ }
@@ -0,0 +1,7 @@
1
+ export * from './use-field-validation';
2
+ export * from './use-form-validation';
3
+ export * from './use-placement';
4
+ export * from '../outside-hooks/use-nmorph-theme';
5
+ export * from './use-nmorph-translation';
6
+ export * from './use-style-class-mixins';
7
+ export * from './use-common-styles';
@@ -0,0 +1 @@
1
+ export declare const useCommonStyles: () => void;
@@ -0,0 +1,53 @@
1
+ import { NmorphAvailableFormValueType } from '../components/form/nmorph-form/types';
2
+ import { Ref } from 'vue';
3
+ export declare const enum NmorphArrayValidationOperator {
4
+ 'contains-one' = "contains-one",
5
+ 'not-contains' = "not-contains",
6
+ 'full-eq' = "full-eq"
7
+ }
8
+ export declare enum NmorphNumberCompareOperator {
9
+ 'eq' = "eq",
10
+ 'gte' = "gte",
11
+ 'lte' = "lte",
12
+ 'gt' = "gt",
13
+ 'lt' = "lt"
14
+ }
15
+ export declare enum NmorphBooleanCompareOperator {
16
+ 'eq' = "eq",
17
+ 'not-eq' = "not-eq"
18
+ }
19
+ export interface INmorphRule {
20
+ pattern?: RegExp;
21
+ numberCompareType?: keyof typeof NmorphNumberCompareOperator;
22
+ booleanCompareType?: keyof typeof NmorphBooleanCompareOperator;
23
+ arrayCompareType?: keyof typeof NmorphArrayValidationOperator;
24
+ compareValue?: number | string | string[];
25
+ error: string;
26
+ }
27
+ export type NmorphValidationInputValueType = NmorphAvailableFormValueType | null;
28
+ export type NmorphRulesType = INmorphRule[];
29
+ export interface INmorphUseValidationPayload {
30
+ inputValue: NmorphValidationInputValueType;
31
+ rules: NmorphRulesType | [];
32
+ }
33
+ export interface INmorphTextValidationRule extends INmorphRule {
34
+ pattern: RegExp;
35
+ }
36
+ export interface INmorphNumberValidationRule extends INmorphRule {
37
+ numberCompareType: keyof typeof NmorphNumberCompareOperator;
38
+ compareValue: number;
39
+ }
40
+ export interface INmorphRadioGroupValidationRule extends INmorphRule {
41
+ booleanCompareType: NmorphBooleanCompareOperator;
42
+ compareValue: string;
43
+ }
44
+ export interface INmorphCheckboxGroupValidationRule extends INmorphRule {
45
+ arrayCompareType: keyof typeof NmorphArrayValidationOperator;
46
+ compareValue: string[];
47
+ }
48
+ export declare const useFieldValidation: (data: INmorphUseValidationPayload) => {
49
+ touched: Ref<boolean, boolean>;
50
+ valid: Ref<boolean, boolean>;
51
+ errors: Ref<string[], string[]>;
52
+ validate: () => void;
53
+ };
@@ -0,0 +1,13 @@
1
+ import { Ref } from 'vue';
2
+ import { NmorphFormValueType } from '../components/form/nmorph-form/types';
3
+ export interface INmorphUseFormValidation {
4
+ fields: Record<string, {
5
+ touched: Ref<boolean>;
6
+ valid: Ref<boolean>;
7
+ errors: Ref<string[]>;
8
+ validate: () => void;
9
+ }>;
10
+ isFormValid: Ref<boolean>;
11
+ isAnyTouched: Ref<boolean>;
12
+ }
13
+ export declare const useFormValidation: (formData: NmorphFormValueType, validateFormOnLoad?: boolean) => INmorphUseFormValidation;
@@ -0,0 +1,7 @@
1
+ import { INmorphApplyTranslation, Locale, TranslateMessages } from '../types';
2
+ import { I18n } from 'vue-i18n';
3
+ export declare const useNmorphTranslation: (data: INmorphApplyTranslation) => I18n<{
4
+ en: any;
5
+ ru?: TranslateMessages;
6
+ zh?: TranslateMessages;
7
+ }, {}, {}, "en" | "ru" | "zh" | Locale, false>;
@@ -0,0 +1,20 @@
1
+ import { INmorphCoords, NmorphDomElementType, NmorphPlacementType } from '../types';
2
+ import { Ref } from 'vue';
3
+ interface INmorphUsePlacementPayload {
4
+ initialPlacement: NmorphPlacementType;
5
+ contentDOMElement: Ref<NmorphDomElementType>;
6
+ relativeElement: NmorphDomElementType | Ref<NmorphDomElementType>;
7
+ yOffset?: number;
8
+ xOffset?: number;
9
+ }
10
+ export declare const usePlacement: (data: INmorphUsePlacementPayload) => {
11
+ placement: Ref<"top" | "right" | "left" | "bottom", "top" | "right" | "left" | "bottom">;
12
+ placementCoords: Ref<{
13
+ x: string;
14
+ y: string;
15
+ }, INmorphCoords<string> | {
16
+ x: string;
17
+ y: string;
18
+ }>;
19
+ };
20
+ export {};
@@ -0,0 +1 @@
1
+ export declare const useStyleClassMixins: () => void;
@@ -0,0 +1,9 @@
1
+ import { ObjectPlugin } from 'vue';
2
+ export { default as ru } from './locales/ru.js';
3
+ export { default as zh } from './locales/zh.js';
4
+ export { default as en } from './locales/en.js';
5
+ export { nmorphLog } from './outside-utils';
6
+ export { useNmorphTheme, useNmorphBrowser, useNmorphNotification, useNmorph } from './outside-hooks';
7
+ export * from './types/index.ts';
8
+ export * from './components';
9
+ export declare const NmorphLibrary: ObjectPlugin<any[]>;
@@ -0,0 +1,4 @@
1
+ export { useNmorphTheme } from './use-nmorph-theme';
2
+ export { useNmorphBrowser } from './use-nmorph-browser';
3
+ export { useNmorphNotification } from './use-nmorph-notification';
4
+ export { useNmorph } from './use-nmorph';
@@ -0,0 +1,14 @@
1
+ import { Ref } from 'vue';
2
+ export declare const useNmorphBrowser: () => {
3
+ dimensions: Ref<{
4
+ width: number;
5
+ height: number;
6
+ }, {
7
+ width: number;
8
+ height: number;
9
+ } | {
10
+ width: number;
11
+ height: number;
12
+ }>;
13
+ scrollTop: Ref<number, number>;
14
+ };
@@ -0,0 +1,7 @@
1
+ import { INmorphNotification } from '../components/providers';
2
+ import { Ref } from 'vue';
3
+ export declare const useNmorphNotification: () => {
4
+ notifications: Ref<any[], any[]>;
5
+ notify: (options: INmorphNotification) => void;
6
+ removeNotification: (id: string) => void;
7
+ };
@@ -0,0 +1,2 @@
1
+ import { INmorphThemeOptions, INmorphThemeInstance } from '../main';
2
+ export declare const useNmorphTheme: (customOptions: INmorphThemeOptions) => INmorphThemeInstance;
@@ -0,0 +1,2 @@
1
+ import { INmorphInstance } from '../types';
2
+ export declare const useNmorph: () => INmorphInstance;
@@ -0,0 +1,3 @@
1
+ type ConsoleType = 'error' | 'success' | 'warn' | 'info';
2
+ export declare const nmorphLog: (type: ConsoleType, message: string) => void;
3
+ export {};
@@ -0,0 +1,182 @@
1
+ import { Ref } from 'vue';
2
+ import { I18n } from 'vue-i18n';
3
+ import { NmorphFormValidationDataType } from '../components';
4
+ import { useNmorphBrowser, useNmorphTheme } from '../outside-hooks';
5
+ export interface INmorphInstance {
6
+ theme: ReturnType<typeof useNmorphTheme>;
7
+ browser: ReturnType<typeof useNmorphBrowser>;
8
+ }
9
+ export interface INmorphFromDataExpose {
10
+ formData: NmorphFormValidationDataType;
11
+ }
12
+ export declare enum NmorphComponentHeight {
13
+ thick = "thick-component",
14
+ default = "default-height-component",
15
+ thin = "thin-component"
16
+ }
17
+ export type NmorphSortOrderType = keyof typeof NmorphSortOrder | undefined;
18
+ export declare enum AvatarShapeType {
19
+ circle = "circle",
20
+ square = "square"
21
+ }
22
+ export declare enum NmorphSortOrder {
23
+ ascending = "ascending",
24
+ descending = "descending"
25
+ }
26
+ export declare enum NmorphComponentDirection {
27
+ row = "row",
28
+ column = "column"
29
+ }
30
+ export interface INmorphCommonInputProps {
31
+ id?: string;
32
+ name?: string;
33
+ height?: keyof typeof NmorphComponentHeight;
34
+ disabled?: boolean;
35
+ }
36
+ export declare enum NmorphShadowType {
37
+ inset = "shadow-inset",
38
+ outset = "shadow-outset",
39
+ combined = "shadow-combined",
40
+ 'not-defined' = "shadow-not-defined"
41
+ }
42
+ export declare enum NmorphColor {
43
+ accent = "accent",
44
+ success = "success",
45
+ error = "error",
46
+ warning = "warning"
47
+ }
48
+ export declare enum NmorphComponentPosition {
49
+ left = "left",
50
+ right = "right",
51
+ top = "top",
52
+ bottom = "bottom"
53
+ }
54
+ export type NmorphPlacementType = keyof typeof NmorphComponentPosition;
55
+ export type NmorphDomElementType = HTMLElement | null;
56
+ export type NmorphElementDesignType = 'nmorph' | 'common';
57
+ export interface INmorphCoords<T> {
58
+ x: T;
59
+ y: T;
60
+ }
61
+ export declare enum NmorphImageFit {
62
+ fill = "fill",
63
+ contain = "contain",
64
+ cover = "cover",
65
+ none = "none",
66
+ 'scale-down' = "scale-down"
67
+ }
68
+ export interface INmorphColorVariable {
69
+ name: string;
70
+ color: string;
71
+ }
72
+ export interface INmorphOtherThemeOptions {
73
+ baseShadowWidth?: string;
74
+ shadowBlurCoefficient?: string;
75
+ }
76
+ export interface INmorphThemeOptions {
77
+ themes?: NmorphThemeOptionsType;
78
+ defaultTheme?: string;
79
+ saveCurrentThemeToLS?: boolean;
80
+ darkShadeGeneratorCoefficient?: number;
81
+ lightShadeGeneratorCoefficient?: number;
82
+ other?: INmorphOtherThemeOptions;
83
+ }
84
+ export interface INmorphOptions {
85
+ theme?: INmorphThemeOptions;
86
+ i18n?: INmorphApplyTranslation;
87
+ }
88
+ export type NmorphThemeOptionsType = Record<string, INmorphThemeOptions>;
89
+ export interface INmorphStaticColors {
90
+ info?: string;
91
+ infoText?: string;
92
+ success?: string;
93
+ successText?: string;
94
+ error?: string;
95
+ errorText?: string;
96
+ warn?: string;
97
+ warnText?: string;
98
+ gray?: string;
99
+ accent?: string;
100
+ white?: string;
101
+ black?: string;
102
+ text?: string;
103
+ overlay?: string;
104
+ focusTextColor?: string;
105
+ }
106
+ export interface INmorphDynamicColors {
107
+ darkShade?: string;
108
+ lightShade?: string;
109
+ }
110
+ export interface INmorphThemeOptions extends INmorphDynamicColors, INmorphStaticColors {
111
+ main?: string;
112
+ }
113
+ export type NmorphThemeMapType = Record<string, INmorphColorVariable[]>;
114
+ export declare enum Locale {
115
+ en = "en",
116
+ ru = "ru",
117
+ zh = "zh"
118
+ }
119
+ export type TranslateType = Partial<Record<keyof typeof Locale, TranslateMessages>> & {
120
+ en: TranslateMessages;
121
+ };
122
+ export interface TranslateMessages {
123
+ [key: string]: TranslateMessages | string;
124
+ }
125
+ export interface LibraryOptions {
126
+ i18n?: I18n;
127
+ }
128
+ export interface INmorphApplyTranslation {
129
+ outsideMessagesMerge?: boolean;
130
+ messages?: TranslateType;
131
+ locale?: keyof typeof Locale;
132
+ }
133
+ export interface INmorphThemeInstance {
134
+ setTheme: (theme: string) => void;
135
+ currentTheme: Readonly<Ref<string>>;
136
+ data: INmorphThemeOptions;
137
+ getDynamicColorVariables: (mainBgColor: string) => INmorphColorVariable[];
138
+ }
139
+ export interface INmorphA11yProps {
140
+ role?: string;
141
+ ariaLabel?: string;
142
+ ariaOrientation?: string;
143
+ }
144
+ export interface INmorphDimensions {
145
+ width: number;
146
+ height: number;
147
+ }
148
+ export interface INmorphImage {
149
+ src: string;
150
+ srcSet?: string;
151
+ fit?: keyof typeof NmorphImageFit;
152
+ alt?: string;
153
+ }
154
+ export interface INmorphCheckboxOption {
155
+ id?: string;
156
+ disabled?: boolean;
157
+ modelValue?: boolean;
158
+ label?: string;
159
+ design?: NmorphCheckboxDesignType;
160
+ }
161
+ export type NmorphCheckboxDesignType = 'button' | 'checkbox';
162
+ export type NmorphCheckboxGroupSelectedValueInjectionType = Ref<string[]>;
163
+ export type NmorphCheckboxGroupChangeCheckboxValueHandlerInjectionType = (value: string, currentState: string[]) => void;
164
+ export interface INmorphRadioOption {
165
+ disabled?: boolean;
166
+ label?: string;
167
+ value: string;
168
+ tabindex?: number;
169
+ }
170
+ export declare enum NmorphRadioStyleType {
171
+ 'radio-style' = "radio-style",
172
+ 'button' = "button"
173
+ }
174
+ export type NmorphRadioGroupSelectedValueInjectionType = Ref<string>;
175
+ export type NmorphRadioChangeRadioButtonValueHandlerInjectionType = (value: string) => void;
176
+ export declare enum NmorphSelectionDateType {
177
+ 'date' = "date",
178
+ 'dates' = "dates",
179
+ 'daterange' = "daterange"
180
+ }
181
+ export type NmorphInnerPickerType = 'calendar' | 'year' | 'month';
182
+ export type NmorphDatePickerControlsType = 'decrease' | 'increase';