@nmorph/nmorph-ui-kit 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/dist/index.es.js +3897 -3912
  2. package/dist/style.css +1 -1
  3. package/dist/styles/base/_animation.scss +8 -0
  4. package/dist/styles/base/_basic.scss +43 -0
  5. package/dist/styles/base/_colors.scss +14 -5
  6. package/dist/styles/base/_common-mixins.scss +12 -5
  7. package/dist/styles/base/_dimensions.scss +18 -8
  8. package/dist/styles/base/_theme-mixin.scss +12 -10
  9. package/dist/styles/base/_typography.scss +29 -132
  10. package/dist/styles/base/style.scss +3 -7
  11. package/dist/styles/main.scss +1 -2
  12. package/dist/types/components/form/nmorph-form/NmorphForm.vue.d.ts +56 -0
  13. package/dist/types/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts +58 -0
  14. package/dist/types/components/form/nmorph-form/components/nmorph-form-item/components/index.d.ts +3 -0
  15. package/dist/types/components/form/nmorph-form/components/nmorph-form-item/components/nmorph-error-box/NmorphErrorBox.vue.d.ts +38 -0
  16. package/dist/types/components/form/nmorph-form/components/nmorph-form-item/components/nmorph-validation-icon/NmorphValidationIcon.vue.d.ts +30 -0
  17. package/dist/types/components/form/types.d.ts +7 -0
  18. package/dist/types/components/inputs/checkbox/nmorph-checkbox/NmorphCheckbox.vue.d.ts +6 -3
  19. package/dist/types/components/inputs/checkbox/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +4 -22
  20. package/dist/types/components/inputs/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +72 -0
  21. package/dist/types/components/inputs/nmorph-autocomplete/types.d.ts +5 -0
  22. package/dist/types/components/inputs/nmorph-clear-button/NmorphClearButton.vue.d.ts +7 -0
  23. package/dist/types/components/inputs/nmorph-date-picker/NmorphDatePicker.vue.d.ts +70 -0
  24. package/dist/types/components/inputs/nmorph-date-picker/components/nmorph-date-picker-content/NmorphDatePickerContent.vue.d.ts +40 -0
  25. package/dist/types/components/inputs/nmorph-date-picker/components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.d.ts +43 -0
  26. package/dist/types/components/inputs/nmorph-date-picker/components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.d.ts +38 -0
  27. package/dist/types/components/inputs/nmorph-date-picker/components/types.d.ts +6 -0
  28. package/dist/types/components/inputs/nmorph-file-upload/NmorphFileUpload.vue.d.ts +18 -3
  29. package/dist/types/components/inputs/nmorph-number-input/NmorphNumberInput.vue.d.ts +12 -27
  30. package/dist/types/components/inputs/nmorph-select/NmorphSelect.vue.d.ts +19 -8
  31. package/dist/types/components/inputs/nmorph-select-option/NmorphSelectOption.vue.d.ts +4 -4
  32. package/dist/types/components/inputs/nmorph-slider/NmorphSlider.vue.d.ts +4 -4
  33. package/dist/types/components/inputs/nmorph-switch/NmorphSwitch.vue.d.ts +7 -5
  34. package/dist/types/components/inputs/nmorph-text-input/NmorphTextInput.vue.d.ts +16 -30
  35. package/dist/types/components/inputs/nmorph-time-picker/NmorphTimePicker.vue.d.ts +65 -0
  36. package/dist/types/components/inputs/nmorph-time-picker/components/NmorphTimeRoller.vue.d.ts +46 -0
  37. package/dist/types/components/inputs/nmorph-time-picker/types.d.ts +3 -0
  38. package/dist/types/components/inputs/nmorph-time-picker/utils.d.ts +3 -0
  39. package/dist/types/components/inputs/radio/nmorph-radio/NmorphRadio.vue.d.ts +48 -0
  40. package/dist/types/components/inputs/radio/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +7 -20
  41. package/dist/types/components/nmorph-alert/NmorphAlert.vue.d.ts +67 -0
  42. package/dist/types/components/nmorph-alert/types.d.ts +6 -0
  43. package/dist/types/components/nmorph-avatar/NmorphAvatar.vue.d.ts +62 -0
  44. package/dist/types/components/nmorph-avatar/type.d.ts +1 -0
  45. package/dist/types/components/nmorph-backtop/NmorphBacktop.vue.d.ts +48 -0
  46. package/dist/types/components/nmorph-badge/NmorphBadge.vue.d.ts +60 -0
  47. package/dist/types/components/nmorph-breadcrumb/NmorphBreadcrumb.vue.d.ts +36 -0
  48. package/dist/types/components/nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue.d.ts +40 -0
  49. package/dist/types/components/nmorph-breadcrumb/types.d.ts +13 -0
  50. package/dist/types/components/nmorph-button/NmorphButton.vue.d.ts +14 -21
  51. package/dist/types/components/nmorph-calendar/NmorphCalendar.vue.d.ts +75 -0
  52. package/dist/types/components/nmorph-calendar/components/nmorph-calendar-header/NmorphCalendarHeader.vue.d.ts +42 -0
  53. package/dist/types/components/nmorph-calendar/locale.d.ts +1 -0
  54. package/dist/types/components/nmorph-calendar/types.d.ts +12 -0
  55. package/dist/types/components/nmorph-calendar/utils.d.ts +9 -0
  56. package/dist/types/components/nmorph-card/NmorphCard.vue.d.ts +4 -4
  57. package/dist/types/components/nmorph-carousel/NmorphCarousel.vue.d.ts +39 -2
  58. package/dist/types/components/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue.d.ts +30 -0
  59. package/dist/types/components/nmorph-carousel/types.d.ts +5 -0
  60. package/dist/types/components/nmorph-collapse/NmorphCollapse.vue.d.ts +42 -0
  61. package/dist/types/components/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +55 -0
  62. package/dist/types/components/nmorph-collapse/types.d.ts +6 -0
  63. package/dist/types/components/nmorph-dialog/NmorphDialog.vue.d.ts +47 -0
  64. package/dist/types/components/{inputs/common/NmorphValidationIcon.vue.d.ts → nmorph-divider/NmorphDivider.vue.d.ts} +5 -5
  65. package/dist/types/components/nmorph-divider/types.d.ts +1 -0
  66. package/dist/types/components/nmorph-dropdown/NmorphDropdown.vue.d.ts +55 -0
  67. package/dist/types/components/nmorph-icon/NmorphIcon.vue.d.ts +15 -15
  68. package/dist/types/components/nmorph-icon/NmorphIconsMap.d.ts +2 -4
  69. package/dist/types/components/nmorph-icon/types.d.ts +3 -3
  70. package/dist/types/components/nmorph-image/NmorphImage.vue.d.ts +6 -8
  71. package/dist/types/components/nmorph-link/NmorphLink.vue.d.ts +9 -9
  72. package/dist/types/components/nmorph-overlay/NmorphOverlay.vue.d.ts +2 -1
  73. package/dist/types/components/nmorph-pagination/NmorphPagination.vue.d.ts +56 -0
  74. package/dist/types/components/nmorph-progress/NmorphProgress.vue.d.ts +66 -0
  75. package/dist/types/components/nmorph-progress/types.d.ts +6 -0
  76. package/dist/types/components/nmorph-scroll/NmorphScroll.vue.d.ts +69 -0
  77. package/dist/types/components/nmorph-skeleton/NmorphSkeleton.vue.d.ts +45 -0
  78. package/dist/types/components/{nmorph-error-box/NmorphErrorBox.vue.d.ts → nmorph-skeleton/components/NmorphSkeletonItem.vue.d.ts} +5 -9
  79. package/dist/types/components/nmorph-skeleton/types.d.ts +1 -0
  80. package/dist/types/components/nmorph-sort-button/NmorphSortButton.vue.d.ts +28 -0
  81. package/dist/types/components/nmorph-tabs/NmorphTabs.vue.d.ts +47 -0
  82. package/dist/types/components/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue.d.ts +40 -0
  83. package/dist/types/components/nmorph-tabs/type.d.ts +11 -0
  84. package/dist/types/components/nmorph-tabs/utils.d.ts +3 -0
  85. package/dist/types/components/nmorph-tag/NmorphTag.vue.d.ts +5 -5
  86. package/dist/types/components/nmorph-tooltip/NmorphTooltip.vue.d.ts +5 -23
  87. package/dist/types/components/table/nmorph-table/NmorphTable.vue.d.ts +59 -0
  88. package/dist/types/components/table/nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue.d.ts +30 -0
  89. package/dist/types/components/table/nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue.d.ts +48 -0
  90. package/dist/types/components/table/types.d.ts +19 -0
  91. package/dist/types/components.d.ts +32 -2
  92. package/dist/types/hooks/index.d.ts +3 -0
  93. package/dist/types/hooks/useFieldValidation.d.ts +53 -0
  94. package/dist/types/hooks/useFormValidation.d.ts +10 -0
  95. package/dist/types/hooks/usePlacement.d.ts +17 -0
  96. package/dist/types/types/common.d.ts +77 -0
  97. package/dist/types/utils/create-modifiers.d.ts +4 -1
  98. package/dist/types/utils/deep-clone.d.ts +1 -0
  99. package/dist/types/utils/generateUUID.d.ts +1 -0
  100. package/dist/types/utils/index.d.ts +3 -0
  101. package/dist/types/utils/is-string-html.d.ts +1 -0
  102. package/package.json +1 -1
  103. package/dist/styles/base/_transition.scss +0 -6
  104. package/dist/types/hooks/useValidation.d.ts +0 -55
  105. package/dist/types/types/common.enums.d.ts +0 -46
  106. /package/dist/types/components/inputs/nmorph-select-option/{types/index.d.ts → types.d.ts} +0 -0
  107. /package/dist/{styles/packages/style.scss → types/hooks/useEventManager.d.ts} +0 -0
