@factoringplus/pl-components-pack-v3 1.0.5 → 1.0.6-pre-02
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/components/button/index.d.ts +1 -3
- package/dist/components/button/pl-button.vue.d.ts +14 -11
- package/dist/components/button/types/index.d.ts +1 -1
- package/dist/components/pl-dialog/pl-dialog.stories.d.ts +12 -12
- package/dist/components/pl-icon/pl-icon.vue.d.ts +12 -10
- package/dist/pl-components-pack-v3.es.js +8 -5
- package/dist/pl-components-pack-v3.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +2 -1
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
interface IButtonProps {
|
|
2
|
+
fullWidth?: boolean;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
type?: 'primary' | 'secondary' | 'alternative' | 'error' | 'empty';
|
|
5
|
+
size?: 'small' | 'large' | 'medium';
|
|
6
|
+
icon?: string;
|
|
7
|
+
iconColor?: string;
|
|
8
|
+
iconPosition?: 'left' | 'right';
|
|
9
|
+
nativeType?: 'button';
|
|
10
|
+
}
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IButtonProps>, {
|
|
6
12
|
fullWidth: boolean;
|
|
7
13
|
disabled: boolean;
|
|
8
14
|
type: string;
|
|
@@ -13,10 +19,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
13
19
|
nativeType: string;
|
|
14
20
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
21
|
click: (...args: any[]) => void;
|
|
16
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
17
|
-
/**
|
|
18
|
-
* Выставляет ширину кнопки в 100%
|
|
19
|
-
*/
|
|
22
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IButtonProps>, {
|
|
20
23
|
fullWidth: boolean;
|
|
21
24
|
disabled: boolean;
|
|
22
25
|
type: string;
|
|
@@ -29,13 +32,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
29
32
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
30
33
|
}, {
|
|
31
34
|
type: "primary" | "secondary" | "alternative" | "error" | "empty";
|
|
32
|
-
icon:
|
|
35
|
+
icon: string;
|
|
33
36
|
fullWidth: boolean;
|
|
34
37
|
disabled: boolean;
|
|
35
38
|
size: "small" | "large" | "medium";
|
|
36
39
|
iconColor: string;
|
|
37
40
|
iconPosition: "left" | "right";
|
|
38
|
-
nativeType: "button"
|
|
41
|
+
nativeType: "button";
|
|
39
42
|
}, {}>, {
|
|
40
43
|
default?(_: {}): any;
|
|
41
44
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TIcon } from '../../pl-icon/types';
|
|
2
2
|
/**
|
|
3
|
-
* @
|
|
3
|
+
* @property {boolean} [fullWidth] boolean;
|
|
4
4
|
* @param disabled boolean;
|
|
5
5
|
* @param type 'primary' | 'secondary' | 'alternative' | 'error' | 'empty';
|
|
6
6
|
* @param size 'large' | 'medium' | 'small';
|
|
@@ -359,13 +359,13 @@ export declare const PlDialogStory: () => {
|
|
|
359
359
|
$data: {};
|
|
360
360
|
$props: {
|
|
361
361
|
type?: "primary" | "secondary" | "alternative" | "error" | "empty" | undefined;
|
|
362
|
-
icon?:
|
|
362
|
+
icon?: string | undefined;
|
|
363
363
|
fullWidth?: boolean | undefined;
|
|
364
364
|
disabled?: boolean | undefined;
|
|
365
365
|
size?: "small" | "large" | "medium" | undefined;
|
|
366
366
|
iconColor?: string | undefined;
|
|
367
367
|
iconPosition?: "left" | "right" | undefined;
|
|
368
|
-
nativeType?: "button" |
|
|
368
|
+
nativeType?: "button" | undefined;
|
|
369
369
|
key?: string | number | symbol | undefined;
|
|
370
370
|
ref?: import("vue").VNodeRef | undefined;
|
|
371
371
|
style?: unknown;
|
|
@@ -431,7 +431,7 @@ export declare const PlDialogStory: () => {
|
|
|
431
431
|
default: string;
|
|
432
432
|
};
|
|
433
433
|
icon: {
|
|
434
|
-
type: import("vue").PropType<
|
|
434
|
+
type: import("vue").PropType<string>;
|
|
435
435
|
default: string;
|
|
436
436
|
};
|
|
437
437
|
fullWidth: {
|
|
@@ -455,7 +455,7 @@ export declare const PlDialogStory: () => {
|
|
|
455
455
|
default: string;
|
|
456
456
|
};
|
|
457
457
|
nativeType: {
|
|
458
|
-
type: import("vue").PropType<"button"
|
|
458
|
+
type: import("vue").PropType<"button">;
|
|
459
459
|
default: string;
|
|
460
460
|
};
|
|
461
461
|
}>> & {
|
|
@@ -464,13 +464,13 @@ export declare const PlDialogStory: () => {
|
|
|
464
464
|
click: (...args: any[]) => void;
|
|
465
465
|
}, string, {
|
|
466
466
|
type: "primary" | "secondary" | "alternative" | "error" | "empty";
|
|
467
|
-
icon:
|
|
467
|
+
icon: string;
|
|
468
468
|
fullWidth: boolean;
|
|
469
469
|
disabled: boolean;
|
|
470
470
|
size: "small" | "large" | "medium";
|
|
471
471
|
iconColor: string;
|
|
472
472
|
iconPosition: "left" | "right";
|
|
473
|
-
nativeType: "button"
|
|
473
|
+
nativeType: "button";
|
|
474
474
|
}, {}, string, {}> & {
|
|
475
475
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
476
476
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -497,7 +497,7 @@ export declare const PlDialogStory: () => {
|
|
|
497
497
|
default: string;
|
|
498
498
|
};
|
|
499
499
|
icon: {
|
|
500
|
-
type: import("vue").PropType<
|
|
500
|
+
type: import("vue").PropType<string>;
|
|
501
501
|
default: string;
|
|
502
502
|
};
|
|
503
503
|
fullWidth: {
|
|
@@ -521,7 +521,7 @@ export declare const PlDialogStory: () => {
|
|
|
521
521
|
default: string;
|
|
522
522
|
};
|
|
523
523
|
nativeType: {
|
|
524
|
-
type: import("vue").PropType<"button"
|
|
524
|
+
type: import("vue").PropType<"button">;
|
|
525
525
|
default: string;
|
|
526
526
|
};
|
|
527
527
|
}>> & {
|
|
@@ -536,7 +536,7 @@ export declare const PlDialogStory: () => {
|
|
|
536
536
|
default: string;
|
|
537
537
|
};
|
|
538
538
|
icon: {
|
|
539
|
-
type: import("vue").PropType<
|
|
539
|
+
type: import("vue").PropType<string>;
|
|
540
540
|
default: string;
|
|
541
541
|
};
|
|
542
542
|
fullWidth: {
|
|
@@ -560,7 +560,7 @@ export declare const PlDialogStory: () => {
|
|
|
560
560
|
default: string;
|
|
561
561
|
};
|
|
562
562
|
nativeType: {
|
|
563
|
-
type: import("vue").PropType<"button"
|
|
563
|
+
type: import("vue").PropType<"button">;
|
|
564
564
|
default: string;
|
|
565
565
|
};
|
|
566
566
|
}>> & {
|
|
@@ -569,13 +569,13 @@ export declare const PlDialogStory: () => {
|
|
|
569
569
|
click: (...args: any[]) => void;
|
|
570
570
|
}, string, {
|
|
571
571
|
type: "primary" | "secondary" | "alternative" | "error" | "empty";
|
|
572
|
-
icon:
|
|
572
|
+
icon: string;
|
|
573
573
|
fullWidth: boolean;
|
|
574
574
|
disabled: boolean;
|
|
575
575
|
size: "small" | "large" | "medium";
|
|
576
576
|
iconColor: string;
|
|
577
577
|
iconPosition: "left" | "right";
|
|
578
|
-
nativeType: "button"
|
|
578
|
+
nativeType: "button";
|
|
579
579
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
580
580
|
$slots: {
|
|
581
581
|
default?(_: {}): any;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
type:
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
name: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
color: StringConstructor;
|
|
7
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
+
name: {
|
|
9
|
+
type: StringConstructor;
|
|
10
10
|
required: true;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
color: StringConstructor;
|
|
13
|
+
}>>, {}, {}>;
|
|
14
|
+
export default _default;
|
|
@@ -22698,8 +22698,11 @@ const zV = (e, t) => {
|
|
|
22698
22698
|
}, EV = ["data-testid"], Ut = /* @__PURE__ */ Ne({
|
|
22699
22699
|
__name: "pl-icon",
|
|
22700
22700
|
props: {
|
|
22701
|
-
name: {
|
|
22702
|
-
|
|
22701
|
+
name: {
|
|
22702
|
+
type: String,
|
|
22703
|
+
required: !0
|
|
22704
|
+
},
|
|
22705
|
+
color: String
|
|
22703
22706
|
},
|
|
22704
22707
|
setup(e) {
|
|
22705
22708
|
const t = e, n = k(() => ({
|
|
@@ -22708,7 +22711,7 @@ const zV = (e, t) => {
|
|
|
22708
22711
|
return (o, s) => (T(), z("div", {
|
|
22709
22712
|
style: Ve(n.value),
|
|
22710
22713
|
class: "d-flex",
|
|
22711
|
-
"data-testid":
|
|
22714
|
+
"data-testid": e.name
|
|
22712
22715
|
}, [
|
|
22713
22716
|
(T(), de(qt(f(r))))
|
|
22714
22717
|
], 12, EV));
|
|
@@ -26035,7 +26038,7 @@ const j9 = {
|
|
|
26035
26038
|
setup(e, { expose: t, emit: n }) {
|
|
26036
26039
|
const r = e;
|
|
26037
26040
|
Ra((M) => ({
|
|
26038
|
-
|
|
26041
|
+
"7c82c788": r.width
|
|
26039
26042
|
}));
|
|
26040
26043
|
const o = Xr(), s = `id-${na()}`, i = C([]);
|
|
26041
26044
|
if (r.prop) {
|
|
@@ -26185,7 +26188,7 @@ const j9 = {
|
|
|
26185
26188
|
], 32);
|
|
26186
26189
|
};
|
|
26187
26190
|
}
|
|
26188
|
-
}, Qu = /* @__PURE__ */ xn(z9, [["__scopeId", "data-v-
|
|
26191
|
+
}, Qu = /* @__PURE__ */ xn(z9, [["__scopeId", "data-v-2665e239"]]);
|
|
26189
26192
|
var a4 = { exports: {} };
|
|
26190
26193
|
(function(e, t) {
|
|
26191
26194
|
(function(n, r) {
|