@nmorph/nmorph-ui-kit 0.0.1 → 0.0.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 (124) hide show
  1. package/dist/index.es.js +3908 -3926
  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 +23 -22
  6. package/dist/styles/base/_common-mixins.scss +12 -5
  7. package/dist/styles/base/_dimensions.scss +18 -8
  8. package/dist/styles/base/_histoire.scss +1 -1
  9. package/dist/styles/base/_theme-mixin.scss +16 -14
  10. package/dist/styles/base/_typography.scss +29 -132
  11. package/dist/styles/base/style.scss +3 -7
  12. package/dist/styles/main.scss +1 -2
  13. package/dist/types/components/inputs/checkbox/nmorph-checkbox/NmorphCheckbox.vue.d.ts +7 -4
  14. package/dist/types/components/inputs/checkbox/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +9 -27
  15. package/dist/types/components/inputs/checkbox/types.d.ts +6 -3
  16. package/dist/types/components/inputs/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +72 -0
  17. package/dist/types/components/inputs/nmorph-autocomplete/types.d.ts +5 -0
  18. package/dist/types/components/inputs/nmorph-clear-button/NmorphClearButton.vue.d.ts +7 -0
  19. package/dist/types/components/inputs/nmorph-date-picker/NmorphDatePicker.vue.d.ts +70 -0
  20. package/dist/types/components/inputs/nmorph-date-picker/components/nmorph-date-picker-content/NmorphDatePickerContent.vue.d.ts +40 -0
  21. package/dist/types/components/inputs/nmorph-date-picker/components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.d.ts +43 -0
  22. package/dist/types/components/inputs/nmorph-date-picker/components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.d.ts +38 -0
  23. package/dist/types/components/inputs/nmorph-date-picker/components/types.d.ts +7 -0
  24. package/dist/types/components/inputs/nmorph-file-upload/NmorphFileUpload.vue.d.ts +19 -8
  25. package/dist/types/components/inputs/nmorph-file-upload/types.d.ts +32 -28
  26. package/dist/types/components/inputs/nmorph-number-input/NmorphNumberInput.vue.d.ts +13 -28
  27. package/dist/types/components/inputs/nmorph-select/NmorphSelect.vue.d.ts +26 -15
  28. package/dist/types/components/inputs/{nmorph-select-option → nmorph-select/components/nmorph-select-option}/NmorphSelectOption.vue.d.ts +5 -5
  29. package/dist/types/components/inputs/nmorph-select/types.d.ts +4 -0
  30. package/dist/types/components/inputs/nmorph-slider/NmorphSlider.vue.d.ts +5 -5
  31. package/dist/types/components/inputs/nmorph-switch/NmorphSwitch.vue.d.ts +8 -6
  32. package/dist/types/components/inputs/nmorph-text-input/NmorphTextInput.vue.d.ts +15 -29
  33. package/dist/types/components/inputs/nmorph-time-picker/NmorphTimePicker.vue.d.ts +65 -0
  34. package/dist/types/components/inputs/nmorph-time-picker/components/NmorphTimeRoller.vue.d.ts +46 -0
  35. package/dist/types/components/inputs/nmorph-time-picker/types.d.ts +3 -0
  36. package/dist/types/components/inputs/nmorph-time-picker/utils.d.ts +3 -0
  37. package/dist/types/components/inputs/radio/nmorph-radio/NmorphRadio.vue.d.ts +48 -0
  38. package/dist/types/components/inputs/radio/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +12 -25
  39. package/dist/types/components/inputs/radio/types.d.ts +5 -2
  40. package/dist/types/components/nmorph-alert/NmorphAlert.vue.d.ts +67 -0
  41. package/dist/types/components/nmorph-alert/types.d.ts +6 -0
  42. package/dist/types/components/nmorph-avatar/NmorphAvatar.vue.d.ts +62 -0
  43. package/dist/types/components/nmorph-avatar/type.d.ts +1 -0
  44. package/dist/types/components/nmorph-backtop/NmorphBacktop.vue.d.ts +48 -0
  45. package/dist/types/components/nmorph-badge/NmorphBadge.vue.d.ts +60 -0
  46. package/dist/types/components/nmorph-breadcrumb/NmorphBreadcrumb.vue.d.ts +36 -0
  47. package/dist/types/components/nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue.d.ts +40 -0
  48. package/dist/types/components/nmorph-breadcrumb/types.d.ts +13 -0
  49. package/dist/types/components/nmorph-button/NmorphButton.vue.d.ts +15 -22
  50. package/dist/types/components/nmorph-calendar/NmorphCalendar.vue.d.ts +75 -0
  51. package/dist/types/components/nmorph-calendar/components/nmorph-calendar-header/NmorphCalendarHeader.vue.d.ts +42 -0
  52. package/dist/types/components/nmorph-calendar/locale.d.ts +1 -0
  53. package/dist/types/components/nmorph-calendar/types.d.ts +12 -0
  54. package/dist/types/components/nmorph-calendar/utils.d.ts +9 -0
  55. package/dist/types/components/nmorph-card/NmorphCard.vue.d.ts +7 -7
  56. package/dist/types/components/nmorph-carousel/NmorphCarousel.vue.d.ts +39 -2
  57. package/dist/types/components/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue.d.ts +30 -0
  58. package/dist/types/components/nmorph-carousel/types.d.ts +5 -0
  59. package/dist/types/components/nmorph-collapse/NmorphCollapse.vue.d.ts +42 -0
  60. package/dist/types/components/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +55 -0
  61. package/dist/types/components/nmorph-collapse/types.d.ts +9 -0
  62. package/dist/types/components/nmorph-dialog/NmorphDialog.vue.d.ts +47 -0
  63. package/dist/types/components/{inputs/common/NmorphValidationIcon.vue.d.ts → nmorph-divider/NmorphDivider.vue.d.ts} +8 -8
  64. package/dist/types/components/nmorph-divider/types.d.ts +1 -0
  65. package/dist/types/components/nmorph-dropdown/NmorphDropdown.vue.d.ts +55 -0
  66. package/dist/types/components/nmorph-form/NmorphForm.vue.d.ts +56 -0
  67. package/dist/types/components/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts +58 -0
  68. package/dist/types/components/nmorph-form/components/nmorph-form-item/components/index.d.ts +3 -0
  69. package/dist/types/components/nmorph-form/components/nmorph-form-item/components/nmorph-error-box/NmorphErrorBox.vue.d.ts +38 -0
  70. package/dist/types/components/nmorph-form/components/nmorph-form-item/components/nmorph-validation-icon/NmorphValidationIcon.vue.d.ts +30 -0
  71. package/dist/types/components/nmorph-form/types.d.ts +7 -0
  72. package/dist/types/components/nmorph-icon/NmorphIcon.vue.d.ts +17 -17
  73. package/dist/types/components/nmorph-icon/NmorphIconsMap.d.ts +2 -4
  74. package/dist/types/components/nmorph-icon/types.d.ts +3 -3
  75. package/dist/types/components/nmorph-image/NmorphImage.vue.d.ts +10 -12
  76. package/dist/types/components/nmorph-image-preview/NmorphImagePreview.vue.d.ts +3 -3
  77. package/dist/types/components/nmorph-image-preview/types.d.ts +5 -0
  78. package/dist/types/components/nmorph-link/NmorphLink.vue.d.ts +13 -18
  79. package/dist/types/components/nmorph-link/types.d.ts +6 -0
  80. package/dist/types/components/nmorph-overlay/NmorphOverlay.vue.d.ts +5 -4
  81. package/dist/types/components/nmorph-pagination/NmorphPagination.vue.d.ts +56 -0
  82. package/dist/types/components/nmorph-progress/NmorphProgress.vue.d.ts +66 -0
  83. package/dist/types/components/nmorph-progress/types.d.ts +6 -0
  84. package/dist/types/components/nmorph-scroll/NmorphScroll.vue.d.ts +63 -0
  85. package/dist/types/components/nmorph-scroll/types.d.ts +7 -0
  86. package/dist/types/components/nmorph-skeleton/NmorphSkeleton.vue.d.ts +45 -0
  87. package/dist/types/components/{nmorph-error-box/NmorphErrorBox.vue.d.ts → nmorph-skeleton/components/NmorphSkeletonItem.vue.d.ts} +8 -12
  88. package/dist/types/components/nmorph-skeleton/types.d.ts +1 -0
  89. package/dist/types/components/nmorph-sort-button/NmorphSortButton.vue.d.ts +28 -0
  90. package/dist/types/components/nmorph-table/NmorphTable.vue.d.ts +59 -0
  91. package/dist/types/components/nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue.d.ts +30 -0
  92. package/dist/types/components/nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue.d.ts +48 -0
  93. package/dist/types/components/nmorph-table/types.d.ts +21 -0
  94. package/dist/types/components/nmorph-tabs/NmorphTabs.vue.d.ts +47 -0
  95. package/dist/types/components/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue.d.ts +40 -0
  96. package/dist/types/components/nmorph-tabs/type.d.ts +11 -0
  97. package/dist/types/components/nmorph-tabs/utils.d.ts +3 -0
  98. package/dist/types/components/nmorph-tag/NmorphTag.vue.d.ts +8 -8
  99. package/dist/types/components/nmorph-tooltip/NmorphTooltip.vue.d.ts +8 -26
  100. package/dist/types/components.d.ts +32 -3
  101. package/dist/types/histoire.setup.d.ts +0 -2
  102. package/dist/types/hooks/index.d.ts +4 -0
  103. package/dist/types/hooks/useEventManager.d.ts +1 -0
  104. package/dist/types/hooks/useFieldValidation.d.ts +53 -0
  105. package/dist/types/hooks/useFormValidation.d.ts +10 -0
  106. package/dist/types/hooks/usePlacement.d.ts +17 -0
  107. package/dist/types/types/common.d.ts +77 -0
  108. package/dist/types/utils/create-modifiers.d.ts +4 -1
  109. package/dist/types/utils/deep-clone.d.ts +1 -0
  110. package/dist/types/utils/generateUUID.d.ts +1 -0
  111. package/dist/types/utils/index.d.ts +3 -0
  112. package/dist/types/utils/is-string-html.d.ts +1 -0
  113. package/package.json +5 -24
  114. package/dist/fonts/Inter-Bold.woff +0 -0
  115. package/dist/fonts/Inter-Bold.woff2 +0 -0
  116. package/dist/fonts/Inter-Regular.woff +0 -0
  117. package/dist/fonts/Inter-Regular.woff2 +0 -0
  118. package/dist/fonts/Inter-SemiBold.woff +0 -0
  119. package/dist/fonts/Inter-SemiBold.woff2 +0 -0
  120. package/dist/styles/base/_transition.scss +0 -6
  121. package/dist/styles/packages/style.scss +0 -0
  122. package/dist/types/components/inputs/nmorph-select-option/types/index.d.ts +0 -1
  123. package/dist/types/hooks/useValidation.d.ts +0 -55
  124. package/dist/types/types/common.enums.d.ts +0 -46
