@nmorph/nmorph-ui-kit 1.0.107 → 1.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.
Files changed (117) hide show
  1. package/dist/index.es.js +2188 -2044
  2. package/dist/index.umd.js +141 -85
  3. package/package.json +1 -1
  4. package/dist/index.d.ts +0 -2
  5. package/dist/src/components/basic/index.d.ts +0 -9
  6. package/dist/src/components/basic/nmorph-button/NmorphButton.vue.d.ts +0 -39
  7. package/dist/src/components/basic/nmorph-button/types.d.ts +0 -15
  8. package/dist/src/components/basic/nmorph-icon/NmorphIcon.vue.d.ts +0 -22
  9. package/dist/src/components/basic/nmorph-icon/NmorphIcons.d.ts +0 -259
  10. package/dist/src/components/basic/nmorph-icon/types.d.ts +0 -5
  11. package/dist/src/components/basic/nmorph-link/NmorphLink.vue.d.ts +0 -29
  12. package/dist/src/components/basic/nmorph-link/types.d.ts +0 -6
  13. package/dist/src/components/basic/nmorph-scroll/NmorphScroll.vue.d.ts +0 -49
  14. package/dist/src/components/basic/nmorph-scroll/types.d.ts +0 -14
  15. package/dist/src/components/data/index.d.ts +0 -28
  16. package/dist/src/components/data/nmorph-avatar/NmorphAvatar.vue.d.ts +0 -21
  17. package/dist/src/components/data/nmorph-badge/NmorphBadge.vue.d.ts +0 -31
  18. package/dist/src/components/data/nmorph-calendar/NmorphCalendar.vue.d.ts +0 -42
  19. package/dist/src/components/data/nmorph-calendar/hooks/index.d.ts +0 -2
  20. package/dist/src/components/data/nmorph-calendar/hooks/use-calendar-texts.d.ts +0 -4
  21. package/dist/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.d.ts +0 -25
  22. package/dist/src/components/data/nmorph-calendar/types.d.ts +0 -12
  23. package/dist/src/components/data/nmorph-calendar/utils.d.ts +0 -10
  24. package/dist/src/components/data/nmorph-card/NmorphCard.vue.d.ts +0 -20
  25. package/dist/src/components/data/nmorph-carousel/NmorphCarousel.vue.d.ts +0 -19
  26. package/dist/src/components/data/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue.d.ts +0 -13
  27. package/dist/src/components/data/nmorph-carousel/types.d.ts +0 -5
  28. package/dist/src/components/data/nmorph-collapse/NmorphCollapse.vue.d.ts +0 -21
  29. package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +0 -32
  30. package/dist/src/components/data/nmorph-collapse/types.d.ts +0 -9
  31. package/dist/src/components/data/nmorph-image/NmorphImage.vue.d.ts +0 -30
  32. package/dist/src/components/data/nmorph-image-preview/NmorphImagePreview.vue.d.ts +0 -23
  33. package/dist/src/components/data/nmorph-image-preview/types.d.ts +0 -5
  34. package/dist/src/components/data/nmorph-pagination/NmorphPagination.vue.d.ts +0 -23
  35. package/dist/src/components/data/nmorph-progress/NmorphProgress.vue.d.ts +0 -29
  36. package/dist/src/components/data/nmorph-progress/types.d.ts +0 -6
  37. package/dist/src/components/data/nmorph-skeleton/NmorphSkeleton.vue.d.ts +0 -20
  38. package/dist/src/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue.d.ts +0 -16
  39. package/dist/src/components/data/nmorph-skeleton/types.d.ts +0 -5
  40. package/dist/src/components/data/nmorph-table/NmorphTable.vue.d.ts +0 -24
  41. package/dist/src/components/data/nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue.d.ts +0 -13
  42. package/dist/src/components/data/nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue.d.ts +0 -23
  43. package/dist/src/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue.d.ts +0 -11
  44. package/dist/src/components/data/nmorph-table/types.d.ts +0 -21
  45. package/dist/src/components/data/nmorph-tag-list/NmorphTagList.vue.d.ts +0 -13
  46. package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.d.ts +0 -15
  47. package/dist/src/components/data/nmorph-tag-list/types.d.ts +0 -8
  48. package/dist/src/components/feedback/index.d.ts +0 -4
  49. package/dist/src/components/feedback/nmorph-alert/NmorphAlert.vue.d.ts +0 -30
  50. package/dist/src/components/feedback/nmorph-alert/types.d.ts +0 -18
  51. package/dist/src/components/feedback/nmorph-dialog/NmorphDialog.vue.d.ts +0 -38
  52. package/dist/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue.d.ts +0 -25
  53. package/dist/src/components/form/index.d.ts +0 -19
  54. package/dist/src/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +0 -36
  55. package/dist/src/components/form/nmorph-autocomplete/types.d.ts +0 -5
  56. package/dist/src/components/form/nmorph-checkbox/NmorphCheckbox.vue.d.ts +0 -24
  57. package/dist/src/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +0 -26
  58. package/dist/src/components/form/nmorph-date-picker/NmorphDatePicker.vue.d.ts +0 -24
  59. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-clear-button/NmorphClearButton.vue.d.ts +0 -7
  60. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-content/NmorphDatePickerContent.vue.d.ts +0 -17
  61. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.d.ts +0 -21
  62. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.d.ts +0 -17
  63. package/dist/src/components/form/nmorph-file-upload/NmorphFileUpload.vue.d.ts +0 -34
  64. package/dist/src/components/form/nmorph-file-upload/types.d.ts +0 -61
  65. package/dist/src/components/form/nmorph-form/NmorphForm.vue.d.ts +0 -20
  66. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts +0 -23
  67. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/index.d.ts +0 -3
  68. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue.d.ts +0 -13
  69. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.vue.d.ts +0 -9
  70. package/dist/src/components/form/nmorph-form/types.d.ts +0 -7
  71. package/dist/src/components/form/nmorph-number-input/NmorphNumberInput.vue.d.ts +0 -25
  72. package/dist/src/components/form/nmorph-radio/NmorphRadio.vue.d.ts +0 -26
  73. package/dist/src/components/form/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +0 -28
  74. package/dist/src/components/form/nmorph-select/NmorphSelect.vue.d.ts +0 -39
  75. package/dist/src/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.d.ts +0 -19
  76. package/dist/src/components/form/nmorph-select/types.d.ts +0 -9
  77. package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +0 -22
  78. package/dist/src/components/form/nmorph-switch/NmorphSwitch.vue.d.ts +0 -33
  79. package/dist/src/components/form/nmorph-text-input/NmorphTextInput.vue.d.ts +0 -36
  80. package/dist/src/components/index.d.ts +0 -7
  81. package/dist/src/components/navigation/index.d.ts +0 -9
  82. package/dist/src/components/navigation/nmorph-backtop/NmorphBacktop.vue.d.ts +0 -26
  83. package/dist/src/components/navigation/nmorph-breadcrumb/NmorphBreadcrumb.vue.d.ts +0 -15
  84. package/dist/src/components/navigation/nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue.d.ts +0 -17
  85. package/dist/src/components/navigation/nmorph-breadcrumb/types.d.ts +0 -14
  86. package/dist/src/components/navigation/nmorph-dropdown/NmorphDropdown.vue.d.ts +0 -28
  87. package/dist/src/components/navigation/nmorph-tabs/NmorphTabs.vue.d.ts +0 -26
  88. package/dist/src/components/navigation/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue.d.ts +0 -22
  89. package/dist/src/components/navigation/nmorph-tabs/type.d.ts +0 -12
  90. package/dist/src/components/navigation/nmorph-tabs/utils.d.ts +0 -3
  91. package/dist/src/components/others/index.d.ts +0 -3
  92. package/dist/src/components/others/nmorph-divider/NmorphDivider.vue.d.ts +0 -9
  93. package/dist/src/components/others/nmorph-divider/types.d.ts +0 -1
  94. package/dist/src/components/others/nmorph-overlay/NmorphOverlay.vue.d.ts +0 -20
  95. package/dist/src/components/providers/index.d.ts +0 -3
  96. package/dist/src/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.d.ts +0 -14
  97. package/dist/src/components/providers/nmorph-notification-provider/types.d.ts +0 -14
  98. package/dist/src/hooks/index.d.ts +0 -7
  99. package/dist/src/hooks/use-common-styles.d.ts +0 -1
  100. package/dist/src/hooks/use-field-validation.d.ts +0 -53
  101. package/dist/src/hooks/use-form-validation.d.ts +0 -13
  102. package/dist/src/hooks/use-nmorph-translation.d.ts +0 -7
  103. package/dist/src/hooks/use-placement.d.ts +0 -20
  104. package/dist/src/hooks/use-style-class-mixins.d.ts +0 -1
  105. package/dist/src/main.d.ts +0 -9
  106. package/dist/src/outside-hooks/index.d.ts +0 -4
  107. package/dist/src/outside-hooks/use-nmorph-browser.d.ts +0 -14
  108. package/dist/src/outside-hooks/use-nmorph-notification.d.ts +0 -7
  109. package/dist/src/outside-hooks/use-nmorph-theme.d.ts +0 -2
  110. package/dist/src/outside-hooks/use-nmorph.d.ts +0 -2
  111. package/dist/src/outside-utils/index.d.ts +0 -3
  112. package/dist/src/types/index.d.ts +0 -180
  113. package/dist/src/utils/case-transformers.d.ts +0 -5
  114. package/dist/src/utils/common.d.ts +0 -3
  115. package/dist/src/utils/create-modifiers.d.ts +0 -4
  116. package/dist/src/utils/index.d.ts +0 -4
  117. package/dist/src/utils/theme-style.d.ts +0 -15
