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