@@ -0,0 +1,48 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ interface INmorphProps {
3
+ right?: number;
4
+ bottom?: number;
5
+ visibilityHeight?: number;
6
+ }
7
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
8
+ right: number;
9
+ bottom: number;
10
+ visibilityHeight: number;
11
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
12
+ click: () => void;
13
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
14
+ right: number;
15
+ bottom: number;
16
+ visibilityHeight: number;
17
+ }>>> & {
18
+ onClick?: (() => any) | undefined;
19
+ }, {
20
+ right: number;
21
+ bottom: number;
22
+ visibilityHeight: number;
23
+ }, {}>, {
24
+ default?(_: {}): any;
25
+ }>;
26
+ export default _default;
27
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
+ type __VLS_TypePropsToRuntimeProps<T> = {
29
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
30
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
31
+ } : {
32
+ type: PropType<T[K]>;
33
+ required: true;
34
+ };
35
+ };
36
+ type __VLS_WithDefaults<P, D> = {
37
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
38
+ default: D[K];
39
+ }> : P[K];
40
+ };
41
+ type __VLS_Prettify<T> = {
42
+ [K in keyof T]: T[K];
43
+ } & {};
44
+ type __VLS_WithTemplateSlots<T, S> = T & {
45
+ new (): {
46
+ $slots: S;
47
+ };
48
+ };
@@ -0,0 +1,60 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ interface INmorphProps {
3
+ value?: number | string;
4
+ max?: number;
5
+ isDot?: boolean;
6
+ hidden?: boolean;
7
+ color?: string;
8
+ offsetY?: number;
9
+ offsetX?: number;
10
+ }
11
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
12
+ value: string;
13
+ max: number;
14
+ isDot: boolean;
15
+ hidden: boolean;
16
+ color: string;
17
+ offsetX: number;
18
+ offsetY: number;
19
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
20
+ value: string;
21
+ max: number;
22
+ isDot: boolean;
23
+ hidden: boolean;
24
+ color: string;
25
+ offsetX: number;
26
+ offsetY: number;
27
+ }>>>, {
28
+ color: string;
29
+ hidden: boolean;
30
+ value: string | number;
31
+ max: number;
32
+ isDot: boolean;
33
+ offsetY: number;
34
+ offsetX: number;
35
+ }, {}>, {
36
+ default?(_: {}): any;
37
+ }>;
38
+ export default _default;
39
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
40
+ type __VLS_TypePropsToRuntimeProps<T> = {
41
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
42
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
43
+ } : {
44
+ type: PropType<T[K]>;
45
+ required: true;
46
+ };
47
+ };
48
+ type __VLS_WithDefaults<P, D> = {
49
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
50
+ default: D[K];
51
+ }> : P[K];
52
+ };
53
+ type __VLS_Prettify<T> = {
54
+ [K in keyof T]: T[K];
55
+ } & {};
56
+ type __VLS_WithTemplateSlots<T, S> = T & {
57
+ new (): {
58
+ $slots: S;
59
+ };
60
+ };
@@ -0,0 +1,36 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ interface INmorphProps {
3
+ separator?: string;
4
+ }
5
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
6
+ separator: string;
7
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
8
+ separator: string;
9
+ }>>>, {
10
+ separator: string;
11
+ }, {}>, {
12
+ default?(_: {}): any;
13
+ }>;
14
+ export default _default;
15
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
+ type __VLS_TypePropsToRuntimeProps<T> = {
17
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
18
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
19
+ } : {
20
+ type: PropType<T[K]>;
21
+ required: true;
22
+ };
23
+ };
24
+ type __VLS_WithDefaults<P, D> = {
25
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
26
+ default: D[K];
27
+ }> : P[K];
28
+ };
29
+ type __VLS_Prettify<T> = {
30
+ [K in keyof T]: T[K];
31
+ } & {};
32
+ type __VLS_WithTemplateSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
@@ -0,0 +1,40 @@
1
+ import { RouteLocationRaw } from 'vue-router';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
+ import { INmorphBreadcrumbItemProps } from '../../types';
4
+ interface INmorphProps extends INmorphBreadcrumbItemProps {
5
+ }
6
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
7
+ to: string;
8
+ replace: boolean;
9
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
10
+ to: string;
11
+ replace: boolean;
12
+ }>>>, {
13
+ replace: boolean;
14
+ to: RouteLocationRaw;
15
+ }, {}>, {
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,13 @@
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 interface NmorphBreadcrumbInjection {
11
+ breadcrumbs: Ref<NmorphBreadcrumbInjectionItemWithId[]>;
12
+ breadcrumbId: string;
13
+ }
@@ -1,54 +1,47 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { ControlComponentHeight } from '../../types/common.enums';
2
+ import { INmorphCommonInputProps } from '../../types/common';
3
3
  import { NmorphButtonType, NmorphButtonStyle } from './types';
4
- interface IProps {
4
+ interface INmorphProps extends INmorphCommonInputProps {
5
5
  type?: keyof typeof NmorphButtonType;
6
- width?: string;
7
- fill?: boolean;
8
- text?: string;
9
- disabled?: boolean;
6
+ text?: string | number;
10
7
  loading?: boolean;
11
8
  styleType?: keyof typeof NmorphButtonStyle;
12
- height?: keyof typeof ControlComponentHeight;
13
9
  bgTransparentOnHover?: boolean;
14
10
  ripple?: boolean;
15
11
  }
16
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
17
- type: NmorphButtonType;
18
- width: string;
12
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
13
+ type: string;
19
14
  fill: boolean;
20
15
  text: string;
21
16
  disabled: boolean;
22
17
  loading: boolean;
23
- styleType: NmorphButtonStyle;
24
- height: ControlComponentHeight;
18
+ styleType: string;
19
+ height: string;
25
20
  bgTransparentOnHover: boolean;
26
21
  ripple: boolean;
27
22
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
28
23
  click: () => void;
29
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
30
- type: NmorphButtonType;
31
- width: string;
24
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
25
+ type: string;
32
26
  fill: boolean;
33
27
  text: string;
34
28
  disabled: boolean;
35
29
  loading: boolean;
36
- styleType: NmorphButtonStyle;
37
- height: ControlComponentHeight;
30
+ styleType: string;
31
+ height: string;
38
32
  bgTransparentOnHover: boolean;
39
33
  ripple: boolean;
40
34
  }>>> & {
41
35
  onClick?: (() => any) | undefined;
42
36
  }, {
37
+ fill: boolean;
43
38
  disabled: boolean;
44
39
  styleType: "default" | "transparent";
45
- fill: boolean;
46
40
  type: "button" | "reset" | "submit";
47
- text: string;
48
- height: "default" | "thick" | "thin";
49
- width: string;
50
- bgTransparentOnHover: boolean;
41
+ text: string | number;
42
+ height: "thick" | "default" | "thin";
51
43
  loading: boolean;
44
+ bgTransparentOnHover: boolean;
52
45
  ripple: boolean;
53
46
  }, {}>, {
54
47
  default?(_: {}): any;
@@ -0,0 +1,75 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { NmorphCalendarDateType, NmorphCalendarRangeType, NmorphDateType, NmorphSelectedDateModelType } from './types';
3
+ import { NmorphSelectionDateType } from '../inputs/nmorph-date-picker/components/types';
4
+ interface INmorphProps {
5
+ markToday?: boolean;
6
+ initialDate?: Date;
7
+ modelValue?: NmorphDateType;
8
+ range?: NmorphCalendarRangeType;
9
+ type?: keyof typeof NmorphSelectionDateType;
10
+ selectedValues?: NmorphSelectedDateModelType;
11
+ }
12
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
13
+ markToday: boolean;
14
+ initialDate: () => Date;
15
+ modelValue: null;
16
+ range: undefined;
17
+ type: string;
18
+ selectedValues: null;
19
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
20
+ "update:modelValue": (date: NmorphDateType) => void;
21
+ "update-initial-date": (date: Date) => void;
22
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
23
+ markToday: boolean;
24
+ initialDate: () => Date;
25
+ modelValue: null;
26
+ range: undefined;
27
+ type: string;
28
+ selectedValues: null;
29
+ }>>> & {
30
+ "onUpdate:modelValue"?: ((date: NmorphDateType) => any) | undefined;
31
+ "onUpdate-initial-date"?: ((date: Date) => any) | undefined;
32
+ }, {
33
+ modelValue: NmorphDateType;
34
+ type: "date" | "dates" | "daterange";
35
+ range: [Date, Date];
36
+ initialDate: Date;
37
+ selectedValues: NmorphSelectedDateModelType;
38
+ markToday: boolean;
39
+ }, {}>, {
40
+ header?(_: {}): any;
41
+ content?(_: {}): any;
42
+ "date-cell"?(_: {
43
+ scope: {
44
+ selected: boolean;
45
+ monthType: NmorphCalendarDateType;
46
+ value: number;
47
+ isToday: boolean;
48
+ date: Date;
49
+ hidden: boolean;
50
+ };
51
+ }): any;
52
+ }>;
53
+ export default _default;
54
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
55
+ type __VLS_TypePropsToRuntimeProps<T> = {
56
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
57
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
58
+ } : {
59
+ type: PropType<T[K]>;
60
+ required: true;
61
+ };
62
+ };
63
+ type __VLS_WithDefaults<P, D> = {
64
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
65
+ default: D[K];
66
+ }> : P[K];
67
+ };
68
+ type __VLS_Prettify<T> = {
69
+ [K in keyof T]: T[K];
70
+ } & {};
71
+ type __VLS_WithTemplateSlots<T, S> = T & {
72
+ new (): {
73
+ $slots: S;
74
+ };
75
+ };
@@ -0,0 +1,42 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ interface INmorphProps {
3
+ year: number;
4
+ month: number;
5
+ showPreviousMonthButton: boolean;
6
+ showNextMonthButton: boolean;
7
+ showTodayButton: boolean;
8
+ }
9
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
10
+ "click-previous-month": () => void;
11
+ "click-today": () => void;
12
+ "click-next-month": () => void;
13
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {}>>> & {
14
+ "onClick-previous-month"?: (() => any) | undefined;
15
+ "onClick-today"?: (() => any) | undefined;
16
+ "onClick-next-month"?: (() => any) | undefined;
17
+ }, {}, {}>, {
18
+ default?(_: {}): any;
19
+ }>;
20
+ export default _default;
21
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
+ type __VLS_TypePropsToRuntimeProps<T> = {
23
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
24
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
25
+ } : {
26
+ type: PropType<T[K]>;
27
+ required: true;
28
+ };
29
+ };
30
+ type __VLS_WithDefaults<P, D> = {
31
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
32
+ default: D[K];
33
+ }> : P[K];
34
+ };
35
+ type __VLS_Prettify<T> = {
36
+ [K in keyof T]: T[K];
37
+ } & {};
38
+ type __VLS_WithTemplateSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
@@ -0,0 +1 @@
1
+ export declare const monthNames: string[];
@@ -0,0 +1,12 @@
1
+ export type NmorphCalendarDateType = 'current' | 'previous' | 'next';
2
+ export interface INmorphCalendarDate {
3
+ monthType: NmorphCalendarDateType;
4
+ value: number;
5
+ isToday: boolean;
6
+ date: Date;
7
+ hidden: boolean;
8
+ }
9
+ export type NmorphCalendarRangeType = [Date, Date] | undefined;
10
+ export type NmorphCalendarDatesType = INmorphCalendarDate[];
11
+ export type NmorphDateType = Date | null;
12
+ export type NmorphSelectedDateModelType = NmorphDateType | NmorphDateType[];
@@ -0,0 +1,9 @@
1
+ import { NmorphCalendarDatesType, NmorphCalendarRangeType, NmorphSelectedDateModelType } from './types';
2
+ import { Ref } from 'vue';
3
+ export declare const getDecadeYears: (year: number) => number[];
4
+ export declare const formatDateIntl: (date: NmorphSelectedDateModelType) => string | (string | null)[] | undefined;
5
+ export declare const hasAnyRangeDateInPrevMonth: (currentDate: Date, prevMonthRange: Date) => boolean;
6
+ export declare const hasAnyRangeDateInNextMonth: (currentDate: Date, nextMonthRange: Date) => boolean;
7
+ export declare const isTodayInRange: (range: NmorphCalendarRangeType) => boolean;
8
+ export declare const getMonthName: (monthIndex: number) => string;
9
+ export declare const getMonthDaysByWeek: (selectedDate: Ref<Date>, range: NmorphCalendarRangeType | undefined) => NmorphCalendarDatesType[];
@@ -1,12 +1,12 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { ShadowType } from '../../types/common.enums';
3
- interface IProps {
4
- shadowType?: keyof typeof ShadowType;
2
+ import { NmorphShadowType } from '../../types/common';
3
+ interface INmorphProps {
4
+ shadowType?: keyof typeof NmorphShadowType;
5
5
  }
6
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
7
- shadowType: ShadowType;
8
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
9
- shadowType: ShadowType;
6
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
7
+ shadowType: NmorphShadowType;
8
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
9
+ shadowType: NmorphShadowType;
10
10
  }>>>, {
11
11
  shadowType: "inset" | "outset" | "combined";
12
12
  }, {}>, {
@@ -1,3 +1,40 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
- declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ interface INmorphProps {
3
+ loop?: boolean;
4
+ }
5
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
6
+ loop: boolean;
7
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
8
+ change: (value: number) => void;
9
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
10
+ loop: boolean;
11
+ }>>> & {
12
+ onChange?: ((value: number) => any) | undefined;
13
+ }, {
14
+ loop: boolean;
15
+ }, {}>, {
16
+ default?(_: {}): any;
17
+ }>;
3
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,30 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ interface INmorphProps {
3
+ name: string;
4
+ }
5
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {}>>>, {}, {}>, {
6
+ default?(_: {}): any;
7
+ }>;
8
+ export default _default;
9
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
10
+ type __VLS_TypePropsToRuntimeProps<T> = {
11
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
12
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
13
+ } : {
14
+ type: PropType<T[K]>;
15
+ required: true;
16
+ };
17
+ };
18
+ type __VLS_WithDefaults<P, D> = {
19
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
20
+ default: D[K];
21
+ }> : P[K];
22
+ };
23
+ type __VLS_Prettify<T> = {
24
+ [K in keyof T]: T[K];
25
+ } & {};
26
+ type __VLS_WithTemplateSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1,5 @@
1
+ import { Ref } from 'vue';
2
+ export interface INmorphCarouselInjection {
3
+ data: Ref<string[]>;
4
+ carouselId: string;
5
+ }
@@ -0,0 +1,42 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { NmorphCollapseModelType } from './types';
3
+ interface INmorphProps {
4
+ modelValue: NmorphCollapseModelType;
5
+ accordion?: boolean;
6
+ }
7
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
8
+ accordion: boolean;
9
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
10
+ "update:modelValue": (value: NmorphCollapseModelType) => void;
11
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
12
+ accordion: boolean;
13
+ }>>> & {
14
+ "onUpdate:modelValue"?: ((value: NmorphCollapseModelType) => any) | undefined;
15
+ }, {
16
+ accordion: boolean;
17
+ }, {}>, {
18
+ default?(_: {}): any;
19
+ }>;
20
+ export default _default;
21
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
+ type __VLS_TypePropsToRuntimeProps<T> = {
23
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
24
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
25
+ } : {
26
+ type: PropType<T[K]>;
27
+ required: true;
28
+ };
29
+ };
30
+ type __VLS_WithDefaults<P, D> = {
31
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
32
+ default: D[K];
33
+ }> : P[K];
34
+ };
35
+ type __VLS_Prettify<T> = {
36
+ [K in keyof T]: T[K];
37
+ } & {};
38
+ type __VLS_WithTemplateSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
@@ -0,0 +1,55 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { INmorphCollapseItemProps } from '../../types';
3
+ import { NmorphComponentHeight } from '../../../../types/common';
4
+ interface INmorphProps extends INmorphCollapseItemProps {
5
+ height?: keyof typeof NmorphComponentHeight;
6
+ }
7
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
8
+ height: string;
9
+ title: string;
10
+ disabled: boolean;
11
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
12
+ "click-item": (data: {
13
+ id: string;
14
+ isOpen: boolean;
15
+ }) => void;
16
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
17
+ height: string;
18
+ title: string;
19
+ disabled: boolean;
20
+ }>>> & {
21
+ "onClick-item"?: ((data: {
22
+ id: string;
23
+ isOpen: boolean;
24
+ }) => any) | undefined;
25
+ }, {
26
+ disabled: boolean;
27
+ title: string;
28
+ height: "thick" | "default" | "thin";
29
+ }, {}>, {
30
+ title?(_: {}): any;
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
+ };
@@ -0,0 +1,9 @@
1
+ import { Ref } from 'vue';
2
+ export type NmorphCollapseModelType = string | string[];
3
+ export interface INmorphCollapseItemProps {
4
+ name: string;
5
+ title?: string;
6
+ disabled?: boolean;
7
+ }
8
+ export type NmorphCollapseDataInjectionType = Ref<NmorphCollapseModelType>;
9
+ export type NmorphCollapseUpdateModelInjectionType = (id: string, value: boolean) => void;