@@ -1,26 +0,0 @@
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
- };
@@ -1,15 +0,0 @@
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
- };
@@ -1,17 +0,0 @@
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
- };
@@ -1,14 +0,0 @@
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
- }
@@ -1,28 +0,0 @@
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
- };
@@ -1,26 +0,0 @@
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
- };
@@ -1,22 +0,0 @@
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
- };
@@ -1,12 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
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;
@@ -1,3 +0,0 @@
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';
@@ -1,9 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export type NmorphDirectionType = 'vertical' | 'horizontal';
@@ -1,20 +0,0 @@
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
- };
@@ -1,3 +0,0 @@
1
- import { default as NmorphNotificationProvider } from './nmorph-notification-provider/NmorphNotificationProvider.vue';
2
- export * from './nmorph-notification-provider/types';
3
- export { NmorphNotificationProvider };
@@ -1,14 +0,0 @@
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;
@@ -1,14 +0,0 @@
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
- }
@@ -1,7 +0,0 @@
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';
@@ -1 +0,0 @@
1
- export declare const useCommonStyles: () => void;
@@ -1,53 +0,0 @@
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
- };
@@ -1,13 +0,0 @@
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;
@@ -1,7 +0,0 @@
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>;
@@ -1,20 +0,0 @@
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 {};
@@ -1 +0,0 @@
1
- export declare const useStyleClassMixins: () => void;
@@ -1,9 +0,0 @@
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[]>;
@@ -1,4 +0,0 @@
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';
@@ -1,14 +0,0 @@
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
- };
@@ -1,7 +0,0 @@
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
- };
@@ -1,2 +0,0 @@
1
- import { INmorphThemeOptions, INmorphThemeInstance } from '../main';
2
- export declare const useNmorphTheme: (customOptions: INmorphThemeOptions) => INmorphThemeInstance;
@@ -1,2 +0,0 @@
1
- import { INmorphInstance } from '../types';
2
- export declare const useNmorph: () => INmorphInstance;
@@ -1,3 +0,0 @@
1
- type ConsoleType = 'error' | 'success' | 'warn' | 'info';
2
- export declare const nmorphLog: (type: ConsoleType, message: string) => void;
3
- export {};
@@ -1,180 +0,0 @@
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
- height?: keyof typeof NmorphComponentHeight;
32
- disabled?: boolean;
33
- }
34
- export declare enum NmorphShadowType {
35
- inset = "shadow-inset",
36
- outset = "shadow-outset",
37
- combined = "shadow-combined",
38
- 'not-defined' = "shadow-not-defined"
39
- }
40
- export declare enum NmorphColor {
41
- accent = "accent",
42
- success = "success",
43
- error = "error",
44
- warning = "warning"
45
- }
46
- export declare enum NmorphComponentPosition {
47
- left = "left",
48
- right = "right",
49
- top = "top",
50
- bottom = "bottom"
51
- }
52
- export type NmorphPlacementType = keyof typeof NmorphComponentPosition;
53
- export type NmorphDomElementType = HTMLElement | null;
54
- export type NmorphElementDesignType = 'nmorph' | 'common';
55
- export interface INmorphCoords<T> {
56
- x: T;
57
- y: T;
58
- }
59
- export declare enum NmorphImageFit {
60
- fill = "fill",
61
- contain = "contain",
62
- cover = "cover",
63
- none = "none",
64
- 'scale-down' = "scale-down"
65
- }
66
- export interface INmorphColorVariable {
67
- name: string;
68
- color: string;
69
- }
70
- export interface INmorphOtherThemeOptions {
71
- baseShadowWidth?: string;
72
- shadowBlurCoefficient?: string;
73
- }
74
- export interface INmorphThemeOptions {
75
- themes?: NmorphThemeOptionsType;
76
- defaultTheme?: string;
77
- saveCurrentThemeToLS?: boolean;
78
- darkShadeGeneratorCoefficient?: number;
79
- lightShadeGeneratorCoefficient?: number;
80
- other?: INmorphOtherThemeOptions;
81
- }
82
- export interface INmorphOptions {
83
- theme?: INmorphThemeOptions;
84
- i18n?: INmorphApplyTranslation;
85
- }
86
- export type NmorphThemeOptionsType = Record<string, INmorphThemeOptions>;
87
- export interface INmorphStaticColors {
88
- info?: string;
89
- infoText?: string;
90
- success?: string;
91
- successText?: string;
92
- error?: string;
93
- errorText?: string;
94
- warn?: string;
95
- warnText?: string;
96
- gray?: string;
97
- accent?: string;
98
- white?: string;
99
- black?: string;
100
- text?: string;
101
- overlay?: string;
102
- focusTextColor?: string;
103
- }
104
- export interface INmorphDynamicColors {
105
- darkShade?: string;
106
- lightShade?: string;
107
- }
108
- export interface INmorphThemeOptions extends INmorphDynamicColors, INmorphStaticColors {
109
- main?: string;
110
- }
111
- export type NmorphThemeMapType = Record<string, INmorphColorVariable[]>;
112
- export declare enum Locale {
113
- en = "en",
114
- ru = "ru",
115
- zh = "zh"
116
- }
117
- export type TranslateType = Partial<Record<keyof typeof Locale, TranslateMessages>> & {
118
- en: TranslateMessages;
119
- };
120
- export interface TranslateMessages {
121
- [key: string]: TranslateMessages | string;
122
- }
123
- export interface LibraryOptions {
124
- i18n?: I18n;
125
- }
126
- export interface INmorphApplyTranslation {
127
- outsideMessagesMerge?: boolean;
128
- messages?: TranslateType;
129
- locale?: keyof typeof Locale;
130
- }
131
- export interface INmorphThemeInstance {
132
- setTheme: (theme: string) => void;
133
- currentTheme: Readonly<Ref<string>>;
134
- data: INmorphThemeOptions;
135
- getDynamicColorVariables: (mainBgColor: string) => INmorphColorVariable[];
136
- }
137
- export interface INmorphA11yProps {
138
- role?: string;
139
- ariaLabel?: string;
140
- ariaOrientation?: string;
141
- }
142
- export interface INmorphDimensions {
143
- width: number;
144
- height: number;
145
- }
146
- export interface INmorphImage {
147
- src: string;
148
- srcSet?: string;
149
- fit?: keyof typeof NmorphImageFit;
150
- alt?: string;
151
- }
152
- export interface INmorphCheckboxOption {
153
- id?: string;
154
- disabled?: boolean;
155
- modelValue?: boolean;
156
- label?: string;
157
- design?: NmorphCheckboxDesignType;
158
- }
159
- export type NmorphCheckboxDesignType = 'button' | 'checkbox';
160
- export type NmorphCheckboxGroupSelectedValueInjectionType = Ref<string[]>;
161
- export type NmorphCheckboxGroupChangeCheckboxValueHandlerInjectionType = (value: string, currentState: string[]) => void;
162
- export interface INmorphRadioOption {
163
- disabled?: boolean;
164
- label?: string;
165
- value: string;
166
- tabindex?: number;
167
- }
168
- export declare enum NmorphRadioStyleType {
169
- 'radio-style' = "radio-style",
170
- 'button' = "button"
171
- }
172
- export type NmorphRadioGroupSelectedValueInjectionType = Ref<string>;
173
- export type NmorphRadioChangeRadioButtonValueHandlerInjectionType = (value: string) => void;
174
- export declare enum NmorphSelectionDateType {
175
- 'date' = "date",
176
- 'dates' = "dates",
177
- 'daterange' = "daterange"
178
- }
179
- export type NmorphInnerPickerType = 'calendar' | 'year' | 'month';
180
- export type NmorphDatePickerControlsType = 'decrease' | 'increase';
@@ -1,5 +0,0 @@
1
- export declare const anyToPascalCase: (str: string) => string;
2
- export declare const camelToKebab: (input: string) => string;
3
- export declare const camelToTitle: (str: string) => string;
4
- export declare const pascalToKebab: (str: string) => string;
5
- export declare const pascalToSpace: (str: string) => string;
@@ -1,3 +0,0 @@
1
- export declare const capitalizeFirstChar: (str: string) => string;
2
- export declare const deepClone: <T>(obj: T) => T;
3
- export declare const generateUUID: () => string;
@@ -1,4 +0,0 @@
1
- export declare const createBlockModifiers: (block: string, modifiers: string[]) => string;
2
- export declare const useModifiers: (data: {
3
- [key: string]: string[];
4
- }) => string;
@@ -1,4 +0,0 @@
1
- export * from './create-modifiers';
2
- export * from './case-transformers';
3
- export * from './common';
4
- export * from './theme-style';
@@ -1,15 +0,0 @@
1
- export declare const body4: () => string;
2
- export declare const body3: () => string;
3
- export declare const body2: () => string;
4
- export declare const body1: () => string;
5
- export declare const title4: () => string;
6
- export declare const title3: () => string;
7
- export declare const title2: () => string;
8
- export declare const title1: () => string;
9
- export declare const nmorphOutset: () => string;
10
- export declare const nmorphInset: () => string;
11
- export declare const nmorphBorder: (borderWidth: number) => string;
12
- export declare const nmorphCombined: (borderWidth?: number, isInsetDark?: boolean) => string;
13
- export declare const disabled: () => string;
14
- export declare const ellipsis: () => string;
15
- export declare const focusOutline: () => string;