@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
@@ -1,19 +1,21 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { CommonInputProps } from '../../../types/common.enums';
3
- import { ISelectOption } from '../nmorph-select-option/NmorphSelectOption.vue';
4
- import { SelectModelValue } from '../nmorph-select-option/types';
5
- interface IProps extends CommonInputProps {
2
+ import { INmorphCommonInputProps } from '../../../types/common';
3
+ import { NmorphSelectModelValueType } from './types';
4
+ import { INmorphSelectOption } from './components/nmorph-select-option/NmorphSelectOption.vue';
5
+ interface INmorphProps extends INmorphCommonInputProps {
6
6
  noElementPlaceholder?: string;
7
7
  valueRequired?: boolean;
8
- options?: ISelectOption[];
9
- modelValue?: SelectModelValue;
8
+ options?: INmorphSelectOption[];
9
+ optionsMap?: INmorphSelectOption[];
10
+ modelValue?: NmorphSelectModelValueType;
10
11
  loading?: boolean;
11
12
  open?: boolean;
12
13
  }
13
- declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
14
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
14
15
  noElementPlaceholder: string;
15
16
  valueRequired: boolean;
16
17
  options: () => never[];
18
+ optionsMap: () => never[];
17
19
  modelValue: string;
18
20
  loading: boolean;
19
21
  fill: boolean;
@@ -21,11 +23,12 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
21
23
  disabled: boolean;
22
24
  open: boolean;
23
25
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
24
- "update:modelValue": (val: SelectModelValue) => void;
25
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
26
+ "update:modelValue": (val: NmorphSelectModelValueType) => void;
27
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
26
28
  noElementPlaceholder: string;
27
29
  valueRequired: boolean;
28
30
  options: () => never[];
31
+ optionsMap: () => never[];
29
32
  modelValue: string;
30
33
  loading: boolean;
31
34
  fill: boolean;
@@ -33,18 +36,21 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
33
36
  disabled: boolean;
34
37
  open: boolean;
35
38
  }>>> & {
36
- "onUpdate:modelValue"?: ((val: SelectModelValue) => any) | undefined;
39
+ "onUpdate:modelValue"?: ((val: NmorphSelectModelValueType) => any) | undefined;
37
40
  }, {
38
- disabled: boolean;
39
- modelValue: SelectModelValue;
40
41
  fill: boolean;
41
- height: "default" | "thick" | "thin";
42
- options: ISelectOption[];
42
+ disabled: boolean;
43
+ modelValue: NmorphSelectModelValueType;
44
+ height: "thick" | "default" | "thin";
43
45
  loading: boolean;
46
+ options: INmorphSelectOption[];
44
47
  noElementPlaceholder: string;
45
48
  valueRequired: boolean;
49
+ optionsMap: INmorphSelectOption[];
46
50
  open: boolean;
47
- }, {}>;
51
+ }, {}>, {
52
+ default?(_: {}): any;
53
+ }>;
48
54
  export default _default;
