@factoringplus/pl-components-pack-v3 1.1.2-pre-03 → 1.1.2-pre-04
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 +17 -17
- package/dist/components/button/pl-button.vue.d.ts +48 -2
- package/dist/pl-components-pack-v3.es.js +165 -166
- package/dist/pl-components-pack-v3.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
# Библиотека компонентов Vue 3
|
|
2
|
-
|
|
3
|
-
## Установка
|
|
4
|
-
|
|
5
|
-
```bash
|
|
6
|
-
npm i @factoringplus/pl-components-pack-v3
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
### Добавление компонентов в проект
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
// src/main.js
|
|
13
|
-
import components from '@factoringplus/pl-components-pack-v3';
|
|
14
|
-
import '@factoringplus/pl-components-pack-v3/dist/style.css';
|
|
15
|
-
|
|
16
|
-
app.use(components)
|
|
17
|
-
```
|
|
1
|
+
# Библиотека компонентов Vue 3
|
|
2
|
+
|
|
3
|
+
## Установка
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm i @factoringplus/pl-components-pack-v3
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
### Добавление компонентов в проект
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
// src/main.js
|
|
13
|
+
import components from '@factoringplus/pl-components-pack-v3';
|
|
14
|
+
import '@factoringplus/pl-components-pack-v3/dist/style.css';
|
|
15
|
+
|
|
16
|
+
app.use(components)
|
|
17
|
+
```
|
|
@@ -1,8 +1,31 @@
|
|
|
1
1
|
import type { TButtonProps } from './types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TButtonProps>, {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* @typedef {'primary' | 'secondary' | 'alternative' | 'error' | 'empty'} PlButtonType
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* @typedef {'large' | 'medium' | 'small'} PlButtonSize
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @typedef {'left' | 'right'} PlIconPosition
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* @typedef {'button' | 'submit' | 'reset'} PlNativeType
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* @typedef {Object} TButtonProps
|
|
17
|
+
* @property {boolean} [fullWidth=false] - Whether the button should take full width.
|
|
18
|
+
* @property {boolean} [disabled=false] - Whether the button should be disabled.
|
|
19
|
+
* @property {PlButtonType} [type='primary'] - Type of the button.
|
|
20
|
+
* @property {PlButtonSize} [size='large'] - Size of the button.
|
|
21
|
+
* @property {string} [icon=''] - Icon name for the button.
|
|
22
|
+
* @property {string} [iconColor=''] - Color of the icon.
|
|
23
|
+
* @property {PlIconPosition} [iconPosition='left'] - Position of the icon.
|
|
24
|
+
* @property {PlNativeType} [nativeType='button'] - Native type of the button.
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
/* @type {TButtonProps}
|
|
28
|
+
**/
|
|
6
29
|
fullWidth: boolean;
|
|
7
30
|
disabled: boolean;
|
|
8
31
|
type: string;
|
|
@@ -15,8 +38,31 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
15
38
|
click: (...args: any[]) => void;
|
|
16
39
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TButtonProps>, {
|
|
17
40
|
/**
|
|
18
|
-
*
|
|
41
|
+
* @typedef {'primary' | 'secondary' | 'alternative' | 'error' | 'empty'} PlButtonType
|
|
19
42
|
*/
|
|
43
|
+
/**
|
|
44
|
+
* @typedef {'large' | 'medium' | 'small'} PlButtonSize
|
|
45
|
+
*/
|
|
46
|
+
/**
|
|
47
|
+
* @typedef {'left' | 'right'} PlIconPosition
|
|
48
|
+
*/
|
|
49
|
+
/**
|
|
50
|
+
* @typedef {'button' | 'submit' | 'reset'} PlNativeType
|
|
51
|
+
*/
|
|
52
|
+
/**
|
|
53
|
+
* @typedef {Object} TButtonProps
|
|
54
|
+
* @property {boolean} [fullWidth=false] - Whether the button should take full width.
|
|
55
|
+
* @property {boolean} [disabled=false] - Whether the button should be disabled.
|
|
56
|
+
* @property {PlButtonType} [type='primary'] - Type of the button.
|
|
57
|
+
* @property {PlButtonSize} [size='large'] - Size of the button.
|
|
58
|
+
* @property {string} [icon=''] - Icon name for the button.
|
|
59
|
+
* @property {string} [iconColor=''] - Color of the icon.
|
|
60
|
+
* @property {PlIconPosition} [iconPosition='left'] - Position of the icon.
|
|
61
|
+
* @property {PlNativeType} [nativeType='button'] - Native type of the button.
|
|
62
|
+
*/
|
|
63
|
+
/**
|
|
64
|
+
/* @type {TButtonProps}
|
|
65
|
+
**/
|
|
20
66
|
fullWidth: boolean;
|
|
21
67
|
disabled: boolean;
|
|
22
68
|
type: string;
|