sep-yui 0.0.14 → 0.0.16
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/README.md +13 -0
- package/dist/common/storybook.d.ts +1 -1
- package/dist/components/Button/Button.vue.d.ts +13 -11
- package/dist/components/Button/enum/enum.d.ts +1 -1
- package/dist/components/Button/index.d.ts +6 -0
- package/dist/components/Button/interface/interface.d.ts +2 -2
- package/dist/components/Colors/enum/enum.d.ts +1 -1
- package/dist/components/UserMenu/UserMenu.vue.d.ts +4 -4
- package/dist/components/UserMenu/enum/enum.d.ts +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/sep-yui.es.ts +2080 -2070
- package/dist/sep-yui.umd.ts +12 -12
- package/dist/style.css +1 -1
- package/package.json +5 -4
package/README.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Library SEP-YUI
|
2
2
|
|
3
|
+
|
4
|
+
#Как работать с библиотекой
|
5
|
+
|
6
|
+
<ol>
|
7
|
+
<li>Установить нпм-пакет с библиотекой к себе в проект
|
8
|
+
<code>npm i spe-yui</code></li>
|
9
|
+
<li>Далее необходимо импортировать компоненты библиотеки в главный файл App.vue</li>
|
10
|
+
<li>Стили импортируются через путь "sep-yui/styles";</li>
|
11
|
+
<li>Спрайт подключается отдельно.</li>
|
12
|
+
<li>Далее подключаем импортированый компонент в проект, пробрасываем пропсы в него и пользуемся как при обычной разработке.</li>
|
13
|
+
</ol>
|
14
|
+
|
15
|
+
#Разработчикам библиотеки
|
3
16
|
<ul>
|
4
17
|
<li>npm ci - for install all dependencies</li>
|
5
18
|
<li>npm run dev - for development</li>
|
@@ -1,11 +1,16 @@
|
|
1
1
|
import { SizesEnum } from '../../common/sizes';
|
2
2
|
import { IButtonProps } from './interface/interface';
|
3
|
-
import {
|
3
|
+
import { ButtonTypeEnum } from './enum/enum';
|
4
4
|
|
5
|
-
declare
|
5
|
+
declare function __VLS_template(): {
|
6
|
+
"left-icon"?(_: {}): any;
|
7
|
+
default?(_: {}): any;
|
8
|
+
"right-icon"?(_: {}): any;
|
9
|
+
};
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IButtonProps>, {
|
6
11
|
disabled: boolean;
|
7
12
|
size: SizesEnum;
|
8
|
-
type:
|
13
|
+
type: ButtonTypeEnum;
|
9
14
|
pill: boolean;
|
10
15
|
color: string;
|
11
16
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
@@ -13,22 +18,19 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
13
18
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IButtonProps>, {
|
14
19
|
disabled: boolean;
|
15
20
|
size: SizesEnum;
|
16
|
-
type:
|
21
|
+
type: ButtonTypeEnum;
|
17
22
|
pill: boolean;
|
18
23
|
color: string;
|
19
24
|
}>>> & {
|
20
25
|
onClick?: (() => any) | undefined;
|
21
26
|
}, {
|
22
|
-
type:
|
27
|
+
type: ButtonTypeEnum;
|
23
28
|
disabled: boolean;
|
24
|
-
size: SizesEnum;
|
29
|
+
size: SizesEnum.small | SizesEnum.medium | SizesEnum.large;
|
25
30
|
color: string;
|
26
31
|
pill: boolean;
|
27
|
-
}, {}
|
28
|
-
|
29
|
-
default?(_: {}): any;
|
30
|
-
"right-icon"?(_: {}): any;
|
31
|
-
}>;
|
32
|
+
}, {}>;
|
33
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
32
34
|
export default _default;
|
33
35
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
34
36
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { SizesEnum } from '../../../common/sizes';
|
2
|
-
import {
|
2
|
+
import { ButtonTypeEnum } from '../enum/enum';
|
3
3
|
|
4
4
|
export interface IButtonProps {
|
5
5
|
disabled: boolean;
|
6
6
|
size: SizesEnum.small | SizesEnum.medium | SizesEnum.large;
|
7
|
-
type:
|
7
|
+
type: ButtonTypeEnum;
|
8
8
|
pill?: boolean;
|
9
9
|
backgroundColor?: string;
|
10
10
|
color?: string;
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import { IMenuProps } from './interface/interface';
|
2
|
-
import {
|
2
|
+
import { MenuTypeEnum } from './enum/enum';
|
3
3
|
import { IChangeSwitchEmit } from '../Switch/interface/interface';
|
4
4
|
|
5
5
|
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IMenuProps>, {}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
6
|
-
click: (type:
|
6
|
+
click: (type: MenuTypeEnum) => void;
|
7
7
|
themeChange: (value: boolean) => void;
|
8
8
|
languageSwitch: (value: IChangeSwitchEmit) => void;
|
9
9
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IMenuProps>, {}>>> & {
|
10
|
-
onClick?: ((type:
|
11
|
-
onThemeChange?: ((value: boolean) => any) | undefined;
|
10
|
+
onClick?: ((type: MenuTypeEnum) => any) | undefined;
|
12
11
|
onLanguageSwitch?: ((value: IChangeSwitchEmit) => any) | undefined;
|
12
|
+
onThemeChange?: ((value: boolean) => any) | undefined;
|
13
13
|
}, {}, {}>;
|
14
14
|
export default _default;
|
15
15
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|