@@ -1,56 +1,41 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { INumberValidationRule } from '../../../hooks/useValidation';
3
- import { CommonInputProps, ControlComponentHeight } from '../../../types/common.enums';
4
- interface IProps extends CommonInputProps {
1
+ import { NmorphCommonInputProps, NmorphDomElement } from '../../../types/common';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, Ref } from 'vue';
3
+ interface IProps extends NmorphCommonInputProps {
5
4
  modelValue?: number;
6
5
  max?: number;
7
6
  min?: number;
8
7
  step?: number;
9
8
  actionBtnPositionRight?: boolean;
10
- rules?: INumberValidationRule[];
11
- showValidationIcon?: boolean;
12
- staticErrorBoxSpace?: boolean;
13
9
  }
14
10
  declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
15
- height: ControlComponentHeight;
11
+ height: string;
16
12
  modelValue: number;
17
13
  max: number;
18
14
  min: number;
19
15
  step: number;
20
16
  disabled: boolean;
21
17
  actionBtnPositionRight: boolean;
22
- label: string;
23
- rules: () => never[];
24
- showValidationIcon: boolean;
25
- staticErrorBoxSpace: boolean;
26
- interceptWrongValue: boolean;
27
18
  fill: boolean;
28
19
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
29
- "update:modelValue": (val: string) => void;
20
+ inputDOMRef: (val: Ref<NmorphDomElement>) => void;
21
+ "update:modelValue": (val: number) => void;
30
22
  }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