49
55
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
50
56
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -63,3 +69,8 @@ type __VLS_WithDefaults<P, D> = {
63
69
  type __VLS_Prettify<T> = {
64
70
  [K in keyof T]: T[K];
65
71
  } & {};
72
+ type __VLS_WithTemplateSlots<T, S> = T & {
73
+ new (): {
74
+ $slots: S;
75
+ };
76
+ };
@@ -1,16 +1,16 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { CommonInputProps } from '../../../types/common.enums';
3
- export interface ISelectOption extends Omit<CommonInputProps, 'fill'> {
2
+ import { INmorphCommonInputProps } from '../../../../../types/common';
3
+ export interface INmorphSelectOption extends Omit<INmorphCommonInputProps, 'fill'> {
4
4
  value: string;
5
5
  label: string;
6
6
  }
7
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ISelectOption>, {
7
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphSelectOption>, {
8
8
  label: string;
9
9
  height: string;
10
10
  disabled: boolean;
11
11
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
12
12
  "change-value": (val: string) => void;
13
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ISelectOption>, {
13
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphSelectOption>, {
14
14
  label: string;
15
15
  height: string;
16
16
  disabled: boolean;
@@ -19,7 +19,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
19
19
  }, {
20
20
  disabled: boolean;
21
21
  label: string;
22
- height: "default" | "thick" | "thin";
22
+ height: "thick" | "default" | "thin";
23
23
  }, {}>, {
24
24
  default?(_: {}): any;
25
25
  }>;
@@ -0,0 +1,4 @@
1
+ import { Ref } from 'vue';
2
+ export type NmorphSelectModelValueType = string | string[];
3
+ export type NmorphSelectSelectedValueInjectionType = Ref<NmorphSelectModelValueType>;
4
+ export type NmorphSelectChangeSelectedValue = (value: string) => void;
@@ -1,13 +1,13 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { CommonInputProps } from '../../../types/common.enums';
3
- interface IProps extends Omit<CommonInputProps, 'height'> {
2
+ import { INmorphCommonInputProps } from '../../../types/common';
3
+ interface INmorphProps extends Omit<INmorphCommonInputProps, 'height'> {
4
4
  modelValue?: number;
5
5
  max?: number;
6
6
  min?: number;
7
7
  step?: number;
8
8
  showTooltip?: boolean;
9
9
  }
10
- declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
10
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
11
11
  modelValue: number;
12
12
  max: number;
13
13
  min: number;
@@ -17,7 +17,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
17
17
  showTooltip: boolean;
18
18
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
19
19
  "update:modelValue": (val: number) => void;
20
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
20
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
21
21
  modelValue: number;
22
22
  max: number;
23
23
  min: number;
@@ -28,9 +28,9 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
28
28
  }>>> & {
29
29
  "onUpdate:modelValue"?: ((val: number) => any) | undefined;
30
30
  }, {
31
+ fill: boolean;
31
32
  disabled: boolean;
32
33
  modelValue: number;
33
- fill: boolean;
34
34
  max: number;
35
35
  min: number;
36
36
  step: number;
@@ -1,27 +1,29 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { CommonInputProps } from '../../../types/common.enums';
3
- interface IProps extends Omit<CommonInputProps, 'fill'> {
1
+ import { INmorphCommonInputProps, NmorphDomElementType } from '../../../types/common';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, Ref } from 'vue';
3
+ interface INmorphProps extends Omit<INmorphCommonInputProps, 'fill'> {
4
4
  modelValue?: boolean;
5
5
  loading?: boolean;
6
6
  }
7
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
7
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
8
8
  modelValue: boolean;
9
9
  loading: boolean;
10
10
  disabled: boolean;
11
11
  height: string;
12
12
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
13
+ inputDOMRef: (val: Ref<NmorphDomElementType>) => void;
13
14
  "update:modelValue": (val: boolean) => void;
14
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
15
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
15
16
  modelValue: boolean;
16
17
  loading: boolean;
17
18
  disabled: boolean;
18
19
  height: string;
19
20
  }>>> & {
21
+ onInputDOMRef?: ((val: Ref<NmorphDomElementType>) => any) | undefined;
20
22
  "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
21
23
  }, {
22
24
  disabled: boolean;
23
25
  modelValue: boolean;
24
- height: "default" | "thick" | "thin";
26
+ height: "thick" | "default" | "thin";
25
27
  loading: boolean;
26
28
  }, {}>, {
27
29
  "thumb-on"?(_: {}): any;
@@ -1,59 +1,50 @@
1
- import { ITextValidationRule } from '../../../hooks/useValidation';
2
- import { CommonInputProps, ControlComponentHeight } from '../../../types/common.enums';
1
+ import { INmorphCommonInputProps, NmorphDomElementType } from '../../../types/common';
3
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, Ref } from 'vue';
4
- interface IProps extends CommonInputProps {
3
+ interface INmorphProps extends INmorphCommonInputProps {
5
4
  placeholder?: string;
6
5
  typePassword?: boolean;
7
6
  modelValue?: string;
8
- rules?: ITextValidationRule[];
9
- showValidationIcon?: boolean;
10
- staticErrorBoxSpace?: boolean;
7
+ clearable?: boolean;
11
8
  }
12
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
9
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
13
10
  placeholder: string;
14
11
  label: string;
15
12
  typePassword: boolean;
16
13
  disabled: boolean;
17
14
  modelValue: string;
18
15
  rules: () => never[];
19
- height: ControlComponentHeight;
20
- showValidationIcon: boolean;
21
- staticErrorBoxSpace: boolean;
16
+ height: string;
22
17
  fill: boolean;
18
+ clearable: boolean;
23
19
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
20
+ inputDOMRef: (val: Ref<NmorphDomElementType>) => void;
24
21
  "update:modelValue": (val: string) => void;
25
- getDomRef: (el: Ref<HTMLElement | null>) => void;
26
22
  focus: () => void;
27
23
  blur: () => void;
28
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
24
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
29
25
  placeholder: string;
30
26
  label: string;
31
27
  typePassword: boolean;
32
28
  disabled: boolean;
33
29
  modelValue: string;
34
30
  rules: () => never[];
35
- height: ControlComponentHeight;
36
- showValidationIcon: boolean;
37
- staticErrorBoxSpace: boolean;
31
+ height: string;
38
32
  fill: boolean;
33
+ clearable: boolean;
39
34
  }>>> & {
35
+ onInputDOMRef?: ((val: Ref<NmorphDomElementType>) => any) | undefined;
40
36
  "onUpdate:modelValue"?: ((val: string) => any) | undefined;
41
37
  onFocus?: (() => any) | undefined;
42
38
  onBlur?: (() => any) | undefined;
43
- onGetDomRef?: ((el: Ref<HTMLElement | null>) => any) | undefined;
44
39
  }, {
40
+ fill: boolean;
45
41
  disabled: boolean;
46
42
  modelValue: string;
47
- fill: boolean;
48
- rules: ITextValidationRule[];
49
43
  placeholder: string;
50
44
  typePassword: boolean;
51
- showValidationIcon: boolean;
52
- staticErrorBoxSpace: boolean;
53
- height: "default" | "thick" | "thin";
54
- }, {}>, {
55
- append?(_: {}): any;
56
- }>;
45
+ clearable: boolean;
46
+ height: "thick" | "default" | "thin";
47
+ }, {}>;
57
48
  export default _default;
58
49
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
59
50
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -72,8 +63,3 @@ type __VLS_WithDefaults<P, D> = {
72
63
  type __VLS_Prettify<T> = {
73
64
  [K in keyof T]: T[K];
74
65
  } & {};
75
- type __VLS_WithTemplateSlots<T, S> = T & {
76
- new (): {
77
- $slots: S;
78
- };
79
- };
@@ -0,0 +1,65 @@
1
+ import { INmorphCommonInputProps, NmorphDomElementType } from '../../../types/common';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, Ref } from 'vue';
3
+ import { NmorphHourType, NmorphMinuteSecondsType } from './types';
4
+ interface INmorphProps extends Omit<INmorphCommonInputProps, 'fill'> {
5
+ modelValue?: number;
6
+ open?: boolean;
7
+ initWithoutValue?: boolean;
8
+ disabledHours?: [NmorphHourType, NmorphHourType] | null;
9
+ disabledMinutes?: [NmorphMinuteSecondsType, NmorphMinuteSecondsType] | null;
10
+ disabledSeconds?: [NmorphMinuteSecondsType, NmorphMinuteSecondsType] | null;
11
+ }
12
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
13
+ modelValue: number;
14
+ open: boolean;
15
+ disabled: boolean;
16
+ height: string;
17
+ initWithoutValue: boolean;
18
+ disabledHours: null;
19
+ disabledMinutes: null;
20
+ disabledSeconds: null;
21
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
22
+ inputDOMRef: (val: Ref<NmorphDomElementType>) => void;
23
+ "update:modelValue": (val: number) => void;
24
+ "on-change-open-close": (val: boolean) => void;
25
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
26
+ modelValue: number;
27
+ open: boolean;
28
+ disabled: boolean;
29
+ height: string;
30
+ initWithoutValue: boolean;
31
+ disabledHours: null;
32
+ disabledMinutes: null;
33
+ disabledSeconds: null;
34
+ }>>> & {
35
+ onInputDOMRef?: ((val: Ref<NmorphDomElementType>) => any) | undefined;
36
+ "onUpdate:modelValue"?: ((val: number) => any) | undefined;
37
+ "onOn-change-open-close"?: ((val: boolean) => any) | undefined;
38
+ }, {
39
+ disabled: boolean;
40
+ modelValue: number;
41
+ height: "thick" | "default" | "thin";
42
+ open: boolean;
43
+ initWithoutValue: boolean;
44
+ disabledHours: [NmorphHourType, NmorphHourType] | null;
45
+ disabledMinutes: [NmorphMinuteSecondsType, NmorphMinuteSecondsType] | null;
46
+ disabledSeconds: [NmorphMinuteSecondsType, NmorphMinuteSecondsType] | null;
47
+ }, {}>;
48
+ export default _default;
49
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
50
+ type __VLS_TypePropsToRuntimeProps<T> = {
51
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
52
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
53
+ } : {
54
+ type: PropType<T[K]>;
55
+ required: true;
56
+ };
57
+ };
58
+ type __VLS_WithDefaults<P, D> = {
59
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
60
+ default: D[K];
61
+ }> : P[K];
62
+ };
63
+ type __VLS_Prettify<T> = {
64
+ [K in keyof T]: T[K];
65
+ } & {};
@@ -0,0 +1,46 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ interface INmorphProps {
3
+ selectedValue?: number;
4
+ values: number[];
5
+ stepHeight: number;
6
+ setValueOnMount?: boolean;
7
+ disabledRange?: [number, number] | null;
8
+ }
9
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
10
+ selectedValue: number;
11
+ values: () => never[];
12
+ setValueOnMount: boolean;
13
+ disabledRange: null;
14
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
+ "value-changed": (val: number) => void;
16
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
17
+ selectedValue: number;
18
+ values: () => never[];
19
+ setValueOnMount: boolean;
20
+ disabledRange: null;
21
+ }>>> & {
22
+ "onValue-changed"?: ((val: number) => any) | undefined;
23
+ }, {
24
+ values: number[];
25
+ selectedValue: number;
26
+ setValueOnMount: boolean;
27
+ disabledRange: [number, number] | null;
28
+ }, {}>;
29
+ export default _default;
30
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
31
+ type __VLS_TypePropsToRuntimeProps<T> = {
32
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
33
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
34
+ } : {
35
+ type: PropType<T[K]>;
36
+ required: true;
37
+ };
38
+ };
39
+ type __VLS_WithDefaults<P, D> = {
40
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
41
+ default: D[K];
42
+ }> : P[K];
43
+ };
44
+ type __VLS_Prettify<T> = {
45
+ [K in keyof T]: T[K];
46
+ } & {};
@@ -0,0 +1,3 @@
1
+ export type NmorphHourType = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23;
2
+ export type NmorphMinuteSecondsType = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59;
3
+ export type NmorphTimeTupleType = [NmorphHourType, NmorphMinuteSecondsType, NmorphMinuteSecondsType];
@@ -0,0 +1,3 @@
1
+ import { NmorphTimeTupleType } from './types';
2
+ export declare const formatTimestampToTime: (timestamp: number) => string;
3
+ export declare const timeArrayToTimestamp: (timeArray: NmorphTimeTupleType) => number;
@@ -0,0 +1,48 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, Ref } from 'vue';
2
+ import { INmorphRadioOption, NmorphRadioStyleType } from '../types';
3
+ import { NmorphDomElementType } from '../../../../types/common';
4
+ interface INmorphProps extends INmorphRadioOption {
5
+ styleType?: keyof typeof NmorphRadioStyleType;
6
+ }
7
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
8
+ disabled: boolean;
9
+ label: string;
10
+ styleType: string;
11
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
12
+ inputDOMRef: (val: Ref<NmorphDomElementType>) => void;
13
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
14
+ disabled: boolean;
15
+ label: string;
16
+ styleType: string;
17
+ }>>> & {
18
+ onInputDOMRef?: ((val: Ref<NmorphDomElementType>) => any) | undefined;
19
+ }, {
20
+ disabled: boolean;
21
+ label: string;
22
+ styleType: "button-style" | "radio-style";
23
+ }, {}>, {
24
+ label?(_: {}): 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
+ };
@@ -1,48 +1,35 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { IRadioGroupValidationRule } from '../../../../hooks/useValidation';
3
- import { CommonInputProps, ComponentDirection } from '../../../../types/common.enums';
4
- import { IRadioOption, RadioStyleType } from '../types';
5
- interface IProps extends CommonInputProps {
2
+ import { INmorphCommonInputProps, NmorphComponentDirection } from '../../../../types/common';
3
+ import { INmorphRadioOption, NmorphRadioStyleType } from '../types';
4
+ interface INmorphProps extends INmorphCommonInputProps {
6
5
  modelValue: string;
7
- options: IRadioOption[];
8
- styleType?: keyof typeof RadioStyleType;
9
- direction?: keyof typeof ComponentDirection;
10
- rules?: IRadioGroupValidationRule[];
11
- showValidationIcon?: boolean;
12
- staticErrorBoxSpace?: boolean;
6
+ options?: INmorphRadioOption[];
7
+ styleType?: keyof typeof NmorphRadioStyleType;
8
+ direction?: keyof typeof NmorphComponentDirection;
13
9
  }
14
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
10
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
15
11
  modelValue: string;
16
12
  styleType: string;
17
13
  options: () => never[];
18
14
  direction: string;
19
- rules: () => never[];
20
- showValidationIcon: boolean;
21
- staticErrorBoxSpace: boolean;
22
- fill: boolean;
23
15
  label: string;
16
+ disabled: boolean;
24
17
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
25
18
  "update:modelValue": (val: string) => void;
26
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
19
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
27
20
  modelValue: string;
28
21
  styleType: string;
29
22
  options: () => never[];
30
23
  direction: string;
31
- rules: () => never[];
32
- showValidationIcon: boolean;
33
- staticErrorBoxSpace: boolean;
34
- fill: boolean;
35
24
  label: string;
25
+ disabled: boolean;
36
26
  }>>> & {
37
27
  "onUpdate:modelValue"?: ((val: string) => any) | undefined;
38
28
  }, {
29
+ disabled: boolean;
39
30
  modelValue: string;
40
31
  styleType: "button-style" | "radio-style";
41
- fill: boolean;
42
- rules: IRadioGroupValidationRule[];
43
- showValidationIcon: boolean;
44
- staticErrorBoxSpace: boolean;
45
- options: IRadioOption[];
32
+ options: INmorphRadioOption[];
46
33
  direction: "row" | "column";
47
34
  }, {}>, {
48
35
  default?(_: {}): any;
@@ -1,9 +1,12 @@
1
- export interface IRadioOption {
1
+ import { Ref } from 'vue';
2
+ export interface INmorphRadioOption {
2
3
  disabled?: boolean;
3
4
  label?: string;
4
5
  value: string;
5
6
  }
6
- export declare enum RadioStyleType {
7
+ export declare enum NmorphRadioStyleType {
7
8
  'radio-style' = "radio-style",
8
9
  'button-style' = "button-style"
9
10
  }
11
+ export type NmorphRadioGroupSelectedValueInjectionType = Ref<string>;
12
+ export type NmorphRadioChangeRadioButtonValueHandlerInjectionType = (value: string) => void;
@@ -0,0 +1,67 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { NmorphAlertType } from './types';
3
+ interface INmorphProps {
4
+ color?: keyof typeof NmorphAlertType;
5
+ closable?: boolean;
6
+ title?: string;
7
+ content?: string;
8
+ fill: boolean;
9
+ maxWidth?: number;
10
+ showIcon?: boolean;
11
+ }
12
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
13
+ color: string;
14
+ closable: boolean;
15
+ title: string;
16
+ content: string;
17
+ fill: boolean;
18
+ maxWidth: number;
19
+ showIcon: boolean;
20
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
21
+ close: () => void;
22
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
23
+ color: string;
24
+ closable: boolean;
25
+ title: string;
26
+ content: string;
27
+ fill: boolean;
28
+ maxWidth: number;
29
+ showIcon: boolean;
30
+ }>>> & {
31
+ onClose?: (() => any) | undefined;
32
+ }, {
33
+ fill: boolean;
34
+ title: string;
35
+ color: "success" | "error" | "warning" | "info";
36
+ closable: boolean;
37
+ content: string;
38
+ maxWidth: number;
39
+ showIcon: boolean;
40
+ }, {}>, {
41
+ icon?(_: {}): any;
42
+ title?(_: {}): any;
43
+ default?(_: {}): any;
44
+ }>;
45
+ export default _default;
46
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
47
+ type __VLS_TypePropsToRuntimeProps<T> = {
48
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
49
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
50
+ } : {
51
+ type: PropType<T[K]>;
52
+ required: true;
53
+ };
54
+ };
55
+ type __VLS_WithDefaults<P, D> = {
56
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
57
+ default: D[K];
58
+ }> : P[K];
59
+ };
60
+ type __VLS_Prettify<T> = {
61
+ [K in keyof T]: T[K];
62
+ } & {};
63
+ type __VLS_WithTemplateSlots<T, S> = T & {
64
+ new (): {
65
+ $slots: S;
66
+ };
67
+ };
@@ -0,0 +1,6 @@
1
+ export declare enum NmorphAlertType {
2
+ success = "success",
3
+ error = "error",
4
+ warning = "warning",
5
+ info = "info"
6
+ }
@@ -0,0 +1,62 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { NmorphAvatarType } from './type';
3
+ import { NmorphImageFit } from '../../types/common';
4
+ interface INmorphProps {
5
+ size?: number;
6
+ shape?: NmorphAvatarType;
7
+ src?: string;
8
+ srcSet?: string;
9
+ alt?: string;
10
+ fit?: keyof typeof NmorphImageFit;
11
+ }
12
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
13
+ size: number;
14
+ shape: string;
15
+ src: string;
16
+ srcSet: string;
17
+ alt: string;
18
+ fit: string;
19
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
20
+ error: () => void;
21
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
22
+ size: number;
23
+ shape: string;
24
+ src: string;
25
+ srcSet: string;
26
+ alt: string;
27
+ fit: string;
28
+ }>>> & {
29
+ onError?: (() => any) | undefined;
30
+ }, {
31
+ size: number;
32
+ alt: string;
33
+ src: string;
34
+ fit: "fill" | "contain" | "cover" | "none" | "scale-down";
35
+ shape: NmorphAvatarType;
36
+ srcSet: string;
37
+ }, {}>, {
38
+ default?(_: {}): any;
39
+ }>;
40
+ export default _default;
41
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
42
+ type __VLS_TypePropsToRuntimeProps<T> = {
43
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
44
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
45
+ } : {
46
+ type: PropType<T[K]>;
47
+ required: true;
48
+ };
49
+ };
50
+ type __VLS_WithDefaults<P, D> = {
51
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
52
+ default: D[K];
53
+ }> : P[K];
54
+ };
55
+ type __VLS_Prettify<T> = {
56
+ [K in keyof T]: T[K];
57
+ } & {};
58
+ type __VLS_WithTemplateSlots<T, S> = T & {
59
+ new (): {
60
+ $slots: S;
61
+ };
62
+ };
@@ -0,0 +1 @@
1
+ export type NmorphAvatarType = 'circle' | 'square';