@mobileaction/action-kit 1.12.0 → 1.13.0
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 +22 -22
- package/dist/action-kit.mjs +1583 -1480
- package/dist/components/steps/components/index.vue.d.ts +38 -0
- package/dist/components/steps/index.vue.d.ts +36 -0
- package/dist/components/steps/types.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/src/components/steps/components/index.vue.d.ts +35 -0
- package/dist/src/components/steps/index.vue.d.ts +40 -0
- package/dist/src/components/steps/stories/constants.d.ts +8 -0
- package/dist/src/components/steps/stories/default.stories.d.ts +11 -0
- package/dist/src/components/steps/stories/step.stories.d.ts +6 -0
- package/dist/src/components/steps/types.d.ts +2 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { PropType as __PropType } from 'vue';
|
|
2
|
+
export interface MaStepsProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
8
|
+
title: {
|
|
9
|
+
type: __PropType<string>;
|
|
10
|
+
required: false;
|
|
11
|
+
};
|
|
12
|
+
description: {
|
|
13
|
+
type: __PropType<string>;
|
|
14
|
+
required: false;
|
|
15
|
+
};
|
|
16
|
+
disabled: {
|
|
17
|
+
type: __PropType<boolean>;
|
|
18
|
+
required: false;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
title: {
|
|
23
|
+
type: __PropType<string>;
|
|
24
|
+
required: false;
|
|
25
|
+
};
|
|
26
|
+
description: {
|
|
27
|
+
type: __PropType<string>;
|
|
28
|
+
required: false;
|
|
29
|
+
};
|
|
30
|
+
disabled: {
|
|
31
|
+
type: __PropType<boolean>;
|
|
32
|
+
required: false;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
}>>, {
|
|
36
|
+
disabled: boolean;
|
|
37
|
+
}>;
|
|
38
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { PropType as __PropType } from 'vue';
|
|
2
|
+
import { MaStepsDirection } from "./types";
|
|
3
|
+
export interface MaStepsProps {
|
|
4
|
+
current?: number;
|
|
5
|
+
direction?: MaStepsDirection;
|
|
6
|
+
}
|
|
7
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
8
|
+
current: {
|
|
9
|
+
type: __PropType<number>;
|
|
10
|
+
required: false;
|
|
11
|
+
default: number;
|
|
12
|
+
};
|
|
13
|
+
direction: {
|
|
14
|
+
type: __PropType<"horizontal" | "vertical">;
|
|
15
|
+
required: false;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:current")[], "change" | "update:current", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
current: {
|
|
20
|
+
type: __PropType<number>;
|
|
21
|
+
required: false;
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
direction: {
|
|
25
|
+
type: __PropType<"horizontal" | "vertical">;
|
|
26
|
+
required: false;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
}>> & {
|
|
30
|
+
onChange?: (...args: any[]) => any;
|
|
31
|
+
"onUpdate:current"?: (...args: any[]) => any;
|
|
32
|
+
}, {
|
|
33
|
+
direction: "horizontal" | "vertical";
|
|
34
|
+
current: number;
|
|
35
|
+
}>;
|
|
36
|
+
export default _sfc_main;
|
package/dist/index.d.ts
CHANGED
|
@@ -75,5 +75,7 @@ export { default as MaTagInput } from './components/tag-input/index.vue';
|
|
|
75
75
|
export { default as MaList } from './components/list/index.vue';
|
|
76
76
|
export { default as MaListItem } from './components/list/components/ListItem.vue';
|
|
77
77
|
export { default as MaListItemMeta } from './components/list/components/ListItemMeta.vue';
|
|
78
|
+
export { default as MaSteps } from './components/steps/index.vue';
|
|
79
|
+
export { default as MaStep } from './components/steps/components/index.vue';
|
|
78
80
|
export { ActionKitConfig } from './services/config';
|
|
79
81
|
export { useActionKitConfig } from './composables/config';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface MaStepsProps {
|
|
2
|
+
title?: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaStepsProps>, {
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaStepsProps>, {
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
}>>>, {
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
}>, {
|
|
13
|
+
title: (_: {}) => any;
|
|
14
|
+
description: (_: {}) => any;
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
17
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
27
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
28
|
+
default: D[K];
|
|
29
|
+
} : P[K];
|
|
30
|
+
};
|
|
31
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { MaStepsDirection } from "./types";
|
|
2
|
+
export interface MaStepsProps {
|
|
3
|
+
current?: number;
|
|
4
|
+
direction?: MaStepsDirection;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaStepsProps>, {
|
|
7
|
+
current: number;
|
|
8
|
+
direction: string;
|
|
9
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:current")[], "change" | "update:current", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MaStepsProps>, {
|
|
10
|
+
current: number;
|
|
11
|
+
direction: string;
|
|
12
|
+
}>>> & {
|
|
13
|
+
onChange?: (...args: any[]) => any;
|
|
14
|
+
"onUpdate:current"?: (...args: any[]) => any;
|
|
15
|
+
}, {
|
|
16
|
+
direction: "horizontal" | "vertical";
|
|
17
|
+
current: number;
|
|
18
|
+
}>, {
|
|
19
|
+
default: (_: {}) => any;
|
|
20
|
+
}>;
|
|
21
|
+
export default _default;
|
|
22
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
24
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
25
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
26
|
+
} : {
|
|
27
|
+
type: import('vue').PropType<T[K]>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
32
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
33
|
+
default: D[K];
|
|
34
|
+
} : P[K];
|
|
35
|
+
};
|
|
36
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import { MaSteps, MaStep } from '@/index';
|
|
3
|
+
export declare const baseConfig: Meta<typeof MaSteps>;
|
|
4
|
+
export declare const stepConfig: Meta<typeof MaStep>;
|
|
5
|
+
export declare const Template: StoryFn;
|
|
6
|
+
export declare const TemplateWithoutTitle: StoryFn;
|
|
7
|
+
export declare const TemplateWithDescription: StoryFn;
|
|
8
|
+
export declare const TemplateStep: StoryFn;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type MaSteps from '../index.vue';
|
|
3
|
+
declare const meta: Meta<typeof MaSteps>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MaSteps>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Vertical: Story;
|
|
8
|
+
export declare const WithoutTitleHorizontal: Story;
|
|
9
|
+
export declare const WithoutTitleVertical: Story;
|
|
10
|
+
export declare const WithDescriptionHorizontal: Story;
|
|
11
|
+
export declare const WithDescriptionVertical: Story;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -76,5 +76,7 @@ export { default as MaTagInput } from './components/tag-input/index.vue';
|
|
|
76
76
|
export { default as MaList } from './components/list/index.vue';
|
|
77
77
|
export { default as MaListItem } from './components/list/components/ListItem.vue';
|
|
78
78
|
export { default as MaListItemMeta } from './components/list/components/ListItemMeta.vue';
|
|
79
|
+
export { default as MaSteps } from './components/steps/index.vue';
|
|
80
|
+
export { default as MaStep } from './components/steps/components/index.vue';
|
|
79
81
|
export { ActionKitConfig } from './services/config';
|
|
80
82
|
export { useActionKitConfig } from './composables/config';
|