@nmorph/nmorph-ui-kit 0.0.2 → 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 (103) hide show
  1. package/dist/index.es.js +1158 -1161
  2. package/dist/style.css +1 -1
  3. package/dist/styles/base/_basic.scss +3 -3
  4. package/dist/styles/base/_colors.scss +22 -30
  5. package/dist/styles/base/_dimensions.scss +1 -1
  6. package/dist/styles/base/_histoire.scss +1 -1
  7. package/dist/styles/base/_theme-mixin.scss +4 -4
  8. package/dist/types/components/inputs/checkbox/nmorph-checkbox/NmorphCheckbox.vue.d.ts +8 -8
  9. package/dist/types/components/inputs/checkbox/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +8 -8
  10. package/dist/types/components/inputs/checkbox/types.d.ts +6 -3
  11. package/dist/types/components/inputs/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +14 -14
  12. package/dist/types/components/inputs/nmorph-autocomplete/types.d.ts +2 -2
  13. package/dist/types/components/inputs/nmorph-date-picker/NmorphDatePicker.vue.d.ts +11 -11
  14. package/dist/types/components/inputs/nmorph-date-picker/components/nmorph-date-picker-content/NmorphDatePickerContent.vue.d.ts +7 -7
  15. package/dist/types/components/inputs/nmorph-date-picker/components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.d.ts +3 -3
  16. package/dist/types/components/inputs/nmorph-date-picker/components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.d.ts +3 -3
  17. package/dist/types/components/inputs/nmorph-date-picker/components/types.d.ts +1 -0
  18. package/dist/types/components/inputs/nmorph-file-upload/NmorphFileUpload.vue.d.ts +10 -14
  19. package/dist/types/components/inputs/nmorph-file-upload/types.d.ts +32 -28
  20. package/dist/types/components/inputs/nmorph-number-input/NmorphNumberInput.vue.d.ts +8 -8
  21. package/dist/types/components/inputs/nmorph-select/NmorphSelect.vue.d.ts +15 -15
  22. package/dist/types/components/inputs/{nmorph-select-option → nmorph-select/components/nmorph-select-option}/NmorphSelectOption.vue.d.ts +5 -5
  23. package/dist/types/components/inputs/nmorph-select/types.d.ts +4 -0
  24. package/dist/types/components/inputs/nmorph-slider/NmorphSlider.vue.d.ts +5 -5
  25. package/dist/types/components/inputs/nmorph-switch/NmorphSwitch.vue.d.ts +8 -8
  26. package/dist/types/components/inputs/nmorph-text-input/NmorphTextInput.vue.d.ts +10 -10
  27. package/dist/types/components/inputs/nmorph-time-picker/NmorphTimePicker.vue.d.ts +15 -15
  28. package/dist/types/components/inputs/nmorph-time-picker/components/NmorphTimeRoller.vue.d.ts +3 -3
  29. package/dist/types/components/inputs/nmorph-time-picker/types.d.ts +3 -3
  30. package/dist/types/components/inputs/nmorph-time-picker/utils.d.ts +2 -2
  31. package/dist/types/components/inputs/radio/nmorph-radio/NmorphRadio.vue.d.ts +9 -9
  32. package/dist/types/components/inputs/radio/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +9 -9
  33. package/dist/types/components/inputs/radio/types.d.ts +5 -2
  34. package/dist/types/components/nmorph-alert/NmorphAlert.vue.d.ts +3 -3
  35. package/dist/types/components/nmorph-avatar/NmorphAvatar.vue.d.ts +5 -5
  36. package/dist/types/components/nmorph-backtop/NmorphBacktop.vue.d.ts +3 -3
  37. package/dist/types/components/nmorph-badge/NmorphBadge.vue.d.ts +4 -4
  38. package/dist/types/components/nmorph-breadcrumb/NmorphBreadcrumb.vue.d.ts +3 -3
  39. package/dist/types/components/nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue.d.ts +4 -4
  40. package/dist/types/components/nmorph-breadcrumb/types.d.ts +2 -2
  41. package/dist/types/components/nmorph-button/NmorphButton.vue.d.ts +7 -7
  42. package/dist/types/components/nmorph-calendar/NmorphCalendar.vue.d.ts +11 -11
  43. package/dist/types/components/nmorph-calendar/components/nmorph-calendar-header/NmorphCalendarHeader.vue.d.ts +3 -3
  44. package/dist/types/components/nmorph-calendar/types.d.ts +5 -5
  45. package/dist/types/components/nmorph-calendar/utils.d.ts +4 -4
  46. package/dist/types/components/nmorph-card/NmorphCard.vue.d.ts +3 -3
  47. package/dist/types/components/nmorph-carousel/NmorphCarousel.vue.d.ts +3 -3
  48. package/dist/types/components/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue.d.ts +2 -2
  49. package/dist/types/components/nmorph-carousel/types.d.ts +1 -1
  50. package/dist/types/components/nmorph-collapse/NmorphCollapse.vue.d.ts +7 -7
  51. package/dist/types/components/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +5 -5
  52. package/dist/types/components/nmorph-collapse/types.d.ts +5 -2
  53. package/dist/types/components/nmorph-dialog/NmorphDialog.vue.d.ts +4 -4
  54. package/dist/types/components/nmorph-divider/NmorphDivider.vue.d.ts +6 -6
  55. package/dist/types/components/nmorph-divider/types.d.ts +1 -1
  56. package/dist/types/components/nmorph-dropdown/NmorphDropdown.vue.d.ts +7 -7
  57. package/dist/types/components/{form/nmorph-form → nmorph-form}/NmorphForm.vue.d.ts +5 -5
  58. package/dist/types/components/{form/nmorph-form → nmorph-form}/components/nmorph-form-item/NmorphFormItem.vue.d.ts +4 -4
  59. package/dist/types/components/{form/nmorph-form → nmorph-form}/components/nmorph-form-item/components/nmorph-error-box/NmorphErrorBox.vue.d.ts +4 -4
  60. package/dist/types/components/{form/nmorph-form → nmorph-form}/components/nmorph-form-item/components/nmorph-validation-icon/NmorphValidationIcon.vue.d.ts +3 -3
  61. package/dist/types/components/nmorph-form/types.d.ts +7 -0
  62. package/dist/types/components/nmorph-icon/NmorphIcon.vue.d.ts +4 -4
  63. package/dist/types/components/nmorph-image/NmorphImage.vue.d.ts +5 -5
  64. package/dist/types/components/nmorph-image-preview/NmorphImagePreview.vue.d.ts +3 -3
  65. package/dist/types/components/nmorph-image-preview/types.d.ts +5 -0
  66. package/dist/types/components/nmorph-link/NmorphLink.vue.d.ts +7 -12
  67. package/dist/types/components/nmorph-link/types.d.ts +6 -0
  68. package/dist/types/components/nmorph-overlay/NmorphOverlay.vue.d.ts +3 -3
  69. package/dist/types/components/nmorph-pagination/NmorphPagination.vue.d.ts +4 -4
  70. package/dist/types/components/nmorph-progress/NmorphProgress.vue.d.ts +3 -3
  71. package/dist/types/components/nmorph-scroll/NmorphScroll.vue.d.ts +8 -14
  72. package/dist/types/components/nmorph-scroll/types.d.ts +7 -0
  73. package/dist/types/components/nmorph-skeleton/NmorphSkeleton.vue.d.ts +3 -3
  74. package/dist/types/components/nmorph-skeleton/components/NmorphSkeletonItem.vue.d.ts +3 -3
  75. package/dist/types/components/nmorph-sort-button/NmorphSortButton.vue.d.ts +3 -3
  76. package/dist/types/components/{table/nmorph-table → nmorph-table}/NmorphTable.vue.d.ts +4 -4
  77. package/dist/types/components/{table/nmorph-table → nmorph-table}/components/nmorph-table-cell/NmorphTableCell.vue.d.ts +2 -2
  78. package/dist/types/components/{table/nmorph-table → nmorph-table}/components/nmorph-table-column/NmorphTableColumn.vue.d.ts +6 -6
  79. package/dist/types/components/nmorph-table/types.d.ts +21 -0
  80. package/dist/types/components/nmorph-tabs/NmorphTabs.vue.d.ts +3 -3
  81. package/dist/types/components/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue.d.ts +5 -5
  82. package/dist/types/components/nmorph-tabs/type.d.ts +3 -3
  83. package/dist/types/components/nmorph-tag/NmorphTag.vue.d.ts +3 -3
  84. package/dist/types/components/nmorph-tooltip/NmorphTooltip.vue.d.ts +7 -7
  85. package/dist/types/components.d.ts +8 -9
  86. package/dist/types/histoire.setup.d.ts +0 -2
  87. package/dist/types/hooks/index.d.ts +1 -0
  88. package/dist/types/hooks/useEventManager.d.ts +1 -0
  89. package/dist/types/hooks/useFieldValidation.d.ts +21 -21
  90. package/dist/types/hooks/useFormValidation.d.ts +2 -2
  91. package/dist/types/hooks/usePlacement.d.ts +6 -6
  92. package/dist/types/types/common.d.ts +5 -5
  93. package/package.json +5 -24
  94. package/dist/fonts/Inter-Bold.woff +0 -0
  95. package/dist/fonts/Inter-Bold.woff2 +0 -0
  96. package/dist/fonts/Inter-Regular.woff +0 -0
  97. package/dist/fonts/Inter-Regular.woff2 +0 -0
  98. package/dist/fonts/Inter-SemiBold.woff +0 -0
  99. package/dist/fonts/Inter-SemiBold.woff2 +0 -0
  100. package/dist/types/components/form/types.d.ts +0 -7
  101. package/dist/types/components/inputs/nmorph-select-option/types.d.ts +0 -1
  102. package/dist/types/components/table/types.d.ts +0 -19
  103. /package/dist/types/components/{form/nmorph-form → nmorph-form}/components/nmorph-form-item/components/index.d.ts +0 -0
