sep-yui 0.0.26 → 0.0.28

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 CHANGED
@@ -1,26 +1,45 @@
1
- # Library SEP-YUI
1
+ ## SEP-YUI Библиотека
2
+ Призванна решать проблемы переиспользования компонентов из одного проекта в другой. Она решает проблемы путем установления независимости одного компонента от другого.
2
3
 
4
+ Легко встраивается в любой существующий проект и имеет низкий порог для входа. Одно из ее главных преимуществ это гибкость, постоянные обновления и тех.поддержка, а также возможность комбинировать их внутри вашей экосистемы проекта.
3
5
 
4
- #Как работать с библиотекой
6
+ ## Спонсор "ООО НПО АВТОМАТИВ"
5
7
 
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>
8
+ ## Установка
14
9
 
15
- #Разработчикам библиотеки
16
- <ul>
17
- <li>npm ci - for install all dependencies</li>
18
- <li>npm run dev - for development</li>
19
- <li>npm run build - for build production</li>
20
- <li>npm run build - for build production and publishing library, up version package</li>
21
- <li>npm run preview - for watch build</li>
22
- <li>npm run storybook - for testing components in storybook</li>
23
- <li>npm run build-storybook - for build storybook</li>
24
- </ul>
10
+ ```bash
11
+ npm i sep-yui
12
+ ```
25
13
 
26
- Your welcome and your pleasure for codding!
14
+ #### 1. Для использования библиотеки в проекте, необходимо импортировать компоненты библиотеки в главный файл проекта main.ts таким образом:
15
+ ```ts
16
+ main.ts
17
+ import Ylibrary from 'sep-yui';
18
+ app.use(Ylibrary)
19
+ app.mount('#app');
20
+ ```
21
+ #### 1.1 Для выборочного импорта компонентов, можно использовать подключение такого вида.
22
+ ```ts
23
+ main.ts
24
+ import {Toggle} from 'sep-yui'
25
+ app.component('Toggle', Toggle);
26
+ ```
27
+ #### 2. Стили импортируются через путь "sep-yui/styles" также в файле main.ts
28
+ ```ts
29
+ main.ts
30
+ import 'sep-yui/styles'
31
+ ```
32
+ #### 3. Далее просто пишем название компонента внутри проекта и используем как при обычной разработке на Vue.
33
+ ```vue
34
+ App.vue
35
+ <template>
36
+ <Toggle
37
+ :disabled="true"
38
+ :backgroundColor="'red'"
39
+ />
40
+ </template>
41
+ <script setup lang="ts">
42
+ </script>
43
+ <styles lang="scss">
44
+ </styles>
45
+ ```
@@ -0,0 +1,30 @@
1
+ import { IvectorIcon } from './interface/interface';
2
+
3
+ export declare const help: IvectorIcon;
4
+ export declare const notification: IvectorIcon;
5
+ export declare const moonFill: IvectorIcon;
6
+ export declare const arrowLeft: IvectorIcon;
7
+ export declare const chevronDown: IvectorIcon;
8
+ export declare const chevronUp: IvectorIcon;
9
+ export declare const dark: IvectorIcon;
10
+ export declare const exitBig: IvectorIcon;
11
+ export declare const exitSmall: IvectorIcon;
12
+ export declare const exit: IvectorIcon;
13
+ export declare const leftBigSmall: IvectorIcon;
14
+ export declare const leftBig: IvectorIcon;
15
+ export declare const light: IvectorIcon;
16
+ export declare const notificationYes: IvectorIcon;
17
+ export declare const plusSmall: IvectorIcon;
18
+ export declare const plus: IvectorIcon;
19
+ export declare const profileIcon: IvectorIcon;
20
+ export declare const profile: IvectorIcon;
21
+ export declare const rightBig: IvectorIcon;
22
+ export declare const rightSmall: IvectorIcon;
23
+ export declare const settings: IvectorIcon;
24
+ export declare const settingsDark: IvectorIcon;
25
+ export declare const searchNormal: IvectorIcon;
26
+ export declare const search: IvectorIcon;
27
+ export declare const filter: IvectorIcon;
28
+ export declare const bgNotContent: IvectorIcon;
29
+ export declare const document: IvectorIcon;
30
+ export declare const baseDetail: IvectorIcon;
@@ -0,0 +1,5 @@
1
+ export interface IvectorIcon {
2
+ name: string;
3
+ style: 'line' | 'solid';
4
+ path: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ import * as Icons from '../../assets/icons/icons.ts';
2
+ export default Icons;