31
- height: ControlComponentHeight;
23
+ height: string;
32
24
  modelValue: number;
33
25
  max: number;
34
26
  min: number;
35
27
  step: number;
36
28
  disabled: boolean;
37
29
  actionBtnPositionRight: boolean;
38
- label: string;
39
- rules: () => never[];
40
- showValidationIcon: boolean;
41
- staticErrorBoxSpace: boolean;
42
- interceptWrongValue: boolean;
43
30
  fill: boolean;
44
31
  }>>> & {
45
- "onUpdate:modelValue"?: ((val: string) => any) | undefined;
32
+ onInputDOMRef?: ((val: Ref<NmorphDomElement>) => any) | undefined;
33
+ "onUpdate:modelValue"?: ((val: number) => any) | undefined;
46
34
  }, {
47
- disabled: boolean;
48
- modelValue: number;
49
35
  fill: boolean;
50
- rules: INumberValidationRule[];
51
- showValidationIcon: boolean;
52
- staticErrorBoxSpace: boolean;
53
- height: "default" | "thick" | "thin";
36
+ height: "thick" | "default" | "thin";
37
+ modelValue: number;
38
+ disabled: boolean;
54
39
  max: number;
55
40
  min: number;
56
41
  step: number;
@@ -1,19 +1,21 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { CommonInputProps } from '../../../types/common.enums';
2
+ import { NmorphCommonInputProps } from '../../../types/common';
3
3
  import { ISelectOption } from '../nmorph-select-option/NmorphSelectOption.vue';
4
4
  import { SelectModelValue } from '../nmorph-select-option/types';
5
- interface IProps extends CommonInputProps {
5
+ interface IProps extends NmorphCommonInputProps {
6
6
  noElementPlaceholder?: string;
7
7
  valueRequired?: boolean;
8
8
  options?: ISelectOption[];
9
+ optionsMap?: ISelectOption[];
9
10
  modelValue?: SelectModelValue;
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<IProps>, {
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;
@@ -26,6 +28,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
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;
@@ -35,16 +38,19 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
35
38
  }>>> & {
36
39
  "onUpdate:modelValue"?: ((val: SelectModelValue) => any) | undefined;
37
40
  }, {
38
- disabled: boolean;
39
- modelValue: SelectModelValue;
40
41
  fill: boolean;
41
- height: "default" | "thick" | "thin";
42
- options: ISelectOption[];
42
+ height: "thick" | "default" | "thin";
43
+ modelValue: SelectModelValue;
44
+ disabled: boolean;
43
45
  loading: boolean;
46
+ options: ISelectOption[];
44
47
  noElementPlaceholder: string;
45
48
  valueRequired: boolean;
49
+ optionsMap: ISelectOption[];
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,6 +1,6 @@
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 { NmorphCommonInputProps } from '../../../types/common';
3
+ export interface ISelectOption extends Omit<NmorphCommonInputProps, 'fill'> {
4
4
  value: string;
5
5
  label: string;
6
6
  }
@@ -17,9 +17,9 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
17
17
  }>>> & {
18
18
  "onChange-value"?: ((val: string) => any) | undefined;
19
19
  }, {
20
- disabled: boolean;
21
20
  label: string;
22
- height: "default" | "thick" | "thin";
21
+ height: "thick" | "default" | "thin";
22
+ disabled: boolean;
23
23
  }, {}>, {
24
24
  default?(_: {}): any;
25
25
  }>;
@@ -1,6 +1,6 @@
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 { NmorphCommonInputProps } from '../../../types/common';
3
+ interface IProps extends Omit<NmorphCommonInputProps, 'height'> {
4
4
  modelValue?: number;
5
5
  max?: number;
6
6
  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
- disabled: boolean;
32
- modelValue: number;
33
31
  fill: boolean;
32
+ modelValue: number;
33
+ disabled: boolean;
34
34
  max: number;
35
35
  min: number;
36
36
  step: number;
@@ -1,6 +1,6 @@
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 { NmorphCommonInputProps, NmorphDomElement } from '../../../types/common';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, Ref } from 'vue';
3
+ interface IProps extends Omit<NmorphCommonInputProps, 'fill'> {
4
4
  modelValue?: boolean;
5
5
  loading?: boolean;
6
6
  }
@@ -10,6 +10,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
10
10
  disabled: boolean;
11
11
  height: string;
12
12
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
13
+ inputDOMRef: (val: Ref<NmorphDomElement>) => void;
13
14
  "update:modelValue": (val: boolean) => void;
14
15
  }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
15
16
  modelValue: boolean;
@@ -17,11 +18,12 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
17
18
  disabled: boolean;
18
19
  height: string;
19
20
  }>>> & {
21
+ onInputDOMRef?: ((val: Ref<NmorphDomElement>) => any) | undefined;
20
22
  "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
21
23
  }, {
22
- disabled: boolean;
24
+ height: "thick" | "default" | "thin";
23
25
  modelValue: boolean;
24
- height: "default" | "thick" | "thin";
26
+ disabled: boolean;
25
27
  loading: boolean;
26
28
  }, {}>, {
27
29
  "thumb-on"?(_: {}): any;
@@ -1,28 +1,24 @@
1
- import { ITextValidationRule } from '../../../hooks/useValidation';
2
- import { CommonInputProps, ControlComponentHeight } from '../../../types/common.enums';
1
+ import { NmorphCommonInputProps, NmorphDomElement } from '../../../types/common';
3
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, Ref } from 'vue';
4
- interface IProps extends CommonInputProps {
3
+ interface IProps extends NmorphCommonInputProps {
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<IProps>, {
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<NmorphDomElement>) => void;
24
21
  "update:modelValue": (val: string) => void;
25
- getDomRef: (el: Ref<HTMLElement | null>) => void;
26
22
  focus: () => void;
27
23
  blur: () => void;
28
24
  }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
@@ -32,28 +28,23 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
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
  }>>> & {
40
- "onUpdate:modelValue"?: ((val: string) => any) | undefined;
41
35
  onFocus?: (() => any) | undefined;
42
36
  onBlur?: (() => any) | undefined;
43
- onGetDomRef?: ((el: Ref<HTMLElement | null>) => any) | undefined;
37
+ onInputDOMRef?: ((val: Ref<NmorphDomElement>) => any) | undefined;
38
+ "onUpdate:modelValue"?: ((val: string) => any) | undefined;
44
39
  }, {
45
- disabled: boolean;
46
- modelValue: string;
47
40
  fill: boolean;
48
- rules: ITextValidationRule[];
41
+ height: "thick" | "default" | "thin";
49
42
  placeholder: string;
50
43
  typePassword: boolean;
51
- showValidationIcon: boolean;
52
- staticErrorBoxSpace: boolean;
53
- height: "default" | "thick" | "thin";
54
- }, {}>, {
55
- append?(_: {}): any;
56
- }>;
44
+ modelValue: string;
45
+ clearable: boolean;
46
+ disabled: boolean;
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 { NmorphCommonInputProps, NmorphDomElement } from '../../../types/common';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, Ref } from 'vue';
3
+ import { Hour, MinuteSeconds } from './types';
4
+ interface IProps extends Omit<NmorphCommonInputProps, 'fill'> {
5
+ modelValue?: number;
6
+ open?: boolean;
7
+ initWithoutValue?: boolean;
8
+ disabledHours?: [Hour, Hour] | null;
9
+ disabledMinutes?: [MinuteSeconds, MinuteSeconds] | null;
10
+ disabledSeconds?: [MinuteSeconds, MinuteSeconds] | null;
11
+ }
12
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
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<NmorphDomElement>) => void;
23
+ "update:modelValue": (val: number) => void;
24
+ "on-change-open-close": (val: boolean) => void;
25
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
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<NmorphDomElement>) => any) | undefined;
36
+ "onUpdate:modelValue"?: ((val: number) => any) | undefined;
37
+ "onOn-change-open-close"?: ((val: boolean) => any) | undefined;
38
+ }, {
39
+ height: "thick" | "default" | "thin";
40
+ modelValue: number;
41
+ disabled: boolean;
42
+ open: boolean;
43
+ initWithoutValue: boolean;
44
+ disabledHours: [Hour, Hour] | null;
45
+ disabledMinutes: [MinuteSeconds, MinuteSeconds] | null;
46
+ disabledSeconds: [MinuteSeconds, MinuteSeconds] | 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 IProps {
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<IProps>, {
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<IProps>, {
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 Hour = 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 MinuteSeconds = 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 TimeTuple = [Hour, MinuteSeconds, MinuteSeconds];
@@ -0,0 +1,3 @@
1
+ import { TimeTuple } from './types';
2
+ export declare const formatTimestampToTime: (timestamp: number) => string;
3
+ export declare const timeArrayToTimestamp: (timeArray: TimeTuple) => number;
@@ -0,0 +1,48 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, Ref } from 'vue';
2
+ import { IRadioOption, RadioStyleType } from '../types';
3
+ import { NmorphDomElement } from '../../../../types/common';
4
+ interface IProps extends IRadioOption {
5
+ styleType?: keyof typeof RadioStyleType;
6
+ }
7
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
8
+ disabled: boolean;
9
+ label: string;
10
+ styleType: string;
11
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
12
+ inputDOMRef: (val: Ref<NmorphDomElement>) => void;
13
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
14
+ disabled: boolean;
15
+ label: string;
16
+ styleType: string;
17
+ }>>> & {
18
+ onInputDOMRef?: ((val: Ref<NmorphDomElement>) => any) | undefined;
19
+ }, {
20
+ label: string;
21
+ disabled: boolean;
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,26 +1,19 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { IRadioGroupValidationRule } from '../../../../hooks/useValidation';
3
- import { CommonInputProps, ComponentDirection } from '../../../../types/common.enums';
2
+ import { NmorphCommonInputProps, NmorphComponentDirection } from '../../../../types/common';
4
3
  import { IRadioOption, RadioStyleType } from '../types';
5
- interface IProps extends CommonInputProps {
4
+ interface IProps extends NmorphCommonInputProps {
6
5
  modelValue: string;
7
- options: IRadioOption[];
6
+ options?: IRadioOption[];
8
7
  styleType?: keyof typeof RadioStyleType;
9
- direction?: keyof typeof ComponentDirection;
10
- rules?: IRadioGroupValidationRule[];
11
- showValidationIcon?: boolean;
12
- staticErrorBoxSpace?: boolean;
8
+ direction?: keyof typeof NmorphComponentDirection;
13
9
  }
14
10
  declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
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
19
  }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
@@ -28,20 +21,14 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
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
  }, {
39
29
  modelValue: string;
30
+ disabled: boolean;
40
31
  styleType: "button-style" | "radio-style";
41
- fill: boolean;
42
- rules: IRadioGroupValidationRule[];
43
- showValidationIcon: boolean;
44
- staticErrorBoxSpace: boolean;
45
32
  options: IRadioOption[];
46
33
  direction: "row" | "column";
47
34
  }, {}>, {
@@ -0,0 +1,67 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { NmorphAlertType } from './types';
3
+ interface IProps {
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<IProps>, {
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<IProps>, {
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 { ImageFit } from '../../types/common';
4
+ interface IProps {
5
+ size?: number;
6
+ shape?: NmorphAvatarType;
7
+ src?: string;
8
+ srcSet?: string;
9
+ alt?: string;
10
+ fit?: keyof typeof ImageFit;
11
+ }
12
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
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<IProps>, {
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';