@@ -1,19 +1,19 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
2
  import { NmorphComponentHeight } from '../../types/common';
3
- interface IProps {
3
+ interface INmorphProps {
4
4
  value: string;
5
5
  text: string;
6
6
  removable?: boolean;
7
7
  height?: keyof typeof NmorphComponentHeight;
8
8
  transparent?: 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
  height: string;
12
12
  removable: boolean;
13
13
  transparent: boolean;
14
14
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
15
  close: (val: string) => void;
16
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
16
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
17
17
  height: string;
18
18
  removable: boolean;
19
19
  transparent: boolean;
@@ -1,17 +1,17 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { NmorphCoords, NmorphPlacement } from '../../types/common';
3
- interface IProps {
2
+ import { INmorphCoords, NmorphPlacementType } from '../../types/common';
3
+ interface INmorphProps {
4
4
  text?: string;
5
- position?: NmorphPlacement;
5
+ position?: NmorphPlacementType;
6
6
  forceShow?: boolean;
7
- forceCoordinate?: Partial<NmorphCoords<string>> | null;
7
+ forceCoordinate?: Partial<INmorphCoords<string>> | null;
8
8
  }
9
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
9
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
10
10
  text: string;
11
11
  position: string;
12
12
  forceShow: boolean;
13
13
  forceCoordinate: null;
14
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
14
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
15
15
  text: string;
16
16
  position: string;
17
17
  forceShow: boolean;
@@ -20,7 +20,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
20
20
  text: string;
21
21
  position: "left" | "right" | "top" | "bottom";
22
22
  forceShow: boolean;
23
- forceCoordinate: Partial<NmorphCoords<string>> | null;
23
+ forceCoordinate: Partial<INmorphCoords<string>> | null;
24
24
  }, {}>, {
25
25
  default?(_: {}): any;
26
26
  content?(_: {}): any;
@@ -7,11 +7,12 @@ import NmorphNumberInput from './components/inputs/nmorph-number-input/NmorphNum
7
7
  import NmorphSlider from './components/inputs/nmorph-slider/NmorphSlider.vue';
8
8
  import NmorphSwitch from './components/inputs/nmorph-switch/NmorphSwitch.vue';
9
9
  import NmorphSelect from './components/inputs/nmorph-select/NmorphSelect.vue';
10
- import NmorphSelectOption from './components/inputs/nmorph-select-option/NmorphSelectOption.vue';
10
+ import NmorphSelectOption from './components/inputs/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue';
11
11
  import NmorphFileUpload from './components/inputs/nmorph-file-upload/NmorphFileUpload.vue';
12
12
  import NmorphTimePicker from './components/inputs/nmorph-time-picker/NmorphTimePicker.vue';
13
13
  import NmorphDatePicker from './components/inputs/nmorph-date-picker/NmorphDatePicker.vue';
14
14
  import NmorphYearMonthPicker from './components/inputs/nmorph-date-picker/components/nmorph-year-month-picker/NmorphYearMonthPicker.vue';
15
+ import NmorphAutocomplete from './components/inputs/nmorph-autocomplete/NmorphAutocomplete.vue';
15
16
  import NmorphIcon from './components/nmorph-icon/NmorphIcon.vue';
16
17
  import NmorphButton from './components/nmorph-button/NmorphButton.vue';
17
18
  import NmorphCard from './components/nmorph-card/NmorphCard.vue';
@@ -23,15 +24,14 @@ import NmorphImage from './components/nmorph-image/NmorphImage.vue';
23
24
  import NmorphImagePreview from './components/nmorph-image-preview/NmorphImagePreview.vue';
24
25
  import NmorphCarousel from './components/nmorph-carousel/NmorphCarousel.vue';
25
26
  import NmorphCarouselItem from './components/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue';
26
- import NmorphFormItem from './components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue';
27
- import NmorphForm from './components/form/nmorph-form/NmorphForm.vue';
27
+ import NmorphFormItem from './components/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue';
28
+ import NmorphForm from './components/nmorph-form/NmorphForm.vue';
28
29
  import NmorphScroll from './components/nmorph-scroll/NmorphScroll.vue';
29
30
  import NmorphDropdown from './components/nmorph-dropdown/NmorphDropdown.vue';
30
31
  import NmorphCalendar from './components/nmorph-calendar/NmorphCalendar.vue';
31
- import NmorphTable from './components/table/nmorph-table/NmorphTable.vue';
32
- import NmorphTableColumn from './components/table/nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue';
33
- import NmorphTableCell from './components/table/nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue';
34
- import NmorphSortButton from './components/nmorph-sort-button/NmorphSortButton.vue';
32
+ import NmorphTable from './components/nmorph-table/NmorphTable.vue';
33
+ import NmorphTableColumn from './components/nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue';
34
+ import NmorphTableCell from './components/nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue';
35
35
  import NmorphDivider from './components/nmorph-divider/NmorphDivider.vue';
36
36
  import NmorphCollapse from './components/nmorph-collapse/NmorphCollapse.vue';
37
37
  import NmorphCollapseItem from './components/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue';
@@ -48,5 +48,4 @@ import NmorphDialog from './components/nmorph-dialog/NmorphDialog.vue';
48
48
  import NmorphSkeleton from './components/nmorph-skeleton/NmorphSkeleton.vue';
49
49
  import NmorphSkeletonItem from './components/nmorph-skeleton/components/NmorphSkeletonItem.vue';
50
50
  import NmorphPagination from './components/nmorph-pagination/NmorphPagination.vue';
51
- import NmorphAutocomplete from './components/inputs/nmorph-autocomplete/NmorphAutocomplete.vue';
52
- export { NmorphForm, NmorphTextInput, NmorphImage, NmorphIcon, NmorphButton, NmorphRadio, NmorphRadioGroup, NmorphCheckbox, NmorphCheckboxGroup, NmorphCarousel, NmorphCarouselItem, NmorphNumberInput, NmorphSwitch, NmorphTimePicker, NmorphDatePicker, NmorphYearMonthPicker, NmorphFormItem, NmorphSelect, NmorphSelectOption, NmorphFileUpload, NmorphCard, NmorphLink, NmorphSlider, NmorphTooltip, NmorphOverlay, NmorphImagePreview, NmorphScroll, NmorphTag, NmorphDropdown, NmorphCalendar, NmorphTable, NmorphTableColumn, NmorphTableCell, NmorphSortButton, NmorphDivider, NmorphCollapse, NmorphCollapseItem, NmorphProgress, NmorphBacktop, NmorphBadge, NmorphAvatar, NmorphTabs, NmorphTabPane, NmorphBreadcrumb, NmorphBreadcrumbItem, NmorphAlert, NmorphDialog, NmorphSkeleton, NmorphSkeletonItem, NmorphPagination, NmorphAutocomplete, };
51
+ export { NmorphForm, NmorphTextInput, NmorphImage, NmorphIcon, NmorphButton, NmorphRadio, NmorphRadioGroup, NmorphCheckbox, NmorphCheckboxGroup, NmorphCarousel, NmorphCarouselItem, NmorphNumberInput, NmorphSwitch, NmorphTimePicker, NmorphDatePicker, NmorphYearMonthPicker, NmorphFormItem, NmorphSelect, NmorphSelectOption, NmorphFileUpload, NmorphCard, NmorphLink, NmorphSlider, NmorphTooltip, NmorphOverlay, NmorphImagePreview, NmorphScroll, NmorphTag, NmorphDropdown, NmorphCalendar, NmorphTable, NmorphTableColumn, NmorphTableCell, NmorphDivider, NmorphCollapse, NmorphCollapseItem, NmorphProgress, NmorphBacktop, NmorphBadge, NmorphAvatar, NmorphTabs, NmorphTabPane, NmorphBreadcrumb, NmorphBreadcrumbItem, NmorphAlert, NmorphDialog, NmorphSkeleton, NmorphSkeletonItem, NmorphPagination, NmorphAutocomplete, };
@@ -1,2 +0,0 @@
1
- import { Vue3StorySetupHandler } from '@histoire/plugin-vue';
2
- export declare const setupVue3: Vue3StorySetupHandler;
@@ -1,3 +1,4 @@
1
1
  export * from './useFieldValidation';
2
2
  export * from './useFormValidation';
3
3
  export * from './usePlacement';
4
+ export * from './useEventManager';
@@ -0,0 +1 @@
1
+ export declare const useEventManager: () => void;
@@ -1,51 +1,51 @@
1
1
  import { Ref, ComputedRef } from 'vue';
2
- import { AvailableFormValueType } from '../components/form/types';
3
- export declare const enum ArrayValidationOperator {
2
+ import { NmorphAvailableFormValueType } from '../components/nmorph-form/types';
3
+ export declare const enum NmorphArrayValidationOperator {
4
4
  'contains-one' = "contains-one",
5
5
  'not-contains' = "not-contains",
6
6
  'full-eq' = "full-eq"
7
7
  }
8
- export declare enum NumberCompareOperator {
8
+ export declare enum NmorphNumberCompareOperator {
9
9
  'eq' = "eq",
10
10
  'gte' = "gte",
11
11
  'lte' = "lte",
12
12
  'gt' = "gt",
13
13
  'lt' = "lt"
14
14
  }
15
- export declare enum BooleanCompareOperator {
15
+ export declare enum NmorphBooleanCompareOperator {
16
16
  'eq' = "eq",
17
17
  'not-eq' = "not-eq"
18
18
  }
19
- export interface IRule {
19
+ export interface INmorphRule {
20
20
  pattern?: RegExp;
21
- numberCompareType?: keyof typeof NumberCompareOperator;
22
- booleanCompareType?: keyof typeof BooleanCompareOperator;
23
- arrayCompareType?: keyof typeof ArrayValidationOperator;
21
+ numberCompareType?: keyof typeof NmorphNumberCompareOperator;
22
+ booleanCompareType?: keyof typeof NmorphBooleanCompareOperator;
23
+ arrayCompareType?: keyof typeof NmorphArrayValidationOperator;
24
24
  compareValue?: number | string | string[];
25
25
  error: string;
26
26
  }
27
- export type ValidationInputValue = AvailableFormValueType | null;
28
- export type Rules = IRule[];
29
- export interface IUseValidationPayload {
30
- inputValue: ValidationInputValue;
31
- rules: Rules | [];
27
+ export type NmorphValidationInputValueType = NmorphAvailableFormValueType | null;
28
+ export type NmorphRulesType = INmorphRule[];
29
+ export interface INmorphUseValidationPayload {
30
+ inputValue: NmorphValidationInputValueType;
31
+ rules: NmorphRulesType | [];
32
32
  }
33
- export interface ITextValidationRule extends IRule {
33
+ export interface INmorphTextValidationRule extends INmorphRule {
34
34
  pattern: RegExp;
35
35
  }
36
- export interface INumberValidationRule extends IRule {
37
- numberCompareType: keyof typeof NumberCompareOperator;
36
+ export interface INmorphNumberValidationRule extends INmorphRule {
37
+ numberCompareType: keyof typeof NmorphNumberCompareOperator;
38
38
  compareValue: number;
39
39
  }
40
- export interface IRadioGroupValidationRule extends IRule {
41
- booleanCompareType: BooleanCompareOperator;
40
+ export interface INmorphRadioGroupValidationRule extends INmorphRule {
41
+ booleanCompareType: NmorphBooleanCompareOperator;
42
42
  compareValue: string;
43
43
  }
44
- export interface ICheckboxGroupValidationRule extends IRule {
45
- arrayCompareType: keyof typeof ArrayValidationOperator;
44
+ export interface INmorphCheckboxGroupValidationRule extends INmorphRule {
45
+ arrayCompareType: keyof typeof NmorphArrayValidationOperator;
46
46
  compareValue: string[];
47
47
  }
48
- export declare const useFieldValidation: (data: IUseValidationPayload) => {
48
+ export declare const useFieldValidation: (data: INmorphUseValidationPayload) => {
49
49
  touched: Ref<boolean>;
50
50
  valid: ComputedRef<boolean>;
51
51
  errors: Ref<string[]>;
@@ -1,6 +1,6 @@
1
1
  import { Ref, ComputedRef } from 'vue';
2
- import { FormValue } from '../components/form/types';
3
- export declare const useFormValidation: (formData: FormValue, validateFormOnLoad?: boolean) => {
2
+ import { NmorphFormValueType } from '../components/nmorph-form/types';
3
+ export declare const useFormValidation: (formData: NmorphFormValueType, validateFormOnLoad?: boolean) => {
4
4
  fields: Record<string, {
5
5
  touched: Ref<boolean>;
6
6
  valid: ComputedRef<boolean>;
@@ -1,13 +1,13 @@
1
- import { NmorphDomElement, NmorphPlacement } from '../types/common';
1
+ import { NmorphDomElementType, NmorphPlacementType } from '../types/common';
2
2
  import { Ref } from 'vue';
3
- interface IUsePlacementPayload {
4
- initialPlacement: NmorphPlacement;
5
- contentDOMElement: Ref<NmorphDomElement>;
6
- relativeElement: NmorphDomElement | Ref<NmorphDomElement>;
3
+ interface INmorphUsePlacementPayload {
4
+ initialPlacement: NmorphPlacementType;
5
+ contentDOMElement: Ref<NmorphDomElementType>;
6
+ relativeElement: NmorphDomElementType | Ref<NmorphDomElementType>;
7
7
  yOffset?: number;
8
8
  xOffset?: number;
9
9
  }
10
- export declare const usePlacement: (data: IUsePlacementPayload) => {
10
+ export declare const usePlacement: (data: INmorphUsePlacementPayload) => {
11
11
  placement: Ref<"left" | "right" | "top" | "bottom">;
12
12
  placementCoords: Ref<{
13
13
  x: string;
@@ -12,7 +12,7 @@ export declare enum NmorphComponentDirection {
12
12
  row = "row",
13
13
  column = "column"
14
14
  }
15
- export interface NmorphCommonInputProps {
15
+ export interface INmorphCommonInputProps {
16
16
  height?: keyof typeof NmorphComponentHeight;
17
17
  fill?: boolean;
18
18
  disabled?: boolean;
@@ -62,13 +62,13 @@ export declare enum NmorphComponentPosition {
62
62
  top = "top",
63
63
  bottom = "bottom"
64
64
  }
65
- export type NmorphPlacement = keyof typeof NmorphComponentPosition;
66
- export type NmorphDomElement = HTMLElement | null;
67
- export interface NmorphCoords<T> {
65
+ export type NmorphPlacementType = keyof typeof NmorphComponentPosition;
66
+ export type NmorphDomElementType = HTMLElement | null;
67
+ export interface INmorphCoords<T> {
68
68
  x: T;
69
69
  y: T;
70
70
  }
71
- export declare enum ImageFit {
71
+ export declare enum NmorphImageFit {
72
72
  fill = "fill",
73
73
  contain = "contain",
74
74
  cover = "cover",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@nmorph/nmorph-ui-kit",
3
3
  "type": "module",
4
4
  "private": false,
5
- "version": "0.0.2",
5
+ "version": "0.0.4",
6
6
  "license": "MIT",
7
7
  "engines": {
8
8
  "node": "18.13.0",
@@ -38,7 +38,7 @@
38
38
  "./dist/styles/main.scss": "./dist/styles/main.scss"
39
39
  },
40
40
  "scripts": {
41
- "build": "vue-tsc && vite build",
41
+ "build": "npm run build:types && vite build",
42
42
  "lint:es:check": "eslint --ext .js,.ts,.vue --ignore-path .gitignore src/",
43
43
  "lint:es": "eslint --ext .js,.ts,.vue --ignore-path .gitignore --fix src/",
44
44
  "lint:style:check": "stylelint ./src/**/*.{scss,vue}",
@@ -52,35 +52,23 @@
52
52
  "story:dev": "histoire dev",
53
53
  "story:build": "histoire build",
54
54
  "story:preview": "histoire preview",
55
- "test:dev": "npx vitest"
55
+ "test:dev": "npx vitest",
56
+ "build:types": "vue-tsc --declaration --emitDeclarationOnly --outDir dist"
56
57
  },
57
58
  "dependencies": {
58
- "@element-plus/icons-vue": "^2.3.1",
59
- "@faker-js/faker": "^8.3.1",
60
59
  "@types/vue-router": "^2.0.0",
61
- "element-plus": "^2.5.0",
62
- "libphonenumber-js": "^1.10.53",
63
- "lodash": "^4.17.21",
64
- "maska": "^2.1.11",
65
- "maz-ui": "^3.31.5",
66
60
  "normalize.css": "^8.0.1",
67
- "pinia": "^2.1.7",
68
- "uuid": "^9.0.1",
69
61
  "vue": "^3.4.7",
70
62
  "vue-i18n": "^9.9.0",
71
- "vue-template-es2015-compiler": "^1.9.1",
72
- "vuescroll": "^5.1.1"
63
+ "vue-template-es2015-compiler": "^1.9.1"
73
64
  },
74
65
  "devDependencies": {
75
66
  "@histoire/plugin-vue": "^0.17.6",
76
- "@types/js-cookie": "^3.0.6",
77
67
  "@types/node": "^20.10.8",
78
- "@types/uuid": "^9.0.7",
79
68
  "@typescript-eslint/eslint-plugin": "^6.18.1",
80
69
  "@typescript-eslint/parser": "^6.18.1",
81
70
  "@vitejs/plugin-vue": "^4.4.0",
82
71
  "@vue/test-utils": "^2.4.3",
83
- "ajv": "^8.12.0",
84
72
  "eslint": "^8.56.0",
85
73
  "eslint-config-prettier": "^9.1.0",
86
74
  "eslint-plugin-prettier": "^5.1.3",
@@ -89,7 +77,6 @@
89
77
  "happy-dom": "^13.1.0",
90
78
  "histoire": "^0.17.6",
91
79
  "husky": "^8.0.3",
92
- "js-cookie": "^3.0.5",
93
80
  "mitt": "^3.0.1",
94
81
  "prettier": "^3.1.1",
95
82
  "sass": "^1.69.7",
@@ -110,12 +97,6 @@
110
97
  "vite-svg-loader": "^5.1.0",
111
98
  "vitest": "^1.2.0",
112
99
  "vue-eslint-parser": "^9.4.0",
113
- "vue-final-modal": "^4.5.3",
114
100
  "vue-tsc": "^1.8.27"
115
- },
116
- "peerDependencies": {
117
- "ajv": "^8.12.0",
118
- "js-cookie": "^3.0.5",
119
- "vue-final-modal": "^4.4.5"
120
101
  }
121
102
  }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,7 +0,0 @@
1
- import { Rules, useFormValidation } from '../../hooks';
2
- export type AvailableFormValueType = string | string[] | number;
3
- export type FormValue = Record<string, {
4
- value: AvailableFormValueType;
5
- rules: Rules;
6
- }>;
7
- export type FormValidationData = ReturnType<typeof useFormValidation>;
@@ -1 +0,0 @@
1
- export type SelectModelValue = string | string[];
@@ -1,19 +0,0 @@
1
- import { NmorphSortOrderType } from '../../types/common';
2
- import { Ref } from 'vue';
3
- export type NmorphTableSortType = Record<string, NmorphSortOrderType>;
4
- export type NmorphDataTableElRecord = Record<string, unknown>;
5
- export type CellAlignment = 'left' | 'center' | 'right';
6
- export type NmorphTableDataType = NmorphDataTableElRecord[];
7
- export interface NmorphTableColumnProps {
8
- label?: string;
9
- width?: string;
10
- alignment?: CellAlignment;
11
- prop: string;
12
- }
13
- export interface NmorphTableColumnData extends NmorphTableColumnProps {
14
- id?: number;
15
- }
16
- export interface NmorphTableDataInjection {
17
- rows: Ref<NmorphDataTableElRecord[]>;
18
- columns: Ref<NmorphTableColumnData[]>;
19
- }