@mobileaction/action-kit 1.1.52 → 1.1.54
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/action-kit.js +12 -4
- package/dist/action-kit.mjs +823 -725
- package/dist/components/card/index.vue.d.ts +13 -1
- package/dist/components/card/types.d.ts +2 -0
- package/dist/components/drawer/index.vue.d.ts +79 -0
- package/dist/index.d.ts +1 -0
- package/dist/src/components/card/index.vue.d.ts +5 -1
- package/dist/src/components/card/stories/default.stories.d.ts +2 -1
- package/dist/src/components/card/types.d.ts +2 -0
- package/dist/src/components/drawer/index.vue.d.ts +45 -0
- package/dist/src/components/drawer/stories/constants.d.ts +7 -0
- package/dist/src/components/drawer/stories/default.stories.d.ts +7 -0
- package/dist/src/components/drawer/types.d.ts +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType as __PropType } from 'vue';
|
|
2
|
-
import { MaCardAlignment, MaCardIconColor } from "./types";
|
|
2
|
+
import { MaCardAlignment, MaCardIconColor, MaCardSize } from "./types";
|
|
3
3
|
export interface MaCardProps {
|
|
4
4
|
title?: string;
|
|
5
5
|
description?: string;
|
|
@@ -12,6 +12,7 @@ export interface MaCardProps {
|
|
|
12
12
|
iconColor?: MaCardIconColor;
|
|
13
13
|
collapse?: boolean;
|
|
14
14
|
collapsable?: boolean;
|
|
15
|
+
size?: MaCardSize;
|
|
15
16
|
}
|
|
16
17
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
17
18
|
title: {
|
|
@@ -64,6 +65,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
64
65
|
required: false;
|
|
65
66
|
default: boolean;
|
|
66
67
|
};
|
|
68
|
+
size: {
|
|
69
|
+
type: __PropType<"default" | "small">;
|
|
70
|
+
required: false;
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
67
73
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "update:collapse")[], "close" | "update:collapse", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
68
74
|
title: {
|
|
69
75
|
type: __PropType<string>;
|
|
@@ -115,11 +121,17 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
115
121
|
required: false;
|
|
116
122
|
default: boolean;
|
|
117
123
|
};
|
|
124
|
+
size: {
|
|
125
|
+
type: __PropType<"default" | "small">;
|
|
126
|
+
required: false;
|
|
127
|
+
default: string;
|
|
128
|
+
};
|
|
118
129
|
}>> & {
|
|
119
130
|
onClose?: (...args: any[]) => any;
|
|
120
131
|
"onUpdate:collapse"?: (...args: any[]) => any;
|
|
121
132
|
}, {
|
|
122
133
|
closable: boolean;
|
|
134
|
+
size: "default" | "small";
|
|
123
135
|
headerAlignment: "left" | "center";
|
|
124
136
|
footerAlignment: "left" | "center";
|
|
125
137
|
iconColor: "blue" | "green" | "orange" | "red" | "purple";
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export declare const MaCardAlignments: readonly ["left", "center"];
|
|
2
|
+
export declare const MaCardSizes: readonly ["small", "default"];
|
|
2
3
|
export declare const MaCardIconColors: readonly ["blue", "green", "orange", "red", "purple"];
|
|
3
4
|
export type MaCardAlignment = (typeof MaCardAlignments)[number];
|
|
4
5
|
export type MaCardIconColor = (typeof MaCardIconColors)[number];
|
|
6
|
+
export type MaCardSize = (typeof MaCardSizes)[number];
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { PropType as __PropType } from 'vue';
|
|
2
|
+
export interface MaDrawerProps {
|
|
3
|
+
placement?: string;
|
|
4
|
+
visible?: boolean;
|
|
5
|
+
header?: string;
|
|
6
|
+
content?: string;
|
|
7
|
+
footer?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
12
|
+
placement: {
|
|
13
|
+
type: __PropType<string>;
|
|
14
|
+
required: false;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
visible: {
|
|
18
|
+
type: __PropType<boolean>;
|
|
19
|
+
required: false;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
header: {
|
|
23
|
+
type: __PropType<string>;
|
|
24
|
+
required: false;
|
|
25
|
+
};
|
|
26
|
+
content: {
|
|
27
|
+
type: __PropType<string>;
|
|
28
|
+
required: false;
|
|
29
|
+
};
|
|
30
|
+
footer: {
|
|
31
|
+
type: __PropType<string>;
|
|
32
|
+
required: false;
|
|
33
|
+
};
|
|
34
|
+
title: {
|
|
35
|
+
type: __PropType<string>;
|
|
36
|
+
required: false;
|
|
37
|
+
};
|
|
38
|
+
description: {
|
|
39
|
+
type: __PropType<string>;
|
|
40
|
+
required: false;
|
|
41
|
+
};
|
|
42
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
|
+
placement: {
|
|
44
|
+
type: __PropType<string>;
|
|
45
|
+
required: false;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
visible: {
|
|
49
|
+
type: __PropType<boolean>;
|
|
50
|
+
required: false;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
header: {
|
|
54
|
+
type: __PropType<string>;
|
|
55
|
+
required: false;
|
|
56
|
+
};
|
|
57
|
+
content: {
|
|
58
|
+
type: __PropType<string>;
|
|
59
|
+
required: false;
|
|
60
|
+
};
|
|
61
|
+
footer: {
|
|
62
|
+
type: __PropType<string>;
|
|
63
|
+
required: false;
|
|
64
|
+
};
|
|
65
|
+
title: {
|
|
66
|
+
type: __PropType<string>;
|
|
67
|
+
required: false;
|
|
68
|
+
};
|
|
69
|
+
description: {
|
|
70
|
+
type: __PropType<string>;
|
|
71
|
+
required: false;
|
|
72
|
+
};
|
|
73
|
+
}>> & {
|
|
74
|
+
"onUpdate:visible"?: (...args: any[]) => any;
|
|
75
|
+
}, {
|
|
76
|
+
placement: string;
|
|
77
|
+
visible: boolean;
|
|
78
|
+
}>;
|
|
79
|
+
export default _sfc_main;
|
package/dist/index.d.ts
CHANGED
|
@@ -63,5 +63,6 @@ export { default as MaCountrySelect } from './components/country-select/index.vu
|
|
|
63
63
|
export { default as MaCard } from './components/card/index.vue';
|
|
64
64
|
export * from './components/card/types';
|
|
65
65
|
export { default as MaInputNumber } from './components/input-number/index.vue';
|
|
66
|
+
export { default as MaDrawer } from './components/drawer/index.vue';
|
|
66
67
|
export { ActionKitConfig } from './services/config';
|
|
67
68
|
export { useActionKitConfig } from './composables/config';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MaCardAlignment, MaCardIconColor } from "./types";
|
|
1
|
+
import { MaCardAlignment, MaCardIconColor, MaCardSize } from "./types";
|
|
2
2
|
export interface MaCardProps {
|
|
3
3
|
title?: string;
|
|
4
4
|
description?: string;
|
|
@@ -11,6 +11,7 @@ export interface MaCardProps {
|
|
|
11
11
|
iconColor?: MaCardIconColor;
|
|
12
12
|
collapse?: boolean;
|
|
13
13
|
collapsable?: boolean;
|
|
14
|
+
size?: MaCardSize;
|
|
14
15
|
}
|
|
15
16
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaCardProps>, {
|
|
16
17
|
closable: boolean;
|
|
@@ -19,6 +20,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
19
20
|
headerAlignment: string;
|
|
20
21
|
footerAlignment: string;
|
|
21
22
|
iconColor: string;
|
|
23
|
+
size: string;
|
|
22
24
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "update:collapse")[], "close" | "update:collapse", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaCardProps>, {
|
|
23
25
|
closable: boolean;
|
|
24
26
|
collapse: boolean;
|
|
@@ -26,10 +28,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
26
28
|
headerAlignment: string;
|
|
27
29
|
footerAlignment: string;
|
|
28
30
|
iconColor: string;
|
|
31
|
+
size: string;
|
|
29
32
|
}>>> & {
|
|
30
33
|
onClose?: (...args: any[]) => any;
|
|
31
34
|
"onUpdate:collapse"?: (...args: any[]) => any;
|
|
32
35
|
}, {
|
|
36
|
+
size: "default" | "small";
|
|
33
37
|
closable: boolean;
|
|
34
38
|
collapse: boolean;
|
|
35
39
|
collapsable: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Meta, StoryFn } from '@storybook/vue3';
|
|
1
|
+
import type { Meta, Story, StoryFn } from '@storybook/vue3';
|
|
2
2
|
import MaCard from '../index.vue';
|
|
3
3
|
declare const meta: Meta<typeof MaCard>;
|
|
4
4
|
export default meta;
|
|
@@ -6,3 +6,4 @@ export declare const Default: StoryFn;
|
|
|
6
6
|
export declare const Closable: StoryFn;
|
|
7
7
|
export declare const Collapse: StoryFn;
|
|
8
8
|
export declare const AllSlots: StoryFn;
|
|
9
|
+
export declare const Small: Story;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export declare const MaCardAlignments: readonly ["left", "center"];
|
|
2
|
+
export declare const MaCardSizes: readonly ["small", "default"];
|
|
2
3
|
export declare const MaCardIconColors: readonly ["blue", "green", "orange", "red", "purple"];
|
|
3
4
|
export declare type MaCardAlignment = (typeof MaCardAlignments)[number];
|
|
4
5
|
export declare type MaCardIconColor = (typeof MaCardIconColors)[number];
|
|
6
|
+
export declare type MaCardSize = (typeof MaCardSizes)[number];
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export interface MaDrawerProps {
|
|
2
|
+
placement?: string;
|
|
3
|
+
visible?: boolean;
|
|
4
|
+
header?: string;
|
|
5
|
+
content?: string;
|
|
6
|
+
footer?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaDrawerProps>, {
|
|
11
|
+
placement: string;
|
|
12
|
+
visible: boolean;
|
|
13
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaDrawerProps>, {
|
|
14
|
+
placement: string;
|
|
15
|
+
visible: boolean;
|
|
16
|
+
}>>> & {
|
|
17
|
+
"onUpdate:visible"?: (...args: any[]) => any;
|
|
18
|
+
}, {
|
|
19
|
+
placement: string;
|
|
20
|
+
visible: boolean;
|
|
21
|
+
}>, {
|
|
22
|
+
header: (_: {}) => any;
|
|
23
|
+
content: (_: {}) => any;
|
|
24
|
+
footer: (_: {}) => any;
|
|
25
|
+
}>;
|
|
26
|
+
export default _default;
|
|
27
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
28
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
29
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
30
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
31
|
+
} : {
|
|
32
|
+
type: import('vue').PropType<T[K]>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
37
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
38
|
+
default: D[K];
|
|
39
|
+
} : P[K];
|
|
40
|
+
};
|
|
41
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryFn } from "@storybook/vue3";
|
|
2
|
+
import MaDrawer from "@/components/drawer/index.vue";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const baseConfig: Meta<typeof MaDrawer>;
|
|
6
|
+
export declare const Template: StoryFn;
|
|
7
|
+
export declare const TemplateWithScroll: StoryFn;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaDrawer from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaDrawer>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaDrawer>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithScroll: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MaDrawerPlacements: readonly ["left", "right"];
|
package/dist/src/index.d.ts
CHANGED
|
@@ -64,5 +64,6 @@ export { default as MaCountrySelect } from './components/country-select/index.vu
|
|
|
64
64
|
export { default as MaCard } from './components/card/index.vue';
|
|
65
65
|
export * from './components/card/types';
|
|
66
66
|
export { default as MaInputNumber } from './components/input-number/index.vue';
|
|
67
|
+
export { default as MaDrawer } from './components/drawer/index.vue';
|
|
67
68
|
export { ActionKitConfig } from './services/config';
|
|
68
69
|
export { useActionKitConfig } from './composables/config';
|